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/5093.1c80cf6d.async.js

1440 lines
3.3 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 GE=Object.defineProperty,jE=Object.defineProperties;var VE=Object.getOwnPropertyDescriptors;var Pv=Object.getOwnPropertySymbols;var nE=Object.prototype.hasOwnProperty,rE=Object.prototype.propertyIsEnumerable;var aS=Math.pow,tE=(Ze,Ee,ae)=>Ee in Ze?GE(Ze,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Ze[Ee]=ae,xa=(Ze,Ee)=>{for(var ae in Ee||(Ee={}))nE.call(Ee,ae)&&tE(Ze,ae,Ee[ae]);if(Pv)for(var ae of Pv(Ee))rE.call(Ee,ae)&&tE(Ze,ae,Ee[ae]);return Ze},Kp=(Ze,Ee)=>jE(Ze,VE(Ee));var iE=(Ze,Ee)=>{var ae={};for(var oe in Ze)nE.call(Ze,oe)&&Ee.indexOf(oe)<0&&(ae[oe]=Ze[oe]);if(Ze!=null&&Pv)for(var oe of Pv(Ze))Ee.indexOf(oe)<0&&rE.call(Ze,oe)&&(ae[oe]=Ze[oe]);return ae};var sS=(Ze,Ee,ae)=>new Promise((oe,Pe)=>{var Ie=Te=>{try{Ve(ae.next(Te))}catch(ze){Pe(ze)}},ke=Te=>{try{Ve(ae.throw(Te))}catch(ze){Pe(ze)}},Ve=Te=>Te.done?oe(Te.value):Promise.resolve(Te.value).then(Ie,ke);Ve((ae=ae.apply(Ze,Ee)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[5093],{88540:function(){"use strict"},42271:function(){"use strict"},15547:function(Ze,Ee){"use strict";Ee.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},64745:function(Ze,Ee){"use strict";Ee.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},47965:function(Ze,Ee){"use strict";Ee.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},35573:function(Ze,Ee,ae){"use strict";var oe=ae(59301),Pe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Te=(Qe,Ue,St)=>Ue in Qe?Pe(Qe,Ue,{enumerable:!0,configurable:!0,writable:!0,value:St}):Qe[Ue]=St,ze=(Qe,Ue)=>{for(var St in Ue||(Ue={}))ke.call(Ue,St)&&Te(Qe,St,Ue[St]);if(Ie)for(var St of Ie(Ue))Ve.call(Ue,St)&&Te(Qe,St,Ue[St]);return Qe};const st=Qe=>React.createElement("svg",ze({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Qe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Ee.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},89919:function(Ze,Ee,ae){"use strict";var oe=ae(59301),Pe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Te=(Qe,Ue,St)=>Ue in Qe?Pe(Qe,Ue,{enumerable:!0,configurable:!0,writable:!0,value:St}):Qe[Ue]=St,ze=(Qe,Ue)=>{for(var St in Ue||(Ue={}))ke.call(Ue,St)&&Te(Qe,St,Ue[St]);if(Ie)for(var St of Ie(Ue))Ve.call(Ue,St)&&Te(Qe,St,Ue[St]);return Qe};const st=Qe=>React.createElement("svg",ze({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Qe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Ee.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},71584:function(){"use strict";function Ze(Fe,te,ee,he){ee===void 0&&(ee=0),he===void 0&&(he=1/0),this._name=Fe,this._defaultValue=te,this._minimum=ee,this._maximum=he}Object.defineProperty(Ze.prototype,"name",{get:function(){return this._name},set:function(Fe){if(typeof Fe!="string"||Fe==="")throw new Error("Shape name must be a valid string.");this._name=Fe}}),Object.defineProperty(Ze.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("The default value must be a real number, not: "+Fe);this._defaultValue=Fe}}),Object.defineProperty(Ze.prototype,"minimum",{get:function(){return this._minimum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Minimum must be a real number, not: "+Fe);this._minimum=Fe}}),Object.defineProperty(Ze.prototype,"maximum",{get:function(){return this._maximum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Maximum must be a real number, not: "+Fe);this._maximum=Fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Fe,te){var ee=go.Shape._FigureParameters[Fe];return ee?ee[te]:null},go.Shape.setFigureParameter=function(Fe,te,ee){if(!(ee instanceof Ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValue<ee.minimum||ee.defaultValue>ee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var he=go.Shape._FigureParameters[Fe];he||(he=[],go.Shape._FigureParameters[Fe]=he),he[te]=ee};var Ee=[];function ae(Fe,te){var ee=Ee.pop();return ee===void 0?new go.Point(Fe,te):(ee.x=Fe,ee.y=te,ee)}function oe(){var Fe=Ee.pop();return Fe===void 0?new go.Point:Fe}function Pe(Fe){Ee.push(Fe)}function Ie(Fe,te,ee,he,ue,fe,me,be,Ae){Ae||(Ae=new go.Point);var De=Fe-ee,We=ue-me,nt=NaN,qe=NaN;if(De===0)if(We===0)Fe===ee&&(nt=Fe,qe=te);else{var ot=(fe-be)/We,mt=fe-ot*ue;nt=Fe,qe=ot*nt+mt}else if(We===0){var at=(te-he)/De,vt=te-at*Fe;nt=ue,qe=at*nt+vt}else{var at=(te-he)/De,ot=(fe-be)/We,vt=te-at*Fe,mt=fe-ot*ue;nt=(mt-vt)/(at-ot),qe=at*nt+vt}return Ae.x=nt,Ae.y=qe,Ae}function ke(Fe,te,ee,he,ue,fe,me,be,Ae,De,We,nt,qe,ot){var mt=1-Ae,at=Ae,vt=Fe*mt+ee*at,wt=te*mt+he*at,At=ee*mt+ue*at,Ht=he*mt+fe*at,Qt=ue*mt+me*at,Zt=fe*mt+be*at,ln=vt*mt+At*at,Nt=wt*mt+Ht*at,gt=At*mt+Qt*at,ct=Ht*mt+Zt*at,Jt=ln*mt+gt*at,sn=Nt*mt+ct*at;De.x=vt,De.y=wt,We.x=ln,We.y=Nt,nt.x=Jt,nt.y=sn,qe.x=gt,qe.y=ct,ot.x=Qt,ot.y=Zt}var Ve=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),ze=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*ze,fe=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-ue,0,te,ue)).add(new go.PathSegment(go.PathSegment.Line,te,ee-he)).add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,ee-ue,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,he,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,ue,ee,0,ee-ue)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,ue,ue,0).close()));return ue>1&&(fe.spot1=new go.Spot(0,0,ue,ue),fe.spot2=new go.Spot(1,1,-ue,-ue)),fe}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Fe,te,ee){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,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).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(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ee/2,he.endX=te,he.endY=ee/2,he}),go.Shape.defineFigureGenerator("LineV",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ee,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!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,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Fe,te,ee){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(Fe,te,ee){var he=te/2,ue=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 ue.spot1=Ve,ue.spot2=Te,ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Line1",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}),go.Shape.defineFigureGenerator("Line2",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ee,he}),go.Shape.defineFigureGenerator("Curve1",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,ze*te,0,te,(1-ze)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,0,ze*ee,(1-ze)*te,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,ze*ee,ze*te,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ze)*te,0,0,(1-ze)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Fe,te,ee){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,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Fe,te,ee){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,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var ue=Math.abs(he)*te;if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te:he>te&&(he=te);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ze("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var ue=Math.abs(he)*te;if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ze("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=20:he<-te?he=-te/2:he>te&&(he=te/2);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.setFigureParameter("ManualOperation",0,new Ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te/2:he>te&&(he=te/2);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())):fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}});var st=[];function Qe(){var Fe=st.pop();return Fe===void 0?[]:Fe}function Ue(Fe){Fe.length=0,st.push(Fe)}function St(Fe){for(var te=Qe(),ee=.5,he=.5,ue=Math.PI*1.5,fe=0,me=0;me<Fe;me++)fe=2*Math.PI/Fe*me+ue,te[me]=new go.Point(he+ee*Math.cos(fe),he+ee*Math.sin(fe));return te.push(te[0]),te}function $e(Fe){var te=Dt(Fe),ee=Qe();ee[0]=te[0];for(var he=1,ue=1;he<te.length;he+=2,ue+=3)ee[ue]=te[he],ee[ue+1]=te[he],ee[ue+2]=te[he+1];return Ue(te),ee}function Dt(Fe){for(var te=St(Fe),ee=Qe(),he=Math.floor(te.length/2),ue=te.length-1,fe=Fe%2===0?2:1,me=0;me<ue;me++){var be=te[me],Ae=te[me+1],De=te[(he+me-1)%ue],We=te[(he+me+fe)%ue];ee[me*2]=be,ee[me*2+1]=Ie(be.x,be.y,De.x,De.y,Ae.x,Ae.y,We.x,We.y,new go.Point)}return ee[ee.length]=ee[0],Ue(te),ee}go.Shape.defineFigureGenerator("Pentagon",function(Fe,te,ee){var he=St(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<5;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.2,.22),ue.spot2=new go.Spot(.8,.9),ue}),go.Shape.defineFigureGenerator("Hexagon",function(Fe,te,ee){var he=St(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<6;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.07,.25),ue.spot2=new go.Spot(.93,.75),ue}),go.Shape.defineFigureGenerator("Heptagon",function(Fe,te,ee){var he=St(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<7;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.2,.15),ue.spot2=new go.Spot(.8,.85),ue}),go.Shape.defineFigureGenerator("Octagon",function(Fe,te,ee){var he=St(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<8;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.85),ue}),go.Shape.defineFigureGenerator("Nonagon",function(Fe,te,ee){var he=St(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<9;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.17,.13),ue.spot2=new go.Spot(.82,.82),ue}),go.Shape.defineFigureGenerator("Decagon",function(Fe,te,ee){var he=St(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<10;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("Dodecagon",function(Fe,te,ee){var he=St(12),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<12;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("FivePointedStar",function(Fe,te,ee){var he=Dt(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<10;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.266,.333),ue.spot2=new go.Spot(.733,.733),ue}),go.Shape.defineFigureGenerator("SixPointedStar",function(Fe,te,ee){var he=Dt(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<12;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.17,.25),ue.spot2=new go.Spot(.83,.75),ue}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Fe,te,ee){var he=Dt(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<14;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("EightPointedStar",function(Fe,te,ee){var he=Dt(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<16;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("NinePointedStar",function(Fe,te,ee){var he=Dt(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<18;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("TenPointedStar",function(Fe,te,ee){var he=Dt(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<20;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Ue(he),ue.spot1=new go.Spot(.281,.261),ue.spot2=new go.Spot(.723,.748),ue}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Fe,te,ee){var he=$e(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Ue(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Fe,te,ee){var he=$e(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Ue(he),ue.spot1=new go.Spot(.17,.222),ue.spot2=new go.Spot(.833,.777),ue}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Fe,te,ee){var he=$e(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Ue(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Fe,te,ee){var he=$e(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Ue(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Fe,te,ee){var he=$e(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Ue(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Fe,te,ee){var he=$e(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Ue(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.setFigureParameter("FramedRectangle",0,new Ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ze("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN,ue=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=8),isNaN(ue)&&(ue=8);var fe=new go.Geometry,me=new go.PathFigure(0,0,!0);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he<te/2&&ue<ee/2&&(me.add(new go.PathSegment(go.PathSegment.Move,he,ue)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ue).close())),fe.setSpots(0,0,1,1,he,ue,-he,-ue),fe}),go.Shape.setFigureParameter("Ring",0,new Ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var ue=te/2,fe=new go.Geometry,me=new go.PathFigure(te,te/2,!0);fe.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close());var be=Math.max(ue-he,0);return be>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+be,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ue,ue,be,be).close())),fe.spot1=Ve,fe.spot2=Te,fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("Cloud",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ee,-.09239631*te,.07836421*ee,.1406031*te,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ee,.2450511*te,-.00697547*ee,.3776197*te,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ee,.4539471*te,0,.6066018*te,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ee,.6914277*te,-.01904177*ee,.8921095*te,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ee,1.036446*te,.04105738*ee,1.020377*te,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ee,1.04448*te,.360238*ee,.992256*te,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ee,1.032337*te,.5771781*ee,1.018411*te,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ee,1.028411*te,.9571472*ee,.8556702*te,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ee,.7431877*te,1.009325*ee,.5624123*te,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ee,.4820677*te,1.031761*ee,.3030112*te,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ee,.2329994*te,1.01518*ee,.03213784*te,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ee,-.02812061*te,.9032597*ee,-.01205169*te,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ee,-.01812061*te,.6089503*ee,-.00606892*te,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ee,-.01606892*te,.3892545*ee,-.01205169*te,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Fe,te,ee){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*ee)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new Ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN,ue=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=0),isNaN(ue)&&(ue=315);var fe=he%360;fe<0&&(fe+=360);var me=ue%360,be=Math.min(te,ee)/2;return new go.Geometry().add(new go.PathFigure(be,be).add(new go.PathSegment(go.PathSegment.Arc,fe,me,be,be,be,be).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Fe,te,ee){var he=ze/Math.SQRT2*.5,ue=Math.SQRT2/2,fe=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,ue*te,fe*ee,te,(1-he)*ee,(ue+he)*te,(fe+he)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var ue=Math.min(he,te)/2,fe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(fe-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,fe+ue,0)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me-ue)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me-ue).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var ue=Math.min(he,te)/2,fe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(fe-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,fe+ue,0)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me-ue)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me-ue).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ee===0){var ue=new go.Geometry(go.Geometry.Rectangle);return ue.startX=0,ue.startY=0,ue.endX=te,ue.endY=ee,ue}else{var fe=te/2,me=ee/2,be=Math.atan2(ee,te),Ae=he-Math.min(Math.cos(be)*he/2,fe),De=he-Math.min(Math.sin(be)*he/2,me),ue=new go.Geometry,We=new go.PathFigure(Ae,0,!0);return ue.add(We),We.add(new go.PathSegment(go.PathSegment.Line,fe,.2*ee)),We.add(new go.PathSegment(go.PathSegment.Line,te-Ae,0)),We.add(new go.PathSegment(go.PathSegment.Line,te,De)),We.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,te,ee-De)),We.add(new go.PathSegment(go.PathSegment.Line,te-Ae,ee)),We.add(new go.PathSegment(go.PathSegment.Line,fe,.8*ee)),We.add(new go.PathSegment(go.PathSegment.Line,Ae,ee)),We.add(new go.PathSegment(go.PathSegment.Line,0,ee-De)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,0,De).close()),ue}}),go.Shape.setFigureParameter("ThinX",0,new Ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var ue=new go.Geometry,fe=new go.PathFigure(.1*te,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),ue}),go.Shape.setFigureParameter("SquareIBeam",0,new Ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var ue=new go.Geometry,fe=new go.PathFigure(0,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close()),ue}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.5);var ue=new go.Geometry,fe=new go.PathFigure(0,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Math.abs(1-he)*te,.25*ee,Math.abs(1-he)*te,.75*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),ue}),go.Shape.defineFigureGenerator("HalfEllipse",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,ze*te,0,te,(.5-ze/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,(.5+ze/2)*ee,ze*te,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,0,te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ee,.5*te,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*te,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.5*ee,.9*te,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.6*te,.2*ee,te,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ee,te,.8*ee,.6*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,.5*te,.75*ee,.55*te,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ee,.45*te,.95*ee,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*te,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ee,0,.25*ee,.4*te,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.4*te,.6*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ee,.5*te,.75*ee,.45*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ee,.55*te,.95*ee,.5*te,.75*ee));var fe=.2,me=.3,be=0,Ae=fe*ze;return ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+fe+be)*ee,(.5-fe+me)*te,(.5+Ae+be)*ee,(.5-Ae+me)*te,(.5+fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+fe+me)*te,(.5+be)*ee,(.5+Ae+me)*te,(.5+fe+be)*ee,(.5+fe+me)*te,(.5+Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+be)*ee,(1-.5+fe+me)*te,(.5-Ae+be)*ee,(.5+Ae+me)*te,(.5-fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ee,(.5-Ae+me)*te,(.5-fe+be)*ee,(.5-fe+me+.05)*te,(.5-Ae+be-.02)*ee)),fe=.2,me=0,be=-.3,Ae=fe*ze,ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+fe+me)*te,(.5+be)*ee,(.5+Ae+me)*te,(.5+fe+be)*ee,(.5+fe+me)*te,(.5+Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+be)*ee,(1-.5+fe+me)*te,(.5-Ae+be)*ee,(.5+Ae+me)*te,(.5-fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+me)*te,(.5+be)*ee,(.5-Ae+me)*te,(.5-fe+be)*ee,(.5-fe+me)*te,(.5-Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ae+me)*te,(.5+fe+be)*ee,(.5-fe+me)*te,(.5+Ae+be)*ee,(.5-Ae+me)*te,(.5+fe+be)*ee)),fe=.2,me=-.3,be=0,Ae=fe*ze,ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+be)*ee,(1-.5+fe+me-.05)*te,(.5-Ae+be-.02)*ee,(.5+Ae+me)*te,(.5-fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+me)*te,(.5+be)*ee,(.5-Ae+me)*te,(.5-fe+be)*ee,(.5-fe+me)*te,(.5-Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+fe+be)*ee,(.5-fe+me)*te,(.5+Ae+be)*ee,(.5-Ae+me)*te,(.5+fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ee,(.5+Ae+me)*te,(.5+fe+be)*ee,(.5+fe+me)*te,(.5+Ae+be)*ee).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.5,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var fe=.1,me=.5,be=.25;return ue.add(new go.PathSegment(go.PathSegment.Move,(me+fe)*te,be*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ee*be,fe*te,fe*te).close()),ue=new go.PathFigure(te*.5,0,!1),he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),be=.75,ue=new go.PathFigure((me+fe)*te,be*ee,!0),he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ee*be,fe*te,fe*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Fe,te,ee){var he=.8535533905932737,ue=.5*te,fe=.5*ee;return new go.Geometry().add(new go.PathFigure(ue,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ue,fe,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,ue,ee)).add(new go.PathSegment(go.PathSegment.Move,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=.5,be=.5,Ae=new go.PathFigure(me*te,(be-fe)*ee);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),fe=.4,ue=ze*.4;var De=oe(),We=oe(),nt=oe(),qe=oe();ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.42,De,We,nt,qe,qe);var ot=oe(),mt=oe(),at=oe();ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.58,qe,qe,at,ot,mt);var vt=oe(),wt=oe(),At=oe();ke(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.42,vt,wt,At,qe,qe);var Ht=oe(),Qt=oe(),Zt=oe();return ke(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.58,qe,qe,Zt,Ht,Qt),Ae.add(new go.PathSegment(go.PathSegment.Move,Zt.x*te,Zt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,Ht.x*te,Ht.y*ee,Qt.x*te,Qt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*te,nt.y*ee,De.x*te,De.y*ee,We.x*te,We.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,Zt.x*te,Zt.y*ee).close()),Ae.add(new go.PathSegment(go.PathSegment.Move,At.x*te,At.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,at.x*te,at.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,ot.x*te,ot.y*ee,mt.x*te,mt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,At.x*te,At.y*ee,vt.x*te,vt.y*ee,wt.x*te,wt.y*ee).close()),Pe(De),Pe(We),Pe(nt),Pe(qe),Pe(ot),Pe(mt),Pe(at),Pe(vt),Pe(wt),Pe(At),Pe(Ht),Pe(Qt),Pe(Zt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Fe,te,ee){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*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ee)).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*ee,te,.25*ee,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var ue=(te-he)/2,fe=ue+he;return new go.Geometry().add(new go.PathFigure(fe,.5*ee).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.4,fe=.4,me=.5,be=.5,Ae=oe(),De=oe(),We=oe(),nt=oe(),qe=new go.PathFigure((me-fe)*te,be*ee,!1);he.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.44,We,nt,De,Ae,Ae),qe.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,We.x*te,We.y*ee,nt.x*te,nt.y*ee));var ot=ae(De.x,De.y);ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.56,Ae,Ae,De,We,nt);var mt=ae(De.x,De.y);qe.add(new go.PathSegment(go.PathSegment.Line,(ot.x*.1+.95*.9)*te,ot.y*.1*ee)),qe.add(new go.PathSegment(go.PathSegment.Line,.85*te,ot.y*.1*ee)),qe.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),qe.add(new go.PathSegment(go.PathSegment.Line,te,0)),qe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),qe.add(new go.PathSegment(go.PathSegment.Line,(mt.x*.1+.9)*te,.15*ee)),qe.add(new go.PathSegment(go.PathSegment.Line,(mt.x*.1+.9)*te,(mt.y*.1+.05*.9)*ee)),qe.add(new go.PathSegment(go.PathSegment.Line,mt.x*te,mt.y*ee)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,We.x*te,We.y*ee,nt.x*te,nt.y*ee)),qe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),fe=.35,ue=ze*.35;var at=new go.PathFigure(me*te,(be-fe)*ee,!1);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee));var vt=new go.PathFigure((me-fe)*te,be*ee,!1);return he.add(vt),Pe(Ae),Pe(De),Pe(We),Pe(nt),Pe(ot),Pe(mt),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(Fe,te,ee){var he=new go.Geometry,ue=.375,fe=0,me=-.125,be=ue*ze,Ae=new go.PathFigure((.525+fe)*te,(.5+ue+me)*ee,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+fe)*te,(.5+me)*ee,(.5+be+fe)*te,(.5+ue+me)*ee,(.5+ue+fe)*te,(.5+be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5-ue+me)*ee,(1-.5+ue+fe)*te,(.5-be+me)*ee,(.5+be+fe)*te,(.5-ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-be+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+fe)*te,(.5+ue+me)*ee,(.5-ue+fe)*te,(.5+be+me)*ee,(.5-be+fe)*te,(.5+ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee).close()),ue=.325,fe=0,me=-.125,be=ue*ze;var Ae=new go.PathFigure((1-.5+ue+fe)*te,(.5+me)*ee,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5+ue+me)*ee,(.5+ue+fe)*te,(.5+be+me)*ee,(.5+be+fe)*te,(.5+ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-be+fe)*te,(.5+ue+me)*ee,(.5-ue+fe)*te,(.5+be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-be+me)*ee,(.5-be+fe)*te,(.5-ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+fe)*te,(.5+me)*ee,(.5+be+fe)*te,(.5-ue+me)*ee,(1-.5+ue+fe)*te,(.5-be+me)*ee));var Ae=new go.PathFigure((.525+fe)*te,(.5+ue+me)*ee,!1);return he.add(Ae),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(Fe,te,ee){var he=Fe?Fe.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*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Fe,te,ee){var he=Fe?Fe.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*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Fe,te,ee){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,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Fe,te,ee){var he=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ee,.5*te,.5*ee)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Fe,te,ee){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,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Fe,te,ee){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*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Fe,te,ee){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*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Fe,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Fe,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.3);var fe=(1-he)*te,me=(.5-ue/2)*ee,be=(.5+ue/2)*ee,Ae=new go.Geometry,De=new go.PathFigure(0,me,!0);Ae.add(De),De.add(new go.PathSegment(go.PathSegment.Line,fe,me)),De.add(new go.PathSegment(go.PathSegment.Line,fe,0)),De.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,be)),De.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,me/ee);var We=Ie(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(We.x,We.y),Pe(We),Ae}),go.Shape.setFigureParameter("Arrow2",0,new Ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=30),ue=Math.min(ue,ee/2);var fe=te-he,me=(ee-ue)/2,be=me+ue,Ae=new go.Geometry,De=new go.PathFigure(0,me,!0);Ae.add(De),De.add(new go.PathSegment(go.PathSegment.Line,fe,me)),De.add(new go.PathSegment(go.PathSegment.Line,fe,0)),De.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,be)),De.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,me/ee);var We=Ie(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(We.x,We.y),Pe(We),Ae}),go.Shape.defineFigureGenerator("Chevron",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Ae=Ie(0,.5,.3,0,0,ue/ee,.1,ue/ee,oe());return me.spot1=new go.Spot(Ae.x,Ae.y),Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,Ae),me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=100);var fe=(ee-he)/2,me=fe+he,be=(ee-ue)/2,Ae=be+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,be=0,Ae=ee):(fe=0,me=ee,be=0,Ae=ee));var De=new go.Geometry,We=new go.PathFigure(te,.5*ee,!0);De.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ae)),We.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,be)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,be).close());var nt=Ie(0,.5,.3,be/ee,0,fe/ee,1,fe/ee,oe());return De.spot1=new go.Spot(nt.x,nt.y),nt=Ie(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,nt),De.spot2=new go.Spot(nt.x,nt.y),Pe(nt),De}),go.Shape.setFigureParameter("IBeamArrow",0,new Ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,ue/ee);var Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=100);var fe=(ee-he)/2,me=fe+he,be=(ee-ue)/2,Ae=be+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,be=0,Ae=ee):(fe=0,me=ee,be=0,Ae=ee));var De=new go.Geometry,We=new go.PathFigure(te,.5*ee,!0);De.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ae)),We.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),We.add(new go.PathSegment(go.PathSegment.Line,0,be)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,be)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,be).close()),De.spot1=new go.Spot(0,fe/ee);var nt=Ie(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,oe());return De.spot2=new go.Spot(nt.x,nt.y),Pe(nt),De}),go.Shape.setFigureParameter("Pointer",0,new Ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.1);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ue.spot1=new go.Spot(he,.35);var me=Ie(.2,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Pe(me),ue}),go.Shape.setFigureParameter("RoundedPointer",0,new Ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),ue.spot1=new go.Spot(he,.35);var me=Ie(0,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Pe(me),ue}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.4);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,0,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=50);var ue=(ee-he)/2,fe=ue+he;he>ee&&(ue=0,fe=ee);var me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,0,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,ue/ee);var Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("SquareArrow",0,new Ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.7);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(he,1),ue}),go.Shape.defineFigureGenerator("Cone1",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.1,me=new go.PathFigure(0,.9*ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+fe)*ee,(.5+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ue)*te,ee,0,(.9+fe)*ee).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.9*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,ee,.85/.9*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var fe=new go.PathFigure(0,.9*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,.8*ee,.85/.9*te,.8*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var fe=new go.PathFigure(.5*te,ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.3*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var fe=new go.PathFigure(0,.3*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(0,he,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ze*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+fe)*te,0,1*te,ze*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ee,1*te,ee-ze*he,(.5+fe)*te,1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,1*ee,0,ee-ze*he)),me.add(new go.PathSegment(go.PathSegment.Line,0,he));var be=new go.PathFigure(te,he,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-ze*he,(.5+fe)*te,2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-fe)*te,2*he,0,2*he-ze*he)),ue.spot1=new go.Spot(0,0,0,2*he),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Cylinder2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(0,ee-he,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ze*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+fe)*te,0,te,ze*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,ee-ze*he,(.5+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,ee,0,ee-ze*he));var be=new go.PathFigure(0,ee-he,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee-2*he,0,ee-he-ze*he,(.5-fe)*te,ee-2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,ee-he,(.5+fe)*te,ee-2*he,te,ee-he-ze*he)),ue.spot1=new go.Spot(0,0),ue.spot2=new go.Spot(1,1,0,-2*he),ue}),go.Shape.defineFigureGenerator("Cylinder3",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(he,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-ze*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-ze*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ze*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,ze*he,0));var be=new go.PathFigure(he,0,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ee,he+ze*he,0,2*he,(.5-fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,ee,2*he,(.5+fe)*ee,he+ze*he,ee)),ue.spot1=new go.Spot(0,0,2*he,0),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Cylinder4",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(te-he,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-ze*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-ze*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ze*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,ze*he,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var be=new go.PathFigure(te-he,0,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ee,te-he-ze*he,0,te-2*he,(.5-fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te-2*he,(.5+fe)*ee,te-he-ze*he,ee)),ue.spot1=new go.Spot(0,0),ue.spot2=new go.Spot(1,1,-2*he,0),ue}),go.Shape.defineFigureGenerator("Prism1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,.25*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(.25*te,.25*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.25*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(0,ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var fe=new go.PathFigure(.5*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var fe=new go.PathFigure(.5*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Fe,te,ee){var he=new go.Geometry,ue=.2,fe=.1,me=ze*ue,be=ze*fe,Ae=.5,De=.1,We=new go.PathFigure(Ae*te,(De+fe)*ee,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ue)*te,De*ee,(Ae-me)*te,(De+fe)*ee,(Ae-ue)*te,(De+be)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-fe)*ee,(Ae-ue)*te,(De-be)*ee,(Ae-me)*te,(De-fe)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ue)*te,De*ee,(Ae+me)*te,(De-fe)*ee,(Ae+ue)*te,(De-be)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+fe)*ee,(Ae+ue)*te,(De+be)*ee,(Ae+me)*te,(De+fe)*ee));var nt=.05,qe=ze*nt;Ae=.05,De=.25;var ot=new go.PathFigure(.5*te,.2*ee,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),Ae=.95,De=.25,ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+nt)*te,De*ee,(Ae+qe)*te,(De-nt)*ee,(Ae+nt)*te,(De-qe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),nt=.025,qe=ze*nt,Ae=.825,De=.35,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae+nt)*te,(De-qe)*ee,(Ae+qe)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,De*ee,(Ae-qe)*te,(De-nt)*ee,(Ae-nt)*te,(De-qe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),nt=.05,qe=ze*nt,Ae=.5,De=.7,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae+nt)*te,(De-qe)*ee,(Ae+qe)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,De*ee,(Ae-qe)*te,(De-nt)*ee,(Ae-nt)*te,(De-qe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),nt=.025,qe=ze*nt,Ae=.175,De=.35,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae+nt)*te,(De-qe)*ee,(Ae+qe)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,De*ee,(Ae-qe)*te,(De-nt)*ee,(Ae-nt)*te,(De-qe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),nt=.05,qe=ze*nt,Ae=.05,De=.25,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae-nt)*te,(De-qe)*ee,(Ae-qe)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new Ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var ue=new go.Geometry,fe=new go.PathFigure(te,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),ue.spot1=new go.Spot(0,he),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Collate",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee));var fe=new go.PathFigure(.5*te,.5*ee,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,ue*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ee)),he}),go.Shape.defineFigureGenerator("Database",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.1,me=new go.PathFigure(te,.1*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+fe)*ee,(.5+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ue)*te,ee,0,(.9+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-fe)*ee,(.5-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+ue)*te,0,te,(.1-fe)*ee));var be=new go.PathFigure(te,.1*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+fe)*ee,(.5+ue)*te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ue)*te,.2*ee,0,(.1+fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+fe)*ee,(.5+ue)*te,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ue)*te,.3*ee,0,(.2+fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ee,te,(.3+fe)*ee,(.5+ue)*te,.4*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-ue)*te,.4*ee,0,(.3+fe)*ee)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ee,.25*te,.1*ee).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.1,me=new go.PathFigure(te,.1*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+fe)*ee,(.5+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ue)*te,ee,0,(.9+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-fe)*ee,(.5-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+ue)*te,0,te,(.1-fe)*ee));var be=new go.PathFigure(te,.1*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+fe)*ee,(.5+ue)*te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ue)*te,.2*ee,0,(.1+fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+fe)*ee,(.5+ue)*te,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ue)*te,.3*ee,0,(.2+fe)*ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)?ue=.2:ue<.15&&(ue=.15);var fe=ze*.2,me=new go.PathFigure(0,.2*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-fe)*ee,(.2-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ee,(.8+fe)*te,0,te,(.2-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ee,te,(.8+fe)*ee,(.8+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-fe)*te,ee,0,(.8+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var be=new go.PathFigure(0,ue*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;(isNaN(ue)||ue<.1)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,ue*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),he}),go.Shape.defineFigureGenerator("Document",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;(isNaN(ue)||ue<.2)&&(ue=.2);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Move,te,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ee)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var fe=new go.PathFigure(.1*te,.4*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(.75*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee));var fe=new go.PathFigure(te,.5*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee));var me=new go.PathFigure(te,.5*ee,!1);return he.add(me),me.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(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.1);var me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var be=new go.PathFigure(ue*te,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),be.add(new go.PathSegment(go.PathSegment.Move,0,fe*ee)),be.add(new go.PathSegment(go.PathSegment.Line,te,fe*ee)),he}),go.Shape.defineFigureGenerator("Junction",function(Fe,te,ee){var he=new go.Geometry,ue=1/Math.SQRT2,fe=(1-1/Math.SQRT2)/2,me=ze*.5,be=.5,Ae=new go.PathFigure(te,be*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*te,ee,te,(be+me)*ee,(be+me)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,be*ee,(be-me)*te,ee,0,(be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*te,0,0,(be-me)*ee,(be-me)*te,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,be*ee,(be+me)*te,0,te,(be-me)*ee));var De=new go.PathFigure((fe+ue)*te,(fe+ue)*ee,!1);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Line,fe*te,fe*ee)),De.add(new go.PathSegment(go.PathSegment.Move,fe*te,(fe+ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Line,(fe+ue)*te,fe*ee)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close());var fe=new go.PathFigure(.1*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ee)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=new go.PathFigure(.5*te,ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,fe*ee,(fe-ue)*te,ee,0,(fe+ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,0,0,(fe-ue)*ee,(fe-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,fe*ee,(fe+ue)*te,0,te,(fe-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+.1)*te,.9*ee,te,(fe+ue)*ee,(fe+ue)*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.7);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,ue*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.25);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ue*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ee,.96*te,.47*ee,.93*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ee,.86*te,.57*ee,.83*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*te,.4*ee,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var fe=new go.PathFigure(.1*te,.2*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,.1*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close());var fe=new go.PathFigure(.2*te,.1*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=1-ue,me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close());var be=new go.PathFigure(.5*ue*te,ue*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ue)*te,ue*ee)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=new go.PathFigure(te,fe*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,ee,te,(fe+ue)*ee,(fe+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,fe*ee,(fe-ue)*te,ee,0,(fe+ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,0,0,(fe-ue)*ee,(fe-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,fe*ee,(fe+ue)*te,0,te,(fe-ue)*ee));var be=new go.PathFigure(te,.5*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.5*te,.6*ee,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure((1-ue)*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,ue*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),he}),go.Shape.defineFigureGenerator("Process",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var fe=new go.PathFigure(0,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.25);var fe=new go.PathFigure(ue*te,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee));var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ee)),he.spot1=new go.Spot(ue,0),he.spot2=new go.Spot(1-ue,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(.5+ue)*te,0,te,(.5-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.5+ue)*ee,(.5+ue)*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=new go.PathFigure(te,fe*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,ee,te,(fe+ue)*ee,(fe+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,fe*ee,(fe-ue)*te,ee,0,(fe+ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,0,0,(fe-ue)*ee,(fe-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,fe*ee,(fe+ue)*te,0,te,(fe-ue)*ee));var be=new go.PathFigure(te,fe*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,fe*ee));var Ae=new go.PathFigure(.8*te,.75*ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ee)),he}),go.Shape.defineFigureGenerator("Ground",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),he}),go.Shape.defineFigureGenerator("Inverter",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.1,fe=.1,me=.9,be=.5,Ae=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee));var De=new go.PathFigure((me+fe)*te,be*ee,!0);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.4,me=ze*.1,be=.1,Ae=.9,De=.5,We=new go.PathFigure(.8*te,.5*ee,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,.8*te,(.5+fe)*ee,(.4+ue)*te,ee)),We.add(new go.PathSegment(go.PathSegment.Line,0,ee)),We.add(new go.PathSegment(go.PathSegment.Line,0,0)),We.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),We.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(.4+ue)*te,0,.8*te,(.5-fe)*ee));var nt=new go.PathFigure((Ae+be)*te,De*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te,De*ee,(Ae-me)*te,(De+be)*ee,(Ae-be)*te,(De+me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te,De*ee,(Ae+me)*te,(De-be)*ee,(Ae+be)*te,(De-me)*ee)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=0,be=.5,Ae=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+fe)*te,(be-ue)*ee,.7*te,(be-fe)*ee)),ue=.1,fe=ze*.1,me=.9,be=.5;var De=new go.PathFigure((me-ue)*te,be*ee,!0);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=0,be=.5,Ae=new go.PathFigure(0,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+fe+fe)*te,(be-ue)*ee,.8*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*te,(be+fe)*ee,(me+fe+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=.2,be=.5,Ae=new go.PathFigure(.1*te,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var De=new go.PathFigure(.8*te,.5*ee,!0);he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.7*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+fe)*te,(be-ue)*ee,.7*te,(be-fe)*ee)),ue=.1,fe=ze*.1,me=.9,be=.5;var We=new go.PathFigure((me-ue)*te,be*ee,!0);return he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=.2,be=.5,Ae=new go.PathFigure(.1*te,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var De=new go.PathFigure(.2*te,0,!0);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+fe)*te,(be-ue)*ee,.9*te,(be-fe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.9*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Resistor",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Inductor",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.1,fe=.1,me=.1,be=.5,Ae=new go.PathFigure((me-ue*.5)*te,ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.3,Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.5,Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.9,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue*.5)*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=.5,be=.5,Ae=new go.PathFigure((me-fe)*te,be*ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Move,(me-fe+.1)*te,be*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe-.1)*te,be*ee,me*te,(be-fe)*ee,me*te,(be+fe)*ee)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.75*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Diode",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Fe,te,ee){var he=new go.Geometry,ue=te,fe=ee;te=te*.38,ee=ee*.6;var me=ze*.8,be=.8,Ae=0,De=.5,We=(ue-te)/2,nt=(fe-ee)/2,qe=new go.PathFigure(Ae*te+We,(De+be)*ee+nt,!0);he.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+We,De*ee+nt,(Ae-me)*te+We,(De+be)*ee+nt,(Ae-be)*te+We,(De+me)*ee+nt)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De-be)*ee+nt,(Ae-be)*te+We,(De-me)*ee+nt,(Ae-me)*te+We,(De-be)*ee+nt)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+We,De*ee+nt,Ae*te+We,(De-be)*ee+nt,(Ae-be+me*.5)*te+We,(De-me)*ee+nt)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De+be)*ee+nt,(Ae-be+me*.5)*te+We,(De+me)*ee+nt,Ae*te+We,(De+be)*ee+nt).close()),me=ze*.4,be=.4,Ae=.2,De=.5;var ot=new go.PathFigure(Ae*te+We,(De+be)*ee+nt,!0);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+We,De*ee+nt,(Ae-me)*te+We,(De+be)*ee+nt,(Ae-be)*te+We,(De+me)*ee+nt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De-be)*ee+nt,(Ae-be)*te+We,(De-me)*ee+nt,(Ae-me)*te+We,(De-be)*ee+nt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+We,De*ee+nt,Ae*te+We,(De-be)*ee+nt,(Ae-be+me*.5)*te+We,(De-me)*ee+nt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De+be)*ee+nt,(Ae-be+me*.5)*te+We,(De+me)*ee+nt,Ae*te+We,(De+be)*ee+nt).close()),me=ze*.2,be=.2,Ae=.5,De=.5;var mt=new go.PathFigure((Ae-be)*te+We,De*ee+nt,!0);he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De-be)*ee+nt,(Ae-be)*te+We,(De-me)*ee+nt,(Ae-me)*te+We,(De-be)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+We,De*ee+nt,(Ae+me)*te+We,(De-be)*ee+nt,(Ae+be)*te+We,(De-me)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De+be)*ee+nt,(Ae+be)*te+We,(De+me)*ee+nt,(Ae+me)*te+We,(De+be)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+We,De*ee+nt,(Ae-me)*te+We,(De+be)*ee+nt,(Ae-be)*te+We,(De+me)*ee+nt)),me=ze*.4,be=.4,Ae=.8,De=.5;var at=new go.PathFigure(Ae*te+We,(De-be)*ee+nt,!0);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+We,De*ee+nt,(Ae+me)*te+We,(De-be)*ee+nt,(Ae+be)*te+We,(De-me)*ee+nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De+be)*ee+nt,(Ae+be)*te+We,(De+me)*ee+nt,(Ae+me)*te+We,(De+be)*ee+nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+We,De*ee+nt,Ae*te+We,(De+be)*ee+nt,(Ae+be-me*.5)*te+We,(De+me)*ee+nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De-be)*ee+nt,(Ae+be-me*.5)*te+We,(De-me)*ee+nt,Ae*te+We,(De-be)*ee+nt).close()),me=ze*.8,be=.8,Ae=1,De=.5;var vt=new go.PathFigure(Ae*te+We,(De-be)*ee+nt,!0);return he.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+We,De*ee+nt,(Ae+me)*te+We,(De-be)*ee+nt,(Ae+be)*te+We,(De-me)*ee+nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De+be)*ee+nt,(Ae+be)*te+We,(De+me)*ee+nt,(Ae+me)*te+We,(De+be)*ee+nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+We,De*ee+nt,Ae*te+We,(De+be)*ee+nt,(Ae+be-me*.5)*te+We,(De+me)*ee+nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+We,(De-be)*ee+nt,(Ae+be-me*.5)*te+We,(De-me)*ee+nt,Ae*te+We,(De-be)*ee+nt).close()),he}),go.Shape.defineFigureGenerator("Email",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Move,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ee)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.35*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var fe=new go.PathFigure(.1*te,ee,!0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var me=new go.PathFigure(.6*te,ee,!0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee).close());var be=new go.PathFigure(0,.5*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Power",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.4,fe=.4,me=.5,be=.5,Ae=oe(),De=oe(),We=oe(),nt=oe();ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,De,We,nt);var qe=ae(De.x,De.y),ot=new go.PathFigure(De.x*te,De.y*ee,!0);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,We.x*te,We.y*ee,nt.x*te,nt.y*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),ke(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,We,nt,De,Ae,Ae),ot.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,We.x*te,We.y*ee,nt.x*te,nt.y*ee)),ue=ze*.3,fe=.3,ke(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,We,nt,De,Ae,Ae),ot.add(new go.PathSegment(go.PathSegment.Line,De.x*te,De.y*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,nt.x*te,nt.y*ee,We.x*te,We.y*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,De,We,nt),ot.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,nt.x*te,nt.y*ee,We.x*te,We.y*ee).close());var ot=new go.PathFigure(.45*te,0,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Pe(Ae),Pe(De),Pe(We),Pe(nt),Pe(qe),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee/2,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ee/2,te/2,ee/2));function fe(me,be,Ae){me.add(new go.PathSegment(go.PathSegment.Move,(.3+be)*te,(.8+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+be)*te,(.5+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+be)*te,(.5+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+be)*te,(.8+Ae)*ee).close())}return fe(ue,0,0),fe(ue,.4,0),fe(ue,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.2*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.37*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.37*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ee,.45*te,.44*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ee,.48*te,.17*ee,.54*te,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ee,.59*te,.29*ee,.58*te,.28*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ee,.8*te,.34*ee,.88*te,.43*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ee,.87*te,.48*ee,.88*te,.43*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,1.17*te,.76*ee,.82*te,.8*ee).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=0,me=0,be=ue*ze,Ae=.4*Math.SQRT2/2+.5,De=.5-.5*Math.SQRT2/2,We=1,nt=.5,qe=.5,ot=0,mt=new go.PathFigure(Ae*te,(1-De)*ee,!1);return he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,We*te,nt*ee,We*te,.7*ee,We*te,nt*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(qe+fe)*te,(ot+fe)*ee,(.5+ue+fe)*te,(.5-be+fe)*ee,(.5+be+fe)*te,(.5-ue+fe)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-be+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-be+me)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+fe)*te,.9*ee,(.5-ue+fe)*te,(.5+be+me)*ee,(.5-be+fe)*te,.9*ee)),mt.add(new go.PathSegment(go.PathSegment.Move,(.25+fe)*te,.8*ee)),mt.add(new go.PathSegment(go.PathSegment.Line,(.35+fe)*te,.9*ee)),mt.add(new go.PathSegment(go.PathSegment.Line,(.2+fe)*te,.95*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(te,ee,!1);he.add(fe);var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.2*te,.35*ee,.3*te,.35*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.7*te,.65*ee,.8*te,.65*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.2*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var ue=new go.PathFigure(0,.2*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.7*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ee,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ee,.4*te,.5*ee,te,.5*ee).close());var fe=new go.PathFigure(.45*te,.73*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(.335*te,(1-.555)*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ee,(1-.12)*te,.46*ee,(1-.02)*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ee,.02*te,.54*ee,.12*te,.46*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ee));var me=.5-.285,be=.5,Ae=me,De=Math.PI/4,We=4*(1-Math.cos(De))/(3*Math.sin(De)),nt=We*.5,qe=me,ot=me,mt=We*qe,at=We*ot;fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-qe)*te,Ae*ee,(be-(mt+qe)/2)*te,(Ae+(ot+at)/2)*ee,(be-qe)*te,(Ae+at)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Ae-ot)*ee,(be-qe)*te,(Ae-at)*ee,(be-mt)*te,(Ae-ot)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+qe)*te,Ae*ee,(be+mt)*te,(Ae-ot)*ee,(be+qe)*te,(Ae-at)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(be+qe)*te,(Ae+at)*ee,(be+(mt+qe)/2)*te,(Ae+(ot+at)/2)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee));var vt=new go.PathFigure(.2*te,ee,!1);he.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ee));var wt=new go.PathFigure(.8*te,ee,!1);return he.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var fe=new go.PathFigure(.2*te,.2*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(te,ee,!1);he.add(fe);var me=new go.PathFigure(.1*te,ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.05*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ee,0,ee,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ee,.5*te,0,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,te,ee,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,ee));var fe=.05;return ue.add(new go.PathSegment(go.PathSegment.Move,(.5-fe)*te,.875*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ee,fe*te,fe*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ee,.575*te,.725*ee,.625*te,.375*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ee,.375*te,.375*ee,.425*te,.725*ee)),he}),go.Shape.defineFigureGenerator("Recycle",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.45*te,.95*ee,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ee,.17*te,.95*ee,.15*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ee,0,.675*ee,0,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ee));var fe=new go.PathFigure(.475*te,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ee,.35*te,0,.375*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ee,.625*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ee));var me=new go.PathFigure(.675*te,.575*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ee,te,.8*ee,te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*.5,me=new go.PathFigure(te,ue*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ue*te,ee,te,(ue+fe)*ee,(ue+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ue*ee,(ue-fe)*te,ee,0,(ue+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,ue*te,0,0,(ue-fe)*ee,(ue-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ue*ee,(ue+fe)*te,0,te,(ue-fe)*ee));var be=new go.PathFigure(ue*te,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ue*te,.15*ee)),be.add(new go.PathSegment(go.PathSegment.Move,ue*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,ue*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Move,0,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.15*te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.85*te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Move,ue*te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ee)),be.add(new go.PathSegment(go.PathSegment.Move,ue*te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ee)),he}),go.Shape.defineFigureGenerator("Package",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.15*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(0,.15*ee,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ee).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Component",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close());var fe=new go.PathFigure(0,.2*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var me=new go.PathFigure(0,.6*ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.15*te,.6*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee));var fe=new go.PathFigure(.15*te,.6*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(te,.8*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee).close());var me=.1,be=ze*.1,Ae=.2,De=.9,We=new go.PathFigure((Ae-me)*te,De*ee,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+me)*te,De*ee,(Ae+be)*te,(De-me)*ee,(Ae+me)*te,(De-be)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-me)*te,De*ee,(Ae-be)*te,(De+me)*ee,(Ae-me)*te,(De+be)*ee).close()),me=.1,be=ze*.1,Ae=.8,De=.9;var nt=new go.PathFigure((Ae-me)*te,De*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+me)*te,De*ee,(Ae+be)*te,(De-me)*ee,(Ae+me)*te,(De-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-me)*te,De*ee,(Ae-be)*te,(De+me)*ee,(Ae-me)*te,(De+be)*ee).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.2*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),he}),go.Shape.defineFigureGenerator("Forklift",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0));var fe=new go.PathFigure(0,.5*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var me=new go.PathFigure(.5*te,.8*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee));var be=new go.PathFigure(.5*te,.7*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee));var Ae=.1,De=ze*.1,We=.1,nt=.9,qe=new go.PathFigure((We-Ae)*te,nt*ee,!0);he.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(nt-Ae)*ee,(We-Ae)*te,(nt-De)*ee,(We-De)*te,(nt-Ae)*ee)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(We+Ae)*te,nt*ee,(We+De)*te,(nt-Ae)*ee,(We+Ae)*te,(nt-De)*ee)),qe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(nt+Ae)*ee,(We+Ae)*te,(nt+De)*ee,(We+De)*te,(nt+Ae)*ee)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(We-Ae)*te,nt*ee,(We-De)*te,(nt+Ae)*ee,(We-Ae)*te,(nt+De)*ee)),Ae=.1,De=ze*.1,We=.4,nt=.9;var ot=new go.PathFigure((We-Ae)*te,nt*ee,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(nt-Ae)*ee,(We-Ae)*te,(nt-De)*ee,(We-De)*te,(nt-Ae)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(We+Ae)*te,nt*ee,(We+De)*te,(nt-Ae)*ee,(We+Ae)*te,(nt-De)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(nt+Ae)*ee,(We+Ae)*te,(nt+De)*ee,(We+De)*te,(nt+Ae)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(We-Ae)*te,nt*ee,(We-De)*te,(nt+Ae)*ee,(We-Ae)*te,(nt+De)*ee)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,.4*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ee).close());var fe=new go.PathFigure(.45*te,.7*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee));var me=new go.PathFigure(.55*te,.4*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ee).close());var We=.05,nt=ze*.05,qe=.175,ot=.95,be=new go.PathFigure((qe-We)*te,ot*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot-We)*ee,(qe-We)*te,(ot-nt)*ee,(qe-nt)*te,(ot-We)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(qe+We)*te,ot*ee,(qe+nt)*te,(ot-We)*ee,(qe+We)*te,(ot-nt)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot+We)*ee,(qe+We)*te,(ot+nt)*ee,(qe+nt)*te,(ot+We)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(qe-We)*te,ot*ee,(qe-nt)*te,(ot+We)*ee,(qe-We)*te,(ot+nt)*ee));var We=.05,nt=ze*.05,qe=.375,ot=.95,Ae=new go.PathFigure((qe-We)*te,ot*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot-We)*ee,(qe-We)*te,(ot-nt)*ee,(qe-nt)*te,(ot-We)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(qe+We)*te,ot*ee,(qe+nt)*te,(ot-We)*ee,(qe+We)*te,(ot-nt)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot+We)*ee,(qe+We)*te,(ot+nt)*ee,(qe+nt)*te,(ot+We)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(qe-We)*te,ot*ee,(qe-nt)*te,(ot+We)*ee,(qe-We)*te,(ot+nt)*ee));var We=.05,nt=ze*.05,qe=.625,ot=.95,De=new go.PathFigure((qe-We)*te,ot*ee,!0);he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot-We)*ee,(qe-We)*te,(ot-nt)*ee,(qe-nt)*te,(ot-We)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(qe+We)*te,ot*ee,(qe+nt)*te,(ot-We)*ee,(qe+We)*te,(ot-nt)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot+We)*ee,(qe+We)*te,(ot+nt)*ee,(qe+nt)*te,(ot+We)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(qe-We)*te,ot*ee,(qe-nt)*te,(ot+We)*ee,(qe-We)*te,(ot+nt)*ee));var We=.05,nt=ze*.05,qe=.825,ot=.95,mt=new go.PathFigure((qe-We)*te,ot*ee,!0);he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot-We)*ee,(qe-We)*te,(ot-nt)*ee,(qe-nt)*te,(ot-We)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(qe+We)*te,ot*ee,(qe+nt)*te,(ot-We)*ee,(qe+We)*te,(ot-nt)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,qe*te,(ot+We)*ee,(qe+We)*te,(ot+nt)*ee,(qe+nt)*te,(ot+We)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(qe-We)*te,ot*ee,(qe-nt)*te,(ot+We)*ee,(qe-We)*te,(ot+nt)*ee).close());var at=new go.PathFigure(0,ee,!1);return he.add(at),at.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(.15*te,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee).close());var be=.05,Ae=ze*.05,De=.35,We=.775,nt=new go.PathFigure((De-be)*te,We*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(We-be)*ee,(De-be)*te,(We-Ae)*ee,(De-Ae)*te,(We-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(De+be)*te,We*ee,(De+Ae)*te,(We-be)*ee,(De+be)*te,(We-Ae)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(We+be)*ee,(De+be)*te,(We+Ae)*ee,(De+Ae)*te,(We+be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(De-be)*te,We*ee,(De-Ae)*te,(We+be)*ee,(De-be)*te,(We+Ae)*ee).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.75*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Globe",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.75*te,0,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.75*ee,.75*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*te,ee,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ee,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,.15*te,.25*ee,.15*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ee,.85*te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ee,.35*te,.3*ee,.65*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ee,.35*te,.7*ee,.65*te,.7*ee)),he}),go.Shape.defineFigureGenerator("Wave",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.25*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ee,.1*te,0,.2*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ee,.425*te,.5*ee,.575*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ee,.8*te,0,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ee,.1*te,.5*ee,.2*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ee,.425*te,ee,.575*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ee,.8*te,.5*ee,.9*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Operator",function(Fe,te,ee){var he=new go.Geometry,ue=.3,fe=ze*.3,me=.5,be=.7,Ae=new go.PathFigure((me-ue)*te,be*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee));var De=new go.PathFigure(0,.7*ee,!1);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ee,0,0,te,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.65*te,.3*ee,.65*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ee,.35*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*te,.6*ee,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.2*te,ee,.35*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,.7*te,.6*ee,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.8*te,ee,.65*te,.95*ee)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,0,ee,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ee,.8*te,ee,.85*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ee));var fe=new go.PathFigure(0,.6*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),he}),go.Shape.defineFigureGenerator("Delete",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*.5,me=.5,be=.5,Ae=new go.PathFigure((me-ue)*te,be*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee));var De=new go.PathFigure(.15*te,.5*ee,!1);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Flag",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.1*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ee,.15*te,0,.35*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,.65*te,.2*ee,.85*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.85*te,.6*ee,.65*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*te,.4*ee,.15*te,.4*ee).close()),he}),go.Shape.defineFigureGenerator("Help",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*.5,me=.5,be=.5,Ae=new go.PathFigure((me-ue)*te,be*ee,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee).close()),ue=.05,fe=ze*.05,me=.5,be=.8;var De=new go.PathFigure((me-ue)*te,be*ee,!1);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee).close()),De.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),De.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,.75*te,.475*ee,.75*te,.225*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ee,.4*te,.2*ee,.3*te,.25*ee)),he}),go.Shape.defineFigureGenerator("Location",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ee,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ee,.5*te,0,.025*te,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var fe=new go.PathFigure(.2*te,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ee)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var fe=new go.PathFigure(.2*te,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ee)),he}),go.Shape.defineFigureGenerator("Gear",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ee,.79840625*te,.39915625*ee,.7834375*te,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ee,.64228125*te,.2188125*ee,.603875*te,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ee,.39759375*te,.20190625*ee,.36053125*te,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ee,.21765625*te,.36059375*ee,.201875*te,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ee,.20221875*te,.603875*ee,.21884375*te,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ee,.36353125*te,.78340625*ee,.3991875*te,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ee,.602375*te,.79809375*ee,.63946875*te,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ee,.78234375*te,.63940625*ee,.798125*te,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ee,0,.375*ee,.05*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ee,.3*te,.225*ee,.4*te,.175*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ee,.46*te,.05*ee,.525*te,.05*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ee,.525*te,.275*ee,.475*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ee,te,.4*ee,te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ee,.675*te,.55*ee,.675*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ee,.65*te,.7*ee,.65*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ee,.61*te,.85*ee,.61*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*te,ee,0,ee).close()),he}),go.Shape.defineFigureGenerator("Map",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.2*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),he}),go.Shape.defineFigureGenerator("Eject",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.7)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var fe=new go.PathFigure(0,ee*.6,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*1,ee*1,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.85).close());var fe=new go.PathFigure(.126*te,.85*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ee).close());var me=new go.PathFigure(.402*te,.85*ee,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ee).close());var be=new go.PathFigure(.678*te,.85*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ee).close());var Ae=new go.PathFigure(.5*te,.1*ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ee).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee*1,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee*1,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*(1-.184)).close());var fe=new go.PathFigure(te*.204,ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.204,ee*(1-.184))),fe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*(1-.184*2))),fe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*1).close());var me=new go.PathFigure(te*.408,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.408,ee*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*1).close());var be=new go.PathFigure(te*.612,ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.612,ee*(1-.184*3))),be.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*1).close());var Ae=new go.PathFigure(te*.816,ee,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.816,ee*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-.184*5))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var fe=new go.PathFigure(te*.055,.07*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.07)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.1).close());var me=new go.PathFigure(te*.055,.13*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.13)),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.16)),me.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.16).close());var be=new go.PathFigure(te*.055,.18*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.18)),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.21)),be.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.21).close());var Ae=new go.PathFigure(te*1,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.65)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.55*te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ee,0,.4*ee,.225*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ee,.975*te,0,te,.08*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee).close()),he}),go.Shape.defineFigureGenerator("Key",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*1,ee*.5,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ee).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ee,.075*te,.075*ee).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var fe=new go.PathFigure(0,0,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var me=new go.PathFigure(te*.11,ee*.1,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.1)),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.8)),me.add(new go.PathSegment(go.PathSegment.Line,te*.11,ee*.8).close());var be=new go.PathFigure(te*(.11+.24133333*1+.028*1),ee*.1,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.1)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.8)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ee*.8).close());var Ae=new go.PathFigure(te*(.11+.24133333*2+.028*2),ee*.1,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.8)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ee*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Fe,te,ee){var he=new go.Geometry,ue=8,fe=ue*ze,me=new go.PathFigure(ue,0,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.14)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ee,te,ee-fe,te-fe,ee)),me.add(new go.PathSegment(go.PathSegment.Line,ue,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ue,fe,ee,0,ee-fe)),me.add(new go.PathSegment(go.PathSegment.Line,0,ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,fe,fe,0).close());var be=new go.PathFigure(te*.83,0,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.3)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.3)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*0).close());var Ae=new go.PathFigure(te*.83,ee*1,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*1).close());var De=new go.PathFigure(te*.78,ee*.05,!1);return he.add(De),De.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.05)),De.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.25)),De.add(new go.PathSegment(go.PathSegment.Line,te*.78,ee*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*ze,fe=ee*.8,me=new go.Geometry,be=new go.PathFigure(he,0,!0);return me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-ue,0,te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,te,fe-he)),be.add(new go.PathSegment(go.PathSegment.Bezier,te-he,fe,te,fe-ue,te-ue,fe)),be.add(new go.PathSegment(go.PathSegment.Line,te*.7,fe)),be.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee)),be.add(new go.PathSegment(go.PathSegment.Line,te*.55,fe)),be.add(new go.PathSegment(go.PathSegment.Line,he,fe)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,fe-he,ue,fe,0,fe-ue)),be.add(new go.PathSegment(go.PathSegment.Line,0,he)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,ue,ue,0).close()),ue>1?(me.spot1=new go.Spot(0,0,ue,ue),me.spot2=new go.Spot(1,.8,-ue,-ue)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*.45,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.45).close());var fe=new go.PathFigure(te*1,ee*.55,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.55)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.55)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Fe,te,ee){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,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*.1,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.9).close());var fe=new go.PathFigure(te*.1,ee*.2,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.25)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.22,ee*.285)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.32)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.37)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.32)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.25).close());var me=new go.PathFigure(te*.28,ee*.37,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.37)),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.41)),me.add(new go.PathSegment(go.PathSegment.Line,te*.28,ee*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Fe,te,ee){var he=new go.Geometry,ue=15,fe=ue*ze,me=new go.PathFigure(te*.62,ee*.475,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ee,te,ee-fe,te-fe,ee)),me.add(new go.PathSegment(go.PathSegment.Line,ue,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ue,fe,ee,0,ee-fe)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.475)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.03)),me.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.62,ee*.03).close()),fe>1?(he.spot1=new go.Spot(0,0,fe,fe),he.spot2=new go.Spot(1,1,-fe,-fe)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close());var me=new go.PathFigure(te*.4,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.66)),me.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;return ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close());var me=new go.PathFigure(te*.5,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.74,ee*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.15,ee*0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.15,ee*0,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close());var fe=new go.PathFigure(te*.235,ee*.28,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.765,ee*.28)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.655,ee*.97)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.345,ee*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.5,ee*0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.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")},91e3: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 Ze={},Ee="5.0",ae={},oe=null,Pe=!1,Ie=!1,ke=null,Ve=!1,Te=null,ze=null,st=0;st<arguments.length;st++){var Qe=arguments[st];if(Qe!==null)switch(typeof Qe){case"number":Ee=Qe.toFixed(1);break;case"string":Qe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ee=Qe:ke=Qe;break;case"object":typeof Qe.is3D!="undefined"?oe=Qe:ae=Qe;break;case"boolean":Pe=Qe,Ie=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Ie&&(Pe=!0)),ke!==null&&ae.id===void 0&&(ae.id=ke);var Ue="",St="",$e=!1,Dt=null,Fe=null,te=null,ee=!1,he=null,ue=null,fe=null,me=null,be=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var Ae=function(It){return parseFloat(It)>4?parseFloat(It):5};Ze.setHTML5Codebase=function(It,wn){ze=It,ct(It,wn)},Ze.setJavaCodebase=Ze.setJavaCodebaseVersion=Ze.isCompiledInstalled=Ze.setPreCompiledScriptPath=Ze.setPreCompiledResourcePath=function(){},Ze.setHTML5CodebaseVersion=function(It,wn){var bn=parseFloat(It);if(bn!==NaN&&bn<5){console.log("The GeoGebra HTML5 codebase version "+bn+" is deprecated. Using version latest instead.");return}Te=It,gt(It,wn)},Ze.getHTML5CodebaseVersion=function(){return Fe},Ze.getParameters=function(){return ae},Ze.setFontsCSSURL=function(It){me=It},Ze.setGiacJSURL=function(It){},Ze.setJNLPFile=function(It){Ue=It},Ze.setJNLPBaseDir=function(It){},Ze.inject=function(){function It(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var wn="auto",bn=ae.id,_n,Xt=!1,zn=0;zn<arguments.length;zn++){var Ot=arguments[zn];typeof Ot=="string"?(Ot=Ot.toLowerCase(),Ot.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?wn=Ot:bn=arguments[zn]):typeof Ot=="boolean"?Xt=Ot:Ot instanceof HTMLElement&&(_n=Ot)}jn();function jn(){if(!Ve){setTimeout(jn,200);return}wn=ln(wn);var cr=_n||document.getElementById(bn);if(!cr){console.log("possibly bug on ajax loading? ");return}if(Ze.removeExistingApplet(cr,!1),ae.width===void 0&&cr.clientWidth&&(ae.width=cr.clientWidth),ae.height===void 0&&cr.clientHeight&&(ae.height=cr.clientHeight),!(ae.width&&ae.height)&&wn==="html5"&&(delete ae.width,delete ae.height),Dt=wn,wn==="screenshot")wt(cr,ae);else{var it=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?it=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(it=(!De()||It())&&We()),it?(Dt="screenshot",Ht(cr,ae,Xt,wn)):vt(cr,ae,Xt)}}};function De(){try{return window.self!==window.top}catch(It){return!0}}function We(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ze.getViews=function(){return oe},Ze.isJavaInstalled=function(){return!1};var nt=function(It){var wn=function(zn){var Ot=JSON.parse(zn),jn=function(_e){return _e.type=="G"||_e.type=="E"},cr=Ot.elements?Ot.elements.filter(jn)[0]:Ot;if(!cr||!cr.url){bn();return}ae.fileName=cr.url,qe(cr.settings||{}),oe.is3D=!0;var it="https://www.geogebra.org/images/";Ze.setPreviewImage(he||cr.previewUrl,it+"GeoGebra_loading.png",it+"applet_play.png"),It()},bn=function(){ae.onError&&ae.onError(),Jt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},_n=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Xt="/materials/"+ae.material_id+"?scope=basic";ot("https://"+_n+"/api/proxy.php?path="+encodeURIComponent(Xt),wn,bn)};function qe(It){var wn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(bn){It[bn]=!!It[bn]}),wn.forEach(function(bn){ae[bn]===void 0&&It[bn]!==void 0&&(ae[bn]=It[bn])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function ot(It,wn,bn){var _n=new XMLHttpRequest;_n.open("GET",It),_n.onload=function(){wn(_n.responseText)},_n.onerror=bn,_n.send()}Ze.isHTML5Installed=function(){return!0},Ze.getLoadedAppletType=function(){return Dt},Ze.setPreviewImage=function(It,wn,bn){he=It,ue=wn,fe=bn},Ze.removeExistingApplet=function(It,wn){var bn;typeof It=="string"&&(It=document.getElementById(It)),Dt=null;var _n=null;for(bn=0;bn<It.childNodes.length;bn++){var Xt=It.childNodes[bn],zn=Xt.className;zn==="applet_screenshot"?wn?(Xt.style.display="block",Dt="screenshot"):Xt.style.display="none":zn!=="applet_scaler prerender"&&(It.removeChild(Xt),_n=zn&&zn.indexOf("appletParameters")!=-1?Xt.id:null,bn--)}var Ot=ae.id!==void 0?ae.id:_n,jn=window[Ot];jn&&typeof jn.getBase64=="function"&&(jn.remove(),window[Ot]=null)},Ze.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var It=Ze.getAppletObject();return It&&typeof It.recalculateEnvironments=="function"?(It.recalculateEnvironments(),!0):!1},Ze.startAnimation=function(){var It=Ze.getAppletObject();return It&&typeof It.startAnimation=="function"?(It.startAnimation(),!0):!1},Ze.stopAnimation=function(){var It=Ze.getAppletObject();return It&&typeof It.stopAnimation=="function"?(It.stopAnimation(),!0):!1},Ze.getAppletObject=function(){var It=ae.id!==void 0?ae.id:"ggbApplet";return window[It]},Ze.resize=function(){};var mt=function(It,wn,bn){var _n=document.createElement("param");_n.setAttribute("name",wn),_n.setAttribute("value",bn),It.appendChild(_n)},at=function(It){return It&&It!=="false"},vt=function(It,wn,bn){Ae(Fe)<=4.2&&(bn=!0);var _n=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(_n=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xt=document.createElement("div");Xt.classList.add("appletParameters","notranslate");var zn=wn.width,Ot=wn.height;if(wn.disableAutoScale=wn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():wn.disableAutoScale,wn.width!==void 0)if(Ae(Fe)<=4.4)at(wn.showToolBar)&&(wn.height-=7),at(wn.showAlgebraInput)&&(wn.height-=37),wn.width<605&&at(wn.showToolBar)&&(wn.width=605,zn=605);else{var jn=100;(at(wn.showToolBar)||at(wn.showMenuBar))&&(wn.hasOwnProperty("customToolBar")&&(wn.customToolbar=wn.customToolBar),jn=at(wn.showMenuBar)?245:155),zn<jn&&(wn.width=jn,zn=jn)}Xt.style.border="none",Xt.style.display="inline-block";for(var cr in wn)wn.hasOwnProperty(cr)&&cr!=="appletOnLoad"&&Xt.setAttribute("data-param-"+cr,wn[cr]);me&&Xt.setAttribute("data-param-fontscssurl",me),Ze.resize=function(){GGBAppletUtils.responsiveResize(It,wn)},window.addEventListener("resize",function(zt){Ze.resize()});var it=typeof wn.appletOnLoad=="function"?wn.appletOnLoad:function(){};if(!bn&&wn.width!==void 0){wn.hasOwnProperty("showSplash")||Xt.setAttribute("data-param-showSplash","false");var _e=It.querySelector(".applet_scaler.prerender"),Re=_e!==null;if(Re)var Xe=_e.querySelector(".ggb_preview");else{var Xe=Zt(zn,Ot,wn.borderColor,!1);_e=document.createElement("div"),_e.className="applet_scaler",_e.style.position="relative",_e.style.display="block",_e.style.width=zn+"px",_e.style.height=Ot+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),Ae(Fe)>=5?(wn.appletOnLoad=function(zt){var pn=It.querySelector(".ggb_preview");pn&&pn.parentNode.removeChild(pn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(_e),window.GGBT_wsf_view&&$(window).trigger("resize"),it(zt)},Re||_e.appendChild(Xe)):Xt.appendChild(Xe),_e.appendChild(Xt),Re||It.appendChild(_e),setTimeout(function(){Ze.resize()},1)}else{var lt=document.createElement("div");lt.className="applet_scaler",lt.style.position="relative",lt.style.display="block",lt.appendChild(Xt),It.appendChild(lt),wn.appletOnLoad=function(zt){Ze.resize(),it(zt)}}function Be(zt,pn){pn&&typeof pn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(zt,pn.appletOnLoad):renderGGBElement(zt),Jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",pn)}function bt(zt,pn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:zt,params:pn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Tn){Be(Tn.article,Tn.params)}),html5AppletsToProcess=null)},Ae(Fe)<5&&(zt.className+=" geogebraweb")):Be(zt,pn)}if(_n){scriptLoadStarted=!0;for(var Wt=0;Wt<Xt.childNodes.length;Wt++){var yn=Xt.childNodes[Wt].tagName;yn==="TABLE"&&(Xt.removeChild(Xt.childNodes[Wt]),Wt--)}if(ggbHTML5LoadedScript!==null){var On=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');On!=null&&On.parentNode.removeChild(On)}var Pt=document.createElement("script"),Vt=function(){bt(Xt,wn)};Pt.src=St+te,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=Pt.src,Jt("GeoGebra HTML5 codebase loaded: '"+St+"'.",wn),!ze&&(!Te||Te=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Vt()):St.requirejs?__webpack_require__.e(245).then(function(){var zt=[__webpack_require__(40245)];Vt.apply(null,zt)}.bind(this)).catch(__webpack_require__.oe):(Pt.onload=Vt,It.appendChild(Pt))}else bt(Xt,wn);wn.height=Ot,wn.width=zn},wt=function(It,wn,bn){var _n=Zt(wn.width,wn.height,wn.borderColor,bn),Xt=document.createElement("div");Xt.style.position="relative",Xt.style.display="block",Xt.style.width=wn.width+"px",Xt.style.height=wn.height+"px",Xt.className="applet_screenshot applet_scaler"+(bn?" applet_screenshot_play":""),Xt.appendChild(_n);var zn=GGBAppletUtils.getScale(wn,It,bn);bn?(It.appendChild(Qt()),window.GGBT_wsf_view||(It.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xt,"66%"),It.appendChild(Xt),zn!==1&&!isNaN(zn)&&(GGBAppletUtils.scaleElement(Xt,zn),Xt.style.width=wn.width+"px",Xt.style.height=wn.height+"px",Xt.parentNode.style.width=wn.width*zn+"px",Xt.parentNode.style.height=wn.height*zn+"px"),Ze.resize=function(){At(It,_n,Xt,bn)},window.addEventListener("resize",function(Ot){Ze.resize()}),Ze.resize()};function At(It,wn,bn,_n){if(It.contains(wn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(It.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(It)}var Xt=GGBAppletUtils.getScale(ae,It,_n);bn.parentNode!==null&&(!isNaN(Xt)&&Xt!==1?(GGBAppletUtils.scaleElement(bn,Xt),bn.parentNode.style.width=ae.width*Xt+"px",bn.parentNode.style.height=ae.height*Xt+"px"):(GGBAppletUtils.scaleElement(bn,1),bn.parentNode.style.width=ae.width+"px",bn.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(It),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ze.onExitFullscreen=function(It,wn){wn.appendChild(It)};var Ht=function(It,wn,bn,_n){wt(It,wn,!0);for(var Xt=function(){var jn=[];for(Ot=0;Ot<It.childNodes.length;Ot++)jn.push(It.childNodes[Ot]);if(window.GGBT_wsf_view){var cr=window.GGBT_wsf_view.renderFullScreen(It,wn.id),it=document.getElementById("fullscreencontainer"),_e=jQuery(It).find(".fullscreencontent");_e.length>0?(cr.remove(),_e.attr("id","fullscreencontent").show(),jQuery(it).append(_e),window.dispatchEvent(new Event("resize"))):vt(cr,wn,!1),window.GGBT_wsf_view.launchFullScreen(it)}else Dt=_n,vt(It,wn,!1);if(!window.GGBT_wsf_view)for(Ot=0;Ot<jn.length;Ot++)It.removeChild(jn[Ot])},zn=It.getElementsByClassName("ggb_preview_play"),Ot=0;Ot<zn.length;Ot++)zn[Ot].addEventListener("click",Xt,!1),zn[Ot].addEventListener("ontouchstart",Xt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(It),We()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qt=function(){var It=document.createElement("div");if(It.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var wn='.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");}',bn=document.createElement("style");bn.styleSheet?bn.styleSheet.cssText=wn:bn.appendChild(document.createTextNode(wn)),document.getElementsByTagName("head")[0].appendChild(bn)}return It},Zt=function(It,wn,bn,_n){var Xt=document.createElement("div");Xt.className="ggb_preview",Xt.style.position="absolute",Xt.style.zIndex="90",Xt.style.width=It-2+"px",Xt.style.height=wn-2+"px",Xt.style.top="0px",Xt.style.left="0px",Xt.style.overflow="hidden",Xt.style.backgroundColor="white";var zn="lightgrey";bn!==void 0&&(bn==="none"?zn="transparent":zn=bn),Xt.style.border="1px solid "+zn;var Ot=document.createElement("img");if(Ot.style.position="relative",Ot.style.zIndex="1000",Ot.style.top="-1px",Ot.style.left="-1px",he!==null&&Ot.setAttribute("src",he),Ot.style.opacity=.7,ue!==null){var jn,cr,it;if(!_n){jn=document.createElement("img"),jn.style.position="absolute",jn.style.zIndex="1001",jn.style.opacity=1,Ot.style.opacity=.3,cr=360,cr>It/4*3&&(cr=It/4*3),it=cr/5.8,jn.setAttribute("src",ue),jn.setAttribute("width",cr),jn.setAttribute("height",it);var _e=(It-cr)/2,Re=(wn-it)/2;jn.style.left=_e+"px",jn.style.top=Re+"px",Xt.appendChild(jn)}}return Xt.appendChild(Ot),Xt},ln=function(It){return It=It.toLowerCase(),It==="html5"||It==="screenshot"?It:"html5"},Nt=["web","webSimple","web3d","tablet","tablet3d","phone"],gt=function(It,wn){if(Fe=It,wn){ct(Fe,!0);return}var bn=!Pe;if(bn){var _n=Ae(Fe);!isNaN(_n)&&_n<4.4&&(bn=!1)}var Xt,zn;window.location.protocol.substr(0,4)==="http"?Xt=window.location.protocol:Xt="http:";var Ot=Fe.indexOf("//");Ot>0?zn=Fe:Ot===0?zn=Xt+Fe:zn="https://www.geogebra.org/apps/5.2.814.0/";for(var jn in Nt)if(Fe.slice(Nt[jn].length*-1)===Nt[jn]||Fe.slice((Nt[jn].length+1)*-1)===Nt[jn]+"/"){ct(zn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&bn&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!at(ae.showToolBar)&&!at(ae.showMenuBar)&&!at(ae.showAlgebraInput)&&!at(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?zn+="webSimple/":zn+="web3d/",ct(zn,!1)},ct=function(It,wn){if(It.requirejs){St=It;return}It.slice(-1)!=="/"&&(It+="/"),St=It,wn===null&&(wn=It.indexOf("http")===-1),$e=wn,te="web.nocache.js",ee=!1;var bn=St.split("/");bn.length>1&&(!wn&&bn[bn.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):Nt.indexOf(bn[bn.length-2])>=0&&(te=bn[bn.length-2]+".nocache.js")),bn=It.split("/"),Fe=bn[bn.length-3],Fe.substr(0,4)==="test"?Fe=Fe.substr(4,1)+"."+Fe.substr(5,1):(Fe.substr(0,3)==="war"||Fe.substr(0,4)==="beta")&&(Fe="5.0");var _n=parseFloat(Fe);_n!==NaN&&_n<5&&It.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_n+" is deprecated. Using version latest instead."),gt("5.0",wn))},Jt=function(It,wn){window.console&&window.console.log&&(!wn||typeof wn.showLogging=="undefined"||wn.showLogging&&wn.showLogging!=="false")&&console.log(It)};ae.material_id!==void 0?nt(sn):sn();function sn(){var It=Ee;Te!==null?It=Te:parseFloat(It)<5&&(It="5.0"),gt(It,!1),ze!==null&&ct(ze,$e),Ve=!0}return Ze},GGBAppletUtils=function(){"use strict";function Ze(){return window.GGBT_wsf_edit!==void 0}function Ee(Ve,Te){Te!=1?(Ve.style.transformOrigin="0% 0% 0px",Ve.style.webkitTransformOrigin="0% 0% 0px",Ve.style.transform="scale("+Te+","+Te+")",Ve.style.webkitTransform="scale("+Te+","+Te+")",Ve.style.maxWidth="initial",Ve.querySelector(".ggb_preview")!==null&&(Ve.querySelector(".ggb_preview").style.maxWidth="initial"),Ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ve.style.transform="none",Ve.style.webkitTransform="none")}function ae(Ve,Te,ze,st,Qe,Ue){var St=null;if(Ue!=null&&Ue!="")for(var $e=Ve.parentNode;$e!=null;)if((" "+$e.className+" ").indexOf(" "+Ue+" ")>-1){St=$e;break}else $e=$e.parentNode;var Dt=0,Fe=0,te=0,ee=0,he=0,ue=0,fe=0;if(St)Dt=St.offsetWidth,Fe=Math.max(st?St.offsetWidth:0,St.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Dt=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Dt):(Dt=window.innerWidth,Fe=window.innerHeight,te=window.innerWidth),Ve){var me=Ve.getBoundingClientRect();me.left>0&&me.left<=Dt&&(Qe===void 0||!Qe)&&(document.dir==="rtl"?(he=Dt-me.width-me.left,ue=te<=480?10:30):(ue=me.left,he=te<=480?10:30),ee=ue+he)}if(Ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=Ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,fe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,fe=40)}}return Ve&&((ze===void 0||!ze)&&Te>0&&Te+ee<Dt?Dt=Te:Dt-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze===void 0||!ze)&&(Fe-=fe)),{width:Dt,height:Fe}}function oe(Ve,Te,ze,st,Qe){if(Ve.isScreenshoGenerator)return 1;var Ue=st!==void 0&&st,St=Ve.noScaleMargin!=null&&Ve.noScaleMargin,$e=function(be){return be&&be!=="false"},Dt=$e(Ve.autoHeight),Fe=ae(Te,Ve.width,ze,Dt,Ue&&window.GGBT_wsf_view||St,Qe),te=parseInt(Fe.width),ee=Ve.width,he=Ve.height;if(ee===void 0){var ue=Te.querySelector(".appletParameters");ue&&(ee=ue.offsetWidth,he=ue.offsetHeight)}var fe=te/ee,me=Ue?1:Fe.height/he;return ze!==void 0&&!ze&&(fe=Math.min(1,fe),me=Math.min(1,me)),Math.min(fe,me)}function Pe(Ve,Te,ze){var st=1,Qe,Ue=!1;if(Ve.hasOwnProperty("allowUpscale")&&(Ue=Ve.allowUpscale),Ve.hasOwnProperty("scale")&&(st=parseFloat(Ve.scale),(isNaN(st)||st===null||st===0)&&(st=1),st>1&&(Ue=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue=!0),!(Ve.hasOwnProperty("disableAutoScale")&&Ve.disableAutoScale))Qe=oe(Ve,Te,Ue,ze,Ve.scaleContainerClass);else return st;return Ue&&(!Ve.hasOwnProperty("scale")||st===1)?Qe:Math.min(st,Qe)}function Ie(Ve){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ze=Math.min(window.innerHeight,document.documentElement.clientHeight),st=Ve.getBoundingClientRect(),Qe=(Te-st.width)/2,Ue=(ze-st.height)/2;Ue<0&&(Ue=0),Ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Qe<40?Ve.style.left="40px":Ve.style.left=Qe+"px",Ve.style.top=Ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ue<40?Ve.style.top="40px":Ve.style.top=Ue+"px",Ve.style.left=Qe+"px")}function ke(Ve,Te){var ze=Ve.querySelector(".appletParameters");if(ze){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==ze.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ve)}if(ze.parentElement&&/fullscreen/.test(ze.parentElement.className))return;var st=Pe(Te,Ve);Ze()&&ze.setAttribute("data-param-scale",st);for(var Qe=null,Ue=0;Ue<Ve.childNodes.length;Ue++)if(Ve.childNodes[Ue].className!==void 0&&Ve.childNodes[Ue].className.match(/^applet_scaler/)){Qe=Ve.childNodes[Ue];break}if(Qe!==null&&Qe.querySelector(".noscale")!==null)return;var St=Te.id!==void 0?Te.id:"ggbApplet",$e=window[St];($e==null||!$e.recalculateEnvironments)&&Qe!==null&&!Qe.className.match(/fullscreen/)&&(Qe.parentNode.style.transform="",!isNaN(st)&&st!==1?(Qe.parentNode.style.width=Te.width*st+"px",Qe.parentNode.style.height=Te.height*st+"px",Ee(Qe,st)):(Ee(Qe,1),Qe.parentNode.style.width=Te.width+"px",Qe.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ie(Ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ze).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:Ze,positionCenter:Ie,getScale:Pe,scaleElement:Ee}}();__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 Ze=n.location.search;return Ze.indexOf(J)!=-1||Ze.indexOf(K)!=-1}function q(Ze,Ee){}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(Ze){var Ee=s[L].bindings;s[L].bindings=function(){for(var ae=Ee?Ee():{},oe=Ze[webModule.__softPermutationId],Pe=O;Pe<oe.length;Pe++){var Ie=oe[Pe];ae[Ie[O]]=Ie[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var Ze=o.createElement(Q);if(Ze.id=L,Ze.style.cssText=R+S,Ze.tabIndex=-1,o.body.appendChild(Ze),t=Ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ee=document.compatMode==U?V:W;t.write(Ee+X),t.close()}}}function w(Ze){function Ee(oe){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ie=Pe();if(Ie){oe();return}function ke(){if(!Ie){if(!Pe())return;Ie=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),Ve&&clearInterval(Ve)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var Ve=setInterval(function(){ke()},$)}function ae(oe){var Pe=u(),Ie=Pe.body,ke=Pe.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=oe,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Ie.appendChild(ke)}Ee(function(){ae(Ze)})}webModule.__startLoadingFragment=function(Ze){return C(Ze)},webModule.__installRunAsyncCode=function(Ze){var Ee=u(),ae=Ee.body,oe=Ee.createElement(_);oe.language=ab,oe.text=Ze,ae.appendChild(oe),ae.removeChild(oe)};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(Ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ze){var Ee=c[Ze];return Ee==null?null:Ee},r=d,webModule.__errFn=e}function B(){function Ze(Ve){var Te=Ve.lastIndexOf(rb);Te==-1&&(Te=Ve.length);var ze=Ve.indexOf(sb);ze==-1&&(ze=Ve.length);var st=Ve.lastIndexOf(tb,Math.min(ze,Te));return st>=O?Ve.substring(O,st+P):W}function Ee(Ve){if(!Ve.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=Ve+vb,Ve=Ze(Te.src)}return Ve}function ae(){var Ve=__gwt_getMetaProperty(wb);return Ve!=null?Ve:W}function oe(){for(var Ve=o.getElementsByTagName(_),Te=O;Te<Ve.length;++Te)if(Ve[Te].src.indexOf(xb)!=-1)return Ze(Ve[Te].src);return W}function Pe(){var Ve=o.getElementsByTagName(yb);return Ve.length>O?Ve[Ve.length-P].href:W}function Ie(){var Ve=o.location;return Ve.href==Ve.protocol+zb+Ve.host+Ve.pathname+Ve.search+Ve.hash}var ke=ae();return ke==W&&(ke=oe()),ke==W&&(ke=Pe()),ke==W&&Ie()&&(ke=Ze(o.location.href)),ke=Ee(ke),ke}function C(Ze){return Ze.match(/^\//)||Ze.match(/^[a-zA-Z]+:\/\//)?Ze:webModule.__moduleBase+Ze}function D(){var Ze=[],Ee=O,ae=[],oe=[];function Pe(Ve){var Te=oe[Ve](),ze=ae[Ve];if(Te in ze)return Te;var st=[];for(var Qe in ze)st[ze[Qe]]=Qe;throw r&&r(Ve,st,Te),null}if(__gwt_isKnownPropertyValue=function(Ve,Te){return Te in ae[Ve]},webModule.__getPropMap=function(){var Ve={};for(var Te in ae)ae.hasOwnProperty(Te)&&(Ve[Te]=Pe(Te));return Ve},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ie;try{Ie=Cb;var ke=Ie.indexOf(Db);ke!=-1&&(Ee=parseInt(Ie.substring(ke+P),$),Ie=Ie.substring(O,ke))}catch(Ve){}return webModule.__softPermutationId=Ee,C(Ie+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})()},55322:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Ax:function(){return ke},Ds:function(){return Ve},KI:function(){return ze},SI:function(){return Ie},f1:function(){return Pe}});var oe=ae(12242);function Pe(st){let Qe=!0;if(st.length>0){for(let Ue=0;Ue<st.length;Ue++)if(st[Ue].compile_success==0||!st[Ue].compile_success){Qe=!1;break}}else Qe=!1;return Qe}function Ie(st,Qe=""){let Ue=[];for(let St=0;St<st.length;St++){let $e=st[St],Dt=Qe?`${Qe}/${$e.name}`:`${$e.name}`;Ue.push({title:$e.name,type:$e.type,isLeaf:$e.type!=="tree",key:Dt})}return Ue}function ke(st,Qe,Ue){for(let St=0;St<st.length;St++){let $e=st[St];if($e.key===Qe){$e.children=Ue;break}$e.children&&ke($e.children,Qe,Ue)}return st}function Ve(st,Qe,Ue){let St;return function(){let $e=this,Dt=arguments,Fe=function(){St=null,Ue||st.apply($e,Dt)},te=Ue&&!St;clearTimeout(St),St=setTimeout(Fe,Qe),te&&st.apply($e,Dt)}}const Te=!0,ze=oe.Z.API_SERVER},44399:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Fe}});var oe=ae(99571),Pe=ae(59301),Ie=Object.defineProperty,ke=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Qe=(te,ee,he)=>ee in te?Ie(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ee]=he,Ue=(te,ee)=>{for(var he in ee||(ee={}))ze.call(ee,he)&&Qe(te,he,ee[he]);if(Te)for(var he of Te(ee))st.call(ee,he)&&Qe(te,he,ee[he]);return te},St=(te,ee)=>ke(te,Ve(ee)),$e=(te,ee)=>{var he={};for(var ue in te)ze.call(te,ue)&&ee.indexOf(ue)<0&&(he[ue]=te[ue]);if(te!=null&&Te)for(var ue of Te(te))ee.indexOf(ue)<0&&st.call(te,ue)&&(he[ue]=te[ue]);return he},Dt=(te,ee,he)=>new Promise((ue,fe)=>{var me=De=>{try{Ae(he.next(De))}catch(We){fe(We)}},be=De=>{try{Ae(he.throw(De))}catch(We){fe(We)}},Ae=De=>De.done?ue(De.value):Promise.resolve(De.value).then(me,be);Ae((he=he.apply(te,ee)).next())});const Fe=te=>{var ee=te,{children:he}=ee,ue=$e(ee,["children"]);const[fe,me]=(0,Pe.useState)(!1);return Pe.createElement(oe.ZP,St(Ue({},ue),{loading:fe,onClick:be=>Dt(void 0,null,function*(){try{me(!0),yield ue.onClick(be),me(!1)}catch(Ae){console.error(Ae),me(!1)}})}),he)}},95487:function(Ze,Ee,ae){"use strict";var oe=ae(86204),Pe=ae.n(oe),Ie=Object.defineProperty,ke=(st,Qe,Ue)=>Qe in st?Ie(st,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):st[Qe]=Ue,Ve=(st,Qe,Ue)=>ke(st,typeof Qe!="symbol"?Qe+"":Qe,Ue),Te=(st,Qe,Ue)=>new Promise((St,$e)=>{var Dt=ee=>{try{te(Ue.next(ee))}catch(he){$e(he)}},Fe=ee=>{try{te(Ue.throw(ee))}catch(he){$e(he)}},te=ee=>ee.done?St(ee.value):Promise.resolve(ee.value).then(Dt,Fe);te((Ue=Ue.apply(st,Qe)).next())});class ze extends oe.EventEmitter{constructor(Qe,Ue){super(),Ve(this,"url"),Ve(this,"body"),Ve(this,"fullContent",""),Ve(this,"controller",null),Ve(this,"buffer",""),this.url=Qe,this.body=Ue}startStream(){return Te(this,null,function*(){this.controller=new AbortController;const{signal:Qe}=this.controller;try{const Ue=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Qe});if(!Ue.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Ue.status}`);const St=Ue.headers.get("content-type");if(!St)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(St.includes("application/json")){const Fe=yield Ue.json();this.emit("error",Fe);return}if(!St.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const $e=Ue.body.getReader(),Dt=new TextDecoder("utf-8");for(;;){const{done:Fe,value:te}=yield $e.read();if(Fe)break;const ee=Dt.decode(te,{stream:!0});this.buffer+=ee;const he=this.buffer.split(`
`);this.buffer=he.pop()||"";for(const ue of he)if(ue.startsWith("data:")){const fe=ue.slice(5).trim();if(fe==="[DONE]")break;try{const me=JSON.parse(fe);me.data&&this.handleData(me.data)}catch(me){this.buffer=ue+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",me)}}}this.emit("done",this.fullContent)}catch(Ue){Ue.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Ue.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()}}Ee.Z=ze},30828:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Dt}});var oe=ae(59301),Pe=ae(30641),Ie=ae(77019),ke=ae(5269),Ve={smartWrp:"smartWrp___NjRcB"},Te=ae(89081),ze=ae(46133),st=ae(44399),Qe=ae(59301),Ue=(Fe,te,ee)=>new Promise((he,ue)=>{var fe=Ae=>{try{be(ee.next(Ae))}catch(De){ue(De)}},me=Ae=>{try{be(ee.throw(Ae))}catch(De){ue(De)}},be=Ae=>Ae.done?he(Ae.value):Promise.resolve(Ae.value).then(fe,me);be((ee=ee.apply(Fe,te)).next())});const St=`<!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 $e({open:Fe=!0,onChange:te,defaultValue:ee,placement:he,width:ue,height:fe,extra:me,onDynamic:be,showExtra:Ae=!0}){const De=(0,oe.useRef)(null),We=(0,oe.useRef)(null),[nt,qe]=(0,oe.useState)(ee||""),[ot,mt]=(0,oe.useState)(ee||""),[at,vt]=(0,oe.useState)(!!Fe),[wt,At]=(0,oe.useState)(1),Ht={selectOnLineNumbers:!0};(0,oe.useEffect)(()=>{Fe&&(qe(ee),mt(ee),vt(!0))},[Fe,ee]),(0,oe.useEffect)(()=>{nt!==""&&(clearTimeout(We.current),We.current=setTimeout(()=>{const Zt=document.createElement("iframe");if(Zt.style.width="100%",Zt.style.height="100%",Zt.style.border="0",De.current){De.current.innerHTML="",De.current.appendChild(Zt);const ln=Zt.contentDocument||Zt.contentWindow.document;ln.open(),ln.write(nt),ln.close()}},1e3))},[Fe,nt]);const Qt=Zt=>{qe(Zt),te==null||te(Zt,ot)};return Qe.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:at,width:Ae?700:"100%",height:fe||"100vh",rootClassName:Ve.smartWrp,destroyOnClose:!0,onClose:()=>vt(!1),extra:Ae&&Qe.createElement("div",null,Qe.createElement(ze.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:wt,onChange:Zt=>At(Zt)}),Qe.createElement(st.Z,{type:"primary",className:"ml20",onClick:()=>Ue(this,null,function*(){yield be(nt,()=>{vt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Qe.createElement(Ie.Z,{className:"h100"},Qe.createElement(ke.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:wt===1?"block":"none"}},Qe.createElement("div",{className:"h100",ref:De})),Qe.createElement(ke.Z,{flex:"1",style:{display:wt===2?"block":"none"}},Qe.createElement(Te.ZP,{height:"90vh",value:ee,language:"html",theme:"vs",showMiniMap:!1,options:Ht,onChange:Qt}))))}var Dt=$e},44622:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return qe}});var oe=ae(59301),Pe=ae(96536),Ie=ae(77596),ke=ae(93772),Ve=ae(14179),Te=ae(56102),ze={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},st=ae(6767),Qe=ae(90083),Ue=ae(95827),St=ae(30084),$e=ae(10787),Dt=ae(53122),Fe=ae(30828),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,be=(ot,mt,at)=>mt in ot?te(ot,mt,{enumerable:!0,configurable:!0,writable:!0,value:at}):ot[mt]=at,Ae=(ot,mt)=>{for(var at in mt||(mt={}))fe.call(mt,at)&&be(ot,at,mt[at]);if(ue)for(var at of ue(mt))me.call(mt,at)&&be(ot,at,mt[at]);return ot},De=(ot,mt)=>ee(ot,he(mt)),We=(ot,mt)=>{var at={};for(var vt in ot)fe.call(ot,vt)&&mt.indexOf(vt)<0&&(at[vt]=ot[vt]);if(ot!=null&&ue)for(var vt of ue(ot))mt.indexOf(vt)<0&&me.call(ot,vt)&&(at[vt]=ot[vt]);return at},qe=({onFinish:ot,value:mt,streamingStatus:at,cancelIndex:vt,loadImage:wt,onDynamic:At})=>{const[Ht,Qt]=(0,oe.useState)(""),[Zt,ln]=(0,oe.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Nt,gt]=(0,oe.useState)(0),[ct,Jt]=(0,oe.useState)(!1),sn=bn=>bn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(_n,Xt)=>`<mathx data-text="${Xt.trim()}">$$${Xt.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,"`$&`"),It=()=>{Jt(!0),ot==null||ot()};(0,oe.useEffect)(()=>{const bn=wt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${mt}`:mt,_n=sn(bn);if(!ct)if(wt||!at||vt>0){Qt(_n),gt(_n.length),(!at||vt>0)&&!wt&&It();return}else if((_n==null?void 0:_n.length)<4)Qt(_n),gt(_n.length);else if(Nt<_n.length){const Xt=_n.length-Nt,zn=setInterval(()=>{Qt(_n.slice(0,Nt+2)),gt(Ot=>Ot+2)},Xt>10?Math.max(500/(Xt/2),20):50);return()=>clearInterval(zn)}else at||It()},[mt,at,vt,wt,Nt]);const wn=(0,oe.useMemo)(()=>oe.createElement("section",{className:`${ze.answer} fadeIn animated edu_md`},oe.createElement(Pe.UG,{remarkPlugins:[St.Z,$e.Z],rehypePlugins:[Ue.Z,ke.Z],components:{code(bn){var _n=bn,{node:Xt,inline:zn,className:Ot,children:jn}=_n,cr=We(_n,["node","inline","className","children"]);const it=/language-(\w+)/.exec(Ot||""),_e=String(jn).trim();return zn||!it?oe.createElement("code",Ae({className:Ot},cr),jn):oe.createElement("code",{className:ze.codeCopy,"data-text":`\`\`\`${it?it[1]:""}
${jn}
\`\`\``},oe.createElement(Te.CopyToClipboard,{text:_e,onCopy:()=>st.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement("button",null,"\u590D\u5236")),it[1]==="html"&&ct&&oe.createElement("button",{className:ze.runCode,onClick:()=>{ln(Ae({},De(Ae({},Zt),{open:++Zt.open,defaultValue:_e,language:it[1]})))}},"\u8FD0\u884CHTML"),oe.createElement(Ie.Z,Ae({wrapLongLines:!0,style:Ve.Z,language:it[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},cr),_e))},img({node:bn}){var _n;const Xt=(_n=bn.properties)==null?void 0:_n.src;return oe.createElement(Qe.Z,{src:Xt,width:320,"data-text":Xt,onLoad:()=>wt&&setTimeout(()=>It(),500)})}}},ct?Ht:`${Ht}__`)),[Ht]);return oe.createElement(oe.Fragment,null,oe.createElement(Fe.Z,{defaultValue:Zt.defaultValue,open:Zt.open,language:Zt.language,height:Zt.height,onChange:(bn,_n)=>{Qt(Ht.replaceAll(_n,bn))},onDynamic:At}),wn)}},21982:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return nt}});var oe=ae(59301),Pe=ae(6767),Ie=ae(30641),ke=ae(77019),Ve=ae(62957),Te=ae(37568),ze=ae(14566),st=ae(25399),Qe=ae(5269),Ue=ae(71051),St={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},$e=ae(46133),Dt=ae(12242),Fe=ae(25363),te=ae(24092),ee=ae(54872),he=ae(59895),ue=ae(88825),fe=ae(37215),me=ae(89371),be=ae(28424),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmEnCm9VxfDy7M77tvyzwP8pwAfMPG6JtOyLI0e8M7SEi2UTuB7SdlGOi+85+K5NyfEIXBdcrwy4YmENVsVgZQhBBKEPUYQVBNhBSDKMEGGAG8nAlvJuEfoX9+986B8G/g8Bnlt3yBQvk/m6tKxPKWElIhvjrhpk6HjmPkh4+K5L0XUpWTaJVIJpDfU01VVTP6Uaz3OMsXL5En3ZEfZkcwwNZZFBYMCLIDSgnSAkEfiIKMSNFLYMS1akflokuiTb9sjI32vxvxvwouY3HIdrXQtirvZI6XhISyFtB8qAQ8+jaFuQTvGGlQdy5klHcvji+TTV1eA5MVAdw+bgSiGBQslnZ98gj254idsfW8/azduJ/AArCkj5AXYUYGtXj0IsKRFRpInuI31djz/+94D+ewBbi1oO+zLC/SbafYVACWGA6ljFtlGuhyYoJ5PmrNPfwifeezIzmqe+/nyUMlw1cdGhXAZPvAy8sL2Dn6x+kFvuf5KoWMSLIgPaCiOsKMSJIgQqUEH0jd7eJ7+rSf9vAf43AZ4x44hUJlRXSkudbSkHLGFiUWEhXQfpCITj4Qs4/bS3cP4n3suM5mllQ8aHqECMNBkDYfkM9WMD1pDYhPFxFbgI2jt7+PplN3HPmqfxUDhRgAi1lSOEtrRmd6VusKzw3K6uZwp/DfRfBdzUdFBVg5W6XSpO1K5r4RrAwrJ1HkW5FpFtk5mS4TuXfpYTjz/q1UDL1oyAoAxU35vnSpk0pcHr8DCIlTCv2wjSQEooc//Amqc478LLCfL52K21hQ3h6ZQm9fM1gcid1t//Qu4vgf6LgLVla6LwdpQ42aRL7USWjRDahePHoQXLDjmAyy/7Kq0tzeX0KlBloBpMDFThm5swnuAr0MoiMIAV2kG1sfQJyUjhFSSuEGhuS9uQsQXdOzo45+MX09XZg62ZXAOO4znO4cg1akCc2sWft/RfAmwd0LzyeiHEWXrVNVhpRIO2buzWoYJ3vffNXHLJF0gmExMLq5QkikJCZRFYGqCgZAmKKEoISgpzC6NyJgoUUahQZRcV2p3DEFcoHEeQdGxc1yKdsGBklLPO/CI7trZjKYmlV0nnbmXMod37xt171n74z8X0nwW8qGnlV4Tg20KDVBaaUw1JWTreHKSSnP3Jd3PBVz4BwkNoV1cRSoVEkSSMQpNW9c3Hpei55GyBHyiCUkhQivBDRRhGhKHShiJSEqUBYBwIxwLPwoB2XZuE55BM2tilPO9/27n09/QbwEILF2Pt+F4peVH34PpL/5Rr/0nAixqXH2u5zkNKKS8GLBDCMq4szVNBIpXi6eeuIZnU7+m1TaBUChkKolCD1YAkYQh+CEVlUVKCgq8IwoggVJQkBKEkkIpASqSM3VqftC0UtiVwLIHtQsISeAkN2iWRsimNDHP2u85jfHjMxLP2Kk1i+rtC4QdSvaVv+NknXgv6dYC1qEgkrOeEYM6kj4JWUZYBrC1tEwYR9zz2YxYsaCxTq15Zj1IxFVtYgw5kDCyMKPmCotRnoigF4EeSUiTNYvjGExSGwbXoEjoeNWgNGFxb4LgC17HxEhbJpEOyKkH71m189swvmrwcM7wmMs0fBnhbTskV2eyGV4mT1wE+oGnlD4UlPvuqldFkoonKsgxgW189lwd//1OmTUvHwl8fUUT4pRS5QrwgYRCD9gNJMdBgoRhElPRjvQihpBRa8WckhFIRSjmRwmxhofWLbWvyEniuZVzbSzmkkh7pmjR3//JWrv/RL3BMmiwD1lEXu/mPdg+t/9xrUv7k00VNhyy1LPEsiEkGipOMuWrAOh3pmF64dA433/ktXEeThf6IROkYlorh4SryxYgoCAj90AAuBRG+DwU/pBiI+LlZDEUh0gugCCMNOFZeOkg0c1iWtmxsZU1cnmeR8GySSQ8v5VE1pYoLPvwF2ra2mQXXXzbkFeeUkpRqVVd2w+YKyldZeHHzytv/KHJONRBeY3sTyzo7CptIKj507rv4wkXvQ4gyOxKZFdbEUcq79A06BL5vQPu+BisparAlRck8ji2tb0UNPFT4kSYwHcsxaA1Wx7CjLezahrw0WHNLOngadFWCkaEsXzzrcyhdgGjyMildovlVwR27h9a/53WAD6xfthjPew5wK5XbxIfMCzFp6ZXQAH76yws5/i3Ly9bVB9EuFBori1DS058gOxJbOQh8wlJAUQMtRhT8iEKhyPjoOGPZImMDBYpDknDEQhZtCIxt0fLc8hRuRmLXSpxGi1RDmkxtNalMFYmESzKdIF1bzR2/vIN7fnl7XGrroDA5XXsdgRWEyzvHN71YEXQG1+KW5Vcr5XzUZFxh6Y9O+Hps3ZipIY65ux7/AfsvmGEsHDNGhBJhXOlEktyoxbZOCEs+MvQJfZ/c2DgjPeOM7YSRdo+hfofsUMRgYZzxIE9O5imqIjKKGddBkJIJpogMtV4NU6uqmVpXRdW0EGYP4swXVM1sJF1Tg530+OwH/4tivlAGXDkvpVPXNZ3Dz31sAvDBtQfXBgm3XQlVG3uzZrpY31bAWtLWRkaYOLZ4ZP3PaGyYMqGIK3rJ5EJdyAewZXtEb98Yhd5BRjZbtL0IG7r6aR/pZk80wJgcJFQ5lCoZd1RaZGrxUVFQJsUIbGVoEk+lqXUaSMta5icW8obph9C6NEQeOU71wmbW3Pkwd998B5ZmOm04w9YGzfCoiuYMDz8/bCJ1cevK9wklVms5qPOspal9nxjWltVX7S9SKdyEx++ev450popcQVHl5RB27NLCANaFvOKFJ3v43TURm9pGeGrP83SVdlKSI0SygNKfM8oojrf4cdzmiWOw/HziPrb67Gl1HHPYwYwOe2zetJcZzOEDS99B9aHjcITNRZ++GL+YL1cj8eIZLEr+x+7sc6sNrIOaV94ihXjvRLzv4+yGn3WRIGHe/q0c85ZjqJveytHHLGHLb9dywDtOIjcwyIpFOr41aK1tJbk9JW76TIFfrHuS5/NPUQqzKBVU6sAy0DKwSvjElU/5PW0hXWNVcmxMjnVVad581DL2XzQDy3W571dt9PWP8OkFn2L+qiS39q3m6T9sNN/TgWnWzjA2v+rMbnyfWMxiTzSlO5WgKabzcjmnDWryr85vsHTFQq791XcZ2rOXfG0royLNzvXbUR0b6ZWtnH3SFGobExMn/OSVeS74n0dZl3+YKBqLLVexVnwWE8/1ceLycRKwMYqx/D51o66enBTHrVjMshWzSdck+d1Tm3h5vY9Dnu/P+SW7ljzAZY/+HEvo/KT5SP+O1ttqoHPEnymWNq44RDnWs/qtuDYox2/5nPTzZNrj9kd+yozpHmE+4slnh9iyxyYYHyO35fdkGvbj4ANTHH/yQnOA4kjIJad286MXf0Ix2BuDq4gTA7xS+2pZZVTCZDE8wZWV13Q8TqwQs1jB5d5X2PauRyjsl2Pjpld46LHNJEnx1aorSBzcxXc2XYptxUtYAayUUkKxSixpXX6OUNa1sqyXLV0glF3MHFvC208/jv/+8acgHMbfm+fZdZ3c/3QPo2M5Rrt7mD+3Gc8SfOlrb8ZybbY/VeC8j/yOR7K3xVqx0qiruOuENWMgsQ337YFMeloMtmJlySxW8uXkp+h/z6OIJovNL+3kzgfXUus28EnnIsSiXVy381qTvyud4Mp6SSXPEUumH3IZkvNjCo5/3nFco5v9oGQ08fd/fiFvPWUpws8x3j/Cti3dXHvds4znS4wMFVg4r4HCH+vXb//w7dTUV/Pwz7Oc/51b2Zp/Nhbzkc6L+7q0qXonLHdUMuTQjOBHe3XNJViekqwraE6ofGbSyo5wWDFvNkcetYim2iZeWr+LO9c9jiem8smqC9nV8jBP9D5lio9XX4wZfyyWtq58ANRJSlqmCjJJu5x39bpHQcjq+y9j2Yo6A3ika5iO7X1c8YOnTMexUIxobq5BSZsvfe145ixq4hdf6+Kim26mt9hmWjD62LqcnDTiPi6MICkUVQIGywztmAQldP1Fkw2dmtDL1nCE4JAFszn8sANpqG7g+cd3c9dLTzDNaeU/Z36Zu+QV9I30T4TIRL8/rpfXiKWth2xTSizQymaiC7ZPStKl3q/X/IQlB2UQpRwj3cPs2t7HVT94lvFCQCkIqZ7iknTTfPi8VSxbOYPLLtjGf99xG0OF7okUYzJAJQ1MBPG++nXfRYgBHpkJmeVKVmfdCWO5luCIxfM4ePl8kqkk9zywge27e5iVWMh5qz7IDd1XMpytFEj7kFa8ZNvE0pZDhhH2lH0IeiIz6NPR2vaqWy7h6GNnQCHHaM8IHdsHuPmKVxgbg1IoaJxhExZ93vXBAzj0qJn88BvP8f1b72eo0DOZal8bvxNEVAH9aquXxX85wisxLHAtWD5/Ogcvm08QSe5+aAOFUsSS1CF84ORj+MX6WxgcHNqnFpj8XcuyRrSFI5SRTxMWqHi/iTSp+Nhn3sunv3gSanSY0b4xunaOcM9Ve8mNOESRItmYN+LqrWfOYPkRTVxz+Xq+94tHscUQpVBXR7o8jMpFviSasPQk+8b+/tpqdd/XJh/rls/s5jpDwbv7Rki6CY6sfQMnvG1/rrr3VsYLufinYsExGcqCUMdwJIRj2ZZFGAam3rX2yRw6Lc1fuB+3rrkUkR1guC9H185xnrklojCUohSWkPUDOIV6Tjw3xYIlU3j4gZf44rfuJZ0ooCJBoNs9uhoKJb55rLscklBGRrnpm7mWF6Ii/iMVlTNG5aQnF0SHoD43XSvXedWcvPBIFixu5ap7b4vFihERZaKs0KNSoVjasnJECLvG81x8P5hY50oZrn80+mM9e+H/+zj/8Z5VjPeOsX3DKO2P1OKP2/QO91M7R+EPJXn75y0aW1IM9Gd5/9nX0p8doT6ZIjQ9LoGUcTvHjJLi3pOxdvxYy9r4BM1VRObzUoYUQp+SdqFypVxJVRVCmpVp5P3HHUtH/yhPvrK2LDrKyS4mjzi5KaVdeuU2UAvitBSLjrg8LCsuU4jrT1v86Gef5/AD5tG+TjKyuQHfz7Mrv5MGpxWrPstRpydIpB1T1n31wv/lurs3Mau6ARE5RnUasLoXbYBKYvvFwPW1Yk8t+o0cFFoLS0ICssUcfqQbvvGIxkAQkHQs5tdP44xj3shNv32MUlQoC5mywjK/U34s2CYOaln1gIKTzPdNM24fTb9PytcupI9w2MqDCYcTaNny+S+cgVA+3ZuKHHh0grrWNLYjzGDi5RfbOef862nvLrAgMRcRJSASRCIi0hBEaCCG5nmAlJHpY5XsuJEQNxa0HtYWkBSjAnvyo3F620dt1qdTLJ83nca6On6/aRuWjsdXUUG8oGWBs0YsaVl1mUCcb14wDbo4zie0jXEzU46bHC21J5SbKMsO2p+vfuZ9TG1OMzQwRuO0epJTEli6CSDg6qvv5YqbnqSvT7FYLqdWthIQElEiFD6BVSQURQIiPjGnn1XNfZy5bg6+W4rdV7dskAhLdyUD9hZGGQ/GyyenSHseVa7FGW9axeZXeuno0zJWGmPEdXq5oVcRAIofiyWtK8+xsK6N345brkZRlgnEEInW2Er3suLupV6AMIp402GraErP5bQPLaGmJsFwT0DzrHq8Ws34EUHB55rr7ubXD26grSdParyFOWo5U2nBwsGnYG4lCghRwrXy9CmfwC0Q2ppAA5QIwPaxhE8+ytE7vgepfNIJl7pkhtbmNCcesYTV96wnMiRohmwGdHyZZGml5EfE0pYVhwjhPDvpz7Frm9RR9n2zEKaojCcQlS0Li2bMpHHmaWSmzOCjpxaR+ZRpstU3ZvBqhGmyB37IY4+u5ZEn19Leu4euoRyjo4JUroX6cBZ1qok0NdqO+AZ+kSJ5AidPYJWIrALKziGcHKGVY5QhWpqqSNouVUmbY1fM5/mtPTz7QhtCu7PxDB1Wmqu1OxuZFgeqVKtMeWi3ZnYD0/bNhYY5y36tdfVEWWq+q1OCZfrIs1qWMJCFKqeXt644nY994WgGO8eY2jwFy5UEfkB+XNK/26dtRwcvd26lZ7CDwdwg2dwY2VyJ8ZxFWHIhSKAiG6W0stLbIxTCCbEdHy8RkKmGhvoUtVUJZs9oZFptHZ1dOX7z4NNgheV+tpwc9slgErBSA53DpZnGf5e1HnaLQr03JmMrHoSZyVZcOcXeod20wgaT1lblmNafiELJ2e9+Dx8983TGOlzqp9l47TaJK6sYmeuzd35ANikYLUVk8zmG8oMM5fvJ5nsZK+wlr6uxMI8iMHGrCVDvlEglXVIJj0wyRU2qhrrkVBoTM1mz7mke2vA42PGoLhJxp1Kf8KRLV0hL/Kozu/59ccej6dD3Y3OzsXvZ9SdbPNqd9Zd0JzFOV6YYMA29yiQ7nurrVKLT5bRMK6cdcwbHzj6O/TfWkGq2EEVF9BIMD0L/NMnAfpLReovRKou9NYKuamifAnszktDWw+8QrySZMxaxbChiWiGgiohq3yY1rLj08SvY1PccthMirRKogKgsNkwaihvU8VmZ3B5Ntnh0E09lvHYlRW1F7Uwmd50Y4laLIS7zA3G5FudqbflK+abb0gIZWUSRRdKuY8XsIzg++QaOql3KlGkJqiyBpWdKVYrxALY2K848RTJQLYjSkZ6C6/b3pDcFFoe8KLjiPsXMnM/m7i38z+9W0xV2ouwiyikaYtMsrgGbxGocMLZcOSUNI/25nSObsxMZ6+AZq66W0vqoBhx3PSoleVwyGqKqWNRIz3g2UM7qplnZPGMax59wNDPqZuIEU8iOuvQMF3h+8BUOm9vCUy81kRmaxYKaamY0ZaibbvP0CYLVRylG9cjf5NDyvTmW3kQiOPfRAstv3sANjz7Onv5ehFVAOmMxYFunMK0QFaFp6+i/srSs+J2U13QOb5hs08ZuvXIJtr1RxYwxcdm3kADtunFeVnqaqO/1ZrMw5MR3H8u3v3Mh6VIKui3kiKJ7T4Gt3R7rLZcrZw4z/sgrjK7OIUaTCDuFXRsRTJXwnma8WQ4i5SAbM2Zt68aKpF/JMvr4ehqe3E5QGjFpS4pxsMYNWCl8sOJxuwFrtETsj+ZiNIQMZOCv2D3+gtnq9CpNclDL4bcr5KmVXFxx6zgXx3NiIwSEZlL983GDT293WPPUdXR3ZJlZN52awRrIxymhb0+JV7Yk2BY6XHsQrNu1m7qf7qFQdAhG95pOZ3T4VGw3IpOReOmEGY0eZOUQJYclxak8/IcbGRvpwqKAtPIokUfZQdx3toxei9vLZhgQNxr0fbmdcUfH0LOvH7VocHqY5tn2a4Zpk/Fp4rW8eqHuuOoBl+1w/LFvpKWpidtueo6pDVV85Qunc/iyg83GEz1J6G4v0b+xlj2FNLcsFDyWgTc9IykWfPoLRUZtKBLhpm3GSgUGdr5MJtjL/jObSKkGzkq1ctUz32JwqBOlCUqLERWgdNoy45QoLjyEVuTlHpkBrkoR8s8P00yKmn7oD5WaHJfqr8dyvdyf1sNqx+YTnzuVk088knA0yaZ70ty5+jFyuoupxYFq46S3n8KX/vMwQl9RKob0do6Rfa6ZbGEKv291uKcBTumGXa2QfaqD3t695KekYd4cVMFl18YXSOV6aFx4IIe6MzjF2c2lD1xEvjSEsPVOgdi62uO09taAdbFR2SdiLA0/6hha9+fHpfoTeiCeSTrPKdScyfgtV9OWoLZxCj9bfQHzZzUw3pVnw5DPwFpF/7r9uOqJ+1DFdgqFnVQ5czn/k4fzgTMWQzFNKS/o6upl4OVG9ham8ezUFP+71GJwlWDWmjHmPVRkLILt/ij5A6cyJVuF//JepjY4HFZVx/FCkZm1iwe3385v73/QKNw4RjXY8nhGb5CbKAdV+wjR8r86ENeglzSvPM6y7Af1locKC2vwuqS79rZv0nTkHKbuGad/Wze7erP07B5i+MWl3PjYIHsLXQxnH8NRPvPrlnL5Zcczd24rdlDHWHGE7a900bk9za+f3sqgX2L8HW9j1zGzKXiaXiWWFWKPjSA6x/GiOo7synBoyUakIzIdG5i+1KIn187VV9yI1KMdPZMuN91N4RPnXR8VnbhreP3rdum9tqcywc5Lph/6FWS8qcW0epRk6aoDuPrOSxkvZXE6e+h8uZuenix9vVkGdrvc9XAfW4pJlL8XObqFZnsBK1fW8ZMfno7lpCBy2LalnTW/7WHr7iJ+YOF4GapbZrM+KRhIeCjLxQ3VHzf8CRJKcpQlWZTwqCsGjPg72NXRy+nvO5zH1z/PLTffZfaBRFqF6p0DdszCoYou6siu+9s3tZRRW0taDr1eCc7Sw7UgDPnSxR/nbZ88mdrcHvbu2M2uV3ro6Rqir3eEnt1Fnl43zkvd7UTSYVwOUE8LJxw9m/M+ejTz5jdhWS5rf7eDX93bTnVdHTv2CNPqqUulmOYUTHdDRS46szq2S3U6RUNdmro6G89VjI2Mml1Caddj9vJmvvfjG+np6o1T0WQf+sad2Wf+/m1LGrTemFYnoztQ4iRden3v++dQlUlRk3ForE7Rtq2L3t1ZurqzdLRHbN+VY/2Ol0y6yoWjtCTrWbFsJjNbZ/Dlz55g9mJdf93z3PnEWs79yFv5zW97EQSm6d8oPDwnQdtQmrpkC8LKYDkWdtRHbbqfpuYEgZ4jlwLsMZ+Zi2bSOd7NHXfoeNZ7x0ztu6aU5R/emGYMfVDTQVVYVbdjqxMfXn89NRmb7Vs2k93ZTVQI6e7K0tExRNsOj2JB8sgLa4kim7FokGluAzXJVoa9Dh674UtYtstVV27gqR3Pc8bJx7JxYw+W7eAnG/CppeDUsyvVTCn06F82lZrOMfbLjjI7M84C0UFCFk1Hwx/K4XmNpKaX+Mm1vy6TF2vGR8dO6+ef2HpYCWht6XrFld/4+mln6wn/KR98M+vu30CYK7KrfZBXthXo7AjNTpqNbdtpG+gnkDlqnVqy0TAOLqsvO4t5c1ro7S8wf2E9N9/xErftbaA0mGNnQyPFqiqzHYrWVjhsoVYo0JgBJwlt7bT27Gb+3t0samlmrrsXNZqHouD6Rx8gwr+hNMy5f2nLYQXLnyWtfeVlJaZ3tT1zwcz9pl88sGOL2/fyHm66YSP7zWymo3OY3JCOP4exYsR9G58hUFlSVgZfKeZNaeCcs1bwpjcuxUokqJua4sZbtvLQy+Os78szXl1D1NAM6SpUcwMctxyyWkJaIBOwfisi209193amjw/yjtlNzJ6doDDiBz+/+b6LXxl54jv/0u3D+4Jv3/jQsbXVxes2/qFz7o7NfUZUdLSX2N4+TlJUM712KvdtfprBsYG4nFQOGc/hrPcs47R3HoqdSNI0cwqrV7/EExsH6LRqIeWRsAVB0iNXO5P2BQvItWhWV0wdyjF/82aSbgkVSYb3+hxnD7NoblVbOs05Z339vNfttvsTxpp46e+x8GRBMfTwlHWPtX+jZ+fgeS+/PJzY3VUkLNm4YS1JK8n69q1sH2inoEaotmvJZOAT71/FGw47ADuVonVuPWvu3c0TT3ejogAVCFI1VTy6fZjISuM1TWfPygOwizAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",De=(qe,ot,mt)=>new Promise((at,vt)=>{var wt=Qt=>{try{Ht(mt.next(Qt))}catch(Zt){vt(Zt)}},At=Qt=>{try{Ht(mt.throw(Qt))}catch(Zt){vt(Zt)}},Ht=Qt=>Qt.done?at(Qt.value):Promise.resolve(Qt.value).then(wt,At);Ht((mt=mt.apply(qe,ot)).next())}),nt=(0,oe.forwardRef)(({onUpdateNum:qe,onSave:ot},mt)=>{var at;const vt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[wt,At]=(0,oe.useState)(!1),[Ht,Qt]=(0,oe.useState)([]),[Zt,ln]=(0,oe.useState)(null),[Nt,gt]=(0,oe.useState)([]),[ct,Jt]=(0,oe.useState)(0),[sn,It]=(0,oe.useState)(0),[wn,bn]=(0,oe.useState)(!1),[_n,Xt]=(0,oe.useState)(""),[zn,Ot]=(0,oe.useState)(0),[jn,cr]=(0,oe.useState)(0),[it,_e]=(0,oe.useState)(0),[Re,Xe]=(0,oe.useState)(0),[lt,Be]=(0,oe.useState)(0),[bt,Wt]=(0,oe.useState)(0),[yn,On]=(0,oe.useState)(0),[Pt,Vt]=(0,oe.useState)(0),[zt,pn]=(0,oe.useState)(be.Q),{contentRef:Tn,value:gn,status:Mt,open:Un,close:Yt}=zt,on=(0,fe.Z)({contentRef:Tn,status:Mt}),{openProgress:mn,closeProgress:er,CreateProgressModal:Sn,progressOpen:ht}=(0,ue.Z)();(0,oe.useEffect)(()=>{Zt&&yr(),Zt===!1&&(Yt(),qe==null||qe(),Qt([]),Xt(""),Ot(0),cr(0),_e(0),Xe(0),Be(0),Wt(0),On(0),Vt(0))},[Zt]);const tr=()=>{ln(!0)};(0,oe.useImperativeHandle)(mt,()=>({onClick:tr}));const lr=or=>{bn(!0),Jt(or),It(0)},qt=or=>De(void 0,null,function*(){const Kr=or.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Kr)==-1?(Pe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):or.size/1024/1024>10?(Pe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),yr=()=>De(void 0,null,function*(){const or=yield(0,te.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});or.status===0&&(Jt(or.total_number),It(or.remaining_number))}),ri=or=>(or=or||"",or=String(or),or=or.replace(/\s+/g,""),or),Or=(or=!0)=>De(void 0,null,function*(){var Kr,oi;const Me=[{name:"\u5355\u9009\u9898",num:zn||0},{name:"\u591A\u9009\u9898",num:jn||0},{name:"\u5224\u65AD\u9898",num:it||0},{name:"\u586B\u7A7A\u9898",num:Re||0},{name:"\u7B80\u7B54\u9898",num:lt||0},{name:"\u7EC4\u5408\u9898",num:Pt||0},{name:"\u7F16\u7A0B\u9898",num:bt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:yn||0}];if(or){if(ri(_n)){if(_n.length>1e3){Pe.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Pe.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!ri(_n)&&!(Ht!=null&&Ht.length)){Pe.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const ei=Me.reduce((Ii,Di)=>Ii+Di.num,0);if(ei===0){Pe.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(ei>50){Pe.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(ct!==-1){bn(!0);return}}bn(!1);const Pr={scene_type:6,request_identifier:Math.random(),file_id:(oi=(Kr=Ht[0])==null?void 0:Kr.response)==null?void 0:oi.id,content:_n,count_arr:Me.map(ei=>ei.num).join(",")};yield Un(Pr),yr()}),Nn=()=>De(void 0,null,function*(){const or=on();if(ot){ln(!1),ot(or);return}mn(),At(!0),gt([]);const Kr=new FormData;Kr.append("html",or);const oi=yield(0,te.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Kr},!0);if((oi==null?void 0:oi.status)===0)if(oi!=null&&oi.data){er(100),gt(oi==null?void 0:oi.data);return}else Pe.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");At(!1),er()}),ui=()=>De(void 0,null,function*(){const or=on();(0,he.RG)(or)}),$r=["uploading","error"].includes((at=Ht==null?void 0:Ht[0])==null?void 0:at.status);return oe.createElement(oe.Fragment,null,oe.createElement(me.Z,{visible:wn,totalCount:ct,usedCount:sn,onCancel:()=>bn(!1),onOk:()=>Or(!1)}),oe.createElement(Ie.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:oe.createElement("div",{className:St.extraHeader},oe.createElement(ke.Z,{align:"middle"},!Mt&&!!gn&&oe.createElement(oe.Fragment,null,oe.createElement($e.op,{onClick:Nn,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),oe.createElement($e.op,{onClick:ui,shape:"default",type:"text"},oe.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),oe.createElement("i",{onClick:()=>{const or=Kr=>{Ve.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Kr,onOk:()=>{ln(!1)}})};if(Mt){or("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else gn?or("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ln(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Zt},oe.createElement("div",{className:St.wrap},oe.createElement("div",{className:St.left},oe.createElement("div",{className:St.tip},oe.createElement("img",{src:Ae}),oe.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),oe.createElement("div",{className:"mb10 mt20 c-black"},oe.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),oe.createElement(Te.default.TextArea,{style:{height:160},className:"mb20",value:_n,placeholder:vt,onChange:or=>{Xt(or.target.value)}}),oe.createElement(ze.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${Dt.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Ht,withCredentials:!0,data:{upload_type:1},beforeUpload:qt,onChange:({file:or})=>{var Kr,oi;or.status!=="removed"&&(or.status==="done"&&((Kr=or==null?void 0:or.response)==null?void 0:Kr.status)!==0&&(or.status="error",or.response=(oi=or==null?void 0:or.response)==null?void 0:oi.message),Qt([or]))},onRemove:()=>Qt([])},oe.createElement(st.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},oe.createElement($e.op,{style:{borderRadius:2}},oe.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),oe.createElement("div",{className:"c-black mt20"},oe.createElement("div",{className:"mb10 c-black"},oe.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),oe.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",oe.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),oe.createElement(ke.Z,{style:{gap:16}},oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u5355\u9009\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:zn,onChange:Ot,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u591A\u9009\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:jn,onChange:cr,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u5224\u65AD\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:it,onChange:_e,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u586B\u7A7A\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:Re,onChange:Xe,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u7B80\u7B54\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:lt,onChange:Be,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u7EC4\u5408\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:Pt,onChange:Vt,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u7F16\u7A0B\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:bt,onChange:Wt,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:yn,onChange:On,style:{marginLeft:"8px"}})))),Mt?oe.createElement("div",{onClick:Yt,className:St.bottomBtn},oe.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):$r?oe.createElement("div",{className:`${St.bottomBtn} ${St.disabled}`},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):oe.createElement("div",{onClick:()=>{Or()},className:St.bottomBtn},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),oe.createElement(be.Z,{onStatusChange:pn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!ht,noRestrictModal:lr,stringTransformer:ee.o,onError:or=>{Object.prototype.toString.call(or)==="[object Object]"&&or.status===-9&&lr(or.data)}}))),oe.createElement(Ie.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wt},oe.createElement(ke.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},oe.createElement("img",{src:ae(36413),alt:"\u667A\u80FD\u51FA\u9898"}),oe.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),oe.createElement(Fe.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Nt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>At(!1),onSuccess:()=>{At(!1),ln(!1)}}),oe.createElement("div",{style:{height:70}})),Sn("\u5904\u7406\u4E2D"))})},69779:function(Ze,Ee,ae){"use strict";var oe=ae(59301);const Pe=({scrollBoxRef:Ie,bottomInspectRef:ke,contentRef:Ve,status:Te,rootMargin:ze="70px",bottomOffset:st=110})=>{const[Qe,Ue]=(0,oe.useState)(!0),St=(0,oe.useRef)(!1);return(0,oe.useEffect)(()=>{if(!Ie.current||!ke.current)return;const $e=new IntersectionObserver(([Dt])=>{var Fe,te,ee,he;if(!document.contains(Dt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Fe=Dt.rootBounds)==null?void 0:Fe.width)===0&&((te=Dt.rootBounds)==null?void 0:te.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((ee=Dt.boundingClientRect)==null?void 0:ee.width)===0&&((he=Dt.boundingClientRect)==null?void 0:he.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}Ue(Dt.isIntersecting)},{root:Ie.current,rootMargin:ze,threshold:0});return $e.observe(ke.current),()=>{$e.disconnect()}},[Ie.current,ke.current,ze]),(0,oe.useEffect)(()=>{if(!Te)return;const $e=Ie.current,Dt=Ve.current;St.current=!1;let Fe=$e.scrollTop;const te=()=>{const{scrollTop:he,scrollHeight:ue,clientHeight:fe}=$e;he>Fe?he+fe>=ue-st&&($e.scrollTop=$e.scrollHeight,St.current=!1):he<Fe&&(St.current=!0),Fe=he};$e.addEventListener("scroll",te);const ee=new ResizeObserver(()=>{St.current||($e.scrollTop=$e.scrollHeight)});return ee.observe(Dt),()=>{setTimeout(()=>{ee.unobserve(Dt)},250),$e.removeEventListener("scroll",te)}},[Te]),Qe};Ee.Z=Pe},37215:function(Ze,Ee,ae){"use strict";var oe=ae(59301);const Pe=({contentRef:Ie,status:ke})=>((0,oe.useEffect)(()=>{!ke&&(Ie!=null&&Ie.current)&&Ie.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(ze=>{ze.tagName.toLowerCase()==="code"?ze.parentElement&&(ze.parentElement.contentEditable="false"):ze.tagName.toLowerCase()==="mathx"&&(ze.contentEditable="false")})},[ke]),(Te=!1)=>{const ze=St=>{const $e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&copy;":"\xA9","&reg;":"\xAE","&euro;":"\u20AC"};return St.replace(/&[^;]+;/g,Dt=>$e[Dt]||Dt)};if(!Ie.current)return"";const st=Ie.current.cloneNode(!0);st.querySelectorAll("code[data-text], mathx[data-text]").forEach(St=>{let $e=St.getAttribute("data-text");St.tagName.toLowerCase()==="code"?$e=$e.replace(/```.*\n|\n```/g,""):St.tagName.toLowerCase()==="mathx"&&($e=`$$${$e}$$`);const Dt=document.createTextNode($e);St.parentNode.replaceChild(Dt,St)}),Te&&st.querySelectorAll('[data-select="disabled"]').forEach($e=>{var Dt;const Fe=$e.textContent||"",te=document.createTextNode(Fe+`
`);(Dt=$e.parentNode)==null||Dt.replaceChild(te,$e)});let Ue=st.innerHTML;return Te||(Ue=Ue.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),Ue=Ue.replace(/<p>/g,""),Ue=Ue.replace(/<\/p>/g,`
`),Ue=Ue.replace(/<br>/g,`
`),Ue=Ue.replace(/\r\n/g,`
`),Ue=Ue.replace(/<[^>]*>/g,""),Ue=ze(Ue),Ue});Ee.Z=Pe},88825:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return $e}});var oe=ae(59301),Pe=ae(62957),Ie=ae(77019),ke=ae(60242),Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1AdsG8haQywMOc5BLDPzsD5eXX7cH9/iR2HW/AMFnQXvwEwM/e7vN913b9iMQAPw+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo6fPG1p/vu/khQeDcvcr8A8cC8xKzV240fuW4AoSAQCAI+H+AzAdMEwADLliBYFmATR2SBZAbY0mWhsyuZvfRM48Tzj4i9vpv3+aHf7QMH4qXVqbPnr8ETqWxIi0SAUEgCURoFDD+QswDuANkswJkEIZ8HkmnA0QBfALj/2U6Mr4kt+u3nOo9vamryS+jEpiUBjQFaJp3WNRYSr1kQGstBtwCdMfm5ZeV1BqYxmMxmIGGoaTZ0x4TuOLZBmoox6K5jGw7t50BzvGMZfReD5gKa60JP5x3tyTULH511wgn2cBH/QIFoH+CVv7h/wUrEjqqNhhkIiEBIgtGXAFrapDgiXVFdDlSWcqQ5Q9YBfCEAHMhlgH8s6kWV5jhXnlPW43Ie45wz7nINjJGOJyIxXWdM12gD0zTxljAAhCXmoSagK3oM/kt7yP0KL+i4IhNBfEbX4/DMss0DX7v02Ip7hwsCHfeBAvG/v3no5mbrqG/U149CaQkQCsttcxuwcgOQtVwEtByivkxLLKotr62KRI2Yfvy4CYzlc0A6DWRSwAuL+3DsKBdHjA/A5RwM3CMyg64BpqEh4NNBBoDGJAB0p8U3W3hdQIXoyiUbyleDIOwEigcSB1xo7oI1O87/+km1j+wNCB8oEB0JXn3NL5/fFB11aqQkAsRiQDgMdPYB85dx9KayqI1afQ3luasSVd0PPHbe5Dxd4NVPpq4/8qjQDxNJIJ2SYDwxrxfjS3I4fXoQ3OWC+IbGSJjAb+oIh02EfBp04gRNyiqJhXwhQZDg7QwPAUFvSTAKrKPA8tChJzr32vbUnWdOLblsb0H4QIG459klV8xZW3FbZfVolBIIpBN8wHPzbXT0ZjC63O4fU5s98eaL6pcV39hrcX52VxZPJRIeR6SBu17oxox6F6dP9Qsb12dq8Bka/KaGWNRELGTA1CV3EE0JCHGzRVwhQSgSU7uiZhEABQ7x+CWVd7sefHHtxJ9/8aD4RwqIm59Y9cKG+ISTS6Imop5u6O538de5aYCncPQBzpf/cFnDPUNv6uUd/BddKVxFnJBKA/0DHL/5awcuOMyPgxs1GBoQMCUIpVETZTEDQZO4wdPaBIbS5koeESDFlN2VgC5a/YVr8oAhE3t5c/K7p06K/WJfgPCBccTSpUvNOW0127rSI2ojISAYAgwT2NTm4KUlAzig2tk0fWblxFknsJ2sjm7Oo4u7sG5HCnXZjARi7WYL987pxE/OjKEiAvh1hoCPIRY2UF3mQzQoRZTucYLiAsUB76R5kZLweES+Q5qHnr2/nEtEOZCx3PjNT64cc/OXpvd9pIBYN8ArZy8caN+Ripkhct6C0oN+Y52Fro40RlU69/z+soovD72peTv4La0pXJnJAJmsFE2PvjKA7X0ZzDojAg0cAZ+GSIChttKHiiiJKCa4ROiFgm4YVAW7Y5149FZ0H7wswkIDtvRk7zqkPnjpvgLhA+OIt7t47fw1uba2Xr8WDAJcBwJRoKXbwoNPxfHpQ4xb77yi4hvFN7a4j1+1NYmb0lkw4VWngc0tDu59pRefmmriYxN8IiYV8muoLTdQX2kgSN65Rs6CDJMI8VNE+aEEVv/vihCKgwZtXaVQOF5cHj/6s4dXLPzIAdHezkOvtjrbV7XoMd0PVNYCZWWATwceeKKfL/5r7zU988YIedua5RM2pXFDRwqfy+alM0diKZkCHnoxia5kFtefEYHOuPA3KmIGmuoNRAMMfgMwikSSIiJJFfVQL4WkGQKS+p+8O2U4FYD0Dkykrebzf7NgwpxZw3fedgXg7nDqPgH+nFvzL1VWGR+fOI4hGpbhDIMIp4FW8sagiU2ui+qUjSnZPEwKcVh5GewjL/vlRRbmr0/h4mNMHFinC/MxEmQYN8JERZTBr3vcoHG47gbPttHhugyuS0JMOM/gfOdnuAxcLwc5fcIHITPYCzoWrFsPBBJ3zT25302qCVy+T4hSdJK9AqIvy8f2MxxiuQgxhh0+YN0IPzYzxpyhFzrm4k0lZ5816r4RdfqnAuYgEEKEKI+XnCQKfXtxJhF1zQGvr3Dx8qoMjhvLceZ0EzroeIYxDSbqy4tBIN3AYfNnAFjeJdDJibIGGAuCsRJoPAoGExw2Ul1vYlv6NJh+8j101JQaAoxiblGii0Te/A3p0088IDz7QwEEf/RRvfXsz/wmwbSLUzlsdDR0w+VR7rDRQR8SPoZ/6DYemRDGa4wxRRHcOJ9HmQ9v+XQ0CY7QB6OtwqYnEDwgKNhHumHeGxyvrc/j8EYH5x9piHVtGgwja3WMrNIQ8LiKiCRMVnDk3GcBLvzBwTAUI/j8YFoIDGEBBD1SnWuwceBk+P0+VJX6UBU1Bh3AIcs0a/HMzU+3jZh1XmPvhwKI5gy/MG3g9vUdOPOcRjZHXdTXZ3P/0ZMwOWbg1FgU54YMRE0Hf6xkuLsuyrppvxte4TOCMbxgMFSSCBBOV1H+gRJBFNPp6gFeWQqs2m7jlIkOzpimg3MuOKGxhkBgIM4S52DymfQD2ZfZ/HNwkfVMT8/sFBcppD/5xdLLBkOqqwsbE+ciHPShqTaEEIVFPN9jKLH7kvaimph55L4GYdhW03qLPx3PInFElF3w7hfF2V/WYkZVhXtp1KedFtTwSFDHr8aHWOv3XuDjykr4U0xnU4iIwnrhMuQd7wPWbAZWtJDV4+C8Q1yMqZb7xMIamuo01JYxwQkmcZQHQsFvEOey4LgOcraFnGXD5TalXGVYFzYYyF2Rr+2chTQ/EEG/joqoIQwIAdEQbqB/W+LWnaPLffskpDGUbsPSEWvyfH48hcVHlbFv787q+O3iZO24+vAV0RC/MKSxR4Iafv7M68g4mvutgSz7UiKF0ak0YxR3aovzZEfCWTyyzP3HZScYP3MdMLKOyksZasoZSoKQ1pEurS7iKAFCcQjDs0ttAtfhAmSxqfiRd9EULhQxccFNTACr4lJDVym9v2a79dUp9e9PQmpYQKxM8cezNozDStjZuwOE2uf2RbxifIP7nViInR/g7PbSctz+3cdgBfqzI60Ur24Z0JN297aWRbeNH1i2zfqYpRlz4QIBnwyNk/ghYhEIwl9QYQyPq4hYrtsO190KhxvgrgEOA+CkD7zXpLTpPbGZYJoOxnRoYtPksxCVnvDyKERgL9yQ/djxBwTn7ck97+6+wwJiQRe/hmv4ZnsnRp03mSmtuLvfiT+sSI8YW+2/PurXjvD/K8B6UDl7fujBbSl+pm7gGbKcVHRBZnkGARABPY8T1ErmfB1crCzKFakzkyXEwCnMzTQBBocPTGwBgNPmE/qDChgGmYc4SobFHTf/iM9w2sG1RDox0H3XHbk7Z+0jf2JYQLzSyqfpPr68t9855Zzx5j92G4EhOz6+Nn9odYlxa2mYtbFE5ttTG0ItapfODL/AMPAA+ROFR5E9X5DjQ8QSAQG+cjADVLCclOAn64lWO3EEKQRTbIz5wciqYj6A02eeXU0CzdMtpFNAugYuUju2J3/0w/aa3//+kvRw77/4uGEBQRmxudv50nTO3XbaaOOcvbmQzz7K9YsPdS6qLtevNl33lgPLtN8xxtwdGX6RZuKPlLcm+is5Xyy7C56w54eI63C2wnVWC4VN+U1yaRhzC76KJDDxEQEy9JmsqeL3pPMn9i+O1gJIxru7v/iFUP2cOfvGwx4WEHS/szfkLwpFjLvWrO2bftkJ5av2Bgw69umVvKaxmt+V11gsmcP3x5TggoCOywvhCRWW3kX4WnGH8oTzlPPOk75wweAIK0ljtFnQkBevdVgCJPEes73XtC8BJ5NNAn3iCAG0VOwy18oQ7473v97+iZ/GIrwrHNKbx/mxpL6eDZs7hg3Eva/yQF2Tuyafs944a2Lg3L0F4oVWPm2bhb8ls2gQRo8rPWyihea5AuQnqI2UNVlN9BygIKIhNwp1iHCHZ1UJnVJk4gpzuSgyOzRKqxJJIaGwpX4gU/ftdgezV9ooDdqIBRxonCPDKkHZRtMg0PmSP7/NZj523jujCrtDm2EDQSe/+3X7K+NHsbs2bBg44SvHlb22O19I+yzdxEs6XPfSvKNV+nS3By7vaHf1y3IujqDPqbBM+BUOJecBmwrNvGfyvCkMQhtJa/pMeOMih+yJMRIoDIj5gVObgIgJhA2g3A8ECBjvc0X04sydUvoFwDy1v7iZ48kVDGETCNL5fEBdBUTcTNOFmZx5fna89rYrKwZ2lw57rSPUCS6+a6l5yscOWeLXs3zJm81HzPLyzP/uQjjnxt1L8ZoFzCQzlLaBHLA5ASSpmo/8LCkRRBi7kElTiloD/GFJdPLCxeYdIgJcUnKIz10GHFINHFQpuaTEBGqDgEFcpkzfIqur2Ico6CKPe+avB15cC4QICAMoDUogqDjOA6Lrpj+zhjmzdk5u7S4oe8UR9CW3vmIdN22i8XJbS/y6848ov+m9vvjeJfy0FPC3ABGUjBMOtCSBNkr+OLKwjMAgQ4U4g8praCNjxfWMlpISQI9JEOgzAYRXgCEsT9q82tmjRgBNMSm+oibQEAb8nogT5nARdyjOKJjCRSC99Dbw+pZBIKoisuSHIsgERN7my04br814r/t/t8/3Ggg68Z+X2X8cWe1+ft2ankO/+on6Nf/uYu5cwh8F8Fklz0n0bBgAenJAlqKuHuEFAERor+CMW95rW+YyrPBgkFCIMgKD7sYzdOg1rfpPjpGiiVYxPY+gEh5yBkUlhhfrotceJRQYJPqSWVnwlreBjW0c6zqBLGcI+TlGlTNRBEEg0LH9affhs6foX9ivQMx6tL/88EOiK3g+2b5kVcux7yaiXlrDK97uw9aAgTDJWVK0vVlgYxIYyEudQJviAsUBAoQ8QM8UjypvBEgQkxKnTVlWihOEe6ABlWHg8Dqp1IkjIj4JBHGGzqWnrhxEgaHnofelpMgMB6WII0Co9mp7D5CygSyV+OnAqCqglHSERtlG94dfPFz/8X4Fgr78D3Ozp02e4Ht2e2vfzz9zWPn3d3VBty7gX7V1/D7kWTkikKbEkscNJJZoE2B4xKeINnEG5SZIDMVGAWnP4yZ5r8xWYVkWuQFTq4GRJZLgxIEhA6gPS6VNhf1kgSmuUCD0JIDymOQucS1cmsJbWoH2Pmkg0AIioPIuBSKBEVXAhhbn3P852nhivwNBF/Dom/nbRtWySzes6zr9guMa3uFx3zifz2MMx5CYoFVK4YstA0CcVrpXgi/kPukDxQWkF/JAKkvsD1RWAm5Mii2SR6RmFBBehFvIHVqxx40U2T9BNOII+t7aEFBJxQt0bCGHIVf1jgSEuFG9GcI+4EA6B2xtAdoGJEA+z1QmkURWmxkAtndj6jdOZsP2p/aJjlCrYNaz7aGjJtYs8JlW3dZN3TMu/Hhjm/rs4UV8wuoMVlMBno9WrgMMpIHOFJAhbiDzUylnBYSXLk1kgP4MkM4ABx4IpD3zlkQSEUMQTKYXRGGCZgBlnlgS6U/yLTw9URcGKkMU7vP0hOdj0HdQETQlrIof9B1UQdJMQCSkDgpREJIWk6drHM4Rz7ILLj6OPbhfOYJzru0ADtCBzJxFVkVFvfFSOpVavb6548QrTxufo4v76UvO9Sld+6GI9NhAJgnE+4F4AkikgRwR3xMFpCeE70BAkC9B2TpLEnjsBCmz6XMiPBFaAUFJOGYA9DypBmiiakKRh5bmK3FEdQioDlNRmuQIFfqOp4BodDAPISKwnv6hcp5NrUBLSmYUyYdQQJAFFmRAHrxjWzc74MrT2AfvRyj030zzwxM6FrkOuKEhlemHbiURNJzU3NpR4YW662x+5W392t4MxpA4sjJA3w6grQvoisvCMSoQIDCE+UogKB9BOXMOMLIBiNuA6QeCAaChVPZTUC6WRBs92yTbNY5DazmCGkfQZML2D/mYAKImBNREgLBf5h9oy1scjsbgJ92h8hoeh5G2piqSt1uA9qw0V0npC6uPCh80oJREnw/Y2u9+47+P1W8dDlfsE9E0i3PtsD7MAcex6kbSPYBuO/BFbAQr/EImi0VGBLaAVAro7AaWrQWenQ/QiqRVT58Ja4m0Mm208oULDdSPBdo7qXIAQBCorgbqSiCTRaZX40qrPACMKHVQGeBwXA7H4WCcMhMcMR9QHmCiKE2A49OQznOEIrrIhQtHz0s4KVM2mwaWtQEdWUnwiF9yGPlCYQ2oIY/dFCJzwckHs2P2GxD0xU9u41OCJVjiWgioiuvurRzlIQc8xOGPmjKuWZRRE5aKRsTl+Pk9wNK1pP048bk0V0TEmZ656KHQgwyJJAl1AoIBpUwUM5cHgGhAhh5IFFVVACNjwAHVkkAigVRU/SeLa+RG4omAEmWaghsGs3aUtaBjSVkvamfozwH+EBANyu8if6TMABro/wCQ50gsbUPd1Sez1J6CsU84Qn3p0518lm7gR7SK5WriaN/oYmy1i2xIh+nXCoE6kU0jGpOCpmeL476nOP7yLIdlUaDJayklYBwXFfU6dmx3JFsR9UIMCEvBTwDRKo1SpZ8OTB8NlPmAMeVAjEIaHhDKVCU5LypIPDNUZf2K3xOEIU1NosmmFC7DW9uk30PtBOGAPHddEBgbBQJUmM7Al2/G6CtOZ1v3KxD3NvNARRhLOMeUoO5iSiyFZNbCWxsjqC7XwGIMOnWPGpp03ggEDwhl+Kze4OLuPztYucaBlfJ2cDjKR+nobbE9IABQBxHJB7IlSXP6NTCToSwEHFwn40ojSoCamBRbFCGlTaRZVbq16H8CpwAIca0HlBBTtL/HyQ/MJVCASBgoiwBjKoCJVLVI+SQNeHMjxl5+Btu8X4GgL39sCz/KF8Jc1+HGlOAalOm9yFlBLG+fisYKGxWhjUi4IxELZLC6vxyGzy+tHpVnYJ68TXN0dHK0tLhobXPR1sWxZb2F7V0uetMOLMUZZEMSGB6Vq+s1BDlDRQCoi0gdQlYOiSiS7yr/TeDQRoeSyUpYFsBSFSJkCheDQgXIncAdLwCVMaCmDJjUAEwslx2xDuO5ectY3bVfZHvcM7FPRZNaBU+28VsYcCWJHKKXj5IvFmBYBuqCbchqOhpL4li3ZQBWzZE7dYsUUqAei4jQg0cMMkvJxE2lOXrjHB1dDlo7XLRs52jv4tjh6ujsYRjIM5RS/VOUoSbKEBaKWbYQExBBsrrU6yKQCBhRhUjgeBtZSYI7PCexux/40cNATSnQVANMbwImlAO6BGLlMRO1g/aUG5Q0GM5x//aYP/+Tx4INeJO7GK0S/nRDIZsj6AK6nyNtatIXKApRqIS9zIS9s8FPBPUGRbfQLbRfASjSNQ4VLHP09nPEezn64gz9cY6BASbMUMdmwgQN+pmIJUWCVFE+yC2CcxT3eFJPMByBYQAd/cD3HwLqyoAJI4CjJwCjy6Sl1p1wrz99hj5rOAR9XziCLuThdfxUzYe/Uasaeb/E9iS/zRwXDh1MjpRORcHv9GTFCimycobsUpBihYSQp2cKHnZxjsGT/eTUUW6DzONMiiNFjiTlQBJMmNLkPZP/QhxDPRwEBllGwl+gjcSXDmwfAH7wMNBYDkwdDRw/CWgoAZiP9y9eyw745qcYGdh7/HjfgKAr+csGfj84/otWOK2okhBQFQXScVFtJDI0fSJK5610pSu8shllcqrPiwdwiASmZ1ipjJ1gsCJdU+ycqbxDIXXqhTZE+INWOwDqXN3SAixZIcUYcYwQZcqBM4AuEk2PAmMqgcMmAidNlmKqtc+95Lyj9N/vMQLeAe8rEPcs41WBIFZyjhq6YRIB1TF5Y4kdXJiblsbRY5HFPkhElVNW9r/qUZDVeoOgCcvWC0OoFKpS/AU8vAybLFD2qgKLEkOqn0I809rQgJVrORYulu0DNBmBmmsIEFLqvQPAjx8HJtYAx04FPjaZIgLujV88Vv/ecEF433RE8QXdv5yfr5l4kMQCiSeK31dRQoVRSQpH2OCwdaCXzKCi1VwoJFN1wyqD6ukF4e95IklxBH0kuKYIMHGTisNU2FsVFBT/r0CicInFcc/DsgyTQCAwRMsZ6YE+jhufBCbWMRwxCbnqSvfbP/+8fsfegPCBAEFfcv8K/ozj4ExReWFKMCpiXkx/wBViyjWAHblBMaVqUlX/hFLSitiqaGAnsaRSpkXWsLpJAkO1dImqDvqf/APvfVHWX5Q6ffp5ji1bmGi8JK+ZPHt67k1y/HkuMGoEQ30t/vn0N9jMvQXhAwPivqV8pMWwwnVQKmSyIT3TchF847CyLnSHwedn6MkNSstCdYUnXoTzR2EnL2SuKjcIDK/eQDnDhaI0xRF0VlUrKzxqjxtUz12x6KJ916znePIZJrxoBQJxR3+W496lDHXlwKQ69/7ZV+sXfmSAoAu9YyH/Wo7jdhJRqkGFnqkaojzIEWQcInMXZOhKy6baQgq0uIlFiSMvDFUMguAO732l9z1JJiemFGXk5LSCoponFQPzxBh1sP7qVi4CgQU9EaSULseDK4HGaoaJlfb3/n6teeNHCohHH+X6hnK8mrNwrCAChReoAsLzaMMmxzgKSQSJMzjW9exsRyj1UawDlPIWnUZFYBW4o4hCO+kJDxDVKCPKeooKnFVx8133cLS2ekAQZwSApM3x+FqgoYFhbGnuU6/9IEB9Ynv9eF+tJk+uU94s1N8P319WoOntDsyzbYQpVUrxGTE0iwJzXnPj9CqO2gAjLxVLu2RjIRGpuPK7YGENEUnFNbJDwVAeujJfCxzhVXKogKAAxLOw5i7keOYpIBJlUjyFgIzr4rlNDNUjGEZGchOX/iSwbq9R2LkLeV+cTp6jOR4vzfXhHMMMnsF142DOeDU1rTFdy7T3I7BiGwvMX8vQ3QdUl8j6oChNq/EGaE2v5qgkjvEDr3fItaJqkAr5aU/2kKgrmLSqIaUIIOG5F/VPKPGkxNJOEdkhPRfdvRw3XM8RCmgIRyQQFnPx0laOqlH6wMhy1L0xa/j1rsUU36cc0dXVFYnn/FdZNvu632eUB/0aHK6JagfX5TAM2XLl2ByJPMOibTr+8KomqjNG1wANdUCUoqX/GpZyaA1QY3Jhqby6nQmvt3iSgFeaKu+l0BEkE08FT9x7ocBTTl0xNwiOU1zhOXkFR/JfB876sYPEDoZQWBNAuIaD+a0cFeO0VTtu06fuq+W7z4Bo7UoenMjyRxjjE2jQVceAi7StQzd0aHSnjInYEHddlAUZGmNyBNj2FMONLxhYtY1hZAXQNBIoLZdia0YVMDrAEQ0Bf29joshAKV3BJYobPDkkGlqKuGLoilMmrEpO7SSeCi1cRfkLBvzlKQfz/s4RjdD4IQoN21jaCZSO05/o+6127ltb+Zg3t7nnjK/WDhs1AhUhP5LZHFZzhqfrQmzx7gK1T4Bo60melMqzJ3I5K7axJ4+kayIWCYq5GLpOQTYKIBTyLGLGEjV/lBoOGqI6Ovo5fvp3H9a0SLOwrh4orZT56GkVwNQoF77H7FaGnmyRmFIBwyKFIKaMFQNUJH9Vd5FqBS6IJc9iKmQPi6YXrG928asbbFSU6AIMPWRjZR8w+iDc+sNTtMhAVrsABnzTG+UMKhlO5zBNxk0DL+ZtXNpUyprfC5C9BqItnpqey+tz+hLp2LrOPMxIFH4fTQYggnkzXDU5SYzkM+WQw34NE8sZ3upyYeUyGFtiYnOc4X+fpOwKUFECRMqBEEU1/cCEGHB0OVAR5nihHdiSkNNnZBZtsGC5uBxccYeSU15AVyr9IsKr7J1S4iparOJUGYvjx9/JgTs6SqMG/DEbWzLAydNN65MzYU4dz7EjwUTOXRRQe558wM/RWAmMrkdnJmt94sBaP/WTvetjr4Do6OBh28gv6x1IT9gcd+H6iAs0MU6BNtEXLcTS4GwLpmlijkZ1SI7zaY67iOl5RBnH06v9eOR1HQ1UZR2Tc/xM6j8IAo0h4JNVVC7JsbQfWLrDyzGrinHFFcKRkFsxUMVdp8prL+Syh/gQg/69PNWDd+Sw+k2G0hIDJWUOcpaLH1xhoraBYXsvLbiiPLcK1VNQ0qEUKsch47GJGezgydUs+W5I7BUQ3QnrB4mUdUNLPI+44xeTxMSKEJTnQifQJDEiuCiHVMpTsD6lTKXct20XYyIWWntdfOuxsCh7qawBfF4YhNratCBQ5gfOqQVKTY7mLPBCOxss3VexD8fTEyrXoTjGE1GqMUWFO8Q6KepOFbkQeRPi3HQPyxdZ+NvtNsxyE9VNwFfOAQ6aoqO5SxYdkAGiZnkUE1RcEpV2GsBBjfZ3Z4wz33XQ1rCBIG5gQbu5vSddFecB0VDizZj0ZLTsbyYAaLrYTpNgvNEvBAbdMYEVZRnYGRu3zI1sXNXKttZVsmn+SlTqEVmQJpa3Vzbz6RqgmvIZGvDAZmlRkeIXXFDEEQVRpQoBvesR3FE04UyJqqFiifAgQsYHOO77Wgo87MM1t5g4aQyweLMrFhOV5Mh+78HRdUocyogwlfRQftttbWzcPuE/CO+eAAAMI0lEQVSoxsbMrrhi2ECkc/Y5/Wnnyda4g14Kn+5k4BetfnHDpLRlrGewLK8wEEyQqSZItY1pvNocWXbZcdqMU2/d4K8pHznBX+I7FD7MdIDDchYOcEIIuhpwcjnQ5OfC9/jjBlnqIs5NC0KB4nGJmiSu5L5y7pS+KAAwZOCWMjCIQ9fNteGHjos+D6zbxjGQ5WI0UZCAoHSqN02zmPOpFFOEXTyT+sgJ9p11VeYD1UH8kxo294kfkco6d7TtyFzWnfchQ605kF+qHqqQV968FE3SSpGN5IUYkFdWU0U6I5fBgma9N1QWqNtV//bPnuNlHQxTkwyH5/2YeXQ5P2SEHyMbotD+sgnYOMDewRFkRYmuI8/CoteFiThkAnsjsAWHFFX5KQdyRAyoIl2V5QhYDLVVHK+tdWWhWUAOZSkMcvREmqjCUb3ZqirIAaaM5qivZpTOXWhl8xdNaxj0yofNEXmXv7x2a/LE9pwPgaAuirRUiKGYOXbWC1KW7qp3jUojY04Gi7dpqbposvaEydXvqtgG4eba7DX2sRnHeKgx7Na/3qVZ89pAc/aqxHAVVTHorb1CG1hRQ6PQGR5Dq2EoKjHVEAVm1AIVBrCxA+gQM2k4bNcVBW0RPw11pGJkuicp9wo2g8cNorVMgEE5YyBMtbcUUytl3clc6rjjmqKisWfYQORsvmT11sSh2/N+xCI6tS7t0iDw5tkWPqPVo5QY3TCFxekRNBiiThpLWoxeI7q57rzJcu7r7jxmr+Ajehw8Wh3iR4ws4Q/+6Z/a7dvSzlSbs6O4ps2wbRxA4wWE160oVTQnylNVQm8o8UX1smeNB9w0sHQLkMpJzgqYJJI4SihHQaWXXpmmEEkeOWVEmBcAEK0GXjaR8ih5R4rUyXXu4o8fYM4kMTVsIPIun7e+JXnMxn4TNRVmQSlJ8SQFj7hpJpV2wRShMkeNiYukD4T1ZDJEdFeIpn+2BZf/z0zzkN0BoHgfajd2w/il38DlU2v4csNln5vcyDbSPp/9dX95LhyapkE7TPOxmQ7YdA7eCJ1pSpwqMJSpPaOG4+AyYMFmJoqj6ZaIewIGF92qUa/yg7KOgoieuaWGr6jCBuIEBQLpCvpf5FM4RQ8YxoR6zj3nyJonhg1Eznbu7+zN/tecTQ7GjyTThuiqYg3yi7yKxZ1Sl3IPKgqWZCQQiEtiPI+BRA5v7TBu/fLMyE6DFvcElLvm2xdmuXbboSOYFTRxySEj2OPvOH4W184MZ0exqDmdGWwmM9gRLtgUrqGM7oNW8GUHu1i0SZMgeA8x9o6SWj4uNrp2qWOk1iPul/pBdb1KrlBZxKHgGIaGsJlbdPmxwSOHDUQqb19k2/yPL6xIoLY+JkxUNVFbOUREa9vTHWrlFQoAaKa3xw0md1CmWdjYbfF2HjrqS9N8/9wT4g/d987X+KTuNH90aj2f1FCm3c50fO/Q95gK8NlvtQRzE2omQtcOHVWhffLjo3HuG1ulGKUHEUo011PxsSkHO5J/IMSZR0VVRSJEr8ipe1aTly+RgNDMQaqTleZuyA87394ycthA0OT70gBv3tiejGzoN9FQ5TUXCMnkSUvv7FT0RSyplLkinAq6RZ0MuONgzYD/tfOmBY4fMqd4WJjc+HR3tJ+V/bqxVPvKpDr+pt+nffHIUWz17pyMcz76voXY3E6Fk949ELGJI8hnkCB4YyLUPEKPG5T+c8iK9MzWYq5QKoqug+JwZVGGLS3xqcMGgk6UzvFf5B37qoVrk6iqCSPkN5Cgzh4RB1JGqrz1nO0WLkyMdVAtVdkUIj4NzQMsv22AHfXVI8Nv7A6xdnefqx/PfSEcMG4/fDR8IdO57riHfvpbNmvWv/2NIs556X0L3e3dCS0gdEBRPoPil6p/QqOmD49d1CJT4rjgQ3gBSCWehDoRISAIEEwT7srWzPA5gk64tptHG2Pu+lTWrl24PoUDR5eIxo/tKVLCRbLTW1hk4qYtV8SfuGMjaGVQGjLQkXKxLRe8+guTzV/uLoH3ZL/vPxEflbQi905txAlNlez5mJ6/5PBxgyOJdnWup1a4c9a24jj6nQuRn1AWlRr8Lp6lc6LsE5kvl5y/U4mPpzOkDSNFEoEwrg7oSPCND131+MRhcUQ6nR7x3HPB7ZMOT9xUEja+GQubGhF5dVsWlu5HIOIrzE4lQEQU3DOdsnkqt0+jzOSIhHyI5zVsz5k/P3Wsfu2eEHdP96Wc+aupzLfrq30/mjYK2ZCJ73x8gn4/E9R85+PV9dmTVrYYf0/nmBaJaCKVq+JU0sIaPGxQ3EidoBQ2QSJN2UFdQ8BReqCpWtbg5l33qjNG6L/aYyDyvPlCm/f+bktrfkNJ6OCD1v1rlH1Sj9w9c6Tv5CBzG/uSebT3OUjaOpia003dOdyBCRcRctzCJlymo9vS010pfO/kMfpte0rY4e7/3YcTB6btwD0Hj3aPrC/Tni8L2pfPHB3csqvzPbbcunZbD/+/XJ4xnX7shiw8rzpc07gcOSfDZdIyVEpbpWoLYkkaJtKRZbJwjYaq1PCXF8xdcxoNCNgjIDLO29fZrPfH1LfjWGks31DhJILTv3POWP2W+1ckqg9rDP6iPqJ9wQduWo6LvOUKq0lyhQyP20xDn6U57SnnhY64893zJvt3S4EOl/C7Oo6GuQzYk66Y0GjMmjaKUSzvx40Tjdsms3eOxbtvYe6ceE77WTbPDhhIMjGZOejn8Pu4yCJShTgpXWE9CXHlvRYjhrx0CflL9GtGhvxxEdMHHo04D21sjV92zTFV1DS8e5710qXcnHTw0l/b2o4r6Kd8uEMWQT/a+7LOmpaKU8877PQX1Q3fvzJ34JgK44LqMDvJxzBe0xB1OeM5lyeSFjbsSPFXegbsh8+f6n9rXxJ3OOc6/47OMaFg9OZDxupnNpSzN0O6861PHBgszLFV5yTgRjZMOCyd1acnUijx+WHoBnzBgB4wTIQMU/NrhmaWBHGgZmiNadt9S9Ool5AHGDQfdxBg9OsKJuKAszTt2n/61vTQguJrfk+O4JyHM868+yz0foZAoGyHa/ehP5XDpt7I6wu2Vp4x65RTdjkZ+H/ubQ5MqKmM+oKcv7yyM/H8lbLn+sP2+PLdPWePrw/9cmSNMToSwGMVPvf7R48PbNrT65y9IX9kxtUfXtmujRv6Wxjvda5/C8TAQHulHlzxVwvxo2l0J3Wgu3YcfQN5bIyXzn65ufzzN33qU4K1PuqPi+9aGiotG/OtprrQVRUx3ec3cVd90Ljp8NGsY3fvbWk7D21KuNu7+6zDrjgisH53j/u3oikeX9NkhFa9YCNxAFwTsHNw83H09jvYGK/80+wF9ZfeduVpH8oVvicEGLrvVx7qrJnUELquLBr4imFodtB0fz8iat1y5IjQbv2C8JNb3S1tPc5FX59hvrIn17FLjujufmNGOLbq6ZyTaqDRm8zKwc31ojsOrOut++VZ//jqNf8//nBrMeG+80R81PiR4asNn3EhpaSDBn+s1HTuPHXcTxcztmuHsKOjIzw3W9O2qc0+9bqjzT361ch3AJFMLjyZaUsfzrv5Urg+aFYaTq4Xnb0+d3VPw7WfOf6y95xSticr4cO+7zef6K4bPSJ2sT9gXKRrrJEBK00791Rtqf78J5t6VzFWK5rbeceK8Ev2lJ9sSbLPP7OhY+yzZ9bv0cTLnYDIZ2b/t+W8cVeetLxrQLdSsLP96OgN5FbuaLr0vI9/7U8fdsK9X9dHqdvjDms8MeI3LmAaO4mDVWvcHTBMrTXsYznDwMi+LNfbevPn33BM4B2Tnd/rujwgOEv33XONg1X/Z7t+TXM1CUK6H229ZYnlvRPOv+Dky557r5P9p3xOoBw6pX5KLGQexMGbOIOes9nGDZ252Q98Oto1HDowcv3POuH6XzpY+00bpdBcE3o+gXwqhW29Nd1v9Ew660tnXb5XYenhXNh/2jGsu/uJujD7dbNj1/k1qlXNZZBN5tDcO2rr4h0zTrnk3EvW/qcRZX/crxBNnX2XXFWSXP0LNpBCJqFjQ9+UVYt7Dz3ta1/4WmFo+v64uP+k7yzoiJ4tZ/wk3LHs2rc6j5/3ct/Rn77uwit2/CcRYn/f605W05znvznzT4umLf/TrC9l9/eF/ad9//8DKbvze3g2WI4AAAAASUVORK5CYII=",Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGcAAABaCAYAAAClpUiKAAAAAXNSR0IArs4c6QAAIABJREFUeF7VfQmYXFWZ9nvuUtXV+96ddCchIYRFggoCRhBwQUVHdBQFxRFxR0VHxFF0nJ/5f8FRx40BR9SRUX9cArIoQRFURJYIgeyBLCzZO52k051earnLmbxnqbpdqe6uLEKmnqeT6q57zz3ne7/9+84pgSPgdd3dMu33oGmkgM4Q6A6yUXdQiKZHUdTrOKI5mw/+8I03NfwEQsgjYLrP2xTE3/JJ33xYZoIYLSKFzihEdxRHXflC1COjuNfznG4XojvlRF1pRG0ZD/X1Na5bn3JQnwLqfIm6lEBt2kEQCzz61OB17z27/VN/y/keaWMfBDhSXHkPautSaMlLdDkRumNEXVEU9LpC9PiO2+25sjsloq4aJ2qt9UVdfdp16lMC9SmJOh/gexI97TvwXQHHEZASoFjw/0ovKSR+cNezb/7SRUffdaQR8W81nwQ4UvzTnagf9dCKbNAdSqcbMuzKB1EvJHpSKa8r7UbTal3ZWZ+WLY1p1DbVuqKxxkFDWqIhXSJ6je/ASxLdEP5QFuEI4IFVe258+8tbP3oo4/xvuleB8/8elG/L5sJrdw/kZ0LGGc/34HsCvgekPKAuLXDRCS5qUuR0B0JoDrfc/nws2HGAP6/Yc/0FC1ovfz6edyQ8Q3zpXjlfimDJwGA+1d1ZqwApjI5hXoeHgSiFbCjgu8A75wmQe1+oVyRjef3tz77m2kvm/ulwzOHhzTLTWIcOKdEbRZgROZglY8ySDp6MBH7y8jax93A851DGEFcuCq4dGMxe1dRUi7oagXxuDK8/xsO2fArHNYV4uN9XEnLRcc8POJRKMoFwtA0KI2BoNMg9sGbwyx96Vec11SxWSik2DKDB8dEdxpghJGYIB7NdF0c5DmbEMXqDEF1hjIYIEIVAIlsAcgUgiIB8hP5sTn7l3S91vgO8cB6i+OSdhW/v3J37VGNjRoGDKIsz5mWwsl+gMx6E39yMPTng4hMceE41pKl8TSWij+ViZPNBPh9Gg/lQ9ucDbN87Gu0YGctvzQdyc/9woW/jjpG+B58Y2LDie2f025GllO66YbTEIaZJYKYDzHAczPY9HCUczDDS0B5LZMhY+VAiXwDygf4pREAQAmEMxPwxTgivjaF/d1wgDMVZ/3CK+MvBr/rQ7hQfvy04d/dg/vd1tWmkfCAsZHHei1MIQyCTcvHEDkdx8qUn0d7s/7D9iB4CY/kIuXyUyymixzvzBWwfzkZ9w2PB1nwh2NI/GPZt2pPbvnb94I77lgzuxn0PDQNXky7q9adnZY2TQkfaRQ+JLSRmuQKz0zWY6Uj0Sonpki66gE9CBoHUROdPqLk/4g+JXRwVANWyBcJ4htZDLP7Pe/iLA0SheO97TxU/PTQSH/zdyoq89YbdX2psbvxX34VorsmjubEGu0cB3xdIedQxwAdPFpBhhFwh1ESPZH+ugO17R6Ido2P5rYVAbt4xVNixqT+3fe1zgzvuW75zF3776EiS6HaaC1fLej+FLniK43t9YI7n4qi0j5kCmAG66BINQsCJY4kw0JxOgpNpojKO57hkEvV/GS3GeebWXS8DxiIWx0JJjnV0glhe+YHT3G8cPHn1nVdfLZ2rrxZJNqlqyOJazrl24yXtnW2fAGRKCGyPw0JfHEVbnTjaMloI+6anRvo29BX6Hnh86+6JiM4nLlwo3ex8NAcS04SLGS51vsCcVBozXYGZIkavBNoRo44EVYQPDNFDqThdxprI1KKUWnpqrmPea15RYNj/JwLFAiMg4QrAcyXSLpD2gIwP1HhAjS/U7+TB7UMhntzlIZY67opi+Y0PLXCvnIyS71go3bnZ4WZk0l0yDnpjoAfCnekCs+B6PVKiRyDqcBz3oZ27vAu//xERVIVMBUab8r6rV8vUNIE2GaHHcTGDHo4jMMdPYRYEemWMnjhEqwR8cjhVTT4PFAr6PcGgkefiSVwSnbaMP74ri+9dF5qgFpQycKyKcoRUAPqOVG6/JrgmfsYjEIb4rlDPEka2KsW6cRzjD+ti5CJXqUQI8f+3b8fl+exwdyT8HiGiHke4MyXELNf1egDZE0vZHXn9LW7U5AuZRsfutWgbeBqr5rwep3c9iHkta/DztZcCThphVDjhaxc1PDklkc0FkzrH68dk7969uGAgwAl7I8wYDTGjEGBaFKOZNpMqhoTPkfjU9wSAhtaoHhvtKw4ncQ3HK2kQGhgCYAFSvzuay/V7Q3SXxJaK4HUpoNYHalP8m1BgEBQV9CppopxUfiUlTTFOJJErSIzkJIazEkNjMZ7qi5XnFoaSDkMgJaQQTkoIB1LG6ieZxojdLAbOuASpXaejfs1VePfdH8acLYvx1UsfwmuO/j3mty3Hd5Z/DrHIIC6EL/u3i+seP2RwVvXLM2szuGski6bHtwDbhoDhnAaBBlepnwQVrM4vf3DSFlhVZG0EgaCaqU1JNKSAxhqgOQM01UBlHZhbIyC0ewRKR7/6CYqxEw9TY5s/kH6K8IHEaE5ib9b8jOn/R3IxRvPaiaDHZqU4OUa1BORMRo9aCH/wePh7TkLt2C40juxAX9eJyoGqTcWoTbtoafBQk8KZF57qP1Tt2BNKzmO75J0o4PzblgKDWc3pU72SHg+vVcT3yOkSjWlN+JYM0FwLNBOAGi0FJL4aX5gcWwIAa08s4ZV3ZjieBB6xhDf/D+ckxnJSuc9Un7y+KDHGTk21jkqfJ3N/nAvVbZoSnBZoqHHRlAEaawWaagUaMgL1NULZMyvRng9EAc5trxf3Vfv8CUn+m43ylj2DuOCR9eOBUbEAFyy0fajxpMoik9sV8Ul4w/31aa16yEGChJ8gsVkUwDJ9tGs4xqZdkeb8MQlF+LyWiL8V4TVTaVWZYbK2RqAxI9CUcYrEZzxYm9KerJLohIc3EeEJThzh/I468ZtDBufHT8kbxrL42Iqnx4Mzf5rE/G6pOIX6nwZXBaeG66t9cPK6cnD4+5bdEW5dnC+qr4nU5lTPU2Mn8oCUUM/VXprmes3t/CHnEwhmzOlUeI4oatKJsuWTPT+K6azoMTymxUJcOK1BLJxqzvbzCSXnB6vk54MIX1m13qh6CbxyDnDO3JKqoL6wA6j/J4g1JptMJWB4/eJ1ARavD4p2ZKIxxqkby/XKYdDqhcRurHXQZN6T6ykRRVVaBddPNv/kujmXMJYqJgtCiWd3RkryZne6KpEcBbikq0n85JDB+c/V8n37IvObVq7VQ9G7ueilwNz28QHffsHfAep1y9mGwYvzfuLZAH9eY0ICEzwqr055bkKlmpS6URyviU8wSHjaApdcbxyHg+F6TmQ4G6vxKG1BrAmuvNJIFp2ipE2jl8mYjPUphgJDozHaGwSa61yVDoojfKSrQXz/kMH54Wr5Brj47fI1pTTIm04AXtqjhy56XocgPRNJDYm5eXeEp/siNNdpECoZ2cmKc9USoMgUCdVHJqCz8eiGPDoaXLTUO4rgDAcEC4NMQUIDlo+AXAhkmb8r5uwkUg4wv0WocgvVJ0GLJD7dXS++Xe3cJlRr318tX+K4WLriKc0tJNhZc4Cz55ZumTBKr1J6kuDY98XYiLFOyXOudj37XZdUexJSrYPcnqxH2cSnvZkuPNdGh6Q+LfCXAYnhgk6KquwFgzwyqHKM9k8ZkUJpBzilVTsVBEhpmBhf7GwU11a7mAnBuWGlnJH2sHHZU7EYGeWygFNmCLztxc44I211rnJXE5asCs9bhyxlbrMlps0eTGqviqVtTXQOlSS8zZPZMcpjo4nGToJD4t6/U2KMtYUkKGVxlh3bMhnBOa1Ve30NGV2gjGNc290ovnjI4Hx9uaxrSaFvyeqwfteeWC38+C4Hl53F3JOe2YQ5riodg3Jwip6VmX2yREHPh8FvMpYqStvB5KEmoRCdCdqZgZFYeaMP75IYCYyUmIeOC4ANjxUKMaIQSNc6Sq29vE3HQ7SJhg+/3d0gPn3I4EBK8aN12PzYqqBn03adUJ3RKvDPb0yZOGc8OEWwqpSeiVRa8u80/vbFwDMfVrus/a9LOgfMCnA81nWYbuK4zES012uSW3D2jMbwHeCJAWAoD2VrKoFin9a/pYAwkOjoTSGdEljQodVfc12xEPb9rgbxkWpXMan2+dE6+fjyp4KT1z4XKX+9tV7g2remtENg/plMeiYbfDKVZu1Osn40ETj2GVal0aukO0uik/gkPLMFqsBmfqzqKxJJMF0EnNClVbYFZ3A0VoZ8zYDEQM5oYGUHjSdYtsDsaIQgL1Hf4imJWdCp7IxyKPhyHfykvU5ccnjA2SDvXv9MdN7K9aGKhOl1fPn8lHJny0EppkiqtD2TqbSpwAkjiYExS/wSEKqyaYx9kvDJTKgtDpJ4tAdML6VdeoQESFObrjrXu3dMq/MNe4BdWW13KT1JdTrO0JZMKFwhsaDLAetRrQYcP4WFrWlx4WEB5wdr5H/3744vWbY20ql8V+Dzr3dV31klm7MfQJPYnv3ASTgG1rirtI9ZCQGhy8rXUFbiqX6pPaCiHjQ1IFN+SLmW+LpkwN85HvvkbDa8mEcta92y4DBbTYndNAQ80x/BZ/CaNmmo8Y+2NqU4X8rK6dMccN7tDVpyamrw6yZfvOWwgPP91fLa4TF51dI1kckhCVx+joP2Oi3WNoublKJKtqeoBs2sJrM3Vmr4v87J6ZuoqrI0yoDKrW3ao5Oqtl5jiV8qHZTK0pQma2dUA4exM/lI5+io8jjWsZ2aiLQ/DGJ15lpi+zDwxDMBRrOxqg63trioq9UqUK3F2CKV3Tbz5UinTXfA5pGORj1uugb3NvvidYcFnBtXyY8XQnn9X5dHSvdKKfCBBQ5mtSXAKatKTqTeLEBJYPi3ZHxT9MRMSoUEt4ultzZmwFFjGSKwdMHCmDLwxs7wIxr3DbtijLE2Y/oJxmUKyqQukwLmTzMcbvJqTLKOFSR2jQFLnw1UBpxqinatoc5Bd4fLYk9RWtT8I/0500On9TqqXtTZpMdNpfFgS0q88rCA873V8gIp5S0PLtH6hJnli05xcOI07bdbIiWlyIJQKa1TnFRCFRW5L9GOa0EaDw6QDUo3Prs7xnBeSwSJkSQ8VfBLex0s2xorJ4DzI3PZiqu2NVrdWZXH322GmQU8SiAJyyLcnjywfGOIkWxs+hdKAE1r99SyYqlzaipIFSwnCJw600E2J9HVbMBJ4fGWtHjZYQHnxlXyTOHgL39aXFAcQ3DeNN/FmUdrHzeZIRj33jx9P4DKZjWZ1PAzgmPrSFRN5GIrbcu2aMLzZauq1s7U+gI9zQIjefpVUI2SvmMqpQwGVX+AljbTp6Z+76zXkTwBo22iShtiga4ArNgUqsJdZCSDY5AmBKcuI5TUJu1fyoBDVTitRdPLT2F1a1qceFjAuX6ZnOf7WHv/o3nkC1Jx01nHuHjTid74LEGFgNQa8mSqP+l5jvN4KkgNJUGBY0KEJDhc3HBe36RK1Ew0Mu9l2oSp6gITtKo4xtiZQsKlVh08CQnmmJQ22jkLDq9nIDoWCazaHGE0ZyQnARDn2dXqqrgm6eR4npYcStt0A47n4Zm2jDj6oMCRUnYBKAgh9nCA6/8q25wabH94Wc4fGZOKm14y08W7TyU4mtQTOQZJqZmsFpPMfSmpSKRhCE6ymDVqJIfX8X2OzSOG+IrwplGwEuHLCaLUHBtDjCdHD62nSUsOAU+5QknWrr0xClJg1dZIVVhp+5SdUz/6PX9am1xVD7J4M1F62kxHueM9rVpyXBdb22tF7wGDI6WcB+AlAG4RZpPSh5dIf76P7Y+vyrcNDsUqFT+308UHz/RNlqB6gCyS4+xwwoUdl6A0fycX2xQOP7fg8P3SLbGyN1a9Jm2OaqUi4Y0UkNBaGizhjbQl+w4SFNPqUSg3uH8oRiwEVm1jd6pUtkU1LCZAonqjFPKepnoHmRptkyk5e0dj9LZpcBwHu9pr0S2EMAp5cpgUddneuo8ZPwvgOiHEWPKWbz0h1z65vjBv10CITMrB9GaBy84xKZyibansvSVjIStlybEnsjmqckkdbeo36h7anEAnOPlavzM2BNHG3dob5VLTvqg2KP0q015TMq4GVSjp6BuMlPiu2hYpt1hLTUl6rPdGR4DA8XOquM5WF6fNclVNZ0YJnL3ttegUQuSnnIQN5qWUswGcLIT4VflNX39U/vm5zcFZO3YGqqTbUufgo+ekVM5oXCXUuJRJx4CGum8oxvZBXXSa3qz37RRfZcFf0pXmInXQWLqccUeS0GXecDXrreoaCw7nsG1PBM93sGJbpFq+rJQkQdKqTUuPdhSAjhYXZ8x1MTQSY2a7caAcZFGLzk4h9nXCTv2yknM2YzshxF/Lb/nyQ3Jh/87gHTv6A9XkwKLX+8/0lU4uSoN1CNQftBQxn/Xjv+Qwu8PB6XN9VRdRXpXaQVCqUmrJNdxtGsl1rYU2TnOwfVGtHWxVc2pSlK5QjSu+7gRiL0M67WDF1ki70cZLsyAoUEysRenh4rnOxjoHp892lVorggOE6Xp0NQkxUM18LDgMjIQQ4oHym754r/yP0bHwEzv6C2iudVBX4+Di0z1VQCqCkwgKLTd/bVEWFy9I46h2VhEJiv7E2olkftdKjAVKmRJpunv8FxAcAJt3RajLOFi6JSr26pUHszZfp5tHbPwkcFyXwM6hEjhcleOgp6NObD8QcGYCOFcI8V/lN332t/LzYRB9pa8vr1LfBOftJ3toq0uop0QqnRO8d3WgxPx1J6bwdH+Ee1YG6N8bo7lW4G0vS2Ful2skoOTdlBwCE8vIUr+AnRPjnHL3NznfZPqkmsXba6zHqTpGix2oen1szWqodfD45rgY1ymJZhOJr5se6WwoRWIkng6DiqWkxKpNAc55UY0qtatSdYA53c3i2Wrml3QIWKH7NyFEIXnjFYvk+yDjm7ZuzaKp1kV9jYM3neSit2X8Zh01EDlnn5d0zW+y+Mir01i2McL9TwZ4+6kp1YUyOCrxy8VZfPoNGfS2MrLWBCg5Bibza/5AN5pVyYnAISEZxdOmbdkT4xXHeKq0YV8cxv5mCV/836hgPt2WrK3NoFNhc3RMeHY1Odi+V8JNlG3tnDm+7nMT7OhU6lBvQtbP7huMi+kbZvPzEU6Y3iCq6pcurkRK+VqQtkL8LgnOP/5anue48u5Nm8ZURY/gvPZ4D8d2T7CTSgJfXZTFpWenccO9Obzj9BR+vyJAZ5NQNfkFR3s4aaaxQSb8p32xICXtDxdo0/j8nOkb6n2+mDFe/HSALQORyq2xnPzeV9SozywAzGgohqYXZer/tnRd3DBVoYpqXWk2mTz+dAGnHZNSNpbSoohvOlST6rgaSWDvWsbDZ1wP96WAlTZkmejeJDhk5asA3CASBuuTt8tTPB9Lnts0iro0HQJHeSEvO8rwUZI9zbaNf/9tFm87La2I9IdVBbzqBB+PPROis0HgmG5XeXxUB0nPrZiNTnSFKsPK3XbmxUBT7Toz6ofq47o/jOLZgUjFX59+bV1RcpIlhkqLT06bT0hKFjmcEsi/EXwb4VcDQKVrlM1la1SMJV5h6HX1TU3nCaDXGRm5STQ07JwSHMW5Us4A8A/7ioFfE0KobOfHfj42I1WX2bhpy6ig59SYcfDSWS5edZxX0XPigm5+JI/je7XTwK7QR58OlZfXVi8wo9VVuluVHcZ71cXxbBqEnzdnShcV+wiMd7doRQ53r8zjrSfXYPNAhA+eWas4my+Ckw0rqDWTBNWA6DlMlsGoFhBlq4zbH0bI+x62Oi7W53JYzzDJc7B2sA+LZ88WOUvrEHi/B/yukpdsrMT4x0spzwQwHwAbrvs++1PEUQv6Nm3N1rOCQcN23HQXb3mxzhJUCvC4leJ3K0OcNMtThpKtrXcsyeO0uR66m12VYEyqq+QYFhjF2YKN7+Mlh7UXvihF/3z7MC49M4Pjp3lY2xfhRdO9IjgMCLWDYAColspTXKebBtUuO+kI7HF9PBtHWB+GeFK4eBIx1vsBnmtpEYNTPVJKmYqBD8TAM74Q95Rfn+Bd/RHTOPt2UHzBAVYA+BYvuOIubNm8PTc9CiMlOXSP3316Sm8wmuClmtAHJFLsAaMxM5ufqNpaTA7Kut36web5ZjxFWLAxviRhttXV7nYjc9D4Wm9rKmIcyOdKshxu8JUYzEp4nljdVivuj4DVPrDFdzBSX4MlQoh9+1kP/iWldPYlIj7qAI8KIZYkRyrZHECEUrJKd5IH3AjgVQDaAPz4yruxZNuO/EuyY6ECh97LB16ZmjItwsEZjLK8TIKycSKZILATKcc4GUcQnGq2nxw8efSdpeieHqPAn9bkcPvSvHJiRlg3CuW/rvpy29XFOUvZvq+l+w2smgP4fbUpmUrzpATtqxN+Yd9uGZqTYvqsCE5eyre5QKML/NQm5pQHFwfHf+E+/+1b+gpnDw0FKvPKFtnLzkmrFtXka7LovRq9nrzfAtZ6GMHh+BoEHQyriN8Aw6Ia7da6vhDLNwVYvSU0ZWgzE0fcuPLqtnFHu5Dr2WsJgEzNwysWC3HgG3NJw0DKV7L2J0Rp/46ibiDlWQKYu2+T6U3l7p2U+ZMe2ZT62S8fC160YUtBgUPjTnBqEjHI4UyrJGs9rZlShbJa6bBSQAfCgpAsI9BZ2DMmsWkgVmCs3xGqHBrL0to9LsU+6pmOi1gG71pxdccvJuJ8AG8EwMz+z4UQm6uda0ISG7lXwBWlRnchpWwOgU/ty6hfYz208oG/9if578d3xp+5b0VOBWN0qT98VirZLHdYcl6V1Bt3wo1LliZsEhmCUbgFoCgNxlGxkRjjI27d3z4kVbC6dU+MgRFu22cNiBVVlphNrcZs4yBKDRm34HnO42fOdZdc9urMV9trxdbJiC61qqO3y+vuKA/op7g3HQMfdIW4wV5HO3OxCywXQqya6OYrF8lPQkbf6fJ0Zvqx52K86/QUelpLgehkkjNRJnmcQ1D+8ERNh1sTOUYSBCsdxYUY747NHHtzEjuHJXYMQ/2v9rKqGEmqzDIBUY2GPFyCuwPCWNm19npHzm53c/N7ncwxXS66mtzId5ETDupY39snfVe3Z/CtyeoxPNoFwMsBMKi/WQjxTDVSJKXsDoDzU0nJiaT83L5A/BsTSQ0H/qd75AWQ8S1LV4/ixB4Pr1AusYOOBt0eVBLN/adxoLWU0mDjO3OS5QleQxtmS9d7RoH+YQ0IPStWR9WmZ2voTceMjZOo1pgF6GwUmN3uYG6Hg95WRzGedQ4qEdSch3B/IY/3T5Ufk1I27subfgAA82i/nsoWhVJeGAPrUkIsLTJcJOXlrhD/MRm6V/1OvtLx5QN/XTaqIvu2egfvOyOFY7td7M2PPzumggBUwzgVUU3mr3gBNy0NjgG7RiT6h4GBMb1H1Lr0ttRgz7MheGzg4FkFzDSw6YNhwMxWoVqn6IYX00UHMMtUCnviGJ9trcGPJkvBGIfhXBM33jiR2011GAKX7auOX5uUShFJeYUDfHsyZK9aJOf5Gax9ZPkImOPhrrKzj/Xxdy/x1cmDrOWP2k1oFUTlQKWHKobqiRt0NRD8X6sr/t2+bKBpW3ApGTT8zBKT+DNbHRzVJjC9hQf26Xhpsqx2JXx4PVUfX+wzsC/uVPNc/DoI8JHOetE3hT2ZC+C9AH4ohNiUvFZKWbNv79XnPP3ZOJsmClJ+2AfuFkJsmegBV90n22o8bH9k+ajPwxOYKT5ltqfsDidPm0CCjPBkJtMyW8kGVQLJlHlUUnP3qMSOIYkde9kLzQMczHkDxjglywp8b2tD3DI/vYlAOJjZJtDRwJrKwUkFAeYamIlg269tjCcjdNQ7aK0d37PnuuiHxCfaasUtUwDUDIAH+d0phGCAT6+wPgQ+HQN3pIVYWX4/vbXeELho3x4f2p2KTP6OhTJ10jRsf3TFaOvwaKw46NjpLj7xmhrd0GcSntzaziCTzX7ckqcnUHqkjeRpnGkb+oak8qB27pWq1YljKd60YJhbbXxCwjE1zxzdrFahwKCt4H5QStuBSgWHtwlSAjKaj9Vhr6pHQGq7ZJ/tKhWot+13GfCLUqRPG7l5LMCnehvF7olAopQYgHhM2E6TW/tvIcT6SvcoWoRS/j3p6Alxx0QDf/khuW7pqrFjdgyEYMNcb4uLf3lLRlcHEzcRnLq0pu+okSSqJ/YSbBmIFSADo3pLRnnaJZmZtqUBAk61RMPNn65GfQbAgabr7RTVARNmtzPtZbHFyVRe7UEh1IE8oEjzinbX2T+tOQ5oqYOSIvuiBvA8bJbAh9pq9s+T2esoLfsOL/oBwdmXovuSEIIZhoov9TQargh4D6Io57rurZXszzUPy4dWrcu94rkteXie5tZvvqtWJRbVAsy8aaC3DcbYOsCdyHrz0IPrI+wa1WVnlb6xlVMjJrpqqLtt2Agyq83B0R2u6snmniA2DR6MVBBsNhfSJlJaKZ0kOCWDgSYlw7rkjKUoGfydJ49Qohzb0WhUAGMqjqk7TFkF1SqU87Mv10XsePjPaAhXdXSU8m6mw2lBaLIJHrBg32bBXwohnp4UHAMQm6lYZ5g/CvywUYwXz2sekrdu2Jh/+6oNOTUxpm7OOtbDGXN9DGYZaUd4uj9G/7DeeqcOcHWBtjoHp81xlTSt2Bxj+1Bc9K7Y9NHT4uDoThdzOx31nhVTLvVgwdBn3iTAgDCdMSU1RQJTTVnJoDdHr64oGSZLYCVGJ1qZqdDtUslaED/rqBeqgaUoRbp+sz6McWlnBo+GGohXCWCVCywSQuSklA2mHY35tIrdOOOTY6w2Sjk7BVwsgTWudhRU/eHLf5Y3bNtV+Nijq8eUtDjc3aXaX/U+GTZwqK3gorT/RYFontBSJ3DuCT56W4UyuL2triq+0XBPVHqYiKNKKkK713Qm1BmdPK1Kn5OmjEW5ZJTUFBmEc0sQFHovjtUCah+POn9wSiW5AAAN/ElEQVRgPxKpNatnGPNIoKlJ2sqchUwaQVrgYYno+pTrkpbjegKllMcr0IT4bqW17v9k02QYAmc4wKslsNwF7rvmL3j14Gh4xx//OqL35Jf1R9uWKDthuq5sCTpumosTprs4qsNR3Tuq3dU0C3J9tD3V5uXU9cxyB9yaoXug9Q4DZYH0OEblkPBW+nj+YBIMvWimbnRdgqqXRTotFfq0Ql5DxlIq0Egfn6MKakr16Sodn6H8F5bKfWBGi6M8V05Fna7FRhUPy8IQl3bWi2XlIEgpmUy9t5J6qwhOwnh5YRieCs87xwGGvvdQcPJP/5x7XxDGLldE344TJiEYmFI9vaiHgHjKi2Il1BbPLJjJzVX2ACBOggsptU3pGZCRWU8hEemmq7M7FQG1ZCjCGKl1TF0nCNklQ+ZJSgVHYw6N89Fd3np7iVPMSiswjOEn81mPjYTm42JoSVOAU3IMQLSTtK0sKPLvZBrmHpNqjk/3fOSiEP+3ow5fT2ZjmLYBcKEQ4jvlwE0KTgIkXjctQnT2fU/Ky5c+FyygjamtcXDCNALiYVqzo11Pc5P1xGhBbF+XdZNLn+mLlTSZjVLqqOJcrPZ82pOhtOo0rrYBQ7u2GjjPdrtbL9wQT8dF+nA9EpaXkci2hSpWvrsGUnds6t1ylGaqaa0hdA7O4WHnpmioGj083divyuHm3Dadv9MeD8vzVNtJO2aqqA/HApd21Ih1Cfqyd+Ob5TWhqsBJIvrxXxRObqwVjx3dLp1juxx0N1q7YoYq3w5uTg8sdsQkmilUwBcAuUjHGFGsnQi6zylXYjSvm9e5YEUoqqIyw22NubZ/VsVpNUVJJCgqx6aOyS1JlOrIMXaJuxP05iqt2nilbfDQB9oRLK0heI/apc1TTVQxsdTlqjIQMXu4tVPDe48yfdJJGvo+huMYX2jL4Lv0jKWUzMHRJo1rNjxgcPiQD95c+IDnOd9NOWHq+GkOFhzlqnPWSBC9PVGrKHtus/Vu9PbAkqqizeAyCBI5lABqV5UHyWnrxeifnE9jz4qk2kFmALKqR+0o8FjX121LBUbAohTJWzsYS70zwdoTOiO8lM9Tu6tNs6AVRJUdMOcVWKeFWQvbTqzH1UxFYFhGV94bzx0Q/H6Hst7wBEJM/7gO7pExPtSawVkA/nhYwOEzPvTz8PyUh595Tlg3p93FWXMcXYY2e2rs4an8nRNWqfmAxNDqiUZdSUKoG/IIFPeRjy8vaCCoPqjXmSai8Wa8wdQKKaJrOiVVxbmpbEHMbeqa98j1+ow1fXC5UrOmRZhMYfeMsr7DeXJ+SmWpLEfJQeDcPKo5wxwEjvLDai3HbKihM3Bg/O55GGhIYZHv4EOHrNaS4nnZz7JnezX+7R6ilmnNAq871tUHLBg7Yr0nHbcwd6ZzOpZI9jhiewCr4mob1JpjxKwVIyH0oaxaOng2KGnPbYDKmWAAqYJL3aJEaaBrrD0urY5IeAaaOl+mpYLSx4ZE2gttY0o5uXIyW0mlsacjQI+U9yadj3KjPtXvqjspBRnE+FU+wMe7G0Tx5PkDg7nCkz6xMD/fS3mLHIQzePbZm493VXq+vCdN3ypVwwQJmYwxrNphZE6J0txuzpG2KQUTmVN1aM+PHC2Vx0gVyFQKiU342VNN704nXhL7dLRRUp6WCixVbDYxGGqjVKwdCnW4Hvvw9h2UQdt0oJn2SiBxHdQG9PBUCOCiT8a4rL1Op9EOGRwO8uGFYzNrfX+R4+DEGl/iTce76G6oELwZieKxJdy2rlxWElS541oquAtZ74DWQaGTtB3KpZVFl1edsUm1JB3dCWpcZOXa6k3Oaiw6FVpq+AxnwpYubSv1+AScEkK7weccDjCSAKkDXD1uCBsf57kupOvhR7GPKw4LOHzoZTfLlnR9dKuAfDX1+OvmOZjXPr5SWpyc4PcdxCoBmvwSpHLu0nUdne6xRlx5USbXZgM/gmjtQ0RbY+Kf+rR+vt3Srjne7KA2B0VQnalst/IS9ZmfVLva8zq0btByQK0rzmepGI4V2woSQnuY8rDwsIFDwr7vJlnT3Br9UEp5MV3VM49y8LIZZaVsgwAfTMLsHInHxSlWlXDWJBA9QLqmOuA0CUkjTcoZMIQlAJQQG7lPlHVQUb6yF1oVKi9NORpaOggyt8jvUAW+WKmweZ08kLVEqkmlKFkiMapZJXzNrgN6h3SCykGxsSDV+lM7Yjy2Uf71sIJDuvNLFQZeEl8Ty/jzVFkvnibw2nm6Pzr5KrnXUu3dKbq4xuhrm7K/3lWpmqTdMEac6o0LSwakfF7SbjCLTMlgsZDemP5cg8pWKdaYODxVmt3gq9StyoDo+1Rywq6lAkrjbK3pkyseZFHB8HB8VnhXb4uw+OkQa7ZGGC04kLE8/7CDY5//8dsKn5TS+UYhiLyj23jCoVtMrVtgitkEAeweiVR6pdzzURtiTQlUpWocm6LXFUvbNsWxCBBVnA4CGe3TZkBtW1GVUTM5tkHtyepeBIKiA8kEIxg1qgtO2iHnD7PPDLyTUf84hkucp1DOiPZ3mx1h1XfZ5lA1+TPbQmly6e9LZB3X+dE9n0pf/jcDh5P5yML8BVJ4NwX5oL6jHrj4VL0vJ5niSdohHj5Hz8WexanzZuZMgISbbe9R2QEaegWFthutdY7+pg8GxBW+14AG/8ENEcYC+90HJbtCYowTBvOLZqaSVHGvJwuOyYv3E6JEk78txW8dirF0Y4THng2xcXfE03LhctOOjPdCuH+MovDWCPE991/ZuOuweWuV3ET7t/f/LFgAIe4MCkEHm0EuWeCjM9FSVc4dY4VYN4475c6E3v+v6jAqkNW2o4VHNvI4YwbAxsWdiuMI6OJnIuwe0Yaftkzdk0BH/cW07vKrXdrqWJFlcS1hfyrssrCJXhp1qlluu1y2OcbyzaHa5aYcG5fbZ+QuIcQ9sYxvyQZjf3zocx37NcRPtY7J6F71Z+/9cW6edJzfhoVwDiXhPS/3cUxncRPffv58LohVs4e1H7Qz5PgaTyciaTvoiVm7sR+XJVaVlIbke4655NkIG3eVqVKTLM2kJLqagN4WgbYG/SzbYDKRxNB+sLb01PYIizeEWLklVCknepeOo9a7VQhxdwz8ajTe+cAjV8zITkbE5wUcTuAdN410uzL1a5YgyPkXnOLj9Nn6DJ0yplW/M6BkRkEbaG2MaTfsVsJkqdsuYr/FmD9MvEiJJ7fFWM2+I+6iy0hMb4E6L4Gbi5M1ITtRPd+SElMGPS+xZmuMx54L8eQ2npGjvUaWJCCcDZDxbyKEtw/WNSx+/G/55UZVi0uFC8+7bndjXab+5iiK/y4MY5x7goc3nqQynPu9iq5wme4uAlG2KaqoliaKrBMGv+jGmje0dfb7UHXtJvFK2B3FRGYClOyVmyMseS5UqotZald9h6qIhXBWxVF0ZxThjj8+tmg5bnlnVceplBPheZMc++BTbpT+TBFcF4XRR8MgUntL37MgVbQXxQCgwklSdgzr8WhDa1NF5lhJC06ZaquGqay9sNcmvUkyC3dtL90U4YmNoeok0s0gSl0FwnEelXF8e+iEd/3pHxvNlwxU89SJr3newbFTefN3s/8iI/yfIIycYzodXPbqdPHUDKvnTEij8Eq+Ty6nCJTRjeULKo+vkiFK+bVJj0tnJySe2x3jiY0Rlm8KVS82Xy5zLFJmhev+RYbRbYEvFt3/ydoJmzIPFqIXDBxO+Lzrsu8XEN+NwyDd1SRw+bk1yvsqGl6zqnHgmPakoupJhNpJlWftWFHaylZa7jYrL8oBsgWJDTsoHRHWbIswOKbzftrDigeFcO+DDH4V5eS9f/hC44QNhAcLSDnjHY5xDnqM139n5A2O4/9CRIUmbgb+6KtqVI9zeUeOBkjrOttrVi5R1u6UHITSKb77TdDYIBKeTY9Pbo+wdKMOCNnJoww6K2IC2yDxOyC+FeHwA7//bPfoQS/2AG98QSXHzvW860Zf6rvebxwEPUyd8MycF03nbrLxGVtrE9TOs+L2jtJWj6RNsv65VmulQ1KtGmTejKmSpZtCbNwV6whdpXT4pbXOOonwbkTy9q0j9YtXXz3+VJMDpPFBX35EgMPZv/H67Kw6X/zWc6PjmcU470QfL5+jvzehPIlp1V5xe6CxSaozpiywsWAQTfZl86zO5Zsj1ZWqygwOPSwngnBWxlF4p3D8O+4d8lfgIL509aBRmODGIwYczu/vr5dtDQ3Bba4Tn8X8ANMkrznOnj5bYQXWo0vu4zRAqbMCYolNu5kyiVVAmDTorJALx3s0jgq3x/Du+sNnaordMIebyAc73hEFDhfxjoUy0xQEN7mOvJDb0+jJveXF+sChckfBCkkxZWIidLYF091dvTVShyGpdLw26KPCcf8cR9GvRIjf3fu5um0HS7jn474jDhwDkNuO8GtCxlfIOFY7C84/yQdbepNfBE5QaNB5guG6HTGWbQrVSR7DKinCb1/1mHofkELcG8fhbaGo//39n576ZI3ng/DVPOOIBMdO/LKFwRUC8muQkepWYrP77Da9w4ETZ0GM6RLGIkwysnmDJeswxOYgxt1RGN4+FNc98MgVYtIcVjWEeiGuOaLBIUE+tjB/oSPc/4qjgDuaiw5CScWxKCdkLJ11hUJ0VxTGt62XmccOJIf1QhC+mmce8eBwER//Wf5Fwne/GEt5LuKolV1TcNzdEO7aKAzuiyR+/cN1qVVHgodVDdGrveZ/BTh2MR++Ufpey2ib8OqC/vCWwVveeXAJxWqJ80Jf9z8TdKFBFentJgAAAABJRU5ErkJggg==",ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABeCAYAAADYHcHYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQmcHFd55//V0cfcl2Z0jKTRZcuWZNmy8SVb8gEmCWD4EWzO9TqBxPjAgV1gs9mwiCQEOzYbCAmbi2OzkHgBQ8Bg8IFlfMnYum0dHml0a6TR3NMzfdXxlv979bprWjOa8cQGsdn6qdXV3TVVr77/+873fV8JvIrtuaOyKZHGu2WIeQjR79rYJ4B9jsTxFa1i9FWc6v8fWkEBMR2KfON5WZeowofqq/HJZEK2ubZA0gGSLqBOIDHmODjm2NjvF7FfSuyxLXSFQJddj+5lQhSmc51/z8dMCcQLp+S6gyfxN2EoVyKMCC8ASwCODSQc/UoloMBJuQLJBOA6gAwghYUh28YRKdHle+gMJfbaEvsTSRzsqsKpa4Xw/z0DYO59SiAe2S/n945gt5CyRkQA8J1/aN7HnYzHWIBjaYDINYZ7CFLCBWwbkCECCQw4Ng76IbrCAHvDAJ0ywH7h4dC//D0GNmwQ4b8XkKYE4m82ypq6OpwSUqbHAWHAIKViwEQfNf2i76Usk5MguREnGYAITtIRcF3NaX4Az7LRIwQOegG6ZIDdvsA+FNBVTODIJU1i+P81gKYE4ivPyFonhVMCMmVFXEBikcj8XAIhtq92Y2dWuxVXMh8JEnHiZwMSxZoSeS6QsAHXFXAcTfogQE5Y6IaFrmIB+2WIvaGFfWEBXY6N45fMFdlfR5CmBIKKumjLU5ZEkgAocSSAhBUokeOHQr30pBclcRUnfuVF4iCViBZxjWEevo/jJAHYjuYmA5QbcRG/DwJQhWWEwFEaCYUCOiGwp+DhgO2ia3AIJ29eIYpnK0hTAvF3m2W9HaJHSJk0oqnO9bCm3UIqaStieYFEwZPIeUC2CGTVvkAhoJgRJBBERP34BUtcMQF1FCAxcBTnSEVshHznK9SHcIJYEUAEiSIu4UaizuJkQRhKDMHCYeojr4DO0MIeP8B+q4hD2IXem28Wwa8SpCmB+MuNsqEqhR5AJhRHAFjaWMR5c5KGTqeNX59UKmIRpLwBSQFVBskjJyli678wnBLnBMMZpfcYGDKE0vi8Dt8Dfg4V4dV7CKGtu8hoSNCyS2iRR7CEBokA9ELgEIGh0QCgU9rY7+Rw6P2rMAQhYlru9YFrSiC+/LRslJbsKeRDt7VGKmLVp0LMaXBQlQDSCYGELZR8jxNwsuFWgkROykacNKa4Ccj7BFAglAKSf2A4IwJBcUb8ZQAhCCVAhAYm4hzzPbmIf0sQlNFAcFwgldQgJZMaKN5nGKIgLJy0LRwIfAXSHsfBPoo+L8SxDy4XmdcKlimB+B/PySbhyZ4Xdxcd8jd9BxK/OgnUpIC6KqChWqC5Wqj32qRAdUqgigA5AnZ0helMqRJIIeCFmpMIzmgBGC1C7ROogh/pJQMGxVVEYEP8IBwPhAEkDqDhMn5nRB+Z0xYSDi05F0gnJdJJoIr3lCJgmsssIKucWAv7gyK6HIE9wsJ+IXAgPR/HrxUi/2pAmhKI+zfKFgmceHF3zplbz1kaYmhMYqxAvcAboAiSSCUs1KRs1FYJ1BKgNNBYLdBUI9BYbaE+zd+BmqRA0p3yspOKOxLU88lFUgE0kgeGc8BwHsgUgZxnKW5SosmIMbMf+85wVVz0kfN4P/xO6R8pEYQSQcCXVjSWkIpjqnmP1QKNvL9aC401FqrSFugiQWLEtnFUCHQFPp4TAl+9dq7oOxMwU1Lkzx+Ws0QCJ57aOmQvm20jV/Bw/aoa/GDzMG5dX48HXyygs9uDJQRcx4JtW0riExzeBO2pVEKgJiXQUmvhkqUprF1mKw/837oZs1efR+skirrRolTgDGaB/iwwmCNgAtmiQLGkl8xflblBGwj6PGqCKeDKQPh+CC96+b5E0ePnAIEvYVn6PhuqLbTUO2httLFknou5LQ6EJbr9At70xoVi95lF9hkosuER2Zp0cOJ9FwRWb0bi5cNZ9GZdbN43jEC6OHQqh3Q6rWZLGITKOjIed6U4IjDvvKIOb78kidrU5EBM9st0xFulnuJYDNfSqsvkJYZyQP+Yfg3khOIqWnnkJD2hI0AIRBiqCUXCx4HwFAih+s4nt5BryE2h1NZdNNhLz0vjxqtqYDniqRvmWetnDMQfPS7bqiS671wrrYTy6Mrhjbwv0TcS4mh/iP09PvafKOJwX4Ce4QCj+VANRukIggPNIe9a24DfvjSlOOS12uKmrjlnHLRKU7h0XUV3Pa68R66Rinv6xyT6RoGBUXKTxGgeKBRJeAk/CBTxyQ0GGL7zHJyMBoiSPySBt66twRWravqPnMKc2y4R3kT3PSU1NvxIzhYuuj+yVgpaGdFkKaFuPGN+T8uJ04ny+9RwiMO9Pg6e4ivA0X4fvSMB3kGOuDiplHnc256UCyIqGj9EC6GyJRW/qUqOKX2OvPfKPzPcE3cijYVmLFafIClRF6IvI9EzHOLEYIATQwFODQUYGguRK4ZKh/BvKcq04i+PZsm8BH7nxqbeF7vE3A3XThzknBKIP/qJnGMDx/9grRQMO8RNxzgIhiBU5sns8yhms8jUXK+9cGowAlSQ2NEdYs1CR1le09kGMh68IIRtCTD87kQvfrYsikFyW8nCjbRFdOYYAHEQJgOgTDojnk4/b8Tg6gLkgrF8iIHRACcGAjz7SgEv7isoMJTij4axeJ6LW97adHJ7hzVvg5g4kDklNT72kJyXtnDso1dJHdqOOU+8TjwCG4YeasYeRCK/FV6mB/vq/xbVVamSCctjtx8LcMF8Z5zldKZB9I4U1Y3xGONQKtKrSLD2X/S7UGDxswanzHHjxFTMWzfcXQYpAqAivDLR3080iXjtzfsLuP/7gwiDOBAJvO+3mo6+a4m1YMY64pMPy3YrxNG710oVvlbsFxbh5vYg6y6CsOu0Rxzm0Jj9Z7j57QhGj2BvcBeC5jeiPl32mHnYSycCrCIQzpRzQI25L1NU4Fug6WhCJdqWVxPBzIaSf07QNAg6LiaU82bAUWONXPgyR5cBiM/kMwEwmeFgW8Bf/XAYT+/OlWi+ZH4C77yh8eD7l9mLZwzE3d+SC1JpHL7rSso+qcIG9d6zaHCOYbAvg57GD8GRGcwrfh1uYTf8kWN4Kfw4/MZ1aKgCOLBIdSjivXxScwSdvfg2GSwDmWJkv2uCcvYbcaRBKKuaMihxIaMnD0mtjGl61WpPe2VCWBqXCDj9q94mVfKxgVcCwlP9n2cy+Nefj5XE09IFSbz1+sbOW8+1zp0xEHc+KBemEzh01xXamfECIOF1Yg4eB6M0R3Pnoa1qH5zsVnjDx7FNfgqy8VLFCQTBTEDzvvtUgNXtjpL3k26xnwZHiuXAnoo68l9kIkfKwRyuFHr8tBElDbGMSVkCJvKoiYRRrsLoHcNx8VWwShthArbg4d98ahQPbx7T4Etg6cIk3riuYfdt59srZgzER78nO2wbBwkElTWDeH4ANI/9A2rsXghhI/T6UOg/hK34NNCwEnUpvUI3br0iotGeU5ojzghENFrSYnCM7nu0XhFfIYz5KyVOMFqb1yKRDSiG4MZHiHSA8aIVFxjvULGMcj7GBzUtCxZvqkLHVBKWXP9PT2bw2I5cyZRd0pHEuivrt9+10r5oxkDc/qBcnHbRddcVIVIOQxwSBR8QwQBm938ENrLIj6WxI/FZoLoD1QmhQSixelmh8zsDBK0fs51JWwyPemq2qviORTESKW5LhyE4KcgJDDtQbJW38r4iaZw7Sh8jcRUXNRWz3FhYDL9bxn6fnJfVOL++cRRPvpzTpmwILOlI4PJL61786AXOpTMG4iPfk0sY2Lrj8lDZ/rw9xRUcWeEg8kNdGLHXwEk3jQPgtPXsaDbvJUcscOAYbXuGm+JPI4ojNPEpNvhnJM7uYwGO9NOr1Sdg/OqcORbOmcOlPC26yrO3PI11NFdqbolC5ROFjeMOWWkVsQKIiRS2AeKZPXnt4Elg0cIE1lxUu+kTFzlXzhiI274jlyUddL73ghDz6hk61gG1YqAv4vk6/l8arBErFdOcH6kzDEfQ1JzOlsnSamL4PfIbJPBcJ51DHZJXVlykWRkQnN9sYd1yk+dD1IiLnvklcWPEVqQ0NMwGNwNa5JhF36vTOM6kazDmXnhbX31iDC/uLygg6Gt0LExg1cq6jX94sXXdjIG487vyHMvCK2SxmgTQUi1x7eIATdW2Yj3ay5yVKlA2BcsSiF09WkdMBMRE0Ixwyc8AIQRODEps6vQ1Z0A7iyvmOwqozV2eGselSx0snxeFASCQyUl0D4aorwLqq3T0V6mB0gQqx5dKoEQyiSCr4yiaqCTNNsnN0pf46sYsth0sqqgtwViwIIFzzq95/FMXW2+aMRC3f1+e60iV6lKaNe9cUcDitqQ2zyKXXoWNVbylvEBkxkoCc4BUCztPBFi9YGIgJhpkJhvpCNBhA7YeDHCgJ1TO5cr5DlYvdFUkd8cRH8/s1UvSDCi+87KE9j8sgR9uKeJon87MoS/EtRQVJa1lRFigrkqvr1BvlcLjBoiYcrbdaXLEkznsOurp8HkoMX+Bg46lVQ9veIPzlhkDcccD8jwrid2cFdw44961soBFrckYO1ecPlJSiksYClcE0Ur74ECIxa2xmTWFfNKiSYNIZbztUIB9J0NFwLdclES1yi0Bdh728RSB4LEW8N61SW0+C2BwVGLXsQD9mRDDOcaOoskSs7KYCFGb1otbrfUCi9u0hUQctNiVcLlSNMVGTv3az/LY2+2XRNO8dgfzFqa+/yeXOe+YMRC3fUuen0hgl+EIBcSqAjpmJaYa0/jfzcyKYkPT/eNRAhGWrbCTwxI/2x0o0UTduf78BJbPdbCdQOwuKjs37QI3X5HUMSjjD/CCQpvejHkNZiX6M4wey9JCF30kNdlC4DcvstWilgGC3yd54ukA8VQBB04FJY6YPc9G27z0d/7scuumGQPx4QfkSjeFl+JA3LSqgAWvFogpbmAy1T06RtFUNoE5w594OVDKOtK/WDbHVquAP9+vfY5VC2xcstjRSjzSXCYkT8KWIqQaG72g5EulS4ayDORJLJtrlSw0Y4hUV+vJN5kuVCKYHPG0hyP9QYkjWmdbaG51/uWzaxPvmzEQd/2rXEXRHgfi5lUFzG9JTGlBVF50QmJPYTxlRqNYU8yB48x9am+A3mFtOcWjqXMbBa5b6aooQGSh4uFtPkayUokezvLmGoogoCatEx/UkmgkhrQhxVU6rS/K1qBEDa2VKTaK0K8/4+P4INdjtLJubhOoa7K+cc9Vyf8wYyA+8l25Gha2jwPiggLam6ce1FSDns7vGghtvhp/TfkUQuD4gMSRvlCtnVN5L5xlqZdOfoksISHwxMs+Tg5Gvo+5KHWJDZWJYnRDQw0TIgTSSa08SkHByOtuqJ36npUf8SwXx8LScmtjK1BTL756z9XJD84YiA9/R17kOtgaB+LdFxQw9zUGYjLGGCEQVPia+oo4JHzK1dnopy0YGdlhThgpiqInMULRMybVCtzQKDCajxIgositiXIwM2XtClvrmEhRc7+5XhsoZ9oMEH2j0ZJpKNEwC0hVhX//F9ekb5sxEHc+KNdYNrZMBkRJXpZiNdGlYhYJv5me+3b6MEei6KsOaQMv7Jc43KvjXjVpoKFKixvOZpqttH70pWOKNnLgSoo3Emd0RHNFqcTWMMEZ02vaDNFctlz7ISUTXACt9VNzBMf49edCDI5FHBVK1LVIJNLBl+67puruGQNx+/fkxY7A5nFArC5gTuPUg5pq9kz5uwBGRorKFjfhboKwt1uboCrMEtson5mDVJdmCo/Ot6pN6zwsK+YjKCfNZGoYE7UE3HiP2pyeRvLsadwzJ8HXngsxkitfo7ZFwk2En7/v2tTHZwzEHQ/KN9g2XogD8Z7VBbRNY1BTEXo6XDLEFToTioiiqpzrxUCo3KrhLJS4GcnqRDSVa1Uhaqg/6LDRcaPYYe5VVZIZ5pprSglmsXCGMQCMM0GfZO407/nrz0pkCmbtGqhtCeEm5Wf/Yn3yj2cMxJ3fkZdZDp5/PYCYCij+TiDooZY3E57WMOpFHk15HsZsjAwTziKAuG+4xwCvwhVCZ/IxK7GmCqiJwGHaJb1xoxvMdbmO1d5UlgLxEVVOqK8+wwzFaN1aaiCsZPCZ+9enN8wYiNsflJc7NjbFgXjvhQXManhtRdNk3DE4XBgHBAmQLWgicpbG5Xg5ThSxRKQLaO4yXTOT1ZyTyWqnjgHLuOnLMaiU0pTAuR3WuFVEArGg2T2jD6HGIoF/fDpUE0LppBCoaw1hJYI/vn99+rMzBuKOb8srbRfPqsXwyK5+70UREGeK8k1nuk9DNg0QCGYQRzN/5xHgSJ8mGE1PKmwG8yhumAbJJVhyCZd01XhpacVFTsRHjCAztzabB0aZu5TlvkSxqDPJz19qo7Zah/15bSrwhTGOiN9e/Dbolf/D0zSpyxHf+jYJy/Y/cd+1VffPGIi7HpRrYeOZMCo5pE3/vouKaKl/9Q5d5SCmgQMIBDPpItcAPcNA5wlaO7o4Ja4PKG5oTREQOmu1VUB1WhdXMtqr9YGu14iDo8elf/dVxJSp/BrQSOrBVUBMHuIw90IQ/+7JAMUSvYDGuRLCDT92/7rUF2YMxO3fllfbLp4K/bLyef+aIpqnYcpNhymmOoYhjrGcvqv4ApynTE+tDyhuaKWM5aEIEBlZpVNThBEMZnRXk3PSQCqllTX9EOO4jTPFI04wC1xM1e1onhoIxrK+/ISvYlpmZbC5nYGx8PbPr0v97YyBuPNBuU5Y8mdBhDBv8gMXF9Fc99rqiMkGSCKRI5hnqpJ+PZ3eqPUBRVC0CS7jaqtprKABoi5g3IjKmtwzTpxEBSxMs1cp91VC6QbqHpq6hkeUHwkojpgOEEVf4q8fZwhcX43jb+2wIOzgQ/evT39lxkB8+NvyGtuRGxUQUab0LZd4aKr7t4umEg2nYouK3wmEAabghWq1UFcI6a0YAAdP+qirtlFfY8GxLR3Uo4mbDZHNATkqa70KO25juD6ZEFiy0FbFK68WCOqGL/yESXHRkqwE5i51YLvBLX9xdfp/zxyIb3nX2Y79U5/KJ8rtvPVSH42/JI6YDkbUW8xRpSXUOxLiiR1jeHJnTqd7OvQdLDTX22htctDW6KClgXUctjJhCyyAYcQ1FyKX42etI5Z22Kiv1cr61XAES9M+/6O8spZMvGrh8gSEI997/7rkAzMG4rZvy+ttSz6ugdBFKb9zeYDGaQTApkPE1+oYzuR/edpDV48OblCMFbwA+aKPfDFAoRgoLlI+iQGomgCxlsFBW5Ot6hpq0uSgqHNCxGI8HwsIF06gIyoNDsav7v0+K4z1xOW2dGUKluXffN81Vd+eORDf8t4kLPvRwCuHdT90ZYiGipDwVJZsPKsiEsCvCQa87t6j2krZdjBU6wn0G1RydmRSGWLRQycYJYAKgdqPA5R0LVUJRFDaGm3MbiRANlpqbSybrcUxOWYysTqcDfHnD45GAS/tfJ6/phrClu+4f13y+zMG4vcfkDcIO3zEJxBRGdNtV0nUT5MjyEG9owFYS8F817QrVH4Us0HscXlI0RCnY9PG7oay/uHNvl7cj1J2VJVplGnCHCwqcL4bi6oSIK1zyDWh4qACX1EhiuEglqa11FmY1+xgwSxXveY02WiqtXVCdbTANDAa4k+/NVICgkNdfVktLIRvu+/a1A8nBWLjrvxSO5G4/0hf0D6YCTuHRr0Xxwpy21gOu770u7W9v/dN783CsX7iedHSXyBxx3pMG4gTGR+nMoFewNFiU226V4dAmq+Epd4JFO3907CIf2EcBwAtKaGyCRlzIif0j7LARKrIJ0PeusavXKTP/RJArF4lQIFOCTI12/G5oQDyNNdQvGmQQlUmQIB4bFWSANklgKiPHngmq2tFou0NV9VDiPDN961PPTo5EHvyb3Ud5yFekDOp6FsYKwoMZPziSEEc6MuE/YMFrKUlwmgnk8vufiPZd3rmaxyIyQZhZKlSrqoFkeacKnIPC9dVYtl4ePhxVjpyuWJy0RzGsRqABrgGkZEqiYBhbnKGAijKzVUmMjnI11mMhoOMiOO4jT/BS7EoheIsT4AKBIdg6e8Ink5a0AtZjFt1LK3C6GjwyZ7D3nfz1X1Hd21YcVoHBPHE7vxv2bbzoyKVGeuSYzlKPBFnilpsHwtVFkT/WIiFLQLtLa5ScFwrZiuGUoJvBbUpmrqHfWQKoTp/nOhnUhKGe0h+5ZBF4KRdqyTeWqvK085gcZquir4oARRI1R2BEVsCNBBxEAEysafJACIHEcQzAVSkDoq4h1xUVDqIaSw2hModxaAQzn6EwV4ZhjtDS2zftu+pJ8VPd+V/U1jOw9qq0IXmpprfJOnSFFMzJtAD4WIKa+SyhVCtDbO0ddFsB+cvOHOWA01MzrqcKnIPld6gfU9xYRT4VCrCAMkFoKsWpEpBuImMhZKPEA+7VqBvACKx6Agy3Ybg8GUSCUj4OAeVdJAvVXG+4SB60+Ze4hxkHNK4BUd681hhqeS4/yV+ssP7DcsRP9ZAsLKSxeamzpjcECobnaW7WnTpGWGy+3TEksAEuOkqVqVMblFMxAHkGNUmIgKIIOVZQhvdvBELlX9LT3ftgpTO5DCqpwKNCS25mI4pnTM60Chxdc3onIw9KYCyWvcQIO5T7Jn0G5M9yr8n7ZSIiwwEijoeZywtAxDv+2jPKDI5j5m6OfHj7d6bhS1+QjYyQJhc1qbqUAXQMtkQOw4XMJQVmNucQiDLBeVadNCZCvDba9PjlBRvqD8bKKuJx9FaouznilnKsVTYgLI/TrASAULNLQQm54Xq3XjQPC9zmq4kEBXpLZWecomiZ5KDcSCjiXTaeaJwhSG64SAaBUq8ZUO1BqLC61F4wxzLCcyJy/EzJsZyYl4mm/dxsHuYHJEX/7ol/2bHcX6irQFtQQR+Fq+ctHDL+ho015q4C9eLc3hwUxbntNcoMPTk0sppJOvj3esIRJklqLj29OhCE7PFdYSS/XYETiT7qawnS1DmLOLNMHzN96WMhkbIVc7+Sf2aOEeYfcMRMU4Yh1vsZGY3LkKV9x2Ng+NiOJ213OQg6lZyEEuEzXZsQLe2yBV8HDgeAfHtzd4NjiUeIRBKxgUSb5v7Xfztz5fDbTgXcxt1BejqhbZKO3lsxxg27vKwaHZVRGAdqx8c9fG+a9PjrBvqmM5eT83siVyG+M0agGj20YultaS4x7UUJzGN3yQeG9FRkxjPTSXumIjFpuKImFKfVKRNcI7TdFoc1Miv4b3RGHh0p6cixmwcMDAWB8LKiW88m7/BdR0FBOVYS6IHb5nzEF48MRs/PfVbivhUKhQFb1njqnj/H3ylFysX1Uc1Czoy2Tfi4QPXVY3jCI6b8p/iiQqest+Ivclk/0TgEMSy32GpOg2ats1p5tPEMu+myEgvLV5EiDEdU1UWxZVFTDSdbjhM4ONUrI+rU0fnNGLWZKDsOhKo3F36OqcB8bUnvTdZrniUNjCtoxW1O3FF87P4p5cuRJ97KRzL0r2QAuD8dhsXdtj4u0eHkPMSpcAZQTo17OGW608HwtxjXPkVIvGSpSfLnhZR9FQdW1EGN9FE5o0SmDe0R+HRcXpCk+80nTyBItdZgiagfvqV4sZWWUDr4/iZnQpovak2SbEJUQkED6ahvbc7wJauSYD48kbvjbYlHgsIhATOrd6F62b9GA++sgZ7iutUxxnTYocZ2NesdPDwllF0nhBoqXOVfiAQ3QNF3PqmauXul8zRScRB5Uxj6KQYtQXS3c9CJc7OxD0E4uJ5lUDE2UNTS5mdE44jxgcRaqcTfvwfmtJ6rvFZCNB5qgDfz6HOHkHacVFV146EY09oUvPcnQTiwCRAfPFR73rLFo/7vrZs6p0BfGDOl3GiMAf3br0ZHXNqlcgiGPOaBNYscfDQzzMYzruoSlglIPYez2H30SyWzklgVUcS589Por3FUR1bTPggfltn8hf4m7I0Ki2niHt4Pk6AS9qTUejEyJOYUTCpTogJ8TjnVPga6mPFIDUQAWYHW5AOjkOEY4A3DFkcwZjfgsMNtyCVKHd2q9Q1BGLbZEDc+1DueifhPh6oqkDOIIF3tn0DLekM/mHfe1C06jGaC5BwLFx7AcWRwNcfG0ZLXTpy4fU68cuHsnhx/5i6fVU7BiZ60dFLYOXCJFYsTGJhq4PqpPaGJzIPp9CnpXOTe8gxbTV0hsafa3LrSf9idIIRlSV6x2Jhygo6DQh9QFIOoTV4Dgm/F/BGAT+LMD+C3tEkji/4Y9SxfqdS70Q3tu9EODEQlpUVn/tB7jrbdX+qgIhmSK0zAiccwUDQjosWcbElULmudTU2DpzwsHV/oIJdJAJnJoHY0TWGrQfHd/rkzZRaNNiWKipZ0OrivPlJLJ/nYmELLTEd8JkJMLSmKjcDRFwBl/YnEFMKkDgqJhOnpGk1IpxaDUEXmvwtsPxRIMjSzlesGw53oSvTgpFzP4NapsdG+bKVYyMQ2yfiCAXEQ941jis2+l6gPdSYl9neHGL1IpYrWaqlaHd/iO0HWQmjQ84kIJd3uc67rWsU2w97kCoBSp9EdRViyRb7ZNg6JuW6FhKurTz1dMpGW4ODjlkOFrdaaG+yVI0bwZ0sdhW/uTgQEwFgJlZlMlKcxsZyMucdD60WRhaKmOVvRo2/HwjGgKAQDdCB9PPwu3+GrfItcJZ/WNUZmq2SO/d1h9hxcAIdQSDue0RWWyK4F1JcFwThOZLL3IGOxBKUhCOVTU+XnovwxqoxfoEBYs+x/PCmvWM3CynXwU5cjdBbIyyrRik2i70AmTXBpC0LiQRj+BEgLgGyVA21bQuVt8oahwXNFtobdYIxjYGJgDFAxGe83o//f7rAI3EbZZeaKKPWHORlVWlJtHS0EMq5FX4/lljPwvV6AT8DhKz7okK2kT8Ons1RAAAPKUlEQVS0EbuxFoWqc3A4sR5L59SrnoZmCGoUMWQJxEsHGWmIzNe8jwP0rAlEfJj3PCYXOH6wVlq4XkhxdRCGS6SETUUezw+Nzx7O3nQCOHiqOFjM17b9/W26MdSKO07VhGl/jYVwne26621LXuI6doNpR00wEgTD0dxBjlHh44qQN5V9a53A/CaB+c0Cs2p1I3jeJL3yEifE0JhITxgucGQObeE21IQnVSbImLMUfWIZPKQimpW1dp3/Cpr9LbCDEcDLaE6QFqRfRP7os3i+/g/RXX1dqYhzeatAXcq0UI2oZCw3Pt9hukCMmztSivsezXcIaV8lgDdKWGvDMFwUQljUJ8ZOpxlZlQRODgaDvYNVJSAq52H7x46m51W5q52kfVUqkbzGdXFpwrVmqR5MFjvfEIhYmx9Ta2cmWKQACSQrfjpmCVx/XpSDr0TqeC4w44uDUh12Y7a/CU7IzjEq9Akp0hh1l6NXnIMQeinUlnm0+ZtQ7R3QXECd4BMEAJljGM2F6Dn3Xrw01IpRJhurPrMS5822UJc83ds3jEEdMSFHiAqOOJ2Jy99s2LDBqrv8DxdLKa8Stns9INYKGXS4NkTSDTGaQ/fw88n50+1wv2LDrsTi+nkrE659VSKRusaycJllhXOV7lEVQsZymdjQpSP1sd9IRKGTMgjjAIiK4S0RYpa/DY3+LgjJUChXhgL2dADsNEK7DgNYhp1jS3Bu3QDaik/D8fsiLsgCvqcUs+x/Gf31N6B//h2ES9WMMwNdmfd0hglEeuLx8tvXBIhKkDZIabX8tLA06VpX16St63L54Hu/uy75nTOBeabfrtkgnYUdxXMzI/mPC2Hdmk7acFzdMdPM6vgt0nH86JsTSv9MZrLSIdzXPYLrmjaijs2cdTG4fhlzwk4DThqBVYMs6lHjH4IIyAFjmgtofBQzGOs/gi31H0drxxvUgDgW9p7K5A0QEivn2qpwZqKNE2tS0STssYn/aqbUfA3+7spPdd8tLOuLJJbr2EinHFSlXaSSjtIlZqOl9tHfSCog4lbKOFHkHUBr/gkkMQqEnNW6hYAMfOS7tyAxfx1sdnZz2NOI5g4XYjz9Ilg8fKwbRzO1eDZ9N+xEHVbPtUqW5Y5jAUZiomlVu42marb40lucuARif3eInRMp67MRiKsIhGN/kbPXWGZK3Aj287NATkmnXNRVO/jEjSllHmu7vbwJ6aO1uAmNxa1AWACCohZHTDAe60Wm9yD6zrsfeasR54x8Fa5qwR+BIViypZvP+0OHsSV3JXbZN6iTV7nAmnZbN50HsOWIr5IUjGi6cKGN5ppY1kAMjDhHnFLLs0DOWE1nIxDrN5y8W9jWFyWBUNOqXE0an2W0pu773eZSlrcRYYlgAHOzP0Iq6I5md0Q2Nt7t245BzEffuX8KadXg+JBEcWAvbmj4MSy3GnBSbLgB6eWQH+nD7vS78cKpdtXGTgGREHhDh44lkbAvdPlqOVVnh0hcvMhRKTfxzXjpPL4zsppOB8I6+0TTO7/Yv2EoE35aUDRMAgK/JxD33tKofA/jiPK9MbsJs4e+A3BmU9xYKcUuxe5n8Zz8j2i78D0lkcF+ta/0hFhZ04n1bTvV+nE4ehJDxVr0ttyEU9kUth/RMTgSm8WSly11Sik6mzo9lYRA055ccclSB231ZSCMaFJgRDqCoumsBuKhbrkcAT63dXfhxqc3j1gqfUb9M++RPRRZU/Ql/uwDjeWqoZJglph//POo9o8AySbAG0HviUN4yL4HudRiXHd+2eRlP9rOE5pjLmrej2WpfQhSC5CpXq2If2okxJaDfslgoI+wdrlbAuLp3UW1CkegqX4uO8fF7MaJgaA1aDzrsxKIR07KVhngU0GIDxU8pF7qzOP57Vkt++MKz3S4jJoj8kEdf/K+hpJo0kdrNGx/AItPfB6hl8HRbBt+WPwDZP2EKmB802pNSFJ3XzeBiGY8gLlNNi5exPZH+mwnB0O82GWAkCr8sn5FQtdfCOBnLxXBzD5uBOKK5a46h9lKYimKuXUe1yEOA0RpzdqyR39lVtMjJ2W1HeLuX+SBfaLoodE8fOPl/QW8uDNbaicaF0/xGBGB+O831ynRpCHQMRmGVIqBhcH+fjQ01CCZTCrCc82YCcJtDeUZu+uIj30EIqLCghYLaxaX6+SO9wf4eadX+p1pQ9euKgPxxI4iBjK6momiae35LuY1ayAqxRKH+crZBISU0n7qJN7/i1aVnyn66FDJCuYBHGwR11XA1peZUm9E0jjdp0SVCm+4Av/tXTUlHWFAEGA4RqrOxEOjITJ5i7Ec1FfbmFVvqaVf05eJi/xs1cDEORK0tcHCRYvKQBztDbDpFaa76K2p1sL1F+o+UBzeY9s0EEY0Xb3CRXuLXr6NA0GxZIDYfjZwxHMn5fXCxr1egIuLNOujVMfSU1AksPdgEdt253WHzGhqjVspju6Qy5P/9berIyBMG0tyRKBWz7SYYgjDRsG3VFcBNpQfHmNaJHtu8PECAs21Vqk9NnOY4qmdR/sCPLsn6o7DFhB1Fm5YU+aIR7YU0T+iK/LIEVevTGDBrIgjonHy7awB4sUBufIX0fLPeQHe4vkQ5qknShwZMKL9zkNF7NhdKPXeUF5spQCNZNTtv5lGWz1tfmU3mRa7CgweoipLdQ9lJSyM9UKisac3ezURHDZhZ0J0U60ocQ1FHnUBfxscDdE3rNONLl7mlvpH/XhzQXETNx67bkUCC1rLQBgdUQKiWy8MnWIeLnOgTF7T660jtvbKucLGp0Pg1qKHhEpVjD+UKdqPc0TnYQ8790RAxKSt9inGi6nqpMBlyxx0tFqY1WCpRim6QXo87FFWmZWhEHNKHsGSKxK8d1jnIfE07FTA81IkmQePlDL2AOw64uFIr+YyZvatW5VAR5tuphI/twLiF13VqCMmAsKy7Mzroqyf6ZW1VRY+Ztn4T56PevP8H2VvVxC/xBURSPsOedixp1gySyuJX4IioqpSlJJZhGxaYqGtQaK9RWBRq6tKtvSypVHo5VTK0o2bKGEMY3IgHTTWX58aCpX4IaFZmUqHbVadpcqHjaHAlCE2ViFXsZPBREAwOrP3WIht1BEVHPG6ALF1UN5oAX8TSrSbInnThMRwhHmPiybDKRQFh7p9dPcEGB7RuVYTJ6dNNL+BgZEiuvtzKnv83OVprFycwtJmG+11NpiQZiyv8bw1vU8cG5Uzn40xMiaViU2Ttq1RP2OIllw81hIXTVzV3XOcK5y/BCCe7ZFLalLY7RWhFgwVqWKdwczsLT0Zy4ipOJfEHmvGPNKevgAnTwUYHAqirscVRKvAYyBTQM+Azm+c05FC65yEWg2sSVporbEwt9ZGWxXQmGSRTLmBvDnrxPCWy8BKNgS5JuKEnqEQAyNah3BF8YLI8vqVAfHZ74+2tcxKHp/XbNm0SLjoo1b2IlDMKl9JRMV1RrRvuMSIMJVTRRlelOgfCtBDUAZZb61JVskt/SNlIJYtr8KijpRO21SrgVG7bNWIHWBCCSvQGlxGvT3Ma3JU9zJTfzdZeH3cVDAOv+n74fGpXOPFk1HWe39ZHLFho0wli36PlGEdKzOp5OY0U9npxOISKLGnKY5T4AaYiENUblNsnw9TMo8/o9jq6wswMBiikC+DMjBSwIn+HJqbXKy9ol5lI6p6vSh3Vqc/ainOt/6BIh5+cgAneooqort8fvrYR99W+88tTc4az5MXC4FGpeOiJrxTCbG4figp7MiPoGhSsSajIwpBcPBERghhbXvNlfUXng6+GQbyXazC0s9u0yk1fF4bZSlBYWV/XIGf9pjLCTjF6BDNTRoQ/UhM3dBkoD/A4ECAvqEimmdZWLm8OmrsHnvohwEg6nT5/NYRbNo6HBWhOKFt2V8ZSxT+y5F7Fg6SiAcPylSxFqsCgbWOjXWhxKVSYi4TcCo7GVQadZWeNbmCynrnIYY4BIbzSnA9sOXA8CeTvYX+1xwIDuh/Pifn+X74NuGId4dBeKUMkdCPCePz2nQX4rYm/SA9ztS4zpiQQ+h5R2GEOGi0iNRj1yLxYKKwatZHnWlKMj3a4fW7ewp4eOMAegc8tVYOYe2zID/8yhfanzjTjN+4UTotq7DMEsEVlmWvFwKXh4FcwgQU0yKj8nrGd+E7zdeXjjA5LvzTA33W0yOW8/wPPqgfs/m6ABG/mb/amG0XjnOjbTs3eYG8MvTDBOvM+Fw3EoxgtDVZaKpjn1WhRVFciU+wb3SMeTeZdUamx2V7KSjLzjN+iKdeGMbmnboOWgjHg5BfHCoOfab3yytGpxI7lb9LKcXLA2h3gcukwHrHxpW+hxW2LZOqc07MGSVHHOzFse2HcMTzird+6m2pffHzve5AjAPledkuC+HbLVvcXCyGlwehTKgiSp3ticY6C3ObLfUubD6PNBI/MTAIlFHk5pHKkQ9XMgqMtVa6tgAOH8vjx08OYCjjq4ePCCF2ijD8vc4vzX/h1QJwpuM3d4+0VCdrL4bAOsfBVaGPCy1L1pHxgkB+bFmjPWGroF8qEPEb+PzPsvND33m7EM5NRT+83CenqBJZzSmM68xttRUorEJSFa8xQOI+yUScYcAoFkM8sWkIL+3lo2YY+HFyUsp7EM69d/+XROG1BGGic508Kav7Ev5FCctp8+rx0Aox8cPNf2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",st={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Qe=ae(59301);const Ue=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var $e=()=>{const[Dt,Fe]=(0,oe.useState)(0),[te,ee]=(0,oe.useState)(!1),[he,ue]=(0,oe.useState)(!0),fe=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(he)return;const nt=()=>{Fe(qe=>qe>=99?(clearInterval(fe.current),99):qe+1)};return fe.current=setInterval(nt,5e4/99),()=>clearInterval(fe.current)},[he]);const me=()=>{Fe(0),ee(!0),ue(!1)},be=(nt=0)=>{ue(!0),Fe(nt),ee(!1)},Ae=nt=>{const qe=nt/1048576;let ot;return qe<=.3?ot=3:qe<=.5?ot=5:qe<=1?ot=10:qe<=2?ot=20:qe<=3?ot=30:qe<=10?ot=qe*10:ot=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${ot}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},De=()=>Qe.createElement("span",{className:st.dotLoading},Qe.createElement("span",null,"."),Qe.createElement("span",null,"."),Qe.createElement("span",null,"."));return{progress:Dt,progressOpen:te,openProgress:me,closeProgress:be,toggleLock:()=>ue(nt=>!nt),CreateProgressModal:(nt=Ue,qe)=>(typeof nt=="string"&&(nt=[nt,nt,nt]),Qe.createElement(Pe.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:te,title:null,footer:null,width:500,afterClose:()=>Fe(0)},Qe.createElement(Ie.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},Dt<=30&&Qe.createElement(Qe.Fragment,null,Qe.createElement("img",{src:Ve,alt:"Step 1"}),Qe.createElement("div",{className:"mt20 c-light-primary"},nt[0],De())),Dt>30&&Dt<60&&Qe.createElement(Qe.Fragment,null,Qe.createElement("img",{src:Te,alt:"Step 2"}),Qe.createElement("div",{className:"mt20 c-light-primary"},nt[1],De())),Dt>=60&&Qe.createElement(Qe.Fragment,null,Qe.createElement("img",{src:ze,alt:"Step 3"}),Qe.createElement("div",{className:"mt20 c-light-primary"},nt[2],De())),Qe.createElement(ke.Z,{className:st.progress,status:"active",style:{width:"auto"},size:[300,8],percent:Dt}),!!qe&&Qe.createElement("div",{className:"c-grey-999"},Ae(qe)))))}}},73131:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ct}});var oe=ae(59301),Pe=ae(75727),Ie=ae(6767),ke=ae(25399),Ve=ae(37568),Te=ae(99571),ze=ae(44622),st={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},Ue=({position:Jt,children:sn})=>{const{left:It=0,top:wn=0}=Jt||{},[bn,_n]=(0,oe.useState)(It),[Xt,zn]=(0,oe.useState)(wn),Ot=(0,oe.useRef)(null),jn=()=>{if(Ot.current){const cr=Ot.current.offsetWidth,it=Ot.current.offsetHeight,_e=window.innerWidth,Re=window.innerHeight;let Xe=It,lt=wn;It+cr>_e&&(Xe=_e-cr),Xe<0&&(Xe=0),wn+it>Re&&(lt=Re-it),lt<0&&(lt=0),_n(Xe),zn(lt)}};return(0,oe.useEffect)(()=>{if(!Ot.current||!Jt)return;const cr=new ResizeObserver(()=>{jn()});return cr.observe(Ot.current),()=>{cr.disconnect()}},[It,wn,Jt]),(0,oe.useEffect)(()=>{Jt&&jn()},[It,wn,Jt]),Jt?oe.createElement("div",{ref:Ot,style:{position:"fixed",left:`${bn}px`,top:`${Xt}px`,zIndex:1050}},sn):null},St=ae(12242),$e=ae(56102),Dt=ae(95487),Fe=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=(Jt,sn,It)=>sn in Jt?Fe(Jt,sn,{enumerable:!0,configurable:!0,writable:!0,value:It}):Jt[sn]=It,be=(Jt,sn)=>{for(var It in sn||(sn={}))ue.call(sn,It)&&me(Jt,It,sn[It]);if(he)for(var It of he(sn))fe.call(sn,It)&&me(Jt,It,sn[It]);return Jt},Ae=(Jt,sn)=>te(Jt,ee(sn)),De=(Jt,sn,It)=>new Promise((wn,bn)=>{var _n=Ot=>{try{zn(It.next(Ot))}catch(jn){bn(jn)}},Xt=Ot=>{try{zn(It.throw(Ot))}catch(jn){bn(jn)}},zn=Ot=>Ot.done?wn(Ot.value):Promise.resolve(Ot.value).then(_n,Xt);zn((It=It.apply(Jt,sn)).next())}),nt=({visible:Jt,position:sn,selectText:It,applyRefinedText:wn,fetchUrl:bn,noRestrictModal:_n})=>{var Xt;const[zn,Ot]=(0,oe.useState)(!1),[jn,cr]=(0,oe.useState)([]),[it,_e]=(0,oe.useState)(""),[Re,Xe]=(0,oe.useState)(1),[lt,Be]=(0,oe.useState)(""),[bt,Wt]=(0,oe.useState)(!1),yn=(0,oe.useRef)(null),[On,Pt]=(0,oe.useState)(!1),[Vt,zt]=(0,oe.useState)(0),pn=(0,oe.useRef)(!1),Tn=((Xt=jn==null?void 0:jn[(jn==null?void 0:jn.length)-1])==null?void 0:Xt.loading)===!0;(0,oe.useEffect)(()=>{if(Jt){Xe(1);return}Pt(!1),Ot(!1),gn(),zt(0),cr([]),Xe(0)},[Jt]);const gn=()=>{var Or,Nn;_e(""),Be(""),(Nn=(Or=yn.current)==null?void 0:Or.cancelRequest)==null||Nn.call(Or)},Mt=(...Or)=>De(void 0,[...Or],function*(Nn="",ui=jn){const $r=Date.now(),or=[...ui,{text:Nn,key:$r,sender:"user",show:!0},{loading:!0,key:$r,sender:"AI",show:!0}];Xe(2),cr(or);const Kr=Yt(ui),oi={no_record_times:!0,prompt:Nn,history:Kr};yn.current=new Dt.Z(St.Z.API_SERVER+bn,oi),yield new Promise(Me=>{yn.current.on("data",kr=>{const{chunk:{msg:Pr},full:ei}=kr,Ii=Pr==="error";Pt(!0),Be(ht(ei)),cr(Di=>Di.map((Ti,Vr)=>Vr===Di.length-1?Ae(be({},Ti),{text:ei,loading:!1,error:Ii}):Ti))}),yn.current.on("done",()=>Me()),yn.current.on("error",kr=>{const Pr="\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(kr)==="[object Object]"&&kr.status===-9&&(Xe(1),_n(kr.data)),cr(ei=>ei.map((Ii,Di)=>Di===ei.length-1?Ae(be({},Ii),{text:Pr,loading:!1,error:!0}):Ii)),Me()}),yn.current.on("cancelled",()=>Me()),yn.current.startStream()}),Ot(!1)}),Un=Or=>{_e(Or.target.value)},Yt=Or=>Or.reduce((ui,$r)=>{if($r.sender==="user"){const or=Or.find(Kr=>Kr.key===$r.key&&Kr.sender==="AI");or&&(or!=null&&or.text)&&!(or!=null&&or.error)&&ui.push({question:$r.text,answer:or.text})}return ui},[]),on=()=>{if(ri)return;const Or=tr("\u6539\u5199");gn(),Ot(!0),Mt(Or)},mn=Or=>{if(Or.key==="Enter"&&!Or.shiftKey){if(Or.preventDefault(),pn.current||yr)return;on()}},er=()=>{var Or,Nn;zt(ui=>ui+1),(Nn=(Or=yn.current)==null?void 0:Or.cancelRequest)==null||Nn.call(Or),Ot(!1),Pt(!1)},Sn=[{key:"1",label:oe.createElement("span",null," ",oe.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:oe.createElement("span",null," ",oe.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],ht=(Or="")=>{const Nn=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((ui,$r)=>{Nn.push(`\u7B54\u6848${$r+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${$r+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${$r+1})\u8F93\u51FA\uFF1A`)}),Nn.forEach(ui=>{const $r=new RegExp(ui,"g");Or=Or.replace($r,`**${ui}** `)}),Or},tr=Or=>Or==="\u6539\u5199"?`${it}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${It}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${It}\uFF0C${Or}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,lr=Or=>{let Nn="";Or.key==="1"&&(Nn=tr("\u6DA6\u8272")),Or.key==="2"&&(Nn=tr("\u6269\u5199")),Or.key==="3"&&(Nn=tr("\u7F29\u5199")),gn(),Ot(!0),Mt(Nn)},qt=()=>{const Or=jn.splice(jn.length-2),{text:Nn}=(Or==null?void 0:Or[0])||{};gn(),Ot(!0),Mt(Nn,jn)},yr=zn||On,ri=(it==null?void 0:it.trim())==="";return Jt?oe.createElement(Pe.Z,{open:ri&&!yr&&(bt||!lt),overlayStyle:{minWidth:200},menu:{items:Sn,onClick:lr}},oe.createElement(Ue,{position:sn},oe.createElement("div",{className:st.wrap},Re===2&&oe.createElement(oe.Fragment,null,oe.createElement("div",{className:st.chatContainer},Tn&&oe.createElement("div",{className:st.loadingWrp},oe.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),oe.createElement("div",{className:"ai-loading"})),lt&&oe.createElement(ze.Z,{cancelIndex:Vt,streamingStatus:zn,loadImage:!1,onFinish:()=>De(void 0,null,function*(){zt(0),setTimeout(()=>Pt(!1),0)}),value:lt})),oe.createElement("div",{className:st.btnContainer},oe.createElement("div",{onClick:()=>wn(!0,lt),className:st.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),oe.createElement("div",{onClick:()=>wn(!1,lt),className:st.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),oe.createElement($e.CopyToClipboard,{text:lt,onCopy:()=>Ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement(ke.Z,{title:"\u590D\u5236"},oe.createElement("div",{className:st.btn,style:{marginLeft:"auto"}},oe.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),oe.createElement(ke.Z,{title:"\u91CD\u65B0\u751F\u6210"},oe.createElement("div",{onClick:qt,className:st.btn},oe.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),oe.createElement(ke.Z,{title:"\u5220\u9664"},oe.createElement("div",{onClick:()=>{Xe(1),gn(),cr([])},className:st.btn},oe.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),oe.createElement("div",{className:st.inputContainer},oe.createElement(Ve.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:it,bordered:!1,onFocus:()=>Wt(!0),onBlur:()=>setTimeout(()=>Wt(!1),300),onChange:Un,onPressEnter:mn,onCompositionStart:()=>pn.current=!0,onCompositionEnd:()=>pn.current=!1}),On?oe.createElement("div",{className:`iconfont icon-tingzhihuida ${st.cancelBtn}`,onClick:er}):oe.createElement(Te.ZP,{className:ri?st.sendBtnDisabled:st.sendBtn,icon:oe.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:yr,onClick:on}))))):oe.createElement(oe.Fragment,null)},qe={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},ot=Object.defineProperty,mt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,wt=(Jt,sn,It)=>sn in Jt?ot(Jt,sn,{enumerable:!0,configurable:!0,writable:!0,value:It}):Jt[sn]=It,At=(Jt,sn)=>{for(var It in sn||(sn={}))at.call(sn,It)&&wt(Jt,It,sn[It]);if(mt)for(var It of mt(sn))vt.call(sn,It)&&wt(Jt,It,sn[It]);return Jt};const Ht=Jt=>React.createElement("svg",At({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var Qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",ln=(0,oe.forwardRef)(({initialContent:Jt,onButtonClick:sn},It)=>{const[wn,bn]=(0,oe.useState)(null),[_n,Xt]=(0,oe.useState)(null),[zn,Ot]=(0,oe.useState)(""),[jn,cr]=(0,oe.useState)(null),it=It,_e=yn=>{const On=document.elementFromPoint(10,yn),Pt=document.createRange();let Vt=null;const zt=document.createTreeWalker(it.current,NodeFilter.SHOW_TEXT,{acceptNode:on=>{const mn=document.createRange();mn.selectNodeContents(on);const er=mn.getBoundingClientRect();return er.top<=yn&&er.bottom>=yn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let pn="",Tn,gn,Mt=null,Un=null,Yt=null;for(;Tn=zt.nextNode();){Tn.parentNode.getAttribute("data-select")==="disabled"&&(gn=!0),pn+=Tn.textContent,Un||(Un=Tn),Yt=Tn;const on=document.createRange();on.selectNodeContents(Tn);const mn=on.getBoundingClientRect();Mt===null&&(Mt=mn.top)}if(Un&&Yt&&!gn){const on=document.createRange();on.setStart(Un,0),on.setEnd(Yt,Yt.textContent.length),cr(on)}else cr(null);return Xt(Mt-1),gn?"":pn.trim()};function Re(yn){for(;yn.parentElement&&yn.parentElement.tagName.toLowerCase()!=="section";){var On=window.getComputedStyle(yn.parentElement);if(On.pointerEvents==="none")return!0;yn=yn.parentElement}return!1}const Xe=yn=>{var On,Pt;if(Re(yn.target)){Xt(-1e6);return}if(((Pt=(On=document.getSelection())==null?void 0:On.toString)==null?void 0:Pt.call(On))!==""){Xt(-1e6);return}const Vt=_e(yn.clientY);if((Vt==null?void 0:Vt.trim())===""){Xt(-1e6);return}const zt=it.current.getBoundingClientRect();bn(zt.left-30),Ot(Vt)},lt=()=>{},Be=yn=>{sn&&zn&&sn(zn,yn.clientX,yn.clientY,jn)},bt=()=>{if(jn){const yn=window.getSelection();yn.removeAllRanges(),yn.addRange(jn)}},Wt=()=>{window.getSelection().removeAllRanges()};return(0,oe.useEffect)(()=>{const yn=it.current;return yn.addEventListener("mousemove",Xe),yn.addEventListener("mouseleave",lt),()=>{yn.removeEventListener("mousemove",Xe),yn.removeEventListener("mouseleave",lt),Wt()}},[Jt]),oe.createElement("div",{className:qe["hover-line-container2"]},_n!==null&&oe.createElement("div",{className:qe["line-button-container"],style:{top:_n,left:wn},onMouseEnter:()=>{bt()},onMouseLeave:()=>{Wt(),Xt(null),Ot(""),cr(null)}},oe.createElement("div",{className:qe.button,onClick:Be},oe.createElement("img",{src:Qt}),oe.createElement("span",null,"AI\u6539\u5199"))))}),Nt={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},ct=({nodeRef:Jt,noRestrictModal:sn})=>{const[It,wn]=(0,oe.useState)(null),[bn,_n]=(0,oe.useState)(null),[Xt,zn]=(0,oe.useState)(!1),[Ot,jn]=(0,oe.useState)(null),[cr,it]=(0,oe.useState)(!1),[_e,Re]=(0,oe.useState)(!1),Xe=Jt,lt=(0,oe.useRef)(null),Be=(0,oe.useRef)(null),[bt,Wt]=(0,oe.useState)("");(0,oe.useEffect)(()=>{It!=null&&It.toString()&&Wt(It==null?void 0:It.toString())},[It==null?void 0:It.toString()]);const yn=()=>{const zt=window.getSelection(),pn=Xe.current.scrollTop,Tn=Xe.current.getBoundingClientRect();if(zt.rangeCount>0&&zt.toString().length>0){const gn=zt.getRangeAt(0);wn(gn.cloneRange());const Mt=gn.getBoundingClientRect(),Un=40;let Yt=Mt.top+pn-5+Un;Yt<pn&&(Yt=Mt.bottom-Tn.top+pn+5);const on=Xe.current.scrollHeight-Un;Yt=Math.min(Math.max(Yt,pn),on),_n({top:Yt+6,left:Mt.left})}else wn(null),_n(null),zn(!1);On(zt)},On=zt=>{if(!zt||zt.rangeCount===0){it(!1);return}const Tn=zt.getRangeAt(0).getBoundingClientRect(),gn=window.getComputedStyle(Xe.current),Mt=parseInt(gn.lineHeight),Un=parseInt(gn.paddingTop),Yt=Xe.current.scrollTop,on=Xe.current.getBoundingClientRect(),mn=Tn.top-on.top+Yt,er=Math.floor((mn-Un)/Mt),Sn=Un+er*Mt-Yt;jn(Sn),it(!0)},Pt=zt=>{Xe.current&&!Xe.current.contains(zt.target)&&Re(!1)};(0,oe.useEffect)(()=>{const zt=Xe.current;return zt.addEventListener("scroll",yn),zt.addEventListener("input",yn),zt.addEventListener("click",yn),zt.addEventListener("mouseup",yn),zt.addEventListener("keyup",yn),zt.addEventListener("click",yn),document.addEventListener("mousedown",Pt),()=>{zt.removeEventListener("scroll",yn),zt.removeEventListener("input",yn),zt.removeEventListener("click",yn),zt.removeEventListener("mouseup",yn),zt.removeEventListener("keyup",yn),zt.removeEventListener("click",yn),document.removeEventListener("mousedown",Pt)}},[]);const Vt=(zt=!0,pn)=>{if(!It)return;const Tn=Be.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),gn=It.cloneRange(),Mt=window.getSelection();if(Mt.removeAllRanges(),Mt.addRange(gn),zt){gn.deleteContents();const Un=document.createElement("div");Un.innerHTML=Tn;const Yt=Array.from(Un.childNodes);for(;Yt.length>0;)gn.insertNode(Yt.pop())}else{gn.collapse(!1);const Un=document.createElement("div");Un.innerHTML=" "+Tn;const Yt=Array.from(Un.childNodes);for(;Yt.length>0;)gn.insertNode(Yt.pop())}Mt.removeAllRanges(),wn(null),zn(!1),_n(null)};return oe.createElement("section",{ref:Be},bn&&oe.createElement("div",{ref:lt,className:Nt.toolbar,style:{top:bn==null?void 0:bn.top,left:bn==null?void 0:bn.left}},oe.createElement("div",{className:Nt.button,onClick:()=>zn(!0)},oe.createElement("img",{src:Qt}),oe.createElement("span",null,"AI\u6539\u5199"))),oe.createElement(nt,{key:JSON.stringify(bn),noRestrictModal:sn,visible:Xt,position:bn,selectText:bt,applyRefinedText:Vt,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),Xe.current&&oe.createElement(ln,{ref:Xe,onButtonClick:(zt,pn,Tn,gn)=>{wn(gn),zn(!0),Wt(zt),_n({left:pn,top:Tn+20})}}))}},89371:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ve}});var oe=ae(59301),Pe=ae(62957),Ie={num:"num___VQiqB"},Ve=({visible:Te,usedCount:ze,totalCount:st,onOk:Qe,onCancel:Ue})=>{const St=()=>ze>0?oe.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",st,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:Ie.num},ze),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):oe.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",st,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:Ie.num},ze),"\u6B21\uFF09\u3002");return oe.createElement(Pe.default,{centered:!0,open:Te,title:"\u63D0\u793A",width:620,onCancel:Ue,onOk:Qe,footer:ze>0?void 0:null},St())}},28424:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ee},Q:function(){return Fe}});var oe=ae(59301),Pe={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},Ie=ae(95487),ke=ae(12242),Ve=ae(44622),Te=ae(73131),ze=ae(69779),st=ae(11445),Qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51AzAXz4ah0vXZxZPD8E4qtPkef76xY0CnkWvAAbxN38ejUXHBjZIO4z9betGi4YvwmIK/Or4IkD2vwCYYdeFAJhhwLThCoACYIYrkOHhixYoAGa4AiaHr20R2lG89ri2et5Rv2iBAqDJCmS4O9ECBUAuBUQXyiWX9YwFQOsx4YpIAOSSy3rGAqD1mHBFJAByyWU9YwHQeky4IhIAueSynrEAaD0mXBEJgFxyWc9YALQeE66IBEAuuaxnLABajwlXRAIgl1zWMxYArceEKyIBkEsu6xkLgNZjwhWRqQB7L85A76UZuDWmQDCscAWy1o3tsgQlxRI0bM+Fhh36X0QxBSDL0X/rwzH4ciS41jmYcv4PldnhhR8W63onxRSAXf8Q8Ewhp3LCIHoPJ95HxTBA1m3+9aNxs+MX/gDgJweKEnanhgEe+9sYDN9c7DrFvhHJXXvx9o2oKLXDyz9euRUaBtjWdWvJgEXsG5EcQFZKu28EG9i0e0tWdGgYoNaB2DcieYCsJO/7mQKgMb1NLy0Ami7p6joUAFdXb9NrEwBNl3R1HQqAq6u36bVZHqA2QLMVyPRRsACYou3v2CfIeLdDTebiFABNANj4yuWC0MzkA0TB65Ek5SCg7PGADQilCFMKVA4pNHxXxngSETyxqRLderu9ypSVfAEwSYCRVZCp/E2IQAVFhG8LdUIpSGhMUvDIM5VVI+3tiCTT+sREPgnVFtYgd9IQ3QgYcW+Aqa2SAszIDvzF2d9X3Uimy7V8C0xC45QUYfe0xqOBTUEgOzHFktmVUIImc9Fk/+kT+6Z4fBsGWNMceAZTGjuhRB+7y8S10OfbhuyXR0P1mOD74omLgBAE6H8E5O9kp3SnJFQ4OwqjoS13viJfrd/isCtO5xwNOjGR71NAKcUSdi7nx2aD85+97rmmFyIPwPgfu2v2/wAoFEUrTPS5yUwDeOhFf963NukRipR194iKYFoGuPpgmTTCMyg5+IuBoulp2KQQXBEPlE2WrvQcr/pcD0S9AJf93OSj3s8fnIOQS09l8WysPA9j8MZkug8wsqtjp1QJS1S+9Gxl9TUjA5DGVz4rCN/N2Umxai/4hYqQhK6dO149lOi+aGSeHPngK7s3eJp8ezCO370kAmtVgKzb/GoY9t7T8thHUnGor6+jXvXl1ERnufLxSCMgwWrtoAhT+OLcCfellUonCzD2yWXmnH30fPz6eG0yEK0IMHJRtvj2aO95SIKRLXcu+d9++wXTU+jqWs4VUyrXAVna2m0In+3prL61HMRkAC756HnUMTvpvc0XKudQqJIAylcPbFa6gqwIsP5IYAvB9PuabvOb/i5PX6IuzUhbZF3q/Kxjn2aUGyooLzh1qn3zXDzfegGuuO0AT9BGN6rgqSsZWzbPm53KeUwtIqL0zuEKd7eR+53eWBpeHipV5pUGtb2EyXDvGx6fHoC8DYJ7Imt1gHUt/lqqQNliz4LC5XLxR+90bDTtnpcI5iNHfdvCBG1X231PWvfxBx1bJ7RljeqZVQAjy2PjuY+rBxNspNbdtevrRKKbebytjeK/3wg8hgBiKddEITd9b3p6BcAVlK5tHtwJlDwUa30AMz8qd51cja5TG9ael3xl8yFUG/udUFqyLu/9f7/28Lza1vItUO9Nejkueu8Jkb2fvENPqhemkST5+zqqrpvZuvT6YvE0HPUdIBTnL5YJX+jvqvtSAIyjYl3LuUKq2PZHD7HlsfzymndPtaOwXtHNtqtpHXgYh/GOWEyU3uk7UfOpABhH6Vpv30MA8s7oIYLJTd8b995zzIa0kr+9TRfzZ9H8wcWLCpMtkxf+o56Hii50QZ2anw00YAmXRsWy28ggz6JyqsB6vP7H1YMZB0inz3RVfRetz/IAUyWM1q/HG9iPgBZGf5dDc91n/9T47WrVv1w9NUeHGjBRYhcWBSUw0FUbGxULgAvK1Xr9T0XSIBb+tpZL7/I8YUgV6LqWQDVV6KZF/9KF/q6q2EBGAAQANuKraw4cVkN4rtz1z3RMH7QXQk3r5w/jcCg2kKGydGVA9ahJAIy2wCO+w+oJvN7pR6paXtTvI83+zWEKVbGBjIKu9b3pGhT3QI3ydd6BZylgHP3ZKi1Qu6xGZNtF3/FdlwVALcCmwUPqSXzx+pIP33u1dDrVLSyR/3qvv4oAbI7aSQ7s6z1WPSwAapSrOTLwqPp5ptMGPd2vu28nEjjVxz1NgT0I0dhrt2bHlTWL2dorHUnocl+H62KqAa3kf2GD6acQonLUrsAhnTx1rOquWXFlDcCGlwcrlHlSExMGwXh/p/sTs4RKxs++nwfWzwTpvmhZStDswB9dHyTja7kyWQOQ5cBcuR4+pB6JFq+HD9971Z22+2Bt86ALKHkwKj4GuHquyz0kAC6jQG2zfzdQuD+VgukV/2DbSXli+L4n1d0nkpxn+jq2j+n1occua1ogO9mGI4MVCl7sRgkiyoacdf/VPoPTI4xRm/om/3aCYFvMD6HB5yrd75u9uJBygEafB2qFXGmCHu9JOMtE6+tw9xsFwlOeZQaEptY9RlQZ7zKCobOd7qs8fvTYZhXASCvUDmbYAmmC1D49Qum1iZdny16ASVVmQNYBjAzdmwb3I0wLYqM/isL2vJnTPa/tntQLIlk7T+vQLhRWtqrLO2y0/8zrNSPJ+lypXNYBZCe7t+nT/DmUt1+9tMaG8NgW7DYzI1srrKdpsB4hskH9OyJw+9wJ19lU5aOmHGAqrjo9Pne/NLApGMLVS2wJDeY68dlP/+C6o8eHXpvI05CjQzvUCVWsLEF4rqis6mQq0zqyFiATsLF1aFdI051hhBQM9ELPG65rZrSKSCLx3RxP3FfXFACbDAM9ne4bei8GXrusBsjEuPeB6oJECMYdVDqvTm/gEe9gG5VnRv1bQgrZipAUWyq7x0eKIWY9wEh6nzewbcmcbMlNCsYlO75WLDlv65kvsuWxEMEbQmGlUp0BEHXJuk0cJk5QvwOcQohZDzAqbGPzYEmIEk880WOjVUATMlYmqYJn7cg2R2zziIQxCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",Ue=ae(92310),St=ae.n(Ue),$e=ae(6767),Dt=(he,ue,fe)=>new Promise((me,be)=>{var Ae=nt=>{try{We(fe.next(nt))}catch(qe){be(qe)}},De=nt=>{try{We(fe.throw(nt))}catch(qe){be(qe)}},We=nt=>nt.done?me(nt.value):Promise.resolve(nt.value).then(Ae,De);We((fe=fe.apply(he,ue)).next())});const Fe={contentRef:{current:null},value:null,status:!1,open:()=>Dt(void 0,null,function*(){}),close:()=>{}};var ee=({className:he,style:ue,onChange:fe,onSuccess:me,onCancel:be,onError:Ae,fetchUrl:De,noRestrictModal:We=()=>{},showEditableToolbar:nt,bottomOffset:qe=110,loadingText:ot,showEmptyData:mt=!0,onStatusChange:at,stringTransformer:vt,bottomContainerNode:wt})=>{const[At,Ht]=(0,oe.useState)(!1),[Qt,Zt]=(0,oe.useState)(""),[ln,Nt]=(0,oe.useState)(0),[gt,ct]=(0,oe.useState)(!1),Jt=(0,oe.useRef)(null),sn=(0,oe.useRef)(null),It=(0,oe.useRef)(null),wn=(0,oe.useRef)(null),bn=(0,ze.Z)({scrollBoxRef:wn,bottomInspectRef:It,contentRef:sn,status:gt,bottomOffset:qe}),_n=At||gt;(0,oe.useEffect)(()=>{fe==null||fe(Qt)},[Qt]),(0,oe.useEffect)(()=>{at==null||at({contentRef:sn,status:_n,value:Qt,open:Xt,close:zn})},[_n,Qt]);const Xt=jn=>Dt(void 0,null,function*(){Ht(!0),Zt(""),Nt(0);const cr=De;jn!=null&&jn.fetchUrl&&delete jn.fetchUrl,Jt.current=new Ie.Z(`${ke.Z.API_SERVER}${cr}`,jn),yield new Promise((it,_e)=>{Jt.current.on("data",Re=>{let{chunk:{content:Xe,type:lt}}=Re;ct(!0),lt==="text"&&Zt(Be=>vt?vt(Be+Xe):Be+Xe)}),Jt.current.on("done",()=>{it()}),Jt.current.on("error",Re=>{Object.prototype.toString.call(Re)==="[object Object]"&&Re.status===-1&&$e.ZP.warning((Re==null?void 0:Re.message)||""),it(),Ae==null||Ae(Re)}),Jt.current.on("cancelled",()=>{it(),be==null||be()}),Jt.current.startStream()}),Ht(!1)}),zn=()=>{var jn,cr;Nt(1),(cr=(jn=Jt.current)==null?void 0:jn.cancelRequest)==null||cr.call(jn),Ht(!1),ct(!1)},Ot=(0,oe.useMemo)(()=>sn.current?oe.createElement(Te.Z,{noRestrictModal:We,nodeRef:sn}):oe.createElement(oe.Fragment,null),[sn.current]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:St()(Pe.container,he),style:ue,ref:wn},oe.createElement("div",{ref:sn,className:Pe.liWrap,contentEditable:!_n},Qt&&oe.createElement(Ve.Z,{cancelIndex:ln,streamingStatus:At,loadImage:!1,onFinish:()=>Dt(void 0,null,function*(){Nt(0),setTimeout(()=>ct(!1),0),me==null||me(Qt)}),value:Qt})),!Qt&&!_n&&oe.createElement("div",{className:Pe.imgBox},oe.createElement("img",{width:56,src:Qe}),oe.createElement("span",null,"\u9884\u89C8\u533A")),mt&&_n&&oe.createElement(st.Z,{text:ot}),!bn&&oe.createElement("div",{className:Pe.backBottom,onClick:()=>{wn.current.scrollTop=wn.current.scrollHeight}},oe.createElement("i",{className:"iconfont icon-huidaodibu"})),oe.createElement("div",{ref:It}),wt),!_n&&nt&&Ot)}},11445:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ke}});var oe=ae(59301),Pe={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},ke=({text:Ve})=>oe.createElement("div",null,oe.createElement("div",{className:Pe.loading},oe.createElement("div",{className:Pe.dot}),oe.createElement("div",{className:Pe.dot}),oe.createElement("div",{className:Pe.dot})),!!Ve&&oe.createElement("div",{className:"mt5"},Ve))},54872:function(Ze,Ee,ae){"use strict";ae.d(Ee,{o:function(){return oe}});const oe=Pe=>(Pe=Pe.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^*\\s\\n]+)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),Pe=Pe.replace(new RegExp("(?<!\\*)\\*\\*\\*([^*\\s\\n]+)\\*\\*\\*(?!\\*)","g"),`
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
`),Pe)},53763:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ke}});var oe=ae(59301),Pe={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},ke=({number:Ve,active:Te,className:ze})=>oe.createElement("div",{className:`${Pe.digitalLabel} ${Te?Pe.active:""} ${ze}`},Ve)},72825:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ue}});var oe=ae(59301),Pe=ae(18287),Ie={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},ke=ae(73631),Ve=ae(5623),Te=ae(21890),ze=Object.defineProperty,st=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Dt=(fe,me,be)=>me in fe?ze(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,Fe=(fe,me)=>{for(var be in me||(me={}))St.call(me,be)&&Dt(fe,be,me[be]);if(Ue)for(var be of Ue(me))$e.call(me,be)&&Dt(fe,be,me[be]);return fe},te=(fe,me)=>st(fe,Qe(me)),ee=(fe,me,be)=>new Promise((Ae,De)=>{var We=ot=>{try{qe(be.next(ot))}catch(mt){De(mt)}},nt=ot=>{try{qe(be.throw(ot))}catch(mt){De(mt)}},qe=ot=>ot.done?Ae(ot.value):Promise.resolve(ot.value).then(We,nt);qe((be=be.apply(fe,me)).next())}),ue=({value:fe,onChange:me,scrollId:be})=>{const[Ae,De]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{We()},[]);const We=()=>ee(void 0,null,function*(){const vt=yield(0,Te.NZ)({});if(vt!=null&&vt.data){const wt=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:oe.createElement("img",{src:ke,className:Ie.folderIcon}),isLeaf:!1,children:nt(vt.data||[])}];De(wt)}}),nt=vt=>vt.map(wt=>({title:wt.name,key:wt.group_id,icon:oe.createElement("img",{src:ke,className:Ie.folderIcon}),isLeaf:wt.children.length===0,children:nt(wt.children)})),qe=(vt,wt,At)=>vt.map(Ht=>Ht.key===wt?Fe(Fe({},Ht),At):Ht.children?te(Fe({},Ht),{children:qe(Ht.children,wt,At)}):Ht),ot=(vt,wt,At)=>vt.map(Ht=>{if(Ht.key===wt)return te(Fe({},Ht),{icon:At?oe.createElement("img",{src:Ve,className:Ie.folderIcon}):oe.createElement("img",{src:ke,className:Ie.folderIcon})});if(Ht.children)return te(Fe({},Ht),{children:ot(Ht.children,wt,At)})}),mt=(vt,wt)=>{De(At=>ot(At,wt.node.key,wt.expanded))},at=fe?{selectedKeys:fe,defaultExpandedKeys:fe}:{};return Ae.length>0&&oe.createElement("div",{id:be||""},oe.createElement(Pe.default,Fe({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ae,className:Ie.folderWrapper,onSelect:me,onExpand:mt},at)))}},37208:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Te}});var oe=ae(37639),Pe={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ie=ae(32637),ke=ae(59301),Te=({type:ze,style:st})=>{const Qe=ke.createElement("div",{className:Pe.wrap,onClick:Ue=>{Ue.preventDefault(),Ue.stopPropagation()}},ke.createElement("p",null,ze==="shixun"||ze==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ke.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ze==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ke.createElement("div",{className:Pe.contact},ke.createElement("div",{className:Pe.img},ke.createElement("img",{src:Ie,width:"124px",height:"124px"})),ke.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ke.createElement(oe.Z,{content:Qe},ke.createElement("span",{className:Pe.text,style:st},"\u9AD8\u6D88\u8017"))}},25138:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return St}});var oe=ae(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ie=ae(92310),ke=ae.n(Ie),Ve=ae(29787),Te=ae(2859),ze=ae(24092),st=ae(59895),Qe=($e,Dt,Fe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Fe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Fe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Fe=Fe.apply($e,Dt)).next())}),St=({data:$e,className:Dt,fullWidth:Fe,style:te={},onClose:ee,onOk:he,showFullTools:ue,noAssociationId:fe})=>{const me=(0,oe.useRef)(null),be=(0,oe.useRef)(null),Ae=(0,oe.useRef)(null),De=(0,oe.useRef)(null),[We,nt]=(0,oe.useState)(!1),[qe,ot]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),$e!=null&&$e.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",$e!=null&&$e.src&&mt()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[$e==null?void 0:$e.visible]);const mt=()=>Qe(void 0,null,function*(){nt(!0),ot("\u6B63\u5728\u52A0\u8F7D\u4E2D");const At=yield(0,st.ZJ)($e==null?void 0:$e.src);me.current.src="",me.current.src=At,me.current.onload=function(){wt()},nt(!1),ot("")}),at=At=>Qe(void 0,null,function*(){nt(!0),ot("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ht=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:$e.title,file:At.dataUrl}});Ht!=null&&Ht.id&&!fe?(yield(0,ze.ZP)(`/api/attachments/${$e.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ht==null?void 0:Ht.id,settings:JSON.stringify(At.state)}})).status===0&&he():Ht!=null&&Ht.id&&he(Ht),nt(!1),ot("")}),vt=()=>{const At=document.querySelector('a[href="https://markerjs.com/"]');At&&At.parentNode&&(At.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(Qt=>{const Zt=document.querySelector(Qt.name);Zt&&Zt.setAttribute("title",Qt.title)})},wt=()=>{be.current=new Te.hP(me.current),be.current.targetRoot=De.current,be.current.addEventListener("render",at),be.current.addEventListener("beforeclose",ee),ue&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),$e!=null&&$e.snapshotData&&be.current.restoreState($e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),vt()},300)};return oe.createElement(oe.Fragment,null,($e==null?void 0:$e.visible)&&oe.createElement(Ve.Z,{spinning:We,tip:qe,style:{position:"absolute",width:"100vw"}},oe.createElement("div",{ref:De,className:ke()(Pe.imageDimensions,Dt,Fe?Pe.fullWidth:""),style:te},oe.createElement("img",{className:Pe.img,ref:me}))))}},25363:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Re},$:function(){return _e}});var oe=ae(59301),Pe={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Ie=ae(92310),ke=ae.n(Ie),Ve=ae(28284),Te=ae(6767),ze=ae(62957),st=ae(71051),Qe=ae(77019),Ue=ae(62673),St=ae(75727),$e=ae(14566),Dt=ae(99571),Fe=ae(60242),te=ae(17149),ee=ae(37568),he=ae(46133),ue=ae(12242),fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6wc+WQ31nTh+63/K05sHc+JLeEjKW3BnT+CKxKh66L4P4WWu7ySVj1sh63GwNN0u36IwVQMk6HPWMHVKmmeceLoOR9exnpFC2nHs2F/LDxqwi5PBIdJTA6ASClbE4XOHsIhjsR3DIByhboCPVYZg2qvAHST21tlA8oA9pnQYuemqwOff5TcPMqpK2Ae5ra9Wd/hvU9ocZDkLbW0ktz4PBynU1+OgZnzhMZQo5quAhBz/DqNQdy7JHEnt4+HbZ+BqMcwJs+gR/nQ62W0EttFHxrB8PR7+xlYq78Zl2h4wQrt6oHnD8MfXaCV8XSb/wL+W2hYUd4fpKlr+sOFw7q58P3VQhosZAjGhwEmkTfE2D8Uavg4GZo+oKenz8O0zrCBw6gb8dD6Xyo3RJ6r7DrDnwD54/a1Di2HU7vhZoNofd6K7fpA7hwFF5ZFO/EpanQJBWe6Kd516/Awvb6bJnLwgQBcUjIofUuI4R+NNVnHrwcB9C3n8Lj6XBvAy0zMw3eLrSbbxwPu+ZBnVbQZ2XiyCrq9xNhz1zNH7wbbquux2Xz4eJJeG6UnitwdzfU46Kh0KwL1H9Oz0/uhA197YWgaPbmrBByyIPSvjuBLSqEnx5zDJ4EwoNOQzVt2xfwTF/L/+Zj2DkP6raCvqtuDWjzRNg1RxvQfR7Uf1rLHi+Gf87AI130mduUDR2yNa9kJjTvCtVr6fnuGbB7mlOduO+YqBByUF2diObKNmGc/Js1bEMe7F0DWdu03MU/ocYDlr/uIyhWgFrCAOfh/mEOnNpnn4LTvwQpKOCFYdCuv9bxzzm4dhlq1oczB6FgIPTbpHmnyqD243avgr5wYoc9N1G7DwnZr450QmbDN/WEY3AefDcVBq+ARk/GR2DtONgxF+qlwCAH0KIBsH9jtO5Tq5XTmnWA12bE6ypbBkUfwjvFcEfNKF9Fb2pbuF4RfYP8gCi93mIh36qVIOWAWb9bZV/nwsYp0K4H9MyNN6JwHGybAw+lwBDnbN24BpU3rfy/lyG3nZ7XSIbMHfG61oyAn1ZD91nwcHARGam/DsDcrvFgTFYleRlCvp4s42oshfZLVdgGX+FEKJoC1apDbhlUvT1qyOps2PIVNEiB95z3Itbcq5cgO8WmYFYx3OWkrpL/vCOc+xWeHQgvBmfW6NmzBDaO0bNInel3AOXUqN5cyN7J0q+Hgqon/M//w5qzeiJsmKyV9J8JbVKjpq4YqwHVT4HMr+O9bihXL8LoVrZIfWM2PNrJyl/5G8a31oAbt4c3F8Q4bhjsW2Ova5O+frpVSRdZ+ws0IPXFgjKqDD3OKzFecpWHVXmg5Fbthks36/1/fzP3OrZVgVtv2v4rT4w5rIvTSIRcEIFO05qEkXPpt6q+jUyiZtA13G0RfFnTbsS0DuZtDPU6fVmSyEP0Gimyg/bBP0Mm3QwgN/3c6CUaxwKMeNptCmPaEZ/ldr5BKiRsJhN0u1COl5QpcsqjDV4IyM3WoESKO1eJjHdTMlGE41LVaVHiuuDA8EiEw7a/AsEpPK8UZCFN7ysU/ffEteD/A0+36M8YCYIrAAAAAElFTkSuQmCC",me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAACbJJREFUeF7tnVtMHNcZx79vxruLITZUceNbwEpr8KXAwi6+pm3qKoraqhepVfvWB3sJqKn60Mf2hfLSPvYhquVgcKTmrVIrpbdIURXbTWPMZYHl4osSy7FpiO2QFBuDze7OOdUh3t1hvLczZ2BmzMcbO9853zf/33xnvpk5MwfB5h/nHNs6p2ohZWwH5NUcMWSzq3XZjCEaGvD5Ch64+V7vvpuIyO0IgXYafaPresXd6flWRL7FTntqs1IBxtinNXU1I+e6n3soq400QJF5kdjEYYInK3VxewFx9ExLv2wmSgOMdkzWccMIOxs+9SYUqIDA+IW+/Tdk1JAHeDxxiGvwTMYJ6nAnWLUw3v/7ow9kHK932yO/vLAxuVDVzI2cloAwN9IbfldGG3mAJ8ZeMhcsoc0L/yJ4MpLnbAXEpXtVL2Z+EYXNWG/zP2V6kwYYiSW+Z3Yw0hf+m4xDsl2pgKqeBNDlI4oAugxA1T0BVFXQ5fYE0GUAqu4JoKqCLrcngC4DUHVPAFUVdLk9AXQZgKp7AqiqoMvtCaDLAFTdE0BVBV1uTwBdBqDqngCqKuhyewLoMgBV9wRQVUGX2xNAlwGouieAqgq63N4xgDTP02WSJdwXmke6/ESe5nl6G541OvM8UqR5nv6Cl4k2O4+U5nn6E6CIWswjxahlnueeukr40Qs1sKnSvzv2JEY+vwjw5/NzcPXmYm73EOYwapnn+euf7iB4Hj0CBMTfvjGTjU4UNmgtY3/XucOj4VNYQoFfvZYDKP4ngD47Lgigz4BZwyWABNDnCvg8fMpAAuhzBRwO35oR1ireut3qXrbqpwwkgA4r4PPuKAMJoJQCNIRKyeU9YwLoPSZSERFAKbm8Z0wAvcdEKiICKCWX94wJoPeYSEVEAKXk8p4xAfQeE6mICKCUXN4zJoDeYyIVEQGUkst7xgTQe0ykIiKAUnJ5z5gAeo+JVEQEUEou7xkTQO8xkYrIUYBDVxZh6Ooi3J41IJk2pAJZ78bBDTps3aLDgT2VcGBv+S+iOAJQzNH/0zuz8MFHyfXOwZH9370zCD/55pay3klxBGDf3wmeI+RMnQiIse+WXkdFGaAYNv9yfs7p+Kk/APjhCzUlh1NlgCffnIXpW7mhk9aNsHfs5Vs3onZbEF75QfEsVAbY1Xd7RcFC60bYAyhaWdeNEIVNd2xr0Q6VAVo7oHUj7AMULWXfzySAano73poAOi7p2nZIANdWb8e9EUDHJV3bDgng2urtuDfPA7QG6LQCfq+CCaDPl78jgARw5YKOpV75lb2QpyG0+EnD8xno9DnvSeuPAPqcqDLAlvbx72ic6xkdSn3sTnYI9bm+qx6+DMD8H7trT3wNONRkIi31uUkC6CzTcgEW/Nzk0dilXQ8h1Ww3LL9eh337F++HPllM7meQ3soZpnnQuDF6quUDROR2tbDTTqXIW/7gq/jkcuuJsSOapj1tJwA/AhTP4R7eqzqKACtmE3FufPz92taR7m5kdrSw08YuwOwnl4VT8dHzuZtzETsQ/QawELyM+GsN0Q7AFR89zwXO8fn2y3UPMVXHADeZC5tiR5afAOaDh8AYB00z7+NaQiwXYNFlB2RSX3WhChlfTtrmhafjhwDJK09vDgRn5yBiLubWCqKqnsvrRsj8qTqU8eWUbT54GsD14b7wZMZHtGM4wFng8FpDVNXziQcoqs1bi4tfNRcsVnhuQiSAJdK0LTbVyiD9bMYMdfww3tM8UaiZyERIh45xZKG1KGw8D7Dck3QhQVWLpEgs8S0ACIj+RcECuvF2vKctVRjg+F5u8Hrr9tU6JxLAEhnYenz8RdT4xozZliS88/Yb4YV8zQ6+PNaQZrinUJerAZEAlgDY0nmpXkun9mbNDJjDYOqiNQsjsfhugA37MnYaosG1DaOcpXavZmFDAEsA7Ori2l+nJyOIbHshiG3Hx7/ENP6VzHZxzaVrocF4z57ZQtXpSF9r3Inbbp4H6NSlgEo/AuKbN8aimq5ts0IMaPrOZEprMsMLhgIDg3/Y92mp6tQJiASwTLJ5MxFhAThU5eAxI5hMDgz+8VAW3mpDJIBlAhRmeTPxUXvOMV2B2kB/X+NnxS4xrBf7gDgTP900Ync4JYASAItB5JWVF0dfrf+kVHf5zokqEAlgKcXzbM+Xicj5/zbVhi+e68Z0qS6dhEgAS6ldYLtXIBJAmwALDaduZaLd3Xjib2aXEsYrmVgqzkLb1z3AbCbOjEU1lrtO9EsmEsBHh/ZyJipA7HiNB4aHxlc8T1SpTsvNSAJoUsqPEAmg5VD3G8RVB6j6PNA6lKg+HyxnaPITRAJY7DpR8Zw4NDhxBIFXZ10o3nbLFyoBLJKSTmSiFSLq2qV4T9O1ckaCcmwIYAmVHIeIsBA/3XzW7s1va7irDrCco8jrNp9DnIpqzMg+Tyz3OlG8unCgPdHCALMTqzg34qNnIjNO7DcBLFNFOxAFvIMdY2GDabVmNxqy+aHTLeedyEICWCbA3B2b8jKxELyMO9QDw/Ge/R9LuM9rSgAlFSwnE/PB01Cb1wEupzg7KFxyhvdGX28+L+n+MXMCaEPBYhDP/gYM67Ap4H1xY0X/W6/WL0XaJ5qBs13CrR7Sh4ZONt6yEULuykS2serzK1l/XrUvBFHT+X3zOc8MT+zLj7smg9dm0seAYZAD3h3ta/63yj5SBiqolw/iymIll3nm36Mdk3XcMMLitwBqgwO9TbfthkEA7Sr3qJ2A+I//JtoY4GOf2kW9ol/MLbW6EOfItljieY74BUCYG+kNv2s3DAJoVzlTOwHxrZnE7lRaqzNP4wfGub4hcL1qx/6r1rk20Y7hap4MfB10gIoADFw4Fb5jJxQCaEe1Am2Wq88TQ88aeqjePN8UOV8KBmGq/1TLR+ambbFEIwN4TtwUiJ9p+Y+dUKQBRk+MvcQRs69e0UfPH5ddgDz88vjONOP1HPGpjAXnOFtdoU2cO9l4X/xmfpWt3GmNVm/yAI8nDnENnsl0RMsOFM4bAfLozxI7kkloyIJknIOuX9u8c/b9c93H0q2xkV0IerMG+mfDfY3vyWahPEBTBSXrzE/2Tj53FCAjsavbde1BA+PaJqEDZ/ggqPMrRiBUxZJLDeK3QkVPMd2kAX4ezMRhRF56nRg/EbPE6iTA3BDKsa3z8jaNpxsMxjc/NhzqcCfeEx6QkU0aoOhcfFfm7vR865MMcTUAmkEe/PnU1vQSazA/8EXO78fPtJxddYDLQ4C4lumcqoWUsR2QV5sLG5kAvGq7mgDN+3zglcltfCn1ZcbwKR30S0OvN03LaPJ/jAi5buoQkzIAAAAASUVORK5CYII=",be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51AzAXz4ah0vXZxZPD8E4qtPkef76xY0CnkWvAAbxN38ejUXHBjZIO4z9betGi4YvwmIK/Or4IkD2vwCYYdeFAJhhwLThCoACYIYrkOHhixYoAGa4AiaHr20R2lG89ri2et5Rv2iBAqDJCmS4O9ECBUAuBUQXyiWX9YwFQOsx4YpIAOSSy3rGAqD1mHBFJAByyWU9YwHQeky4IhIAueSynrEAaD0mXBEJgFxyWc9YALQeE66IBEAuuaxnLABajwlXRAIgl1zWMxYArceEKyIBkEsu6xkLgNZjwhWRqQB7L85A76UZuDWmQDCscAWy1o3tsgQlxRI0bM+Fhh36X0QxBSDL0X/rwzH4ciS41jmYcv4PldnhhR8W63onxRSAXf8Q8Ewhp3LCIHoPJ95HxTBA1m3+9aNxs+MX/gDgJweKEnanhgEe+9sYDN9c7DrFvhHJXXvx9o2oKLXDyz9euRUaBtjWdWvJgEXsG5EcQFZKu28EG9i0e0tWdGgYoNaB2DcieYCsJO/7mQKgMb1NLy0Ami7p6joUAFdXb9NrEwBNl3R1HQqAq6u36bVZHqA2QLMVyPRRsACYou3v2CfIeLdDTebiFABNANj4yuWC0MzkA0TB65Ek5SCg7PGADQilCFMKVA4pNHxXxngSETyxqRLderu9ypSVfAEwSYCRVZCp/E2IQAVFhG8LdUIpSGhMUvDIM5VVI+3tiCTT+sREPgnVFtYgd9IQ3QgYcW+Aqa2SAszIDvzF2d9X3Uimy7V8C0xC45QUYfe0xqOBTUEgOzHFktmVUIImc9Fk/+kT+6Z4fBsGWNMceAZTGjuhRB+7y8S10OfbhuyXR0P1mOD74omLgBAE6H8E5O9kp3SnJFQ4OwqjoS13viJfrd/isCtO5xwNOjGR71NAKcUSdi7nx2aD85+97rmmFyIPwPgfu2v2/wAoFEUrTPS5yUwDeOhFf963NukRipR194iKYFoGuPpgmTTCMyg5+IuBoulp2KQQXBEPlE2WrvQcr/pcD0S9AJf93OSj3s8fnIOQS09l8WysPA9j8MZkug8wsqtjp1QJS1S+9Gxl9TUjA5DGVz4rCN/N2Umxai/4hYqQhK6dO149lOi+aGSeHPngK7s3eJp8ezCO370kAmtVgKzb/GoY9t7T8thHUnGor6+jXvXl1ERnufLxSCMgwWrtoAhT+OLcCfellUonCzD2yWXmnH30fPz6eG0yEK0IMHJRtvj2aO95SIKRLXcu+d9++wXTU+jqWs4VUyrXAVna2m0In+3prL61HMRkAC756HnUMTvpvc0XKudQqJIAylcPbFa6gqwIsP5IYAvB9PuabvOb/i5PX6IuzUhbZF3q/Kxjn2aUGyooLzh1qn3zXDzfegGuuO0AT9BGN6rgqSsZWzbPm53KeUwtIqL0zuEKd7eR+53eWBpeHipV5pUGtb2EyXDvGx6fHoC8DYJ7Imt1gHUt/lqqQNliz4LC5XLxR+90bDTtnpcI5iNHfdvCBG1X231PWvfxBx1bJ7RljeqZVQAjy2PjuY+rBxNspNbdtevrRKKbebytjeK/3wg8hgBiKddEITd9b3p6BcAVlK5tHtwJlDwUa30AMz8qd51cja5TG9ael3xl8yFUG/udUFqyLu/9f7/28Lza1vItUO9Nejkueu8Jkb2fvENPqhemkST5+zqqrpvZuvT6YvE0HPUdIBTnL5YJX+jvqvtSAIyjYl3LuUKq2PZHD7HlsfzymndPtaOwXtHNtqtpHXgYh/GOWEyU3uk7UfOpABhH6Vpv30MA8s7oIYLJTd8b995zzIa0kr+9TRfzZ9H8wcWLCpMtkxf+o56Hii50QZ2anw00YAmXRsWy28ggz6JyqsB6vP7H1YMZB0inz3RVfRetz/IAUyWM1q/HG9iPgBZGf5dDc91n/9T47WrVv1w9NUeHGjBRYhcWBSUw0FUbGxULgAvK1Xr9T0XSIBb+tpZL7/I8YUgV6LqWQDVV6KZF/9KF/q6q2EBGAAQANuKraw4cVkN4rtz1z3RMH7QXQk3r5w/jcCg2kKGydGVA9ahJAIy2wCO+w+oJvN7pR6paXtTvI83+zWEKVbGBjIKu9b3pGhT3QI3ydd6BZylgHP3ZKi1Qu6xGZNtF3/FdlwVALcCmwUPqSXzx+pIP33u1dDrVLSyR/3qvv4oAbI7aSQ7s6z1WPSwAapSrOTLwqPp5ptMGPd2vu28nEjjVxz1NgT0I0dhrt2bHlTWL2dorHUnocl+H62KqAa3kf2GD6acQonLUrsAhnTx1rOquWXFlDcCGlwcrlHlSExMGwXh/p/sTs4RKxs++nwfWzwTpvmhZStDswB9dHyTja7kyWQOQ5cBcuR4+pB6JFq+HD9971Z22+2Bt86ALKHkwKj4GuHquyz0kAC6jQG2zfzdQuD+VgukV/2DbSXli+L4n1d0nkpxn+jq2j+n1occua1ogO9mGI4MVCl7sRgkiyoacdf/VPoPTI4xRm/om/3aCYFvMD6HB5yrd75u9uJBygEafB2qFXGmCHu9JOMtE6+tw9xsFwlOeZQaEptY9RlQZ7zKCobOd7qs8fvTYZhXASCvUDmbYAmmC1D49Qum1iZdny16ASVVmQNYBjAzdmwb3I0wLYqM/isL2vJnTPa/tntQLIlk7T+vQLhRWtqrLO2y0/8zrNSPJ+lypXNYBZCe7t+nT/DmUt1+9tMaG8NgW7DYzI1srrKdpsB4hskH9OyJw+9wJ19lU5aOmHGAqrjo9Pne/NLApGMLVS2wJDeY68dlP/+C6o8eHXpvI05CjQzvUCVWsLEF4rqis6mQq0zqyFiATsLF1aFdI051hhBQM9ELPG65rZrSKSCLx3RxP3FfXFACbDAM9ne4bei8GXrusBsjEuPeB6oJECMYdVDqvTm/gEe9gG5VnRv1bQgrZipAUWyq7x0eKIWY9wEh6nzewbcmcbMlNCsYlO75WLDlv65kvsuWxEMEbQmGlUp0BEHXJuk0cJk5QvwOcQohZDzAqbGPzYEmIEk880WOjVUATMlYmqYJn7cg2R2zziIQxCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAwCAYAAADJuP4nAAAAAXNSR0IArs4c6QAAAz5JREFUeF7tnM9PE0EUx+fN7rKlAQ6EWw3GEMSE8iPSmHjz4kE961Wjif4ZpH8DicZGjYaTclYTT1ysIbEXxYOJLRZMRSUYC0X7Y2dMiyVaKd2Zt+3s4XHtfN+bfD7Zlp2dHWD0hyYwd/P9iFWrxjwhyvZgf2FlYbyILuqzAPgcR8PaELj8RFrZp29n//7YceDTyr2pL72ARgKRlM9dW4sU5c5kaxnbkdsXYtP5ZBIEssWRcRKIpNtOYKOsA3tjMcguJeMVZJu2cRKIJHukQMaYbfFaNMKyy7fju8hWh8ZJIJJqJ4H18sBtyRxrPZOa2EK2+y9OApFE/QhstgCXf3t9d3IDACSy7UGcBCJJqgist+KW3JV2NZdJJarI1o04CURSVBXYgA6swvoq2UwqsYdsTwKxAHUENq5E2xIOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",De=ae(24092),We=ae(72825),nt=ae(5623),qe=ae(53122),ot=ae(29105),mt=ae(24141),at=ae(15342),vt=ae.n(at),wt=(Xe,lt,Be)=>new Promise((bt,Wt)=>{var yn=Vt=>{try{Pt(Be.next(Vt))}catch(zt){Wt(zt)}},On=Vt=>{try{Pt(Be.throw(Vt))}catch(zt){Wt(zt)}},Pt=Vt=>Vt.done?bt(Vt.value):Promise.resolve(Vt.value).then(yn,On);Pt((Be=Be.apply(Xe,lt)).next())}),Ht=oe.memo(({tagName:Xe="div",value:lt="",className:Be,style:bt={},onBlur:Wt,id:yn})=>{const On=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(!On.current)return;wt(void 0,null,function*(){const zt=On.current;zt.innerHTML="";const pn=lt==null?void 0:lt.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Tn of pn)if(Tn.startsWith("$$")&&Tn.endsWith("$$")||Tn.startsWith("`$$")&&Tn.endsWith("$$`")){const gn=Tn.startsWith("`$$")?Tn.slice(3,-3):Tn.slice(2,-2),Mt=document.createElement("span");Mt.setAttribute("contentEditable","false"),Mt.setAttribute("title",Tn),Mt.className="edu_latex",zt.appendChild(Mt),vt().render(gn,Mt,{throwOnError:!1})}else{const gn=Tn==null?void 0:Tn.replace(/<[^>]*>/g,Mt=>Mt.startsWith("<img")?Mt:Mt.replace(/</g,"&lt;"));zt.insertAdjacentHTML("beforeend",gn)}})},[yn]);const Pt=()=>{var Vt,zt;if(Wt&&On.current){const Tn=On.current.cloneNode(!0),gn=Tn.querySelectorAll("span.edu_latex");for(let Mt of gn){const Un=Mt.getAttribute("title"),Yt=document.createTextNode(Un||""),on=Mt;(zt=(Vt=on.parentNode)==null?void 0:Vt.replaceChild)==null||zt.call(Vt,Yt,on)}Wt(Tn.innerHTML)}};return oe.createElement(oe.Fragment,null,oe.createElement(Xe,{ref:On,contentEditable:!0,className:Be,style:bt,onBlur:Pt}))}),Qt=ae(69669),Zt=ae(16448),ln=ae(21982),Nt=Object.defineProperty,gt=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,wn=(Xe,lt,Be)=>lt in Xe?Nt(Xe,lt,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Xe[lt]=Be,bn=(Xe,lt)=>{for(var Be in lt||(lt={}))sn.call(lt,Be)&&wn(Xe,Be,lt[Be]);if(Jt)for(var Be of Jt(lt))It.call(lt,Be)&&wn(Xe,Be,lt[Be]);return Xe},_n=(Xe,lt)=>gt(Xe,ct(lt)),Xt=(Xe,lt,Be)=>new Promise((bt,Wt)=>{var yn=Vt=>{try{Pt(Be.next(Vt))}catch(zt){Wt(zt)}},On=Vt=>{try{Pt(Be.throw(Vt))}catch(zt){Wt(zt)}},Pt=Vt=>Vt.done?bt(Vt.value):Promise.resolve(Vt.value).then(yn,On);Pt((Be=Be.apply(Xe,lt)).next())});const zn=Xe=>{Xe.preventDefault();let Be=(Xe.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,Be)},Ot=Xe=>{Xe.key==="Enter"&&Xe.preventDefault()},jn=({children:Xe,style:lt})=>oe.createElement("div",{className:Pe.leftBox,style:lt,onPaste:zn},Xe),cr=({children:Xe,style:lt,className:Be})=>oe.createElement("div",{className:ke()(Pe.rightBox,Be),style:lt,onPaste:zn},Xe),it=({className:Xe,style:lt={},width:Be=1200,onCancel:bt=()=>{},onSuccess:Wt=()=>{},gather:yn={},mode:On=1,stickyTop:Pt=0,subDisciplineId:Vt=[],hideWordFeatures:zt,dataSource:pn=[],customLeftHeadNode:Tn,customRightHeadNode:gn,customLeftContent:Mt,hideRecognition:Un=!1,onExchange:Yt,isSingleSelection:on=!1,underpinBackgroundStyle:mn={},headExtraNode:er,isRefreshItemBank:Sn=!1,okText:ht="\u786E\u5B9A\u5BFC\u5165",onSave:tr})=>{var lr;const[qt,yr]=(0,oe.useState)(1),[ri,Or]=(0,oe.useState)(0),[Nn,ui]=(0,oe.useState)(""),[$r,or]=(0,oe.useState)(!1),[Kr,oi]=(0,oe.useState)([]),[Me,kr]=(0,oe.useState)([]),[Pr,ei]=(0,oe.useState)(!1),[Ii,Di]=(0,oe.useState)(!1),[Ti,Vr]=(0,oe.useState)(!1),[Fr,dn]=(0,oe.useState)(!1),[hn,un]=(0,oe.useState)([]),[Ur,Tr]=(0,oe.useState)(1),[Zr,sr]=(0,oe.useState)(!1),[Rr,Cn]=(0,oe.useState)(!0),[fn,Wr]=(0,oe.useState)(0),[kt,Gn]=(0,oe.useState)(!1),[vr]=Ve.default.useForm(),[Qr]=Ve.default.useForm(),nn=(0,oe.useRef)(null),Qn=(0,oe.useRef)(null),Dn=(0,oe.useRef)(),xn=(0,oe.useRef)(null),Ge=["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"],Jr=["C","C++","Java","Python","JavaScript","Ruby"];(0,oe.useEffect)(()=>{pn!=null&&pn.length&&Sr(pn)},[pn]),(0,oe.useEffect)(()=>{qt===2&&nn.current.focus()},[qt]),(0,oe.useEffect)(()=>{Ti&&Jn()},[Ti]);const Hr=()=>{if(qt===1){Te.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>Xt(void 0,null,function*(){yr(1)})})},Jn=()=>Xt(void 0,null,function*(){const ft=yield(0,De.ZP)("/api/disciplines.json",{method:"get",params:{source:On===1?"new_question":"subject"}});un(ft.disciplines||[])}),hi=ft=>{const En=[],Mn=(Xn,Hn)=>{Xn.length>=2&&En.push(Xn.join(""));for(let hr=Hn;hr<ft.length;hr++)Xn.push(ft[hr]),Mn(Xn,hr+1),Xn.pop()};return Mn([],0),En},ti=ft=>(ft=ft||"",ft=String(ft),ft=ft.replace(/\s+/g,""),ft),Si=ft=>(ft=ft||"",ft=String(ft),ft=ft.replace(/<div>/g,""),ft=ft.replace(/<br>/g,`
`),ft=ft.replace(/<\/div>/g,`
`),ft=vn(ft),ft),nr=ft=>ft.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),vn=ft=>ft.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),xi=ft=>{var En;const Mn=ft.clipboardData;if(Mn){const Xn=Mn.types.toString(),Hn=Mn.items;if(Xn==="Files"||Mn.types.indexOf("Files")>-1){ft.preventDefault();try{let hr=Hn[1];((En=Hn[0])==null?void 0:En.kind)==="file"&&(hr=Hn[0]);const $n=hr.getAsFile();(0,mt.I)($n,cn=>{var Kn;if(cn.id){if(((Kn=$n==null?void 0:$n.type)==null?void 0:Kn.indexOf("image"))>-1){const Gr=`<img src='${ue.Z.API_SERVER}${cn.url}'>`;document.execCommand("insertText",!1,Gr)}}else(cn==null?void 0:cn.status)===401&&(document.location.href="/user/login")})}catch(hr){Te.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function zi(ft,En){return Xt(this,null,function*(){if(typeof ft=="string")return yield En(ft);if(typeof ft!="object"||ft===null)return ft;if(Array.isArray(ft))return yield Promise.all(ft.map(Hn=>Xt(this,null,function*(){return yield zi(Hn,En)})));const Mn={};for(const Xn in ft)if(Object.prototype.hasOwnProperty.call(ft,Xn)){const Hn=ft[Xn];typeof Hn=="string"?Mn[Xn]=yield En(Hn):typeof Hn=="object"?Mn[Xn]=yield zi(Hn,En):Mn[Xn]=Hn}return Mn})}const Ln=()=>Xt(void 0,null,function*(){var ft;or(!0),ui("\u5904\u7406\u4E2D"),yield new Promise(Xn=>setTimeout(Xn,1e3));let En=(ft=Qn.current)==null?void 0:ft.querySelectorAll('[data-text="edit"]'),Mn="";try{En.forEach(function(Xn){var Hn,hr,$n,cn;const Kn=Xn.cloneNode(!0),Gr=Kn.querySelectorAll("span.edu_latex");for(let mi of Gr){const gi=mi.getAttribute("title"),Ri=document.createTextNode(gi),Oi=mi;(hr=(Hn=Oi.parentNode)==null?void 0:Hn.replaceChild)==null||hr.call(Hn,Ri,Oi)}const Li=Kn.querySelectorAll("span[style]");for(let mi of Li)if(mi.style.fontFamily){const gi=mi.innerHTML,Ri=document.createTextNode(gi),Oi=mi;(cn=($n=Oi.parentNode)==null?void 0:$n.replaceChild)==null||cn.call($n,Ri,Oi)}Kn==null||Kn.childNodes.forEach(function(mi){mi.nodeType===Node.ELEMENT_NODE&&mi.localName!=="h5"&&mi.localName!=="h4"?Mn+=`<p>${mi.innerHTML}</p>`:mi.nodeType===Node.TEXT_NODE&&(Mn+=`<p>${mi.textContent}</p>`)})}),zr("/api/intelligent_imports/import.json",{html:vn(Mn)})}catch(Xn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Xn)}}),Xr=ft=>{let En=ft.filter(Mn=>!!(Mn!=null&&Mn.type));return En=En.map(Mn=>{var Xn;const Hn=(Xn=fr.find($n=>$n.id===(Mn==null?void 0:Mn.type)))==null?void 0:Xn.deal,hr=_n(bn({},Mn),{id:String(Math.random()).slice(-6),knowledgePoint:ti(Mn==null?void 0:Mn.knowledgePoint)});return Hn?Hn(hr):hr}),En},fi=()=>{if(qt===1){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Ln})},wi=()=>oe.createElement("div",{className:Pe.row},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(jn,{style:{height:675}},qt===1&&oe.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>yr(2)},oe.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",oe.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",oe.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",oe.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",oe.createElement("br",null)),oe.createElement("div",{className:Pe.imgBox,style:{marginTop:75}},oe.createElement("img",{width:56,src:me}),oe.createElement("span",null,"\u7F16\u8F91\u533A"))),qt===2&&oe.createElement("div",{"data-text":"edit",onBlur:()=>{nn.current.innerHTML||yr(1)},ref:nn,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),oe.createElement("div",{className:Pe.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},oe.createElement("div",{className:Pe.imgBox,style:{marginTop:240}},oe.createElement("img",{width:56,src:be}),oe.createElement("span",null,"\u9884\u89C8\u533A")))),ai=(ft,En,Mn,Xn)=>{var Hn;console.log(ft,En,Mn,Xn,"onDataChange\u4FEE\u6539\u6570\u503C");const hr=JSON.parse(JSON.stringify(Me));Xn===void 0?hr[En][ft]=Mn:hr[En].questions[Xn][ft]=Mn;const $n=bn({},hr[En]),cn=(Hn=fr.find(Kn=>Kn.id===($n==null?void 0:$n.type)))==null?void 0:Hn.deal;hr[En]=cn($n),kr(hr)},Ni=(ft,En,Mn)=>{var Xn;const Hn=Mn!==void 0,hr=(Xn=fr.find(Kn=>Kn.id===(ft==null?void 0:ft.type)))==null?void 0:Xn.type,$n=`${En+1}.${Mn===void 0?"":Mn+1+"."}`,cn=`${(ft==null?void 0:ft.type)==="7"?"{{":""}${$n}\u3010${hr}\u3011${(ft==null?void 0:ft.question)||""}`;return oe.createElement(oe.Fragment,null,Hn&&oe.createElement("h4",{contentEditable:!0}),oe.createElement(Ht,{id:ft==null?void 0:ft.id,tagName:"div",value:cn}))},Xi=(ft,En)=>Xt(void 0,null,function*(){var Mn;const Xn=yield Yt(ft,En),Hn=(Mn=Xn==null?void 0:Xn.data)==null?void 0:Mn.content;if(Hn!=null&&Hn.length){const hr=Xr(Hn)[0];Kr.splice(En,1,hr),Me.splice(En,1,hr),oi([...Kr]),kr([...Me])}}),Vi=(ft,En,Mn)=>{var Xn;const Hn=Mn!==void 0,hr=(Xn=fr.find(cn=>cn.id===(ft==null?void 0:ft.type)))==null?void 0:Xn.type,$n=`${En+1}.${Mn===void 0?"":Mn+1+"."}`;return Hn?oe.createElement("div",{style:{padding:"10px 18px"}},`${$n}\u3010${hr}\u3011`,oe.createElement(Ht,{id:ft==null?void 0:ft.id,tagName:"span",className:Pe.edit,onBlur:cn=>ai("question",En,cn,Mn),value:(ft==null?void 0:ft.question)||""})):oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Pe.actionHead},oe.createElement("div",{className:"c-light-primary"},`${$n}\u3010${hr}\u3011`),On!==1&&oe.createElement(st.Z,{disabled:(ft==null?void 0:ft.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:cn=>ai("score",En,cn,Mn),value:ft==null?void 0:ft.score}),oe.createElement(Qe.Z,{align:"middle",style:{marginLeft:"auto"}},!!Yt&&oe.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Xi(ft,En)},oe.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),oe.createElement(Ue.default,{onChange:cn=>ai("checked",En,cn.target.checked,Mn),checked:!!(ft!=null&&ft.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),oe.createElement(Ht,{id:ft==null?void 0:ft.id,tagName:"div",style:{padding:"10px 18px"},className:Pe.edit,onBlur:cn=>ai("question",En,cn,Mn),value:ft==null?void 0:ft.question}))},Bi=(ft,En,Mn)=>oe.createElement(oe.Fragment,null,["0","1","2","4"].includes(ft==null?void 0:ft.type)&&oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u7B54\u6848\uFF1A${En||""}`,tagName:"p"}),!Mn&&oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u96BE\u5EA6\uFF1A${(ft==null?void 0:ft.difficulty)||""}`,tagName:"p"}),(ft==null?void 0:ft.type)!=="7"&&oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u89E3\u6790\uFF1A${(ft==null?void 0:ft.analyze)||""}`,tagName:"p"}),!Mn&&oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(ft==null?void 0:ft.knowledgePoint)||""}`,tagName:"p"})),Hi=(ft,En,Mn,Xn)=>{const Hn=Xn!==void 0,hr=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],$n=Hn&&!ft.last&&!ft.errorMsg?{marginBottom:10}:{},cn=hr.map(Kn=>({key:Kn,label:Kn,onClick:()=>ai("difficulty",Mn,Kn,Xn)}));return oe.createElement("div",{className:Pe.liWrap,style:$n},["4"].includes(ft==null?void 0:ft.type)&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),oe.createElement(Ht,{id:ft==null?void 0:ft.id,tagName:"div",className:`${Pe.edit} c-black`,onBlur:Kn=>ai("answer",Mn,[Kn],Xn),value:En})),!Hn&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(St.Z,{menu:{items:cn}},oe.createElement("span",{className:"c-light-primary"},ft==null?void 0:ft.difficulty,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(ft==null?void 0:ft.type)!=="7"&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),oe.createElement(Ht,{id:ft==null?void 0:ft.id,tagName:"div",className:`${Pe.edit} c-grey-333`,onBlur:Kn=>ai("analyze",Mn,Kn,Xn),value:ft==null?void 0:ft.analyze})),!Hn&&oe.createElement("div",{onKeyDown:Ot,className:Pe.li},oe.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),oe.createElement(Ht,{id:ft==null?void 0:ft.id,tagName:"div",value:(ft==null?void 0:ft.knowledgePoint)||"",className:`${Pe.edit} c-grey-333`,onBlur:Kn=>ai("knowledgePoint",Mn,ti(Si(Kn)),Xn)})))},rr=ft=>oe.createElement(oe.Fragment,null,typeof(ft==null?void 0:ft.errorMsg)=="string"&&!!(ft!=null&&ft.errorMsg)&&oe.createElement("h5",{contentEditable:!1},oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,ft==null?void 0:ft.errorMsg))),_i=ft=>oe.createElement(oe.Fragment,null,typeof(ft==null?void 0:ft.errorMsg)=="string"&&!!(ft!=null&&ft.errorMsg)&&oe.createElement("h5",null,oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,ft==null?void 0:ft.errorMsg))),ur=(ft,En,Mn,Xn)=>{let Hn="flex";return(on&&fn!==Xn||Pr&&!(Mn!=null&&Mn.errorMsg))&&(Hn="none"),oe.createElement("div",{className:Pe.row,style:{display:Hn}},oe.createElement("div",{className:Pe.leftLayout},Mt||oe.createElement(jn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},ft))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(cr,{className:Mn!=null&&Mn.errorMsg?Pe.error:""},En)))},fr=[{id:"0",type:"\u5355\u9009\u9898",element:(ft,En,Mn)=>{var Xn,Hn;const hr=Mn!==void 0;let $n=(Xn=ft==null?void 0:ft.answer)==null?void 0:Xn[0];const cn=oe.createElement(oe.Fragment,null,Ni(ft,En,Mn),(Hn=ft==null?void 0:ft.options)==null?void 0:Hn.map((mi,gi)=>oe.createElement(Ht,{id:ft==null?void 0:ft.id,key:gi,value:`${Ge[gi]}.${mi}`,tagName:"p"})),Bi(ft,$n,hr),rr(ft));let Kn=hr?ft:Me[En];const Gr=Kn==null?void 0:Kn.options,Li=oe.createElement(oe.Fragment,null,Vi(Kn,En,Mn),Gr==null?void 0:Gr.map((mi,gi)=>{var Ri;return oe.createElement("div",{key:gi,className:Pe.option},oe.createElement("aside",{className:((Ri=Kn==null?void 0:Kn.answer)==null?void 0:Ri[0])===Ge[gi]?Pe.active:"",onClick:()=>ai("answer",En,[Ge[gi]],Mn)},Ge[gi]),oe.createElement(Ht,{id:Kn==null?void 0:Kn.id,tagName:"div",className:`${Pe.text}`,onBlur:Oi=>{Gr[gi]=Oi,ai("options",En,Gr,Mn)},value:mi}))}),Hi(Kn,"",En,Mn),_i(Kn));return hr?[cn,Li]:ur(cn,Li,Kn,En)},deal:ft=>{var En,Mn,Xn;ft.score=ft.score===void 0?2:ft.score;let Hn=ti((En=ft==null?void 0:ft.answer)==null?void 0:En[0]).toUpperCase();ft.answer=Hn?[Hn]:[];let hr=[];if(!(ft!=null&&ft.options))hr.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{ft.options=(Mn=ft.options)==null?void 0:Mn.slice(0,8);const $n=ft.options.map(Kn=>Kn==null?void 0:Kn.trim().replace(/^\s+|\s+$/g,""));new Set($n).size!==$n.length&&hr.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Hn||hr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),Hn&&(Ge.slice(0,((Xn=ft==null?void 0:ft.options)==null?void 0:Xn.length)||8).includes(Hn)||hr.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),ti(ft==null?void 0:ft.question)||hr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ft.errorMsg=hr.join(`
`),ft}},{id:"1",type:"\u591A\u9009\u9898",element:(ft,En,Mn)=>{var Xn,Hn;const hr=Mn!==void 0;let $n=(Xn=ft==null?void 0:ft.answer)==null?void 0:Xn[0];const cn=oe.createElement(oe.Fragment,null,Ni(ft,En,Mn),(Hn=ft==null?void 0:ft.options)==null?void 0:Hn.map((mi,gi)=>oe.createElement(Ht,{id:ft==null?void 0:ft.id,key:gi,value:`${Ge[gi]}.${mi}`,tagName:"p"})),Bi(ft,$n,hr),rr(ft));let Kn=hr?ft:Me[En];const Gr=Kn==null?void 0:Kn.options,Li=oe.createElement(oe.Fragment,null,Vi(Kn,En,Mn),Gr==null?void 0:Gr.map((mi,gi)=>{var Ri,Oi;return oe.createElement("div",{key:gi,className:Pe.option},oe.createElement("aside",{className:(Oi=(Ri=Kn==null?void 0:Kn.answer)==null?void 0:Ri[0])!=null&&Oi.includes(Ge[gi])?Pe.active:"",onClick:()=>{var lo;let So=((lo=Kn==null?void 0:Kn.answer)==null?void 0:lo[0])||"";const na=Ge[gi];So.includes(na)?So=So.replace(new RegExp(na,"g"),""):So+=na,So=So.split("").sort().join(""),ai("answer",En,[So],Mn)}},Ge[gi]),oe.createElement(Ht,{id:Kn==null?void 0:Kn.id,tagName:"div",className:`${Pe.text}`,onBlur:lo=>{Gr[gi]=lo,ai("options",En,Gr,Mn)},value:mi}))}),Hi(Kn,"",En,Mn),_i(Kn));return hr?[cn,Li]:ur(cn,Li,Kn,En)},deal:ft=>{var En,Mn,Xn;ft.score=ft.score===void 0?2:ft.score;let Hn=ti((En=ft==null?void 0:ft.answer)==null?void 0:En[0]).toUpperCase().split("").sort().join("");ft.answer=Hn?[Hn]:[];let hr=[];if(!(ft!=null&&ft.options))hr.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{ft.options=(Mn=ft.options)==null?void 0:Mn.slice(0,8);const $n=ft.options.map(Kn=>Kn==null?void 0:Kn.trim().replace(/^\s+|\s+$/g,""));new Set($n).size!==$n.length&&hr.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(Hn||hr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),Hn){const $n=Ge.slice(0,((Xn=ft==null?void 0:ft.options)==null?void 0:Xn.length)||8);hi($n).includes(Hn)||hr.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return ti(ft==null?void 0:ft.question)||hr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ft.errorMsg=hr.join(`
`),ft}},{id:"2",type:"\u5224\u65AD\u9898",element:(ft,En,Mn)=>{var Xn,Hn;const hr=Mn!==void 0;let $n=(Xn=ft==null?void 0:ft.answer)==null?void 0:Xn[0];const cn=oe.createElement(oe.Fragment,null,Ni(ft,En,Mn),Bi(ft,$n,hr),rr(ft));let Kn=hr?ft:Me[En];const Gr=["\u6B63\u786E","\u9519\u8BEF"];let Li=((Hn=Kn==null?void 0:Kn.answer)==null?void 0:Hn[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Li)?Li="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Li)&&(Li="\u9519\u8BEF");const mi=oe.createElement(oe.Fragment,null,Vi(Kn,En,Mn),Gr==null?void 0:Gr.map((gi,Ri)=>oe.createElement("div",{key:Ri,className:Pe.option},oe.createElement("aside",{style:{borderRadius:2},className:Li===gi?Pe.active:"",onClick:()=>ai("answer",En,[gi],Mn)},gi==="\u6B63\u786E"?"T":"F"),oe.createElement("div",{style:{pointerEvents:"none"},className:`${Pe.text}`},gi))),Hi(Kn,"",En,Mn),_i(Kn));return hr?[cn,mi]:ur(cn,mi,Kn,En)},deal:ft=>{var En;ft.score=ft.score===void 0?2:ft.score;let Mn=ti((En=ft==null?void 0:ft.answer)==null?void 0:En[0]);ft.answer=Mn?[Mn]:[];let Xn=[];return Mn||Xn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Mn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Mn)&&Xn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),ti(ft==null?void 0:ft.question)||Xn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ft.errorMsg=Xn.join(`
`),ft}},{id:"3",type:"\u586B\u7A7A\u9898",element:(ft,En,Mn)=>{var Xn,Hn;const hr=Mn!==void 0,$n=oe.createElement(oe.Fragment,null,Ni(ft,En,Mn),(Xn=ft==null?void 0:ft.answer)==null?void 0:Xn.map((Gr,Li)=>oe.createElement(Ht,{id:ft==null?void 0:ft.id,key:Li,tagName:"p",value:`\u7B54\u6848${Li+1}\uFF1A${Gr.text||""}`})),Bi(ft,"",hr),rr(ft));let cn=hr?ft:Me[En];const Kn=oe.createElement(oe.Fragment,null,Vi(cn,En,Mn),(Hn=cn==null?void 0:cn.answer)==null?void 0:Hn.map((Gr,Li)=>oe.createElement("div",{key:Li,className:Pe.option},oe.createElement("aside",{className:Pe.fill},"\u586B\u7A7A\u9879",Li+1),Gr.model===1&&oe.createElement(Ht,{id:cn==null?void 0:cn.id,tagName:"div",onBlur:mi=>{cn.answer[Li].latex=Si(mi),ai("answer",En,cn.answer,Mn)},className:`${Pe.text}`,value:Gr.latex}),Gr.model===2&&oe.createElement(ot.Z,{value:Gr.latex,onChange:mi=>{cn.answer[Li].latex=mi,ai("answer",En,cn.answer,Mn)}}))),Hi(cn,"",En,Mn),_i(cn));return hr?[$n,Kn]:ur($n,Kn,cn,En)},deal:ft=>{var En,Mn,Xn,Hn;ft.score=ft.score===void 0?2:ft.score,ft.question=(En=ft.question)==null?void 0:En.replaceAll("\u2581","_");const hr=(Mn=ft.answer)==null?void 0:Mn.map(cn=>{if(Object.prototype.toString.call(cn)==="[object Object]")return cn;cn=cn==null?void 0:cn.trim();const Kn={model:1,text:cn,latex:cn};return cn.startsWith("$$")&&cn.endsWith("$$")||cn.startsWith("`$$")&&cn.endsWith("$$`")?(Kn.model=2,Kn.latex=cn.slice(2,-2)):Kn.latex=Si(cn),Kn});ft.answer=hr;let $n=[];return hr||$n.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),ti(ft==null?void 0:ft.question)?ft!=null&&ft.question.includes("_")?(Xn=ft==null?void 0:ft.answer)!=null&&Xn.length&&((ft==null?void 0:ft.question.match(/_+/g))||[]).length!==((Hn=ft==null?void 0:ft.answer)==null?void 0:Hn.length)&&$n.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):$n.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):$n.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ft.errorMsg=$n.join(`
`),ft}},{id:"4",type:"\u7B80\u7B54\u9898",element:(ft,En,Mn)=>{var Xn,Hn;const hr=Mn!==void 0;let $n=(Xn=ft==null?void 0:ft.answer)==null?void 0:Xn[0];const cn=oe.createElement(oe.Fragment,null,Ni(ft,En,Mn),Bi(ft,$n,hr),rr(ft));let Kn=hr?ft:Me[En];const Gr=oe.createElement(oe.Fragment,null,Vi(Kn,En,Mn),Hi(Kn,(Hn=Kn==null?void 0:Kn.answer)==null?void 0:Hn[0],En,Mn),_i(Kn));return hr?[cn,Gr]:ur(cn,Gr,Kn,En)},deal:ft=>{ft.score=ft.score===void 0?5:ft.score;let En=[];return ti(ft==null?void 0:ft.question)||En.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ft.errorMsg=En.join(`
`),ft}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(ft,En)=>{var Mn,Xn;const Hn=Me[En],hr=Jr.slice(0,4).map($n=>({key:$n,label:$n,onClick:()=>ai("platform",En,$n)}));return oe.createElement("div",{className:Pe.row,style:{display:Pr?Hn!=null&&Hn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(jn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},Ni(ft,En),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(ft==null?void 0:ft.description)||""}`,tagName:"p"}),Bi(ft),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${ft==null?void 0:ft.timeLimit}`,tagName:"p"}),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(ft==null?void 0:ft.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:(ft==null?void 0:ft.code)||"",tagName:"div"}),(Mn=ft==null?void 0:ft.inputs)==null?void 0:Mn.map(($n,cn)=>{var Kn;return oe.createElement(oe.Fragment,{key:cn},oe.createElement("h4",null),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${cn+1})\u8F93\u5165\uFF1A${$n||""}`,tagName:"div"}),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${cn+1})\u8F93\u51FA\uFF1A${((Kn=ft==null?void 0:ft.outputs)==null?void 0:Kn[cn])||""}`,tagName:"div"}))}),rr(ft)))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(cr,{className:Hn!=null&&Hn.errorMsg?Pe.error:""},Vi(Hn,En),oe.createElement("div",{className:Pe.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:Hn==null?void 0:Hn.id,value:Hn==null?void 0:Hn.description,tagName:"div",onBlur:$n=>ai("description",En,$n)}))),Hi(Hn,"",En),oe.createElement("div",{className:Pe.liWrap},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:Hn==null?void 0:Hn.id,value:Hn==null?void 0:Hn.timeLimit,tagName:"div",onBlur:$n=>ai("timeLimit",En,Si($n))})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(St.Z,{menu:{items:hr}},oe.createElement("span",{className:"c-light-primary"},Hn==null?void 0:Hn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:Hn==null?void 0:Hn.id,value:(Hn==null?void 0:Hn.code)||"",onBlur:$n=>ai("code",En,Si($n)),tagName:"div"}))),(Xn=Hn==null?void 0:Hn.inputs)==null?void 0:Xn.map(($n,cn)=>{var Kn;return oe.createElement("div",{className:Pe.liWrap,key:cn},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",cn+1,")\u8F93\u5165\uFF1A"),oe.createElement(Ht,{id:Hn==null?void 0:Hn.id,value:$n||"",className:Pe.edit,onBlur:Gr=>{const Li=[...(Hn==null?void 0:Hn.inputs)||[]];Li[cn]=Si(Gr),ai("inputs",En,Li)},tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",cn+1,")\u8F93\u51FA\uFF1A"),oe.createElement(Ht,{id:Hn==null?void 0:Hn.id,value:((Kn=Hn==null?void 0:Hn.outputs)==null?void 0:Kn[cn])||"",className:Pe.edit,onBlur:Gr=>{const Li=[...(Hn==null?void 0:Hn.outputs)||[]];Li[cn]=Si(Gr),ai("outputs",En,Li)},tagName:"div"})))}),_i(Hn))))},deal:ft=>{var En,Mn,Xn;ft.score=ft.score===void 0?10:ft.score,ft.code=(En=ft.code)==null?void 0:En.trim();let Hn=[];ti(ft==null?void 0:ft.question)?((Mn=ft==null?void 0:ft.question)==null?void 0:Mn.length)>60&&Hn.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):Hn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ti(ft==null?void 0:ft.description)||Hn.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const hr=ti(String((ft==null?void 0:ft.timeLimit)||""));if(ft.timeLimit=hr,(!hr||hr&&!["3","4","5","6","7","8","9","10"].includes(hr))&&Hn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),ft.platform=ti(ft==null?void 0:ft.platform),ft!=null&&ft.platform){const $n=["c","c++","java","python"],cn=(Xn=ft==null?void 0:ft.platform)==null?void 0:Xn.toLowerCase(),Kn=$n.findIndex(Gr=>Gr===cn);Kn>-1?ft.platform=Jr[Kn]:Hn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else Hn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(ft!=null&&ft.inputs)||!(ft!=null&&ft.outputs))ft.inputs=[],ft.outputs=[],Hn.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const $n=Math.min(ft.inputs.length,ft.outputs.length);ft.inputs=ft.inputs.slice(0,$n),ft.outputs=ft.outputs.slice(0,$n),ft.outputs.some(cn=>!ti(cn))&&Hn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return ft.errorMsg=Hn.join(`
`),ft}},{id:"7",type:"\u7EC4\u5408\u9898",element:(ft,En)=>{var Mn,Xn;const Hn=Me[En];return oe.createElement("div",{className:Pe.row,style:{display:Pr?Hn!=null&&Hn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(jn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},Ni(ft,En),Bi(ft),(Mn=ft==null?void 0:ft.questions)==null?void 0:Mn.map((hr,$n)=>{var cn;const Kn=(cn=fr.find(Gr=>Gr.id===(hr==null?void 0:hr.type)))==null?void 0:cn.element;return oe.createElement(oe.Fragment,{key:`left-${ft.id}-${$n}`},Kn(hr,En,$n)[0])}),rr(ft),oe.createElement("p",{contentEditable:!0},"}}")))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(cr,{className:Hn!=null&&Hn.errorMsg?Pe.error:""},Vi(Hn,En),Hi(Hn,"",En),(Xn=Hn==null?void 0:Hn.questions)==null?void 0:Xn.map((hr,$n)=>{var cn;const Kn=(cn=fr.find(Gr=>Gr.id===(hr==null?void 0:hr.type)))==null?void 0:cn.element;return oe.createElement(oe.Fragment,{key:`right-${Hn.id}-${$n}`},Kn(hr,En,$n)[1])}),_i(Hn))))},deal:ft=>{var En,Mn,Xn,Hn,hr;const $n=Xr,cn=[...fr],Kn=cn.findIndex(gi=>gi.id==="0"),Gr=cn.findIndex(gi=>gi.id==="1");if(Kn!==-1){const gi=cn[Kn].deal;cn[Kn].deal=Ri=>{const Oi=gi(Ri);return Oi.errorMsg&&(Oi.errorMsg=Oi.errorMsg.split(`
`).filter(lo=>lo!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),Oi}}if(Gr!==-1){const gi=cn[Gr].deal;cn[Gr].deal=Ri=>{const Oi=gi(Ri);return Oi.errorMsg&&(Oi.errorMsg=Oi.errorMsg.split(`
`).filter(lo=>lo!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),Oi}}ft.questions=(En=ft.questions)!=null&&En.length?Xr(ft.questions.slice(0,20)):[],ft.questions=(Mn=ft.questions)==null?void 0:Mn.map((gi,Ri)=>{var Oi;if(gi.type==="0"||gi.type==="1"){const lo=(Oi=gi.options)==null?void 0:Oi.map(So=>So==null?void 0:So.trim().replace(/^\s+|\s+$/g,""));lo&&new Set(lo).size!==lo.length&&(gi.errorMsg=(gi.errorMsg?gi.errorMsg+`
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return _n(bn({},gi),{last:Ri===ft.questions.length-1})});const Li=(Xn=ft.questions)==null?void 0:Xn.reduce((gi,Ri)=>{const Oi=parseFloat(Ri.score);return isNaN(Oi)?gi:gi+Oi},0);ft.score=Li;let mi=[];return(Hn=ft.questions)!=null&&Hn.length?ft.errorMsg=((hr=ft.questions)==null?void 0:hr.findIndex(gi=>!!gi.errorMsg))>-1:mi.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),ti(ft==null?void 0:ft.question)||mi.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),mi.length&&(ft.errorMsg=mi.join(`
`)),ft}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(ft,En)=>{var Mn,Xn;const Hn=Me[En],hr=Jr.map($n=>({key:$n,label:$n,onClick:()=>ai("platform",En,$n)}));return oe.createElement("div",{className:Pe.row,style:{display:Pr?Hn!=null&&Hn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(jn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},Ni(ft,En),Bi(ft),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${ft==null?void 0:ft.timeLimit}`,tagName:"p"}),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(ft==null?void 0:ft.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:(ft==null?void 0:ft.code)||"",tagName:"div"}),oe.createElement("h4",null),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(ft==null?void 0:ft.input)||""}`,tagName:"p"}),oe.createElement(Ht,{id:ft==null?void 0:ft.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(ft==null?void 0:ft.output)||""}`,tagName:"p"}),(Mn=ft==null?void 0:ft.answer)==null?void 0:Mn.map(($n,cn)=>oe.createElement(Ht,{key:cn,id:ft==null?void 0:ft.id,value:`\u7B54\u6848${cn+1}\uFF1A${$n||""}`,tagName:"p"})),rr(ft)))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(cr,{className:Hn!=null&&Hn.errorMsg?Pe.error:""},Vi(Hn,En),Hi(Hn,"",En),oe.createElement("div",{className:Pe.liWrap},oe.createElement("div",{className:Pe.li,onKeyDown:Ot},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:Hn==null?void 0:Hn.id,value:Hn==null?void 0:Hn.timeLimit,tagName:"div",onBlur:$n=>ai("timeLimit",En,Si($n))})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(St.Z,{menu:{items:hr}},oe.createElement("span",{className:"c-light-primary"},Hn==null?void 0:Hn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:Hn==null?void 0:Hn.id,value:(Hn==null?void 0:Hn.code)||"",onBlur:$n=>ai("code",En,Si($n)),tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:Hn==null?void 0:Hn.id,value:(Hn==null?void 0:Hn.input)||"",onBlur:$n=>ai("input",En,Si($n)),tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:Hn==null?void 0:Hn.id,value:(Hn==null?void 0:Hn.output)||"",onBlur:$n=>ai("output",En,Si($n)),tagName:"div"}))),oe.createElement("div",{className:Pe.liWrap},(Xn=Hn==null?void 0:Hn.answer)==null?void 0:Xn.map(($n,cn)=>oe.createElement("div",{className:Pe.li,key:cn},oe.createElement("aside",null,"\u7B54\u6848",cn+1,"\uFF1A"),oe.createElement(Ht,{id:Hn==null?void 0:Hn.id,value:$n||"",className:Pe.edit,onBlur:Kn=>{const Gr=[...(Hn==null?void 0:Hn.answer)||[]];Gr[cn]=Si(Kn),ai("output",En,Gr)},tagName:"div"})))),_i(Hn))))},deal:ft=>{var En,Mn,Xn,Hn,hr,$n,cn,Kn;ft.score=ft.score===void 0?10:ft.score,ft.code=(Xn=(Mn=(En=ft.code)==null?void 0:En.trim())==null?void 0:Mn.replace(/@_@/g,"@\u2581@"))==null?void 0:Xn.replace(/@__@/g,"@\u2581\u2581@");let Gr=[];if(ti(ft==null?void 0:ft.question)||Gr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ti(ft==null?void 0:ft.code)?/@▁@|@▁▁@/.test(ft==null?void 0:ft.code)?(Hn=ft==null?void 0:ft.answer)!=null&&Hn.length&&((hr=ft==null?void 0:ft.code.match(/@▁@|@▁▁@/g))==null?void 0:hr.length)!==(($n=ft==null?void 0:ft.answer)==null?void 0:$n.length)&&Gr.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Gr.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Gr.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),ft!=null&&ft.answer?(cn=ft.answer)!=null&&cn.some(mi=>!ti(mi))&&Gr.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Gr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),ft.platform=ti(ft==null?void 0:ft.platform),ft!=null&&ft.platform){const mi=["c","c++","java","python","javascript","ruby"],gi=(Kn=ft==null?void 0:ft.platform)==null?void 0:Kn.toLowerCase(),Ri=mi.findIndex(Oi=>Oi===gi);Ri>-1?ft.platform=Jr[Ri]:Gr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Gr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");ti(ft==null?void 0:ft.output)||Gr.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Li=ti(String((ft==null?void 0:ft.timeLimit)||""));return ft.timeLimit=Li,(!Li||Li&&!["3","4","5","6","7","8","9","10"].includes(Li))&&Gr.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),ft.errorMsg=Gr.join(`
`),ft}}],Rn=()=>oe.createElement(oe.Fragment,null,Kr.filter(ft=>{var En;return!!((En=fr.find(Xn=>Xn.id===(ft==null?void 0:ft.type)))==null?void 0:En.element)}).map((ft,En)=>{var Mn;const Xn=(Mn=fr.find(Hn=>Hn.id===(ft==null?void 0:ft.type)))==null?void 0:Mn.element;return oe.createElement(oe.Fragment,{key:ft.id},Xn(ft,En))})),rt=()=>Xt(void 0,null,function*(){const ft=Me.filter(En=>!En.checked);if(qt!==3||!ft.length){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(tr){Gn(!0),yield tr(Me),Gn(!1);return}vr.setFieldsValue({sub_discipline_id:Vt}),Vr(!0)}),jr=(ft,En=[])=>{if(typeof ft=="string")return ft.trim();if(Array.isArray(ft))return ft.map(Mn=>jr(Mn,En));if(typeof ft=="object"&&ft!==null){const Mn={};for(const Xn in ft)ft.hasOwnProperty(Xn)&&(En.includes(Xn)?Mn[Xn]=ft[Xn]:Mn[Xn]=jr(ft[Xn],En));return Mn}return ft},Sr=ft=>Xt(void 0,null,function*(){const En=Xr(jr(ft));oi(En),kr(JSON.parse(JSON.stringify(En))),yr(3),or(!1),ei(!1)});(0,oe.useEffect)(()=>{if(Rr)return;const ft=()=>{Or(En=>En>=90?(clearInterval(Dn.current),90):En+1)};return Dn.current=setInterval(ft,5e4/90),()=>clearInterval(Dn.current)},[Rr]);const zr=(ft,En)=>{Cn(!1);const Mn=new FormData;Object.keys(En).forEach(Hn=>{Mn.append(Hn,En[Hn])});const Xn=new window.XMLHttpRequest;Xn.withCredentials=!0,Xn.addEventListener("load",function(Hn){return Xt(this,null,function*(){var hr,$n;try{const cn=JSON.parse((hr=Hn==null?void 0:Hn.target)==null?void 0:hr.response);if(Cn(!0),Or(100),yield new Promise(Kn=>setTimeout(()=>Kn(),780)),cn.status===0){if(!(($n=cn==null?void 0:cn.data)!=null&&$n.length)){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),or(!1);return}Sr((cn==null?void 0:cn.data)||[])}else or(!1),Te.ZP.warning(cn==null?void 0:cn.message)}catch(cn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",cn)}})}),Xn.addEventListener("error",()=>{or(!1)}),Xn.open("POST",`${ue.Z.API_SERVER}${ft}`),Xn.send(Mn)},ni=ft=>Xt(void 0,null,function*(){const En=ft.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(En)==-1?(Te.ZP.error(`${ft.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(or(!0),ui("\u5904\u7406\u4E2D"),zr("/api/intelligent_imports/import.json",{file:ft}),Promise.reject())});let pi=[{key:1,label:oe.createElement($e.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:ni},oe.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Qt.Ny)()||(0,Qt.$O)())&&pi.push({key:2,label:oe.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{xn.current.onClick()}});const Er=[Me.length,(lr=Me.filter(ft=>!!(ft!=null&&ft.errorMsg)))==null?void 0:lr.length];return oe.createElement("div",{className:ke()(Pe.intelligentBox,"intelligent-body-curb",Xe),style:_n(bn({},lt),{width:Be}),ref:Qn},oe.createElement("div",{className:Pe.underpin},oe.createElement("b",{style:mn}),oe.createElement("b",{style:mn})),oe.createElement("div",{className:Pe.head,style:{top:Pt}},oe.createElement("div",{className:Pe.leftLayout},Tn||oe.createElement(oe.Fragment,null,oe.createElement(Qe.Z,{align:"middle"},oe.createElement("div",{className:Pe.title},"\u8BD5\u9898\u7F16\u8F91"),!zt&&oe.createElement(he.op,{href:`${ue.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",oe.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),oe.createElement(he.op,{onClick:Hr,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!zt&&oe.createElement(St.Z,{overlayClassName:Pe.menu,menu:{items:pi}},oe.createElement(he.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!er&&er),oe.createElement("div",{className:Pe.tip},oe.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),oe.createElement(Qe.Z,{className:Pe.rightLayout,style:{alignItems:"start"}},gn||oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Pe.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(qt)&&oe.createElement(Ue.default,{className:"ml20",checked:Pr,onChange:ft=>ei(ft.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(qt)&&oe.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",oe.createElement("span",{className:"ml5 mr5 c-light-primary"},Er[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",oe.createElement("span",{className:"ml5 mr5 c-red-e53"},Er[1]),"\u9898")),on&&oe.createElement("div",{className:Pe.tabs},Kr==null?void 0:Kr.map((ft,En)=>oe.createElement("div",{onClick:()=>{Wr(En)},className:fn===En&&Pe.active,key:En},"\u65B0\u9898",En+1)))),oe.createElement("div",{className:Pe.centerBox},oe.createElement("img",{className:"mb10",src:Ae,width:56}),!Un&&oe.createElement(he.op,{onClick:fi},"\u8BC6\u522B"))),[1,2].includes(qt)&&wi(),[3].includes(qt)&&Rn(),oe.createElement("div",{className:"pb10"}),oe.createElement("div",{className:Pe.buttonFixed},oe.createElement("div",{className:Pe.buttonWrap},oe.createElement(Dt.ZP,{size:"middle",className:`${Pe.button} mr20`,onClick:bt},"\u53D6\u6D88"),oe.createElement(Dt.ZP,{size:"middle",type:"primary",loading:kt,className:`${Pe.button}`,onClick:rt},ht))),oe.createElement(ze.default,{centered:!0,closable:!1,destroyOnClose:!0,open:$r,title:null,footer:null,width:320,afterClose:()=>Or(0)},oe.createElement(Qe.Z,{align:"middle",style:{flexDirection:"column"}},oe.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Nn,oe.createElement("span",{className:Pe.dotLoading},oe.createElement("span",null,"."),oe.createElement("span",null,"."),oe.createElement("span",null,"."))),oe.createElement(Fe.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:ri}),oe.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",oe.createElement("span",{className:"ml5 c-light-primary"},ri,"%")))),oe.createElement(ze.default,{centered:!0,open:Ti,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Ii,width:480,onCancel:()=>Vr(!1),onOk:()=>vr.submit(),afterClose:()=>{vr.resetFields()}},oe.createElement(Ve.default,{style:{maxHeight:550},form:vr,layout:"horizontal",colon:!1,size:"large",onFinish:ft=>Xt(void 0,null,function*(){var En,Mn,Xn,Hn,hr;const $n=Me.filter(Gr=>!Gr.checked&&!Gr.errorMsg);Di(!0);const cn=()=>Xt(void 0,null,function*(){var Gr,Li;const mi=yield(0,De.ZP)("/api/intelligent_imports/save.json",{method:"post",body:_n(bn(bn({},yn),ft),{list:$n,mode:On})});mi.status===0&&(Sn&&((Gr=mi==null?void 0:mi.data)!=null&&Gr.success)&&window.location.pathname==="/problemset"&&(Zt.Z.publish("refresh-item-bank",ft.group_id),yield new Promise(gi=>setTimeout(()=>gi(),1500))),Te.ZP.success(`\u6210\u529F\u5BFC\u5165${(Li=mi==null?void 0:mi.data)==null?void 0:Li.success}\u9053\u8BD5\u9898`,3),Wt(mi),Vr(!1)),Di(!1)});if(On!==1){yield cn();return}const Kn=yield(0,De.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Me,mode:On}});if(Kn.status===0){if(!((En=Kn==null?void 0:Kn.data)!=null&&En.error_size)){yield cn();return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Di(!1)},title:"\u63D0\u793A",content:oe.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",oe.createElement("span",{className:"c-light-primary ml5 mr5"},(Mn=Kn==null?void 0:Kn.data)==null?void 0:Mn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",oe.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Xn=Kn==null?void 0:Kn.data)==null?void 0:Xn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",oe.createElement("span",{className:"ml5 mr5"},(hr=(Hn=Kn==null?void 0:Kn.data)==null?void 0:Hn.index)==null?void 0:hr.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:cn})}})},oe.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),oe.createElement(Ve.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},oe.createElement(te.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:hn})),On===1&&oe.createElement(Ve.default.Item,{label:oe.createElement(Qe.Z,{align:"middle",style:{justifyContent:"space-between"}},oe.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),oe.createElement("div",{onClick:()=>dn(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},oe.createElement("img",{className:"mr5 primary-hover",src:nt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},oe.createElement(We.Z,{key:Ur})))),oe.createElement(ze.default,{centered:!0,open:Fr,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Zr,onCancel:()=>dn(!1),onOk:()=>Qr.submit(),afterClose:()=>{Qr.resetFields()}},oe.createElement(Ve.default,{style:{maxHeight:550},form:Qr,layout:"horizontal",colon:!1,size:"large",onFinish:ft=>Xt(void 0,null,function*(){var En;sr(!0),(yield(0,De.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:ft.name,parent_id:(En=ft==null?void 0:ft.parent_id)==null?void 0:En[0]}})).status===0?(Tr(Ur+1),setTimeout(()=>{Te.ZP.success("\u64CD\u4F5C\u6210\u529F"),dn(!1),sr(!1)},1e3)):sr(!1)})},oe.createElement(Ve.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},oe.createElement(ee.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),oe.createElement(Ve.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},oe.createElement(We.Z,null)))),oe.createElement(ln.Z,{onSave:ft=>{or(!0),ui("\u5904\u7406\u4E2D"),zr("/api/intelligent_imports/import.json",{html:ft})},ref:xn}))},_e=fe;var Re=it},29105:function(Ze,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(15547),Ie=ae(48136),ke=ae(88831),Ve=ae(62957),Te=ae(59301);const ze=(0,oe.forwardRef)(({callback:st,width:Qe,onChange:Ue,disabled:St,readOnly:$e,type:Dt="",value:Fe="",style:te={}},ee)=>{const he=(0,oe.useRef)(),ue=(0,oe.useRef)(),[fe,me]=(0,oe.useState)(0),[be,Ae]=(0,oe.useState)(0),[De,We]=(0,oe.useState)(!1),nt=()=>{var at=document.createElement("div");at.innerHTML=he.current.getValue();var vt=at.innerText;return st&&st(vt),vt};(0,oe.useImperativeHandle)(ee,()=>({getData:nt}));const qe=at=>{at.preventDefault();const vt=at.clientX-fe,wt=at.clientY-be;document.body.onmousemove=At=>{let Ht=At.clientX-vt,Qt=At.clientY-wt;const Zt=document.getElementsByClassName("markdown-popup-form")[0],ln=window.innerWidth-Zt.offsetWidth,Nt=window.innerHeight-Zt.offsetHeight;Ht=Math.max(0,Math.min(Ht,ln)),Qt=Math.max(0,Math.min(Qt,Nt)),ot(At.clientX,At.clientY,vt,wt)&&(me(Ht),Ae(Qt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ot=(at,vt,wt,At)=>{const Ht=document.body.clientHeight,Qt=document.body.clientWidth;return at<20&&wt>at||at>Qt-20&&wt<at||vt<20&&At>vt||vt>Ht-20&&At<vt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,oe.useEffect)(()=>{De&&setTimeout(()=>{const at=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth/2-at.offsetWidth/2,wt=window.innerHeight/2-at.offsetHeight/2;me(vt),Ae(wt)},0)},[De]);const mt=()=>{St||$e||We(!0)};return Te.createElement("div",{style:te},Te.createElement("div",{style:{width:Qe||"100%",position:"relative"},className:`${Pe.Z.mathFillWrap} ${St||$e?"cursorDefault":""}`,onClick:()=>mt()},Te.createElement("math-field",{disabled:St,locale:"zh_cn",class:`${Pe.Z.mathField} ${Dt}`,readOnly:$e,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:he,style:{width:"100%",fontSize:Fe?18:14},value:Fe||""})),Te.createElement(Ve.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:fe,top:be},title:Te.createElement("div",{style:{cursor:"move"},onMouseDown:qe},"\u8F93\u5165\u516C\u5F0F"),open:De,onOk:()=>{const at=ue.current.getData();he.current.setValue(at),Ue(at),We(!1)},onCancel:()=>{We(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Te.createElement(ke.Z,{value:Fe,ref:ue,onChange:Ue,showSaveButton:!1})))});Ee.Z=ze},88831:function(Ze,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(77019),Ie=ae(5269),ke=ae(20554),Ve=ae(99571),Te=ae(79074),ze=ae(15547),st=ae(48136),Qe=ae(59301);const Ue=(0,oe.forwardRef)(({callback:St,showSaveButton:$e,value:Dt=""},Fe)=>{const te=(0,oe.useRef)(),ee=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],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}`}]}]}],ue=be=>{te.current.setValue(te.current.getValue()+" "+be.value+" ")},fe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Qe.createElement(Pe.Z,{className:ze.Z.lists,gutter:[10,10]},ee.map((be,Ae)=>Qe.createElement(Ie.Z,{flex:"110px",className:ze.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:`$$${be.value}$$`}),be.name),Qe.createElement("div",{className:ze.Z.children},be.children.map((De,We)=>Qe.createElement("div",{key:We},Qe.createElement("h1",null,De.name),Qe.createElement(Pe.Z,{gutter:[10,10]},De.data.map((nt,qe)=>Qe.createElement(Ie.Z,{key:qe,onClick:()=>ue(nt),className:ze.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+nt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Qe.createElement(Pe.Z,{className:ze.Z.lists,gutter:[10,10]},he.map((be,Ae)=>Qe.createElement(Ie.Z,{flex:"110px",className:ze.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:"`$$"+be.value+"$$`"}),be.name),Qe.createElement("div",{className:ze.Z.children},be.children.map((De,We)=>Qe.createElement("div",{key:We},De.name&&Qe.createElement("h1",null,De.name),Qe.createElement(Pe.Z,{gutter:[10,10]},De.data.map((nt,qe)=>Qe.createElement(Ie.Z,{key:qe,onClick:()=>ue(nt),className:ze.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+nt.value+"$$`"}))))))))))}],me=()=>{var be=document.createElement("div");be.innerHTML=te.current.getValue();var Ae=be.innerText;return St&&St(Ae),Ae};return(0,oe.useImperativeHandle)(Fe,()=>({getData:me})),Qe.createElement("div",{className:ze.Z.mathWrap},Qe.createElement(ke.default,{defaultActiveKey:"1",items:fe}),Qe.createElement("math-field",{locale:"zh_cn",className:ze.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Dt||""),$e&&Qe.createElement("div",{className:ze.Z.button},Qe.createElement(Ve.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ee.Z=Ue},40777:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return $e}});var oe=ae(59301),Pe=ae(28284),Ie=ae(62957),ke=ae(37568),Ve=ae(87169),Te=ae(24092),ze={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},st=ae(32572),Qe=ae(59301),Ue=(Dt,Fe,te)=>new Promise((ee,he)=>{var ue=be=>{try{me(te.next(be))}catch(Ae){he(Ae)}},fe=be=>{try{me(te.throw(be))}catch(Ae){he(Ae)}},me=be=>be.done?ee(be.value):Promise.resolve(be.value).then(ue,fe);me((te=te.apply(Dt,Fe)).next())}),$e=({type:Dt="subject",open:Fe,onCancel:te,onOkClick:ee,subDisciplineId:he})=>{const[ue]=Pe.default.useForm(),[fe,me]=(0,oe.useState)([]),[be,Ae]=(0,oe.useState)(!1);(0,oe.useEffect)(()=>{},[]);const De=()=>Ue(void 0,null,function*(){if(Dt){const We=yield(0,Te.ZP)("/api/disciplines.json",{method:"get",params:{source:Dt}});me(We.disciplines||[])}});return Qe.createElement(Ie.default,{title:Qe.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:Fe,width:558,centered:!0,className:ze.publicQuest,onCancel:()=>{te(),ue.resetFields()},onOk:()=>{ue.validateFields().then(We=>Ue(void 0,null,function*(){const nt=yield(0,Te.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:We==null?void 0:We.name,sub_discipline_id:he}});(nt==null?void 0:nt.status)===0&&ee({name:We==null?void 0:We.name,id:nt==null?void 0:nt.tag_discipline_id,public:!1,type:"personal"}),ue.resetFields(),te()}))}},Qe.createElement("div",{className:ze.publicQuestContent},Qe.createElement("div",{className:ze.public_tips},Qe.createElement(Ve.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),Qe.createElement(Pe.default,{labelAlign:"left",form:ue,colon:!1},Qe.createElement(Pe.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},Qe.createElement(ke.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),Qe.createElement(st.Z,{open:be,onCancel:()=>{Ae(!1)}})))}},12635:function(Ze,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(93314),Ie=ae(99571),ke=Object.defineProperty,Ve=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ue=(Fe,te,ee)=>te in Fe?ke(Fe,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Fe[te]=ee,St=(Fe,te)=>{for(var ee in te||(te={}))st.call(te,ee)&&Ue(Fe,ee,te[ee]);if(ze)for(var ee of ze(te))Qe.call(te,ee)&&Ue(Fe,ee,te[ee]);return Fe},$e=(Fe,te)=>Ve(Fe,Te(te));const Dt=({img:Fe,buttonProps:te={},styles:ee={},customText:he,ButtonText:ue,ButtonClick:fe,Buttonclass:me,ButtonTwo:be,imgStyles:Ae,loading:De=!1,className:We=""})=>oe.createElement("section",{className:`tc animated fadeIn ${We}`,style:St({color:"#999",margin:"100px auto",visibility:De?"hidden":"visible"},ee)},oe.createElement("img",{src:Fe||Pe,style:$e(St({},Ae),{pointerEvents:"none",userSelect:"none"})}),oe.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ue&&oe.createElement(Ie.ZP,St({className:me,onClick:fe},te),ue),be&&be);Ee.Z=Dt},6311:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ie=ae(99571),ke=ae(70557),Ve=ae(89081),Te=ae(25399),ze=ae(59895),st=ae(76011),Qe=ae(12635),Ue=ae(12242),St=ae(65789),$e=ae(59301),Dt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(be,Ae,De)=>Ae in be?Dt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:De}):be[Ae]=De,ue=(be,Ae)=>{for(var De in Ae||(Ae={}))te.call(Ae,De)&&he(be,De,Ae[De]);if(Fe)for(var De of Fe(Ae))ee.call(Ae,De)&&he(be,De,Ae[De]);return be},fe=(be,Ae,De)=>new Promise((We,nt)=>{var qe=at=>{try{mt(De.next(at))}catch(vt){nt(vt)}},ot=at=>{try{mt(De.throw(at))}catch(vt){nt(vt)}},mt=at=>at.done?We(at.value):Promise.resolve(at.value).then(qe,ot);mt((De=De.apply(be,Ae)).next())}),me=({editOffice:be="view",data:Ae,theme:De,type:We,filename:nt,monacoEditor:qe,className:ot,style:mt,close:at,onClose:vt,hasMask:wt,disabledDownload:At,onImgDimensions:Ht,showNodata:Qt,recordInfo:Zt})=>{const[ln,Nt]=(0,oe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[gt,ct]=(0,oe.useState)(""),[Jt,sn]=(0,oe.useState)(),It=window.ENV==="build"?"/react/build":"",wn=location.host.startsWith("localhost")?Ue.Z.PROXY_SERVER:Ue.Z.API_SERVER,_n=10*(1024*1024),Xt=(0,oe.useRef)();Ae!=null&&Ae.startsWith("/api")&&We!=="txt"&&(Ae=Ue.Z.API_SERVER+Ae);const zn=it=>it.substring(it.lastIndexOf("/")+1).split(".").pop();nt&&qe&&(qe.filename=nt),(0,oe.useEffect)(()=>{var it,_e;const Re=(_e=(it=document.cookie)==null?void 0:it.replace(/\s/g,""))==null?void 0:_e.split(";");Re==null||Re.map(Xe=>{let lt=Xe.split("=");lt[0]==="_educoder_session"&&ct(lt[1])})},[]),(0,oe.useEffect)(()=>{We==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?sn({url:Ae,fileType:zn(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):Ot())},[We,Ae]);const Ot=()=>fe(void 0,null,function*(){console.log("data:",Ae);let it=Ae;Ae.startsWith("http")||(it=location.origin+it);let _e=new URL(it).pathname.split("/").pop();const Re=yield(0,st.gJ)({attachment_id:_e});Re.url=wn+Re.url,sn(Re)}),jn=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){cr();return}(0,ze.Sv)(nt||"educoder",Ae,nt)},cr=()=>{Zt&&(0,St.fc)({id:Zt==null?void 0:Zt.id,watch_type:1,course_id:Zt==null?void 0:Zt.course_id}),(0,ze.Nd)(nt||"educoder",decodeURIComponent(Ae))};return $e.createElement("div",{style:ue({},mt||{}),className:`${wt&&Pe.bgBlack} ${We?Pe.wrp:"hide"}`},at&&$e.createElement("div",{className:Pe.close,ref:Xt},!!Ht&&$e.createElement(Te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Xt.current},$e.createElement("span",{onClick:()=>{vt(),Ht()}},$e.createElement("i",{className:"icon-yulanpizhu"}))),!At&&$e.createElement(Te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Xt.current},$e.createElement("span",{onClick:cr},$e.createElement("i",{className:"icon-quxiaozhiding"}))),$e.createElement(Te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Xt.current},$e.createElement("span",{className:"",onClick:vt},$e.createElement("i",{className:"icon-guanbi1"})))),$e.createElement("div",{className:`${Pe[ot]} ${ot} ${Pe.monaco} ${We==="txt"?"show":"hide"}`},We==="txt"&&$e.createElement($e.Fragment,null,$e.createElement(Ve.ZP,ue({},qe)))),We==="audio"&&$e.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),We==="video"&&$e.createElement($e.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?$e.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):$e.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),We==="office"&&Jt&&$e.createElement("iframe",{src:`${It}/office.html?key=${Jt.key}&url=${btoa(Jt.url)}&callbackUrl=${wn+(Jt.callbackUrl||"")}&fileType=${Jt.fileType}&title=${Jt.title||""}&model=${be}&officeServer=${Ue.Z.ONLYOFFICE}&disabledDownload=${!!At}`}),We==="html"&&$e.createElement("iframe",{src:Ae+"&disposition=inline"}),We==="pdf"&&$e.createElement("iframe",{src:`${It}/js/pdfview/index.html?filename=${nt||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!At}`}),We==="image"&&$e.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(We==="other"||We==="download")&&$e.createElement($e.Fragment,null,Qt?$e.createElement(Qe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:$e.createElement(Ie.ZP,{icon:$e.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:jn,disabled:At},"\u4E0B\u8F7D")}):$e.createElement(Ie.ZP,{type:"primary",size:"middle",onClick:jn,disabled:At},$e.createElement(ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},89300:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Q:function(){return Qe},Z:function(){return St}});var oe=ae(59301),Pe={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Ie=ae(92310),ke=ae.n(Ie),Ve=ae(62957),Te=ae(6767),ze=ae(62673),st=($e,Dt,Fe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Fe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Fe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Fe=Fe.apply($e,Dt)).next())});const Qe=({title:$e="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Dt=[],visible:Fe,setVisible:te,tip:ee,onOk:he})=>{const[ue,fe]=(0,oe.useState)([]),[me,be]=(0,oe.useState)(!1);return(0,oe.useEffect)(()=>{Fe&&fe(Dt)},[Fe]),oe.createElement(Ve.default,{centered:!0,open:Fe,title:$e,confirmLoading:me,width:564,onOk:()=>st(void 0,null,function*(){if(!ue.length){Te.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}be(!0),yield he(ue),be(!1)}),onCancel:()=>te(!1)},!!ee&&oe.createElement("div",{className:"c-grey-666 font16 mb10"},ee),oe.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},oe.createElement(ze.default.Group,{value:ue,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:Ae=>{fe(Ae)}})))};var St=({title:$e="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Dt,style:Fe={},onEdit:te,dataSource:ee=[]})=>{const he={C:oe.createElement("div",{className:Pe.c},"C"),"C++":oe.createElement("div",{className:Pe.cpp},"C++"),Java:oe.createElement("div",{className:Pe.java},"Java"),Python:oe.createElement("div",{className:Pe.python},"Python")};return oe.createElement("div",{className:ke()(Pe.tags,Dt),style:Fe},!!$e&&oe.createElement("div",{className:Pe.text},$e),oe.createElement("div",{className:Pe.tagWrap},ee==null?void 0:ee.map(ue=>oe.createElement(oe.Fragment,{key:ue},he[ue]))),!!te&&oe.createElement("div",{onClick:te,className:`iconfont icon-bianji_Hover ${Pe.edit}`}))}},74057:function(Ze,Ee,ae){"use strict";ae.d(Ee,{t:function(){return Re}});var oe=ae(59301),Pe=ae(37568),Ie=ae(28284),ke=ae(62957),Ve=ae(77019),Te=ae(5269),ze=ae(71051),st=ae(82326),Qe=ae(47889),Ue=ae(13878),St=ae(71570),$e=ae(64745),Dt=ae(6767),Fe=ae(99571),te=ae(29787),ee=ae(24334),he={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},ue=ae(24092),fe=ae(8846),me=ae(19565),be=ae(56102),Ae=ae(45688),De=ae(59301),We=Object.defineProperty,nt=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,vt=(Xe,lt,Be)=>lt in Xe?We(Xe,lt,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Xe[lt]=Be,wt=(Xe,lt)=>{for(var Be in lt||(lt={}))mt.call(lt,Be)&&vt(Xe,Be,lt[Be]);if(ot)for(var Be of ot(lt))at.call(lt,Be)&&vt(Xe,Be,lt[Be]);return Xe},At=(Xe,lt)=>nt(Xe,qe(lt)),Ht=(Xe,lt,Be)=>new Promise((bt,Wt)=>{var yn=Vt=>{try{Pt(Be.next(Vt))}catch(zt){Wt(zt)}},On=Vt=>{try{Pt(Be.throw(Vt))}catch(zt){Wt(zt)}},Pt=Vt=>Vt.done?bt(Vt.value):Promise.resolve(Vt.value).then(yn,On);Pt((Be=Be.apply(Xe,lt)).next())}),Zt=({buttonProps:Xe,buttonText:lt,form:Be,hackIdentifier:bt="",answerKey:Wt,data:yn})=>{const[On,Pt]=(0,oe.useState)(!1),[Vt,zt]=(0,oe.useState)(!1),[pn,Tn]=(0,oe.useState)(!1),[gn,Mt]=(0,oe.useState)({}),[Un,Yt]=(0,oe.useState)(""),[on,mn]=(0,oe.useState)(""),er=(0,oe.useRef)(bt),Sn=(0,oe.useRef)(""),ht=(0,oe.useRef)(!1);(0,oe.useEffect)(()=>{pn&&yr()},[pn]),(0,oe.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const tr=()=>new Date().getTime(),lr=yn==null?void 0:yn.code,qt=()=>{var Nn,ui;let $r=lr?yn==null?void 0:yn.code:(Nn=Be.getFieldValue("hack_codes"))==null?void 0:Nn.code,or=lr?yn==null?void 0:yn.answer_content:Be.getFieldValue(Wt),Kr=lr?yn==null?void 0:yn.input:(ui=Be.getFieldValue("hack_sets"))==null?void 0:ui.input;or==null||or.forEach(oi=>{const Me=oi.value||oi.answer_text||"";$r=$r.replace(/(@▁@|@▁▁@)/,Me)}),mn(Kr),Yt($r),Mt({}),Tn(!0)},yr=()=>Ht(void 0,null,function*(){var Nn,ui,$r,or;const Kr=tr(),oi=lr?yn==null?void 0:yn.time_limit:(Nn=Be.getFieldsValue())==null?void 0:Nn.hack.time_limit,Me=lr?(ui=yn==null?void 0:yn.answer_content)==null?void 0:ui.length:(or=($r=Be.getFieldsValue())==null?void 0:$r.standard_answers)==null?void 0:or.length;Pt(!0),yield(0,fe.bM)(Sn.current,{test_hack_code:Un,test_input:on});function kr(){return Ht(this,null,function*(){const{status:Pr,data:ei}=yield(0,fe.rX)(Sn.current,"submit"),Di=tr()-Kr>(oi+3)*1e3*Me;if(ht.current){if(Di){Dt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Pt(!1);return}if(Pr===0){Pt(!1),Mt(At(wt({},ei),{showText:!0}));return}setTimeout(kr,1e3)}})}kr()}),ri=()=>Ht(void 0,null,function*(){var Nn,ui,$r,or,Kr,oi,Me;if(!yn){try{yield Be.validateFields()}catch(Ii){($r=(ui=(Nn=Ii==null?void 0:Ii.errorFields)==null?void 0:Nn[0])==null?void 0:ui.name)!=null&&$r.includes("standard_answers")?Dt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Dt.ZP.error(Ii.errorFields[0].errors[0]),Be.scrollToField(Ii.errorFields[0].name,{behavior:"smooth",block:"center"});return}zt(!0);let Pr="";const ei=Be.getFieldsValue();er.current?Pr=yield(0,ue.ZP)(`/api/problems/${er.current}.json`,{method:"put",body:At(wt({},ei),{hack:At(wt({},ei==null?void 0:ei.hack),{sub_discipline_id:(Me=(oi=ei==null?void 0:ei.hack)==null?void 0:oi.sub_discipline_id)==null?void 0:Me[1],difficult:ei.difficulty,item_banks_group_id:ei.item_banks_group_id}),hack_codes:At(wt({},ei.hack_codes),{code:ee.Base64.encode(ei.hack_codes.code)}),update_hack_sets:[wt({},ei.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(Pr=yield(0,ue.ZP)("/api/problems.json",{method:"post",body:At(wt({},ei),{hack:At(wt({},ei==null?void 0:ei.hack),{sub_discipline_id:(Kr=(or=ei==null?void 0:ei.hack)==null?void 0:or.sub_discipline_id)==null?void 0:Kr[1],difficult:ei.difficulty,item_banks_group_id:ei.item_banks_group_id}),hack_codes:At(wt({},ei.hack_codes),{code:ee.Base64.encode(ei.hack_codes.code)}),hack_sets:[wt({},ei.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),er.current=Pr==null?void 0:Pr.identifier,sessionStorage.projectFill=Pr==null?void 0:Pr.identifier)}const kr=yield(0,ue.ZP)(`/api/problems/${er.current}/start.json`,{method:"get"});if((kr==null?void 0:kr.status)===0){Sn.current=kr==null?void 0:kr.identifier,ht.current=!0,zt(!1),qt();return}zt(!1)}),Or=Nn=>{const{status:ui,error_msg:$r,execute_time:or,output:Kr,input:oi,expected_output:Me}=Nn;let kr=null;switch(ui){case Ae.h.OK:kr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",or/1e3,"\u79D2"),De.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ae.h.NOMATCH:kr=De.createElement(De.Fragment,null,De.createElement("div",null,"\u8F93\u5165\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},oi),De.createElement("div",null,"\u8F93\u51FA\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},Kr&&ee.Base64.decode(Kr)),De.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},Me&&ee.Base64.decode(Me)));break;case Ae.h.EXECUTEFAILURE:kr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",De.createElement("pre",null,oi)),De.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),De.createElement("pre",{className:"error"},ee.Base64.decode($r)));break;case Ae.h.COMPILEFAILURE:kr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",De.createElement("pre",null,oi)),De.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),De.createElement("pre",{className:"error"},ee.Base64.decode($r)));break;case Ae.h.PODFAILURE:kr=De.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ae.h.TIMEOUT:kr=De.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return De.createElement(De.Fragment,null," ",kr," ")};return De.createElement("div",null,De.createElement(Fe.ZP,At(wt({loading:Vt},Xe),{onClick:ri}),lt),De.createElement(ke.default,{open:pn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:On,cancelButtonProps:{style:{display:"none"}},onOk:()=>yr(),onCancel:()=>{ht.current=!1,Tn(!1)}},De.createElement("div",{className:he.result},De.createElement("div",{className:he.left},De.createElement("div",{className:"mb20"},De.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!yn&&De.createElement(be.CopyToClipboard,{text:Un,onCopy:()=>Dt.ZP.success("\u590D\u5236\u6210\u529F")},De.createElement("span",{style:{float:"right"},className:"current c-light-primary"},De.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),De.createElement(me.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Un,onChange:Nn=>Yt(Nn)})),De.createElement("div",{className:he.right},De.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),De.createElement("div",{className:he.box},De.createElement("div",{className:he.li},De.createElement(Pe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:on,onChange:Nn=>mn(Nn.target.value),bordered:!1,style:{height:180}}))),De.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),De.createElement("div",{className:he.box},De.createElement(te.Z,{spinning:On,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},De.createElement("div",{className:he.li,style:{height:196,overflow:"auto",padding:10}},Or(gn))))))))},ln=ae(87169),Nt=ae(59301),gt=Object.defineProperty,ct=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,bn=(Xe,lt,Be)=>lt in Xe?gt(Xe,lt,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Xe[lt]=Be,_n=(Xe,lt)=>{for(var Be in lt||(lt={}))It.call(lt,Be)&&bn(Xe,Be,lt[Be]);if(sn)for(var Be of sn(lt))wn.call(lt,Be)&&bn(Xe,Be,lt[Be]);return Xe},Xt=(Xe,lt)=>ct(Xe,Jt(lt)),zn=(Xe,lt)=>{var Be={};for(var bt in Xe)It.call(Xe,bt)&&lt.indexOf(bt)<0&&(Be[bt]=Xe[bt]);if(Xe!=null&&sn)for(var bt of sn(Xe))lt.indexOf(bt)<0&&wn.call(Xe,bt)&&(Be[bt]=Xe[bt]);return Be};const{TextArea:Ot}=Pe.default,jn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],cr=({value:Xe,onChange:lt})=>Nt.createElement(Switch,{checked:Xe,onChange:Be=>{lt(Be)}}),it="@\u2581@",_e="@\u2581\u2581@",Re=({questionTitlePlaceholder:Xe,form:lt,scoreByBlank:Be=!1,hackidentifier:bt,answerKey:Wt})=>{const[yn,On]=(0,oe.useState)(!1),[Pt,Vt]=(0,oe.useState)(!1),pn=(0,St.useParams)().type==="edit",Tn=(Sn,ht)=>{const tr=ht.line;let lr=0;for(let yr=0;yr<tr;yr++)lr+=Sn.getLine(yr).split(it).length-1;for(let yr=0;yr<tr;yr++)lr+=Sn.getLine(yr).split(_e).length-1;const qt=Sn.getLine(tr).substring(0,ht.ch);return lr+=qt.split(it).length-1,lr+=qt.split(_e).length-1,lr},gn=(Sn,ht,tr,lr)=>{const qt=Sn.getRange(ht.from,ht.to);let yr=0;if(ht.text.forEach(ri=>{yr+=ri.split(it).length-1}),ht.text.forEach(ri=>{yr+=ri.split(_e).length-1}),ht.origin!=="setValue"){if(qt&&(qt.indexOf(it)!==-1||qt.indexOf(_e)!==-1)){const ri=qt.split(it).length-1+qt.split(_e).length-1,Or=Tn(Sn,ht.from);if(console.log(`\u5220\u9664${ri}\u4E2A\uFF0C \u524D\u9762\u6709${Or}\u4E2A\uFF0C\u65B0\u589E${yr}\u4E2A`),ri>1){const Nn=Array.from({length:ri},(ui,$r)=>Or+$r);lr(Nn)}else lr(Or)}else if(yr>0){const ri=Tn(Sn,ht.from);console.log(`\u65B0\u589E${yr}\u4E2A\uFF0C\u4E4B\u524D\u6709${ri}\u4E2A`),tr(yr,ri)}}},Mt=()=>{const Sn=lt.getFieldValue(Wt);lt.setFieldsValue({[Wt]:Sn==null?void 0:Sn.map((ht,tr)=>Xt(_n({},ht),{position:tr+1}))})},Un=(0,oe.useRef)(),Yt=(Sn,ht)=>{for(let tr=0;tr<Sn;tr++)Un.current({position:null,answer_text:""},ht+tr);Mt()},on=(0,oe.useRef)(),mn=Sn=>{on.current(Sn),Mt()},er=Ie.default.useWatch(Wt,lt);return Nt.createElement("div",{className:$e.Z.wrap},Nt.createElement(Ie.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Nt.createElement(Ue.h,{scrollId:"name",watch:!0,height:140})),Nt.createElement("div",{className:$e.Z.questionTitleEditorWrap},Nt.createElement(Ie.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Nt.createElement(Ue.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Sn,ht)=>{const tr=lt.getFieldValue(Wt);console.log("--preAnswerData",tr,ht),lt.setFieldsValue({[Wt]:tr==null?void 0:tr.map((lr,qt)=>{var yr;return Xt(_n({},lr),{position:qt+1,multi_line:(yr=ht==null?void 0:ht[qt])==null?void 0:yr.multiLine})})})},placeholder:Xe,onCMBeforeChange:(Sn,ht)=>{gn(Sn,ht,Yt,mn)}}))),Nt.createElement(Ie.default.List,{name:Wt,rules:[{validator(Sn,ht){if(!(ht!=null&&ht.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const tr of ht){const{answer_text:lr}=tr||{};if((lr==null?void 0:lr.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Sn,{add:ht,remove:tr},{errors:lr})=>(Un.current=ht,on.current=tr,Nt.createElement(Nt.Fragment,null,Nt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Nt.createElement(Ie.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Nt.createElement("div",{onClick:()=>{ke.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Nt.createElement("div",null,Nt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Nt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Nt.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},Nt.createElement(ln.Z,{style:{marginRight:3,color:"#3061D0"}}),Nt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Sn.map((qt,yr)=>{var ri=qt,{key:Or,name:Nn}=ri,ui=zn(ri,["key","name"]),$r,or;return Nt.createElement(Ve.Z,{className:"mb20",key:Or,align:"middle",wrap:!1},Nt.createElement(Te.Z,{flex:"0 0 auto",className:`${$e.Z.blankIndex}`},"\u586B\u7A7A\u9879",yr+1),Nt.createElement(Te.Z,{flex:1},Nt.createElement(Ve.Z,{align:"top",justify:"space-between",wrap:!1},Nt.createElement(Te.Z,null,Nt.createElement(Ie.default.Item,Xt(_n({},ui),{name:[Nn,"answer_text"],noStyle:!0}),($r=er==null?void 0:er[Nn])!=null&&$r.multi_line||(or=er==null?void 0:er[Nn])!=null&&or.multiLine?Nt.createElement(Ot,{spellCheck:!1,style:{marginLeft:10,width:550}}):Nt.createElement(Pe.default,{style:{marginLeft:10,width:550},className:$e.Z.blankInput,size:"large",maxLength:1e3,onBlur:Kr=>{}}))),Be&&Nt.createElement(Te.Z,{flex:"224px"},Nt.createElement(Ie.default.Item,Xt(_n({},ui),{name:[Nn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Nt.createElement(ze.Z,{size:"large",className:$e.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Nt.createElement("div",{onClick:()=>On(!0)},Nt.createElement(Ie.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Nt.createElement(Ue.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:yn}))),Nt.createElement(Ie.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Nt.createElement(st.default,{size:"large"},jn.map(Sn=>Nt.createElement(st.default.Option,{key:Sn.title,value:Sn.key}," ",Sn.title)))),Nt.createElement(Ie.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Nt.createElement(Ie.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},Nt.createElement(ze.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Nt.createElement("span",{className:"ml10 font14"},"\u79D2")),Nt.createElement(Ie.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Nt.createElement(Qe.ZP.Group,{style:{marginTop:-10}},Nt.createElement(Qe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Nt.createElement(Qe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Nt.createElement(Qe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Nt.createElement(Ie.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Nt.createElement("div",{style:{background:"#F6F7F9",padding:15}},Nt.createElement(Ie.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Nt.createElement(Ot,{rows:4})),Nt.createElement(Ie.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Nt.createElement(Ot,{rows:4}))),Nt.createElement(Zt,{form:lt,answerKey:Wt,hackIdentifier:bt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Nt.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},44831:function(Ze,Ee,ae){"use strict";ae.d(Ee,{u:function(){return De}});var oe=ae(59301),Pe=ae(77019),Ie=ae(5269),ke=ae(25399),Ve=ae(28284),Te=ae(64745),ze=ae(32134),st=ae(12893),Qe=ae(13878),Ue=ae(59301),St=Object.defineProperty,$e=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(We,nt,qe)=>nt in We?St(We,nt,{enumerable:!0,configurable:!0,writable:!0,value:qe}):We[nt]=qe,ue=(We,nt)=>{for(var qe in nt||(nt={}))te.call(nt,qe)&&he(We,qe,nt[qe]);if(Fe)for(var qe of Fe(nt))ee.call(nt,qe)&&he(We,qe,nt[qe]);return We},fe=(We,nt)=>$e(We,Dt(nt)),me=(We,nt)=>{var qe={};for(var ot in We)te.call(We,ot)&&nt.indexOf(ot)<0&&(qe[ot]=We[ot]);if(We!=null&&Fe)for(var ot of Fe(We))nt.indexOf(ot)<0&&ee.call(We,ot)&&(qe[ot]=We[ot]);return qe};const be=["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"],Ae=({value:We,onChange:nt,choiceTextKey:qe,answerKey:ot,index:mt,isEdit:at,setInputActive:vt,form:wt,choiceOptionsPath:At,allowChangeMode:Ht,showAddIcon:Qt,addItem:Zt,deleteItem:ln})=>{console.log(We,"value");const Nt=(We==null?void 0:We[ot])===1,gt=()=>{const Jt=wt.getFieldValue(At);wt.setFieldValue(At,Jt.map(sn=>fe(ue({},sn),{[ot]:0})))},ct=()=>{Nt?nt(fe(ue({},We),{[ot]:0})):(Ht||gt(),nt(fe(ue({},We),{[ot]:1})))};return Ue.createElement(Pe.Z,{className:Te.Z.choiceWrap,align:"middle",wrap:!1},Ue.createElement(Ie.Z,{onClick:ct,className:`${Te.Z.choiceIndex} ${Nt?Te.Z.activeAnswer:""}`},be[mt]),Ue.createElement(Ie.Z,{flex:1,className:`${Te.Z.editorWrap} ml15`,onClick:vt},Ue.createElement(Qe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:at,value:We==null?void 0:We[qe],onChange:Jt=>{nt(fe(ue({},We),{[qe]:Jt}))}})),Ue.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},Ue.createElement("div",{onClick:ct,className:`${Te.Z.setAnswerBtn} ${Nt?Te.Z.activeAnswer:""}`},Nt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Ue.createElement(Ie.Z,{className:Te.Z.actionWrapper},Ue.createElement(ke.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Ue.createElement(ze.Z,{className:Te.Z.addIcon,onClick:Zt,style:{visibility:Qt?"visible":"hidden"}})),Ue.createElement(ke.Z,{title:"\u5220\u9664"},Ue.createElement(st.Z,{className:Te.Z.deleteIcon,onClick:ln,style:{visibility:mt>1?"visible":"hidden"}}))))},De=({questionTitlePlaceholder:We,titleKey:nt,choiceKey:qe,analysisKey:ot,choiceTextKey:mt,answerKey:at,choiceOptionsPath:vt,allowChangeMode:wt=!0,form:At,showAnalysis:Ht=!0})=>{const[Qt,Zt]=(0,oe.useState)(),[ln,Nt]=(0,oe.useState)(!1);return Ue.createElement("div",{className:Te.Z.wrap},Ue.createElement("div",{className:Te.Z.questionTitleEditorWrap},Ue.createElement(Ve.default.Item,{label:"\u9898\u5E72",name:nt,labelCol:{span:24},rules:[{required:!0}]},Ue.createElement(Qe.h,{scrollId:Array.isArray(nt)?nt.join("_"):`${nt}`,watch:!0,height:140,placeholder:We}))),Ue.createElement(Ve.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Ue.createElement(Ve.default.List,{name:qe,rules:[{validator(gt,ct){const Jt=ct.some(It=>It[at]===1),sn=ct.findIndex(It=>{var wn;return((wn=It[mt])==null?void 0:wn.length)<=0});return sn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[sn]}\u9009\u9879\u7684\u5185\u5BB9`)):Jt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(gt,{add:ct,remove:Jt})=>Ue.createElement("div",{id:Array.isArray(vt)?vt.join("_"):`${vt}`},gt.map((sn,It)=>{var wn=sn,{key:bn,name:_n}=wn,Xt=me(wn,["key","name"]);const zn=Qt===bn,Ot=()=>{Zt(bn)},jn=It<7&&It===gt.length-1,cr=()=>ct({[mt]:"",[at]:0}),it=()=>Jt(_n);return Ue.createElement(Ve.default.Item,fe(ue({},Xt),{key:bn,name:_n,className:Te.Z.choiceListWrap,rules:[{validator(_e,Re){return Re!=null&&Re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[It]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Ue.createElement(Ae,{choiceTextKey:mt,answerKey:at,index:It,isEdit:zn,setInputActive:Ot,form:At,choiceOptionsPath:vt,allowChangeMode:wt,showAddIcon:jn,addItem:cr,deleteItem:it}))}),gt.length<8&&Ue.createElement("div",{className:`${Te.Z.addBtn} mb30`,onClick:()=>ct({[mt]:"",[at]:0})},"\u6DFB\u52A0\u9009\u9879"))),Ht&&Ue.createElement("div",{onClick:()=>Nt(!0)},Ue.createElement(Ve.default.Item,{name:ot,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ue.createElement(Qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ln}))))}},61382:function(Ze,Ee,ae){"use strict";ae.d(Ee,{u:function(){return wt}});var oe=ae(59301),Pe=ae(62957),Ie=ae(77019),ke=ae(5269),Ve=ae(37568),Te=ae(25399),ze=ae(71411),st=ae(28284),Qe=ae(47889),Ue=ae(71051),St=ae(13878),$e=ae(12893),Dt=ae(61485),Fe=ae(64745),te=ae(29105),ee=ae(59301),he=Object.defineProperty,ue=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,De=(At,Ht,Qt)=>Ht in At?he(At,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):At[Ht]=Qt,We=(At,Ht)=>{for(var Qt in Ht||(Ht={}))be.call(Ht,Qt)&&De(At,Qt,Ht[Qt]);if(me)for(var Qt of me(Ht))Ae.call(Ht,Qt)&&De(At,Qt,Ht[Qt]);return At},nt=(At,Ht)=>ue(At,fe(Ht)),qe=(At,Ht)=>{var Qt={};for(var Zt in At)be.call(At,Zt)&&Ht.indexOf(Zt)<0&&(Qt[Zt]=At[Zt]);if(At!=null&&me)for(var Zt of me(At))Ht.indexOf(Zt)<0&&Ae.call(At,Zt)&&(Qt[Zt]=At[Zt]);return Qt};const ot=({value:At,onChange:Ht})=>{const Qt=ln=>{Pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.Z.modal,onOk:()=>{const Nt=[...At];Nt.splice(ln,1),Ht(Nt)}})},Zt=()=>{const ln=[...At];ln.push(""),Ht(ln)};return ee.createElement(Ie.Z,{className:"ml20"},ee.createElement(ke.Z,{flex:1},At==null?void 0:At.map((ln,Nt)=>ee.createElement(Ie.Z,{key:`${ln}_${Nt}`,className:"mb20"},ee.createElement(Ve.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:ln,autoSize:{maxRows:3},maxLength:1e3,onBlur:gt=>{const ct=[...At],Jt=gt.target.value.trim();ct[Nt]=Jt,Ht(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement($e.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:Nt>0?"visible":"hidden"},onClick:()=>Qt(Nt)}))))),ee.createElement(ke.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Zt()}},"\u65B0\u589E\u7B54\u6848")))},mt=({value:At,onChange:Ht})=>{const Qt=ln=>{Pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.Z.modal,onOk:()=>{const Nt=[...At];Nt.splice(ln,1),Ht(Nt)}})},Zt=()=>{const ln=[...At];ln.push(""),Ht(ln)};return ee.createElement(Ie.Z,{className:"ml20"},ee.createElement(ke.Z,{flex:1},At==null?void 0:At.map((ln,Nt)=>ee.createElement(Ie.Z,{key:`${ln}_${Nt}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:ln,style:{flex:1},onChange:gt=>{const ct=[...At];ct[Nt]=gt,Ht(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement($e.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:Nt>0?"visible":"hidden"},onClick:()=>Qt(Nt)}))))),ee.createElement(ke.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Zt()}},"\u65B0\u589E\u7B54\u6848")))},at=({value:At=!0,onChange:Ht})=>ee.createElement(ze.Z,{checked:!At,onChange:Qt=>{Ht(!Qt)}}),vt="\u2581",wt=({questionTitlePlaceholder:At,form:Ht,scoreByBlank:Qt=!1,answerKey:Zt})=>{const[ln,Nt]=(0,oe.useState)(!1),gt=(Xt,zn)=>{const Ot=zn.line;let jn=0;for(let it=0;it<Ot;it++)jn+=Xt.getLine(it).split(vt).length-1;const cr=Xt.getLine(Ot).substring(0,zn.ch);return jn+=cr.split(vt).length-1,jn},ct=(Xt,zn,Ot,jn)=>{const cr=Xt.getRange(zn.from,zn.to);let it=0;if(zn.text.forEach(_e=>{it+=_e.split(vt).length-1}),zn.origin!=="setValue"){if(cr&&cr.indexOf(vt)!==-1){const _e=cr.split(vt).length-1,Re=gt(Xt,zn.from);if(console.log(`\u5220\u9664${_e}\u4E2A\uFF0C \u524D\u9762\u6709${Re}\u4E2A\uFF0C\u65B0\u589E${it}\u4E2A`),_e>1){const Xe=Array.from({length:_e},(lt,Be)=>Re+Be);jn(Xe)}else jn(Re)}else if(it>0){const _e=gt(Xt,zn.from);console.log(`\u65B0\u589E${it}\u4E2A\uFF0C\u4E4B\u524D\u6709${_e}\u4E2A`),Ot(it,_e)}}},Jt=()=>{const Xt=Ht.getFieldValue(Zt);Ht.setFieldsValue({[Zt]:Xt.map((zn,Ot)=>nt(We({},zn),{position:Ot+1}))})},sn=(0,oe.useRef)(),It=(Xt,zn)=>{for(let Ot=0;Ot<Xt;Ot++)sn.current({position:null,answer_text:[""],model:1},zn+Ot);Jt()},wn=(0,oe.useRef)(),bn=Xt=>{wn.current(Xt),Jt()},_n=st.default.useWatch(Zt,Ht);return ee.createElement("div",{className:Fe.Z.wrap},ee.createElement("div",{className:Fe.Z.questionTitleEditorWrap},ee.createElement(st.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(St.h,{scrollId:"name",watch:!0,height:140,placeholder:At,showNullButton:!0,onCMBeforeChange:(Xt,zn)=>{ct(Xt,zn,It,bn)}}))),ee.createElement(st.default.List,{name:Zt,rules:[{validator(Xt,zn){if(!(zn!=null&&zn.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ot of zn){const{answer_text:jn}=Ot||{};if(jn!=null&&jn.some(cr=>(cr==null?void 0:cr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Xt,{add:zn,remove:Ot},{errors:jn})=>(sn.current=zn,wn.current=Ot,ee.createElement(ee.Fragment,null,ee.createElement(st.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Xt!=null&&Xt.length)&&ee.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Xt.map((cr,it)=>{var _e=cr,{key:Re,name:Xe}=_e,lt=qe(_e,["key","name"]),Be,bt;return ee.createElement("div",{style:{marginBottom:10},key:Re},ee.createElement(Ie.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(ke.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Fe.Z.blankIndex}`},"\u586B\u7A7A\u9879",it+1),ee.createElement(st.default.Item,nt(We({},lt),{name:[Xe,"model"],noStyle:!0}),ee.createElement(Qe.ZP.Group,{onChange:()=>{const Wt=Ht.getFieldValue(Zt);Ht.setFieldsValue({[Zt]:Wt.map((yn,On)=>nt(We({},yn),{answer_text:Xe===On?[""]:yn.answer_text}))})}},ee.createElement(Qe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",ee.createElement(Te.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},ee.createElement(Dt.Z,null))),ee.createElement(Qe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",ee.createElement(Te.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},ee.createElement(Dt.Z,null)))))),ee.createElement(Ie.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(ke.Z,{flex:1},ee.createElement(Ie.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(ke.Z,{flex:1},ee.createElement(st.default.Item,nt(We({},lt),{name:[Xe,"answer_text"],noStyle:!0}),((bt=(Be=Ht.getFieldValue(Zt))==null?void 0:Be[Xe])==null?void 0:bt.model)===1?ee.createElement(ot,null):ee.createElement(mt,null))),Qt&&ee.createElement(ke.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(st.default.Item,nt(We({},lt),{name:[Xe,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Fe.Z.blankInputNumberWrapper}),ee.createElement(Ue.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(st.default.Item,nt(We({},lt),{name:[Xe,"position"],noStyle:!0}),ee.createElement(Ve.default,{type:"hidden"})))))})))),ee.createElement(Ie.Z,{align:"middle"},ee.createElement(st.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(ze.Z,null)),ee.createElement(ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ee.createElement(Ie.Z,{align:"middle"},ee.createElement(st.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(ze.Z,null)),ee.createElement(ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(_n==null?void 0:_n.length)>1&&ee.createElement(Ie.Z,{align:"middle",className:(_n==null?void 0:_n.length)>1?"mb30":`${Fe.Z.hide}`},ee.createElement(st.default.Item,{name:"is_ordered"},ee.createElement(at,null)),ee.createElement(ke.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),ee.createElement("div",{onClick:()=>Nt(!0)},ee.createElement(st.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(St.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ln}))))}},69734:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Pe=ae(77019),Ie=ae(5269),ke=ae(28284),Ve=ae(64745),Te=ae(13878),ze=ae(59301),st=Object.defineProperty,Qe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Fe=(be,Ae,De)=>Ae in be?st(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:De}):be[Ae]=De,te=(be,Ae)=>{for(var De in Ae||(Ae={}))$e.call(Ae,De)&&Fe(be,De,Ae[De]);if(St)for(var De of St(Ae))Dt.call(Ae,De)&&Fe(be,De,Ae[De]);return be},ee=(be,Ae)=>Qe(be,Ue(Ae)),he=(be,Ae)=>{var De={};for(var We in be)$e.call(be,We)&&Ae.indexOf(We)<0&&(De[We]=be[We]);if(be!=null&&St)for(var We of St(be))Ae.indexOf(We)<0&&Dt.call(be,We)&&(De[We]=be[We]);return De};const ue={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fe=({value:be,onChange:Ae,form:De})=>{const We=(be==null?void 0:be.is_answer)===1,nt=be==null?void 0:be.choice_text,qe=()=>{const ot=De.getFieldsValue().choices.map(mt=>({choice_text:mt.choice_text,is_answer:0}));De.setFieldsValue({choices:ot}),Ae(ee(te({},be),{is_answer:1}))};return ze.createElement(Pe.Z,{className:Ve.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ze.createElement(Ie.Z,{onClick:qe,className:`${Ve.Z.choiceIndex} ${Ve.Z.judgementIndex} ${We?Ve.Z.activeAnswer:""}`},ue[nt]),ze.createElement(Ie.Z,{flex:1,className:`${Ve.Z.editorWrap} ml15`},ze.createElement("div",{className:`${Ve.Z.inputBorder} ${Ve.Z.placeholder} ${We?Ve.Z.activeJudgementAnswer:""}`},nt)),ze.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},ze.createElement("div",{onClick:qe,className:`${Ve.Z.setAnswerBtn} ${We?Ve.Z.activeAnswer:""}`},We?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},me=({questionTitlePlaceholder:be,choiceKey:Ae,form:De})=>{const[We,nt]=(0,oe.useState)(!1);return ze.createElement("div",{className:Ve.Z.wrap},ze.createElement("div",{className:Ve.Z.questionTitleEditorWrap},ze.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ze.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:be}))),ze.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ze.createElement(ke.default.List,{name:"choices",rules:[{validator(qe,ot){return ot.some(at=>(at==null?void 0:at.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},qe=>ze.createElement("div",{id:"choices"},qe.map(ot=>{var mt=ot,{key:at,name:vt}=mt,wt=he(mt,["key","name"]);return ze.createElement(ke.default.Item,ee(te({},wt),{key:at,name:vt,noStyle:!0}),ze.createElement(fe,{form:De}))})))),ze.createElement("div",{onClick:()=>nt(!0)},ze.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ze.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:We}))))}},13878:function(Ze,Ee,ae){"use strict";ae.d(Ee,{h:function(){return te},x:function(){return ee}});var oe=ae(19565),Pe=ae(64745),Ie=ae(79074),ke=ae(59301),Ve=Object.defineProperty,Te=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,St=(he,ue,fe)=>ue in he?Ve(he,ue,{enumerable:!0,configurable:!0,writable:!0,value:fe}):he[ue]=fe,$e=(he,ue)=>{for(var fe in ue||(ue={}))Qe.call(ue,fe)&&St(he,fe,ue[fe]);if(st)for(var fe of st(ue))Ue.call(ue,fe)&&St(he,fe,ue[fe]);return he},Dt=(he,ue)=>Te(he,ze(ue)),Fe=(he,ue)=>{var fe={};for(var me in he)Qe.call(he,me)&&ue.indexOf(me)<0&&(fe[me]=he[me]);if(he!=null&&st)for(var me of st(he))ue.indexOf(me)<0&&Ue.call(he,me)&&(fe[me]=he[me]);return fe};const te=he=>{var ue=he,{value:fe,onChange:me,scrollId:be}=ue,Ae=Fe(ue,["value","onChange","scrollId"]);return ke.createElement("div",{id:be||""},ke.createElement(oe.Z,Dt($e({},Ae),{defaultValue:fe,onChange:(De,We)=>{We!=null&&We.length?me(De,We):me(De)}})))},ee=({value:he,onChange:ue,placeholder:fe,height:me=140,isEdit:be,miniToolbar:Ae,watch:De=!0})=>be?ke.createElement(oe.Z,{watch:De,isFocus:!0,height:me||void 0,placeholder:fe,defaultValue:he,onChange:ue,miniToolbar:Ae}):ke.createElement("div",{style:{cursor:"pointer"}},he?ke.createElement(Ie.Z,{className:Pe.Z.inputBorder,value:he}):ke.createElement("div",{className:`${Pe.Z.inputBorder} ${Pe.Z.placeholder} inputBorderError`},fe))},92778:function(Ze,Ee,ae){"use strict";ae.d(Ee,{W:function(){return mt}});var oe=ae(59301),Pe=ae(6767),Ie=ae(96599),ke=ae(28284),Ve=ae(71411),Te=ae(77019),ze=ae(5269),st=ae(25399),Qe=ae(37568),Ue=ae(71051),St=ae(64745),$e=ae(13878),Dt=ae(19565),Fe=ae(61485),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,be=(at,vt,wt)=>vt in at?te(at,vt,{enumerable:!0,configurable:!0,writable:!0,value:wt}):at[vt]=wt,Ae=(at,vt)=>{for(var wt in vt||(vt={}))fe.call(vt,wt)&&be(at,wt,vt[wt]);if(ue)for(var wt of ue(vt))me.call(vt,wt)&&be(at,wt,vt[wt]);return at},De=(at,vt)=>ee(at,he(vt)),We=(at,vt)=>{var wt={};for(var At in at)fe.call(at,At)&&vt.indexOf(At)<0&&(wt[At]=at[At]);if(at!=null&&ue)for(var At of ue(at))vt.indexOf(At)<0&&me.call(at,At)&&(wt[At]=at[At]);return wt};const nt=at=>{var vt=at,{value:wt,onChange:At}=vt,Ht=We(vt,["value","onChange"]);const Qt=Zt=>{At([Zt])};return oe.createElement(Dt.Z,De(Ae({},Ht),{defaultValue:wt==null?void 0:wt[0],onChange:Qt}))},qe=at=>{if(!at)return!1;if(/^s*$/.test(at)||at.trim()===""){Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let vt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return at==="|"?(Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ot=({value:at=[],onClose:vt})=>oe.createElement(Ie.default,{closable:!0,onClose:vt,className:St.Z.keywordTag},oe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},at.join(" \u6216 "))),mt=({questionTitlePlaceholder:at,form:vt,showKeywords:wt,isMustKeyWords:At=wt})=>{const[Ht,Qt]=(0,oe.useState)(!1),[Zt,ln]=(0,oe.useState)(""),Nt=ke.default.useWatch("use_keywords",vt),gt=ke.default.useWatch("question_score",vt);return oe.createElement("div",{className:St.Z.wrap},oe.createElement("div",{className:St.Z.questionTitleEditorWrap},oe.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},oe.createElement($e.h,{scrollId:"name",watch:!0,height:140,placeholder:at}))),oe.createElement(ke.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},oe.createElement(nt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),wt&&!At&&oe.createElement(ke.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},oe.createElement(Ve.Z,{defaultChecked:!0})),wt&&At&&oe.createElement(Te.Z,{align:"middle",className:"mb30"},oe.createElement(ke.default.Item,{name:"use_keywords",valuePropName:"checked"},oe.createElement(Ve.Z,null)),oe.createElement(ze.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),oe.createElement(ze.Z,null,oe.createElement(st.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},oe.createElement(Fe.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Nt||!At)&&oe.createElement(ke.default.List,{name:"keywords",rules:[{validator(ct,Jt){return At?Jt!=null&&Jt.length?(Jt==null?void 0:Jt.reduce((It,wn)=>It+wn.score,0))>parseFloat(gt)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(ct,{add:Jt,remove:sn})=>oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${St.Z.title} mb10`},At?"\u5173\u952E\u8BCD":oe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),oe.createElement(Te.Z,{align:"middle",className:"font14 mb30"},oe.createElement(ze.Z,{flex:1},oe.createElement(Qe.default,{value:Zt,onChange:It=>{ln(It.target.value)},maxLength:50,allowClear:!0,onPressEnter:It=>{var wn,bn,_n,Xt;const zn=`${(wn=It.target)==null?void 0:wn.value}`,Ot=(_n=(bn=zn==null?void 0:zn.split("|"))==null?void 0:bn.filter(it=>!!it))==null?void 0:_n.map(it=>it==null?void 0:it.trim()),jn=vt.getFieldValue("keywords"),cr=((Xt=jn==null?void 0:jn.map(it=>it==null?void 0:it.keyword))==null?void 0:Xt.flat())||[];for(const it of Ot)if(cr.includes(it)){Pe.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}qe(zn)&&(Jt({keyword:Ot,score:1}),ln(""))},className:St.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),oe.createElement(ze.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ct.map(It=>{var wn=It,{key:bn,name:_n}=wn,Xt=We(wn,["key","name"]);return oe.createElement(Te.Z,{key:bn,className:"mb20",style:{marginRight:148}},oe.createElement(ze.Z,{flex:1},oe.createElement(Te.Z,{align:"middle",justify:"space-between"},oe.createElement(ke.default.Item,De(Ae({},Xt),{name:[_n,"keyword"]}),oe.createElement(ot,{onClose:()=>sn(_n)})),At&&oe.createElement(ke.default.Item,De(Ae({},Xt),{name:[_n,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:St.Z.blankInputNumberWrapper}),oe.createElement(Ue.Z,{className:St.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),oe.createElement("div",{onClick:()=>Qt(!0)},oe.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},oe.createElement($e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ht}))))}},45142:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ve}});var oe={text:"text___bQulM",sup:"sup___rX_Y3"},Pe=ae(28284),Ie=ae(59301),Ve=({text:Te,name:ze="question_score"})=>{const st=({value:Qe})=>Ie.createElement("div",{className:oe.text},Ie.createElement("span",{className:oe.sup},"*"),Ie.createElement("span",{className:"mr10"},"\u5206\u503C"),Ie.createElement("span",null,Qe||"--"),Ie.createElement("span",{className:"c-grey-999"},Te));return Ie.createElement(Pe.default.Item,{noStyle:!0,name:ze},Ie.createElement(st,null))}},79074:function(Ze,Ee,ae){"use strict";ae.d(Ee,{z:function(){return We},Z:function(){return nt}});var oe=ae(59301),Pe=ae(53122),Ie=ae(49405),ke=ae(64018),Ve=ae(79710),Te=ae(12242),ze=ae(59895),st=ae(15342),Qe=ae(1012),Ue=ae(6311),St=ae(59301),Dt=({html:qe})=>{const ot=(0,oe.useRef)(null),mt=(0,oe.useRef)(null),at=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 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,oe.useEffect)(()=>{const vt=ot.current.attachShadow({mode:"open"});mt.current=document.createElement("div"),mt.current.className="markdown-body",mt.current.innerHTML=qe,vt.appendChild(mt.current);const wt=document.createElement("style");return wt.textContent=at,vt.appendChild(wt),()=>{vt.innerHTML=""}},[]),(0,oe.useEffect)(()=>{mt.current&&(mt.current.innerHTML=qe)},[qe]),St.createElement("div",{ref:ot})},Fe=Object.defineProperty,te=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ue=(qe,ot,mt)=>ot in qe?Fe(qe,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):qe[ot]=mt,fe=(qe,ot)=>{for(var mt in ot||(ot={}))ee.call(ot,mt)&&ue(qe,mt,ot[mt]);if(te)for(var mt of te(ot))he.call(ot,mt)&&ue(qe,mt,ot[mt]);return qe};const me="@\u2581\u2581@",be="@\u2581@",Ae=/<pre[^>]*>/g;function De(qe){let ot=document.createElement("div");return ot.innerHTML=qe,ot.childNodes.length===0?"":ot.childNodes[0].nodeValue}const We=(qe,ot)=>{qe=qe||"";const mt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,at=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,vt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,wt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ot?qe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(mt,(At,Ht,Qt,Zt,ln,Nt,gt)=>{const ct=Ht||Zt||Nt,Jt=Qt||ln||gt||"?";return Te.Z.API_SERVER+"/api/attachments/"+ct+Jt+"&t="+(0,ze.Jn)(ct,Date.now())+(At.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(qe=qe.replace(wt,(At,Ht,Qt,Zt,ln,Nt,gt)=>{const ct=Ht||Zt||Nt,Jt=Qt||ln||gt||"?";return Te.Z.API_SERVER+"/attachments/download/"+ct+Jt+"&t="+(0,ze.Jn)(ct,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(mt,(At,Ht,Qt,Zt,ln,Nt,gt)=>{const ct=Ht||Zt||Nt,Jt=Qt||ln||gt||"?";return Te.Z.API_SERVER+"/api/attachments/"+ct+Jt+"&t="+(0,ze.Jn)(ct,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(at,(At,Ht,Qt,Zt,ln)=>{const Nt=Ht||Zt,gt=Qt||ln||"";return'"'+Te.Z.API_SERVER+"/api/attachments/"+Nt+gt+Nt+gt+"&t="+(0,ze.Jn)(Nt,Date.now())}).replace(vt,(At,Ht,Qt,Zt,ln)=>{const Nt=Ht||Zt,gt=Qt||ln||"";return"("+Te.Z.API_SERVER+"/files/uploads/"+Nt+gt+Nt+gt+"&t="+(0,ze.Jn)(Nt,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,`
`),qe)};var nt=({value:qe="",className:ot,showTextOnly:mt,showLines:at,style:vt={},stylesPrev:wt={},highlightKeywords:At,showProgramFill:Ht,isProgramFill:Qt,disabledFill:Zt=!1,programFillValue:ln,onFillChange:Nt=Jt=>{},onFillBlur:gt=()=>{},onFillFocus:ct=()=>{}})=>{let Jt=String(qe);const[sn,It]=(0,oe.useState)(""),[wn,bn]=(0,oe.useState)("office"),[_n,Xt]=(0,oe.useState)([]),zn=(0,oe.useRef)("a"+(0,Qe.Z)()),Ot={},jn=(Pt,Vt,zt)=>{const pn=document.createElement(Pt===be?"input":"textarea");pn.style.width="100%",pn.style.height=Pt===be?"40px":"151px",pn.rows=5,pn.spellcheck=!1,pn.name="edu-program-fill",pn.placeholder="\u8BF7\u8F93\u5165",pn.dataset.id=Vt;const Tn=Object.keys(Ot).length;return Ot[Tn]=pn,`<span class="edu-program-fill-wrap ${Pt===be?"":"show"}" style="width:${Pt===be?"400px":"100%"}" title=${zt||""}><span>${pn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function cr(Pt){return Pt=Pt.replace(/!\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(/\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Pt=Pt.replace(/<embed.*?>/g,""),Pt=Pt.replace(/<img.*?>/g,""),Pt=Pt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Pt=Pt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Pt=Pt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Pt=Pt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Pt}const it=Pt=>Pt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Vt,zt){let pn=zt.replace(/(\n|\r)/g,"").split("}"),Tn=[];return pn.map(gn=>{gn!=""&&Tn.push(`.${zn.current} ${gn}`)}),`<style>${Tn.join("}")}</style>`}),_e=(0,oe.useMemo)(()=>{try{const pn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Tn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,gn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Mt=/\(\/attachments\/download\//g;Jt=Jt.replace(Mt,"("+Te.Z.API_SERVER+"/attachments/download/").replace(pn,"("+Te.Z.API_SERVER+"/api/attachments/").replace(Tn,'"'+Te.Z.API_SERVER+"/api/attachments/").replace(gn,'"'+Te.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(pn){}if(Ht){let pn=-1;return Jt=Jt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Tn,gn,Mt){var Un;return++pn,jn(Tn,pn,(Un=ln==null?void 0:ln[pn])==null?void 0:Un.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${it(Jt||"")}</pre>`}let Pt=it(Jt);Pt=(0,Ie.ZP)(Pt);const Vt=(0,Ie.ez)();Jt.match(/\[TOC\]/)&&(Pt=Pt.replace("<p>[TOC]</p>",(0,Ie.Qv)()),(0,Ie.Iy)()),Pt=Pt.replace(/(__special_katext_id_\d+__)/g,(pn,Tn)=>{const{type:gn,expression:Mt}=Vt[Tn];return(0,st.renderToString)(De(Mt)||"",{displayMode:gn==="block",throwOnError:!1,output:"html"})}),Pt=Pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ie.AL)();const zt=document.createElement("div");if(zt.innerHTML=Pt,mt)return zt.innerText;if(At){const pn=At.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Be(zt,pn),zt.innerHTML}return setTimeout(()=>yn(),500),zt.innerHTML},[Jt,At]);(0,oe.useEffect)(()=>{bt.current&&bt.current.querySelectorAll(["input","textarea"]).forEach(Vt=>{Vt.oninput=Re,Vt.onblur=Xe,Vt.onfocus=lt})},[_n]),(0,oe.useEffect)(()=>{var Pt,Vt,zt,pn,Tn;if(ln!=null&&ln.length)try{const gn=bt.current.querySelectorAll(".edu-program-fill-score"),Mt=bt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Un,Yt]of Mt.entries())Yt.value=((Pt=ln==null?void 0:ln[Un])==null?void 0:Pt.value)||"",((Vt=ln==null?void 0:ln[Un])==null?void 0:Vt.type)==="warning"?Yt.className="program-fill-warning":((zt=ln==null?void 0:ln[Un])==null?void 0:zt.type)==="success"?Yt.className="program-fill-success":Yt.className="";for(const[Un,Yt]of gn.entries())Yt.innerHTML=(pn=ln==null?void 0:ln[Un])!=null&&pn.score?`${(Tn=ln==null?void 0:ln[Un])==null?void 0:Tn.score}\u5206`:"";Xt(ln)}catch(gn){console.log(gn,"error")}},[ln]);const Re=Pt=>{_n[Pt.target.dataset.id]=_n[Pt.target.dataset.id]||{},_n[Pt.target.dataset.id].value=Pt.target.value,Xt([..._n]),Nt(_n,Pt.target.dataset.id)},Xe=Pt=>{_n[Pt.target.dataset.id]=_n[Pt.target.dataset.id]||{},_n[Pt.target.dataset.id].value=Pt.target.value,Xt([..._n]),gt(_n,Pt.target.dataset.id)},lt=Pt=>{_n[Pt.target.dataset.id]=_n[Pt.target.dataset.id]||{},_n[Pt.target.dataset.id].value=Pt.target.value,Xt([..._n]),ct(_n,Pt.target.dataset.id)};function Be(Pt,Vt){return Pt.childNodes.forEach(zt=>{var pn;if(zt.childNodes.length>0)Be(zt,Vt);else if(zt.nodeName!=="IMG")if(zt.innerHTML)zt.innerHTML=(pn=zt.innerHTML)==null?void 0:pn.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Tn=document.createElement("span");Tn.innerHTML=zt.textContent.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),zt.replaceWith(Tn)}})}const bt=(0,oe.useRef)();Ie.jb.WebkitLineClamp=at,at&&(vt=fe(fe({},vt),Ie.jb));function Wt(Pt){let Vt=Pt.target;if(Vt.tagName.toUpperCase()==="A"){let zt=Vt.getAttribute("href");if(zt.indexOf("office")>-1)Pt.preventDefault(),It(zt),bn("office");else if(zt.indexOf("application/pdf")>-1)Pt.preventDefault(),It(zt),bn("pdf");else if(zt.indexOf("text/html")>-1)Pt.preventDefault(),It(zt),bn("html");else if(zt.startsWith("#")){Pt.preventDefault();let pn=document.getElementById(zt.replace("#",""));pn&&pn.scrollIntoView(!0)}}}const yn=()=>{var Pt;const Vt=(Pt=bt.current)==null?void 0:Pt.querySelectorAll("video");Vt==null||Vt.forEach(zt=>{if(zt.oncontextmenu=()=>!1,zt.src.indexOf(".m3u8")>-1&&!zt.canPlayType("application/vnd.apple.mpegurl")){if(Ve.ZP.isSupported()){var pn=new Ve.ZP;pn.loadSource(zt.src),pn.attachMedia(zt)}}})};(0,oe.useEffect)(()=>{if(bt.current&&_e&&_e.match(Ae)&&window.PR.prettyPrint(),bt.current)return bt.current.addEventListener("click",Wt),()=>{var Pt;(Pt=bt.current)==null||Pt.removeEventListener("click",Wt),(0,Ie.AL)(),(0,Ie.Iy)()}},[_e,bt.current,Wt]),(0,oe.useEffect)(()=>{var Pt;const Vt=zt=>{zt.preventDefault(),zt.clipboardData.setData("text",window.getSelection().toString())};return(Pt=bt.current)==null||Pt.addEventListener("copy",Vt),()=>{var zt;(zt=bt.current)==null||zt.removeEventListener("copy",Vt)}},[bt.current]);const On=Pt=>/<style[\s\S]*?>/i.test(Pt||"");return oe.createElement(oe.Fragment,null,mt&&oe.createElement("div",{ref:bt},_e),!mt&&!On(_e)&&oe.createElement("div",{ref:bt,style:fe({},vt),className:`${ot||""} ${Zt?"disabled-fill":""} markdown-body ${zn.current}`,dangerouslySetInnerHTML:{__html:_e}}),!mt&&On(_e)&&oe.createElement(Dt,{html:_e}),oe.createElement(Ue.Z,{close:!0,data:sn,type:sn!=null&&sn.length?wn:"",style:fe({},wt),onClose:()=>It("")}))}},77531:function(Ze,Ee,ae){"use strict";ae.d(Ee,{h:function(){return be}});var oe=ae(59301),Pe=ae(82326),Ie=ae(28284),ke=ae(99571),Ve=ae(89780),Te=ae.n(Ve),ze=ae(88540),st=ae(42271),Qe=Object.defineProperty,Ue=Object.defineProperties,St=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,te=(Ae,De,We)=>De in Ae?Qe(Ae,De,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ae[De]=We,ee=(Ae,De)=>{for(var We in De||(De={}))Dt.call(De,We)&&te(Ae,We,De[We]);if($e)for(var We of $e(De))Fe.call(De,We)&&te(Ae,We,De[We]);return Ae},he=(Ae,De)=>Ue(Ae,St(De));const ue=Pe.default.Option,fe={labelCol:{span:4},wrapperCol:{span:20}},me={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"]};Ee.Z=({callback:Ae,onCancel:De})=>{const[We,nt]=(0,oe.useState)("python");function qe(mt){nt(me[mt][1])}function ot(mt){Ae(mt)}return oe.createElement(Ie.default,he(ee({},fe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ot,style:{width:500}}),oe.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(Pe.default,{getPopupContainer:mt=>mt.parentNode,onChange:qe},Object.keys(me).map(mt=>oe.createElement(ue,{key:mt,value:mt},me[mt][0])))),oe.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(be,{mode:We})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(ke.ZP,{type:"ghost",onClick:De},"\u53D6\u6D88")))};function be({value:Ae,onChange:De,mode:We,options:nt={}}){const qe=(0,oe.useRef)(),[ot,mt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(ot){let at=function(vt){const wt=vt.getValue();De&&De(wt)};return ot.on("change",at),()=>{ot.off("change",at)}}},[ot,De]),(0,oe.useEffect)(()=>{ot&&ot.setOption("mode",We)},[ot,We]),(0,oe.useEffect)(()=>{ot&&(Ae!==ot.getValue()||Ae==="")&&setTimeout(()=>{ot.setValue(Ae||"")},300)},[ot,Ae]),(0,oe.useEffect)(()=>{if(qe.current&&!ot){const at=Te().fromTextArea(qe.current,ee({mode:We,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},nt));mt(at)}},[qe.current,ot]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:qe}))}},19565:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Fr}});var oe=ae(59301),Pe=ae(89780),Ie=ae.n(Pe),ke=ae(76374),Ve=ae(88540),Te=ae(6313),ze=ae(25717),st=ae(99498),Qe=ae(25419),Ue=ae(67549),St=ae(79074),$e=({value:dn="",className:hn,showTextOnly:un,showLines:Ur,style:Tr={}})=>{const Zr=(0,oe.useMemo)(()=>"",[dn]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:Zr}}))},Dt=ae(59301),Fe=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=(dn,hn,un)=>hn in dn?Fe(dn,hn,{enumerable:!0,configurable:!0,writable:!0,value:un}):dn[hn]=un,be=(dn,hn)=>{for(var un in hn||(hn={}))ue.call(hn,un)&&me(dn,un,hn[un]);if(he)for(var un of he(hn))fe.call(hn,un)&&me(dn,un,hn[un]);return dn},Ae=(dn,hn)=>te(dn,ee(hn));let De=[{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 We({onActionCallback:dn,title:hn,icon:un,actionName:Ur,className:Tr="",children:Zr}){function sr(){dn(Ur)}return Dt.createElement("a",{title:hn,className:Tr,onClick:sr},Dt.createElement("i",{className:`${un}`}),Zr)}var nt=({watch:dn,showNullButton:hn,showNullProgramButton:un,onActionCallback:Ur,fullScreen:Tr,insertTemp:Zr,hidetoolBar:sr,extraUse:Rr})=>{const Cn=[...De,{title:`${dn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${dn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Dt.createElement("ul",{className:"markdown-toolbar-container"},!sr&&Cn.map((fn,Wr)=>Dt.createElement("li",{key:Wr},fn.actionName?Dt.createElement(We,Ae(be({},fn),{onActionCallback:Ur})):Dt.createElement("span",{className:"v-line"}))),hn?Dt.createElement("li",null,Dt.createElement(We,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ur},Dt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,un?Dt.createElement(Dt.Fragment,null,Dt.createElement("li",null,Dt.createElement(We,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ur},Dt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Dt.createElement("li",null,Dt.createElement(We,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ur},Dt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Zr&&Dt.createElement("li",null,Dt.createElement(We,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Zr}`,onActionCallback:Ur},Dt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rr&&Dt.createElement("li",null,Rr),Dt.createElement("li",{className:"btn-full-screen"},Dt.createElement(We,{icon:`${Tr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Tr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ur})))},qe=ae(52272),ot=ae(28284),mt=ae(37568),at=ae(99571),vt=Object.defineProperty,wt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,ln=(dn,hn,un)=>hn in dn?vt(dn,hn,{enumerable:!0,configurable:!0,writable:!0,value:un}):dn[hn]=un,Nt=(dn,hn)=>{for(var un in hn||(hn={}))Qt.call(hn,un)&&ln(dn,un,hn[un]);if(Ht)for(var un of Ht(hn))Zt.call(hn,un)&&ln(dn,un,hn[un]);return dn},gt=(dn,hn)=>wt(dn,At(hn));const ct={labelCol:{span:4},wrapperCol:{span:20}};var Jt=({callback:dn,onCancel:hn})=>{function un(Ur){dn(Ur)}return oe.createElement(ot.default,gt(Nt({},ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:un,style:{width:500}}),oe.createElement(ot.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(mt.default,null)),oe.createElement(ot.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(mt.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(at.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},sn=ae(77531),It=ae(24141),wn=ae(62957),bn=ae(77019),_n=ae(25138),Xt=ae(59301),zn=({callback:dn,onCancel:hn})=>{const un=document.createElement("canvas"),Ur=un.getContext("2d");un.width=1e3,un.height=800,Ur.fillStyle="#ffffff",Ur.fillRect(0,0,un.width,un.height);const Tr=un.toDataURL("image/png");return Xt.createElement(wn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xt.createElement(bn.Z,{style:{height:"100vh"}},Xt.createElement(_n.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Tr,visible:!0,title:String(Date.now())},onOk:Zr=>{dn({src:Zr.url})},onClose:hn})))},Ot=ae(12378);function jn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(jn,go.CommandHandler),jn.prototype.canAlignSelection=function(){var dn=this.diagram;return!(dn===null||dn.isReadOnly||dn.isModelReadOnly||dn.selection.count<2)},jn.prototype.alignLeft=function(){var dn=this.diagram;dn.startTransaction("aligning left");var hn=1/0;dn.selection.each(function(un){un instanceof go.Link||(hn=Math.min(un.position.x,hn))}),dn.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(hn,un.position.y))}),dn.commitTransaction("aligning left")},jn.prototype.alignRight=function(){var dn=this.diagram;dn.startTransaction("aligning right");var hn=-1/0;dn.selection.each(function(un){if(!(un instanceof go.Link)){var Ur=un.actualBounds.x+un.actualBounds.width;hn=Math.max(Ur,hn)}}),dn.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(hn-un.actualBounds.width,un.position.y))}),dn.commitTransaction("aligning right")},jn.prototype.alignTop=function(){var dn=this.diagram;dn.startTransaction("alignTop");var hn=1/0;dn.selection.each(function(un){un instanceof go.Link||(hn=Math.min(un.position.y,hn))}),dn.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(un.position.x,hn))}),dn.commitTransaction("alignTop")},jn.prototype.alignBottom=function(){var dn=this.diagram;dn.startTransaction("aligning bottom");var hn=-1/0;dn.selection.each(function(un){if(!(un instanceof go.Link)){var Ur=un.actualBounds.y+un.actualBounds.height;hn=Math.max(Ur,hn)}}),dn.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(un.actualBounds.x,hn-un.actualBounds.height))}),dn.commitTransaction("aligning bottom")},jn.prototype.alignCenterX=function(){var dn=this.diagram,hn=dn.selection.first();if(hn){dn.startTransaction("aligning Center X");var un=hn.actualBounds.x+hn.actualBounds.width/2;dn.selection.each(function(Ur){Ur instanceof go.Link||Ur.move(new go.Point(un-Ur.actualBounds.width/2,Ur.actualBounds.y))}),dn.commitTransaction("aligning Center X")}},jn.prototype.alignCenterY=function(){var dn=this.diagram,hn=dn.selection.first();if(hn){dn.startTransaction("aligning Center Y");var un=hn.actualBounds.y+hn.actualBounds.height/2;dn.selection.each(function(Ur){Ur instanceof go.Link||Ur.move(new go.Point(Ur.actualBounds.x,un-Ur.actualBounds.height/2))}),dn.commitTransaction("aligning Center Y")}},jn.prototype.alignColumn=function(dn){var hn=this.diagram;hn.startTransaction("align Column"),dn===void 0&&(dn=0),dn=parseFloat(dn);var un=new Array;hn.selection.each(function(Rr){Rr instanceof go.Link||un.push(Rr)});for(var Ur=0;Ur<un.length-1;Ur++){var Tr=un[Ur],Zr=Tr.actualBounds.y+Tr.actualBounds.height+dn,sr=un[Ur+1];sr.move(new go.Point(Tr.actualBounds.x,Zr))}hn.commitTransaction("align Column")},jn.prototype.alignRow=function(dn){dn===void 0&&(dn=0),dn=parseFloat(dn);var hn=this.diagram;hn.startTransaction("align Row");var un=new Array;hn.selection.each(function(Rr){Rr instanceof go.Link||un.push(Rr)});for(var Ur=0;Ur<un.length-1;Ur++){var Tr=un[Ur],Zr=Tr.actualBounds.x+Tr.actualBounds.width+dn,sr=un[Ur+1];sr.move(new go.Point(Zr,Tr.actualBounds.y))}hn.commitTransaction("align Row")},jn.prototype.canRotate=function(dn){var hn=this.diagram;return!(hn===null||hn.isReadOnly||hn.isModelReadOnly||hn.selection.count<1)},jn.prototype.rotate=function(dn){dn===void 0&&(dn=90);var hn=this.diagram;hn.startTransaction("rotate "+dn.toString());var hn=this.diagram;hn.selection.each(function(un){un instanceof go.Link||un instanceof go.Group||(un.angle+=dn)}),hn.commitTransaction("rotate "+dn.toString())},jn.prototype.pullToFront=function(){var dn=this.diagram;dn.startTransaction("pullToFront");var hn=new go.Map;dn.selection.each(function(un){hn.set(un.layer,0)}),hn.iteratorKeys.each(function(un){var Ur=0;un.parts.each(function(Tr){if(!Tr.isSelected){var Zr=Tr.zOrder;isNaN(Zr)?Tr.zOrder=0:Ur=Math.max(Ur,Zr)}}),hn.set(un,Ur)}),dn.selection.each(function(un){jn._assignZOrder(un,hn.get(un.layer)+1)}),dn.commitTransaction("pullToFront")},jn.prototype.pushToBack=function(){var dn=this.diagram;dn.startTransaction("pushToBack");var hn=new go.Map;dn.selection.each(function(un){hn.set(un.layer,0)}),hn.iteratorKeys.each(function(un){var Ur=0;un.parts.each(function(Tr){if(!Tr.isSelected){var Zr=Tr.zOrder;isNaN(Zr)?Tr.zOrder=0:Ur=Math.min(Ur,Zr)}}),hn.set(un,Ur)}),dn.selection.each(function(un){jn._assignZOrder(un,hn.get(un.layer)-1-jn._findGroupDepth(un))}),dn.commitTransaction("pushToBack")},jn._assignZOrder=function(dn,hn,un){un===void 0&&(un=dn),dn.layer===un.layer&&(dn.zOrder=hn),dn instanceof go.Group&&dn.memberParts.each(function(Ur){jn._assignZOrder(Ur,hn+1,un)})},jn._findGroupDepth=function(dn){if(dn instanceof go.Group){var hn=0;return dn.memberParts.each(function(un){hn=Math.max(hn,jn._findGroupDepth(un))}),hn+1}else return 0},jn.prototype.doKeyDown=function(){var dn=this.diagram;if(dn!==null){var hn=dn.lastInput;if(hn.key==="Up"||hn.key==="Down"||hn.key==="Left"||hn.key==="Right"){var un=this.arrowKeyBehavior;if(un==="none")return;if(un==="select"){this._arrowKeySelect();return}else if(un==="move"){this._arrowKeyMove();return}else if(un==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},jn.prototype._getAllParts=function(){var dn=new Array;return this.diagram.nodes.each(function(hn){dn.push(hn)}),this.diagram.parts.each(function(hn){dn.push(hn)}),dn},jn.prototype._arrowKeyMove=function(){var dn=this.diagram,hn=dn.lastInput,un=0,Ur=0;if(hn.control||hn.meta)un=1,Ur=1;else if(dn.grid!==null){var Tr=dn.grid.gridCellSize;Ur=Tr.width,un=Tr.height}dn.startTransaction("arrowKeyMove"),dn.selection.each(function(Zr){hn.key==="Up"?Zr.move(new go.Point(Zr.actualBounds.x,Zr.actualBounds.y-un)):hn.key==="Down"?Zr.move(new go.Point(Zr.actualBounds.x,Zr.actualBounds.y+un)):hn.key==="Left"?Zr.move(new go.Point(Zr.actualBounds.x-Ur,Zr.actualBounds.y)):hn.key==="Right"&&Zr.move(new go.Point(Zr.actualBounds.x+Ur,Zr.actualBounds.y))}),dn.commitTransaction("arrowKeyMove")},jn.prototype._arrowKeySelect=function(){var dn=this.diagram,hn=dn.lastInput,un=null;hn.key==="Up"?un=this._findNearestPartTowards(270):hn.key==="Down"?un=this._findNearestPartTowards(90):hn.key==="Left"?un=this._findNearestPartTowards(180):hn.key==="Right"&&(un=this._findNearestPartTowards(0)),un!==null&&(hn.shift?un.isSelected=!0:hn.control||hn.meta?un.isSelected=!un.isSelected:dn.select(un))},jn.prototype._findNearestPartTowards=function(dn){var hn=this.diagram.selection.first();if(hn===null)return null;for(var un=hn.actualBounds.center,Ur=this._getAllParts(),Tr=1/0,Zr=hn,sr=0;sr<Ur.length;sr++){var Rr=Ur[sr];if(Rr!==hn&&Rr.canSelect()){var Cn=Rr.actualBounds.center,fn=un.directionPoint(Cn),Wr=this._angleCloseness(fn,dn);if(Wr<=45){var kt=un.distanceSquaredPoint(Cn);kt*=1+Math.sin(Wr*Math.PI/180),kt<Tr&&(Tr=kt,Zr=Rr)}}}return Zr},jn.prototype._angleCloseness=function(dn,hn){return Math.min(Math.abs(hn-dn),Math.min(Math.abs(hn+360-dn),Math.abs(hn-360-dn)))},jn.prototype._arrowKeyTree=function(){var dn=this.diagram,hn=dn.selection.first();if(hn instanceof go.Node){var un=dn.lastInput;if(un.key==="Right"){if(!hn.isTreeLeaf)if(!hn.isTreeExpanded)dn.commandHandler.canExpandTree(hn)&&dn.commandHandler.expandTree(hn);else{var Ur=this._sortTreeChildrenByY(hn).first();Ur!==null&&dn.select(Ur)}}else if(un.key==="Left")if(!hn.isTreeLeaf&&hn.isTreeExpanded)dn.commandHandler.canCollapseTree(hn)&&dn.commandHandler.collapseTree(hn);else{var Tr=hn.findTreeParentNode();Tr!==null&&dn.select(Tr)}else if(un.key==="Up"){var Tr=hn.findTreeParentNode();if(Tr!==null){var Zr=this._sortTreeChildrenByY(Tr),sr=Zr.indexOf(hn);if(sr>0){for(var Rr=Zr.elt(sr-1);Rr!==null&&Rr.isTreeExpanded&&!Rr.isTreeLeaf;){var Cn=this._sortTreeChildrenByY(Rr);Rr=Cn.last()}Rr!==null&&dn.select(Rr)}else dn.select(Tr)}}else if(un.key==="Down")if(hn.isTreeExpanded&&!hn.isTreeLeaf){var Ur=this._sortTreeChildrenByY(hn).first();Ur!==null&&dn.select(Ur)}else for(;hn!==null;){var Tr=hn.findTreeParentNode();if(Tr===null)break;var Zr=this._sortTreeChildrenByY(Tr),sr=Zr.indexOf(hn);if(sr<Zr.length-1){dn.select(Zr.elt(sr+1));break}else hn=Tr}var fn=dn.selection.first();fn!==null&&dn.scrollToRect(fn.actualBounds)}},jn.prototype._sortTreeChildrenByY=function(dn){var hn=new go.List().addAll(dn.findTreeChildrenNodes());return hn.sort(function(un,Ur){var Tr=un.location,Zr=Ur.location;return Tr.y<Zr.y?-1:Tr.y>Zr.y?1:Tr.x<Zr.x?-1:Tr.x>Zr.x?1:0}),hn},jn.prototype.copyToClipboard=function(dn){go.CommandHandler.prototype.copyToClipboard.call(this,dn),this._lastPasteOffset.set(this.pasteOffset)},jn.prototype.pasteFromClipboard=function(){var dn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(dn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),dn},Object.defineProperty(jn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(dn){if(dn!=="move"&&dn!=="select"&&dn!=="scroll"&&dn!=="tree"&&dn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+dn);this._arrowKeyBehavior=dn}}),Object.defineProperty(jn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(dn){if(!(dn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+dn);this._pasteOffset.set(dn)}});var cr=jn,it=ae(71584),_e=ae(5269),Re=ae(24092),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},lt=ae(69669),Be=ae(59301),bt=(dn,hn,un)=>new Promise((Ur,Tr)=>{var Zr=Cn=>{try{Rr(un.next(Cn))}catch(fn){Tr(fn)}},sr=Cn=>{try{Rr(un.throw(Cn))}catch(fn){Tr(fn)}},Rr=Cn=>Cn.done?Ur(Cn.value):Promise.resolve(Cn.value).then(Zr,sr);Rr((un=un.apply(dn,hn)).next())});function Wt({onCancel:dn,callback:hn}){let un=(0,oe.useRef)(),Ur=(0,oe.useRef)(),Tr=(0,oe.useRef)(),Zr=(0,oe.useRef)(!1);const sr=(0,oe.useRef)(!1),[Rr,Cn]=(0,oe.useState)(0);function fn(){const kt=Ot.bx.make,Gn={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"};un.current=new Ot.S0(Ur.current,{padding:20,grid:kt(Ot.s_,"Grid",kt(Ot.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),kt(Ot.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xr=>{var fi=Xr.diagram.commandHandler.addTopLevelParts(Xr.diagram.selection,!0);fi||Xr.diagram.currentTool.doCancel()},commandHandler:kt(cr),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Xr=>{var fi=Xr.subject;fi.location=fi.location.copy().snapToGridPoint(Xr.diagram.grid.gridOrigin,Xr.diagram.grid.gridCellSize),setTimeout(()=>{Xr.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Xr=>{var fi=Xr.subject;setTimeout(()=>{Xr.diagram.commandHandler.editTextBlock()})},LinkRelinked:Xr=>{var fi=Xr.parameter.part;fi.invalidateConnectedLinks();var wi=Xr.subject;Xr.diagram.toolManager.linkingTool.isForwards?wi.toNode.invalidateConnectedLinks():wi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),un.current.nodeTemplate=kt(Ot.NB,"Auto",{locationSpot:Ot.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ot.$u(120,60),minSize:new Ot.$u(40,40),resizable:!0,resizeCellSize:new Ot.$u(10,10),rotatable:!0},new Ot.KX("location","loc",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),new Ot.KX("desiredSize","size",Ot.$u.parse).makeTwoWay(Ot.$u.stringify),kt(Ot.bn,{name:"SHAPE",fill:Gn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ot.z6.AllSides,toSpot:Ot.z6.AllSides},new Ot.KX("figure"),new Ot.KX("fill"),new Ot.KX("stroke","borderColor"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),kt(Ot.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),kt(Ot.al,{margin:1,textAlign:"center",overflow:Ot.al.OverflowEllipsis,editable:!0},new Ot.KX("text").makeTwoWay(),new Ot.KX("stroke","color"))),un.current.nodeTemplate.toolTip=kt("ToolTip",kt(Ot.s_,"Vertical",{maxSize:new Ot.$u(200,NaN)},kt(Ot.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ot.KX("text")),kt(Ot.al,{font:"10pt sans-serif",textAlign:"center"},new Ot.KX("text","details"))));function vr(Xr,fi){var wi=(ai,Ni)=>{ai.handled=!0,ai.diagram.model.commit(Xi=>{var Vi=Ni.part.adornedPart,Bi=new Ot.E9().setRectSpot(Vi.actualBounds,Xr);Bi.subtract(Vi.location),Bi.scale(2,2),Bi.x+=Math.sign(Bi.x)*130,Bi.y+=Math.sign(Bi.y)*130,Bi.add(Vi.location),Bi.snapToGridPoint(ai.diagram.grid.gridOrigin,ai.diagram.grid.gridCellSize);var Hi=Xi.copyNodeData(Vi.data);Xi.setGroupKeyForNodeData(Hi,Xi.getGroupKeyForNodeData(Vi.data)),Xi.addNodeData(Hi);var rr={from:Vi.key,to:Xi.getKeyForNodeData(Hi)};Xi.addLinkData(rr);var _i=ai.diagram.findNodeForData(Hi);_i.location=Bi,ai.diagram.select(_i),setTimeout(()=>{ai.diagram.commandHandler.editTextBlock()},20)})};return kt(Ot.bn,{figure:fi,alignment:Xr,alignmentFocus:Xr.opposite(),width:Xr.equals(Ot.z6.Top)||Xr.equals(Ot.z6.Bottom)?25:18,height:Xr.equals(Ot.z6.Top)||Xr.equals(Ot.z6.Bottom)?18:25,fill:"orange",stroke:Gn.white,strokeWidth:4,mouseEnter:(ai,Ni)=>Ni.fill="dodgerblue",mouseLeave:(ai,Ni)=>Ni.fill="orange",isActionable:!0,click:wi,contextClick:wi})}function Qr(Xr){return kt(Ot.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:(fi,wi)=>wi.fill="dodgerblue",mouseLeave:(fi,wi)=>wi.fill="orange",click:(fi,wi)=>{fi.diagram.commandHandler.showContextMenu(wi.part.adornedPart)}},Xr||{})}un.current.nodeTemplate.selectionAdornmentTemplate=kt(Ot.uz,"Spot",kt(Ot.Vm,{padding:10}),vr(Ot.z6.Top,"TriangleUp"),vr(Ot.z6.Left,"TriangleLeft"),vr(Ot.z6.Right,"TriangleRight"),vr(Ot.z6.Bottom,"TriangleDown"),Qr({alignment:new Ot.z6(.75,0)}));function nn(Xr,fi){return(wi,ai)=>{wi.handled=!0,wi.diagram.model.commit(Ni=>{Ni.set(ai.part.adornedPart.data,Xr,fi)})}}function Qn(Xr,fi){return fi||(fi="color"),kt(Ot.bn,{width:16,height:16,stroke:"lightgray",fill:Xr,margin:1,background:"transparent",mouseEnter:(wi,ai)=>ai.stroke="dodgerblue",mouseLeave:(wi,ai)=>ai.stroke="lightgray",click:nn(fi,Xr),contextClick:nn(fi,Xr)})}function Dn(){return[kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Qn(Gn.white,"fill"),Qn(Gn.beige,"fill"),Qn(Gn.extralightblue,"fill"),Qn(Gn.extralightred,"fill"))),kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Qn(Gn.lightgray,"fill"),Qn(Gn.lightgreen,"fill"),Qn(Gn.lightblue,"fill"),Qn(Gn.lightred,"fill")))]}function xn(){return[kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Qn(Gn.black),Qn(Gn.green),Qn(Gn.blue),Qn(Gn.red))),kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Qn(Gn.white),Qn(Gn.magenta),Qn(Gn.purple),Qn(Gn.orange)))]}function Ge(Xr,fi){return fi||(fi="thickness"),kt(Ot.bn,"LineH",{width:16,height:16,strokeWidth:Xr,margin:1,background:"transparent",mouseEnter:(wi,ai)=>ai.background="dodgerblue",mouseLeave:(wi,ai)=>ai.background="transparent",click:nn(fi,Xr),contextClick:nn(fi,Xr)})}function Jr(Xr,fi){return fi||(fi="dash"),kt(Ot.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Xr,margin:1,background:"transparent",mouseEnter:(wi,ai)=>ai.background="dodgerblue",mouseLeave:(wi,ai)=>ai.background="transparent",click:nn(fi,Xr),contextClick:nn(fi,Xr)})}function Hr(){return[kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Ge(1),Ge(2),Ge(3),Ge(4))),kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Jr(null),Jr([2,4]),Jr([4,4])))]}function Jn(Xr,fi){return fi||(fi="figure"),kt(Ot.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Xr,margin:1,background:"transparent",mouseEnter:(wi,ai)=>ai.fill="dodgerblue",mouseLeave:(wi,ai)=>ai.fill="lightgray",click:nn(fi,Xr),contextClick:nn(fi,Xr)})}un.current.nodeTemplate.contextMenu=kt("ContextMenu",kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Jn("Rectangle"),Jn("RoundedRectangle"),Jn("Ellipse"),Jn("Diamond"))),kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Jn("Parallelogram2"),Jn("ManualOperation"),Jn("Procedure"),Jn("Cylinder1"))),kt("ContextMenuButton",kt(Ot.s_,"Horizontal",Jn("Terminator"),Jn("CreateRequest"),Jn("Document"),Jn("TriangleDown"))),Dn(),xn(),Hr()),un.current.groupTemplate=kt(Ot.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ot.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Xr,fi)=>{var wi=fi.addMembers(fi.diagram.selection,!0);wi||fi.diagram.currentTool.doCancel()},avoidable:!1},new Ot.KX("location","loc",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),kt(Ot.s_,"Auto",{name:"BODY"},kt(Ot.bn,{parameter1:10,fill:Gn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ot.z6.AllSides,toSpot:Ot.z6.AllSides},new Ot.KX("fill"),new Ot.KX("stroke","color"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),kt(Ot.Vm,{background:"transparent",margin:20})),kt(Ot.al,{alignment:Ot.z6.Top,alignmentFocus:Ot.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ot.KX("text"),new Ot.KX("stroke","color"))),un.current.groupTemplate.selectionAdornmentTemplate=kt(Ot.uz,"Spot",kt(Ot.s_,"Auto",kt(Ot.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),kt(Ot.Vm,{margin:1.5})),Qr({alignment:Ot.z6.TopRight,alignmentFocus:Ot.z6.BottomRight})),un.current.groupTemplate.contextMenu=kt("ContextMenu",Dn(),xn(),Hr()),un.current.linkTemplate=kt(Ot.rU,{layerName:"Foreground",routing:Ot.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ot.KX("fromSpot","fromSpot",Ot.z6.parse),new Ot.KX("toSpot","toSpot",Ot.z6.parse),new Ot.KX("fromShortLength","dir",Xr=>Xr>=1?10:0),new Ot.KX("toShortLength","dir",Xr=>Xr>=1?10:0),new Ot.KX("points").makeTwoWay(),kt(Ot.bn,{strokeWidth:2},new Ot.KX("stroke","color"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),kt(Ot.bn,{segmentIndex:0,segmentOffset:new Ot.E9(15,0),segmentOrientation:Ot.rU.OrientAlong,alignmentFocus:Ot.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",Xr=>Xr===1)),kt(Ot.bn,{segmentIndex:-1,segmentOffset:new Ot.E9(-10,6),segmentOrientation:Ot.rU.OrientPlus90,alignmentFocus:Ot.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",Xr=>Xr>=1),new Ot.KX("width","thickness",Xr=>7+3*Xr),new Ot.KX("height","thickness",Xr=>7+3*Xr),new Ot.KX("segmentOffset","thickness",Xr=>new Ot.E9(-15,4+1.5*Xr))),kt(Ot.bn,{segmentIndex:0,segmentOffset:new Ot.E9(15,-6),segmentOrientation:Ot.rU.OrientMinus90,alignmentFocus:Ot.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",Xr=>Xr===2),new Ot.KX("width","thickness",Xr=>7+3*Xr),new Ot.KX("height","thickness",Xr=>7+3*Xr),new Ot.KX("segmentOffset","thickness",Xr=>new Ot.E9(-15,4+1.5*Xr))),kt(Ot.al,{alignmentFocus:new Ot.z6(0,1,-4,0),editable:!0},new Ot.KX("text").makeTwoWay(),new Ot.KX("stroke","color"))),un.current.linkTemplate.selectionAdornmentTemplate=kt(Ot.uz,kt(Ot.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:hi(2)},new Ot.KX("pathPattern","thickness",hi)),Qr({alignmentFocus:new Ot.z6(0,0,-6,-4)}));function hi(Xr){return kt(Ot.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Xr+4).toString()+" H3"})}function ti(Xr){var fi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Xr===0?fi="M0 0 M16 16 M0 8 L16 8":Xr===2&&(fi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),kt(Ot.bn,{geometryString:fi,margin:2,background:"transparent",mouseEnter:(wi,ai)=>ai.background="dodgerblue",mouseLeave:(wi,ai)=>ai.background="transparent",click:nn("dir",Xr),contextClick:nn("dir",Xr)})}function Si(Xr){var fi=(wi,ai)=>{wi.handled=!0,wi.diagram.model.commit(Ni=>{var Xi=ai.part.adornedPart;Ni.set(Xi.data,Xr?"toSpot":"fromSpot",Ot.z6.stringify(Ot.z6.AllSides)),(Xr?Xi.toNode:Xi.fromNode).invalidateConnectedLinks()})};return kt(Ot.bn,{width:12,height:12,fill:"transparent",mouseEnter:(wi,ai)=>ai.background="dodgerblue",mouseLeave:(wi,ai)=>ai.background="transparent",click:fi,contextClick:fi})}function nr(Xr,fi){var wi=0,ai=Ot.z6.RightSide;Xr.equals(Ot.z6.Top)?(wi=270,ai=Ot.z6.TopSide):Xr.equals(Ot.z6.Left)?(wi=180,ai=Ot.z6.LeftSide):Xr.equals(Ot.z6.Bottom)&&(wi=90,ai=Ot.z6.BottomSide),fi||(wi-=180);var Ni=(Xi,Vi)=>{Xi.handled=!0,Xi.diagram.model.commit(Bi=>{var Hi=Vi.part.adornedPart;Bi.set(Hi.data,fi?"toSpot":"fromSpot",Ot.z6.stringify(ai)),(fi?Hi.toNode:Hi.fromNode).invalidateConnectedLinks()})};return kt(Ot.bn,{alignment:Xr,alignmentFocus:Xr.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:wi,background:"transparent",mouseEnter:(Xi,Vi)=>Vi.background="dodgerblue",mouseLeave:(Xi,Vi)=>Vi.background="transparent",click:Ni,contextClick:Ni})}un.current.linkTemplate.contextMenu=kt("ContextMenu",xn(),Hr(),kt("ContextMenuButton",kt(Ot.s_,"Horizontal",ti(0),ti(1),ti(2))),kt("ContextMenuButton",kt(Ot.s_,"Horizontal",kt(Ot.s_,"Spot",Si(!1),nr(Ot.z6.Top,!1),nr(Ot.z6.Left,!1),nr(Ot.z6.Right,!1),nr(Ot.z6.Bottom,!1)),kt(Ot.s_,"Spot",{margin:new Ot.Zt(0,0,0,2)},Si(!0),nr(Ot.z6.Top,!0),nr(Ot.z6.Left,!0),nr(Ot.z6.Right,!0),nr(Ot.z6.Bottom,!0)))));const vn=`{ "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 xi=["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 zi(Xr){return console.log("shapeName:",Xr),xi.indexOf(Xr)>=0}var Ln=new Ot.YI(Tr.current,{maxSelectionCount:1,linkTemplate:kt(Ot.rU,{locationSpot:Ot.z6.Center,selectionAdornmentTemplate:kt(Ot.uz,"Link",{locationSpot:Ot.z6.Center},kt(Ot.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),kt(Ot.bn,{toArrow:"Standard",stroke:null}))},{routing:Ot.rU.AvoidsNodes,curve:Ot.rU.JumpOver,corner:5,toShortLength:4},new Ot.KX("points"),kt(Ot.bn,{isPanelMain:!0,strokeWidth:2}),kt(Ot.bn,{toArrow:"Standard",stroke:null})),model:new Ot.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ot.bn.getFigureGenerators().toArray().map(Xr=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Xr.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return un.current.addDiagramListener("TextEdited",function(Xr){var fi;const wi=Xr.subject.part;var ai=(fi=document.activeElement)==null?void 0:fi.value;typeof ai=="string"&&ai.trim()===""&&un.current.model.commit(function(Ni){Ni.set(wi.data,"text","\u672A\u547D\u540D"),un.current.commandHandler.stopCommand()},"increment")}),Ln.nodeTemplate=kt(Ot.NB,"Auto",{locationSpot:Ot.z6.Center},new Ot.KX("location","location",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),kt(Ot.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 Ot.KX("stroke").makeTwoWay(),new Ot.KX("fill").makeTwoWay(),new Ot.KX("figure")),kt(Ot.al,{margin:new Ot.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ot.$u(16,16),maxSize:new Ot.$u(10,NaN),textAlign:"center",editable:!0},new Ot.KX("key").makeTwoWay())),setTimeout(()=>{un.current.grid=kt(Ot.s_,"Grid",kt(Ot.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),kt(Ot.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),un.current.grid.visible=!0,un.current.grid.gridCellStroke="darkgray",un.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=un.current,un.current}const Wr=()=>bt(this,null,function*(){var kt,Gn=un.current.makeImage();const vr=yield(0,Re.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Gn.src,file_data:JSON.stringify({login:(kt=(0,lt.eY)())==null?void 0:kt.login,data:JSON.parse(un.current.model.toJson())})}});hn({src:vr.url})});return(0,oe.useEffect)(()=>(setTimeout(()=>{fn()},500),Cn(Rr+1),()=>{un.current=null}),[]),Be.createElement("div",{ref:sr,className:"body-overflow-initial"},Be.createElement(wn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Rr,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Be.createElement(bn.Z,null,Be.createElement(_e.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Be.createElement(_e.Z,{onClick:()=>{var kt,Gn,vr=un.current.selection.first();if(Zr.current=!Zr.current,document.activeElement&&vr){let Qr=(Gn=(kt=document.activeElement)==null?void 0:kt.value)==null?void 0:Gn.trim();typeof Qr=="string"&&un.current.model.commit(function(nn){nn.set(vr.data,"text",Qr||"\u672A\u547D\u540D"),un.current.commandHandler.stopCommand()},"increment")}Cn(Rr+1)}},Be.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:dn},Be.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Zr.current?"none":"block"},className:Xe.flowChartWrp},Be.createElement("div",{style:{display:"flex",height:"100%"}},Be.createElement("div",{style:{width:"300px",height:"100%"}},Be.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Be.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xe.myPaletteDiv,ref:Tr})),Be.createElement("div",{style:{flex:1,position:"relative"}},Be.createElement("div",{ref:Ur,style:{height:"80vh"}}))),Be.createElement("div",{className:"tr"},Be.createElement(at.ZP,{size:"large",onClick:Wr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var yn=Wt,On=ae(47889),Pt=ae(71051);const Vt=On.ZP.Group,zt={margin:"0 8px"};var pn=({callback:dn,onCancel:hn})=>{function un(Ur){dn(Ur)}return oe.createElement(ot.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:un},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:zt},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:zt},"\u884C\u6570"),oe.createElement(ot.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Pt.Z,null)),oe.createElement("span",{style:zt},"\u5217\u6570"),oe.createElement(ot.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Pt.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(ot.default.Item,{name:"align"},oe.createElement(Vt,null,oe.createElement(On.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(On.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(On.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(On.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(at.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},Tn=ae(71411),gn=ae(91e3),Mt=ae.n(gn),Yt=(0,oe.forwardRef)(({use3d:dn,width:hn,height:un,callback:Ur,showSaveButton:Tr},Zr)=>{const sr=(0,oe.useRef)(),Rr=(0,oe.useRef)(),[Cn,fn]=(0,oe.useState)(!1),Wr=(0,oe.useRef)({id:sr,appName:"graphing",width:hn||1e3,height:un||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{Rr.current=new(Mt())(Wr.current,!0),window.onload=function(){Rr.current.inject("applet_container")}},[]);const kt=()=>{var Gn=window.ggbApplet.getPNGBase64(1,!0,72);return Ur&&Ur(Gn),Gn};return(0,oe.useEffect)(()=>{Wr.current.appName=Cn?"3D":"graphing",Rr.current.inject("applet_container")},[Cn]),(0,oe.useEffect)(()=>{fn(dn)},[dn]),(0,oe.useImperativeHandle)(Zr,()=>({getImgData:kt})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:sr}),oe.createElement(bn.Z,{align:"middle"},oe.createElement(_e.Z,{flex:1},oe.createElement(Tn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:Gn=>fn(Gn)})),oe.createElement(_e.Z,null,oe.createElement(at.ZP,{size:"large",onClick:kt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),on=ae(88831),mn=ae(6767);const er="link",Sn="upload-image",ht="add-flowchart",tr="draw-image",lr="add-flowchart",qt="code-block",yr="add-table",ri="------------",Or={default:ri,left:`:${ri}`,center:`:${ri}:`,right:`${ri}:`};var Nn=ae(23206);function ui(){}let $r=0;const or=1e4,Kr="\u2581",oi="@\u2581\u2581@",Me="@\u2581@",kr=`
**\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`,Pr=["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 ei(dn){return/^\d+$/.test(dn)?`${dn}px`:dn}const Di=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ti={[Di+"-B"]:"bold",[Di+"-I"]:"italic"},Vr={[er]:"\u6DFB\u52A0\u94FE\u63A5",[qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[tr]:"\u6DFB\u52A0\u753B\u56FE",[ht]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[yr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Fr=({defaultValue:dn="",onChange:hn,width:un="100%",height:Ur=400,miniToolbar:Tr=!1,isFocus:Zr=!1,watch:sr,insertTemp:Rr,mode:Cn="markdown",id:fn="markdown-editor-id",showResizeBar:Wr=!1,noStorage:kt=!1,showNullButton:Gn=!1,showNullProgramButton:vr=!1,hidetoolBar:Qr=!1,fullScreen:nn=!1,onBlur:Qn,onCMBeforeChange:Dn,onFullScreen:xn,className:Ge="",disablePaste:Jr=!1,disabled:Hr=!1,disabledFill:Jn=!1,placeholder:hi="",values:ti="",extraUse:Si})=>{const[nr,vn]=(0,oe.useState)(null),[xi,zi]=(0,oe.useState)(dn),[Ln,Xr]=(0,oe.useState)(sr),[fi,wi]=(0,oe.useState)(nn),[ai,Ni]=(0,oe.useState)(""),[Xi,Vi]=(0,oe.useState)(0),[Bi,Hi]=(0,oe.useState)(Ur),[rr,_i]=(0,oe.useState)(!1),[ur,vi]=(0,oe.useState)(0),[Pi,Mi]=(0,oe.useState)(0),po=(0,oe.useRef)(),Oo=(0,oe.useRef)(),mo=(0,oe.useRef)(),xo=(0,oe.useRef)();(0,oe.useEffect)(()=>{const hr=window.scrollY||window.pageYOffset;zi(ti),nr==null||nr.setValue(ti),window.scrollTo(0,hr)},[ti]),(0,oe.useEffect)(()=>{xn==null||xn(fi)},[fi]),(0,oe.useEffect)(()=>{if(po.current){let hr=function(cn,Kn){var Gr;if(Jr){Kn.preventDefault();return}const Li=Kn.clipboardData;if(Li){const mi=Li.types.toString(),gi=Li.items;if(mi==="Files"||Li.types.indexOf("Files")>-1){if(Kn.preventDefault(),Cn=="stex")return;try{let Ri=gi[1];((Gr=gi[0])==null?void 0:Gr.kind)==="file"&&(Ri=gi[0]);const Oi=Ri.getAsFile(),lo=Oi.name.split(".").pop();(0,It.I)(Oi,So=>{var na,An,so;So.id?((na=Oi==null?void 0:Oi.type)==null?void 0:na.indexOf("image"))>-1?$n.replaceSelection(`<img width="100%" src="/api/attachments/${So.id}?type=${So.content_type})" alt="" />`):((An=Oi==null?void 0:Oi.type)==null?void 0:An.indexOf("video"))>-1?$n.replaceSelection(`<video width="100%" controls src="/api/attachments/${So.id}"></video>`):((so=Oi==null?void 0:Oi.type)==null?void 0:so.indexOf("pdf"))>-1?$n.replaceSelection(`<a href="/api/attachments/${So.id}?type=${Oi.type}&disposition=inline" target="_blank">${Oi.name}</a>`):Pr.includes(lo)?$n.replaceSelection(`<a href="/api/attachments/${So.id}?type=office&disposition=inline" target="_blank">${Oi.name}</a>`):$n.replaceSelection(`[${Oi.name}](/api/attachments/${So.id}?type=${So.content_type})`):(So==null?void 0:So.status)===401&&(document.location.href="/user/login")})}catch(Ri){mn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const $n=Ie().fromTextArea(po.current,{mode:Cn,lineNumbers:!Tr,lineWrapping:!0,value:dn,autoCloseTags:!0,autoCloseBrackets:!0});return $n.on("keyup",function(cn,Kn){Kn.keyCode===8&&(cn.getValue()==""?$n.setOption("placeholder",hi):$n.setOption("placeholder",null))}),$n.on("keydown",function(cn,Kn){if(Kn.keyCode===8){var Gr=fr(cn);Gr&&Kn.preventDefault()}}),Zr&&$n.focus(),$n.on("paste",hr),Hr&&$n.on("beforeChange",function(cn,Kn){(Kn.origin==="paste"||Kn.origin==="+input")&&Kn.cancel()}),vn($n),()=>{$n.off("paste",hr)}}},[]);const Fn=(0,oe.useCallback)(()=>{if(Oo.current)try{}catch(hr){console.log(hr,"---- to set md editor body height")}},[Bi,Oo,fi]);(0,oe.useEffect)(()=>{function hr(){let $n=new ke.Z(cn=>{for(let Kn of cn)(Kn.target.offsetHeight>0||Kn.target.offsetWidth>0)&&(Fn(),nr.setSize("100%","100%"),nr.refresh())});return $n.observe(po.current.parentElement),$n}if(nr){const $n=hr();return()=>{var cn,Kn;(cn=po.current)!=null&&cn.parentElement&&$n.unobserve((Kn=po.current)==null?void 0:Kn.parentElement)}}},[nr,Fn]),(0,oe.useEffect)(()=>{if(nr){let hr=[];for(const[$n,cn]of Object.entries(Ti)){let Kn={[$n]:()=>{Rn(cn)}};hr.push(Kn),nr.addKeyMap(Kn)}return()=>{for(let $n of hr)nr.removeKeyMap($n)}}},[nr]),(0,oe.useEffect)(()=>{nn!==fi&&wi(nn)},[nn]),(0,Nn.Z)(()=>{if(!kt&&Xi>0){let hr=new Date().getTime(),$n=window.sessionStorage.getItem(fn);hr>=Xi+or&&(!$n||$n!==xi)&&(window.sessionStorage.setItem(fn,xi),_i(!0))}},or),(0,oe.useEffect)(()=>{Xr(sr)},[nr,sr]),(0,oe.useEffect)(()=>{nr&&Zr&&nr.focus()},[nr,Zr]),(0,oe.useEffect)(()=>{if(Ln&&nr){let hr=function(cn){let Kn=cn.target;if(xo.current){let Gr=Kn.scrollTop/Kn.scrollHeight;xo.current.scrollTop=xo.current.scrollHeight*Gr}};const $n=nr.getScrollerElement();return $n.addEventListener("scroll",hr),()=>{$n.removeEventListener("scroll",hr)}}},[nr,Ln]),(0,oe.useEffect)(()=>{if(nr&&Dn){let hr=function($n,cn){Dn($n,cn)};return nr.on("beforeChange",hr),()=>{nr.off("beforeChange",hr)}}},[nr,Dn]),(0,oe.useEffect)(()=>{if(nr&&Qn){let hr=function(){Qn(nr.getValue())};return nr.on("blur",hr),()=>{nr.off("blur",hr)}}},[nr,Qn]);function fr(hr,$n){var cn=hr.getDoc(),Kn=cn.getCursor(),Gr=cn.getLine(Kn.line),Li=Gr.charAt(Kn.ch-1),mi=Gr.lastIndexOf("@\u2581@",Kn.ch),gi=Gr.lastIndexOf("@\u2581\u2581@",Kn.ch),Ri=mi>gi?mi:gi,Oi=mi>gi?3:4;if(oi.indexOf(Li)===-1)return null;if(console.log("change1:",$n,hr,Gr,Kn,Ri,mi,gi,Li),Ri>=0&&Kn.ch-Ri<5){var lo=Ri+Oi;return cn.replaceRange("",{line:Kn.line,ch:Ri},{line:Kn.line,ch:lo}),{line:Kn.line,ch:lo}}return null}(0,oe.useEffect)(()=>{if(nr){let hr=function($n,cn){const Kn=$n.getValue();zi(Kn),Vi(new Date().getTime()),$n.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),hn&&(vr?hn(Kn,ft(Kn)):hn(Kn))};return nr.on("change",hr),()=>{nr.off("change",hr)}}},[nr,hn]),(0,oe.useEffect)(()=>{if(nr)if(dn==null)nr.setValue(""),zi("");else{const hr=window.scrollY||window.pageYOffset;dn!==nr.getValue()&&(nr.setValue(dn),zi(dn),nr.setCursor(Hr?1:nr.lineCount(),0),window.scrollTo(0,hr))}},[nr,dn]);const Rn=(0,oe.useCallback)(hr=>{const $n=nr.getCursor(),cn=nr.getSelection();let Kn=cn.split(`
`);switch(hr){case"bold":return nr.replaceSelection("**"+cn+"**"),cn===""&&nr.setCursor($n.line,$n.ch+2),nr.focus();case"italic":return nr.replaceSelection("*"+cn+"*"),cn===""&&nr.setCursor($n.line,$n.ch+1),nr.focus();case"code":return nr.replaceSelection("`"+cn+"`"),cn===""&&nr.setCursor($n.line,$n.ch+1),nr.focus();case"inline-latex":return Ni("inline-latex"),nr.focus();case"latex":return nr.replaceSelection("```latex\n"+cn+"\n```"),nr.setCursor($n.line+1,cn.length+1),nr.focus();case"line-break":return nr.replaceSelection(`<br/>
`),nr.focus();case"list-ul":return cn===""?nr.replaceSelection("- "+cn):nr.replaceSelection(Kn.map(Gr=>Gr===""?"":`- ${Gr}`).join(`
`)),nr.focus();case"list-ol":return cn===""?nr.replaceSelection("1. "+cn):nr.replaceSelection(Kn.map((Gr,Li)=>Gr===""?"":`${Li+1}. ${Gr}`).join(`
`)),nr.focus();case"add-null-ch":return cn===""&&nr.setCursor($n.line,$n.ch),nr.replaceSelection(Kr),nr.focus();case"add-signal":return cn===""&&nr.setCursor($n.line,$n.ch),nr.replaceSelection(Me),nr.focus();case"add-multiple":return cn===""&&nr.setCursor($n.line,$n.ch),nr.replaceSelection(oi),nr.focus();case"inster-template-1":return cn===""&&nr.setCursor($n.line,$n.ch),nr.replaceSelection(kr),nr.focus();case"eraser":return nr.setValue(""),nr.focus();case"trigger-watch":return Xr(!Ln),nr.focus();case"trigger-full-screen":return wi(!fi),nr.focus();case er:Ni(er);return;case qt:Ni(qt);return;case Sn:Ni(Sn);return;case tr:Ni(tr);return;case"maths-latex":Ni("maths-latex");return;case ht:Ni(ht);return;case yr:Ni(yr);return;default:throw new Error}},[nr,Ln,fi]),rt=(0,oe.useCallback)((hr,$n)=>{var cn,Kn,Gr,Li,mi,gi;switch(Ni(""),ai){case er:const{title:na,link:An}=hr;return nr.replaceSelection(`[${na}](${An})`),nr.focus();case qt:const{language:so,content:Do}=hr;return nr.replaceSelection(["```"+so,Do,"```"].join(`
`)),nr.focus();case"maths-latex":for(var Ri=atob(hr),Oi=new Uint8Array(Ri.length),lo=0;lo<Ri.length;lo++)Oi[lo]=Ri.charCodeAt(lo);var So=new Blob([Oi],{type:"image/png"});(0,It.I)(So,Fa=>{Fa.id?nr.replaceSelection(`![,](/api/attachments/${Fa.id}?type=${Fa.content_type})`):(Fa==null?void 0:Fa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":nr.replaceSelection("`$$"+hr+"$$`");break;case Sn:case tr:case lr:const{src:Wi,alt:ho}=hr,Ki=$n,da=(Gr=(Kn=(cn=Ki==null?void 0:Ki.name)==null?void 0:cn.split("."))==null?void 0:Kn.pop)==null?void 0:Gr.call(Kn);return((Li=Ki==null?void 0:Ki.type)==null?void 0:Li.indexOf("image"))>-1||!(Ki!=null&&Ki.type)?Ki!=null&&Ki.align||Ki!=null&&Ki.width?nr.replaceSelection(`<p style="text-align:${Ki.align||"initial"}"><img width="${Ki.width?Ki.width+"%":"initial"}" src="${Wi}" alt="${ho||""}" /></p>`):nr.replaceSelection(`<img width="100%" src="${Wi}" alt="${ho||""}" />`):((mi=Ki==null?void 0:Ki.type)==null?void 0:mi.indexOf("video"))>-1?nr.replaceSelection(`<video width="100%" controls src="${Wi}"></video>`):((gi=Ki==null?void 0:Ki.type)==null?void 0:gi.indexOf("pdf"))>-1?nr.replaceSelection(`<a href="${Wi}?type=${Ki.type}&disposition=inline" target="_blank">${Ki.name}</a>`):Pr.includes(da)?nr.replaceSelection(`<a href="${Wi}?type=office&disposition=inline" target="_blank">${Ki.name}</a>`):nr.replaceSelection(`[${Ki.name}](${Wi})`),nr.focus();case yr:const{row:Vn,col:Mo,align:ia}=hr;let Ps=`
`;for(let Fa=0;Fa<Vn;Fa++){let Gs=[],gs=[];for(let Qi=0;Qi<Mo;Qi++)Fa===1&&gs.push(Or[ia]),Gs.push(" ");Fa===1&&(Ps+=`| ${gs.join(" | ")} |
`),Ps+=`| ${Gs.join(Mo===1?"":" | ")} |
`}return nr.replaceSelection(Ps+`
`),nr.focus();default:throw new Error}},[nr,ai]),jr=(0,oe.useMemo)(()=>{switch(ai){case er:return oe.createElement(Jt,{callback:rt,onCancel:Sr});case qt:return oe.createElement(sn.Z,{callback:rt,onCancel:Sr});case Sn:return oe.createElement(It.Z,{callback:rt,onCancel:Sr});case ht:return oe.createElement(yn,{callback:rt,onCancel:Sr});case yr:return oe.createElement(pn,{callback:rt,onCancel:Sr});case"maths-latex":return oe.createElement(Yt,{showSaveButton:!0,callback:rt});case"inline-latex":return oe.createElement(on.Z,{showSaveButton:!0,callback:rt});default:return null}},[ai]);function Sr(){Ni("")}(0,oe.useEffect)(()=>{if(mo.current){let hr=function(mi){Gr=!0,Li=mi.pageY},$n=function(){Gr=!1},cn=function(mi){if(Gr){let gi=mi.pageY-Li;gi<0&&(gi=0),gi>300&&(gi=300);let Ri=Ur+gi+"px";Hi(Ri)}},Kn=mo.current,Gr=!1,Li=0;return Kn.addEventListener("mousedown",hr),document.addEventListener("mousemove",cn),document.addEventListener("mouseup",$n),()=>{Kn.removeEventListener("mousedown",hr),document.removeEventListener("mousemove",cn),document.removeEventListener("mouseup",$n)}}},[nr,mo]),(0,oe.useEffect)(()=>{Hi(Ur)},[Ur]);const zr=ei(un),ni=ei(Bi),pi={width:zr,height:ni},Er=(0,oe.useMemo)(()=>{if(Xi){let hr=new Date(Xi),$n=hr.getHours(),cn=hr.getMinutes(),Kn=hr.getSeconds();return $n=$n<10?"0"+$n:$n,cn=cn<10?"0"+cn:cn,Kn=Kn<10?"0"+Kn:Kn,`${$n}:${cn}:${Kn}`}return 0},[Xi]),ft=hr=>{const $n=[];if(vr){let cn=-1;hr=hr.replace(/(@▁▁@|@▁@)/g,function(Kn,Gr,Li){$n.push({multiLine:Kn!==Me})})}return $n};function En(){window.sessionStorage.removeItem(fn),_i(!1),Vi(0)}function Mn(){_i(!1),Vi(0),nr.setValue(window.sessionStorage.getItem(fn))}(0,oe.useEffect)(()=>{Vr[ai]&&ai!==tr&&ai!==ht&&setTimeout(()=>{const hr=document.getElementsByClassName("markdown-popup-form")[0],$n=window.innerWidth/2-hr.offsetWidth/2,cn=window.innerHeight/2-hr.offsetHeight/2;vi($n),Mi(cn)},0)},[ai]);const Xn=hr=>{hr.preventDefault();const $n=hr.clientX-ur,cn=hr.clientY-Pi;document.body.onmousemove=Kn=>{let Gr=Kn.clientX-$n,Li=Kn.clientY-cn;const mi=document.getElementsByClassName("markdown-popup-form")[0],gi=window.innerWidth-mi.offsetWidth,Ri=window.innerHeight-mi.offsetHeight;Gr=Math.max(0,Math.min(Gr,gi)),Li=Math.max(0,Math.min(Li,Ri)),Hn(Kn.clientX,Kn.clientY,$n,cn)&&(vi(Gr),Mi(Li))},document.body.onmouseup=function(){document.body.onmousemove=null}},Hn=(hr,$n,cn,Kn)=>{const Gr=document.body.clientHeight,Li=document.body.clientWidth;return hr<20&&cn>hr||hr>Li-20&&cn<hr||$n<20&&Kn>$n||$n>Gr-20&&Kn<$n?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:Oo},oe.createElement("div",{className:`markdown-editor-container ${Ge} ${Ln?"on-preview":""} ${Tr?"mini":""} ${fi?"full-screen":""}`,style:pi},oe.createElement(nt,{insertTemp:Rr,watch:Ln,fullScreen:fi,showNullButton:Gn,showNullProgramButton:vr,onActionCallback:Rn,hidetoolBar:Qr,extraUse:Si}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:po,placeholder:hi})),Ln?oe.createElement("div",{ref:xo,className:"preview-container"},Cn==="stex"&&oe.createElement($e,{value:xi}),Cn!=="stex"&&oe.createElement(St.Z,{disabledFill:Jn,showProgramFill:vr,value:xi})):null))),Wr?oe.createElement("a",{ref:mo,className:"editor-resize"}):null,ai===tr&&oe.createElement(zn,{callback:rt,onCancel:Sr}),ai===ht&&oe.createElement(yn,{callback:rt,onCancel:Sr}),oe.createElement(qe.Z,null,Vr[ai]&&ai!==tr&&ai!==ht?oe.createElement(wn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ur,top:Pi},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:Xn},Vr[ai]),open:!0,onCancel:Sr,footer:null,destroyOnClose:!0,width:ai===ht?"1200px":null,height:ai===ht?"80vh":null,className:"markdown-popup-form"},jr):null))}},24141:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return De},I:function(){return nt}});var oe=ae(28284),Pe=ae(6767),Ie=ae(37568),ke=ae(77736),Ve=ae(71051),Te=ae(47889),ze=ae(99571),st=ae(55322),Qe=ae(59301),Ue=ae(59301),St=Object.defineProperty,$e=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(qe,ot,mt)=>ot in qe?St(qe,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):qe[ot]=mt,ue=(qe,ot)=>{for(var mt in ot||(ot={}))te.call(ot,mt)&&he(qe,mt,ot[mt]);if(Fe)for(var mt of Fe(ot))ee.call(ot,mt)&&he(qe,mt,ot[mt]);return qe},fe=(qe,ot)=>$e(qe,Dt(ot));const{useForm:me}=oe.default,be={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var De=({callback:qe,onCancel:ot})=>{const[mt]=me();let at=(0,Qe.useRef)();function vt(Ht){at.current.width=mt.getFieldValue("width"),at.current.align=mt.getFieldValue("align"),qe(Ht,at.current)}function wt(Ht,Qt){if(Ht.status===-1){Pe.ZP.error(Ht.message);return}mt.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:Qt.type})}function At(Ht){let Qt=Ht.target.files[0];at.current=Qt,nt(Qt,wt)}return Ue.createElement(oe.default,fe(ue({form:mt},Ae),{className:"upload-image-panel",onFinish:vt,style:{width:470,overflow:"hidden"}}),Ue.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ue.createElement("div",{className:"flex-container"},Ue.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ue.createElement(Ie.default,{style:be})),Ue.createElement(We,{onFileChange:At}))),Ue.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(Ie.default,{style:{width:264}})),Ue.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(ke.Z,null,Ue.createElement(oe.default.Item,{name:"width",style:{margin:0}},Ue.createElement(Ve.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.createElement(Te.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"}]})),Ue.createElement("aside",null,Ue.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ue.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(ze.ZP,{type:"default",onClick:ot},"\u53D6\u6D88"))))};function We({onFileChange:qe}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:qe}))}function nt(qe,ot){if(!qe)throw new String("\u6CA1\u6709\u6587\u4EF6");let mt=new FormData;mt.append("editormd-image-file",qe),mt.append("file_param_name","editormd-image-file"),mt.append("byxhr","true");var at=new window.XMLHttpRequest;at.withCredentials=!0,at.addEventListener("load",function(vt){ot(JSON.parse(vt.target.responseText),qe)},!1),at.addEventListener("error",function(vt){console.error(vt)},!1),at.open("POST",`${st.KI}/api/attachments.json`),at.send(mt)}},52272:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ie}});var oe=ae(59301),Pe=ae(4676);class Ie extends oe.Component{constructor(Ve){super(Ve);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:Ve}=this.props;return(0,Pe.createPortal)(Ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},89081:function(Ze,Ee,ae){"use strict";ae.d(Ee,{SV:function(){return bt},ZP:function(){return Be}});var oe=ae(59301),Pe=ae(76374);const Ie={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"]},ke={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"]},Ve={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(`
`)}]},Te={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(`
`)}]},ze={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 st=ae(53184),Qe=ae.n(st),Ue=Object.defineProperty,St=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ee=(Wt,yn,On)=>yn in Wt?Ue(Wt,yn,{enumerable:!0,configurable:!0,writable:!0,value:On}):Wt[yn]=On,he=(Wt,yn)=>{for(var On in yn||(yn={}))Fe.call(yn,On)&&ee(Wt,On,yn[On]);if(Dt)for(var On of Dt(yn))te.call(yn,On)&&ee(Wt,On,yn[On]);return Wt},ue=(Wt,yn)=>St(Wt,$e(yn)),fe=(Wt,yn,On)=>new Promise((Pt,Vt)=>{var zt=gn=>{try{Tn(On.next(gn))}catch(Mt){Vt(Mt)}},pn=gn=>{try{Tn(On.throw(gn))}catch(Mt){Vt(Mt)}},Tn=gn=>gn.done?Pt(gn.value):Promise.resolve(gn.value).then(zt,pn);Tn((On=On.apply(Wt,yn)).next())});const me={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"]}},be=(Wt,yn)=>yn.map(On=>({label:On,kind:Wt.languages.CompletionItemKind.Keyword,insertText:On})),Ae=Wt=>Object.keys(me.tables).map(yn=>({label:yn,kind:Wt.languages.CompletionItemKind.Variable,insertText:yn})),De=(Wt,yn)=>{const On=me.tables[Wt];return On?On.map(Pt=>({label:Pt,kind:yn.languages.CompletionItemKind.Field,insertText:Pt})):[]};function We(Wt,yn,On,Pt,Vt){let zt=yn.getWordUntilPosition(On),pn={startLineNumber:On.lineNumber,endLineNumber:On.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Tn=Pt.map(gn=>({label:gn,kind:Wt.languages.CompletionItemKind.Keyword,insertText:gn,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}));return Vt.map(gn=>{Tn.push(ue(he({},gn),{range:pn}))}),Tn}var nt=Wt=>{me.languages.map(Vt=>(Wt.languages.registerDocumentFormattingEditProvider(Vt,{provideDocumentFormattingEdits(zt,pn,Tn){return fe(this,null,function*(){const gn=Qe()(zt.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:zt.getFullModelRange(),text:gn}]})}}),Vt));const yn=Ve.quickKey.map(Vt=>({label:Vt.label,kind:Wt.languages.CompletionItemKind.Method,insertText:Vt.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),On=Te.quickKey.map(Vt=>({label:Vt.label,kind:Wt.languages.CompletionItemKind.Method,insertText:Vt.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Pt=ke.quickKey.map(Vt=>({label:Vt.label,kind:Wt.languages.CompletionItemKind.Method,insertText:Vt.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Wt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Vt,zt){var pn=Vt.getWordUntilPosition(zt),Tn={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},gn=Vt.getLineContent(zt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...Ve.keywords.map(Mt=>({label:Mt,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn})),...Ve.quickKey.map(Mt=>({label:Mt.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:gn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn}))]}}}),Wt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Vt,zt){var pn=Vt.getWordUntilPosition(zt),Tn={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn};return{suggestions:[...Ie.keywords.map(gn=>({label:gn,kind:Wt.languages.CompletionItemKind.Function,documentation:gn,insertText:gn,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn}))]}}}),Wt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Vt,zt){var pn=Vt.getWordUntilPosition(zt),Tn={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},gn=Vt.getLineContent(zt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...ke.keywords.map(Mt=>({label:Mt,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn})),...ke.quickKey.map(Mt=>({label:Mt.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:gn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn}))]}}}),Wt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Vt,zt){var pn=Vt.getWordUntilPosition(zt),Tn={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},gn=Vt.getLineContent(zt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...ze.keywords.map(Mt=>({label:Mt,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn})),...ze.quickKey.map(Mt=>({label:Mt.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:gn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn}))]}}}),Wt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Vt,zt){var pn=Vt.getWordUntilPosition(zt),Tn={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},gn=Vt.getLineContent(zt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...Te.keywords.map(Mt=>({label:Mt,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn})),...Te.quickKey.map(Mt=>({label:Mt.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:gn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tn}))]}}})};const qe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ot=Object.defineProperty,mt=(Wt,yn,On)=>yn in Wt?ot(Wt,yn,{enumerable:!0,configurable:!0,writable:!0,value:On}):Wt[yn]=On,at=(Wt,yn,On)=>mt(Wt,typeof yn!="symbol"?yn+"":yn,On);const vt=class oE{constructor(yn,On,Pt){this.placeholder=yn,this.editor=On,this.monaco=Pt,On.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return oE.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};at(vt,"ID","editor.widget.placeholderHint");var At=vt,Ht=ae(96236),Qt=ae(6767),Zt=ae(25399),ln=ae(89392),Nt=ae(16448),gt=ae(56102),ct=Object.defineProperty,Jt=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,_n=(Wt,yn,On)=>yn in Wt?ct(Wt,yn,{enumerable:!0,configurable:!0,writable:!0,value:On}):Wt[yn]=On,Xt=(Wt,yn)=>{for(var On in yn||(yn={}))wn.call(yn,On)&&_n(Wt,On,yn[On]);if(It)for(var On of It(yn))bn.call(yn,On)&&_n(Wt,On,yn[On]);return Wt},zn=(Wt,yn)=>Jt(Wt,sn(yn)),Ot=(Wt,yn)=>{var On={};for(var Pt in Wt)wn.call(Wt,Pt)&&yn.indexOf(Pt)<0&&(On[Pt]=Wt[Pt]);if(Wt!=null&&It)for(var Pt of It(Wt))yn.indexOf(Pt)<0&&bn.call(Wt,Pt)&&(On[Pt]=Wt[Pt]);return On},jn=(Wt,yn,On)=>new Promise((Pt,Vt)=>{var zt=gn=>{try{Tn(On.next(gn))}catch(Mt){Vt(Mt)}},pn=gn=>{try{Tn(On.throw(gn))}catch(Mt){Vt(Mt)}},Tn=gn=>gn.done?Pt(gn.value):Promise.resolve(gn.value).then(zt,pn);Tn((On=On.apply(Wt,yn)).next())});function cr(Wt){return/^\d+$/.test(Wt)?`${Wt}px`:Wt}function it(){}let _e=!1;const Re={"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 Xe(Wt=[]){let yn=Wt;if(Array.isArray(Wt)){for(let On=0;On<Wt.length;On++){let Pt=Re[Wt[On]];if(Pt)return Pt}return yn[0]}return Re[yn]||yn}let lt=null;var Be=Wt=>{var yn=Wt,{width:On="100%",height:Pt="100%",value:Vt,language:zt="javascript",style:pn={},options:Tn={},overrideServices:gn={},theme:Mt="vs-dark",onEditBlur:Un,isCopy:Yt=!1,onSave:on,autoHeight:mn=!1,forbidCopy:er=!1,onChange:Sn=it,editorDidMount:ht=it,onFocus:tr=it,onBreakPoint:lr=it,breakPointValue:qt=[],filename:yr="educoder.txt",errorLine:ri,errorContent:Or="",highlightLine:Nn,openBreakPoint:ui=!1,placeholder:$r="",showMiniMap:or=!0}=yn,Kr=Ot(yn,["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 oi=(0,oe.useRef)(),Me=(0,oe.useRef)({}),kr=(0,oe.useRef)(),Pr=(0,oe.useRef)(),ei=(0,oe.useRef)([]),Ii=(0,oe.useRef)(!1),Di=(0,oe.useRef)(),Ti=(0,oe.useRef)(),Vr=(0,oe.useRef)(!1),[Fr,dn]=(0,oe.useState)(!1);function hn(){let Qn;return oi.current&&(Qn=new Pe.Z(Dn=>{for(let xn of Dn)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&Me.current.instance.layout()}),Qn.observe(oi.current)),Qn}function un(){Qt.ZP.warning({content:decodeURIComponent(qe),key:"monaco-editor-tip"})}const Ur=()=>{let Qn=Me.current.instance;if(Vt!=null&&Qn&&Fr){const Dn=Qn.getModel();Dn&&Vt!==Dn.getValue()&&(_e=!0,Dn.setValue(Vt),Qn.layout(),_e=!1)}};(0,oe.useEffect)(()=>{const Qn=Nt.Z.subscribe("formatDocument",Dn=>{var xn;let Ge=Me.current.instance;(xn=Ge==null?void 0:Ge.getAction)==null||xn.call(Ge,"editor.action.formatDocument").run()});return window.updateMonacoValue=Dn=>{Sn(Dn)},Qn},[]),(0,oe.useEffect)(()=>{var Qn;let Dn=Me.current.instance;Pr.current&&clearTimeout(Pr.current),Pr.current=setTimeout(()=>{Ur()},500),Vt&&(Vt!=null&&Vt.length)&&((Qn=Dn==null?void 0:Dn.updateOptions)==null||Qn.call(Dn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Vt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Vt,Fr,Me.current]),(0,oe.useEffect)(()=>{if(ri&&Me.current&&Me.current.instance){let Dn=Me.current.instance;Dn.changeViewZones(function(xn){var Ge=document.createElement("div");Ge.style.padding="10px 20px",Ge.style.width="calc(100% - 20px)",Ge.className="my-error-line-wrp",Ge.innerHTML=Or,xn.addZone({afterLineNumber:ri||11,heightInLines:3,domNode:Ge})});var Qn={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}};Dn.addOverlayWidget(Qn),Dn.revealPositionInCenter({lineNumber:20,column:1})}},[ri,Me.current,Fr]);const Tr=(Qn="",Dn)=>{if(!Qn||Qn.trim()==="")return!0;const Ge=Me.current.instance.getModel().getLineTokens(Dn);let Jr=!1;for(let Hr=0;Hr<2;Hr++)Ge.getStandardTokenType(Hr)===1&&(Jr=!0);return Jr};(0,oe.useEffect)(()=>{var Qn;const Dn=(Qn=Me.current)==null?void 0:Qn.instance;if(Dn&&Fr&&er){const xn=Dn.onDidBlurEditorWidget(()=>{Vr.current=!1}),Ge=Dn.onDidFocusEditorText(()=>{Vr.current=!0});return()=>{xn.dispose(),Ge.dispose()}}},[Me.current,Fr,er]),(0,oe.useEffect)(()=>{var Qn;if((Qn=Me.current)!=null&&Qn.instance&&Fr&&ui){let Dn=Me.current.instance,xn=Dn.getModel();if(!xn)return;(()=>{var Ln;let Xr=[],fi=[];const wi=xn.getAllDecorations();for(let Ni of wi)Ni.options.className==="highlighted-line"&&(Xr.push((Ln=Ni==null?void 0:Ni.range)==null?void 0:Ln.startLineNumber),fi.push(Ni==null?void 0:Ni.id));if(Nn===Xr[0])return;xn.deltaDecorations(fi,[]);const ai=xn.getLineCount();Nn&&Nn<=ai&&(Dn.deltaDecorations([],[{range:new lt.Range(Nn,1,Nn,xn.getLineMaxColumn(Nn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Dn.revealLineInCenter(Nn))})();const Jr=(Ln=!1)=>{var Xr;let fi=[],wi=[];const ai=xn.getAllDecorations();for(let Ni of ai)Ni.options.linesDecorationsClassName==="breakpoints-select"&&(fi.push((Xr=Ni==null?void 0:Ni.range)==null?void 0:Xr.startLineNumber),wi.push(Ni==null?void 0:Ni.id));if(Ln)return{lines:fi,ids:wi};lr(fi)},Hr=Ln=>jn(void 0,null,function*(){let Xr={range:new lt.Range(Ln,1,Ln,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xn.deltaDecorations([],[Xr]),Jr()}),Jn=Ln=>jn(void 0,null,function*(){let Xr=[];const fi=Dn.getLineDecorations(Ln);for(let wi of fi)wi.options.linesDecorationsClassName==="breakpoints-select"&&Xr.push(wi.id);yield xn.deltaDecorations(Xr,[]),Jr()}),hi=Ln=>{let Xr=Dn.getLineDecorations(Ln);for(let fi of Xr)if(fi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ln.isEqual)(qt,Jr(!0).lines)){xn.deltaDecorations(Jr(!0).ids,[]);const Ln=qt.map(Xr=>({range:new lt.Range(Xr,1,Xr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xn.deltaDecorations([],Ln)}const ti=Dn.onDidChangeModelContent(Ln=>{let Xr=Dn.getPosition();if(Xr){let fi=Xr.lineNumber;clearTimeout(Ti.current),Ti.current=setTimeout(()=>{Tr(xn.getLineContent(fi),fi)?Jn(fi):hi(fi)?(Jn(fi),Hr(fi)):Jr()},100)}}),Si=Dn.onMouseDown(Ln=>{var Xr,fi,wi;if(Ln.target.detail&&((wi=(fi=(Xr=Ln.target)==null?void 0:Xr.element)==null?void 0:fi.className)!=null&&wi.includes("line-numbers"))){let ai=Ln.target.position.lineNumber;if(Tr(xn.getLineContent(ai),ai))return;hi(ai)?Jn(ai):Hr(ai)}}),nr=Ln=>{let Xr={range:new lt.Range(Ln,1,Ln,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ei.current=Dn.deltaDecorations(ei.current,[Xr])},vn=()=>{ei.current=Dn.deltaDecorations(ei.current,[])},xi=Dn.onMouseMove(Ln=>{var Xr,fi,wi;if(vn(),Ln.target.detail&&((wi=(fi=(Xr=Ln.target)==null?void 0:Xr.element)==null?void 0:fi.className)!=null&&wi.includes("line-numbers"))){let ai=Ln.target.position.lineNumber;if(Tr(xn.getLineContent(ai),ai))return;nr(ai)}}),zi=Dn.onMouseLeave(()=>{vn()});return()=>{ti.dispose(),Si.dispose(),xi.dispose(),zi.dispose()}}},[Me.current,Fr,qt,Nn,ui,zt]),(0,oe.useEffect)(()=>{var Qn;(Qn=Me.current)!=null&&Qn.instance&&ui&&Me.current.instance.setPosition({lineNumber:0,column:0})},[Nn]);function Zr(){let Qn=Me.current.instance;if(Qn){const Dn=Qn.getSelection(),xn=Me.current.pastePos||{},Ge=new lt.Range(xn.startLineNumber||Dn.endLineNumber,xn.startColumn||Dn.endColumn,xn.endLineNumber||Dn.endLineNumber,xn.endColumn||Dn.endColumn);setTimeout(()=>{Qn.executeEdits("",[{range:Ge,text:""}])},300)}}function sr(Qn){(window.navigator.platform.match("Mac")?Qn.metaKey:Qn.ctrlKey)&&Qn.keyCode==83&&(Qn.preventDefault(),on())}const Rr=()=>{if(mn&&Me.current.instance){const Qn=Me.current.instance.getContentHeight();Qr(Qn<Pt?Pt:Qn)}else Qr(Pt)};function Cn(Qn){var Dn=document.createEvent("MouseEvents");Dn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Qn.dispatchEvent(Dn)}const fn=Qn=>{if(!Vr.current)return;const{keyCode:Dn,ctrlKey:xn,metaKey:Ge,target:Jr,type:Hr}=Qn;return(Hr==="paste"||(Dn===67||Dn===86)&&(Ge||xn))&&Jr.nodeName==="TEXTAREA"&&(un(),Qn.preventDefault()),!1};function Wr(Qn,Dn){var xn=window.URL||window.webkitURL||window,Ge=new Blob([Dn]),Jr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Jr.href=xn.createObjectURL(Ge),Jr.download=Qn,Cn(Jr)}(0,oe.useEffect)(()=>{Rr()},[Rr]),(0,oe.useEffect)(()=>{oi.current&&!Fr&&Promise.all([ae.e(8909),ae.e(7960)]).then(ae.bind(ae,71448)).then(Qn=>{try{lt=Qn,Me.current.instance=lt.editor.create(oi.current,{value:Vt,language:Xe(zt),theme:Mt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:or||!1}},gn);const Dn=Me.current.instance;let Jr=[...Ht.BH._menuItems].find(ti=>ti[0]._debugName=="EditorContext")[1],Hr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Jn=(ti,Si)=>{var nr,vn;let xi=ti._first;do Si.includes((vn=(nr=xi.element)==null?void 0:nr.command)==null?void 0:vn.id)&&ti._remove(xi);while(xi=xi.next)};if(ht(Dn,lt),setTimeout(()=>{Rr(),Me.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Wr(yr||"educoder.txt",Dn.getValue())}})},500),Me.current.subscription=Dn.onDidChangeModelContent(ti=>{Ii.current?clearTimeout(Di.current):(Rr(),Sn(Dn.getValue(),ti)),Di.current=setTimeout(()=>{Ii.current=!1},500)}),window.Monaco||nt(lt,Xe(zt)),er&&(Jn(Jr,Hr),oi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",fn),window.removeEventListener("paste",fn),window.addEventListener("keydown",fn),window.addEventListener("paste",fn)),window.Monaco=lt,Un&&Dn.onDidBlurEditorWidget(()=>{Un(Dn.getValue())}),tr&&Dn.onDidFocusEditorText(()=>{tr(Dn.getValue())}),er)try{Dn.onDidPaste(ti=>{const Si=Dn.getSelection(),nr=Me.current.pastePos||{},vn=new lt.Range(nr.startLineNumber||Si.endLineNumber,nr.startColumn||Si.endColumn,nr.endLineNumber||Si.endLineNumber,nr.endColumn||Si.endColumn);Dn.executeEdits("",[{range:ti.range,text:""}])})}catch(ti){}let hi=hn();return $r&&typeof $r=="string"&&new At($r,Dn,lt),dn(!0),()=>{const ti=Me.current.instance;ti.dispose();const Si=ti.getModel();Si&&Si.dispose(),Me.current.subscription&&Me.current.subscription.dispose(),hi.unobserve(oi.current)}}catch(Dn){}})},[]),(0,oe.useEffect)(()=>{if(Me.current.instance&&Fr)return document.addEventListener("keydown",sr,!1),()=>{document.removeEventListener("keydown",sr)}},[on,Fr]),(0,oe.useEffect)(()=>{let Qn=Me.current.instance;if(Qn&&Fr){let Dn=Xe(zt);lt.editor.setModelLanguage(Qn.getModel(),Dn)}},[zt,Fr]),(0,oe.useEffect)(()=>{Me.current.instance&&Fr&&lt.editor.setTheme(Mt)},[Mt,Fr]),(0,oe.useEffect)(()=>{let Qn=Me.current.instance;kr.current=Tn,Qn&&Fr&&(Qn.updateOptions(Xt({},Tn)),setTimeout(()=>{Qn.getModel().updateOptions(Xt({},Tn))},200))},[JSON.stringify(Tn),Fr]),(0,oe.useEffect)(()=>{let Qn=Me.current.instance;Qn&&Fr&&Qn.layout()},[On,Pt,Fr]);const[kt,Gn]=(0,oe.useState)(cr(On)),[vr,Qr]=(0,oe.useState)(cr(Pt)),nn=zn(Xt({},pn),{width:kt,height:vr,position:"relative"});return oe.createElement("div",{className:"my-monaco-editor",ref:oi,style:nn},Yt&&oe.createElement(gt.CopyToClipboard,{text:Vt,onCopy:()=>Qt.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(Zt.Z,{title:"\u590D\u5236\u4EE3\u7801"},oe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},oe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function bt({width:Wt="100%",height:yn="100%",original:On,modified:Pt,language:Vt,options:zt={}}){const pn=(0,oe.useRef)(),[Tn,gn]=(0,oe.useState)(null);function Mt(mn){let er;return pn.current&&(er=new Pe.Z(Sn=>{for(let ht of Sn)(ht.target.offsetHeight>0||ht.target.offsetWidth>0)&&mn.layout()}),er.observe(pn.current)),er}(0,oe.useEffect)(()=>(pn.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(mn=>{lt=mn;const er=lt.editor.createDiffEditor(pn.current,zn(Xt({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},zt),{wordWrap:!0}));gn(er);let Sn=Mt(er);return()=>{er.dispose();const ht=er.getModel();ht&&ht.dispose(),Sn.unobserve(pn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,oe.useEffect)(()=>{Tn&&Tn.setModel({original:lt.editor.createModel(On,Vt),modified:lt.editor.createModel(Pt,Vt)})},[On,Pt,Vt,Tn]);const Un=cr(Wt),Yt=cr(yn),on={width:Un,height:Yt};return oe.createElement("div",{className:"my-diff-editor",ref:pn,style:on})}},46133:function(Ze,Ee,ae){"use strict";ae.d(Ee,{jL:function(){return Ve},w9:function(){return wn},QD:function(){return Sn},cQ:function(){return gt},op:function(){return Mt},O5:function(){return Ti},_b:function(){return ri},t7:function(){return ue},Gi:function(){return jn},YG:function(){return zn},qp:function(){return St},vr:function(){return lr},qE:function(){return on},Je:function(){return be},wb:function(){return Ht},cq:function(){return lt},tp:function(){return Fe}});var oe=ae(59301),Pe={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"},Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ve=({dataSource:Vr=[],img:Fr,imgWidth:dn=346,title:hn,sunTitle:un,bannerExtraContent:Ur})=>oe.createElement("div",{className:Pe.banner},oe.createElement("div",{className:Pe.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,hn),oe.createElement("span",null,un)),Vr.length>0&&oe.createElement("div",{className:Pe.btns},Vr.map((Tr,Zr)=>oe.createElement("div",{key:Zr,onClick:Tr.click},Tr.name,Tr.sign?oe.createElement("img",{src:Ie,width:39}):null))),Ur),Fr&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:Fr,width:dn}))),Te={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"},ze=ae(92310),st=ae.n(ze),Qe=ae(89392),St=({dataSource:Vr=[],value:Fr,onChange:dn,onTitleChange:hn,className:un,title:Ur,titleWidth:Tr=41,style:Zr={},fontColor:sr="#6A7283",showCount:Rr})=>{const[Cn,fn]=(0,oe.useState)(0),[Wr,kt]=(0,oe.useState)(!1),Gn=(0,oe.useRef)(null),vr=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var Qr;Vr.length!==0&&(((Qr=Gn==null?void 0:Gn.current)==null?void 0:Qr.clientHeight)>97?fn(1):fn(0)),Vr.length===0&&fn(0),kt(!1)},[Vr]),oe.createElement("div",{className:st()(Te.row,un),style:Zr},oe.createElement("div",{onClick:(0,Qe.throttle)(()=>hn==null?void 0:hn(),2e3),style:{width:Tr,marginTop:Wr?12:4},className:`${Te.title} ${hn?"current":""}`},Ur),oe.createElement("div",{className:Wr?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},oe.createElement("div",{className:Te.bar,ref:vr,style:Cn>0?{height:Cn===1?97:"auto",overflow:Cn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Te.tag,ref:Gn},Vr==null?void 0:Vr.map(Qr=>oe.createElement("span",{onClick:()=>dn(Qr.id),key:Qr.id,style:{color:sr},className:Fr===Qr.id?Te.active:""},oe.createElement("span",{title:Qr.name,className:Te.name},Qr.name),!!Rr&&oe.createElement("span",{className:Te.num},Qr.count))))),!!Cn&&oe.createElement(oe.Fragment,null,Cn===1?oe.createElement("div",{onClick:()=>{var Qr;fn(2),((Qr=Gn==null?void 0:Gn.current)==null?void 0:Qr.clientHeight)>245?kt(!0):kt(!1)},className:Te.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{vr.current.scrollTop=0,fn(1),kt(!1)},className:Te.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},$e={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Fe=({dataSource:Vr=[],value:Fr,onChange:dn,className:hn,style:un={}})=>oe.createElement("div",{style:un,className:st()($e.tabs,hn)},Vr.map(Ur=>oe.createElement("span",{onClick:()=>dn(Ur.id),className:Fr===Ur.id?$e.active:"",key:Ur.id},Ur.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"},ee=ae(37568),ue=({dataSource:Vr=[],value:Fr="",onChange:dn,onInputChange:hn=()=>{},className:un,style:Ur={},placeholder:Tr,allowClear:Zr=!1})=>{var sr;const[Rr,Cn]=(0,oe.useState)(""),[fn,Wr]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var vr;let Qr=Fr;(vr=JSON.stringify(Fr))!=null&&vr.includes("{")&&(Cn(Fr.id),Qr=Fr.value||"");try{Wr(decodeURIComponent(Qr||""))}catch(nn){Wr(decodeURIComponent(Qr||""))}},[Fr]);const kt=()=>{dn(encodeURIComponent(fn),Rr||null)},Gn=vr=>{vr!==Rr&&(Cn(vr),dn(encodeURIComponent(fn),vr))};return oe.createElement("div",{className:st()(te.input,un),style:Ur},!!Vr.length&&oe.createElement("div",{className:te.dropdown},oe.createElement("div",{className:te.text},(sr=Vr.find(vr=>vr.id===Rr))==null?void 0:sr.name,oe.createElement("i",{className:"iconfont icon-zhankai4"}),oe.createElement("b",{className:te.b1}),oe.createElement("b",{className:te.b2})),oe.createElement("div",{className:te.menu},Vr.map((vr,Qr)=>oe.createElement("div",{key:Qr,onClick:()=>Gn(vr.id)},vr.name)))),oe.createElement(ee.default,{onPressEnter:kt,value:fn,onChange:vr=>{Wr(vr.target.value),hn(encodeURIComponent(vr.target.value),Rr||null)},bordered:!1,placeholder:Tr}),oe.createElement("i",{onClick:kt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},fe={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"},be=({value:Vr,onChange:Fr,className:dn,total:hn,pageSize:un,style:Ur={}})=>{const Tr=Vr<2,Zr=Vr>=Math.ceil(hn/un);return hn<=un?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:st()(fe.quickPager,dn),style:Ur},oe.createElement("div",{onClick:()=>{Tr||Fr(Vr-1,"prev")},className:Tr?fe.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{Zr||Fr(Vr+1,"next")},className:Zr?fe.disabled:""},"\u4E0B\u4E00\u9875"))},Ae={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"},De=ae(29787),We=ae(25399),nt=ae(58018),qe=ae(12242),ot=ae(59895),mt=ae(96908),at=ae(57177),vt=ae(81378),wt=ae(12635),Ht=({className:Vr,dataSource:Fr=[],col:dn=4,right:hn,bottom:un=23,precision:Ur=0,wrapWidth:Tr=1200,trackEventItems:Zr,loading:sr})=>{const Rr=Math.floor((Tr-(dn-1)*hn)/dn);return oe.createElement(De.Z,{spinning:sr},oe.createElement("div",{className:st()(Ae.list,Vr)},!!Fr.length&&Fr.map((Cn,fn)=>{const{name:Wr,id:kt,identifier:Gn,power:vr,cover_image_id:Qr,pic:nn}=Cn;return oe.createElement("div",{className:Ae.wrap,key:kt,style:{width:Rr,marginRight:(1+fn)%dn===0?0:hn+Ur,marginBottom:un}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Gn}/challenges`,className:Ae.li,onClick:Qn=>{Qn.preventDefault(),Zr&&(0,ot.L9)([Zr]),vr&&(0,ot.xg)(`/shixuns/${Gn}/challenges`)}},oe.createElement("div",{className:Ae.img},oe.createElement("img",{className:Ae.cover,src:`${nn}`}),Cn.is_jupyter&&oe.createElement("img",{className:Ae.sign,src:mt}),Cn.is_jupyter_lab&&oe.createElement("img",{className:Ae.sign,src:at}),Cn.is_unity_3d&&oe.createElement("img",{className:Ae.sign,src:vt})),oe.createElement("div",{className:Ae.name},oe.createElement(We.Z,{title:Wr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Ae.e},Wr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Ae.tags},oe.createElement(We.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,Cn.challenges_count))),!!Cn.myshixuns_count&&oe.createElement(We.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,Cn.myshixuns_count))),oe.createElement(We.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,Cn.level))),oe.createElement("div",{className:Ae.rate},oe.createElement(nt.Z,{allowHalf:!0,disabled:!0,defaultValue:Cn.score_info}),oe.createElement("span",null,"\xA0",Cn.score_info?`${Cn.score_info}\u5206`:"5\u5206")))),!vr&&oe.createElement("div",{className:Ae.lockWrap},oe.createElement("img",{src:`${qe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Fr.length&&oe.createElement(wt.Z,null)))},Qt={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"},Zt=ae(69669),ln=ae(59301),gt=({className:Vr,dataSource:Fr=[],col:dn=4,right:hn,bottom:un=23,precision:Ur=0,wrapWidth:Tr=1200,trackEventItems:Zr,loading:sr,onRemove:Rr=()=>{},isCurrent:Cn=!0,showAlias:fn=!1})=>{const Wr=Math.floor((Tr-(dn-1)*hn)/dn),kt=[{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 ln.createElement(De.Z,{spinning:sr},ln.createElement("div",{className:st()(Qt.list,Vr)},!!(Fr!=null&&Fr.length)&&(Fr==null?void 0:Fr.map((Gn,vr)=>{var Qr;const{name:nn,id:Qn,identifier:Dn,featured:xn,school_name:Ge,image_url:Jr,excellent:Hr,is_plan:Jn}=Gn;return ln.createElement("div",{key:Qn,className:Qt.wrap,style:{width:Wr,marginRight:(1+vr)%dn===0?0:hn+Ur,marginBottom:un}},ln.createElement("a",{className:Qt.li,onClick:hi=>{hi.preventDefault(),hi.stopPropagation(),Zr&&(0,ot.L9)([Zr]),(0,ot.xg)(`/paths/${Dn}`)}},ln.createElement("div",{className:Qt.img},ln.createElement("img",{className:Qt.cover,src:`${Jr}`}),Cn&&(0,Zt.bg)()&&(Gn==null?void 0:Gn.studying)&&ln.createElement("div",{className:`${Qt.movebq} user-path-items`,onClick:hi=>{hi.stopPropagation(),Rr(Gn)}},ln.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ln.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Qr=Gn==null?void 0:Gn.subject_tags)==null?void 0:Qr.map((hi,ti)=>{var Si,nr;if(ti===0){const xi=(Si=kt.find(zi=>zi.name==hi))==null?void 0:Si.swimg;return ln.createElement("img",{className:Qt.sign,src:xi,style:{left:"-4px"}})}const vn=(nr=kt.find(xi=>xi.name==hi))==null?void 0:nr.ptimg;return ln.createElement("img",{className:Qt.sign,src:vn,style:{left:`${48+52*(ti-1)+2*ti}px`}})}),ln.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Gn==null?void 0:Gn.excellent)&&ln.createElement("div",{className:Qt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ln.createElement("div",{className:Qt.name},ln.createElement(We.Z,{title:fn&&(Gn!=null&&Gn.excellent_alias_name)?ln.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${nn}`,ln.createElement("br",null),ln.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Gn==null?void 0:Gn.excellent_alias_name}`)):nn},ln.createElement("span",{className:Qt.e},fn&&(Gn==null?void 0:Gn.excellent_alias_name)||nn))),ln.createElement(We.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ge}`},ln.createElement("div",{className:Qt.unit},ln.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ge)),ln.createElement("div",{className:Qt.tags},ln.createElement("div",null,ln.createElement(We.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ln.createElement("span",null,ln.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ln.createElement("span",null,Gn.stages_count))),ln.createElement(We.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ln.createElement("span",null,ln.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ln.createElement("span",null,Gn.members_count)))))))})),!Fr.length&&ln.createElement(wt.Z,null)))},ct={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"},Jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",sn=ae(59301),wn=({className:Vr,dataSource:Fr=[],col:dn=4,right:hn,bottom:un=23,precision:Ur=0,wrapWidth:Tr=1200,trackEventItems:Zr,loading:sr,handleVery:Rr=()=>!0})=>{const Cn=Math.floor((Tr-(dn-1)*hn)/dn);return sn.createElement(De.Z,{spinning:sr},sn.createElement("div",{className:st()(ct.list,Vr)},!!Fr.length&&Fr.map((fn,Wr)=>{const{subject_identifier:kt,id:Gn,identifier:vr,power:Qr}=fn,nn=fn.is_public!=0&&fn.is_public;return sn.createElement("div",{className:ct.wrap,key:Gn,style:{width:Cn,marginRight:(1+Wr)%dn===0?0:hn+Ur,marginBottom:un}},sn.createElement("a",{className:ct.li,onClick:Qn=>{Qn.preventDefault(),Rr(fn==null?void 0:fn.first_category_url)&&(Zr&&(0,ot.L9)([Zr]),(0,ot.xg)(fn.first_category_url))}},sn.createElement("div",{className:ct.top},sn.createElement(We.Z,{title:fn.name},sn.createElement("div",{className:ct.name},fn.name)),sn.createElement("img",{className:ct.img,src:qe.Z.IMG_SERVER+"/images/"+fn.avatar_url}),sn.createElement("div",{className:ct.text,title:fn.creator},fn.creator),kt&&sn.createElement("div",{className:ct.btns},sn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),sn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),nn&&sn.createElement("div",{className:ct.sign},"\u516C\u5F00")),sn.createElement("div",{className:ct.bottom},fn.visits>0&&sn.createElement(We.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-liulanyan"}),sn.createElement("span",null,fn.visits))),fn.course_members_count>0&&sn.createElement(We.Z,{title:"\u6210\u5458",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-chengyuan"}),fn.course_members_count)),fn.tasks_count>0&&sn.createElement(We.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-zuoye"}),fn.tasks_count)),fn.is_end?sn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):sn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!fn.is_accessible&&sn.createElement("div",{className:ct.lockWrap},sn.createElement("img",{src:`${qe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),sn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Fr.length&&sn.createElement(wt.Z,null)))},bn={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=ae(71570),zn=({dataSource:Vr=[],value:Fr,onChange:dn,className:hn,style:un={},tabBarExtraContent:Ur})=>oe.createElement("div",{className:st()(bn.tabs,hn),style:un},oe.createElement("div",{className:bn.tabsWrap},Vr.map((Tr,Zr)=>!(Tr!=null&&Tr.hide)&&oe.createElement("aside",{className:bn.tab,onClick:()=>{dn(Tr.id),Tr.link&&_n.history.push(Tr.link)},key:Zr},oe.createElement("div",{className:Fr===Tr.id?bn.active:""},Tr.name),(Tr==null?void 0:Tr.resetCount)==null&&(Tr==null?void 0:Tr.total)!==void 0&&oe.createElement("span",null,"\uFF08",Tr==null?void 0:Tr.total,"\uFF09"),(Tr==null?void 0:Tr.resetCount)!==void 0&&(Tr==null?void 0:Tr.total)!==void 0&&oe.createElement(We.Z,{title:(Tr==null?void 0:Tr.tip)!=null?Tr==null?void 0:Tr.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},Tr==null?void 0:Tr.resetCount),"/",oe.createElement("span",null,Tr==null?void 0:Tr.total),"\uFF09"))))),oe.createElement("div",{className:bn.tabBar},Ur)),jn=({className:Vr,style:Fr={},children:dn})=>oe.createElement("div",{className:st()(Vr),style:Fr},dn),cr={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"},it=ae(75727),_e=ae(93041);const Re=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var lt=({sortValue:Vr,dropValue:Fr,className:dn,onSort:hn,onDrop:un,dataSource:Ur=Re})=>{var Tr;return oe.createElement("div",{className:st()(cr.orderWrap,dn)},oe.createElement(it.Z,{dropdownRender:()=>oe.createElement(_e.default,null,Ur.map((Zr,sr)=>oe.createElement(_e.default.Item,{key:sr,onClick:()=>un(Zr.id)},Zr.name)))},oe.createElement("span",{className:cr.orderTextWrap},(Tr=Ur.find(Zr=>Fr===Zr.id))==null?void 0:Tr.name)),oe.createElement("span",{className:cr.orderIconWrap},oe.createElement("span",{className:cr.orderAsc},oe.createElement("i",{className:Vr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${cr.cursorPointer} ${cr.active}`:`iconfont icon-sanjiaoxing-up font12 ${cr.cursorPointer}`,onClick:()=>hn(Vr==="asc"?"desc":"asc")})),oe.createElement("span",{className:cr.orderDesc},oe.createElement("i",{className:Vr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${cr.cursorPointer} ${cr.active}`:`iconfont icon-sanjiaoxing-down font12 ${cr.cursorPointer}`,onClick:()=>hn(Vr==="asc"?"desc":"asc")}))))},Be={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"},bt=ae(99571),Wt=Object.defineProperty,yn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Vt=(Vr,Fr,dn)=>Fr in Vr?Wt(Vr,Fr,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Vr[Fr]=dn,zt=(Vr,Fr)=>{for(var dn in Fr||(Fr={}))On.call(Fr,dn)&&Vt(Vr,dn,Fr[dn]);if(yn)for(var dn of yn(Fr))Pt.call(Fr,dn)&&Vt(Vr,dn,Fr[dn]);return Vr},pn=(Vr,Fr)=>{var dn={};for(var hn in Vr)On.call(Vr,hn)&&Fr.indexOf(hn)<0&&(dn[hn]=Vr[hn]);if(Vr!=null&&yn)for(var hn of yn(Vr))Fr.indexOf(hn)<0&&Pt.call(Vr,hn)&&(dn[hn]=Vr[hn]);return dn},Tn=(Vr,Fr,dn)=>new Promise((hn,un)=>{var Ur=sr=>{try{Zr(dn.next(sr))}catch(Rr){un(Rr)}},Tr=sr=>{try{Zr(dn.throw(sr))}catch(Rr){un(Rr)}},Zr=sr=>sr.done?hn(sr.value):Promise.resolve(sr.value).then(Ur,Tr);Zr((dn=dn.apply(Vr,Fr)).next())}),Mt=Vr=>{var Fr=Vr,{className:dn,style:hn,children:un,loading:Ur=!1,openLoading:Tr,onClick:Zr=()=>{},size:sr="middle",shape:Rr="round"}=Fr,Cn=pn(Fr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[fn,Wr]=(0,oe.useState)(!1);return oe.createElement(bt.ZP,zt({onClick:(0,Qe.throttle)(kt=>Tn(void 0,null,function*(){Tr&&Wr(!0);try{yield Zr(kt)}catch(Gn){console.log("error",Gn)}Tr&&Wr(!1)}),2e3,{leading:!0,trailing:!1}),className:st()(Be.btn,Be[`${sr}-${Rr}`],dn),style:hn,size:sr,shape:Rr,loading:fn||Ur},Cn),un)},Un={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"},on=({className:Vr,style:Fr,children:dn=null,onClick:hn,title:un})=>oe.createElement("div",{className:st()(Un.head,Vr),style:Fr},oe.createElement("span",{className:"primary-hover",onClick:hn},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:un},un),oe.createElement("div",{className:Un.node},dn)),mn={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"},Sn=({confirmShow:Vr=!0,confirmTitle:Fr,confirmClick:dn,cancelShow:hn=!0,cancelTitle:un,cancelClick:Ur,className:Tr,style:Zr,confirmLoading:sr=!1})=>oe.createElement("div",{className:st()(mn.btns,Tr),style:Zr},Vr&&oe.createElement(bt.ZP,{loading:sr,onClick:dn,type:"primary",className:mn.confirm},Fr),hn&&oe.createElement(bt.ZP,{onClick:Ur,className:mn.cancel},un)),ht={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"},lr=({className:Vr,style:Fr={},LeftContent:dn,children:hn,RightContent:un})=>oe.createElement("div",{className:st()(ht.fixedBottom,Vr),style:Fr},oe.createElement("div",{className:ht.wrap},oe.createElement("div",{className:ht.left},dn),oe.createElement("div",{className:ht.center},hn),oe.createElement("div",{className:ht.right},un))),qt={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"},ri=({className:Vr,style:Fr={},dataSource:dn=[]})=>oe.createElement("div",{className:st()(qt.crumbs,Vr),style:Fr},dn.map((hn,un)=>un<dn.length-1?oe.createElement(oe.Fragment,{key:un},hn.path||hn.onClick?oe.createElement("span",{className:qt.hover,onClick:hn!=null&&hn.onClick?hn.onClick:()=>_n.history.push(hn.path)},hn.name):oe.createElement("span",null,hn.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:un,style:{color:"#5F6368"}},hn.name))),Or=ae(11938),Nn=Object.defineProperty,ui=Object.defineProperties,$r=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,Me=(Vr,Fr,dn)=>Fr in Vr?Nn(Vr,Fr,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Vr[Fr]=dn,kr=(Vr,Fr)=>{for(var dn in Fr||(Fr={}))Kr.call(Fr,dn)&&Me(Vr,dn,Fr[dn]);if(or)for(var dn of or(Fr))oi.call(Fr,dn)&&Me(Vr,dn,Fr[dn]);return Vr},Pr=(Vr,Fr)=>ui(Vr,$r(Fr)),ei=(Vr,Fr)=>{var dn={};for(var hn in Vr)Kr.call(Vr,hn)&&Fr.indexOf(hn)<0&&(dn[hn]=Vr[hn]);if(Vr!=null&&or)for(var hn of or(Vr))Fr.indexOf(hn)<0&&oi.call(Vr,hn)&&(dn[hn]=Vr[hn]);return dn};const{Countdown:Ii}=Or.default;var Ti=Vr=>{var Fr=Vr,{onChange:dn}=Fr,hn=ei(Fr,["onChange"]);const[un,Ur]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof un=="number"&&un>=0&&dn(un)},[un]);const Tr=Zr=>{const sr=Math.floor(Zr/1e3);Ur(sr)};return oe.createElement(Ii,Pr(kr({},hn),{onChange:Tr}))}},23206:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(59301);function Pe(Ie,ke){const Ve=(0,oe.useRef)();(0,oe.useEffect)(()=>{Ve.current=Ie}),(0,oe.useEffect)(()=>{function Te(){Ve.current()}if(ke!==null){let ze=setInterval(Te,ke);return()=>clearInterval(ze)}},[ke])}},67663:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return te}});var oe=ae(59301),Pe=ae(6767),Ie=ae(62957),ke=ae(17149),Ve=ae(14566),Te=ae(99571),ze=ae(12242),st=ae(59895),Qe=ae(24092),Ue=ae(71570),St={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},$e=ae(59301),Dt=(ee,he,ue)=>new Promise((fe,me)=>{var be=We=>{try{De(ue.next(We))}catch(nt){me(nt)}},Ae=We=>{try{De(ue.throw(We))}catch(nt){me(nt)}},De=We=>We.done?fe(We.value):Promise.resolve(We.value).then(be,Ae);De((ue=ue.apply(ee,he)).next())}),te=({visible:ee,onOk:he,onCancel:ue,sub_discipline_id:fe=[]})=>{const[me,be]=(0,oe.useState)([]),[Ae,De]=(0,oe.useState)(!1),We=(0,Ue.useParams)(),[nt,qe]=(0,oe.useState)([]),[ot,mt]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{ee?at():(mt([]),be([]),De(!1))},[ee]);const at=()=>Dt(void 0,null,function*(){const Zt=yield(0,Qe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});qe(Zt.disciplines||[]),mt((fe==null?void 0:fe.length)>0?fe:[])}),vt=()=>{if((ot==null?void 0:ot.length)===0)return Pe.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",ot),De(!0),he(me,ot[1],()=>{De(!1)})},wt=()=>{ue()},At=()=>{const Zt=`${ze.Z.API_SERVER}/api/courses/${We.coursesId}/exercises/down_template`;(0,st.Nd)(null,Zt)},Ht=Zt=>{const ln={name:Zt.name,uid:Zt.uid,file:Zt};return be([ln]),!1},Qt=()=>{be([])};return $e.createElement(Ie.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:ee,onOk:vt,centered:!0,wrapClassName:St.customModal,onCancel:wt,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:St.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:Ae},$e.createElement("div",{className:St.content},$e.createElement("aside",null,$e.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),$e.createElement("ul",null,$e.createElement("li",null,$e.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),$e.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:At},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),$e.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:At,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),$e.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),$e.createElement("li",{className:St.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),$e.createElement("li",{className:St.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),$e.createElement("li",{className:St.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),$e.createElement("li",{className:St.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),$e.createElement("aside",{style:{marginTop:22}},$e.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),$e.createElement("ul",{style:{flex:1}},$e.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),ee&&$e.createElement($e.Fragment,null,$e.createElement(ke.Z,{value:ot,className:St.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:nt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(Zt,ln)=>{mt(Zt||[])}}),$e.createElement("br",null),$e.createElement(Ve.default,{action:`${ze.Z.API_SERVER}/api/attachments.json`,beforeUpload:Ht,onRemove:Qt,withCredentials:!0,fileList:me,accept:".xls,.xlsx",showUploadList:!1},$e.createElement(Te.ZP,{className:St.upload,type:"primary",icon:$e.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),me.map((Zt,ln)=>$e.createElement("div",{key:ln,className:St.fileList},$e.createElement("span",{className:St.fileName},Zt==null?void 0:Zt.name),$e.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Qt})))))))}},45688:function(Ze,Ee,ae){"use strict";ae.d(Ee,{h:function(){return oe}});var oe=(Pe=>(Pe[Pe.NOMATCH=-1]="NOMATCH",Pe[Pe.OK=0]="OK",Pe[Pe.TIMEOUT=2]="TIMEOUT",Pe[Pe.PODFAILURE=3]="PODFAILURE",Pe[Pe.COMPILEFAILURE=4]="COMPILEFAILURE",Pe[Pe.EXECUTEFAILURE=5]="EXECUTEFAILURE",Pe[Pe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Pe))(oe||{})},8846:function(Ze,Ee,ae){"use strict";ae.d(Ee,{H7:function(){return te},MK:function(){return Fe},MU:function(){return Ue},X6:function(){return $e},bM:function(){return Qe},fi:function(){return ee},fu:function(){return st},n4:function(){return he},rX:function(){return Dt},vl:function(){return ue},zO:function(){return St}});var oe=ae(24092),Pe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Te=(fe,me,be)=>me in fe?Pe(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,ze=(fe,me)=>{for(var be in me||(me={}))ke.call(me,be)&&Te(fe,be,me[be]);if(Ie)for(var be of Ie(me))Ve.call(me,be)&&Te(fe,be,me[be]);return fe};function st(fe,me){return(0,oe.U2)(`myproblems/${fe}.json`,ze({hidePopLogin:!0},me||{}))}function Qe(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_submit.json`,me)}function Ue(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_debug.json`,me)}function St(fe,me){return me.language&&(me.language=encodeURIComponent(me.language)),(0,oe.U2)(`myproblems/${fe}/submit_records.json`,me)}function $e(fe){return(0,oe.U2)("myproblems/record_detail.json",{id:fe})}function Dt(fe,me){return(0,oe.U2)(`myproblems/${fe}/result.json`,{mode:me})}function Fe(fe,me){return(0,oe.v_)(`myproblems/${fe}/add_notes.json`,me)}function te(fe,me){return(0,oe.v_)(`myproblems/${fe}/restore_initial_code.json`,me)}function ee(fe){return(0,oe.v_)(`myproblems/${fe}/sync_code.json`)}function he(fe,me){return(0,oe.v_)(`myproblems/${fe}/update_code.json`,me)}function ue(fe,me){return(0,oe.v_)(`discusses/${fe}/plus.json`,me)}},72477:function(Ze,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(25399),Ie=ae(37568),ke=ae(6767),Ve=ae(47965),Te=ae(59301),ze=(Qe,Ue,St)=>new Promise(($e,Dt)=>{var Fe=he=>{try{ee(St.next(he))}catch(ue){Dt(ue)}},te=he=>{try{ee(St.throw(he))}catch(ue){Dt(ue)}},ee=he=>he.done?$e(he.value):Promise.resolve(he.value).then(Fe,te);ee((St=St.apply(Qe,Ue)).next())});const st=({defaultValue:Qe,onFinish:Ue})=>{const[St,$e]=(0,oe.useState)(!1),[Dt,Fe]=(0,oe.useState)(Qe);return(0,oe.useEffect)(()=>{Fe(Qe)},[Qe]),Te.createElement("div",null,St?Te.createElement(Ie.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Dt,onChange:te=>{Fe(te.target.value)},onBlur:()=>ze(void 0,null,function*(){var te;if(((te=Dt==null?void 0:Dt.replaceAll(" ",""))==null?void 0:te.length)<=0){ke.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ue(Dt))&&$e(!1)}),onPressEnter:()=>ze(void 0,null,function*(){var te;if(((te=Dt==null?void 0:Dt.replaceAll(" ",""))==null?void 0:te.length)<=0){ke.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ue(Dt))&&$e(!1)})}):Te.createElement("div",{className:Ve.Z.title},Dt,Te.createElement(Pe.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Te.createElement("i",{className:`${Ve.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>$e(!0)}))))};Ee.Z=st},32572:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ue}});var oe=ae(62957),Pe={ul:"ul___TdfYY"},Ie=ae(32637),ke=ae(59301),Ve=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,st=(St,$e)=>{var Dt={};for(var Fe in St)Te.call(St,Fe)&&$e.indexOf(Fe)<0&&(Dt[Fe]=St[Fe]);if(St!=null&&Ve)for(var Fe of Ve(St))$e.indexOf(Fe)<0&&ze.call(St,Fe)&&(Dt[Fe]=St[Fe]);return Dt},Ue=St=>{var $e=St,{open:Dt,onCancel:Fe}=$e,te=st($e,["open","onCancel"]);return ke.createElement(oe.default,{centered:!0,open:Dt,title:ke.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Fe,footer:null},ke.createElement("div",null,ke.createElement("div",{className:"tc"},ke.createElement("img",{className:"mt10",src:Ie,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),ke.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),ke.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),ke.createElement("div",{style:{color:"#333"},className:"pt30 font14"},ke.createElement("ul",{className:Pe.ul},ke.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),ke.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),ke.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},22951:function(Ze,Ee,ae){"use strict";ae.d(Ee,{I:function(){return Pe}});var oe=ae(59301);const Pe=()=>{const[Ie,ke]=(0,oe.useState)("hidden");return{overflow:Ie,handleMouseEnter:()=>ke("auto"),handleMouseLeave:()=>ke("hidden")}}},49405:function(Ze,Ee,ae){"use strict";ae.d(Ee,{AL:function(){return be},Iy:function(){return St},Qv:function(){return Fe},ez:function(){return me},jb:function(){return $e}});var oe=ae(32834),Pe=ae.n(oe),Ie=ae(11690),ke=ae.n(Ie);let Ve=1;function Te(qe,ot){const mt=qe.match(/^(\s+)(?:```)/);if(mt===null)return ot;const at=mt[1];return ot.split(`
`).map(vt=>{const wt=vt.match(/^\s+/);if(wt===null)return vt;const[At]=wt;return At.length>=at.length?vt.slice(at.length):vt}).join(`
`)}let ze=[],st=["<ul>"];const Qe=new(Pe()).Renderer,Ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function St(){ze.length=0,st=["<ul>"]}const $e={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Dt(qe,ot,mt,at){if(ot>=qe.length||qe[ot].level<=mt)return ot;var vt=qe[ot];at.push("<li><a href='#"+Ve+vt.anchor+"'>"+vt.text+"</a>"),ot++;var wt=[];return ot=Dt(qe,ot,vt.level,wt),wt.length>0&&(at.push("<ul>"),wt.forEach(function(At){at.push(At)}),at.push("</ul>")),at.push("</li>"),ot=Dt(qe,ot,mt,at),ot}function Fe(){return Dt(ze,0,0,st),st.push("</ul>"),st.join("")}const te={heading(qe){const ot=Ue.exec(qe);if(Ve+=1,ot)return{type:"heading",raw:ot[0],depth:ot[1].length,text:ot[2]}},fences(qe){const ot=this.rules.block.fences.exec(qe);if(ot){const mt=ot[0];let at=Te(mt,ot[3]||"");const vt=ot[2]?ot[2].trim():ot[2];if(["latex","katex","math"].indexOf(vt)>=0){const wt=ue(),At=at;at=wt,fe[wt]={type:"block",expression:At}}return{type:"code",raw:mt,lang:vt,text:at}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const ue=()=>`__special_katext_id_${he++}__`;let fe={};function me(){return fe}function be(){he=0,fe={}}function Ae(qe){return qe=qe.replace(ee,(ot,mt)=>{const at=ue();return fe[at]={type:"inline",expression:mt},at}),qe}const De=Qe.listitem;Qe.listitem=function(qe){return De(Ae(qe))};const We=Qe.paragraph;Qe.paragraph=function(qe){return We(Ae(qe))};const nt=Qe.tablecell;Qe.tablecell=function(qe,ot){return nt(Ae(qe),ot)},Qe.code=function(qe,ot,mt){const at=(ot||"").match(/\S*/)[0];return at?["latex","katex","math"].indexOf(at)>=0?`<p class='editormd-tex'>${qe}</p>`:`<pre class="prettyprint linenums"><code class="language-${ot}">${mt?qe:(0,Ie.escape)(qe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(mt?qe:(0,Ie.escape)(qe,!0))+"</code></pre>"},Qe.heading=function(qe,ot,mt){let at=this.options.headerPrefix+mt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ze.push({anchor:at,level:ot,text:qe}),"<h"+ot+' id="'+Ve+at+'">'+qe+"</h"+ot+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:te,renderer:Qe}),Ee.ZP=Pe()},99498:function(Ze,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){oe.defineOption("placeholder","",function(st,Qe,Ue){var St=Ue&&Ue!=oe.Init;if(Qe&&!St)st.on("blur",Ve),st.on("change",Te),st.on("swapDoc",Te),oe.on(st.getInputField(),"compositionupdate",st.state.placeholderCompose=function(){ke(st)}),Te(st);else if(!Qe&&St){st.off("blur",Ve),st.off("change",Te),st.off("swapDoc",Te),oe.off(st.getInputField(),"compositionupdate",st.state.placeholderCompose),Pe(st);var $e=st.getWrapperElement();$e.className=$e.className.replace(" CodeMirror-empty","")}Qe&&!st.hasFocus()&&Ve(st)});function Pe(st){st.state.placeholder&&(st.state.placeholder.parentNode.removeChild(st.state.placeholder),st.state.placeholder=null)}function Ie(st){Pe(st);var Qe=st.state.placeholder=document.createElement("pre");Qe.style.cssText="height: 0; overflow: visible",Qe.style.direction=st.getOption("direction"),Qe.className="CodeMirror-placeholder CodeMirror-line-like";var Ue=st.getOption("placeholder");typeof Ue=="string"&&(Ue=document.createTextNode(Ue)),Qe.appendChild(Ue),st.display.lineSpace.insertBefore(Qe,st.display.lineSpace.firstChild)}function ke(st){setTimeout(function(){var Qe=!1,Ue=st.getInputField();Ue.nodeName=="TEXTAREA"?Qe=!Ue.value:st.lineCount()==1&&(Qe=!/[^\u200b]/.test(Ue.querySelector(".CodeMirror-line").textContent)),Qe?Ie(st):Pe(st)},20)}function Ve(st){ze(st)&&Ie(st)}function Te(st){var Qe=st.getWrapperElement(),Ue=ze(st);Qe.className=Qe.className.replace(" CodeMirror-empty","")+(Ue?" CodeMirror-empty":""),Ue?Ie(st):Pe(st)}function ze(st){return st.lineCount()===1&&st.getLine(0)===""}})},25717:function(Ze,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ie=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(te,ee,he){he&&he!=oe.Init&&(te.removeKeyMap(Ve),te.state.closeBrackets=null),ee&&(Te(ke(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(Ve))});function ke(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:Pe[ee]}var Ve={Backspace:Qe,Enter:Ue};function Te(te){for(var ee=0;ee<te.length;ee++){var he=te.charAt(ee),ue="'"+he+"'";Ve[ue]||(Ve[ue]=ze(he))}}Te(Pe.pairs+"`");function ze(te){return function(ee){return $e(ee,te)}}function st(te){var ee=te.state.closeBrackets;if(!ee||ee.override)return ee;var he=te.getModeAt(te.getCursor());return he.closeBrackets||ee}function Qe(te){var ee=st(te);if(!ee||te.getOption("disableInput"))return oe.Pass;for(var he=ke(ee,"pairs"),ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=Dt(te,ue[fe].head);if(!me||he.indexOf(me)%2!=0)return oe.Pass}for(var fe=ue.length-1;fe>=0;fe--){var be=ue[fe].head;te.replaceRange("",Ie(be.line,be.ch-1),Ie(be.line,be.ch+1),"+delete")}}function Ue(te){var ee=st(te),he=ee&&ke(ee,"explode");if(!he||te.getOption("disableInput"))return oe.Pass;for(var ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=Dt(te,ue[fe].head);if(!me||he.indexOf(me)%2!=0)return oe.Pass}te.operation(function(){var be=te.lineSeparator()||`
`;te.replaceSelection(be+be,null),te.execCommand("goCharLeft"),ue=te.listSelections();for(var Ae=0;Ae<ue.length;Ae++){var De=ue[Ae].head.line;te.indentLine(De,null,!0),te.indentLine(De+1,null,!0)}})}function St(te){var ee=oe.cmpPos(te.anchor,te.head)>0;return{anchor:new Ie(te.anchor.line,te.anchor.ch+(ee?-1:1)),head:new Ie(te.head.line,te.head.ch+(ee?1:-1))}}function $e(te,ee){var he=st(te);if(!he||te.getOption("disableInput"))return oe.Pass;var ue=ke(he,"pairs"),fe=ue.indexOf(ee);if(fe==-1)return oe.Pass;for(var me=ke(he,"closeBefore"),be=ke(he,"triples"),Ae=ue.charAt(fe+1)==ee,De=te.listSelections(),We=fe%2==0,nt,qe=0;qe<De.length;qe++){var ot=De[qe],mt=ot.head,at,vt=te.getRange(mt,Ie(mt.line,mt.ch+1));if(We&&!ot.empty())at="surround";else if((Ae||!We)&&vt==ee)Ae&&Fe(te,mt)?at="both":be.indexOf(ee)>=0&&te.getRange(mt,Ie(mt.line,mt.ch+3))==ee+ee+ee?at="skipThree":at="skip";else if(Ae&&mt.ch>1&&be.indexOf(ee)>=0&&te.getRange(Ie(mt.line,mt.ch-2),mt)==ee+ee){if(mt.ch>2&&/\bstring/.test(te.getTokenTypeAt(Ie(mt.line,mt.ch-2))))return oe.Pass;at="addFour"}else if(Ae){var wt=mt.ch==0?" ":te.getRange(Ie(mt.line,mt.ch-1),mt);if(!oe.isWordChar(vt)&&wt!=ee&&!oe.isWordChar(wt))at="both";else return oe.Pass}else if(We&&(vt.length===0||/\s/.test(vt)||me.indexOf(vt)>-1))at="both";else return oe.Pass;if(!nt)nt=at;else if(nt!=at)return oe.Pass}var At=fe%2?ue.charAt(fe-1):ee,Ht=fe%2?ee:ue.charAt(fe+1);te.operation(function(){if(nt=="skip")te.execCommand("goCharRight");else if(nt=="skipThree")for(var Qt=0;Qt<3;Qt++)te.execCommand("goCharRight");else if(nt=="surround"){for(var Zt=te.getSelections(),Qt=0;Qt<Zt.length;Qt++)Zt[Qt]=At+Zt[Qt]+Ht;te.replaceSelections(Zt,"around"),Zt=te.listSelections().slice();for(var Qt=0;Qt<Zt.length;Qt++)Zt[Qt]=St(Zt[Qt]);te.setSelections(Zt)}else nt=="both"?(te.replaceSelection(At+Ht,null),te.triggerElectric(At+Ht),te.execCommand("goCharLeft")):nt=="addFour"&&(te.replaceSelection(At+At+At+At,"before"),te.execCommand("goCharRight"))})}function Dt(te,ee){var he=te.getRange(Ie(ee.line,ee.ch-1),Ie(ee.line,ee.ch+1));return he.length==2?he:null}function Fe(te,ee){var he=te.getTokenAt(Ie(ee.line,ee.ch+1));return/\bstring/.test(he.type)&&he.start==ee.ch&&(ee.ch==0||!/\bstring/.test(te.getTokenTypeAt(ee)))}})},6313:function(Ze,Ee,ae){(function(oe){oe(ae(89780),ae(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(Qe,Ue,St){if(St!=oe.Init&&St&&Qe.removeKeyMap("autoCloseTags"),!!Ue){var $e={name:"autoCloseTags"};(typeof Ue!="object"||Ue.whenClosing!==!1)&&($e["'/'"]=function(Dt){return Te(Dt)}),(typeof Ue!="object"||Ue.whenOpening!==!1)&&($e["'>'"]=function(Dt){return ke(Dt)}),Qe.addKeyMap($e)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ie=["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 ke(Qe){if(Qe.getOption("disableInput"))return oe.Pass;for(var Ue=Qe.listSelections(),St=[],$e=Qe.getOption("autoCloseTags"),Dt=0;Dt<Ue.length;Dt++){if(!Ue[Dt].empty())return oe.Pass;var Fe=Ue[Dt].head,te=Qe.getTokenAt(Fe),ee=oe.innerMode(Qe.getMode(),te.state),he=ee.state,ue=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(he),fe=ue&&ue.name;if(!fe)return oe.Pass;var me=ee.mode.configuration=="html",be=typeof $e=="object"&&$e.dontCloseTags||me&&Pe,Ae=typeof $e=="object"&&$e.indentTags||me&&Ie;te.end>Fe.ch&&(fe=fe.slice(0,fe.length-te.end+Fe.ch));var De=fe.toLowerCase();if(!fe||te.type=="string"&&(te.end!=Fe.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&ue.close||te.string.indexOf("/")==Fe.ch-te.start-1||be&&ze(be,De)>-1||st(Qe,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(he)||[],fe,Fe,!0))return oe.Pass;var We=typeof $e=="object"&&$e.emptyTags;if(We&&ze(We,fe)>-1){St[Dt]={text:"/>",newPos:oe.Pos(Fe.line,Fe.ch+2)};continue}var nt=Ae&&ze(Ae,De)>-1;St[Dt]={indent:nt,text:">"+(nt?`
`:"")+"</"+fe+">",newPos:nt?oe.Pos(Fe.line+1,0):oe.Pos(Fe.line,Fe.ch+1)}}for(var qe=typeof $e=="object"&&$e.dontIndentOnAutoClose,Dt=Ue.length-1;Dt>=0;Dt--){var ot=St[Dt];Qe.replaceRange(ot.text,Ue[Dt].head,Ue[Dt].anchor,"+insert");var mt=Qe.listSelections().slice(0);mt[Dt]={head:ot.newPos,anchor:ot.newPos},Qe.setSelections(mt),!qe&&ot.indent&&(Qe.indentLine(ot.newPos.line,null,!0),Qe.indentLine(ot.newPos.line+1,null,!0))}}function Ve(Qe,Ue){for(var St=Qe.listSelections(),$e=[],Dt=Ue?"/":"</",Fe=Qe.getOption("autoCloseTags"),te=typeof Fe=="object"&&Fe.dontIndentOnSlash,ee=0;ee<St.length;ee++){if(!St[ee].empty())return oe.Pass;var he=St[ee].head,ue=Qe.getTokenAt(he),fe=oe.innerMode(Qe.getMode(),ue.state),me=fe.state;if(Ue&&(ue.type=="string"||ue.string.charAt(0)!="<"||ue.start!=he.ch-1))return oe.Pass;var be,Ae=fe.mode.name!="xml"&&Qe.getMode().name=="htmlmixed";if(Ae&&fe.mode.name=="javascript")be=Dt+"script";else if(Ae&&fe.mode.name=="css")be=Dt+"style";else{var De=fe.mode.xmlCurrentContext&&fe.mode.xmlCurrentContext(me);if(!De||De.length&&st(Qe,De,De[De.length-1],he))return oe.Pass;be=Dt+De[De.length-1]}Qe.getLine(he.line).charAt(ue.end)!=">"&&(be+=">"),$e[ee]=be}if(Qe.replaceSelections($e),St=Qe.listSelections(),!te)for(var ee=0;ee<St.length;ee++)(ee==St.length-1||St[ee].head.line<St[ee+1].head.line)&&Qe.indentLine(St[ee].head.line)}function Te(Qe){return Qe.getOption("disableInput")?oe.Pass:Ve(Qe,!0)}oe.commands.closeTag=function(Qe){return Ve(Qe)};function ze(Qe,Ue){if(Qe.indexOf)return Qe.indexOf(Ue);for(var St=0,$e=Qe.length;St<$e;++St)if(Qe[St]==Ue)return St;return-1}function st(Qe,Ue,St,$e,Dt){if(!oe.scanForClosingTag)return!1;var Fe=Math.min(Qe.lastLine()+1,$e.line+500),te=oe.scanForClosingTag(Qe,$e,null,Fe);if(!te||te.tag!=St)return!1;for(var ee=Dt?1:0,he=Ue.length-1;he>=0&&Ue[he]==St;he--)++ee;$e=te.to;for(var he=1;he<ee;he++){var ue=oe.scanForClosingTag(Qe,$e,null,Fe);if(!ue||ue.tag!=St)return!1;$e=ue.to}return!0}})},32855:function(Ze,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Pe=oe.Pos;function Ie(he,ue){return he.line-ue.line||he.ch-ue.ch}var ke="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",Ve=ke+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+ke+"]["+Ve+"]*)","g");function ze(he,ue,fe,me){this.line=ue,this.ch=fe,this.cm=he,this.text=he.getLine(ue),this.min=me?Math.max(me.from,he.firstLine()):he.firstLine(),this.max=me?Math.min(me.to-1,he.lastLine()):he.lastLine()}function st(he,ue){var fe=he.cm.getTokenTypeAt(Pe(he.line,ue));return fe&&/\btag\b/.test(fe)}function Qe(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function Ue(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function St(he){for(;;){var ue=he.text.indexOf(">",he.ch);if(ue==-1){if(Qe(he))continue;return}if(!st(he,ue+1)){he.ch=ue+1;continue}var fe=he.text.lastIndexOf("/",ue),me=fe>-1&&!/\S/.test(he.text.slice(fe+1,ue));return he.ch=ue+1,me?"selfClose":"regular"}}function $e(he){for(;;){var ue=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(ue==-1){if(Ue(he))continue;return}if(!st(he,ue+1)){he.ch=ue;continue}Te.lastIndex=ue,he.ch=ue;var fe=Te.exec(he.text);if(fe&&fe.index==ue)return fe}}function Dt(he){for(;;){Te.lastIndex=he.ch;var ue=Te.exec(he.text);if(!ue){if(Qe(he))continue;return}if(!st(he,ue.index+1)){he.ch=ue.index+1;continue}return he.ch=ue.index+ue[0].length,ue}}function Fe(he){for(;;){var ue=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(ue==-1){if(Ue(he))continue;return}if(!st(he,ue+1)){he.ch=ue;continue}var fe=he.text.lastIndexOf("/",ue),me=fe>-1&&!/\S/.test(he.text.slice(fe+1,ue));return he.ch=ue+1,me?"selfClose":"regular"}}function te(he,ue){for(var fe=[];;){var me=Dt(he),be,Ae=he.line,De=he.ch-(me?me[0].length:0);if(!me||!(be=St(he)))return;if(be!="selfClose")if(me[1]){for(var We=fe.length-1;We>=0;--We)if(fe[We]==me[2]){fe.length=We;break}if(We<0&&(!ue||ue==me[2]))return{tag:me[2],from:Pe(Ae,De),to:Pe(he.line,he.ch)}}else fe.push(me[2])}}function ee(he,ue){for(var fe=[];;){var me=Fe(he);if(!me)return;if(me=="selfClose"){$e(he);continue}var be=he.line,Ae=he.ch,De=$e(he);if(!De)return;if(De[1])fe.push(De[2]);else{for(var We=fe.length-1;We>=0;--We)if(fe[We]==De[2]){fe.length=We;break}if(We<0&&(!ue||ue==De[2]))return{tag:De[2],from:Pe(he.line,he.ch),to:Pe(be,Ae)}}}}oe.registerHelper("fold","xml",function(he,ue){for(var fe=new ze(he,ue.line,0);;){var me=Dt(fe);if(!me||fe.line!=ue.line)return;var be=St(fe);if(!be)return;if(!me[1]&&be!="selfClose"){var Ae=Pe(fe.line,fe.ch),De=te(fe,me[2]);return De&&Ie(De.from,Ae)>0?{from:Ae,to:De.from}:null}}}),oe.findMatchingTag=function(he,ue,fe){var me=new ze(he,ue.line,ue.ch,fe);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var be=St(me),Ae=be&&Pe(me.line,me.ch),De=be&&$e(me);if(!(!be||!De||Ie(me,ue)>0)){var We={from:Pe(me.line,me.ch),to:Ae,tag:De[2]};return be=="selfClose"?{open:We,close:null,at:"open"}:De[1]?{open:ee(me,De[2]),close:We,at:"close"}:(me=new ze(he,Ae.line,Ae.ch,fe),{open:We,close:te(me,De[2]),at:"open"})}}},oe.findEnclosingTag=function(he,ue,fe,me){for(var be=new ze(he,ue.line,ue.ch,fe);;){var Ae=ee(be,me);if(!Ae)break;var De=new ze(he,ue.line,ue.ch,fe),We=te(De,Ae.tag);if(We)return{open:Ae,close:We}}},oe.scanForClosingTag=function(he,ue,fe,me){var be=new ze(he,ue.line,ue.ch,me?{from:0,to:me}:null);return te(be,fe)}})},89780:function(Ze){(function(Ee,ae){Ze.exports=ae()})(this,function(){"use strict";var Ee=navigator.userAgent,ae=navigator.platform,oe=/gecko\/\d/i.test(Ee),Pe=/MSIE \d/.test(Ee),Ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee),ke=/Edge\/(\d+)/.exec(Ee),Ve=Pe||Ie||ke,Te=Ve&&(Pe?document.documentMode||6:+(ke||Ie)[1]),ze=!ke&&/WebKit\//.test(Ee),st=ze&&/Qt\/\d+\.\d+/.test(Ee),Qe=!ke&&/Chrome\//.test(Ee),Ue=/Opera\//.test(Ee),St=/Apple Computer/.test(navigator.vendor),$e=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ee),Dt=/PhantomJS/.test(Ee),Fe=!ke&&/AppleWebKit/.test(Ee)&&/Mobile\/\w+/.test(Ee),te=/Android/.test(Ee),ee=Fe||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ee),he=Fe||/Mac/.test(ae),ue=/\bCrOS\b/.test(Ee),fe=/win/i.test(ae),me=Ue&&Ee.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(Ue=!1,ze=!0);var be=he&&(st||Ue&&(me==null||me<12.11)),Ae=oe||Ve&&Te>=9;function De(re){return new RegExp("(^|\\s)"+re+"(?:$|\\s)\\s*")}var We=function(re,le){var ye=re.className,ve=De(le).exec(ye);if(ve){var xe=ye.slice(ve.index+ve[0].length);re.className=ye.slice(0,ve.index)+(xe?ve[1]+xe:"")}};function nt(re){for(var le=re.childNodes.length;le>0;--le)re.removeChild(re.firstChild);return re}function qe(re,le){return nt(re).appendChild(le)}function ot(re,le,ye,ve){var xe=document.createElement(re);if(ye&&(xe.className=ye),ve&&(xe.style.cssText=ve),typeof le=="string")xe.appendChild(document.createTextNode(le));else if(le)for(var Ke=0;Ke<le.length;++Ke)xe.appendChild(le[Ke]);return xe}function mt(re,le,ye,ve){var xe=ot(re,le,ye,ve);return xe.setAttribute("role","presentation"),xe}var at;document.createRange?at=function(re,le,ye,ve){var xe=document.createRange();return xe.setEnd(ve||re,ye),xe.setStart(re,le),xe}:at=function(re,le,ye){var ve=document.body.createTextRange();try{ve.moveToElementText(re.parentNode)}catch(xe){return ve}return ve.collapse(!0),ve.moveEnd("character",ye),ve.moveStart("character",le),ve};function vt(re,le){if(le.nodeType==3&&(le=le.parentNode),re.contains)return re.contains(le);do if(le.nodeType==11&&(le=le.host),le==re)return!0;while(le=le.parentNode)}function wt(){var re;try{re=document.activeElement}catch(le){re=document.body||null}for(;re&&re.shadowRoot&&re.shadowRoot.activeElement;)re=re.shadowRoot.activeElement;return re}function At(re,le){var ye=re.className;De(le).test(ye)||(re.className+=(ye?" ":"")+le)}function Ht(re,le){for(var ye=re.split(" "),ve=0;ve<ye.length;ve++)ye[ve]&&!De(ye[ve]).test(le)&&(le+=" "+ye[ve]);return le}var Qt=function(re){re.select()};Fe?Qt=function(re){re.selectionStart=0,re.selectionEnd=re.value.length}:Ve&&(Qt=function(re){try{re.select()}catch(le){}});function Zt(re){var le=Array.prototype.slice.call(arguments,1);return function(){return re.apply(null,le)}}function ln(re,le,ye){le||(le={});for(var ve in re)re.hasOwnProperty(ve)&&(ye!==!1||!le.hasOwnProperty(ve))&&(le[ve]=re[ve]);return le}function Nt(re,le,ye,ve,xe){le==null&&(le=re.search(/[^\s\u00a0]/),le==-1&&(le=re.length));for(var Ke=ve||0,dt=xe||0;;){var Ct=re.indexOf(" ",Ke);if(Ct<0||Ct>=le)return dt+(le-Ke);dt+=Ct-Ke,dt+=ye-dt%ye,Ke=Ct+1}}var gt=function(){this.id=null,this.f=null,this.time=0,this.handler=Zt(this.onTimeout,this)};gt.prototype.onTimeout=function(re){re.id=0,re.time<=+new Date?re.f():setTimeout(re.handler,re.time-+new Date)},gt.prototype.set=function(re,le){this.f=le;var ye=+new Date+re;(!this.id||ye<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,re),this.time=ye)};function ct(re,le){for(var ye=0;ye<re.length;++ye)if(re[ye]==le)return ye;return-1}var Jt=50,sn={toString:function(){return"CodeMirror.Pass"}},It={scroll:!1},wn={origin:"*mouse"},bn={origin:"+move"};function _n(re,le,ye){for(var ve=0,xe=0;;){var Ke=re.indexOf(" ",ve);Ke==-1&&(Ke=re.length);var dt=Ke-ve;if(Ke==re.length||xe+dt>=le)return ve+Math.min(dt,le-xe);if(xe+=Ke-ve,xe+=ye-xe%ye,ve=Ke+1,xe>=le)return ve}}var Xt=[""];function zn(re){for(;Xt.length<=re;)Xt.push(Ot(Xt)+" ");return Xt[re]}function Ot(re){return re[re.length-1]}function jn(re,le){for(var ye=[],ve=0;ve<re.length;ve++)ye[ve]=le(re[ve],ve);return ye}function cr(re,le,ye){for(var ve=0,xe=ye(le);ve<re.length&&ye(re[ve])<=xe;)ve++;re.splice(ve,0,le)}function it(){}function _e(re,le){var ye;return Object.create?ye=Object.create(re):(it.prototype=re,ye=new it),le&&ln(le,ye),ye}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Xe(re){return/\w/.test(re)||re>"\x80"&&(re.toUpperCase()!=re.toLowerCase()||Re.test(re))}function lt(re,le){return le?le.source.indexOf("\\w")>-1&&Xe(re)?!0:le.test(re):Xe(re)}function Be(re){for(var le in re)if(re.hasOwnProperty(le)&&re[le])return!1;return!0}var bt=/[\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 Wt(re){return re.charCodeAt(0)>=768&&bt.test(re)}function yn(re,le,ye){for(;(ye<0?le>0:le<re.length)&&Wt(re.charAt(le));)le+=ye;return le}function On(re,le,ye){for(var ve=le>ye?-1:1;;){if(le==ye)return le;var xe=(le+ye)/2,Ke=ve<0?Math.ceil(xe):Math.floor(xe);if(Ke==le)return re(Ke)?le:ye;re(Ke)?ye=Ke:le=Ke+ve}}function Pt(re,le,ye,ve){if(!re)return ve(le,ye,"ltr",0);for(var xe=!1,Ke=0;Ke<re.length;++Ke){var dt=re[Ke];(dt.from<ye&&dt.to>le||le==ye&&dt.to==le)&&(ve(Math.max(dt.from,le),Math.min(dt.to,ye),dt.level==1?"rtl":"ltr",Ke),xe=!0)}xe||ve(le,ye,"ltr")}var Vt=null;function zt(re,le,ye){var ve;Vt=null;for(var xe=0;xe<re.length;++xe){var Ke=re[xe];if(Ke.from<le&&Ke.to>le)return xe;Ke.to==le&&(Ke.from!=Ke.to&&ye=="before"?ve=xe:Vt=xe),Ke.from==le&&(Ke.from!=Ke.to&&ye!="before"?ve=xe:Vt=xe)}return ve!=null?ve:Vt}var pn=function(){var re="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",le="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ye(jt){return jt<=247?re.charAt(jt):1424<=jt&&jt<=1524?"R":1536<=jt&&jt<=1785?le.charAt(jt-1536):1774<=jt&&jt<=2220?"r":8192<=jt&&jt<=8203?"w":jt==8204?"b":"L"}var ve=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,Ke=/[LRr]/,dt=/[Lb1n]/,Ct=/[1n]/;function Et(jt,Yn,tn){this.level=jt,this.from=Yn,this.to=tn}return function(jt,Yn){var tn=Yn=="ltr"?"L":"R";if(jt.length==0||Yn=="ltr"&&!ve.test(jt))return!1;for(var Cr=jt.length,mr=[],bi=0;bi<Cr;++bi)mr.push(ye(jt.charCodeAt(bi)));for(var Ci=0,Fi=tn;Ci<Cr;++Ci){var Ji=mr[Ci];Ji=="m"?mr[Ci]=Fi:Fi=Ji}for(var yo=0,oo=tn;yo<Cr;++yo){var Po=mr[yo];Po=="1"&&oo=="r"?mr[yo]="n":Ke.test(Po)&&(oo=Po,Po=="r"&&(mr[yo]="R"))}for(var Qo=1,ao=mr[0];Qo<Cr-1;++Qo){var ya=mr[Qo];ya=="+"&&ao=="1"&&mr[Qo+1]=="1"?mr[Qo]="1":ya==","&&ao==mr[Qo+1]&&(ao=="1"||ao=="n")&&(mr[Qo]=ao),ao=ya}for(var xs=0;xs<Cr;++xs){var Cl=mr[xs];if(Cl==",")mr[xs]="N";else if(Cl=="%"){var Ms=void 0;for(Ms=xs+1;Ms<Cr&&mr[Ms]=="%";++Ms);for(var Tu=xs&&mr[xs-1]=="!"||Ms<Cr&&mr[Ms]=="1"?"1":"N",Xl=xs;Xl<Ms;++Xl)mr[Xl]=Tu;xs=Ms-1}}for(var gl=0,Au=tn;gl<Cr;++gl){var Bl=mr[gl];Au=="L"&&Bl=="1"?mr[gl]="L":Ke.test(Bl)&&(Au=Bl)}for(var ml=0;ml<Cr;++ml)if(xe.test(mr[ml])){var Ra=void 0;for(Ra=ml+1;Ra<Cr&&xe.test(mr[Ra]);++Ra);for(var Os=(ml?mr[ml-1]:tn)=="L",Ll=(Ra<Cr?mr[Ra]:tn)=="L",_l=Os==Ll?Os?"L":"R":tn,wc=ml;wc<Ra;++wc)mr[wc]=_l;ml=Ra-1}for(var Fs=[],tc,we=0;we<Cr;)if(dt.test(mr[we])){var Le=we;for(++we;we<Cr&&dt.test(mr[we]);++we);Fs.push(new Et(0,Le,we))}else{var je=we,ut=Fs.length,Lt=Yn=="rtl"?1:0;for(++we;we<Cr&&mr[we]!="L";++we);for(var Tt=je;Tt<we;)if(Ct.test(mr[Tt])){je<Tt&&(Fs.splice(ut,0,new Et(1,je,Tt)),ut+=Lt);var Ut=Tt;for(++Tt;Tt<we&&Ct.test(mr[Tt]);++Tt);Fs.splice(ut,0,new Et(2,Ut,Tt)),ut+=Lt,je=Tt}else++Tt;je<we&&Fs.splice(ut,0,new Et(1,je,we))}return Yn=="ltr"&&(Fs[0].level==1&&(tc=jt.match(/^\s+/))&&(Fs[0].from=tc[0].length,Fs.unshift(new Et(0,0,tc[0].length))),Ot(Fs).level==1&&(tc=jt.match(/\s+$/))&&(Ot(Fs).to-=tc[0].length,Fs.push(new Et(0,Cr-tc[0].length,Cr)))),Yn=="rtl"?Fs.reverse():Fs}}();function Tn(re,le){var ye=re.order;return ye==null&&(ye=re.order=pn(re.text,le)),ye}var gn=[],Mt=function(re,le,ye){if(re.addEventListener)re.addEventListener(le,ye,!1);else if(re.attachEvent)re.attachEvent("on"+le,ye);else{var ve=re._handlers||(re._handlers={});ve[le]=(ve[le]||gn).concat(ye)}};function Un(re,le){return re._handlers&&re._handlers[le]||gn}function Yt(re,le,ye){if(re.removeEventListener)re.removeEventListener(le,ye,!1);else if(re.detachEvent)re.detachEvent("on"+le,ye);else{var ve=re._handlers,xe=ve&&ve[le];if(xe){var Ke=ct(xe,ye);Ke>-1&&(ve[le]=xe.slice(0,Ke).concat(xe.slice(Ke+1)))}}}function on(re,le){var ye=Un(re,le);if(ye.length)for(var ve=Array.prototype.slice.call(arguments,2),xe=0;xe<ye.length;++xe)ye[xe].apply(null,ve)}function mn(re,le,ye){return typeof le=="string"&&(le={type:le,preventDefault:function(){this.defaultPrevented=!0}}),on(re,ye||le.type,re,le),qt(le)||le.codemirrorIgnore}function er(re){var le=re._handlers&&re._handlers.cursorActivity;if(le)for(var ye=re.curOp.cursorActivityHandlers||(re.curOp.cursorActivityHandlers=[]),ve=0;ve<le.length;++ve)ct(ye,le[ve])==-1&&ye.push(le[ve])}function Sn(re,le){return Un(re,le).length>0}function ht(re){re.prototype.on=function(le,ye){Mt(this,le,ye)},re.prototype.off=function(le,ye){Yt(this,le,ye)}}function tr(re){re.preventDefault?re.preventDefault():re.returnValue=!1}function lr(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0}function qt(re){return re.defaultPrevented!=null?re.defaultPrevented:re.returnValue==!1}function yr(re){tr(re),lr(re)}function ri(re){return re.target||re.srcElement}function Or(re){var le=re.which;return le==null&&(re.button&1?le=1:re.button&2?le=3:re.button&4&&(le=2)),he&&re.ctrlKey&&le==1&&(le=3),le}var Nn=function(){if(Ve&&Te<9)return!1;var re=ot("div");return"draggable"in re||"dragDrop"in re}(),ui;function $r(re){if(ui==null){var le=ot("span","\u200B");qe(re,ot("span",[le,document.createTextNode("x")])),re.firstChild.offsetHeight!=0&&(ui=le.offsetWidth<=1&&le.offsetHeight>2&&!(Ve&&Te<8))}var ye=ui?ot("span","\u200B"):ot("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ye.setAttribute("cm-text",""),ye}var or;function Kr(re){if(or!=null)return or;var le=qe(re,document.createTextNode("A\u062EA")),ye=at(le,0,1).getBoundingClientRect(),ve=at(le,1,2).getBoundingClientRect();return nt(re),!ye||ye.left==ye.right?!1:or=ve.right-ye.right<3}var oi=`
b`.split(/\n/).length!=3?function(re){for(var le=0,ye=[],ve=re.length;le<=ve;){var xe=re.indexOf(`
`,le);xe==-1&&(xe=re.length);var Ke=re.slice(le,re.charAt(xe-1)=="\r"?xe-1:xe),dt=Ke.indexOf("\r");dt!=-1?(ye.push(Ke.slice(0,dt)),le+=dt+1):(ye.push(Ke),le=xe+1)}return ye}:function(re){return re.split(/\r\n?|\n/)},Me=window.getSelection?function(re){try{return re.selectionStart!=re.selectionEnd}catch(le){return!1}}:function(re){var le;try{le=re.ownerDocument.selection.createRange()}catch(ye){}return!le||le.parentElement()!=re?!1:le.compareEndPoints("StartToEnd",le)!=0},kr=function(){var re=ot("div");return"oncopy"in re?!0:(re.setAttribute("oncopy","return;"),typeof re.oncopy=="function")}(),Pr=null;function ei(re){if(Pr!=null)return Pr;var le=qe(re,ot("span","x")),ye=le.getBoundingClientRect(),ve=at(le,0,1).getBoundingClientRect();return Pr=Math.abs(ye.left-ve.left)>1}var Ii={},Di={};function Ti(re,le){arguments.length>2&&(le.dependencies=Array.prototype.slice.call(arguments,2)),Ii[re]=le}function Vr(re,le){Di[re]=le}function Fr(re){if(typeof re=="string"&&Di.hasOwnProperty(re))re=Di[re];else if(re&&typeof re.name=="string"&&Di.hasOwnProperty(re.name)){var le=Di[re.name];typeof le=="string"&&(le={name:le}),re=_e(le,re),re.name=le.name}else{if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(re))return Fr("application/xml");if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(re))return Fr("application/json")}return typeof re=="string"?{name:re}:re||{name:"null"}}function dn(re,le){le=Fr(le);var ye=Ii[le.name];if(!ye)return dn(re,"text/plain");var ve=ye(re,le);if(hn.hasOwnProperty(le.name)){var xe=hn[le.name];for(var Ke in xe)xe.hasOwnProperty(Ke)&&(ve.hasOwnProperty(Ke)&&(ve["_"+Ke]=ve[Ke]),ve[Ke]=xe[Ke])}if(ve.name=le.name,le.helperType&&(ve.helperType=le.helperType),le.modeProps)for(var dt in le.modeProps)ve[dt]=le.modeProps[dt];return ve}var hn={};function un(re,le){var ye=hn.hasOwnProperty(re)?hn[re]:hn[re]={};ln(le,ye)}function Ur(re,le){if(le===!0)return le;if(re.copyState)return re.copyState(le);var ye={};for(var ve in le){var xe=le[ve];xe instanceof Array&&(xe=xe.concat([])),ye[ve]=xe}return ye}function Tr(re,le){for(var ye;re.innerMode&&(ye=re.innerMode(le),!(!ye||ye.mode==re));)le=ye.state,re=ye.mode;return ye||{mode:re,state:le}}function Zr(re,le,ye){return re.startState?re.startState(le,ye):!0}var sr=function(re,le,ye){this.pos=this.start=0,this.string=re,this.tabSize=le||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ye};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.prototype.eat=function(re){var le=this.string.charAt(this.pos),ye;if(typeof re=="string"?ye=le==re:ye=le&&(re.test?re.test(le):re(le)),ye)return++this.pos,le},sr.prototype.eatWhile=function(re){for(var le=this.pos;this.eat(re););return this.pos>le},sr.prototype.eatSpace=function(){for(var re=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>re},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(re){var le=this.string.indexOf(re,this.pos);if(le>-1)return this.pos=le,!0},sr.prototype.backUp=function(re){this.pos-=re},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Nt(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Nt(this.string,null,this.tabSize)-(this.lineStart?Nt(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(re,le,ye){if(typeof re=="string"){var ve=function(dt){return ye?dt.toLowerCase():dt},xe=this.string.substr(this.pos,re.length);if(ve(xe)==ve(re))return le!==!1&&(this.pos+=re.length),!0}else{var Ke=this.string.slice(this.pos).match(re);return Ke&&Ke.index>0?null:(Ke&&le!==!1&&(this.pos+=Ke[0].length),Ke)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(re,le){this.lineStart+=re;try{return le()}finally{this.lineStart-=re}},sr.prototype.lookAhead=function(re){var le=this.lineOracle;return le&&le.lookAhead(re)},sr.prototype.baseToken=function(){var re=this.lineOracle;return re&&re.baseToken(this.pos)};function Rr(re,le){if(le-=re.first,le<0||le>=re.size)throw new Error("There is no line "+(le+re.first)+" in the document.");for(var ye=re;!ye.lines;)for(var ve=0;;++ve){var xe=ye.children[ve],Ke=xe.chunkSize();if(le<Ke){ye=xe;break}le-=Ke}return ye.lines[le]}function Cn(re,le,ye){var ve=[],xe=le.line;return re.iter(le.line,ye.line+1,function(Ke){var dt=Ke.text;xe==ye.line&&(dt=dt.slice(0,ye.ch)),xe==le.line&&(dt=dt.slice(le.ch)),ve.push(dt),++xe}),ve}function fn(re,le,ye){var ve=[];return re.iter(le,ye,function(xe){ve.push(xe.text)}),ve}function Wr(re,le){var ye=le-re.height;if(ye)for(var ve=re;ve;ve=ve.parent)ve.height+=ye}function kt(re){if(re.parent==null)return null;for(var le=re.parent,ye=ct(le.lines,re),ve=le.parent;ve;le=ve,ve=ve.parent)for(var xe=0;ve.children[xe]!=le;++xe)ye+=ve.children[xe].chunkSize();return ye+le.first}function Gn(re,le){var ye=re.first;e:do{for(var ve=0;ve<re.children.length;++ve){var xe=re.children[ve],Ke=xe.height;if(le<Ke){re=xe;continue e}le-=Ke,ye+=xe.chunkSize()}return ye}while(!re.lines);for(var dt=0;dt<re.lines.length;++dt){var Ct=re.lines[dt],Et=Ct.height;if(le<Et)break;le-=Et}return ye+dt}function vr(re,le){return le>=re.first&&le<re.first+re.size}function Qr(re,le){return String(re.lineNumberFormatter(le+re.firstLineNumber))}function nn(re,le,ye){if(ye===void 0&&(ye=null),!(this instanceof nn))return new nn(re,le,ye);this.line=re,this.ch=le,this.sticky=ye}function Qn(re,le){return re.line-le.line||re.ch-le.ch}function Dn(re,le){return re.sticky==le.sticky&&Qn(re,le)==0}function xn(re){return nn(re.line,re.ch)}function Ge(re,le){return Qn(re,le)<0?le:re}function Jr(re,le){return Qn(re,le)<0?re:le}function Hr(re,le){return Math.max(re.first,Math.min(le,re.first+re.size-1))}function Jn(re,le){if(le.line<re.first)return nn(re.first,0);var ye=re.first+re.size-1;return le.line>ye?nn(ye,Rr(re,ye).text.length):hi(le,Rr(re,le.line).text.length)}function hi(re,le){var ye=re.ch;return ye==null||ye>le?nn(re.line,le):ye<0?nn(re.line,0):re}function ti(re,le){for(var ye=[],ve=0;ve<le.length;ve++)ye[ve]=Jn(re,le[ve]);return ye}var Si=function(re,le){this.state=re,this.lookAhead=le},nr=function(re,le,ye,ve){this.state=le,this.doc=re,this.line=ye,this.maxLookAhead=ve||0,this.baseTokens=null,this.baseTokenPos=1};nr.prototype.lookAhead=function(re){var le=this.doc.getLine(this.line+re);return le!=null&&re>this.maxLookAhead&&(this.maxLookAhead=re),le},nr.prototype.baseToken=function(re){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=re;)this.baseTokenPos+=2;var le=this.baseTokens[this.baseTokenPos+1];return{type:le&&le.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-re}},nr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},nr.fromSaved=function(re,le,ye){return le instanceof Si?new nr(re,Ur(re.mode,le.state),ye,le.lookAhead):new nr(re,Ur(re.mode,le),ye)},nr.prototype.save=function(re){var le=re!==!1?Ur(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Si(le,this.maxLookAhead):le};function vn(re,le,ye,ve){var xe=[re.state.modeGen],Ke={};Xi(re,le.text,re.doc.mode,ye,function(jt,Yn){return xe.push(jt,Yn)},Ke,ve);for(var dt=ye.state,Ct=function(jt){ye.baseTokens=xe;var Yn=re.state.overlays[jt],tn=1,Cr=0;ye.state=!0,Xi(re,le.text,Yn.mode,ye,function(mr,bi){for(var Ci=tn;Cr<mr;){var Fi=xe[tn];Fi>mr&&xe.splice(tn,1,mr,xe[tn+1],Fi),tn+=2,Cr=Math.min(mr,Fi)}if(bi)if(Yn.opaque)xe.splice(Ci,tn-Ci,mr,"overlay "+bi),tn=Ci+2;else for(;Ci<tn;Ci+=2){var Ji=xe[Ci+1];xe[Ci+1]=(Ji?Ji+" ":"")+"overlay "+bi}},Ke),ye.state=dt,ye.baseTokens=null,ye.baseTokenPos=1},Et=0;Et<re.state.overlays.length;++Et)Ct(Et);return{styles:xe,classes:Ke.bgClass||Ke.textClass?Ke:null}}function xi(re,le,ye){if(!le.styles||le.styles[0]!=re.state.modeGen){var ve=zi(re,kt(le)),xe=le.text.length>re.options.maxHighlightLength&&Ur(re.doc.mode,ve.state),Ke=vn(re,le,ve);xe&&(ve.state=xe),le.stateAfter=ve.save(!xe),le.styles=Ke.styles,Ke.classes?le.styleClasses=Ke.classes:le.styleClasses&&(le.styleClasses=null),ye===re.doc.highlightFrontier&&(re.doc.modeFrontier=Math.max(re.doc.modeFrontier,++re.doc.highlightFrontier))}return le.styles}function zi(re,le,ye){var ve=re.doc,xe=re.display;if(!ve.mode.startState)return new nr(ve,!0,le);var Ke=Vi(re,le,ye),dt=Ke>ve.first&&Rr(ve,Ke-1).stateAfter,Ct=dt?nr.fromSaved(ve,dt,Ke):new nr(ve,Zr(ve.mode),Ke);return ve.iter(Ke,le,function(Et){Ln(re,Et.text,Ct);var jt=Ct.line;Et.stateAfter=jt==le-1||jt%5==0||jt>=xe.viewFrom&&jt<xe.viewTo?Ct.save():null,Ct.nextLine()}),ye&&(ve.modeFrontier=Ct.line),Ct}function Ln(re,le,ye,ve){var xe=re.doc.mode,Ke=new sr(le,re.options.tabSize,ye);for(Ke.start=Ke.pos=ve||0,le==""&&Xr(xe,ye.state);!Ke.eol();)fi(xe,Ke,ye.state),Ke.start=Ke.pos}function Xr(re,le){if(re.blankLine)return re.blankLine(le);if(re.innerMode){var ye=Tr(re,le);if(ye.mode.blankLine)return ye.mode.blankLine(ye.state)}}function fi(re,le,ye,ve){for(var xe=0;xe<10;xe++){ve&&(ve[0]=Tr(re,ye).mode);var Ke=re.token(le,ye);if(le.pos>le.start)return Ke}throw new Error("Mode "+re.name+" failed to advance stream.")}var wi=function(re,le,ye){this.start=re.start,this.end=re.pos,this.string=re.current(),this.type=le||null,this.state=ye};function ai(re,le,ye,ve){var xe=re.doc,Ke=xe.mode,dt;le=Jn(xe,le);var Ct=Rr(xe,le.line),Et=zi(re,le.line,ye),jt=new sr(Ct.text,re.options.tabSize,Et),Yn;for(ve&&(Yn=[]);(ve||jt.pos<le.ch)&&!jt.eol();)jt.start=jt.pos,dt=fi(Ke,jt,Et.state),ve&&Yn.push(new wi(jt,dt,Ur(xe.mode,Et.state)));return ve?Yn:new wi(jt,dt,Et.state)}function Ni(re,le){if(re)for(;;){var ye=re.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ye)break;re=re.slice(0,ye.index)+re.slice(ye.index+ye[0].length);var ve=ye[1]?"bgClass":"textClass";le[ve]==null?le[ve]=ye[2]:new RegExp("(?:^|\\s)"+ye[2]+"(?:$|\\s)").test(le[ve])||(le[ve]+=" "+ye[2])}return re}function Xi(re,le,ye,ve,xe,Ke,dt){var Ct=ye.flattenSpans;Ct==null&&(Ct=re.options.flattenSpans);var Et=0,jt=null,Yn=new sr(le,re.options.tabSize,ve),tn,Cr=re.options.addModeClass&&[null];for(le==""&&Ni(Xr(ye,ve.state),Ke);!Yn.eol();){if(Yn.pos>re.options.maxHighlightLength?(Ct=!1,dt&&Ln(re,le,ve,Yn.pos),Yn.pos=le.length,tn=null):tn=Ni(fi(ye,Yn,ve.state,Cr),Ke),Cr){var mr=Cr[0].name;mr&&(tn="m-"+(tn?mr+" "+tn:mr))}if(!Ct||jt!=tn){for(;Et<Yn.start;)Et=Math.min(Yn.start,Et+5e3),xe(Et,jt);jt=tn}Yn.start=Yn.pos}for(;Et<Yn.pos;){var bi=Math.min(Yn.pos,Et+5e3);xe(bi,jt),Et=bi}}function Vi(re,le,ye){for(var ve,xe,Ke=re.doc,dt=ye?-1:le-(re.doc.mode.innerMode?1e3:100),Ct=le;Ct>dt;--Ct){if(Ct<=Ke.first)return Ke.first;var Et=Rr(Ke,Ct-1),jt=Et.stateAfter;if(jt&&(!ye||Ct+(jt instanceof Si?jt.lookAhead:0)<=Ke.modeFrontier))return Ct;var Yn=Nt(Et.text,null,re.options.tabSize);(xe==null||ve>Yn)&&(xe=Ct-1,ve=Yn)}return xe}function Bi(re,le){if(re.modeFrontier=Math.min(re.modeFrontier,le),!(re.highlightFrontier<le-10)){for(var ye=re.first,ve=le-1;ve>ye;ve--){var xe=Rr(re,ve).stateAfter;if(xe&&(!(xe instanceof Si)||ve+xe.lookAhead<le)){ye=ve+1;break}}re.highlightFrontier=Math.min(re.highlightFrontier,ye)}}var Hi=!1,rr=!1;function _i(){Hi=!0}function ur(){rr=!0}function vi(re,le,ye){this.marker=re,this.from=le,this.to=ye}function Pi(re,le){if(re)for(var ye=0;ye<re.length;++ye){var ve=re[ye];if(ve.marker==le)return ve}}function Mi(re,le){for(var ye,ve=0;ve<re.length;++ve)re[ve]!=le&&(ye||(ye=[])).push(re[ve]);return ye}function po(re,le){re.markedSpans=re.markedSpans?re.markedSpans.concat([le]):[le],le.marker.attachLine(re)}function Oo(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ke=re[xe],dt=Ke.marker,Ct=Ke.from==null||(dt.inclusiveLeft?Ke.from<=le:Ke.from<le);if(Ct||Ke.from==le&&dt.type=="bookmark"&&(!ye||!Ke.marker.insertLeft)){var Et=Ke.to==null||(dt.inclusiveRight?Ke.to>=le:Ke.to>le);(ve||(ve=[])).push(new vi(dt,Ke.from,Et?null:Ke.to))}}return ve}function mo(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ke=re[xe],dt=Ke.marker,Ct=Ke.to==null||(dt.inclusiveRight?Ke.to>=le:Ke.to>le);if(Ct||Ke.from==le&&dt.type=="bookmark"&&(!ye||Ke.marker.insertLeft)){var Et=Ke.from==null||(dt.inclusiveLeft?Ke.from<=le:Ke.from<le);(ve||(ve=[])).push(new vi(dt,Et?null:Ke.from-le,Ke.to==null?null:Ke.to-le))}}return ve}function xo(re,le){if(le.full)return null;var ye=vr(re,le.from.line)&&Rr(re,le.from.line).markedSpans,ve=vr(re,le.to.line)&&Rr(re,le.to.line).markedSpans;if(!ye&&!ve)return null;var xe=le.from.ch,Ke=le.to.ch,dt=Qn(le.from,le.to)==0,Ct=Oo(ye,xe,dt),Et=mo(ve,Ke,dt),jt=le.text.length==1,Yn=Ot(le.text).length+(jt?xe:0);if(Ct)for(var tn=0;tn<Ct.length;++tn){var Cr=Ct[tn];if(Cr.to==null){var mr=Pi(Et,Cr.marker);mr?jt&&(Cr.to=mr.to==null?null:mr.to+Yn):Cr.to=xe}}if(Et)for(var bi=0;bi<Et.length;++bi){var Ci=Et[bi];if(Ci.to!=null&&(Ci.to+=Yn),Ci.from==null){var Fi=Pi(Ct,Ci.marker);Fi||(Ci.from=Yn,jt&&(Ct||(Ct=[])).push(Ci))}else Ci.from+=Yn,jt&&(Ct||(Ct=[])).push(Ci)}Ct&&(Ct=Fn(Ct)),Et&&Et!=Ct&&(Et=Fn(Et));var Ji=[Ct];if(!jt){var yo=le.text.length-2,oo;if(yo>0&&Ct)for(var Po=0;Po<Ct.length;++Po)Ct[Po].to==null&&(oo||(oo=[])).push(new vi(Ct[Po].marker,null,null));for(var Qo=0;Qo<yo;++Qo)Ji.push(oo);Ji.push(Et)}return Ji}function Fn(re){for(var le=0;le<re.length;++le){var ye=re[le];ye.from!=null&&ye.from==ye.to&&ye.marker.clearWhenEmpty!==!1&&re.splice(le--,1)}return re.length?re:null}function fr(re,le,ye){var ve=null;if(re.iter(le.line,ye.line+1,function(mr){if(mr.markedSpans)for(var bi=0;bi<mr.markedSpans.length;++bi){var Ci=mr.markedSpans[bi].marker;Ci.readOnly&&(!ve||ct(ve,Ci)==-1)&&(ve||(ve=[])).push(Ci)}}),!ve)return null;for(var xe=[{from:le,to:ye}],Ke=0;Ke<ve.length;++Ke)for(var dt=ve[Ke],Ct=dt.find(0),Et=0;Et<xe.length;++Et){var jt=xe[Et];if(!(Qn(jt.to,Ct.from)<0||Qn(jt.from,Ct.to)>0)){var Yn=[Et,1],tn=Qn(jt.from,Ct.from),Cr=Qn(jt.to,Ct.to);(tn<0||!dt.inclusiveLeft&&!tn)&&Yn.push({from:jt.from,to:Ct.from}),(Cr>0||!dt.inclusiveRight&&!Cr)&&Yn.push({from:Ct.to,to:jt.to}),xe.splice.apply(xe,Yn),Et+=Yn.length-3}}return xe}function Rn(re){var le=re.markedSpans;if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.detachLine(re);re.markedSpans=null}}function rt(re,le){if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.attachLine(re);re.markedSpans=le}}function jr(re){return re.inclusiveLeft?-1:0}function Sr(re){return re.inclusiveRight?1:0}function zr(re,le){var ye=re.lines.length-le.lines.length;if(ye!=0)return ye;var ve=re.find(),xe=le.find(),Ke=Qn(ve.from,xe.from)||jr(re)-jr(le);if(Ke)return-Ke;var dt=Qn(ve.to,xe.to)||Sr(re)-Sr(le);return dt||le.id-re.id}function ni(re,le){var ye=rr&&re.markedSpans,ve;if(ye)for(var xe=void 0,Ke=0;Ke<ye.length;++Ke)xe=ye[Ke],xe.marker.collapsed&&(le?xe.from:xe.to)==null&&(!ve||zr(ve,xe.marker)<0)&&(ve=xe.marker);return ve}function pi(re){return ni(re,!0)}function Er(re){return ni(re,!1)}function ft(re,le){var ye=rr&&re.markedSpans,ve;if(ye)for(var xe=0;xe<ye.length;++xe){var Ke=ye[xe];Ke.marker.collapsed&&(Ke.from==null||Ke.from<le)&&(Ke.to==null||Ke.to>le)&&(!ve||zr(ve,Ke.marker)<0)&&(ve=Ke.marker)}return ve}function En(re,le,ye,ve,xe){var Ke=Rr(re,le),dt=rr&&Ke.markedSpans;if(dt)for(var Ct=0;Ct<dt.length;++Ct){var Et=dt[Ct];if(Et.marker.collapsed){var jt=Et.marker.find(0),Yn=Qn(jt.from,ye)||jr(Et.marker)-jr(xe),tn=Qn(jt.to,ve)||Sr(Et.marker)-Sr(xe);if(!(Yn>=0&&tn<=0||Yn<=0&&tn>=0)&&(Yn<=0&&(Et.marker.inclusiveRight&&xe.inclusiveLeft?Qn(jt.to,ye)>=0:Qn(jt.to,ye)>0)||Yn>=0&&(Et.marker.inclusiveRight&&xe.inclusiveLeft?Qn(jt.from,ve)<=0:Qn(jt.from,ve)<0)))return!0}}}function Mn(re){for(var le;le=pi(re);)re=le.find(-1,!0).line;return re}function Xn(re){for(var le;le=Er(re);)re=le.find(1,!0).line;return re}function Hn(re){for(var le,ye;le=Er(re);)re=le.find(1,!0).line,(ye||(ye=[])).push(re);return ye}function hr(re,le){var ye=Rr(re,le),ve=Mn(ye);return ye==ve?le:kt(ve)}function $n(re,le){if(le>re.lastLine())return le;var ye=Rr(re,le),ve;if(!cn(re,ye))return le;for(;ve=Er(ye);)ye=ve.find(1,!0).line;return kt(ye)+1}function cn(re,le){var ye=rr&&le.markedSpans;if(ye){for(var ve=void 0,xe=0;xe<ye.length;++xe)if(ve=ye[xe],!!ve.marker.collapsed){if(ve.from==null)return!0;if(!ve.marker.widgetNode&&ve.from==0&&ve.marker.inclusiveLeft&&Kn(re,le,ve))return!0}}}function Kn(re,le,ye){if(ye.to==null){var ve=ye.marker.find(1,!0);return Kn(re,ve.line,Pi(ve.line.markedSpans,ye.marker))}if(ye.marker.inclusiveRight&&ye.to==le.text.length)return!0;for(var xe=void 0,Ke=0;Ke<le.markedSpans.length;++Ke)if(xe=le.markedSpans[Ke],xe.marker.collapsed&&!xe.marker.widgetNode&&xe.from==ye.to&&(xe.to==null||xe.to!=ye.from)&&(xe.marker.inclusiveLeft||ye.marker.inclusiveRight)&&Kn(re,le,xe))return!0}function Gr(re){re=Mn(re);for(var le=0,ye=re.parent,ve=0;ve<ye.lines.length;++ve){var xe=ye.lines[ve];if(xe==re)break;le+=xe.height}for(var Ke=ye.parent;Ke;ye=Ke,Ke=ye.parent)for(var dt=0;dt<Ke.children.length;++dt){var Ct=Ke.children[dt];if(Ct==ye)break;le+=Ct.height}return le}function Li(re){if(re.height==0)return 0;for(var le=re.text.length,ye,ve=re;ye=pi(ve);){var xe=ye.find(0,!0);ve=xe.from.line,le+=xe.from.ch-xe.to.ch}for(ve=re;ye=Er(ve);){var Ke=ye.find(0,!0);le-=ve.text.length-Ke.from.ch,ve=Ke.to.line,le+=ve.text.length-Ke.to.ch}return le}function mi(re){var le=re.display,ye=re.doc;le.maxLine=Rr(ye,ye.first),le.maxLineLength=Li(le.maxLine),le.maxLineChanged=!0,ye.iter(function(ve){var xe=Li(ve);xe>le.maxLineLength&&(le.maxLineLength=xe,le.maxLine=ve)})}var gi=function(re,le,ye){this.text=re,rt(this,le),this.height=ye?ye(this):1};gi.prototype.lineNo=function(){return kt(this)},ht(gi);function Ri(re,le,ye,ve){re.text=le,re.stateAfter&&(re.stateAfter=null),re.styles&&(re.styles=null),re.order!=null&&(re.order=null),Rn(re),rt(re,ye);var xe=ve?ve(re):1;xe!=re.height&&Wr(re,xe)}function Oi(re){re.parent=null,Rn(re)}var lo={},So={};function na(re,le){if(!re||/^\s*$/.test(re))return null;var ye=le.addModeClass?So:lo;return ye[re]||(ye[re]=re.replace(/\S+/g,"cm-$&"))}function An(re,le){var ye=mt("span",null,null,ze?"padding-right: .1px":null),ve={pre:mt("pre",[ye],"CodeMirror-line"),content:ye,col:0,pos:0,cm:re,trailingSpace:!1,splitSpaces:re.getOption("lineWrapping")};le.measure={};for(var xe=0;xe<=(le.rest?le.rest.length:0);xe++){var Ke=xe?le.rest[xe-1]:le.line,dt=void 0;ve.pos=0,ve.addToken=Do,Kr(re.display.measure)&&(dt=Tn(Ke,re.doc.direction))&&(ve.addToken=ho(ve.addToken,dt)),ve.map=[];var Ct=le!=re.display.externalMeasured&&kt(Ke);da(Ke,ve,xi(re,Ke,Ct)),Ke.styleClasses&&(Ke.styleClasses.bgClass&&(ve.bgClass=Ht(Ke.styleClasses.bgClass,ve.bgClass||"")),Ke.styleClasses.textClass&&(ve.textClass=Ht(Ke.styleClasses.textClass,ve.textClass||""))),ve.map.length==0&&ve.map.push(0,0,ve.content.appendChild($r(re.display.measure))),xe==0?(le.measure.map=ve.map,le.measure.cache={}):((le.measure.maps||(le.measure.maps=[])).push(ve.map),(le.measure.caches||(le.measure.caches=[])).push({}))}if(ze){var Et=ve.content.lastChild;(/\bcm-tab\b/.test(Et.className)||Et.querySelector&&Et.querySelector(".cm-tab"))&&(ve.content.className="cm-tab-wrap-hack")}return on(re,"renderLine",re,le.line,ve.pre),ve.pre.className&&(ve.textClass=Ht(ve.pre.className,ve.textClass||"")),ve}function so(re){var le=ot("span","\u2022","cm-invalidchar");return le.title="\\u"+re.charCodeAt(0).toString(16),le.setAttribute("aria-label",le.title),le}function Do(re,le,ye,ve,xe,Ke,dt){if(le){var Ct=re.splitSpaces?Wi(le,re.trailingSpace):le,Et=re.cm.state.specialChars,jt=!1,Yn;if(!Et.test(le))re.col+=le.length,Yn=document.createTextNode(Ct),re.map.push(re.pos,re.pos+le.length,Yn),Ve&&Te<9&&(jt=!0),re.pos+=le.length;else{Yn=document.createDocumentFragment();for(var tn=0;;){Et.lastIndex=tn;var Cr=Et.exec(le),mr=Cr?Cr.index-tn:le.length-tn;if(mr){var bi=document.createTextNode(Ct.slice(tn,tn+mr));Ve&&Te<9?Yn.appendChild(ot("span",[bi])):Yn.appendChild(bi),re.map.push(re.pos,re.pos+mr,bi),re.col+=mr,re.pos+=mr}if(!Cr)break;tn+=mr+1;var Ci=void 0;if(Cr[0]==" "){var Fi=re.cm.options.tabSize,Ji=Fi-re.col%Fi;Ci=Yn.appendChild(ot("span",zn(Ji),"cm-tab")),Ci.setAttribute("role","presentation"),Ci.setAttribute("cm-text"," "),re.col+=Ji}else Cr[0]=="\r"||Cr[0]==`
`?(Ci=Yn.appendChild(ot("span",Cr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ci.setAttribute("cm-text",Cr[0]),re.col+=1):(Ci=re.cm.options.specialCharPlaceholder(Cr[0]),Ci.setAttribute("cm-text",Cr[0]),Ve&&Te<9?Yn.appendChild(ot("span",[Ci])):Yn.appendChild(Ci),re.col+=1);re.map.push(re.pos,re.pos+1,Ci),re.pos++}}if(re.trailingSpace=Ct.charCodeAt(le.length-1)==32,ye||ve||xe||jt||Ke||dt){var yo=ye||"";ve&&(yo+=ve),xe&&(yo+=xe);var oo=ot("span",[Yn],yo,Ke);if(dt)for(var Po in dt)dt.hasOwnProperty(Po)&&Po!="style"&&Po!="class"&&oo.setAttribute(Po,dt[Po]);return re.content.appendChild(oo)}re.content.appendChild(Yn)}}function Wi(re,le){if(re.length>1&&!/ /.test(re))return re;for(var ye=le,ve="",xe=0;xe<re.length;xe++){var Ke=re.charAt(xe);Ke==" "&&ye&&(xe==re.length-1||re.charCodeAt(xe+1)==32)&&(Ke="\xA0"),ve+=Ke,ye=Ke==" "}return ve}function ho(re,le){return function(ye,ve,xe,Ke,dt,Ct,Et){xe=xe?xe+" cm-force-border":"cm-force-border";for(var jt=ye.pos,Yn=jt+ve.length;;){for(var tn=void 0,Cr=0;Cr<le.length&&(tn=le[Cr],!(tn.to>jt&&tn.from<=jt));Cr++);if(tn.to>=Yn)return re(ye,ve,xe,Ke,dt,Ct,Et);re(ye,ve.slice(0,tn.to-jt),xe,Ke,null,Ct,Et),Ke=null,ve=ve.slice(tn.to-jt),jt=tn.to}}}function Ki(re,le,ye,ve){var xe=!ve&&ye.widgetNode;xe&&re.map.push(re.pos,re.pos+le,xe),!ve&&re.cm.display.input.needsContentAttribute&&(xe||(xe=re.content.appendChild(document.createElement("span"))),xe.setAttribute("cm-marker",ye.id)),xe&&(re.cm.display.input.setUneditable(xe),re.content.appendChild(xe)),re.pos+=le,re.trailingSpace=!1}function da(re,le,ye){var ve=re.markedSpans,xe=re.text,Ke=0;if(!ve){for(var dt=1;dt<ye.length;dt+=2)le.addToken(le,xe.slice(Ke,Ke=ye[dt]),na(ye[dt+1],le.cm.options));return}for(var Ct=xe.length,Et=0,jt=1,Yn="",tn,Cr,mr=0,bi,Ci,Fi,Ji,yo;;){if(mr==Et){bi=Ci=Fi=Cr="",yo=null,Ji=null,mr=1/0;for(var oo=[],Po=void 0,Qo=0;Qo<ve.length;++Qo){var ao=ve[Qo],ya=ao.marker;if(ya.type=="bookmark"&&ao.from==Et&&ya.widgetNode)oo.push(ya);else if(ao.from<=Et&&(ao.to==null||ao.to>Et||ya.collapsed&&ao.to==Et&&ao.from==Et)){if(ao.to!=null&&ao.to!=Et&&mr>ao.to&&(mr=ao.to,Ci=""),ya.className&&(bi+=" "+ya.className),ya.css&&(Cr=(Cr?Cr+";":"")+ya.css),ya.startStyle&&ao.from==Et&&(Fi+=" "+ya.startStyle),ya.endStyle&&ao.to==mr&&(Po||(Po=[])).push(ya.endStyle,ao.to),ya.title&&((yo||(yo={})).title=ya.title),ya.attributes)for(var xs in ya.attributes)(yo||(yo={}))[xs]=ya.attributes[xs];ya.collapsed&&(!Ji||zr(Ji.marker,ya)<0)&&(Ji=ao)}else ao.from>Et&&mr>ao.from&&(mr=ao.from)}if(Po)for(var Cl=0;Cl<Po.length;Cl+=2)Po[Cl+1]==mr&&(Ci+=" "+Po[Cl]);if(!Ji||Ji.from==Et)for(var Ms=0;Ms<oo.length;++Ms)Ki(le,0,oo[Ms]);if(Ji&&(Ji.from||0)==Et){if(Ki(le,(Ji.to==null?Ct+1:Ji.to)-Et,Ji.marker,Ji.from==null),Ji.to==null)return;Ji.to==Et&&(Ji=!1)}}if(Et>=Ct)break;for(var Tu=Math.min(Ct,mr);;){if(Yn){var Xl=Et+Yn.length;if(!Ji){var gl=Xl>Tu?Yn.slice(0,Tu-Et):Yn;le.addToken(le,gl,tn?tn+bi:bi,Fi,Et+gl.length==mr?Ci:"",Cr,yo)}if(Xl>=Tu){Yn=Yn.slice(Tu-Et),Et=Tu;break}Et=Xl,Fi=""}Yn=xe.slice(Ke,Ke=ye[jt++]),tn=na(ye[jt++],le.cm.options)}}}function Vn(re,le,ye){this.line=le,this.rest=Hn(le),this.size=this.rest?kt(Ot(this.rest))-ye+1:1,this.node=this.text=null,this.hidden=cn(re,le)}function Mo(re,le,ye){for(var ve=[],xe,Ke=le;Ke<ye;Ke=xe){var dt=new Vn(re.doc,Rr(re.doc,Ke),Ke);xe=Ke+dt.size,ve.push(dt)}return ve}var ia=null;function Ps(re){ia?ia.ops.push(re):re.ownsGroup=ia={ops:[re],delayedCallbacks:[]}}function Fa(re){var le=re.delayedCallbacks,ye=0;do{for(;ye<le.length;ye++)le[ye].call(null);for(var ve=0;ve<re.ops.length;ve++){var xe=re.ops[ve];if(xe.cursorActivityHandlers)for(;xe.cursorActivityCalled<xe.cursorActivityHandlers.length;)xe.cursorActivityHandlers[xe.cursorActivityCalled++].call(null,xe.cm)}}while(ye<le.length)}function Gs(re,le){var ye=re.ownsGroup;if(ye)try{Fa(ye)}finally{ia=null,le(ye)}}var gs=null;function Qi(re,le){var ye=Un(re,le);if(ye.length){var ve=Array.prototype.slice.call(arguments,2),xe;ia?xe=ia.delayedCallbacks:gs?xe=gs:(xe=gs=[],setTimeout(ca,0));for(var Ke=function(Ct){xe.push(function(){return ye[Ct].apply(null,ve)})},dt=0;dt<ye.length;++dt)Ke(dt)}}function ca(){var re=gs;gs=null;for(var le=0;le<re.length;++le)re[le]()}function Ba(re,le,ye,ve){for(var xe=0;xe<le.changes.length;xe++){var Ke=le.changes[xe];Ke=="text"?_r(re,le):Ke=="gutter"?No(re,le,ye,ve):Ke=="class"?to(re,le):Ke=="widget"&&ba(re,le,ve)}le.changes=null}function is(re){return re.node==re.text&&(re.node=ot("div",null,null,"position: relative"),re.text.parentNode&&re.text.parentNode.replaceChild(re.node,re.text),re.node.appendChild(re.text),Ve&&Te<8&&(re.node.style.zIndex=2)),re.node}function To(re,le){var ye=le.bgClass?le.bgClass+" "+(le.line.bgClass||""):le.line.bgClass;if(ye&&(ye+=" CodeMirror-linebackground"),le.background)ye?le.background.className=ye:(le.background.parentNode.removeChild(le.background),le.background=null);else if(ye){var ve=is(le);le.background=ve.insertBefore(ot("div",null,ye),ve.firstChild),re.display.input.setUneditable(le.background)}}function Ao(re,le){var ye=re.display.externalMeasured;return ye&&ye.line==le.line?(re.display.externalMeasured=null,le.measure=ye.measure,ye.built):An(re,le)}function _r(re,le){var ye=le.text.className,ve=Ao(re,le);le.text==le.node&&(le.node=ve.pre),le.text.parentNode.replaceChild(ve.pre,le.text),le.text=ve.pre,ve.bgClass!=le.bgClass||ve.textClass!=le.textClass?(le.bgClass=ve.bgClass,le.textClass=ve.textClass,to(re,le)):ye&&(le.text.className=ye)}function to(re,le){To(re,le),le.line.wrapClass?is(le).className=le.line.wrapClass:le.node!=le.text&&(le.node.className="");var ye=le.textClass?le.textClass+" "+(le.line.textClass||""):le.line.textClass;le.text.className=ye||""}function No(re,le,ye,ve){if(le.gutter&&(le.node.removeChild(le.gutter),le.gutter=null),le.gutterBackground&&(le.node.removeChild(le.gutterBackground),le.gutterBackground=null),le.line.gutterClass){var xe=is(le);le.gutterBackground=ot("div",null,"CodeMirror-gutter-background "+le.line.gutterClass,"left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px; width: "+ve.gutterTotalWidth+"px"),re.display.input.setUneditable(le.gutterBackground),xe.insertBefore(le.gutterBackground,le.text)}var Ke=le.line.gutterMarkers;if(re.options.lineNumbers||Ke){var dt=is(le),Ct=le.gutter=ot("div",null,"CodeMirror-gutter-wrapper","left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px");if(re.display.input.setUneditable(Ct),dt.insertBefore(Ct,le.text),le.line.gutterClass&&(Ct.className+=" "+le.line.gutterClass),re.options.lineNumbers&&(!Ke||!Ke["CodeMirror-linenumbers"])&&(le.lineNumber=Ct.appendChild(ot("div",Qr(re.options,ye),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ve.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+re.display.lineNumInnerWidth+"px"))),Ke)for(var Et=0;Et<re.display.gutterSpecs.length;++Et){var jt=re.display.gutterSpecs[Et].className,Yn=Ke.hasOwnProperty(jt)&&Ke[jt];Yn&&Ct.appendChild(ot("div",[Yn],"CodeMirror-gutter-elt","left: "+ve.gutterLeft[jt]+"px; width: "+ve.gutterWidth[jt]+"px"))}}}function ba(re,le,ye){le.alignable&&(le.alignable=null);for(var ve=De("CodeMirror-linewidget"),xe=le.node.firstChild,Ke=void 0;xe;xe=Ke)Ke=xe.nextSibling,ve.test(xe.className)&&le.node.removeChild(xe);ms(re,le,ye)}function os(re,le,ye,ve){var xe=Ao(re,le);return le.text=le.node=xe.pre,xe.bgClass&&(le.bgClass=xe.bgClass),xe.textClass&&(le.textClass=xe.textClass),to(re,le),No(re,le,ye,ve),ms(re,le,ve),le.node}function ms(re,le,ye){if(uo(re,le.line,le,ye,!0),le.rest)for(var ve=0;ve<le.rest.length;ve++)uo(re,le.rest[ve],le,ye,!1)}function uo(re,le,ye,ve,xe){if(le.widgets)for(var Ke=is(ye),dt=0,Ct=le.widgets;dt<Ct.length;++dt){var Et=Ct[dt],jt=ot("div",[Et.node],"CodeMirror-linewidget"+(Et.className?" "+Et.className:""));Et.handleMouseEvents||jt.setAttribute("cm-ignore-events","true"),_a(Et,jt,ye,ve),re.display.input.setUneditable(jt),xe&&Et.above?Ke.insertBefore(jt,ye.gutter||ye.text):Ke.appendChild(jt),Qi(Et,"redraw")}}function _a(re,le,ye,ve){if(re.noHScroll){(ye.alignable||(ye.alignable=[])).push(le);var xe=ve.wrapperWidth;le.style.left=ve.fixedPos+"px",re.coverGutter||(xe-=ve.gutterTotalWidth,le.style.paddingLeft=ve.gutterTotalWidth+"px"),le.style.width=xe+"px"}re.coverGutter&&(le.style.zIndex=5,le.style.position="relative",re.noHScroll||(le.style.marginLeft=-ve.gutterTotalWidth+"px"))}function qa(re){if(re.height!=null)return re.height;var le=re.doc.cm;if(!le)return 0;if(!vt(document.body,re.node)){var ye="position: relative;";re.coverGutter&&(ye+="margin-left: -"+le.display.gutters.offsetWidth+"px;"),re.noHScroll&&(ye+="width: "+le.display.wrapper.clientWidth+"px;"),qe(le.display.measure,ot("div",[re.node],null,ye))}return re.height=re.node.parentNode.offsetHeight}function pa(re,le){for(var ye=ri(le);ye!=re.wrapper;ye=ye.parentNode)if(!ye||ye.nodeType==1&&ye.getAttribute("cm-ignore-events")=="true"||ye.parentNode==re.sizer&&ye!=re.mover)return!0}function ra(re){return re.lineSpace.offsetTop}function Ca(re){return re.mover.offsetHeight-re.lineSpace.offsetHeight}function Ys(re){if(re.cachedPaddingH)return re.cachedPaddingH;var le=qe(re.measure,ot("pre","x","CodeMirror-line-like")),ye=window.getComputedStyle?window.getComputedStyle(le):le.currentStyle,ve={left:parseInt(ye.paddingLeft),right:parseInt(ye.paddingRight)};return!isNaN(ve.left)&&!isNaN(ve.right)&&(re.cachedPaddingH=ve),ve}function oa(re){return Jt-re.display.nativeBarWidth}function as(re){return re.display.scroller.clientWidth-oa(re)-re.display.barWidth}function Il(re){return re.display.scroller.clientHeight-oa(re)-re.display.barHeight}function iu(re,le,ye){var ve=re.options.lineWrapping,xe=ve&&as(re);if(!le.measure.heights||ve&&le.measure.width!=xe){var Ke=le.measure.heights=[];if(ve){le.measure.width=xe;for(var dt=le.text.firstChild.getClientRects(),Ct=0;Ct<dt.length-1;Ct++){var Et=dt[Ct],jt=dt[Ct+1];Math.abs(Et.bottom-jt.bottom)>2&&Ke.push((Et.bottom+jt.top)/2-ye.top)}}Ke.push(ye.bottom-ye.top)}}function Ua(re,le,ye){if(re.line==le)return{map:re.measure.map,cache:re.measure.cache};for(var ve=0;ve<re.rest.length;ve++)if(re.rest[ve]==le)return{map:re.measure.maps[ve],cache:re.measure.caches[ve]};for(var xe=0;xe<re.rest.length;xe++)if(kt(re.rest[xe])>ye)return{map:re.measure.maps[xe],cache:re.measure.caches[xe],before:!0}}function jl(re,le){le=Mn(le);var ye=kt(le),ve=re.display.externalMeasured=new Vn(re.doc,le,ye);ve.lineN=ye;var xe=ve.built=An(re,ve);return ve.text=xe.pre,qe(re.display.lineMeasure,xe.pre),ve}function sc(re,le,ye,ve){return cl(re,ss(re,le),ye,ve)}function ou(re,le){if(le>=re.display.viewFrom&&le<re.display.viewTo)return re.display.view[Ws(re,le)];var ye=re.display.externalMeasured;if(ye&&le>=ye.lineN&&le<ye.lineN+ye.size)return ye}function ss(re,le){var ye=kt(le),ve=ou(re,ye);ve&&!ve.text?ve=null:ve&&ve.changes&&(Ba(re,ve,ye,Xu(re)),re.curOp.forceUpdate=!0),ve||(ve=jl(re,le));var xe=Ua(ve,le,ye);return{line:le,view:ve,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function cl(re,le,ye,ve,xe){le.before&&(ye=-1);var Ke=ye+(ve||""),dt;return le.cache.hasOwnProperty(Ke)?dt=le.cache[Ke]:(le.rect||(le.rect=le.view.text.getBoundingClientRect()),le.hasHeights||(iu(re,le.view,le.rect),le.hasHeights=!0),dt=ts(re,le,ye,ve),dt.bogus||(le.cache[Ke]=dt)),{left:dt.left,right:dt.right,top:xe?dt.rtop:dt.top,bottom:xe?dt.rbottom:dt.bottom}}var au={left:0,right:0,top:0,bottom:0};function Vl(re,le,ye){for(var ve,xe,Ke,dt,Ct,Et,jt=0;jt<re.length;jt+=3)if(Ct=re[jt],Et=re[jt+1],le<Ct?(xe=0,Ke=1,dt="left"):le<Et?(xe=le-Ct,Ke=xe+1):(jt==re.length-3||le==Et&&re[jt+3]>le)&&(Ke=Et-Ct,xe=Ke-1,le>=Et&&(dt="right")),xe!=null){if(ve=re[jt+2],Ct==Et&&ye==(ve.insertLeft?"left":"right")&&(dt=ye),ye=="left"&&xe==0)for(;jt&&re[jt-2]==re[jt-3]&&re[jt-1].insertLeft;)ve=re[(jt-=3)+2],dt="left";if(ye=="right"&&xe==Et-Ct)for(;jt<re.length-3&&re[jt+3]==re[jt+4]&&!re[jt+5].insertLeft;)ve=re[(jt+=3)+2],dt="right";break}return{node:ve,start:xe,end:Ke,collapse:dt,coverStart:Ct,coverEnd:Et}}function Zu(re,le){var ye=au;if(le=="left")for(var ve=0;ve<re.length&&(ye=re[ve]).left==ye.right;ve++);else for(var xe=re.length-1;xe>=0&&(ye=re[xe]).left==ye.right;xe--);return ye}function ts(re,le,ye,ve){var xe=Vl(le.map,ye,ve),Ke=xe.node,dt=xe.start,Ct=xe.end,Et=xe.collapse,jt;if(Ke.nodeType==3){for(var Yn=0;Yn<4;Yn++){for(;dt&&Wt(le.line.text.charAt(xe.coverStart+dt));)--dt;for(;xe.coverStart+Ct<xe.coverEnd&&Wt(le.line.text.charAt(xe.coverStart+Ct));)++Ct;if(Ve&&Te<9&&dt==0&&Ct==xe.coverEnd-xe.coverStart?jt=Ke.parentNode.getBoundingClientRect():jt=Zu(at(Ke,dt,Ct).getClientRects(),ve),jt.left||jt.right||dt==0)break;Ct=dt,dt=dt-1,Et="right"}Ve&&Te<11&&(jt=lc(re.display.measure,jt))}else{dt>0&&(Et=ve="right");var tn;re.options.lineWrapping&&(tn=Ke.getClientRects()).length>1?jt=tn[ve=="right"?tn.length-1:0]:jt=Ke.getBoundingClientRect()}if(Ve&&Te<9&&!dt&&(!jt||!jt.left&&!jt.right)){var Cr=Ke.parentNode.getClientRects()[0];Cr?jt={left:Cr.left,right:Cr.left+Dl(re.display),top:Cr.top,bottom:Cr.bottom}:jt=au}for(var mr=jt.top-le.rect.top,bi=jt.bottom-le.rect.top,Ci=(mr+bi)/2,Fi=le.view.measure.heights,Ji=0;Ji<Fi.length-1&&!(Ci<Fi[Ji]);Ji++);var yo=Ji?Fi[Ji-1]:0,oo=Fi[Ji],Po={left:(Et=="right"?jt.right:jt.left)-le.rect.left,right:(Et=="left"?jt.left:jt.right)-le.rect.left,top:yo,bottom:oo};return!jt.left&&!jt.right&&(Po.bogus=!0),re.options.singleCursorHeightPerLine||(Po.rtop=mr,Po.rbottom=bi),Po}function lc(re,le){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ei(re))return le;var ye=screen.logicalXDPI/screen.deviceXDPI,ve=screen.logicalYDPI/screen.deviceYDPI;return{left:le.left*ye,right:le.right*ye,top:le.top*ve,bottom:le.bottom*ve}}function bc(re){if(re.measure&&(re.measure.cache={},re.measure.heights=null,re.rest))for(var le=0;le<re.rest.length;le++)re.measure.caches[le]={}}function Ou(re){re.display.externalMeasure=null,nt(re.display.lineMeasure);for(var le=0;le<re.display.view.length;le++)bc(re.display.view[le])}function Ku(re){Ou(re),re.display.cachedCharWidth=re.display.cachedTextHeight=re.display.cachedPaddingH=null,re.options.lineWrapping||(re.display.maxLineChanged=!0),re.display.lineNumChars=null}function Is(){return Qe&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function js(){return Qe&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hs(re){var le=0;if(re.widgets)for(var ye=0;ye<re.widgets.length;++ye)re.widgets[ye].above&&(le+=qa(re.widgets[ye]));return le}function vs(re,le,ye,ve,xe){if(!xe){var Ke=hs(le);ye.top+=Ke,ye.bottom+=Ke}if(ve=="line")return ye;ve||(ve="local");var dt=Gr(le);if(ve=="local"?dt+=ra(re.display):dt-=re.display.viewOffset,ve=="page"||ve=="window"){var Ct=re.display.lineSpace.getBoundingClientRect();dt+=Ct.top+(ve=="window"?0:js());var Et=Ct.left+(ve=="window"?0:Is());ye.left+=Et,ye.right+=Et}return ye.top+=dt,ye.bottom+=dt,ye}function Sa(re,le,ye){if(ye=="div")return le;var ve=le.left,xe=le.top;if(ye=="page")ve-=Is(),xe-=js();else if(ye=="local"||!ye){var Ke=re.display.sizer.getBoundingClientRect();ve+=Ke.left,xe+=Ke.top}var dt=re.display.lineSpace.getBoundingClientRect();return{left:ve-dt.left,top:xe-dt.top}}function Ho(re,le,ye,ve,xe){return ve||(ve=Rr(re.doc,le.line)),vs(re,ve,sc(re,ve,le.ch,xe),ye)}function Yo(re,le,ye,ve,xe,Ke){ve=ve||Rr(re.doc,le.line),xe||(xe=ss(re,ve));function dt(bi,Ci){var Fi=cl(re,xe,bi,Ci?"right":"left",Ke);return Ci?Fi.left=Fi.right:Fi.right=Fi.left,vs(re,ve,Fi,ye)}var Ct=Tn(ve,re.doc.direction),Et=le.ch,jt=le.sticky;if(Et>=ve.text.length?(Et=ve.text.length,jt="before"):Et<=0&&(Et=0,jt="after"),!Ct)return dt(jt=="before"?Et-1:Et,jt=="before");function Yn(bi,Ci,Fi){var Ji=Ct[Ci],yo=Ji.level==1;return dt(Fi?bi-1:bi,yo!=Fi)}var tn=zt(Ct,Et,jt),Cr=Vt,mr=Yn(Et,tn,jt=="before");return Cr!=null&&(mr.other=Yn(Et,Cr,jt!="before")),mr}function ys(re,le){var ye=0;le=Jn(re.doc,le),re.options.lineWrapping||(ye=Dl(re.display)*le.ch);var ve=Rr(re.doc,le.line),xe=Gr(ve)+ra(re.display);return{left:ye,right:ye,top:xe,bottom:xe+ve.height}}function $a(re,le,ye,ve,xe){var Ke=nn(re,le,ye);return Ke.xRel=xe,ve&&(Ke.outside=ve),Ke}function za(re,le,ye){var ve=re.doc;if(ye+=re.display.viewOffset,ye<0)return $a(ve.first,0,null,-1,-1);var xe=Gn(ve,ye),Ke=ve.first+ve.size-1;if(xe>Ke)return $a(ve.first+ve.size-1,Rr(ve,Ke).text.length,null,1,1);le<0&&(le=0);for(var dt=Rr(ve,xe);;){var Ct=Lr(re,dt,xe,le,ye),Et=ft(dt,Ct.ch+(Ct.xRel>0||Ct.outside>0?1:0));if(!Et)return Ct;var jt=Et.find(1);if(jt.line==xe)return jt;dt=Rr(ve,xe=jt.line)}}function Ui(re,le,ye,ve){ve-=hs(le);var xe=le.text.length,Ke=On(function(dt){return cl(re,ye,dt-1).bottom<=ve},xe,0);return xe=On(function(dt){return cl(re,ye,dt).top>ve},Ke,xe),{begin:Ke,end:xe}}function Sl(re,le,ye,ve){ye||(ye=ss(re,le));var xe=vs(re,le,cl(re,ye,ve),"line").top;return Ui(re,le,ye,xe)}function an(re,le,ye,ve){return re.bottom<=ye?!1:re.top>ye?!0:(ve?re.left:re.right)>le}function Lr(re,le,ye,ve,xe){xe-=Gr(le);var Ke=ss(re,le),dt=hs(le),Ct=0,Et=le.text.length,jt=!0,Yn=Tn(le,re.doc.direction);if(Yn){var tn=(re.options.lineWrapping?Yu:Eu)(re,le,ye,Ke,Yn,ve,xe);jt=tn.level!=1,Ct=jt?tn.from:tn.to-1,Et=jt?tn.to:tn.from-1}var Cr=null,mr=null,bi=On(function(Qo){var ao=cl(re,Ke,Qo);return ao.top+=dt,ao.bottom+=dt,an(ao,ve,xe,!1)?(ao.top<=xe&&ao.left<=ve&&(Cr=Qo,mr=ao),!0):!1},Ct,Et),Ci,Fi,Ji=!1;if(mr){var yo=ve-mr.left<mr.right-ve,oo=yo==jt;bi=Cr+(oo?0:1),Fi=oo?"after":"before",Ci=yo?mr.left:mr.right}else{!jt&&(bi==Et||bi==Ct)&&bi++,Fi=bi==0?"after":bi==le.text.length?"before":cl(re,Ke,bi-(jt?1:0)).bottom+dt<=xe==jt?"after":"before";var Po=Yo(re,nn(ye,bi,Fi),"line",le,Ke);Ci=Po.left,Ji=xe<Po.top?-1:xe>=Po.bottom?1:0}return bi=yn(le.text,bi,1),$a(ye,bi,Fi,Ji,ve-Ci)}function Eu(re,le,ye,ve,xe,Ke,dt){var Ct=On(function(tn){var Cr=xe[tn],mr=Cr.level!=1;return an(Yo(re,nn(ye,mr?Cr.to:Cr.from,mr?"before":"after"),"line",le,ve),Ke,dt,!0)},0,xe.length-1),Et=xe[Ct];if(Ct>0){var jt=Et.level!=1,Yn=Yo(re,nn(ye,jt?Et.from:Et.to,jt?"after":"before"),"line",le,ve);an(Yn,Ke,dt,!0)&&Yn.top>dt&&(Et=xe[Ct-1])}return Et}function Yu(re,le,ye,ve,xe,Ke,dt){var Ct=Ui(re,le,ve,dt),Et=Ct.begin,jt=Ct.end;/\s/.test(le.text.charAt(jt-1))&&jt--;for(var Yn=null,tn=null,Cr=0;Cr<xe.length;Cr++){var mr=xe[Cr];if(!(mr.from>=jt||mr.to<=Et)){var bi=mr.level!=1,Ci=cl(re,ve,bi?Math.min(jt,mr.to)-1:Math.max(Et,mr.from)).right,Fi=Ci<Ke?Ke-Ci+1e9:Ci-Ke;(!Yn||tn>Fi)&&(Yn=mr,tn=Fi)}}return Yn||(Yn=xe[xe.length-1]),Yn.from<Et&&(Yn={from:Et,to:Yn.to,level:Yn.level}),Yn.to>jt&&(Yn={from:Yn.from,to:jt,level:Yn.level}),Yn}var fs;function Vs(re){if(re.cachedTextHeight!=null)return re.cachedTextHeight;if(fs==null){fs=ot("pre",null,"CodeMirror-line-like");for(var le=0;le<49;++le)fs.appendChild(document.createTextNode("x")),fs.appendChild(ot("br"));fs.appendChild(document.createTextNode("x"))}qe(re.measure,fs);var ye=fs.offsetHeight/50;return ye>3&&(re.cachedTextHeight=ye),nt(re.measure),ye||1}function Dl(re){if(re.cachedCharWidth!=null)return re.cachedCharWidth;var le=ot("span","xxxxxxxxxx"),ye=ot("pre",[le],"CodeMirror-line-like");qe(re.measure,ye);var ve=le.getBoundingClientRect(),xe=(ve.right-ve.left)/10;return xe>2&&(re.cachedCharWidth=xe),xe||10}function Xu(re){for(var le=re.display,ye={},ve={},xe=le.gutters.clientLeft,Ke=le.gutters.firstChild,dt=0;Ke;Ke=Ke.nextSibling,++dt){var Ct=re.display.gutterSpecs[dt].className;ye[Ct]=Ke.offsetLeft+Ke.clientLeft+xe,ve[Ct]=Ke.clientWidth}return{fixedPos:uc(le),gutterTotalWidth:le.gutters.offsetWidth,gutterLeft:ye,gutterWidth:ve,wrapperWidth:le.wrapper.clientWidth}}function uc(re){return re.scroller.getBoundingClientRect().left-re.sizer.getBoundingClientRect().left}function Va(re){var le=Vs(re.display),ye=re.options.lineWrapping,ve=ye&&Math.max(5,re.display.scroller.clientWidth/Dl(re.display)-3);return function(xe){if(cn(re.doc,xe))return 0;var Ke=0;if(xe.widgets)for(var dt=0;dt<xe.widgets.length;dt++)xe.widgets[dt].height&&(Ke+=xe.widgets[dt].height);return ye?Ke+(Math.ceil(xe.text.length/ve)||1)*le:Ke+le}}function wo(re){var le=re.doc,ye=Va(re);le.iter(function(ve){var xe=ye(ve);xe!=ve.height&&Wr(ve,xe)})}function Ts(re,le,ye,ve){var xe=re.display;if(!ye&&ri(le).getAttribute("cm-not-content")=="true")return null;var Ke,dt,Ct=xe.lineSpace.getBoundingClientRect();try{Ke=le.clientX-Ct.left,dt=le.clientY-Ct.top}catch(tn){return null}var Et=za(re,Ke,dt),jt;if(ve&&Et.xRel>0&&(jt=Rr(re.doc,Et.line).text).length==Et.ch){var Yn=Nt(jt,jt.length,re.options.tabSize)-jt.length;Et=nn(Et.line,Math.max(0,Math.round((Ke-Ys(re.display).left)/Dl(re.display))-Yn))}return Et}function Ws(re,le){if(le>=re.display.viewTo||(le-=re.display.viewFrom,le<0))return null;for(var ye=re.display.view,ve=0;ve<ye.length;ve++)if(le-=ye[ve].size,le<0)return ve}function aa(re,le,ye,ve){le==null&&(le=re.doc.first),ye==null&&(ye=re.doc.first+re.doc.size),ve||(ve=0);var xe=re.display;if(ve&&ye<xe.viewTo&&(xe.updateLineNumbers==null||xe.updateLineNumbers>le)&&(xe.updateLineNumbers=le),re.curOp.viewChanged=!0,le>=xe.viewTo)rr&&hr(re.doc,le)<xe.viewTo&&Ka(re);else if(ye<=xe.viewFrom)rr&&$n(re.doc,ye+ve)>xe.viewFrom?Ka(re):(xe.viewFrom+=ve,xe.viewTo+=ve);else if(le<=xe.viewFrom&&ye>=xe.viewTo)Ka(re);else if(le<=xe.viewFrom){var Ke=dl(re,ye,ye+ve,1);Ke?(xe.view=xe.view.slice(Ke.index),xe.viewFrom=Ke.lineN,xe.viewTo+=ve):Ka(re)}else if(ye>=xe.viewTo){var dt=dl(re,le,le,-1);dt?(xe.view=xe.view.slice(0,dt.index),xe.viewTo=dt.lineN):Ka(re)}else{var Ct=dl(re,le,le,-1),Et=dl(re,ye,ye+ve,1);Ct&&Et?(xe.view=xe.view.slice(0,Ct.index).concat(Mo(re,Ct.lineN,Et.lineN)).concat(xe.view.slice(Et.index)),xe.viewTo+=ve):Ka(re)}var jt=xe.externalMeasured;jt&&(ye<jt.lineN?jt.lineN+=ve:le<jt.lineN+jt.size&&(xe.externalMeasured=null))}function Wo(re,le,ye){re.curOp.viewChanged=!0;var ve=re.display,xe=re.display.externalMeasured;if(xe&&le>=xe.lineN&&le<xe.lineN+xe.size&&(ve.externalMeasured=null),!(le<ve.viewFrom||le>=ve.viewTo)){var Ke=ve.view[Ws(re,le)];if(Ke.node!=null){var dt=Ke.changes||(Ke.changes=[]);ct(dt,ye)==-1&&dt.push(ye)}}}function Ka(re){re.display.viewFrom=re.display.viewTo=re.doc.first,re.display.view=[],re.display.viewOffset=0}function dl(re,le,ye,ve){var xe=Ws(re,le),Ke,dt=re.display.view;if(!rr||ye==re.doc.first+re.doc.size)return{index:xe,lineN:ye};for(var Ct=re.display.viewFrom,Et=0;Et<xe;Et++)Ct+=dt[Et].size;if(Ct!=le){if(ve>0){if(xe==dt.length-1)return null;Ke=Ct+dt[xe].size-le,xe++}else Ke=Ct-le;le+=Ke,ye+=Ke}for(;hr(re.doc,ye)!=ye;){if(xe==(ve<0?0:dt.length-1))return null;ye+=ve*dt[xe-(ve<0?1:0)].size,xe+=ve}return{index:xe,lineN:ye}}function Ia(re,le,ye){var ve=re.display,xe=ve.view;xe.length==0||le>=ve.viewTo||ye<=ve.viewFrom?(ve.view=Mo(re,le,ye),ve.viewFrom=le):(ve.viewFrom>le?ve.view=Mo(re,le,ve.viewFrom).concat(ve.view):ve.viewFrom<le&&(ve.view=ve.view.slice(Ws(re,le))),ve.viewFrom=le,ve.viewTo<ye?ve.view=ve.view.concat(Mo(re,ve.viewTo,ye)):ve.viewTo>ye&&(ve.view=ve.view.slice(0,Ws(re,ye)))),ve.viewTo=ye}function bl(re){for(var le=re.display.view,ye=0,ve=0;ve<le.length;ve++){var xe=le[ve];!xe.hidden&&(!xe.node||xe.changes)&&++ye}return ye}function As(re){re.display.input.showSelection(re.display.input.prepareSelection())}function Fu(re,le){le===void 0&&(le=!0);for(var ye=re.doc,ve={},xe=ve.cursors=document.createDocumentFragment(),Ke=ve.selection=document.createDocumentFragment(),dt=0;dt<ye.sel.ranges.length;dt++)if(!(!le&&dt==ye.sel.primIndex)){var Ct=ye.sel.ranges[dt];if(!(Ct.from().line>=re.display.viewTo||Ct.to().line<re.display.viewFrom)){var Et=Ct.empty();(Et||re.options.showCursorWhenSelecting)&&ga(re,Ct.head,xe),Et||sa(re,Ct,Ke)}}return ve}function ga(re,le,ye){var ve=Yo(re,le,"div",null,null,!re.options.singleCursorHeightPerLine),xe=ye.appendChild(ot("div","\xA0","CodeMirror-cursor"));if(xe.style.left=ve.left+"px",xe.style.top=ve.top+"px",xe.style.height=Math.max(0,ve.bottom-ve.top)*re.options.cursorHeight+"px",ve.other){var Ke=ye.appendChild(ot("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ke.style.display="",Ke.style.left=ve.other.left+"px",Ke.style.top=ve.other.top+"px",Ke.style.height=(ve.other.bottom-ve.other.top)*.85+"px"}}function Ds(re,le){return re.top-le.top||re.left-le.left}function sa(re,le,ye){var ve=re.display,xe=re.doc,Ke=document.createDocumentFragment(),dt=Ys(re.display),Ct=dt.left,Et=Math.max(ve.sizerWidth,as(re)-ve.sizer.offsetLeft)-dt.right,jt=xe.direction=="ltr";function Yn(oo,Po,Qo,ao){Po<0&&(Po=0),Po=Math.round(Po),ao=Math.round(ao),Ke.appendChild(ot("div",null,"CodeMirror-selected","position: absolute; left: "+oo+`px;
top: `+Po+"px; width: "+(Qo==null?Et-oo:Qo)+`px;
height: `+(ao-Po)+"px"))}function tn(oo,Po,Qo){var ao=Rr(xe,oo),ya=ao.text.length,xs,Cl;function Ms(gl,Au){return Ho(re,nn(oo,gl),"div",ao,Au)}function Tu(gl,Au,Bl){var ml=Sl(re,ao,null,gl),Ra=Au=="ltr"==(Bl=="after")?"left":"right",Os=Bl=="after"?ml.begin:ml.end-(/\s/.test(ao.text.charAt(ml.end-1))?2:1);return Ms(Os,Ra)[Ra]}var Xl=Tn(ao,xe.direction);return Pt(Xl,Po||0,Qo==null?ya:Qo,function(gl,Au,Bl,ml){var Ra=Bl=="ltr",Os=Ms(gl,Ra?"left":"right"),Ll=Ms(Au-1,Ra?"right":"left"),_l=Po==null&&gl==0,wc=Qo==null&&Au==ya,Fs=ml==0,tc=!Xl||ml==Xl.length-1;if(Ll.top-Os.top<=3){var we=(jt?_l:wc)&&Fs,Le=(jt?wc:_l)&&tc,je=we?Ct:(Ra?Os:Ll).left,ut=Le?Et:(Ra?Ll:Os).right;Yn(je,Os.top,ut-je,Os.bottom)}else{var Lt,Tt,Ut,Kt;Ra?(Lt=jt&&_l&&Fs?Ct:Os.left,Tt=jt?Et:Tu(gl,Bl,"before"),Ut=jt?Ct:Tu(Au,Bl,"after"),Kt=jt&&wc&&tc?Et:Ll.right):(Lt=jt?Tu(gl,Bl,"before"):Ct,Tt=!jt&&_l&&Fs?Et:Os.right,Ut=!jt&&wc&&tc?Ct:Ll.left,Kt=jt?Tu(Au,Bl,"after"):Et),Yn(Lt,Os.top,Tt-Lt,Os.bottom),Os.bottom<Ll.top&&Yn(Ct,Os.bottom,null,Ll.top),Yn(Ut,Ll.top,Kt-Ut,Ll.bottom)}(!xs||Ds(Os,xs)<0)&&(xs=Os),Ds(Ll,xs)<0&&(xs=Ll),(!Cl||Ds(Os,Cl)<0)&&(Cl=Os),Ds(Ll,Cl)<0&&(Cl=Ll)}),{start:xs,end:Cl}}var Cr=le.from(),mr=le.to();if(Cr.line==mr.line)tn(Cr.line,Cr.ch,mr.ch);else{var bi=Rr(xe,Cr.line),Ci=Rr(xe,mr.line),Fi=Mn(bi)==Mn(Ci),Ji=tn(Cr.line,Cr.ch,Fi?bi.text.length+1:null).end,yo=tn(mr.line,Fi?0:null,mr.ch).start;Fi&&(Ji.top<yo.top-2?(Yn(Ji.right,Ji.top,null,Ji.bottom),Yn(Ct,yo.top,yo.left,yo.bottom)):Yn(Ji.right,Ji.top,yo.left-Ji.right,Ji.bottom)),Ji.bottom<yo.top&&Yn(Ct,Ji.bottom,null,yo.top)}ye.appendChild(Ke)}function Ta(re){if(re.state.focused){var le=re.display;clearInterval(le.blinker);var ye=!0;le.cursorDiv.style.visibility="",re.options.cursorBlinkRate>0?le.blinker=setInterval(function(){re.hasFocus()||cc(re),le.cursorDiv.style.visibility=(ye=!ye)?"":"hidden"},re.options.cursorBlinkRate):re.options.cursorBlinkRate<0&&(le.cursorDiv.style.visibility="hidden")}}function ka(re){re.state.focused||(re.display.input.focus(),$o(re))}function Wa(re){re.state.delayingBlurEvent=!0,setTimeout(function(){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1,cc(re))},100)}function $o(re,le){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1),re.options.readOnly!="nocursor"&&(re.state.focused||(on(re,"focus",re,le),re.state.focused=!0,At(re.display.wrapper,"CodeMirror-focused"),!re.curOp&&re.display.selForContextMenu!=re.doc.sel&&(re.display.input.reset(),ze&&setTimeout(function(){return re.display.input.reset(!0)},20)),re.display.input.receivedFocus()),Ta(re))}function cc(re,le){re.state.delayingBlurEvent||(re.state.focused&&(on(re,"blur",re,le),re.state.focused=!1,We(re.display.wrapper,"CodeMirror-focused")),clearInterval(re.display.blinker),setTimeout(function(){re.state.focused||(re.display.shift=!1)},150))}function vo(re){for(var le=re.display,ye=le.lineDiv.offsetTop,ve=0;ve<le.view.length;ve++){var xe=le.view[ve],Ke=re.options.lineWrapping,dt=void 0,Ct=0;if(!xe.hidden){if(Ve&&Te<8){var Et=xe.node.offsetTop+xe.node.offsetHeight;dt=Et-ye,ye=Et}else{var jt=xe.node.getBoundingClientRect();dt=jt.bottom-jt.top,!Ke&&xe.text.firstChild&&(Ct=xe.text.firstChild.getBoundingClientRect().right-jt.left-1)}var Yn=xe.line.height-dt;if((Yn>.005||Yn<-.005)&&(Wr(xe.line,dt),dd(xe.line),xe.rest))for(var tn=0;tn<xe.rest.length;tn++)dd(xe.rest[tn]);if(Ct>re.display.sizerWidth){var Cr=Math.ceil(Ct/Dl(re.display));Cr>re.display.maxLineLength&&(re.display.maxLineLength=Cr,re.display.maxLine=xe.line,re.display.maxLineChanged=!0)}}}}function dd(re){if(re.widgets)for(var le=0;le<re.widgets.length;++le){var ye=re.widgets[le],ve=ye.node.parentNode;ve&&(ye.height=ve.offsetHeight)}}function ta(re,le,ye){var ve=ye&&ye.top!=null?Math.max(0,ye.top):re.scroller.scrollTop;ve=Math.floor(ve-ra(re));var xe=ye&&ye.bottom!=null?ye.bottom:ve+re.wrapper.clientHeight,Ke=Gn(le,ve),dt=Gn(le,xe);if(ye&&ye.ensure){var Ct=ye.ensure.from.line,Et=ye.ensure.to.line;Ct<Ke?(Ke=Ct,dt=Gn(le,Gr(Rr(le,Ct))+re.wrapper.clientHeight)):Math.min(Et,le.lastLine())>=dt&&(Ke=Gn(le,Gr(Rr(le,Et))-re.wrapper.clientHeight),dt=Et)}return{from:Ke,to:Math.max(dt,Ke+1)}}function Vc(re,le){if(!mn(re,"scrollCursorIntoView")){var ye=re.display,ve=ye.sizer.getBoundingClientRect(),xe=null;if(le.top+ve.top<0?xe=!0:le.bottom+ve.top>(window.innerHeight||document.documentElement.clientHeight)&&(xe=!1),xe!=null&&!Dt){var Ke=ot("div","\u200B",null,`position: absolute;
top: `+(le.top-ye.viewOffset-ra(re.display))+`px;
height: `+(le.bottom-le.top+oa(re)+ye.barHeight)+`px;
left: `+le.left+"px; width: "+Math.max(2,le.right-le.left)+"px;");re.display.lineSpace.appendChild(Ke),Ke.scrollIntoView(xe),re.display.lineSpace.removeChild(Ke)}}}function xu(re,le,ye,ve){ve==null&&(ve=0);var xe;!re.options.lineWrapping&&le==ye&&(le=le.ch?nn(le.line,le.sticky=="before"?le.ch-1:le.ch,"after"):le,ye=le.sticky=="before"?nn(le.line,le.ch+1,"before"):le);for(var Ke=0;Ke<5;Ke++){var dt=!1,Ct=Yo(re,le),Et=!ye||ye==le?Ct:Yo(re,ye);xe={left:Math.min(Ct.left,Et.left),top:Math.min(Ct.top,Et.top)-ve,right:Math.max(Ct.left,Et.left),bottom:Math.max(Ct.bottom,Et.bottom)+ve};var jt=Wc(re,xe),Yn=re.doc.scrollTop,tn=re.doc.scrollLeft;if(jt.scrollTop!=null&&(hl(re,jt.scrollTop),Math.abs(re.doc.scrollTop-Yn)>1&&(dt=!0)),jt.scrollLeft!=null&&(rl(re,jt.scrollLeft),Math.abs(re.doc.scrollLeft-tn)>1&&(dt=!0)),!dt)break}return xe}function su(re,le){var ye=Wc(re,le);ye.scrollTop!=null&&hl(re,ye.scrollTop),ye.scrollLeft!=null&&rl(re,ye.scrollLeft)}function Wc(re,le){var ye=re.display,ve=Vs(re.display);le.top<0&&(le.top=0);var xe=re.curOp&&re.curOp.scrollTop!=null?re.curOp.scrollTop:ye.scroller.scrollTop,Ke=Il(re),dt={};le.bottom-le.top>Ke&&(le.bottom=le.top+Ke);var Ct=re.doc.height+Ca(ye),Et=le.top<ve,jt=le.bottom>Ct-ve;if(le.top<xe)dt.scrollTop=Et?0:le.top;else if(le.bottom>xe+Ke){var Yn=Math.min(le.top,(jt?Ct:le.bottom)-Ke);Yn!=xe&&(dt.scrollTop=Yn)}var tn=re.options.fixedGutter?0:ye.gutters.offsetWidth,Cr=re.curOp&&re.curOp.scrollLeft!=null?re.curOp.scrollLeft:ye.scroller.scrollLeft-tn,mr=as(re)-ye.gutters.offsetWidth,bi=le.right-le.left>mr;return bi&&(le.right=le.left+mr),le.left<10?dt.scrollLeft=0:le.left<Cr?dt.scrollLeft=Math.max(0,le.left+tn-(bi?0:10)):le.right>mr+Cr-3&&(dt.scrollLeft=le.right+(bi?0:10)-mr),dt}function Ec(re,le){le!=null&&(Xs(re),re.curOp.scrollTop=(re.curOp.scrollTop==null?re.doc.scrollTop:re.curOp.scrollTop)+le)}function lu(re){Xs(re);var le=re.getCursor();re.curOp.scrollToPos={from:le,to:le,margin:re.options.cursorScrollMargin}}function Wl(re,le,ye){(le!=null||ye!=null)&&Xs(re),le!=null&&(re.curOp.scrollLeft=le),ye!=null&&(re.curOp.scrollTop=ye)}function la(re,le){Xs(re),re.curOp.scrollToPos=le}function Xs(re){var le=re.curOp.scrollToPos;if(le){re.curOp.scrollToPos=null;var ye=ys(re,le.from),ve=ys(re,le.to);Bu(re,ye,ve,le.margin)}}function Bu(re,le,ye,ve){var xe=Wc(re,{left:Math.min(le.left,ye.left),top:Math.min(le.top,ye.top)-ve,right:Math.max(le.right,ye.right),bottom:Math.max(le.bottom,ye.bottom)+ve});Wl(re,xe.scrollLeft,xe.scrollTop)}function hl(re,le){Math.abs(re.doc.scrollTop-le)<2||(oe||tt(re,{top:le}),Zl(re,le,!0),oe&&tt(re),xc(re,100))}function Zl(re,le,ye){le=Math.max(0,Math.min(re.display.scroller.scrollHeight-re.display.scroller.clientHeight,le)),!(re.display.scroller.scrollTop==le&&!ye)&&(re.doc.scrollTop=le,re.display.scrollbars.setScrollTop(le),re.display.scroller.scrollTop!=le&&(re.display.scroller.scrollTop=le))}function rl(re,le,ye,ve){le=Math.max(0,Math.min(le,re.display.scroller.scrollWidth-re.display.scroller.clientWidth)),!((ye?le==re.doc.scrollLeft:Math.abs(re.doc.scrollLeft-le)<2)&&!ve)&&(re.doc.scrollLeft=le,rn(re),re.display.scroller.scrollLeft!=le&&(re.display.scroller.scrollLeft=le),re.display.scrollbars.setScrollLeft(le))}function jo(re){var le=re.display,ye=le.gutters.offsetWidth,ve=Math.round(re.doc.height+Ca(re.display));return{clientHeight:le.scroller.clientHeight,viewHeight:le.wrapper.clientHeight,scrollWidth:le.scroller.scrollWidth,clientWidth:le.scroller.clientWidth,viewWidth:le.wrapper.clientWidth,barLeft:re.options.fixedGutter?ye:0,docHeight:ve,scrollHeight:ve+oa(re)+le.barHeight,nativeBarWidth:le.nativeBarWidth,gutterWidth:ye}}var ha=function(re,le,ye){this.cm=ye;var ve=this.vert=ot("div",[ot("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=ot("div",[ot("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ve.tabIndex=xe.tabIndex=-1,re(ve),re(xe),Mt(ve,"scroll",function(){ve.clientHeight&&le(ve.scrollTop,"vertical")}),Mt(xe,"scroll",function(){xe.clientWidth&&le(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ve&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ha.prototype.update=function(re){var le=re.scrollWidth>re.clientWidth+1,ye=re.scrollHeight>re.clientHeight+1,ve=re.nativeBarWidth;if(ye){this.vert.style.display="block",this.vert.style.bottom=le?ve+"px":"0";var xe=re.viewHeight-(le?ve:0);this.vert.firstChild.style.height=Math.max(0,re.scrollHeight-re.clientHeight+xe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(le){this.horiz.style.display="block",this.horiz.style.right=ye?ve+"px":"0",this.horiz.style.left=re.barLeft+"px";var Ke=re.viewWidth-re.barLeft-(ye?ve:0);this.horiz.firstChild.style.width=Math.max(0,re.scrollWidth-re.clientWidth+Ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&re.clientHeight>0&&(ve==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ye?ve:0,bottom:le?ve:0}},ha.prototype.setScrollLeft=function(re){this.horiz.scrollLeft!=re&&(this.horiz.scrollLeft=re),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ha.prototype.setScrollTop=function(re){this.vert.scrollTop!=re&&(this.vert.scrollTop=re),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ha.prototype.zeroWidthHack=function(){var re=he&&!$e?"12px":"18px";this.horiz.style.height=this.vert.style.width=re,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new gt,this.disableVert=new gt},ha.prototype.enableZeroWidthBar=function(re,le,ye){re.style.pointerEvents="auto";function ve(){var xe=re.getBoundingClientRect(),Ke=ye=="vert"?document.elementFromPoint(xe.right-1,(xe.top+xe.bottom)/2):document.elementFromPoint((xe.right+xe.left)/2,xe.bottom-1);Ke!=re?re.style.pointerEvents="none":le.set(1e3,ve)}le.set(1e3,ve)},ha.prototype.clear=function(){var re=this.horiz.parentNode;re.removeChild(this.horiz),re.removeChild(this.vert)};var Ga=function(){};Ga.prototype.update=function(){return{bottom:0,right:0}},Ga.prototype.setScrollLeft=function(){},Ga.prototype.setScrollTop=function(){},Ga.prototype.clear=function(){};function Ns(re,le){le||(le=jo(re));var ye=re.display.barWidth,ve=re.display.barHeight;Ss(re,le);for(var xe=0;xe<4&&ye!=re.display.barWidth||ve!=re.display.barHeight;xe++)ye!=re.display.barWidth&&re.options.lineWrapping&&vo(re),Ss(re,jo(re)),ye=re.display.barWidth,ve=re.display.barHeight}function Ss(re,le){var ye=re.display,ve=ye.scrollbars.update(le);ye.sizer.style.paddingRight=(ye.barWidth=ve.right)+"px",ye.sizer.style.paddingBottom=(ye.barHeight=ve.bottom)+"px",ye.heightForcer.style.borderBottom=ve.bottom+"px solid transparent",ve.right&&ve.bottom?(ye.scrollbarFiller.style.display="block",ye.scrollbarFiller.style.height=ve.bottom+"px",ye.scrollbarFiller.style.width=ve.right+"px"):ye.scrollbarFiller.style.display="",ve.bottom&&re.options.coverGutterNextToScrollbar&&re.options.fixedGutter?(ye.gutterFiller.style.display="block",ye.gutterFiller.style.height=ve.bottom+"px",ye.gutterFiller.style.width=le.gutterWidth+"px"):ye.gutterFiller.style.display=""}var Rl={native:ha,null:Ga};function Pl(re){re.display.scrollbars&&(re.display.scrollbars.clear(),re.display.scrollbars.addClass&&We(re.display.wrapper,re.display.scrollbars.addClass)),re.display.scrollbars=new Rl[re.options.scrollbarStyle](function(le){re.display.wrapper.insertBefore(le,re.display.scrollbarFiller),Mt(le,"mousedown",function(){re.state.focused&&setTimeout(function(){return re.display.input.focus()},0)}),le.setAttribute("cm-not-content","true")},function(le,ye){ye=="horizontal"?rl(re,le):hl(re,le)},re),re.display.scrollbars.addClass&&At(re.display.wrapper,re.display.scrollbars.addClass)}var Ml=0;function Tl(re){re.curOp={cm:re,viewChanged:!1,startHeight:re.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:++Ml},Ps(re.curOp)}function uu(re){var le=re.curOp;le&&Gs(le,function(ye){for(var ve=0;ve<ye.ops.length;ve++)ye.ops[ve].cm.curOp=null;xd(ye)})}function xd(re){for(var le=re.ops,ye=0;ye<le.length;ye++)hh(le[ye]);for(var ve=0;ve<le.length;ve++)jd(le[ve]);for(var xe=0;xe<le.length;xe++)fh(le[xe]);for(var Ke=0;Ke<le.length;Ke++)bs(le[Ke]);for(var dt=0;dt<le.length;dt++)dc(le[dt])}function hh(re){var le=re.cm,ye=le.display;Ic(le),re.updateMaxLine&&mi(le),re.mustUpdate=re.viewChanged||re.forceUpdate||re.scrollTop!=null||re.scrollToPos&&(re.scrollToPos.from.line<ye.viewFrom||re.scrollToPos.to.line>=ye.viewTo)||ye.maxLineChanged&&le.options.lineWrapping,re.update=re.mustUpdate&&new cu(le,re.mustUpdate&&{top:re.scrollTop,ensure:re.scrollToPos},re.forceUpdate)}function jd(re){re.updatedDisplay=re.mustUpdate&&Ce(re.cm,re.update)}function fh(re){var le=re.cm,ye=le.display;re.updatedDisplay&&vo(le),re.barMeasure=jo(le),ye.maxLineChanged&&!le.options.lineWrapping&&(re.adjustWidthTo=sc(le,ye.maxLine,ye.maxLine.text.length).left+3,le.display.sizerWidth=re.adjustWidthTo,re.barMeasure.scrollWidth=Math.max(ye.scroller.clientWidth,ye.sizer.offsetLeft+re.adjustWidthTo+oa(le)+le.display.barWidth),re.maxScrollLeft=Math.max(0,ye.sizer.offsetLeft+re.adjustWidthTo-as(le))),(re.updatedDisplay||re.selectionChanged)&&(re.preparedSelection=ye.input.prepareSelection())}function bs(re){var le=re.cm;re.adjustWidthTo!=null&&(le.display.sizer.style.minWidth=re.adjustWidthTo+"px",re.maxScrollLeft<le.doc.scrollLeft&&rl(le,Math.min(le.display.scroller.scrollLeft,re.maxScrollLeft),!0),le.display.maxLineChanged=!1);var ye=re.focus&&re.focus==wt();re.preparedSelection&&le.display.input.showSelection(re.preparedSelection,ye),(re.updatedDisplay||re.startHeight!=le.doc.height)&&Ns(le,re.barMeasure),re.updatedDisplay&&_t(le,re.barMeasure),re.selectionChanged&&Ta(le),le.state.focused&&re.updateInput&&le.display.input.reset(re.typing),ye&&ka(re.cm)}function dc(re){var le=re.cm,ye=le.display,ve=le.doc;if(re.updatedDisplay&&Ye(le,re.update),ye.wheelStartX!=null&&(re.scrollTop!=null||re.scrollLeft!=null||re.scrollToPos)&&(ye.wheelStartX=ye.wheelStartY=null),re.scrollTop!=null&&Zl(le,re.scrollTop,re.forceScroll),re.scrollLeft!=null&&rl(le,re.scrollLeft,!0,!0),re.scrollToPos){var xe=xu(le,Jn(ve,re.scrollToPos.from),Jn(ve,re.scrollToPos.to),re.scrollToPos.margin);Vc(le,xe)}var Ke=re.maybeHiddenMarkers,dt=re.maybeUnhiddenMarkers;if(Ke)for(var Ct=0;Ct<Ke.length;++Ct)Ke[Ct].lines.length||on(Ke[Ct],"hide");if(dt)for(var Et=0;Et<dt.length;++Et)dt[Et].lines.length&&on(dt[Et],"unhide");ye.wrapper.offsetHeight&&(ve.scrollTop=le.display.scroller.scrollTop),re.changeObjs&&on(le,"changes",le,re.changeObjs),re.update&&re.update.finish()}function La(re,le){if(re.curOp)return le();Tl(re);try{return le()}finally{uu(re)}}function Us(re,le){return function(){if(re.curOp)return le.apply(re,arguments);Tl(re);try{return le.apply(re,arguments)}finally{uu(re)}}}function Qs(re){return function(){if(this.curOp)return re.apply(this,arguments);Tl(this);try{return re.apply(this,arguments)}finally{uu(this)}}}function Zs(re){return function(){var le=this.cm;if(!le||le.curOp)return re.apply(this,arguments);Tl(le);try{return re.apply(this,arguments)}finally{uu(le)}}}function xc(re,le){re.doc.highlightFrontier<re.display.viewTo&&re.state.highlight.set(le,Zt(il,re))}function il(re){var le=re.doc;if(!(le.highlightFrontier>=re.display.viewTo)){var ye=+new Date+re.options.workTime,ve=zi(re,le.highlightFrontier),xe=[];le.iter(ve.line,Math.min(le.first+le.size,re.display.viewTo+500),function(Ke){if(ve.line>=re.display.viewFrom){var dt=Ke.styles,Ct=Ke.text.length>re.options.maxHighlightLength?Ur(le.mode,ve.state):null,Et=vn(re,Ke,ve,!0);Ct&&(ve.state=Ct),Ke.styles=Et.styles;var jt=Ke.styleClasses,Yn=Et.classes;Yn?Ke.styleClasses=Yn:jt&&(Ke.styleClasses=null);for(var tn=!dt||dt.length!=Ke.styles.length||jt!=Yn&&(!jt||!Yn||jt.bgClass!=Yn.bgClass||jt.textClass!=Yn.textClass),Cr=0;!tn&&Cr<dt.length;++Cr)tn=dt[Cr]!=Ke.styles[Cr];tn&&xe.push(ve.line),Ke.stateAfter=ve.save(),ve.nextLine()}else Ke.text.length<=re.options.maxHighlightLength&&Ln(re,Ke.text,ve),Ke.stateAfter=ve.line%5==0?ve.save():null,ve.nextLine();if(+new Date>ye)return xc(re,re.options.workDelay),!0}),le.highlightFrontier=ve.line,le.modeFrontier=Math.max(le.modeFrontier,ve.line),xe.length&&La(re,function(){for(var Ke=0;Ke<xe.length;Ke++)Wo(re,xe[Ke],"text")})}}var cu=function(re,le,ye){var ve=re.display;this.viewport=le,this.visible=ta(ve,re.doc,le),this.editorIsHidden=!ve.wrapper.offsetWidth,this.wrapperHeight=ve.wrapper.clientHeight,this.wrapperWidth=ve.wrapper.clientWidth,this.oldDisplayWidth=as(re),this.force=ye,this.dims=Xu(re),this.events=[]};cu.prototype.signal=function(re,le){Sn(re,le)&&this.events.push(arguments)},cu.prototype.finish=function(){for(var re=0;re<this.events.length;re++)on.apply(null,this.events[re])};function Ic(re){var le=re.display;!le.scrollbarsClipped&&le.scroller.offsetWidth&&(le.nativeBarWidth=le.scroller.offsetWidth-le.scroller.clientWidth,le.heightForcer.style.height=oa(re)+"px",le.sizer.style.marginBottom=-le.nativeBarWidth+"px",le.sizer.style.borderRightWidth=oa(re)+"px",le.scrollbarsClipped=!0)}function Zc(re){if(re.hasFocus())return null;var le=wt();if(!le||!vt(re.display.lineDiv,le))return null;var ye={activeElt:le};if(window.getSelection){var ve=window.getSelection();ve.anchorNode&&ve.extend&&vt(re.display.lineDiv,ve.anchorNode)&&(ye.anchorNode=ve.anchorNode,ye.anchorOffset=ve.anchorOffset,ye.focusNode=ve.focusNode,ye.focusOffset=ve.focusOffset)}return ye}function Al(re){if(!(!re||!re.activeElt||re.activeElt==wt())&&(re.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(re.activeElt.nodeName)&&re.anchorNode&&vt(document.body,re.anchorNode)&&vt(document.body,re.focusNode))){var le=window.getSelection(),ye=document.createRange();ye.setEnd(re.anchorNode,re.anchorOffset),ye.collapse(!1),le.removeAllRanges(),le.addRange(ye),le.extend(re.focusNode,re.focusOffset)}}function Ce(re,le){var ye=re.display,ve=re.doc;if(le.editorIsHidden)return Ka(re),!1;if(!le.force&&le.visible.from>=ye.viewFrom&&le.visible.to<=ye.viewTo&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo)&&ye.renderedView==ye.view&&bl(re)==0)return!1;Pn(re)&&(Ka(re),le.dims=Xu(re));var xe=ve.first+ve.size,Ke=Math.max(le.visible.from-re.options.viewportMargin,ve.first),dt=Math.min(xe,le.visible.to+re.options.viewportMargin);ye.viewFrom<Ke&&Ke-ye.viewFrom<20&&(Ke=Math.max(ve.first,ye.viewFrom)),ye.viewTo>dt&&ye.viewTo-dt<20&&(dt=Math.min(xe,ye.viewTo)),rr&&(Ke=hr(re.doc,Ke),dt=$n(re.doc,dt));var Ct=Ke!=ye.viewFrom||dt!=ye.viewTo||ye.lastWrapHeight!=le.wrapperHeight||ye.lastWrapWidth!=le.wrapperWidth;Ia(re,Ke,dt),ye.viewOffset=Gr(Rr(re.doc,ye.viewFrom)),re.display.mover.style.top=ye.viewOffset+"px";var Et=bl(re);if(!Ct&&Et==0&&!le.force&&ye.renderedView==ye.view&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo))return!1;var jt=Zc(re);return Et>4&&(ye.lineDiv.style.display="none"),pt(re,ye.updateLineNumbers,le.dims),Et>4&&(ye.lineDiv.style.display=""),ye.renderedView=ye.view,Al(jt),nt(ye.cursorDiv),nt(ye.selectionDiv),ye.gutters.style.height=ye.sizer.style.minHeight=0,Ct&&(ye.lastWrapHeight=le.wrapperHeight,ye.lastWrapWidth=le.wrapperWidth,xc(re,400)),ye.updateLineNumbers=null,!0}function Ye(re,le){for(var ye=le.viewport,ve=!0;;ve=!1){if(!ve||!re.options.lineWrapping||le.oldDisplayWidth==as(re)){if(ye&&ye.top!=null&&(ye={top:Math.min(re.doc.height+Ca(re.display)-Il(re),ye.top)}),le.visible=ta(re.display,re.doc,ye),le.visible.from>=re.display.viewFrom&&le.visible.to<=re.display.viewTo)break}else ve&&(le.visible=ta(re.display,re.doc,ye));if(!Ce(re,le))break;vo(re);var xe=jo(re);As(re),Ns(re,xe),_t(re,xe),le.force=!1}le.signal(re,"update",re),(re.display.viewFrom!=re.display.reportedViewFrom||re.display.viewTo!=re.display.reportedViewTo)&&(le.signal(re,"viewportChange",re,re.display.viewFrom,re.display.viewTo),re.display.reportedViewFrom=re.display.viewFrom,re.display.reportedViewTo=re.display.viewTo)}function tt(re,le){var ye=new cu(re,le);if(Ce(re,ye)){vo(re),Ye(re,ye);var ve=jo(re);As(re),Ns(re,ve),_t(re,ve),ye.finish()}}function pt(re,le,ye){var ve=re.display,xe=re.options.lineNumbers,Ke=ve.lineDiv,dt=Ke.firstChild;function Ct(bi){var Ci=bi.nextSibling;return ze&&he&&re.display.currentWheelTarget==bi?bi.style.display="none":bi.parentNode.removeChild(bi),Ci}for(var Et=ve.view,jt=ve.viewFrom,Yn=0;Yn<Et.length;Yn++){var tn=Et[Yn];if(!tn.hidden)if(!tn.node||tn.node.parentNode!=Ke){var Cr=os(re,tn,jt,ye);Ke.insertBefore(Cr,dt)}else{for(;dt!=tn.node;)dt=Ct(dt);var mr=xe&&le!=null&&le<=jt&&tn.lineNumber;tn.changes&&(ct(tn.changes,"gutter")>-1&&(mr=!1),Ba(re,tn,jt,ye)),mr&&(nt(tn.lineNumber),tn.lineNumber.appendChild(document.createTextNode(Qr(re.options,jt)))),dt=tn.node.nextSibling}jt+=tn.size}for(;dt;)dt=Ct(dt)}function Ft(re){var le=re.gutters.offsetWidth;re.sizer.style.marginLeft=le+"px"}function _t(re,le){re.display.sizer.style.minHeight=le.docHeight+"px",re.display.heightForcer.style.top=le.docHeight+"px",re.display.gutters.style.height=le.docHeight+re.display.barHeight+oa(re)+"px"}function rn(re){var le=re.display,ye=le.view;if(!(!le.alignWidgets&&(!le.gutters.firstChild||!re.options.fixedGutter))){for(var ve=uc(le)-le.scroller.scrollLeft+re.doc.scrollLeft,xe=le.gutters.offsetWidth,Ke=ve+"px",dt=0;dt<ye.length;dt++)if(!ye[dt].hidden){re.options.fixedGutter&&(ye[dt].gutter&&(ye[dt].gutter.style.left=Ke),ye[dt].gutterBackground&&(ye[dt].gutterBackground.style.left=Ke));var Ct=ye[dt].alignable;if(Ct)for(var Et=0;Et<Ct.length;Et++)Ct[Et].style.left=Ke}re.options.fixedGutter&&(le.gutters.style.left=ve+xe+"px")}}function Pn(re){if(!re.options.lineNumbers)return!1;var le=re.doc,ye=Qr(re.options,le.first+le.size-1),ve=re.display;if(ye.length!=ve.lineNumChars){var xe=ve.measure.appendChild(ot("div",[ot("div",ye)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ke=xe.firstChild.offsetWidth,dt=xe.offsetWidth-Ke;return ve.lineGutter.style.width="",ve.lineNumInnerWidth=Math.max(Ke,ve.lineGutter.offsetWidth-dt)+1,ve.lineNumWidth=ve.lineNumInnerWidth+dt,ve.lineNumChars=ve.lineNumInnerWidth?ye.length:-1,ve.lineGutter.style.width=ve.lineNumWidth+"px",Ft(re.display),!0}return!1}function br(re,le){for(var ye=[],ve=!1,xe=0;xe<re.length;xe++){var Ke=re[xe],dt=null;if(typeof Ke!="string"&&(dt=Ke.style,Ke=Ke.className),Ke=="CodeMirror-linenumbers")if(le)ve=!0;else continue;ye.push({className:Ke,style:dt})}return le&&!ve&&ye.push({className:"CodeMirror-linenumbers",style:null}),ye}function wr(re){var le=re.gutters,ye=re.gutterSpecs;nt(le),re.lineGutter=null;for(var ve=0;ve<ye.length;++ve){var xe=ye[ve],Ke=xe.className,dt=xe.style,Ct=le.appendChild(ot("div",null,"CodeMirror-gutter "+Ke));dt&&(Ct.style.cssText=dt),Ke=="CodeMirror-linenumbers"&&(re.lineGutter=Ct,Ct.style.width=(re.lineNumWidth||1)+"px")}le.style.display=ye.length?"":"none",Ft(re)}function ir(re){wr(re.display),aa(re),rn(re)}function Yr(re,le,ye,ve){var xe=this;this.input=ye,xe.scrollbarFiller=ot("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=ot("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=mt("div",null,"CodeMirror-code"),xe.selectionDiv=ot("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=ot("div",null,"CodeMirror-cursors"),xe.measure=ot("div",null,"CodeMirror-measure"),xe.lineMeasure=ot("div",null,"CodeMirror-measure"),xe.lineSpace=mt("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var Ke=mt("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=ot("div",[Ke],null,"position: relative"),xe.sizer=ot("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=ot("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),xe.gutters=ot("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=ot("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=ot("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),Ve&&Te<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!ze&&!(oe&&ee)&&(xe.scroller.draggable=!0),re&&(re.appendChild?re.appendChild(xe.wrapper):re(xe.wrapper)),xe.viewFrom=xe.viewTo=le.first,xe.reportedViewFrom=xe.reportedViewTo=le.first,xe.view=[],xe.renderedView=null,xe.externalMeasured=null,xe.viewOffset=0,xe.lastWrapHeight=xe.lastWrapWidth=0,xe.updateLineNumbers=null,xe.nativeBarWidth=xe.barHeight=xe.barWidth=0,xe.scrollbarsClipped=!1,xe.lineNumWidth=xe.lineNumInnerWidth=xe.lineNumChars=null,xe.alignWidgets=!1,xe.cachedCharWidth=xe.cachedTextHeight=xe.cachedPaddingH=null,xe.maxLine=null,xe.maxLineLength=0,xe.maxLineChanged=!1,xe.wheelDX=xe.wheelDY=xe.wheelStartX=xe.wheelStartY=null,xe.shift=!1,xe.selForContextMenu=null,xe.activeTouch=null,xe.gutterSpecs=br(ve.gutters,ve.lineNumbers),wr(xe),ye.init(xe)}var Br=0,dr=null;Ve?dr=-.53:oe?dr=15:Qe?dr=-.7:St&&(dr=-1/3);function Co(re){var le=re.wheelDeltaX,ye=re.wheelDeltaY;return le==null&&re.detail&&re.axis==re.HORIZONTAL_AXIS&&(le=re.detail),ye==null&&re.detail&&re.axis==re.VERTICAL_AXIS?ye=re.detail:ye==null&&(ye=re.wheelDelta),{x:le,y:ye}}function zo(re){var le=Co(re);return le.x*=dr,le.y*=dr,le}function ea(re,le){var ye=Co(le),ve=ye.x,xe=ye.y,Ke=re.display,dt=Ke.scroller,Ct=dt.scrollWidth>dt.clientWidth,Et=dt.scrollHeight>dt.clientHeight;if(ve&&Ct||xe&&Et){if(xe&&he&&ze){e:for(var jt=le.target,Yn=Ke.view;jt!=dt;jt=jt.parentNode)for(var tn=0;tn<Yn.length;tn++)if(Yn[tn].node==jt){re.display.currentWheelTarget=jt;break e}}if(ve&&!oe&&!Ue&&dr!=null){xe&&Et&&hl(re,Math.max(0,dt.scrollTop+xe*dr)),rl(re,Math.max(0,dt.scrollLeft+ve*dr)),(!xe||xe&&Et)&&tr(le),Ke.wheelStartX=null;return}if(xe&&dr!=null){var Cr=xe*dr,mr=re.doc.scrollTop,bi=mr+Ke.wrapper.clientHeight;Cr<0?mr=Math.max(0,mr+Cr-50):bi=Math.min(re.doc.height,bi+Cr+50),tt(re,{top:mr,bottom:bi})}Br<20&&(Ke.wheelStartX==null?(Ke.wheelStartX=dt.scrollLeft,Ke.wheelStartY=dt.scrollTop,Ke.wheelDX=ve,Ke.wheelDY=xe,setTimeout(function(){if(Ke.wheelStartX!=null){var Ci=dt.scrollLeft-Ke.wheelStartX,Fi=dt.scrollTop-Ke.wheelStartY,Ji=Fi&&Ke.wheelDY&&Fi/Ke.wheelDY||Ci&&Ke.wheelDX&&Ci/Ke.wheelDX;Ke.wheelStartX=Ke.wheelStartY=null,Ji&&(dr=(dr*Br+Ji)/(Br+1),++Br)}},200)):(Ke.wheelDX+=ve,Ke.wheelDY+=xe))}}var io=function(re,le){this.ranges=re,this.primIndex=le};io.prototype.primary=function(){return this.ranges[this.primIndex]},io.prototype.equals=function(re){if(re==this)return!0;if(re.primIndex!=this.primIndex||re.ranges.length!=this.ranges.length)return!1;for(var le=0;le<this.ranges.length;le++){var ye=this.ranges[le],ve=re.ranges[le];if(!Dn(ye.anchor,ve.anchor)||!Dn(ye.head,ve.head))return!1}return!0},io.prototype.deepCopy=function(){for(var re=[],le=0;le<this.ranges.length;le++)re[le]=new Ro(xn(this.ranges[le].anchor),xn(this.ranges[le].head));return new io(re,this.primIndex)},io.prototype.somethingSelected=function(){for(var re=0;re<this.ranges.length;re++)if(!this.ranges[re].empty())return!0;return!1},io.prototype.contains=function(re,le){le||(le=re);for(var ye=0;ye<this.ranges.length;ye++){var ve=this.ranges[ye];if(Qn(le,ve.from())>=0&&Qn(re,ve.to())<=0)return ye}return-1};var Ro=function(re,le){this.anchor=re,this.head=le};Ro.prototype.from=function(){return Jr(this.anchor,this.head)},Ro.prototype.to=function(){return Ge(this.anchor,this.head)},Ro.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bo(re,le,ye){var ve=re&&re.options.selectionsMayTouch,xe=le[ye];le.sort(function(Cr,mr){return Qn(Cr.from(),mr.from())}),ye=ct(le,xe);for(var Ke=1;Ke<le.length;Ke++){var dt=le[Ke],Ct=le[Ke-1],Et=Qn(Ct.to(),dt.from());if(ve&&!dt.empty()?Et>0:Et>=0){var jt=Jr(Ct.from(),dt.from()),Yn=Ge(Ct.to(),dt.to()),tn=Ct.empty()?dt.from()==dt.head:Ct.from()==Ct.head;Ke<=ye&&--ye,le.splice(--Ke,2,new Ro(tn?Yn:jt,tn?jt:Yn))}}return new io(le,ye)}function Ya(re,le){return new io([new Ro(re,le||re)],0)}function Xa(re){return re.text?nn(re.from.line+re.text.length-1,Ot(re.text).length+(re.text.length==1?re.from.ch:0)):re.to}function Zi(re,le){if(Qn(re,le.from)<0)return re;if(Qn(re,le.to)<=0)return Xa(le);var ye=re.line+le.text.length-(le.to.line-le.from.line)-1,ve=re.ch;return re.line==le.to.line&&(ve+=Xa(le).ch-le.to.ch),nn(ye,ve)}function es(re,le){for(var ye=[],ve=0;ve<re.sel.ranges.length;ve++){var xe=re.sel.ranges[ve];ye.push(new Ro(Zi(xe.anchor,le),Zi(xe.head,le)))}return Bo(re.cm,ye,re.sel.primIndex)}function Za(re,le,ye){return re.line==le.line?nn(ye.line,re.ch-le.ch+ye.ch):nn(ye.line+(re.line-le.line),re.ch)}function ja(re,le,ye){for(var ve=[],xe=nn(re.first,0),Ke=xe,dt=0;dt<le.length;dt++){var Ct=le[dt],Et=Za(Ct.from,xe,Ke),jt=Za(Xa(Ct),xe,Ke);if(xe=Ct.to,Ke=jt,ye=="around"){var Yn=re.sel.ranges[dt],tn=Qn(Yn.head,Yn.anchor)<0;ve[dt]=new Ro(tn?jt:Et,tn?Et:jt)}else ve[dt]=new Ro(Et,Et)}return new io(ve,re.sel.primIndex)}function bo(re){re.doc.mode=dn(re.options,re.doc.modeOption),fl(re)}function fl(re){re.doc.iter(function(le){le.stateAfter&&(le.stateAfter=null),le.styles&&(le.styles=null)}),re.doc.modeFrontier=re.doc.highlightFrontier=re.doc.first,xc(re,100),re.state.modeGen++,re.curOp&&aa(re)}function ls(re,le){return le.from.ch==0&&le.to.ch==0&&Ot(le.text)==""&&(!re.cm||re.cm.options.wholeLineUpdateBefore)}function Xo(re,le,ye,ve){function xe(yo){return ye?ye[yo]:null}function Ke(yo,oo,Po){Ri(yo,oo,Po,ve),Qi(yo,"change",yo,le)}function dt(yo,oo){for(var Po=[],Qo=yo;Qo<oo;++Qo)Po.push(new gi(jt[Qo],xe(Qo),ve));return Po}var Ct=le.from,Et=le.to,jt=le.text,Yn=Rr(re,Ct.line),tn=Rr(re,Et.line),Cr=Ot(jt),mr=xe(jt.length-1),bi=Et.line-Ct.line;if(le.full)re.insert(0,dt(0,jt.length)),re.remove(jt.length,re.size-jt.length);else if(ls(re,le)){var Ci=dt(0,jt.length-1);Ke(tn,tn.text,mr),bi&&re.remove(Ct.line,bi),Ci.length&&re.insert(Ct.line,Ci)}else if(Yn==tn)if(jt.length==1)Ke(Yn,Yn.text.slice(0,Ct.ch)+Cr+Yn.text.slice(Et.ch),mr);else{var Fi=dt(1,jt.length-1);Fi.push(new gi(Cr+Yn.text.slice(Et.ch),mr,ve)),Ke(Yn,Yn.text.slice(0,Ct.ch)+jt[0],xe(0)),re.insert(Ct.line+1,Fi)}else if(jt.length==1)Ke(Yn,Yn.text.slice(0,Ct.ch)+jt[0]+tn.text.slice(Et.ch),xe(0)),re.remove(Ct.line+1,bi);else{Ke(Yn,Yn.text.slice(0,Ct.ch)+jt[0],xe(0)),Ke(tn,Cr+tn.text.slice(Et.ch),mr);var Ji=dt(1,jt.length-1);bi>1&&re.remove(Ct.line+1,bi-1),re.insert(Ct.line+1,Ji)}Qi(re,"change",re,le)}function Zo(re,le,ye){function ve(xe,Ke,dt){if(xe.linked)for(var Ct=0;Ct<xe.linked.length;++Ct){var Et=xe.linked[Ct];if(Et.doc!=Ke){var jt=dt&&Et.sharedHist;ye&&!jt||(le(Et.doc,jt),ve(Et.doc,xe,jt))}}}ve(re,null,!0)}function wa(re,le){if(le.cm)throw new Error("This document is already in use.");re.doc=le,le.cm=re,wo(re),bo(re),ps(re),re.options.lineWrapping||mi(re),re.options.mode=le.modeOption,aa(re)}function ps(re){(re.doc.direction=="rtl"?At:We)(re.display.lineDiv,"CodeMirror-rtl")}function Js(re){La(re,function(){ps(re),aa(re)})}function El(re){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=re||1}function Kl(re,le){var ye={from:xn(le.from),to:Xa(le),text:Cn(re,le.from,le.to)};return du(re,ye,le.from.line,le.to.line+1),Zo(re,function(ve){return du(ve,ye,le.from.line,le.to.line+1)},!0),ye}function Ar(re){for(;re.length;){var le=Ot(re);if(le.ranges)re.pop();else break}}function Nl(re,le){if(le)return Ar(re.done),Ot(re.done);if(re.done.length&&!Ot(re.done).ranges)return Ot(re.done);if(re.done.length>1&&!re.done[re.done.length-2].ranges)return re.done.pop(),Ot(re.done)}function Ol(re,le,ye,ve){var xe=re.history;xe.undone.length=0;var Ke=+new Date,dt,Ct;if((xe.lastOp==ve||xe.lastOrigin==le.origin&&le.origin&&(le.origin.charAt(0)=="+"&&xe.lastModTime>Ke-(re.cm?re.cm.options.historyEventDelay:500)||le.origin.charAt(0)=="*"))&&(dt=Nl(xe,xe.lastOp==ve)))Ct=Ot(dt.changes),Qn(le.from,le.to)==0&&Qn(le.from,Ct.to)==0?Ct.to=Xa(le):dt.changes.push(Kl(re,le));else{var Et=Ot(xe.done);for((!Et||!Et.ranges)&&wu(re.sel,xe.done),dt={changes:[Kl(re,le)],generation:xe.generation},xe.done.push(dt);xe.done.length>xe.undoDepth;)xe.done.shift(),xe.done[0].ranges||xe.done.shift()}xe.done.push(ye),xe.generation=++xe.maxGeneration,xe.lastModTime=xe.lastSelTime=Ke,xe.lastOp=xe.lastSelOp=ve,xe.lastOrigin=xe.lastSelOrigin=le.origin,Ct||on(re,"historyAdded")}function Ir(re,le,ye,ve){var xe=le.charAt(0);return xe=="*"||xe=="+"&&ye.ranges.length==ve.ranges.length&&ye.somethingSelected()==ve.somethingSelected()&&new Date-re.history.lastSelTime<=(re.cm?re.cm.options.historyEventDelay:500)}function ol(re,le,ye,ve){var xe=re.history,Ke=ve&&ve.origin;ye==xe.lastSelOp||Ke&&xe.lastSelOrigin==Ke&&(xe.lastModTime==xe.lastSelTime&&xe.lastOrigin==Ke||Ir(re,Ke,Ot(xe.done),le))?xe.done[xe.done.length-1]=le:wu(le,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=Ke,xe.lastSelOp=ye,ve&&ve.clearRedo!==!1&&Ar(xe.undone)}function wu(re,le){var ye=Ot(le);ye&&ye.ranges&&ye.equals(re)||le.push(re)}function du(re,le,ye,ve){var xe=le["spans_"+re.id],Ke=0;re.iter(Math.max(re.first,ye),Math.min(re.first+re.size,ve),function(dt){dt.markedSpans&&((xe||(xe=le["spans_"+re.id]={}))[Ke]=dt.markedSpans),++Ke})}function qs(re){if(!re)return null;for(var le,ye=0;ye<re.length;++ye)re[ye].marker.explicitlyCleared?le||(le=re.slice(0,ye)):le&&le.push(re[ye]);return le?le.length?le:null:re}function Es(re,le){var ye=le["spans_"+re.id];if(!ye)return null;for(var ve=[],xe=0;xe<le.text.length;++xe)ve.push(qs(ye[xe]));return ve}function hu(re,le){var ye=Es(re,le),ve=xo(re,le);if(!ye)return ve;if(!ve)return ye;for(var xe=0;xe<ye.length;++xe){var Ke=ye[xe],dt=ve[xe];if(Ke&&dt)e:for(var Ct=0;Ct<dt.length;++Ct){for(var Et=dt[Ct],jt=0;jt<Ke.length;++jt)if(Ke[jt].marker==Et.marker)continue e;Ke.push(Et)}else dt&&(ye[xe]=dt)}return ye}function al(re,le,ye){for(var ve=[],xe=0;xe<re.length;++xe){var Ke=re[xe];if(Ke.ranges){ve.push(ye?io.prototype.deepCopy.call(Ke):Ke);continue}var dt=Ke.changes,Ct=[];ve.push({changes:Ct});for(var Et=0;Et<dt.length;++Et){var jt=dt[Et],Yn=void 0;if(Ct.push({from:jt.from,to:jt.to,text:jt.text}),le)for(var tn in jt)(Yn=tn.match(/^spans_(\d+)$/))&&ct(le,Number(Yn[1]))>-1&&(Ot(Ct)[tn]=jt[tn],delete jt[tn])}}return ve}function Qu(re,le,ye,ve){if(ve){var xe=re.anchor;if(ye){var Ke=Qn(le,xe)<0;Ke!=Qn(ye,xe)<0?(xe=le,le=ye):Ke!=Qn(le,ye)<0&&(le=ye)}return new Ro(xe,le)}else return new Ro(ye||le,le)}function hc(re,le,ye,ve,xe){xe==null&&(xe=re.cm&&(re.cm.display.shift||re.extend)),ge(re,new io([Qu(re.sel.primary(),le,ye,xe)],0),ve)}function wd(re,le,ye){for(var ve=[],xe=re.cm&&(re.cm.display.shift||re.extend),Ke=0;Ke<re.sel.ranges.length;Ke++)ve[Ke]=Qu(re.sel.ranges[Ke],le[Ke],null,xe);var dt=Bo(re.cm,ve,re.sel.primIndex);ge(re,dt,ye)}function xl(re,le,ye,ve){var xe=re.sel.ranges.slice(0);xe[le]=ye,ge(re,Bo(re.cm,xe,re.sel.primIndex),ve)}function fu(re,le,ye,ve){ge(re,Ya(le,ye),ve)}function hd(re,le,ye){var ve={ranges:le.ranges,update:function(xe){this.ranges=[];for(var Ke=0;Ke<xe.length;Ke++)this.ranges[Ke]=new Ro(Jn(re,xe[Ke].anchor),Jn(re,xe[Ke].head))},origin:ye&&ye.origin};return on(re,"beforeSelectionChange",re,ve),re.cm&&on(re.cm,"beforeSelectionChange",re.cm,ve),ve.ranges!=le.ranges?Bo(re.cm,ve.ranges,ve.ranges.length-1):le}function ce(re,le,ye){var ve=re.history.done,xe=Ot(ve);xe&&xe.ranges?(ve[ve.length-1]=le,et(re,le,ye)):ge(re,le,ye)}function ge(re,le,ye){et(re,le,ye),ol(re,re.sel,re.cm?re.cm.curOp.id:NaN,ye)}function et(re,le,ye){(Sn(re,"beforeSelectionChange")||re.cm&&Sn(re.cm,"beforeSelectionChange"))&&(le=hd(re,le,ye));var ve=ye&&ye.bias||(Qn(le.primary().head,re.sel.primary().head)<0?-1:1);en(re,ci(re,le,ve,!0)),!(ye&&ye.scroll===!1)&&re.cm&&lu(re.cm)}function en(re,le){le.equals(re.sel)||(re.sel=le,re.cm&&(re.cm.curOp.updateInput=1,re.cm.curOp.selectionChanged=!0,er(re.cm)),Qi(re,"cursorActivity",re))}function xr(re){en(re,ci(re,re.sel,null,!1))}function ci(re,le,ye,ve){for(var xe,Ke=0;Ke<le.ranges.length;Ke++){var dt=le.ranges[Ke],Ct=le.ranges.length==re.sel.ranges.length&&re.sel.ranges[Ke],Et=Lo(re,dt.anchor,Ct&&Ct.anchor,ye,ve),jt=Lo(re,dt.head,Ct&&Ct.head,ye,ve);(xe||Et!=dt.anchor||jt!=dt.head)&&(xe||(xe=le.ranges.slice(0,Ke)),xe[Ke]=new Ro(Et,jt))}return xe?Bo(re.cm,xe,le.primIndex):le}function Ai(re,le,ye,ve,xe){var Ke=Rr(re,le.line);if(Ke.markedSpans)for(var dt=0;dt<Ke.markedSpans.length;++dt){var Ct=Ke.markedSpans[dt],Et=Ct.marker,jt="selectLeft"in Et?!Et.selectLeft:Et.inclusiveLeft,Yn="selectRight"in Et?!Et.selectRight:Et.inclusiveRight;if((Ct.from==null||(jt?Ct.from<=le.ch:Ct.from<le.ch))&&(Ct.to==null||(Yn?Ct.to>=le.ch:Ct.to>le.ch))){if(xe&&(on(Et,"beforeCursorEnter"),Et.explicitlyCleared))if(Ke.markedSpans){--dt;continue}else break;if(!Et.atomic)continue;if(ye){var tn=Et.find(ve<0?1:-1),Cr=void 0;if((ve<0?Yn:jt)&&(tn=Ko(re,tn,-ve,tn&&tn.line==le.line?Ke:null)),tn&&tn.line==le.line&&(Cr=Qn(tn,ye))&&(ve<0?Cr<0:Cr>0))return Ai(re,tn,le,ve,xe)}var mr=Et.find(ve<0?-1:1);return(ve<0?jt:Yn)&&(mr=Ko(re,mr,ve,mr.line==le.line?Ke:null)),mr?Ai(re,mr,le,ve,xe):null}}return le}function Lo(re,le,ye,ve,xe){var Ke=ve||1,dt=Ai(re,le,ye,Ke,xe)||!xe&&Ai(re,le,ye,Ke,!0)||Ai(re,le,ye,-Ke,xe)||!xe&&Ai(re,le,ye,-Ke,!0);return dt||(re.cantEdit=!0,nn(re.first,0))}function Ko(re,le,ye,ve){return ye<0&&le.ch==0?le.line>re.first?Jn(re,nn(le.line-1)):null:ye>0&&le.ch==(ve||Rr(re,le.line)).text.length?le.line<re.first+re.size-1?nn(le.line+1,0):null:new nn(le.line,le.ch+ye)}function li(re){re.setSelection(nn(re.firstLine(),0),nn(re.lastLine()),It)}function eo(re,le,ye){var ve={canceled:!1,from:le.from,to:le.to,text:le.text,origin:le.origin,cancel:function(){return ve.canceled=!0}};return ye&&(ve.update=function(xe,Ke,dt,Ct){xe&&(ve.from=Jn(re,xe)),Ke&&(ve.to=Jn(re,Ke)),dt&&(ve.text=dt),Ct!==void 0&&(ve.origin=Ct)}),on(re,"beforeChange",re,ve),re.cm&&on(re.cm,"beforeChange",re.cm,ve),ve.canceled?(re.cm&&(re.cm.curOp.updateInput=2),null):{from:ve.from,to:ve.to,text:ve.text,origin:ve.origin}}function Vo(re,le,ye){if(re.cm){if(!re.cm.curOp)return Us(re.cm,Vo)(re,le,ye);if(re.cm.state.suppressEdits)return}if(!((Sn(re,"beforeChange")||re.cm&&Sn(re.cm,"beforeChange"))&&(le=eo(re,le,!0),!le))){var ve=Hi&&!ye&&fr(re,le.from,le.to);if(ve)for(var xe=ve.length-1;xe>=0;--xe)Aa(re,{from:ve[xe].from,to:ve[xe].to,text:xe?[""]:le.text,origin:le.origin});else Aa(re,le)}}function Aa(re,le){if(!(le.text.length==1&&le.text[0]==""&&Qn(le.from,le.to)==0)){var ye=es(re,le);Ol(re,le,ye,re.cm?re.cm.curOp.id:NaN),Ju(re,le,ye,xo(re,le));var ve=[];Zo(re,function(xe,Ke){!Ke&&ct(ve,xe.history)==-1&&(Kc(xe.history,le),ve.push(xe.history)),Ju(xe,le,null,xo(xe,le))})}}function ns(re,le,ye){var ve=re.cm&&re.cm.state.suppressEdits;if(!(ve&&!ye)){for(var xe=re.history,Ke,dt=re.sel,Ct=le=="undo"?xe.done:xe.undone,Et=le=="undo"?xe.undone:xe.done,jt=0;jt<Ct.length&&(Ke=Ct[jt],!(ye?Ke.ranges&&!Ke.equals(re.sel):!Ke.ranges));jt++);if(jt!=Ct.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(Ke=Ct.pop(),Ke.ranges){if(wu(Ke,Et),ye&&!Ke.equals(re.sel)){ge(re,Ke,{clearRedo:!1});return}dt=Ke}else if(ve){Ct.push(Ke);return}else break;var Yn=[];wu(dt,Et),Et.push({changes:Yn,generation:xe.generation}),xe.generation=Ke.generation||++xe.maxGeneration;for(var tn=Sn(re,"beforeChange")||re.cm&&Sn(re.cm,"beforeChange"),Cr=function(Ci){var Fi=Ke.changes[Ci];if(Fi.origin=le,tn&&!eo(re,Fi,!1))return Ct.length=0,{};Yn.push(Kl(re,Fi));var Ji=Ci?es(re,Fi):Ot(Ct);Ju(re,Fi,Ji,hu(re,Fi)),!Ci&&re.cm&&re.cm.scrollIntoView({from:Fi.from,to:Xa(Fi)});var yo=[];Zo(re,function(oo,Po){!Po&&ct(yo,oo.history)==-1&&(Kc(oo.history,Fi),yo.push(oo.history)),Ju(oo,Fi,null,hu(oo,Fi))})},mr=Ke.changes.length-1;mr>=0;--mr){var bi=Cr(mr);if(bi)return bi.v}}}}function _u(re,le){if(le!=0&&(re.first+=le,re.sel=new io(jn(re.sel.ranges,function(xe){return new Ro(nn(xe.anchor.line+le,xe.anchor.ch),nn(xe.head.line+le,xe.head.ch))}),re.sel.primIndex),re.cm)){aa(re.cm,re.first,re.first-le,le);for(var ye=re.cm.display,ve=ye.viewFrom;ve<ye.viewTo;ve++)Wo(re.cm,ve,"gutter")}}function Ju(re,le,ye,ve){if(re.cm&&!re.cm.curOp)return Us(re.cm,Ju)(re,le,ye,ve);if(le.to.line<re.first){_u(re,le.text.length-1-(le.to.line-le.from.line));return}if(!(le.from.line>re.lastLine())){if(le.from.line<re.first){var xe=le.text.length-1-(re.first-le.from.line);_u(re,xe),le={from:nn(re.first,0),to:nn(le.to.line+xe,le.to.ch),text:[Ot(le.text)],origin:le.origin}}var Ke=re.lastLine();le.to.line>Ke&&(le={from:le.from,to:nn(Ke,Rr(re,Ke).text.length),text:[le.text[0]],origin:le.origin}),le.removed=Cn(re,le.from,le.to),ye||(ye=es(re,le)),re.cm?qu(re.cm,le,ve):Xo(re,le,ve),et(re,ye,It),re.cantEdit&&Lo(re,nn(re.firstLine(),0))&&(re.cantEdit=!1)}}function qu(re,le,ye){var ve=re.doc,xe=re.display,Ke=le.from,dt=le.to,Ct=!1,Et=Ke.line;re.options.lineWrapping||(Et=kt(Mn(Rr(ve,Ke.line))),ve.iter(Et,dt.line+1,function(mr){if(mr==xe.maxLine)return Ct=!0,!0})),ve.sel.contains(le.from,le.to)>-1&&er(re),Xo(ve,le,ye,Va(re)),re.options.lineWrapping||(ve.iter(Et,Ke.line+le.text.length,function(mr){var bi=Li(mr);bi>xe.maxLineLength&&(xe.maxLine=mr,xe.maxLineLength=bi,xe.maxLineChanged=!0,Ct=!1)}),Ct&&(re.curOp.updateMaxLine=!0)),Bi(ve,Ke.line),xc(re,400);var jt=le.text.length-(dt.line-Ke.line)-1;le.full?aa(re):Ke.line==dt.line&&le.text.length==1&&!ls(re.doc,le)?Wo(re,Ke.line,"text"):aa(re,Ke.line,dt.line+1,jt);var Yn=Sn(re,"changes"),tn=Sn(re,"change");if(tn||Yn){var Cr={from:Ke,to:dt,text:le.text,removed:le.removed,origin:le.origin};tn&&Qi(re,"change",re,Cr),Yn&&(re.curOp.changeObjs||(re.curOp.changeObjs=[])).push(Cr)}re.display.selForContextMenu=null}function pu(re,le,ye,ve,xe){var Ke;ve||(ve=ye),Qn(ve,ye)<0&&(Ke=[ve,ye],ye=Ke[0],ve=Ke[1]),typeof le=="string"&&(le=re.splitLines(le)),Vo(re,{from:ye,to:ve,text:le,origin:xe})}function Fl(re,le,ye,ve){ye<re.line?re.line+=ve:le<re.line&&(re.line=le,re.ch=0)}function Cu(re,le,ye,ve){for(var xe=0;xe<re.length;++xe){var Ke=re[xe],dt=!0;if(Ke.ranges){Ke.copied||(Ke=re[xe]=Ke.deepCopy(),Ke.copied=!0);for(var Ct=0;Ct<Ke.ranges.length;Ct++)Fl(Ke.ranges[Ct].anchor,le,ye,ve),Fl(Ke.ranges[Ct].head,le,ye,ve);continue}for(var Et=0;Et<Ke.changes.length;++Et){var jt=Ke.changes[Et];if(ye<jt.from.line)jt.from=nn(jt.from.line+ve,jt.from.ch),jt.to=nn(jt.to.line+ve,jt.to.ch);else if(le<=jt.to.line){dt=!1;break}}dt||(re.splice(0,xe+1),xe=0)}}function Kc(re,le){var ye=le.from.line,ve=le.to.line,xe=le.text.length-(ve-ye)-1;Cu(re.done,ye,ve,xe),Cu(re.undone,ye,ve,xe)}function Yl(re,le,ye,ve){var xe=le,Ke=le;return typeof le=="number"?Ke=Rr(re,Hr(re,le)):xe=kt(le),xe==null?null:(ve(Ke,xe)&&re.cm&&Wo(re.cm,xe,ye),Ke)}function ph(re){this.lines=re,this.parent=null;for(var le=0,ye=0;ye<re.length;++ye)re[ye].parent=this,le+=re[ye].height;this.height=le}ph.prototype={chunkSize:function(){return this.lines.length},removeInner:function(re,le){for(var ye=re,ve=re+le;ye<ve;++ye){var xe=this.lines[ye];this.height-=xe.height,Oi(xe),Qi(xe,"delete")}this.lines.splice(re,le)},collapse:function(re){re.push.apply(re,this.lines)},insertInner:function(re,le,ye){this.height+=ye,this.lines=this.lines.slice(0,re).concat(le).concat(this.lines.slice(re));for(var ve=0;ve<le.length;++ve)le[ve].parent=this},iterN:function(re,le,ye){for(var ve=re+le;re<ve;++re)if(ye(this.lines[re]))return!0}};function Rs(re){this.children=re;for(var le=0,ye=0,ve=0;ve<re.length;++ve){var xe=re[ve];le+=xe.chunkSize(),ye+=xe.height,xe.parent=this}this.size=le,this.height=ye,this.parent=null}Rs.prototype={chunkSize:function(){return this.size},removeInner:function(re,le){this.size-=le;for(var ye=0;ye<this.children.length;++ye){var ve=this.children[ye],xe=ve.chunkSize();if(re<xe){var Ke=Math.min(le,xe-re),dt=ve.height;if(ve.removeInner(re,Ke),this.height-=dt-ve.height,xe==Ke&&(this.children.splice(ye--,1),ve.parent=null),(le-=Ke)==0)break;re=0}else re-=xe}if(this.size-le<25&&(this.children.length>1||!(this.children[0]instanceof ph))){var Ct=[];this.collapse(Ct),this.children=[new ph(Ct)],this.children[0].parent=this}},collapse:function(re){for(var le=0;le<this.children.length;++le)this.children[le].collapse(re)},insertInner:function(re,le,ye){this.size+=le.length,this.height+=ye;for(var ve=0;ve<this.children.length;++ve){var xe=this.children[ve],Ke=xe.chunkSize();if(re<=Ke){if(xe.insertInner(re,le,ye),xe.lines&&xe.lines.length>50){for(var dt=xe.lines.length%25+25,Ct=dt;Ct<xe.lines.length;){var Et=new ph(xe.lines.slice(Ct,Ct+=25));xe.height-=Et.height,this.children.splice(++ve,0,Et),Et.parent=this}xe.lines=xe.lines.slice(0,dt),this.maybeSpill()}break}re-=Ke}},maybeSpill:function(){if(!(this.children.length<=10)){var re=this;do{var le=re.children.splice(re.children.length-5,5),ye=new Rs(le);if(re.parent){re.size-=ye.size,re.height-=ye.height;var xe=ct(re.parent.children,re);re.parent.children.splice(xe+1,0,ye)}else{var ve=new Rs(re.children);ve.parent=re,re.children=[ve,ye],re=ve}ye.parent=re.parent}while(re.children.length>10);re.parent.maybeSpill()}},iterN:function(re,le,ye){for(var ve=0;ve<this.children.length;++ve){var xe=this.children[ve],Ke=xe.chunkSize();if(re<Ke){var dt=Math.min(le,Ke-re);if(xe.iterN(re,dt,ye))return!0;if((le-=dt)==0)break;re=0}else re-=Ke}}};var Dc=function(re,le,ye){if(ye)for(var ve in ye)ye.hasOwnProperty(ve)&&(this[ve]=ye[ve]);this.doc=re,this.node=le};Dc.prototype.clear=function(){var re=this.doc.cm,le=this.line.widgets,ye=this.line,ve=kt(ye);if(!(ve==null||!le)){for(var xe=0;xe<le.length;++xe)le[xe]==this&&le.splice(xe--,1);le.length||(ye.widgets=null);var Ke=qa(this);Wr(ye,Math.max(0,ye.height-Ke)),re&&(La(re,function(){Yp(re,ye,-Ke),Wo(re,ve,"widget")}),Qi(re,"lineWidgetCleared",re,this,ve))}},Dc.prototype.changed=function(){var re=this,le=this.height,ye=this.doc.cm,ve=this.line;this.height=null;var xe=qa(this)-le;xe&&(cn(this.doc,ve)||Wr(ve,ve.height+xe),ye&&La(ye,function(){ye.curOp.forceUpdate=!0,Yp(ye,ve,xe),Qi(ye,"lineWidgetChanged",ye,re,kt(ve))}))},ht(Dc);function Yp(re,le,ye){Gr(le)<(re.curOp&&re.curOp.scrollTop||re.doc.scrollTop)&&Ec(re,ye)}function Pf(re,le,ye,ve){var xe=new Dc(re,ye,ve),Ke=re.cm;return Ke&&xe.noHScroll&&(Ke.display.alignWidgets=!0),Yl(re,le,"widget",function(dt){var Ct=dt.widgets||(dt.widgets=[]);if(xe.insertAt==null?Ct.push(xe):Ct.splice(Math.min(Ct.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=dt,Ke&&!cn(re,dt)){var Et=Gr(dt)<re.scrollTop;Wr(dt,dt.height+qa(xe)),Et&&Ec(Ke,xe.height),Ke.curOp.forceUpdate=!0}return!0}),Ke&&Qi(Ke,"lineWidgetAdded",Ke,xe,typeof le=="number"?le:kt(le)),xe}var Vh=0,kn=function(re,le){this.lines=[],this.type=le,this.doc=re,this.id=++Vh};kn.prototype.clear=function(){if(!this.explicitlyCleared){var re=this.doc.cm,le=re&&!re.curOp;if(le&&Tl(re),Sn(this,"clear")){var ye=this.find();ye&&Qi(this,"clear",ye.from,ye.to)}for(var ve=null,xe=null,Ke=0;Ke<this.lines.length;++Ke){var dt=this.lines[Ke],Ct=Pi(dt.markedSpans,this);re&&!this.collapsed?Wo(re,kt(dt),"text"):re&&(Ct.to!=null&&(xe=kt(dt)),Ct.from!=null&&(ve=kt(dt))),dt.markedSpans=Mi(dt.markedSpans,Ct),Ct.from==null&&this.collapsed&&!cn(this.doc,dt)&&re&&Wr(dt,Vs(re.display))}if(re&&this.collapsed&&!re.options.lineWrapping)for(var Et=0;Et<this.lines.length;++Et){var jt=Mn(this.lines[Et]),Yn=Li(jt);Yn>re.display.maxLineLength&&(re.display.maxLine=jt,re.display.maxLineLength=Yn,re.display.maxLineChanged=!0)}ve!=null&&re&&this.collapsed&&aa(re,ve,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,re&&xr(re.doc)),re&&Qi(re,"markerCleared",re,this,ve,xe),le&&uu(re),this.parent&&this.parent.clear()}},kn.prototype.find=function(re,le){re==null&&this.type=="bookmark"&&(re=1);for(var ye,ve,xe=0;xe<this.lines.length;++xe){var Ke=this.lines[xe],dt=Pi(Ke.markedSpans,this);if(dt.from!=null&&(ye=nn(le?Ke:kt(Ke),dt.from),re==-1))return ye;if(dt.to!=null&&(ve=nn(le?Ke:kt(Ke),dt.to),re==1))return ve}return ye&&{from:ye,to:ve}},kn.prototype.changed=function(){var re=this,le=this.find(-1,!0),ye=this,ve=this.doc.cm;!le||!ve||La(ve,function(){var xe=le.line,Ke=kt(le.line),dt=ou(ve,Ke);if(dt&&(bc(dt),ve.curOp.selectionChanged=ve.curOp.forceUpdate=!0),ve.curOp.updateMaxLine=!0,!cn(ye.doc,xe)&&ye.height!=null){var Ct=ye.height;ye.height=null;var Et=qa(ye)-Ct;Et&&Wr(xe,xe.height+Et)}Qi(ve,"markerChanged",ve,re)})},kn.prototype.attachLine=function(re){if(!this.lines.length&&this.doc.cm){var le=this.doc.cm.curOp;(!le.maybeHiddenMarkers||ct(le.maybeHiddenMarkers,this)==-1)&&(le.maybeUnhiddenMarkers||(le.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(re)},kn.prototype.detachLine=function(re){if(this.lines.splice(ct(this.lines,re),1),!this.lines.length&&this.doc.cm){var le=this.doc.cm.curOp;(le.maybeHiddenMarkers||(le.maybeHiddenMarkers=[])).push(this)}},ht(kn);function Vd(re,le,ye,ve,xe){if(ve&&ve.shared)return Xp(re,le,ye,ve,xe);if(re.cm&&!re.cm.curOp)return Us(re.cm,Vd)(re,le,ye,ve,xe);var Ke=new kn(re,xe),dt=Qn(le,ye);if(ve&&ln(ve,Ke,!1),dt>0||dt==0&&Ke.clearWhenEmpty!==!1)return Ke;if(Ke.replacedWith&&(Ke.collapsed=!0,Ke.widgetNode=mt("span",[Ke.replacedWith],"CodeMirror-widget"),ve.handleMouseEvents||Ke.widgetNode.setAttribute("cm-ignore-events","true"),ve.insertLeft&&(Ke.widgetNode.insertLeft=!0)),Ke.collapsed){if(En(re,le.line,le,ye,Ke)||le.line!=ye.line&&En(re,ye.line,le,ye,Ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");ur()}Ke.addToHistory&&Ol(re,{from:le,to:ye,origin:"markText"},re.sel,NaN);var Ct=le.line,Et=re.cm,jt;if(re.iter(Ct,ye.line+1,function(tn){Et&&Ke.collapsed&&!Et.options.lineWrapping&&Mn(tn)==Et.display.maxLine&&(jt=!0),Ke.collapsed&&Ct!=le.line&&Wr(tn,0),po(tn,new vi(Ke,Ct==le.line?le.ch:null,Ct==ye.line?ye.ch:null)),++Ct}),Ke.collapsed&&re.iter(le.line,ye.line+1,function(tn){cn(re,tn)&&Wr(tn,0)}),Ke.clearOnEnter&&Mt(Ke,"beforeCursorEnter",function(){return Ke.clear()}),Ke.readOnly&&(_i(),(re.history.done.length||re.history.undone.length)&&re.clearHistory()),Ke.collapsed&&(Ke.id=++Vh,Ke.atomic=!0),Et){if(jt&&(Et.curOp.updateMaxLine=!0),Ke.collapsed)aa(Et,le.line,ye.line+1);else if(Ke.className||Ke.startStyle||Ke.endStyle||Ke.css||Ke.attributes||Ke.title)for(var Yn=le.line;Yn<=ye.line;Yn++)Wo(Et,Yn,"text");Ke.atomic&&xr(Et.doc),Qi(Et,"markerAdded",Et,Ke)}return Ke}var Rc=function(re,le){this.markers=re,this.primary=le;for(var ye=0;ye<re.length;++ye)re[ye].parent=this};Rc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var re=0;re<this.markers.length;++re)this.markers[re].clear();Qi(this,"clear")}},Rc.prototype.find=function(re,le){return this.primary.find(re,le)},ht(Rc);function Xp(re,le,ye,ve,xe){ve=ln(ve),ve.shared=!1;var Ke=[Vd(re,le,ye,ve,xe)],dt=Ke[0],Ct=ve.widgetNode;return Zo(re,function(Et){Ct&&(ve.widgetNode=Ct.cloneNode(!0)),Ke.push(Vd(Et,Jn(Et,le),Jn(Et,ye),ve,xe));for(var jt=0;jt<Et.linked.length;++jt)if(Et.linked[jt].isParent)return;dt=Ot(Ke)}),new Rc(Ke,dt)}function ep(re){return re.findMarks(nn(re.first,0),re.clipPos(nn(re.lastLine())),function(le){return le.parent})}function Gg(re,le){for(var ye=0;ye<le.length;ye++){var ve=le[ye],xe=ve.find(),Ke=re.clipPos(xe.from),dt=re.clipPos(xe.to);if(Qn(Ke,dt)){var Ct=Vd(re,Ke,dt,ve.primary,ve.primary.type);ve.markers.push(Ct),Ct.parent=ve}}}function tp(re){for(var le=function(ve){var xe=re[ve],Ke=[xe.primary.doc];Zo(xe.primary.doc,function(Et){return Ke.push(Et)});for(var dt=0;dt<xe.markers.length;dt++){var Ct=xe.markers[dt];ct(Ke,Ct.doc)==-1&&(Ct.parent=null,xe.markers.splice(dt--,1))}},ye=0;ye<re.length;ye++)le(ye)}var Um=0,sl=function(re,le,ye,ve,xe){if(!(this instanceof sl))return new sl(re,le,ye,ve,xe);ye==null&&(ye=0),Rs.call(this,[new ph([new gi("",null)])]),this.first=ye,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ye;var Ke=nn(ye,0);this.sel=Ya(Ke),this.history=new El(null),this.id=++Um,this.modeOption=le,this.lineSep=ve,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof re=="string"&&(re=this.splitLines(re)),Xo(this,{from:Ke,to:Ke,text:re}),ge(this,Ya(Ke),It)};sl.prototype=_e(Rs.prototype,{constructor:sl,iter:function(re,le,ye){ye?this.iterN(re-this.first,le-re,ye):this.iterN(this.first,this.first+this.size,re)},insert:function(re,le){for(var ye=0,ve=0;ve<le.length;++ve)ye+=le[ve].height;this.insertInner(re-this.first,le,ye)},remove:function(re,le){this.removeInner(re-this.first,le)},getValue:function(re){var le=fn(this,this.first,this.first+this.size);return re===!1?le:le.join(re||this.lineSeparator())},setValue:Zs(function(re){var le=nn(this.first,0),ye=this.first+this.size-1;Vo(this,{from:le,to:nn(ye,Rr(this,ye).text.length),text:this.splitLines(re),origin:"setValue",full:!0},!0),this.cm&&Wl(this.cm,0,0),ge(this,Ya(le),It)}),replaceRange:function(re,le,ye,ve){le=Jn(this,le),ye=ye?Jn(this,ye):le,pu(this,re,le,ye,ve)},getRange:function(re,le,ye){var ve=Cn(this,Jn(this,re),Jn(this,le));return ye===!1?ve:ve.join(ye||this.lineSeparator())},getLine:function(re){var le=this.getLineHandle(re);return le&&le.text},getLineHandle:function(re){if(vr(this,re))return Rr(this,re)},getLineNumber:function(re){return kt(re)},getLineHandleVisualStart:function(re){return typeof re=="number"&&(re=Rr(this,re)),Mn(re)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(re){return Jn(this,re)},getCursor:function(re){var le=this.sel.primary(),ye;return re==null||re=="head"?ye=le.head:re=="anchor"?ye=le.anchor:re=="end"||re=="to"||re===!1?ye=le.to():ye=le.from(),ye},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zs(function(re,le,ye){fu(this,Jn(this,typeof re=="number"?nn(re,le||0):re),null,ye)}),setSelection:Zs(function(re,le,ye){fu(this,Jn(this,re),Jn(this,le||re),ye)}),extendSelection:Zs(function(re,le,ye){hc(this,Jn(this,re),le&&Jn(this,le),ye)}),extendSelections:Zs(function(re,le){wd(this,ti(this,re),le)}),extendSelectionsBy:Zs(function(re,le){var ye=jn(this.sel.ranges,re);wd(this,ti(this,ye),le)}),setSelections:Zs(function(re,le,ye){if(re.length){for(var ve=[],xe=0;xe<re.length;xe++)ve[xe]=new Ro(Jn(this,re[xe].anchor),Jn(this,re[xe].head));le==null&&(le=Math.min(re.length-1,this.sel.primIndex)),ge(this,Bo(this.cm,ve,le),ye)}}),addSelection:Zs(function(re,le,ye){var ve=this.sel.ranges.slice(0);ve.push(new Ro(Jn(this,re),Jn(this,le||re))),ge(this,Bo(this.cm,ve,ve.length-1),ye)}),getSelection:function(re){for(var le=this.sel.ranges,ye,ve=0;ve<le.length;ve++){var xe=Cn(this,le[ve].from(),le[ve].to());ye=ye?ye.concat(xe):xe}return re===!1?ye:ye.join(re||this.lineSeparator())},getSelections:function(re){for(var le=[],ye=this.sel.ranges,ve=0;ve<ye.length;ve++){var xe=Cn(this,ye[ve].from(),ye[ve].to());re!==!1&&(xe=xe.join(re||this.lineSeparator())),le[ve]=xe}return le},replaceSelection:function(re,le,ye){for(var ve=[],xe=0;xe<this.sel.ranges.length;xe++)ve[xe]=re;this.replaceSelections(ve,le,ye||"+input")},replaceSelections:Zs(function(re,le,ye){for(var ve=[],xe=this.sel,Ke=0;Ke<xe.ranges.length;Ke++){var dt=xe.ranges[Ke];ve[Ke]={from:dt.from(),to:dt.to(),text:this.splitLines(re[Ke]),origin:ye}}for(var Ct=le&&le!="end"&&ja(this,ve,le),Et=ve.length-1;Et>=0;Et--)Vo(this,ve[Et]);Ct?ce(this,Ct):this.cm&&lu(this.cm)}),undo:Zs(function(){ns(this,"undo")}),redo:Zs(function(){ns(this,"redo")}),undoSelection:Zs(function(){ns(this,"undo",!0)}),redoSelection:Zs(function(){ns(this,"redo",!0)}),setExtending:function(re){this.extend=re},getExtending:function(){return this.extend},historySize:function(){for(var re=this.history,le=0,ye=0,ve=0;ve<re.done.length;ve++)re.done[ve].ranges||++le;for(var xe=0;xe<re.undone.length;xe++)re.undone[xe].ranges||++ye;return{undo:le,redo:ye}},clearHistory:function(){var re=this;this.history=new El(this.history.maxGeneration),Zo(this,function(le){return le.history=re.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(re){return re&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(re){return this.history.generation==(re||this.cleanGeneration)},getHistory:function(){return{done:al(this.history.done),undone:al(this.history.undone)}},setHistory:function(re){var le=this.history=new El(this.history.maxGeneration);le.done=al(re.done.slice(0),null,!0),le.undone=al(re.undone.slice(0),null,!0)},setGutterMarker:Zs(function(re,le,ye){return Yl(this,re,"gutter",function(ve){var xe=ve.gutterMarkers||(ve.gutterMarkers={});return xe[le]=ye,!ye&&Be(xe)&&(ve.gutterMarkers=null),!0})}),clearGutter:Zs(function(re){var le=this;this.iter(function(ye){ye.gutterMarkers&&ye.gutterMarkers[re]&&Yl(le,ye,"gutter",function(){return ye.gutterMarkers[re]=null,Be(ye.gutterMarkers)&&(ye.gutterMarkers=null),!0})})}),lineInfo:function(re){var le;if(typeof re=="number"){if(!vr(this,re)||(le=re,re=Rr(this,re),!re))return null}else if(le=kt(re),le==null)return null;return{line:le,handle:re,text:re.text,gutterMarkers:re.gutterMarkers,textClass:re.textClass,bgClass:re.bgClass,wrapClass:re.wrapClass,widgets:re.widgets}},addLineClass:Zs(function(re,le,ye){return Yl(this,re,le=="gutter"?"gutter":"class",function(ve){var xe=le=="text"?"textClass":le=="background"?"bgClass":le=="gutter"?"gutterClass":"wrapClass";if(!ve[xe])ve[xe]=ye;else{if(De(ye).test(ve[xe]))return!1;ve[xe]+=" "+ye}return!0})}),removeLineClass:Zs(function(re,le,ye){return Yl(this,re,le=="gutter"?"gutter":"class",function(ve){var xe=le=="text"?"textClass":le=="background"?"bgClass":le=="gutter"?"gutterClass":"wrapClass",Ke=ve[xe];if(Ke)if(ye==null)ve[xe]=null;else{var dt=Ke.match(De(ye));if(!dt)return!1;var Ct=dt.index+dt[0].length;ve[xe]=Ke.slice(0,dt.index)+(!dt.index||Ct==Ke.length?"":" ")+Ke.slice(Ct)||null}else return!1;return!0})}),addLineWidget:Zs(function(re,le,ye){return Pf(this,re,le,ye)}),removeLineWidget:function(re){re.clear()},markText:function(re,le,ye){return Vd(this,Jn(this,re),Jn(this,le),ye,ye&&ye.type||"range")},setBookmark:function(re,le){var ye={replacedWith:le&&(le.nodeType==null?le.widget:le),insertLeft:le&&le.insertLeft,clearWhenEmpty:!1,shared:le&&le.shared,handleMouseEvents:le&&le.handleMouseEvents};return re=Jn(this,re),Vd(this,re,re,ye,"bookmark")},findMarksAt:function(re){re=Jn(this,re);var le=[],ye=Rr(this,re.line).markedSpans;if(ye)for(var ve=0;ve<ye.length;++ve){var xe=ye[ve];(xe.from==null||xe.from<=re.ch)&&(xe.to==null||xe.to>=re.ch)&&le.push(xe.marker.parent||xe.marker)}return le},findMarks:function(re,le,ye){re=Jn(this,re),le=Jn(this,le);var ve=[],xe=re.line;return this.iter(re.line,le.line+1,function(Ke){var dt=Ke.markedSpans;if(dt)for(var Ct=0;Ct<dt.length;Ct++){var Et=dt[Ct];!(Et.to!=null&&xe==re.line&&re.ch>=Et.to||Et.from==null&&xe!=re.line||Et.from!=null&&xe==le.line&&Et.from>=le.ch)&&(!ye||ye(Et.marker))&&ve.push(Et.marker.parent||Et.marker)}++xe}),ve},getAllMarks:function(){var re=[];return this.iter(function(le){var ye=le.markedSpans;if(ye)for(var ve=0;ve<ye.length;++ve)ye[ve].from!=null&&re.push(ye[ve].marker)}),re},posFromIndex:function(re){var le,ye=this.first,ve=this.lineSeparator().length;return this.iter(function(xe){var Ke=xe.text.length+ve;if(Ke>re)return le=re,!0;re-=Ke,++ye}),Jn(this,nn(ye,le))},indexFromPos:function(re){re=Jn(this,re);var le=re.ch;if(re.line<this.first||re.ch<0)return 0;var ye=this.lineSeparator().length;return this.iter(this.first,re.line,function(ve){le+=ve.text.length+ye}),le},copy:function(re){var le=new sl(fn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return le.scrollTop=this.scrollTop,le.scrollLeft=this.scrollLeft,le.sel=this.sel,le.extend=!1,re&&(le.history.undoDepth=this.history.undoDepth,le.setHistory(this.getHistory())),le},linkedDoc:function(re){re||(re={});var le=this.first,ye=this.first+this.size;re.from!=null&&re.from>le&&(le=re.from),re.to!=null&&re.to<ye&&(ye=re.to);var ve=new sl(fn(this,le,ye),re.mode||this.modeOption,le,this.lineSep,this.direction);return re.sharedHist&&(ve.history=this.history),(this.linked||(this.linked=[])).push({doc:ve,sharedHist:re.sharedHist}),ve.linked=[{doc:this,isParent:!0,sharedHist:re.sharedHist}],Gg(ve,ep(this)),ve},unlinkDoc:function(re){if(re instanceof Da&&(re=re.doc),this.linked)for(var le=0;le<this.linked.length;++le){var ye=this.linked[le];if(ye.doc==re){this.linked.splice(le,1),re.unlinkDoc(this),tp(ep(this));break}}if(re.history==this.history){var ve=[re.id];Zo(re,function(xe){return ve.push(xe.id)},!0),re.history=new El(null),re.history.done=al(this.history.done,ve),re.history.undone=al(this.history.undone,ve)}},iterLinkedDocs:function(re){Zo(this,re)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(re){return this.lineSep?re.split(this.lineSep):oi(re)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Zs(function(re){re!="rtl"&&(re="ltr"),re!=this.direction&&(this.direction=re,this.iter(function(le){return le.order=null}),this.cm&&Js(this.cm))})}),sl.prototype.eachLine=sl.prototype.iter;var Wh=0;function Zh(re){var le=this;if(qp(le),!(mn(le,re)||pa(le.display,re))){tr(re),Ve&&(Wh=+new Date);var ye=Ts(le,re,!0),ve=re.dataTransfer.files;if(!(!ye||le.isReadOnly()))if(ve&&ve.length&&window.FileReader&&window.File)for(var xe=ve.length,Ke=Array(xe),dt=0,Ct=function(){++dt==xe&&Us(le,function(){ye=Jn(le.doc,ye);var mr={from:ye,to:ye,text:le.doc.splitLines(Ke.filter(function(bi){return bi!=null}).join(le.doc.lineSeparator())),origin:"paste"};Vo(le.doc,mr),ce(le.doc,Ya(Jn(le.doc,ye),Jn(le.doc,Xa(mr))))})()},Et=function(mr,bi){if(le.options.allowDropFileTypes&&ct(le.options.allowDropFileTypes,mr.type)==-1){Ct();return}var Ci=new FileReader;Ci.onerror=function(){return Ct()},Ci.onload=function(){var Fi=Ci.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Fi)){Ct();return}Ke[bi]=Fi,Ct()},Ci.readAsText(mr)},jt=0;jt<ve.length;jt++)Et(ve[jt],jt);else{if(le.state.draggingText&&le.doc.sel.contains(ye)>-1){le.state.draggingText(re),setTimeout(function(){return le.display.input.focus()},20);return}try{var Yn=re.dataTransfer.getData("Text");if(Yn){var tn;if(le.state.draggingText&&!le.state.draggingText.copy&&(tn=le.listSelections()),et(le.doc,Ya(ye,ye)),tn)for(var Cr=0;Cr<tn.length;++Cr)pu(le.doc,"",tn[Cr].anchor,tn[Cr].head,"drag");le.replaceSelection(Yn,"around","paste"),le.display.input.focus()}}catch(mr){}}}}function Qp(re,le){if(Ve&&(!re.state.draggingText||+new Date-Wh<100)){yr(le);return}if(!(mn(re,le)||pa(re.display,le))&&(le.dataTransfer.setData("Text",re.getSelection()),le.dataTransfer.effectAllowed="copyMove",le.dataTransfer.setDragImage&&!St)){var ye=ot("img",null,null,"position: fixed; left: 0; top: 0;");ye.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ue&&(ye.width=ye.height=1,re.display.wrapper.appendChild(ye),ye._top=ye.offsetTop),le.dataTransfer.setDragImage(ye,0,0),Ue&&ye.parentNode.removeChild(ye)}}function Jp(re,le){var ye=Ts(re,le);if(ye){var ve=document.createDocumentFragment();ga(re,ye,ve),re.display.dragCursor||(re.display.dragCursor=ot("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),re.display.lineSpace.insertBefore(re.display.dragCursor,re.display.cursorDiv)),qe(re.display.dragCursor,ve)}}function qp(re){re.display.dragCursor&&(re.display.lineSpace.removeChild(re.display.dragCursor),re.display.dragCursor=null)}function Tf(re){if(document.getElementsByClassName){for(var le=document.getElementsByClassName("CodeMirror"),ye=[],ve=0;ve<le.length;ve++){var xe=le[ve].CodeMirror;xe&&ye.push(xe)}ye.length&&ye[0].operation(function(){for(var Ke=0;Ke<ye.length;Ke++)re(ye[Ke])})}}var Af=!1;function $u(){Af||(gh(),Af=!0)}function gh(){var re;Mt(window,"resize",function(){re==null&&(re=setTimeout(function(){re=null,Tf(np)},100))}),Mt(window,"blur",function(){return Tf(cc)})}function np(re){var le=re.display;le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.scrollbarsClipped=!1,re.setSize()}for(var Yc={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Kh=0;Kh<10;Kh++)Yc[Kh+48]=Yc[Kh+96]=String(Kh);for(var Nf=65;Nf<=90;Nf++)Yc[Nf]=String.fromCharCode(Nf);for(var Yh=1;Yh<=12;Yh++)Yc[Yh+111]=Yc[Yh+63235]="F"+Yh;var Uu={};Uu.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"},Uu.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"},Uu.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"},Uu.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"]},Uu.default=he?Uu.macDefault:Uu.pcDefault;function mh(re){var le=re.split(/-(?!$)/);re=le[le.length-1];for(var ye,ve,xe,Ke,dt=0;dt<le.length-1;dt++){var Ct=le[dt];if(/^(cmd|meta|m)$/i.test(Ct))Ke=!0;else if(/^a(lt)?$/i.test(Ct))ye=!0;else if(/^(c|ctrl|control)$/i.test(Ct))ve=!0;else if(/^s(hift)?$/i.test(Ct))xe=!0;else throw new Error("Unrecognized modifier name: "+Ct)}return ye&&(re="Alt-"+re),ve&&(re="Ctrl-"+re),Ke&&(re="Cmd-"+re),xe&&(re="Shift-"+re),re}function rp(re){var le={};for(var ye in re)if(re.hasOwnProperty(ye)){var ve=re[ye];if(/^(name|fallthrough|(de|at)tach)$/.test(ye))continue;if(ve=="..."){delete re[ye];continue}for(var xe=jn(ye.split(" "),mh),Ke=0;Ke<xe.length;Ke++){var dt=void 0,Ct=void 0;Ke==xe.length-1?(Ct=xe.join(" "),dt=ve):(Ct=xe.slice(0,Ke+1).join(" "),dt="...");var Et=le[Ct];if(!Et)le[Ct]=dt;else if(Et!=dt)throw new Error("Inconsistent bindings for "+Ct)}delete re[ye]}for(var jt in le)re[jt]=le[jt];return re}function ec(re,le,ye,ve){le=Wd(le);var xe=le.call?le.call(re,ve):le[re];if(xe===!1)return"nothing";if(xe==="...")return"multi";if(xe!=null&&ye(xe))return"handled";if(le.fallthrough){if(Object.prototype.toString.call(le.fallthrough)!="[object Array]")return ec(re,le.fallthrough,ye,ve);for(var Ke=0;Ke<le.fallthrough.length;Ke++){var dt=ec(re,le.fallthrough[Ke],ye,ve);if(dt)return dt}}}function fd(re){var le=typeof re=="string"?re:Yc[re.keyCode];return le=="Ctrl"||le=="Alt"||le=="Shift"||le=="Mod"}function Lf(re,le,ye){var ve=re;return le.altKey&&ve!="Alt"&&(re="Alt-"+re),(be?le.metaKey:le.ctrlKey)&&ve!="Ctrl"&&(re="Ctrl-"+re),(be?le.ctrlKey:le.metaKey)&&ve!="Mod"&&(re="Cmd-"+re),!ye&&le.shiftKey&&ve!="Shift"&&(re="Shift-"+re),re}function ip(re,le){if(Ue&&re.keyCode==34&&re.char)return!1;var ye=Yc[re.keyCode];return ye==null||re.altGraphKey?!1:(re.keyCode==3&&re.code&&(ye=re.code),Lf(ye,re,le))}function Wd(re){return typeof re=="string"?Uu[re]:re}function Pu(re,le){for(var ye=re.doc.sel.ranges,ve=[],xe=0;xe<ye.length;xe++){for(var Ke=le(ye[xe]);ve.length&&Qn(Ke.from,Ot(ve).to)<=0;){var dt=ve.pop();if(Qn(dt.from,Ke.from)<0){Ke.from=dt.from;break}}ve.push(Ke)}La(re,function(){for(var Ct=ve.length-1;Ct>=0;Ct--)pu(re.doc,"",ve[Ct].from,ve[Ct].to,"+delete");lu(re)})}function op(re,le,ye){var ve=yn(re.text,le+ye,ye);return ve<0||ve>re.text.length?null:ve}function $s(re,le,ye){var ve=op(re,le.ch,ye);return ve==null?null:new nn(le.line,ve,ye<0?"after":"before")}function Xc(re,le,ye,ve,xe){if(re){le.doc.direction=="rtl"&&(xe=-xe);var Ke=Tn(ye,le.doc.direction);if(Ke){var dt=xe<0?Ot(Ke):Ke[0],Ct=xe<0==(dt.level==1),Et=Ct?"after":"before",jt;if(dt.level>0||le.doc.direction=="rtl"){var Yn=ss(le,ye);jt=xe<0?ye.text.length-1:0;var tn=cl(le,Yn,jt).top;jt=On(function(Cr){return cl(le,Yn,Cr).top==tn},xe<0==(dt.level==1)?dt.from:dt.to-1,jt),Et=="before"&&(jt=op(ye,jt,1))}else jt=xe<0?dt.to:dt.from;return new nn(ve,jt,Et)}}return new nn(ve,xe<0?ye.text.length:0,xe<0?"before":"after")}function kf(re,le,ye,ve){var xe=Tn(le,re.doc.direction);if(!xe)return $s(le,ye,ve);ye.ch>=le.text.length?(ye.ch=le.text.length,ye.sticky="before"):ye.ch<=0&&(ye.ch=0,ye.sticky="after");var Ke=zt(xe,ye.ch,ye.sticky),dt=xe[Ke];if(re.doc.direction=="ltr"&&dt.level%2==0&&(ve>0?dt.to>ye.ch:dt.from<ye.ch))return $s(le,ye,ve);var Ct=function(Ji,yo){return op(le,Ji instanceof nn?Ji.ch:Ji,yo)},Et,jt=function(Ji){return re.options.lineWrapping?(Et=Et||ss(re,le),Sl(re,le,Et,Ji)):{begin:0,end:le.text.length}},Yn=jt(ye.sticky=="before"?Ct(ye,-1):ye.ch);if(re.doc.direction=="rtl"||dt.level==1){var tn=dt.level==1==ve<0,Cr=Ct(ye,tn?1:-1);if(Cr!=null&&(tn?Cr<=dt.to&&Cr<=Yn.end:Cr>=dt.from&&Cr>=Yn.begin)){var mr=tn?"before":"after";return new nn(ye.line,Cr,mr)}}var bi=function(Ji,yo,oo){for(var Po=function(xs,Cl){return Cl?new nn(ye.line,Ct(xs,1),"before"):new nn(ye.line,xs,"after")};Ji>=0&&Ji<xe.length;Ji+=yo){var Qo=xe[Ji],ao=yo>0==(Qo.level!=1),ya=ao?oo.begin:Ct(oo.end,-1);if(Qo.from<=ya&&ya<Qo.to||(ya=ao?Qo.from:Ct(Qo.to,-1),oo.begin<=ya&&ya<oo.end))return Po(ya,ao)}},Ci=bi(Ke+ve,ve,Yn);if(Ci)return Ci;var Fi=ve>0?Yn.end:Ct(Yn.begin,-1);return Fi!=null&&!(ve>0&&Fi==le.text.length)&&(Ci=bi(ve>0?0:xe.length-1,ve,jt(Fi)),Ci)?Ci:null}var Cd={selectAll:li,singleSelection:function(re){return re.setSelection(re.getCursor("anchor"),re.getCursor("head"),It)},killLine:function(re){return Pu(re,function(le){if(le.empty()){var ye=Rr(re.doc,le.head.line).text.length;return le.head.ch==ye&&le.head.line<re.lastLine()?{from:le.head,to:nn(le.head.line+1,0)}:{from:le.head,to:nn(le.head.line,ye)}}else return{from:le.from(),to:le.to()}})},deleteLine:function(re){return Pu(re,function(le){return{from:nn(le.from().line,0),to:Jn(re.doc,nn(le.to().line+1,0))}})},delLineLeft:function(re){return Pu(re,function(le){return{from:nn(le.from().line,0),to:le.from()}})},delWrappedLineLeft:function(re){return Pu(re,function(le){var ye=re.charCoords(le.head,"div").top+5,ve=re.coordsChar({left:0,top:ye},"div");return{from:ve,to:le.from()}})},delWrappedLineRight:function(re){return Pu(re,function(le){var ye=re.charCoords(le.head,"div").top+5,ve=re.coordsChar({left:re.display.lineDiv.offsetWidth+100,top:ye},"div");return{from:le.from(),to:ve}})},undo:function(re){return re.undo()},redo:function(re){return re.redo()},undoSelection:function(re){return re.undoSelection()},redoSelection:function(re){return re.redoSelection()},goDocStart:function(re){return re.extendSelection(nn(re.firstLine(),0))},goDocEnd:function(re){return re.extendSelection(nn(re.lastLine()))},goLineStart:function(re){return re.extendSelectionsBy(function(le){return vh(re,le.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(re){return re.extendSelectionsBy(function(le){return Xh(re,le.head)},{origin:"+move",bias:1})},goLineEnd:function(re){return re.extendSelectionsBy(function(le){return yh(re,le.head.line)},{origin:"+move",bias:-1})},goLineRight:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5;return re.coordsChar({left:re.display.lineDiv.offsetWidth+100,top:ye},"div")},bn)},goLineLeft:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5;return re.coordsChar({left:0,top:ye},"div")},bn)},goLineLeftSmart:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5,ve=re.coordsChar({left:0,top:ye},"div");return ve.ch<re.getLine(ve.line).search(/\S/)?Xh(re,le.head):ve},bn)},goLineUp:function(re){return re.moveV(-1,"line")},goLineDown:function(re){return re.moveV(1,"line")},goPageUp:function(re){return re.moveV(-1,"page")},goPageDown:function(re){return re.moveV(1,"page")},goCharLeft:function(re){return re.moveH(-1,"char")},goCharRight:function(re){return re.moveH(1,"char")},goColumnLeft:function(re){return re.moveH(-1,"column")},goColumnRight:function(re){return re.moveH(1,"column")},goWordLeft:function(re){return re.moveH(-1,"word")},goGroupRight:function(re){return re.moveH(1,"group")},goGroupLeft:function(re){return re.moveH(-1,"group")},goWordRight:function(re){return re.moveH(1,"word")},delCharBefore:function(re){return re.deleteH(-1,"codepoint")},delCharAfter:function(re){return re.deleteH(1,"char")},delWordBefore:function(re){return re.deleteH(-1,"word")},delWordAfter:function(re){return re.deleteH(1,"word")},delGroupBefore:function(re){return re.deleteH(-1,"group")},delGroupAfter:function(re){return re.deleteH(1,"group")},indentAuto:function(re){return re.indentSelection("smart")},indentMore:function(re){return re.indentSelection("add")},indentLess:function(re){return re.indentSelection("subtract")},insertTab:function(re){return re.replaceSelection(" ")},insertSoftTab:function(re){for(var le=[],ye=re.listSelections(),ve=re.options.tabSize,xe=0;xe<ye.length;xe++){var Ke=ye[xe].from(),dt=Nt(re.getLine(Ke.line),Ke.ch,ve);le.push(zn(ve-dt%ve))}re.replaceSelections(le)},defaultTab:function(re){re.somethingSelected()?re.indentSelection("add"):re.execCommand("insertTab")},transposeChars:function(re){return La(re,function(){for(var le=re.listSelections(),ye=[],ve=0;ve<le.length;ve++)if(le[ve].empty()){var xe=le[ve].head,Ke=Rr(re.doc,xe.line).text;if(Ke){if(xe.ch==Ke.length&&(xe=new nn(xe.line,xe.ch-1)),xe.ch>0)xe=new nn(xe.line,xe.ch+1),re.replaceRange(Ke.charAt(xe.ch-1)+Ke.charAt(xe.ch-2),nn(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>re.doc.first){var dt=Rr(re.doc,xe.line-1).text;dt&&(xe=new nn(xe.line,1),re.replaceRange(Ke.charAt(0)+re.doc.lineSeparator()+dt.charAt(dt.length-1),nn(xe.line-1,dt.length-1),xe,"+transpose"))}}ye.push(new Ro(xe,xe))}re.setSelections(ye)})},newlineAndIndent:function(re){return La(re,function(){for(var le=re.listSelections(),ye=le.length-1;ye>=0;ye--)re.replaceRange(re.doc.lineSeparator(),le[ye].anchor,le[ye].head,"+input");le=re.listSelections();for(var ve=0;ve<le.length;ve++)re.indentLine(le[ve].from().line,null,!0);lu(re)})},openLine:function(re){return re.replaceSelection(`
`,"start")},toggleOverwrite:function(re){return re.toggleOverwrite()}};function vh(re,le){var ye=Rr(re.doc,le),ve=Mn(ye);return ve!=ye&&(le=kt(ve)),Xc(!0,re,ve,le,1)}function yh(re,le){var ye=Rr(re.doc,le),ve=Xn(ye);return ve!=ye&&(le=kt(ve)),Xc(!0,re,ye,le,-1)}function Xh(re,le){var ye=vh(re,le.line),ve=Rr(re.doc,ye.line),xe=Tn(ve,re.doc.direction);if(!xe||xe[0].level==0){var Ke=Math.max(ye.ch,ve.text.search(/\S/)),dt=le.line==ye.line&&le.ch<=Ke&&le.ch;return nn(ye.line,dt?0:Ke,ye.sticky)}return ye}function Sh(re,le,ye){if(typeof le=="string"&&(le=Cd[le],!le))return!1;re.display.input.ensurePolled();var ve=re.display.shift,xe=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),ye&&(re.display.shift=!1),xe=le(re)!=sn}finally{re.display.shift=ve,re.state.suppressEdits=!1}return xe}function ap(re,le,ye){for(var ve=0;ve<re.state.keyMaps.length;ve++){var xe=ec(le,re.state.keyMaps[ve],ye,re);if(xe)return xe}return re.options.extraKeys&&ec(le,re.options.extraKeys,ye,re)||ec(le,re.options.keyMap,ye,re)}var Qc=new gt;function Zd(re,le,ye,ve){var xe=re.state.keySeq;if(xe){if(fd(le))return"handled";if(/\'$/.test(le)?re.state.keySeq=null:Qc.set(50,function(){re.state.keySeq==xe&&(re.state.keySeq=null,re.display.input.reset())}),If(re,xe+" "+le,ye,ve))return!0}return If(re,le,ye,ve)}function If(re,le,ye,ve){var xe=ap(re,le,ve);return xe=="multi"&&(re.state.keySeq=le),xe=="handled"&&Qi(re,"keyHandled",re,le,ye),(xe=="handled"||xe=="multi")&&(tr(ye),Ta(re)),!!xe}function Df(re,le){var ye=ip(le,!0);return ye?le.shiftKey&&!re.state.keySeq?Zd(re,"Shift-"+ye,le,function(ve){return Sh(re,ve,!0)})||Zd(re,ye,le,function(ve){if(typeof ve=="string"?/^go[A-Z]/.test(ve):ve.motion)return Sh(re,ve)}):Zd(re,ye,le,function(ve){return Sh(re,ve)}):!1}function Rf(re,le,ye){return Zd(re,"'"+ye+"'",le,function(ve){return Sh(re,ve,!0)})}var Pd=null;function sp(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&(le.curOp.focus=wt(),!mn(le,re))){Ve&&Te<11&&re.keyCode==27&&(re.returnValue=!1);var ye=re.keyCode;le.display.shift=ye==16||re.shiftKey;var ve=Df(le,re);Ue&&(Pd=ve?ye:null,!ve&&ye==88&&!kr&&(he?re.metaKey:re.ctrlKey)&&le.replaceSelection("",null,"cut")),oe&&!he&&!ve&&ye==46&&re.shiftKey&&!re.ctrlKey&&document.execCommand&&document.execCommand("cut"),ye==18&&!/\bCodeMirror-crosshair\b/.test(le.display.lineDiv.className)&&lp(le)}}function lp(re){var le=re.display.lineDiv;At(le,"CodeMirror-crosshair");function ye(ve){(ve.keyCode==18||!ve.altKey)&&(We(le,"CodeMirror-crosshair"),Yt(document,"keyup",ye),Yt(document,"mouseover",ye))}Mt(document,"keyup",ye),Mt(document,"mouseover",ye)}function up(re){re.keyCode==16&&(this.doc.sel.shift=!1),mn(this,re)}function Mc(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&!(pa(le.display,re)||mn(le,re)||re.ctrlKey&&!re.altKey||he&&re.metaKey)){var ye=re.keyCode,ve=re.charCode;if(Ue&&ye==Pd){Pd=null,tr(re);return}if(!(Ue&&(!re.which||re.which<10)&&Df(le,re))){var xe=String.fromCharCode(ve==null?ye:ve);xe!="\b"&&(Rf(le,re,xe)||le.display.input.onKeyPress(re))}}}var cp=400,dp=function(re,le,ye){this.time=re,this.pos=le,this.button=ye};dp.prototype.compare=function(re,le,ye){return this.time+cp>re&&Qn(le,this.pos)==0&&ye==this.button};var bh,Kd;function hp(re,le){var ye=+new Date;return Kd&&Kd.compare(ye,re,le)?(bh=Kd=null,"triple"):bh&&bh.compare(ye,re,le)?(Kd=new dp(ye,re,le),bh=null,"double"):(bh=new dp(ye,re,le),Kd=null,"single")}function Oc(re){var le=this,ye=le.display;if(!(mn(le,re)||ye.activeTouch&&ye.input.supportsTouch())){if(ye.input.ensurePolled(),ye.shift=re.shiftKey,pa(ye,re)){ze||(ye.scroller.draggable=!1,setTimeout(function(){return ye.scroller.draggable=!0},100));return}if(!Mf(le,re)){var ve=Ts(le,re),xe=Or(re),Ke=ve?hp(ve,xe):"single";window.focus(),xe==1&&le.state.selectingText&&le.state.selectingText(re),!(ve&&fp(le,xe,ve,Ke,re))&&(xe==1?ve?pp(le,ve,Ke,re):ri(re)==ye.scroller&&tr(re):xe==2?(ve&&hc(le.doc,ve),setTimeout(function(){return ye.input.focus()},20)):xe==3&&(Ae?le.display.input.onContextMenu(re):Wa(le)))}}}function fp(re,le,ye,ve,xe){var Ke="Click";return ve=="double"?Ke="Double"+Ke:ve=="triple"&&(Ke="Triple"+Ke),Ke=(le==1?"Left":le==2?"Middle":"Right")+Ke,Zd(re,Lf(Ke,xe),xe,function(dt){if(typeof dt=="string"&&(dt=Cd[dt]),!dt)return!1;var Ct=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),Ct=dt(re,ye)!=sn}finally{re.state.suppressEdits=!1}return Ct})}function Yd(re,le,ye){var ve=re.getOption("configureMouse"),xe=ve?ve(re,le,ye):{};if(xe.unit==null){var Ke=ue?ye.shiftKey&&ye.metaKey:ye.altKey;xe.unit=Ke?"rectangle":le=="single"?"char":le=="double"?"word":"line"}return(xe.extend==null||re.doc.extend)&&(xe.extend=re.doc.extend||ye.shiftKey),xe.addNew==null&&(xe.addNew=he?ye.metaKey:ye.ctrlKey),xe.moveOnDrag==null&&(xe.moveOnDrag=!(he?ye.altKey:ye.ctrlKey)),xe}function pp(re,le,ye,ve){Ve?setTimeout(Zt(ka,re),0):re.curOp.focus=wt();var xe=Yd(re,ye,ve),Ke=re.doc.sel,dt;re.options.dragDrop&&Nn&&!re.isReadOnly()&&ye=="single"&&(dt=Ke.contains(le))>-1&&(Qn((dt=Ke.ranges[dt]).from(),le)<0||le.xRel>0)&&(Qn(dt.to(),le)>0||le.xRel<0)?gp(re,ve,le,xe):jg(re,ve,le,xe)}function gp(re,le,ye,ve){var xe=re.display,Ke=!1,dt=Us(re,function(jt){ze&&(xe.scroller.draggable=!1),re.state.draggingText=!1,Yt(xe.wrapper.ownerDocument,"mouseup",dt),Yt(xe.wrapper.ownerDocument,"mousemove",Ct),Yt(xe.scroller,"dragstart",Et),Yt(xe.scroller,"drop",dt),Ke||(tr(jt),ve.addNew||hc(re.doc,ye,null,null,ve.extend),ze&&!St||Ve&&Te==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),Ct=function(jt){Ke=Ke||Math.abs(le.clientX-jt.clientX)+Math.abs(le.clientY-jt.clientY)>=10},Et=function(){return Ke=!0};ze&&(xe.scroller.draggable=!0),re.state.draggingText=dt,dt.copy=!ve.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),Mt(xe.wrapper.ownerDocument,"mouseup",dt),Mt(xe.wrapper.ownerDocument,"mousemove",Ct),Mt(xe.scroller,"dragstart",Et),Mt(xe.scroller,"drop",dt),Wa(re),setTimeout(function(){return xe.input.focus()},20)}function mp(re,le,ye){if(ye=="char")return new Ro(le,le);if(ye=="word")return re.findWordAt(le);if(ye=="line")return new Ro(nn(le.line,0),Jn(re.doc,nn(le.line+1,0)));var ve=ye(re,le);return new Ro(ve.from,ve.to)}function jg(re,le,ye,ve){var xe=re.display,Ke=re.doc;tr(le);var dt,Ct,Et=Ke.sel,jt=Et.ranges;if(ve.addNew&&!ve.extend?(Ct=Ke.sel.contains(ye),Ct>-1?dt=jt[Ct]:dt=new Ro(ye,ye)):(dt=Ke.sel.primary(),Ct=Ke.sel.primIndex),ve.unit=="rectangle")ve.addNew||(dt=new Ro(ye,ye)),ye=Ts(re,le,!0,!0),Ct=-1;else{var Yn=mp(re,ye,ve.unit);ve.extend?dt=Qu(dt,Yn.anchor,Yn.head,ve.extend):dt=Yn}ve.addNew?Ct==-1?(Ct=jt.length,ge(Ke,Bo(re,jt.concat([dt]),Ct),{scroll:!1,origin:"*mouse"})):jt.length>1&&jt[Ct].empty()&&ve.unit=="char"&&!ve.extend?(ge(Ke,Bo(re,jt.slice(0,Ct).concat(jt.slice(Ct+1)),0),{scroll:!1,origin:"*mouse"}),Et=Ke.sel):xl(Ke,Ct,dt,wn):(Ct=0,ge(Ke,new io([dt],0),wn),Et=Ke.sel);var tn=ye;function Cr(oo){if(Qn(tn,oo)!=0)if(tn=oo,ve.unit=="rectangle"){for(var Po=[],Qo=re.options.tabSize,ao=Nt(Rr(Ke,ye.line).text,ye.ch,Qo),ya=Nt(Rr(Ke,oo.line).text,oo.ch,Qo),xs=Math.min(ao,ya),Cl=Math.max(ao,ya),Ms=Math.min(ye.line,oo.line),Tu=Math.min(re.lastLine(),Math.max(ye.line,oo.line));Ms<=Tu;Ms++){var Xl=Rr(Ke,Ms).text,gl=_n(Xl,xs,Qo);xs==Cl?Po.push(new Ro(nn(Ms,gl),nn(Ms,gl))):Xl.length>gl&&Po.push(new Ro(nn(Ms,gl),nn(Ms,_n(Xl,Cl,Qo))))}Po.length||Po.push(new Ro(ye,ye)),ge(Ke,Bo(re,Et.ranges.slice(0,Ct).concat(Po),Ct),{origin:"*mouse",scroll:!1}),re.scrollIntoView(oo)}else{var Au=dt,Bl=mp(re,oo,ve.unit),ml=Au.anchor,Ra;Qn(Bl.anchor,ml)>0?(Ra=Bl.head,ml=Jr(Au.from(),Bl.anchor)):(Ra=Bl.anchor,ml=Ge(Au.to(),Bl.head));var Os=Et.ranges.slice(0);Os[Ct]=$p(re,new Ro(Jn(Ke,ml),Ra)),ge(Ke,Bo(re,Os,Ct),wn)}}var mr=xe.wrapper.getBoundingClientRect(),bi=0;function Ci(oo){var Po=++bi,Qo=Ts(re,oo,!0,ve.unit=="rectangle");if(Qo)if(Qn(Qo,tn)!=0){re.curOp.focus=wt(),Cr(Qo);var ao=ta(xe,Ke);(Qo.line>=ao.to||Qo.line<ao.from)&&setTimeout(Us(re,function(){bi==Po&&Ci(oo)}),150)}else{var ya=oo.clientY<mr.top?-20:oo.clientY>mr.bottom?20:0;ya&&setTimeout(Us(re,function(){bi==Po&&(xe.scroller.scrollTop+=ya,Ci(oo))}),50)}}function Fi(oo){re.state.selectingText=!1,bi=1/0,oo&&(tr(oo),xe.input.focus()),Yt(xe.wrapper.ownerDocument,"mousemove",Ji),Yt(xe.wrapper.ownerDocument,"mouseup",yo),Ke.history.lastSelOrigin=null}var Ji=Us(re,function(oo){oo.buttons===0||!Or(oo)?Fi(oo):Ci(oo)}),yo=Us(re,Fi);re.state.selectingText=yo,Mt(xe.wrapper.ownerDocument,"mousemove",Ji),Mt(xe.wrapper.ownerDocument,"mouseup",yo)}function $p(re,le){var ye=le.anchor,ve=le.head,xe=Rr(re.doc,ye.line);if(Qn(ye,ve)==0&&ye.sticky==ve.sticky)return le;var Ke=Tn(xe);if(!Ke)return le;var dt=zt(Ke,ye.ch,ye.sticky),Ct=Ke[dt];if(Ct.from!=ye.ch&&Ct.to!=ye.ch)return le;var Et=dt+(Ct.from==ye.ch==(Ct.level!=1)?0:1);if(Et==0||Et==Ke.length)return le;var jt;if(ve.line!=ye.line)jt=(ve.line-ye.line)*(re.doc.direction=="ltr"?1:-1)>0;else{var Yn=zt(Ke,ve.ch,ve.sticky),tn=Yn-dt||(ve.ch-ye.ch)*(Ct.level==1?-1:1);Yn==Et-1||Yn==Et?jt=tn<0:jt=tn>0}var Cr=Ke[Et+(jt?-1:0)],mr=jt==(Cr.level==1),bi=mr?Cr.from:Cr.to,Ci=mr?"after":"before";return ye.ch==bi&&ye.sticky==Ci?le:new Ro(new nn(ye.line,bi,Ci),ve)}function Td(re,le,ye,ve){var xe,Ke;if(le.touches)xe=le.touches[0].clientX,Ke=le.touches[0].clientY;else try{xe=le.clientX,Ke=le.clientY}catch(Cr){return!1}if(xe>=Math.floor(re.display.gutters.getBoundingClientRect().right))return!1;ve&&tr(le);var dt=re.display,Ct=dt.lineDiv.getBoundingClientRect();if(Ke>Ct.bottom||!Sn(re,ye))return qt(le);Ke-=Ct.top-dt.viewOffset;for(var Et=0;Et<re.display.gutterSpecs.length;++Et){var jt=dt.gutters.childNodes[Et];if(jt&&jt.getBoundingClientRect().right>=xe){var Yn=Gn(re.doc,Ke),tn=re.display.gutterSpecs[Et];return on(re,ye,re,Yn,tn.className,le),qt(le)}}}function Mf(re,le){return Td(re,le,"gutterClick",!0)}function Qh(re,le){pa(re.display,le)||eg(re,le)||mn(re,le,"contextmenu")||Ae||re.display.input.onContextMenu(le)}function eg(re,le){return Sn(re,"gutterContextMenu")?Td(re,le,"gutterContextMenu",!1):!1}function Of(re){re.display.wrapper.className=re.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+re.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ku(re)}var Xd={toString:function(){return"CodeMirror.Init"}},vp={},Qd={};function tg(re){var le=re.optionHandlers;function ye(ve,xe,Ke,dt){re.defaults[ve]=xe,Ke&&(le[ve]=dt?function(Ct,Et,jt){jt!=Xd&&Ke(Ct,Et,jt)}:Ke)}re.defineOption=ye,re.Init=Xd,ye("value","",function(ve,xe){return ve.setValue(xe)},!0),ye("mode",null,function(ve,xe){ve.doc.modeOption=xe,bo(ve)},!0),ye("indentUnit",2,bo,!0),ye("indentWithTabs",!1),ye("smartIndent",!0),ye("tabSize",4,function(ve){fl(ve),Ku(ve),aa(ve)},!0),ye("lineSeparator",null,function(ve,xe){if(ve.doc.lineSep=xe,!!xe){var Ke=[],dt=ve.doc.first;ve.doc.iter(function(Et){for(var jt=0;;){var Yn=Et.text.indexOf(xe,jt);if(Yn==-1)break;jt=Yn+xe.length,Ke.push(nn(dt,Yn))}dt++});for(var Ct=Ke.length-1;Ct>=0;Ct--)pu(ve.doc,xe,Ke[Ct],nn(Ke[Ct].line,Ke[Ct].ch+xe.length))}}),ye("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ve,xe,Ke){ve.state.specialChars=new RegExp(xe.source+(xe.test(" ")?"":"| "),"g"),Ke!=Xd&&ve.refresh()}),ye("specialCharPlaceholder",so,function(ve){return ve.refresh()},!0),ye("electricChars",!0),ye("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ye("spellcheck",!1,function(ve,xe){return ve.getInputField().spellcheck=xe},!0),ye("autocorrect",!1,function(ve,xe){return ve.getInputField().autocorrect=xe},!0),ye("autocapitalize",!1,function(ve,xe){return ve.getInputField().autocapitalize=xe},!0),ye("rtlMoveVisually",!fe),ye("wholeLineUpdateBefore",!0),ye("theme","default",function(ve){Of(ve),ir(ve)},!0),ye("keyMap","default",function(ve,xe,Ke){var dt=Wd(xe),Ct=Ke!=Xd&&Wd(Ke);Ct&&Ct.detach&&Ct.detach(ve,dt),dt.attach&&dt.attach(ve,Ct||null)}),ye("extraKeys",null),ye("configureMouse",null),ye("lineWrapping",!1,ng,!0),ye("gutters",[],function(ve,xe){ve.display.gutterSpecs=br(xe,ve.options.lineNumbers),ir(ve)},!0),ye("fixedGutter",!0,function(ve,xe){ve.display.gutters.style.left=xe?uc(ve.display)+"px":"0",ve.refresh()},!0),ye("coverGutterNextToScrollbar",!1,function(ve){return Ns(ve)},!0),ye("scrollbarStyle","native",function(ve){Pl(ve),Ns(ve),ve.display.scrollbars.setScrollTop(ve.doc.scrollTop),ve.display.scrollbars.setScrollLeft(ve.doc.scrollLeft)},!0),ye("lineNumbers",!1,function(ve,xe){ve.display.gutterSpecs=br(ve.options.gutters,xe),ir(ve)},!0),ye("firstLineNumber",1,ir,!0),ye("lineNumberFormatter",function(ve){return ve},ir,!0),ye("showCursorWhenSelecting",!1,As,!0),ye("resetSelectionOnContextMenu",!0),ye("lineWiseCopyCut",!0),ye("pasteLinesPerSelection",!0),ye("selectionsMayTouch",!1),ye("readOnly",!1,function(ve,xe){xe=="nocursor"&&(cc(ve),ve.display.input.blur()),ve.display.input.readOnlyChanged(xe)}),ye("screenReaderLabel",null,function(ve,xe){xe=xe===""?null:xe,ve.display.input.screenReaderLabelChanged(xe)}),ye("disableInput",!1,function(ve,xe){xe||ve.display.input.reset()},!0),ye("dragDrop",!0,Ff),ye("allowDropFileTypes",null),ye("cursorBlinkRate",530),ye("cursorScrollMargin",0),ye("cursorHeight",1,As,!0),ye("singleCursorHeightPerLine",!0,As,!0),ye("workTime",100),ye("workDelay",100),ye("flattenSpans",!0,fl,!0),ye("addModeClass",!1,fl,!0),ye("pollInterval",100),ye("undoDepth",200,function(ve,xe){return ve.doc.history.undoDepth=xe}),ye("historyEventDelay",1250),ye("viewportMargin",10,function(ve){return ve.refresh()},!0),ye("maxHighlightLength",1e4,fl,!0),ye("moveInputWithCursor",!0,function(ve,xe){xe||ve.display.input.resetPosition()}),ye("tabindex",null,function(ve,xe){return ve.display.input.getField().tabIndex=xe||""}),ye("autofocus",null),ye("direction","ltr",function(ve,xe){return ve.doc.setDirection(xe)},!0),ye("phrases",null)}function Ff(re,le,ye){var ve=ye&&ye!=Xd;if(!le!=!ve){var xe=re.display.dragFunctions,Ke=le?Mt:Yt;Ke(re.display.scroller,"dragstart",xe.start),Ke(re.display.scroller,"dragenter",xe.enter),Ke(re.display.scroller,"dragover",xe.over),Ke(re.display.scroller,"dragleave",xe.leave),Ke(re.display.scroller,"drop",xe.drop)}}function ng(re){re.options.lineWrapping?(At(re.display.wrapper,"CodeMirror-wrap"),re.display.sizer.style.minWidth="",re.display.sizerWidth=null):(We(re.display.wrapper,"CodeMirror-wrap"),mi(re)),wo(re),aa(re),Ku(re),setTimeout(function(){return Ns(re)},100)}function Da(re,le){var ye=this;if(!(this instanceof Da))return new Da(re,le);this.options=le=le?ln(le):{},ln(vp,le,!1);var ve=le.value;typeof ve=="string"?ve=new sl(ve,le.mode,null,le.lineSeparator,le.direction):le.mode&&(ve.modeOption=le.mode),this.doc=ve;var xe=new Da.inputStyles[le.inputStyle](this),Ke=this.display=new Yr(re,ve,xe,le);Ke.wrapper.CodeMirror=this,Of(this),le.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pl(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 gt,keySeq:null,specialChars:null},le.autofocus&&!ee&&Ke.input.focus(),Ve&&Te<11&&setTimeout(function(){return ye.display.input.reset(!0)},20),Eh(this),$u(),Tl(this),this.curOp.forceUpdate=!0,wa(this,ve),le.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ye.hasFocus()&&!ye.state.focused&&$o(ye)},20):cc(this);for(var dt in Qd)Qd.hasOwnProperty(dt)&&Qd[dt](this,le[dt],Xd);Pn(this),le.finishInit&&le.finishInit(this);for(var Ct=0;Ct<Ad.length;++Ct)Ad[Ct](this);uu(this),ze&&le.lineWrapping&&getComputedStyle(Ke.lineDiv).textRendering=="optimizelegibility"&&(Ke.lineDiv.style.textRendering="auto")}Da.defaults=vp,Da.optionHandlers=Qd;function Eh(re){var le=re.display;Mt(le.scroller,"mousedown",Us(re,Oc)),Ve&&Te<11?Mt(le.scroller,"dblclick",Us(re,function(Et){if(!mn(re,Et)){var jt=Ts(re,Et);if(!(!jt||Mf(re,Et)||pa(re.display,Et))){tr(Et);var Yn=re.findWordAt(jt);hc(re.doc,Yn.anchor,Yn.head)}}})):Mt(le.scroller,"dblclick",function(Et){return mn(re,Et)||tr(Et)}),Mt(le.scroller,"contextmenu",function(Et){return Qh(re,Et)}),Mt(le.input.getField(),"contextmenu",function(Et){le.scroller.contains(Et.target)||Qh(re,Et)});var ye,ve={end:0};function xe(){le.activeTouch&&(ye=setTimeout(function(){return le.activeTouch=null},1e3),ve=le.activeTouch,ve.end=+new Date)}function Ke(Et){if(Et.touches.length!=1)return!1;var jt=Et.touches[0];return jt.radiusX<=1&&jt.radiusY<=1}function dt(Et,jt){if(jt.left==null)return!0;var Yn=jt.left-Et.left,tn=jt.top-Et.top;return Yn*Yn+tn*tn>20*20}Mt(le.scroller,"touchstart",function(Et){if(!mn(re,Et)&&!Ke(Et)&&!Mf(re,Et)){le.input.ensurePolled(),clearTimeout(ye);var jt=+new Date;le.activeTouch={start:jt,moved:!1,prev:jt-ve.end<=300?ve:null},Et.touches.length==1&&(le.activeTouch.left=Et.touches[0].pageX,le.activeTouch.top=Et.touches[0].pageY)}}),Mt(le.scroller,"touchmove",function(){le.activeTouch&&(le.activeTouch.moved=!0)}),Mt(le.scroller,"touchend",function(Et){var jt=le.activeTouch;if(jt&&!pa(le,Et)&&jt.left!=null&&!jt.moved&&new Date-jt.start<300){var Yn=re.coordsChar(le.activeTouch,"page"),tn;!jt.prev||dt(jt,jt.prev)?tn=new Ro(Yn,Yn):!jt.prev.prev||dt(jt,jt.prev.prev)?tn=re.findWordAt(Yn):tn=new Ro(nn(Yn.line,0),Jn(re.doc,nn(Yn.line+1,0))),re.setSelection(tn.anchor,tn.head),re.focus(),tr(Et)}xe()}),Mt(le.scroller,"touchcancel",xe),Mt(le.scroller,"scroll",function(){le.scroller.clientHeight&&(hl(re,le.scroller.scrollTop),rl(re,le.scroller.scrollLeft,!0),on(re,"scroll",re))}),Mt(le.scroller,"mousewheel",function(Et){return ea(re,Et)}),Mt(le.scroller,"DOMMouseScroll",function(Et){return ea(re,Et)}),Mt(le.wrapper,"scroll",function(){return le.wrapper.scrollTop=le.wrapper.scrollLeft=0}),le.dragFunctions={enter:function(Et){mn(re,Et)||yr(Et)},over:function(Et){mn(re,Et)||(Jp(re,Et),yr(Et))},start:function(Et){return Qp(re,Et)},drop:Us(re,Zh),leave:function(Et){mn(re,Et)||qp(re)}};var Ct=le.input.getField();Mt(Ct,"keyup",function(Et){return up.call(re,Et)}),Mt(Ct,"keydown",Us(re,sp)),Mt(Ct,"keypress",Us(re,Mc)),Mt(Ct,"focus",function(Et){return $o(re,Et)}),Mt(Ct,"blur",function(Et){return cc(re,Et)})}var Ad=[];Da.defineInitHook=function(re){return Ad.push(re)};function wl(re,le,ye,ve){var xe=re.doc,Ke;ye==null&&(ye="add"),ye=="smart"&&(xe.mode.indent?Ke=zi(re,le).state:ye="prev");var dt=re.options.tabSize,Ct=Rr(xe,le),Et=Nt(Ct.text,null,dt);Ct.stateAfter&&(Ct.stateAfter=null);var jt=Ct.text.match(/^\s*/)[0],Yn;if(!ve&&!/\S/.test(Ct.text))Yn=0,ye="not";else if(ye=="smart"&&(Yn=xe.mode.indent(Ke,Ct.text.slice(jt.length),Ct.text),Yn==sn||Yn>150)){if(!ve)return;ye="prev"}ye=="prev"?le>xe.first?Yn=Nt(Rr(xe,le-1).text,null,dt):Yn=0:ye=="add"?Yn=Et+re.options.indentUnit:ye=="subtract"?Yn=Et-re.options.indentUnit:typeof ye=="number"&&(Yn=Et+ye),Yn=Math.max(0,Yn);var tn="",Cr=0;if(re.options.indentWithTabs)for(var mr=Math.floor(Yn/dt);mr;--mr)Cr+=dt,tn+=" ";if(Cr<Yn&&(tn+=zn(Yn-Cr)),tn!=jt)return pu(xe,tn,nn(le,0),nn(le,jt.length),"+input"),Ct.stateAfter=null,!0;for(var bi=0;bi<xe.sel.ranges.length;bi++){var Ci=xe.sel.ranges[bi];if(Ci.head.line==le&&Ci.head.ch<jt.length){var Fi=nn(le,jt.length);xl(xe,bi,new Ro(Fi,Fi));break}}}var gu=null;function xh(re){gu=re}function Jd(re,le,ye,ve,xe){var Ke=re.doc;re.display.shift=!1,ve||(ve=Ke.sel);var dt=+new Date-200,Ct=xe=="paste"||re.state.pasteIncoming>dt,Et=oi(le),jt=null;if(Ct&&ve.ranges.length>1)if(gu&&gu.text.join(`
`)==le){if(ve.ranges.length%gu.text.length==0){jt=[];for(var Yn=0;Yn<gu.text.length;Yn++)jt.push(Ke.splitLines(gu.text[Yn]))}}else Et.length==ve.ranges.length&&re.options.pasteLinesPerSelection&&(jt=jn(Et,function(Ji){return[Ji]}));for(var tn=re.curOp.updateInput,Cr=ve.ranges.length-1;Cr>=0;Cr--){var mr=ve.ranges[Cr],bi=mr.from(),Ci=mr.to();mr.empty()&&(ye&&ye>0?bi=nn(bi.line,bi.ch-ye):re.state.overwrite&&!Ct?Ci=nn(Ci.line,Math.min(Rr(Ke,Ci.line).text.length,Ci.ch+Ot(Et).length)):Ct&&gu&&gu.lineWise&&gu.text.join(`
`)==Et.join(`
`)&&(bi=Ci=nn(bi.line,0)));var Fi={from:bi,to:Ci,text:jt?jt[Cr%jt.length]:Et,origin:xe||(Ct?"paste":re.state.cutIncoming>dt?"cut":"+input")};Vo(re.doc,Fi),Qi(re,"inputRead",re,Fi)}le&&!Ct&&Sp(re,le),lu(re),re.curOp.updateInput<2&&(re.curOp.updateInput=tn),re.curOp.typing=!0,re.state.pasteIncoming=re.state.cutIncoming=-1}function yp(re,le){var ye=re.clipboardData&&re.clipboardData.getData("Text");if(ye)return re.preventDefault(),!le.isReadOnly()&&!le.options.disableInput&&La(le,function(){return Jd(le,ye,0,null,"paste")}),!0}function Sp(re,le){if(!(!re.options.electricChars||!re.options.smartIndent))for(var ye=re.doc.sel,ve=ye.ranges.length-1;ve>=0;ve--){var xe=ye.ranges[ve];if(!(xe.head.ch>100||ve&&ye.ranges[ve-1].head.line==xe.head.line)){var Ke=re.getModeAt(xe.head),dt=!1;if(Ke.electricChars){for(var Ct=0;Ct<Ke.electricChars.length;Ct++)if(le.indexOf(Ke.electricChars.charAt(Ct))>-1){dt=wl(re,xe.head.line,"smart");break}}else Ke.electricInput&&Ke.electricInput.test(Rr(re.doc,xe.head.line).text.slice(0,xe.head.ch))&&(dt=wl(re,xe.head.line,"smart"));dt&&Qi(re,"electricInput",re,xe.head.line)}}}function bp(re){for(var le=[],ye=[],ve=0;ve<re.doc.sel.ranges.length;ve++){var xe=re.doc.sel.ranges[ve].head.line,Ke={anchor:nn(xe,0),head:nn(xe+1,0)};ye.push(Ke),le.push(re.getRange(Ke.anchor,Ke.head))}return{text:le,ranges:ye}}function Ep(re,le,ye,ve){re.setAttribute("autocorrect",ye?"":"off"),re.setAttribute("autocapitalize",ve?"":"off"),re.setAttribute("spellcheck",!!le)}function xp(){var re=ot("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),le=ot("div",[re],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ze?re.style.width="1000px":re.setAttribute("wrap","off"),Fe&&(re.style.border="1px solid black"),Ep(re),le}function Nd(re){var le=re.optionHandlers,ye=re.helpers={};re.prototype={constructor:re,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ve,xe){var Ke=this.options,dt=Ke[ve];Ke[ve]==xe&&ve!="mode"||(Ke[ve]=xe,le.hasOwnProperty(ve)&&Us(this,le[ve])(this,xe,dt),on(this,"optionChange",this,ve))},getOption:function(ve){return this.options[ve]},getDoc:function(){return this.doc},addKeyMap:function(ve,xe){this.state.keyMaps[xe?"push":"unshift"](Wd(ve))},removeKeyMap:function(ve){for(var xe=this.state.keyMaps,Ke=0;Ke<xe.length;++Ke)if(xe[Ke]==ve||xe[Ke].name==ve)return xe.splice(Ke,1),!0},addOverlay:Qs(function(ve,xe){var Ke=ve.token?ve:re.getMode(this.options,ve);if(Ke.startState)throw new Error("Overlays may not be stateful.");cr(this.state.overlays,{mode:Ke,modeSpec:ve,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(dt){return dt.priority}),this.state.modeGen++,aa(this)}),removeOverlay:Qs(function(ve){for(var xe=this.state.overlays,Ke=0;Ke<xe.length;++Ke){var dt=xe[Ke].modeSpec;if(dt==ve||typeof ve=="string"&&dt.name==ve){xe.splice(Ke,1),this.state.modeGen++,aa(this);return}}}),indentLine:Qs(function(ve,xe,Ke){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),vr(this.doc,ve)&&wl(this,ve,xe,Ke)}),indentSelection:Qs(function(ve){for(var xe=this.doc.sel.ranges,Ke=-1,dt=0;dt<xe.length;dt++){var Ct=xe[dt];if(Ct.empty())Ct.head.line>Ke&&(wl(this,Ct.head.line,ve,!0),Ke=Ct.head.line,dt==this.doc.sel.primIndex&&lu(this));else{var Et=Ct.from(),jt=Ct.to(),Yn=Math.max(Ke,Et.line);Ke=Math.min(this.lastLine(),jt.line-(jt.ch?0:1))+1;for(var tn=Yn;tn<Ke;++tn)wl(this,tn,ve);var Cr=this.doc.sel.ranges;Et.ch==0&&xe.length==Cr.length&&Cr[dt].from().ch>0&&xl(this.doc,dt,new Ro(Et,Cr[dt].to()),It)}}}),getTokenAt:function(ve,xe){return ai(this,ve,xe)},getLineTokens:function(ve,xe){return ai(this,nn(ve),xe,!0)},getTokenTypeAt:function(ve){ve=Jn(this.doc,ve);var xe=xi(this,Rr(this.doc,ve.line)),Ke=0,dt=(xe.length-1)/2,Ct=ve.ch,Et;if(Ct==0)Et=xe[2];else for(;;){var jt=Ke+dt>>1;if((jt?xe[jt*2-1]:0)>=Ct)dt=jt;else if(xe[jt*2+1]<Ct)Ke=jt+1;else{Et=xe[jt*2+2];break}}var Yn=Et?Et.indexOf("overlay "):-1;return Yn<0?Et:Yn==0?null:Et.slice(0,Yn-1)},getModeAt:function(ve){var xe=this.doc.mode;return xe.innerMode?re.innerMode(xe,this.getTokenAt(ve).state).mode:xe},getHelper:function(ve,xe){return this.getHelpers(ve,xe)[0]},getHelpers:function(ve,xe){var Ke=[];if(!ye.hasOwnProperty(xe))return Ke;var dt=ye[xe],Ct=this.getModeAt(ve);if(typeof Ct[xe]=="string")dt[Ct[xe]]&&Ke.push(dt[Ct[xe]]);else if(Ct[xe])for(var Et=0;Et<Ct[xe].length;Et++){var jt=dt[Ct[xe][Et]];jt&&Ke.push(jt)}else Ct.helperType&&dt[Ct.helperType]?Ke.push(dt[Ct.helperType]):dt[Ct.name]&&Ke.push(dt[Ct.name]);for(var Yn=0;Yn<dt._global.length;Yn++){var tn=dt._global[Yn];tn.pred(Ct,this)&&ct(Ke,tn.val)==-1&&Ke.push(tn.val)}return Ke},getStateAfter:function(ve,xe){var Ke=this.doc;return ve=Hr(Ke,ve==null?Ke.first+Ke.size-1:ve),zi(this,ve+1,xe).state},cursorCoords:function(ve,xe){var Ke,dt=this.doc.sel.primary();return ve==null?Ke=dt.head:typeof ve=="object"?Ke=Jn(this.doc,ve):Ke=ve?dt.from():dt.to(),Yo(this,Ke,xe||"page")},charCoords:function(ve,xe){return Ho(this,Jn(this.doc,ve),xe||"page")},coordsChar:function(ve,xe){return ve=Sa(this,ve,xe||"page"),za(this,ve.left,ve.top)},lineAtHeight:function(ve,xe){return ve=Sa(this,{top:ve,left:0},xe||"page").top,Gn(this.doc,ve+this.display.viewOffset)},heightAtLine:function(ve,xe,Ke){var dt=!1,Ct;if(typeof ve=="number"){var Et=this.doc.first+this.doc.size-1;ve<this.doc.first?ve=this.doc.first:ve>Et&&(ve=Et,dt=!0),Ct=Rr(this.doc,ve)}else Ct=ve;return vs(this,Ct,{top:0,left:0},xe||"page",Ke||dt).top+(dt?this.doc.height-Gr(Ct):0)},defaultTextHeight:function(){return Vs(this.display)},defaultCharWidth:function(){return Dl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ve,xe,Ke,dt,Ct){var Et=this.display;ve=Yo(this,Jn(this.doc,ve));var jt=ve.bottom,Yn=ve.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),Et.sizer.appendChild(xe),dt=="over")jt=ve.top;else if(dt=="above"||dt=="near"){var tn=Math.max(Et.wrapper.clientHeight,this.doc.height),Cr=Math.max(Et.sizer.clientWidth,Et.lineSpace.clientWidth);(dt=="above"||ve.bottom+xe.offsetHeight>tn)&&ve.top>xe.offsetHeight?jt=ve.top-xe.offsetHeight:ve.bottom+xe.offsetHeight<=tn&&(jt=ve.bottom),Yn+xe.offsetWidth>Cr&&(Yn=Cr-xe.offsetWidth)}xe.style.top=jt+"px",xe.style.left=xe.style.right="",Ct=="right"?(Yn=Et.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(Ct=="left"?Yn=0:Ct=="middle"&&(Yn=(Et.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=Yn+"px"),Ke&&su(this,{left:Yn,top:jt,right:Yn+xe.offsetWidth,bottom:jt+xe.offsetHeight})},triggerOnKeyDown:Qs(sp),triggerOnKeyPress:Qs(Mc),triggerOnKeyUp:up,triggerOnMouseDown:Qs(Oc),execCommand:function(ve){if(Cd.hasOwnProperty(ve))return Cd[ve].call(null,this)},triggerElectric:Qs(function(ve){Sp(this,ve)}),findPosH:function(ve,xe,Ke,dt){var Ct=1;xe<0&&(Ct=-1,xe=-xe);for(var Et=Jn(this.doc,ve),jt=0;jt<xe&&(Et=Jh(this.doc,Et,Ct,Ke,dt),!Et.hitSide);++jt);return Et},moveH:Qs(function(ve,xe){var Ke=this;this.extendSelectionsBy(function(dt){return Ke.display.shift||Ke.doc.extend||dt.empty()?Jh(Ke.doc,dt.head,ve,xe,Ke.options.rtlMoveVisually):ve<0?dt.from():dt.to()},bn)}),deleteH:Qs(function(ve,xe){var Ke=this.doc.sel,dt=this.doc;Ke.somethingSelected()?dt.replaceSelection("",null,"+delete"):Pu(this,function(Ct){var Et=Jh(dt,Ct.head,ve,xe,!1);return ve<0?{from:Et,to:Ct.head}:{from:Ct.head,to:Et}})}),findPosV:function(ve,xe,Ke,dt){var Ct=1,Et=dt;xe<0&&(Ct=-1,xe=-xe);for(var jt=Jn(this.doc,ve),Yn=0;Yn<xe;++Yn){var tn=Yo(this,jt,"div");if(Et==null?Et=tn.left:tn.left=Et,jt=pd(this,tn,Ct,Ke),jt.hitSide)break}return jt},moveV:Qs(function(ve,xe){var Ke=this,dt=this.doc,Ct=[],Et=!this.display.shift&&!dt.extend&&dt.sel.somethingSelected();if(dt.extendSelectionsBy(function(Yn){if(Et)return ve<0?Yn.from():Yn.to();var tn=Yo(Ke,Yn.head,"div");Yn.goalColumn!=null&&(tn.left=Yn.goalColumn),Ct.push(tn.left);var Cr=pd(Ke,tn,ve,xe);return xe=="page"&&Yn==dt.sel.primary()&&Ec(Ke,Ho(Ke,Cr,"div").top-tn.top),Cr},bn),Ct.length)for(var jt=0;jt<dt.sel.ranges.length;jt++)dt.sel.ranges[jt].goalColumn=Ct[jt]}),findWordAt:function(ve){var xe=this.doc,Ke=Rr(xe,ve.line).text,dt=ve.ch,Ct=ve.ch;if(Ke){var Et=this.getHelper(ve,"wordChars");(ve.sticky=="before"||Ct==Ke.length)&&dt?--dt:++Ct;for(var jt=Ke.charAt(dt),Yn=lt(jt,Et)?function(tn){return lt(tn,Et)}:/\s/.test(jt)?function(tn){return/\s/.test(tn)}:function(tn){return!/\s/.test(tn)&&!lt(tn)};dt>0&&Yn(Ke.charAt(dt-1));)--dt;for(;Ct<Ke.length&&Yn(Ke.charAt(Ct));)++Ct}return new Ro(nn(ve.line,dt),nn(ve.line,Ct))},toggleOverwrite:function(ve){ve!=null&&ve==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):We(this.display.cursorDiv,"CodeMirror-overwrite"),on(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Qs(function(ve,xe){Wl(this,ve,xe)}),getScrollInfo:function(){var ve=this.display.scroller;return{left:ve.scrollLeft,top:ve.scrollTop,height:ve.scrollHeight-oa(this)-this.display.barHeight,width:ve.scrollWidth-oa(this)-this.display.barWidth,clientHeight:Il(this),clientWidth:as(this)}},scrollIntoView:Qs(function(ve,xe){ve==null?(ve={from:this.doc.sel.primary().head,to:null},xe==null&&(xe=this.options.cursorScrollMargin)):typeof ve=="number"?ve={from:nn(ve,0),to:null}:ve.from==null&&(ve={from:ve,to:null}),ve.to||(ve.to=ve.from),ve.margin=xe||0,ve.from.line!=null?la(this,ve):Bu(this,ve.from,ve.to,ve.margin)}),setSize:Qs(function(ve,xe){var Ke=this,dt=function(Et){return typeof Et=="number"||/^\d+$/.test(String(Et))?Et+"px":Et};ve!=null&&(this.display.wrapper.style.width=dt(ve)),xe!=null&&(this.display.wrapper.style.height=dt(xe)),this.options.lineWrapping&&Ou(this);var Ct=this.display.viewFrom;this.doc.iter(Ct,this.display.viewTo,function(Et){if(Et.widgets){for(var jt=0;jt<Et.widgets.length;jt++)if(Et.widgets[jt].noHScroll){Wo(Ke,Ct,"widget");break}}++Ct}),this.curOp.forceUpdate=!0,on(this,"refresh",this)}),operation:function(ve){return La(this,ve)},startOperation:function(){return Tl(this)},endOperation:function(){return uu(this)},refresh:Qs(function(){var ve=this.display.cachedTextHeight;aa(this),this.curOp.forceUpdate=!0,Ku(this),Wl(this,this.doc.scrollLeft,this.doc.scrollTop),Ft(this.display),(ve==null||Math.abs(ve-Vs(this.display))>.5||this.options.lineWrapping)&&wo(this),on(this,"refresh",this)}),swapDoc:Qs(function(ve){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),wa(this,ve),Ku(this),this.display.input.reset(),Wl(this,ve.scrollLeft,ve.scrollTop),this.curOp.forceScroll=!0,Qi(this,"swapDoc",this,xe),xe}),phrase:function(ve){var xe=this.options.phrases;return xe&&Object.prototype.hasOwnProperty.call(xe,ve)?xe[ve]:ve},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}},ht(re),re.registerHelper=function(ve,xe,Ke){ye.hasOwnProperty(ve)||(ye[ve]=re[ve]={_global:[]}),ye[ve][xe]=Ke},re.registerGlobalHelper=function(ve,xe,Ke,dt){re.registerHelper(ve,xe,dt),ye[ve]._global.push({pred:Ke,val:dt})}}function Jh(re,le,ye,ve,xe){var Ke=le,dt=ye,Ct=Rr(re,le.line),Et=xe&&re.direction=="rtl"?-ye:ye;function jt(){var yo=le.line+Et;return yo<re.first||yo>=re.first+re.size?!1:(le=new nn(yo,le.ch,le.sticky),Ct=Rr(re,yo))}function Yn(yo){var oo;if(ve=="codepoint"){var Po=Ct.text.charCodeAt(le.ch+(ve>0?0:-1));isNaN(Po)?oo=null:oo=new nn(le.line,Math.max(0,Math.min(Ct.text.length,le.ch+ye*(Po>=55296&&Po<56320?2:1))),-ye)}else xe?oo=kf(re.cm,Ct,le,ye):oo=$s(Ct,le,ye);if(oo==null)if(!yo&&jt())le=Xc(xe,re.cm,Ct,le.line,Et);else return!1;else le=oo;return!0}if(ve=="char"||ve=="codepoint")Yn();else if(ve=="column")Yn(!0);else if(ve=="word"||ve=="group")for(var tn=null,Cr=ve=="group",mr=re.cm&&re.cm.getHelper(le,"wordChars"),bi=!0;!(ye<0&&!Yn(!bi));bi=!1){var Ci=Ct.text.charAt(le.ch)||`
`,Fi=lt(Ci,mr)?"w":Cr&&Ci==`
`?"n":!Cr||/\s/.test(Ci)?null:"p";if(Cr&&!bi&&!Fi&&(Fi="s"),tn&&tn!=Fi){ye<0&&(ye=1,Yn(),le.sticky="after");break}if(Fi&&(tn=Fi),ye>0&&!Yn(!bi))break}var Ji=Lo(re,le,Ke,dt,!0);return Dn(Ke,Ji)&&(Ji.hitSide=!0),Ji}function pd(re,le,ye,ve){var xe=re.doc,Ke=le.left,dt;if(ve=="page"){var Ct=Math.min(re.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Et=Math.max(Ct-.5*Vs(re.display),3);dt=(ye>0?le.bottom:le.top)+ye*Et}else ve=="line"&&(dt=ye>0?le.bottom+3:le.top-3);for(var jt;jt=za(re,Ke,dt),!!jt.outside;){if(ye<0?dt<=0:dt>=xe.height){jt.hitSide=!0;break}dt+=ye*5}return jt}var Qa=function(re){this.cm=re,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new gt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qa.prototype.init=function(re){var le=this,ye=this,ve=ye.cm,xe=ye.div=re.lineDiv;Ep(xe,ve.options.spellcheck,ve.options.autocorrect,ve.options.autocapitalize);function Ke(Ct){for(var Et=Ct.target;Et;Et=Et.parentNode){if(Et==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Et.className))break}return!1}Mt(xe,"paste",function(Ct){!Ke(Ct)||mn(ve,Ct)||yp(Ct,ve)||Te<=11&&setTimeout(Us(ve,function(){return le.updateFromDOM()}),20)}),Mt(xe,"compositionstart",function(Ct){le.composing={data:Ct.data,done:!1}}),Mt(xe,"compositionupdate",function(Ct){le.composing||(le.composing={data:Ct.data,done:!1})}),Mt(xe,"compositionend",function(Ct){le.composing&&(Ct.data!=le.composing.data&&le.readFromDOMSoon(),le.composing.done=!0)}),Mt(xe,"touchstart",function(){return ye.forceCompositionEnd()}),Mt(xe,"input",function(){le.composing||le.readFromDOMSoon()});function dt(Ct){if(!(!Ke(Ct)||mn(ve,Ct))){if(ve.somethingSelected())xh({lineWise:!1,text:ve.getSelections()}),Ct.type=="cut"&&ve.replaceSelection("",null,"cut");else if(ve.options.lineWiseCopyCut){var Et=bp(ve);xh({lineWise:!0,text:Et.text}),Ct.type=="cut"&&ve.operation(function(){ve.setSelections(Et.ranges,0,It),ve.replaceSelection("",null,"cut")})}else return;if(Ct.clipboardData){Ct.clipboardData.clearData();var jt=gu.text.join(`
`);if(Ct.clipboardData.setData("Text",jt),Ct.clipboardData.getData("Text")==jt){Ct.preventDefault();return}}var Yn=xp(),tn=Yn.firstChild;ve.display.lineSpace.insertBefore(Yn,ve.display.lineSpace.firstChild),tn.value=gu.text.join(`
`);var Cr=document.activeElement;Qt(tn),setTimeout(function(){ve.display.lineSpace.removeChild(Yn),Cr.focus(),Cr==xe&&ye.showPrimarySelection()},50)}}Mt(xe,"copy",dt),Mt(xe,"cut",dt)},Qa.prototype.screenReaderLabelChanged=function(re){re?this.div.setAttribute("aria-label",re):this.div.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var re=Fu(this.cm,!1);return re.focus=document.activeElement==this.div,re},Qa.prototype.showSelection=function(re,le){!re||!this.cm.display.view.length||((re.focus||le)&&this.showPrimarySelection(),this.showMultipleSelections(re))},Qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qa.prototype.showPrimarySelection=function(){var re=this.getSelection(),le=this.cm,ye=le.doc.sel.primary(),ve=ye.from(),xe=ye.to();if(le.display.viewTo==le.display.viewFrom||ve.line>=le.display.viewTo||xe.line<le.display.viewFrom){re.removeAllRanges();return}var Ke=qh(le,re.anchorNode,re.anchorOffset),dt=qh(le,re.focusNode,re.focusOffset);if(!(Ke&&!Ke.bad&&dt&&!dt.bad&&Qn(Jr(Ke,dt),ve)==0&&Qn(Ge(Ke,dt),xe)==0)){var Ct=le.display.view,Et=ve.line>=le.display.viewFrom&&qd(le,ve)||{node:Ct[0].measure.map[2],offset:0},jt=xe.line<le.display.viewTo&&qd(le,xe);if(!jt){var Yn=Ct[Ct.length-1].measure,tn=Yn.maps?Yn.maps[Yn.maps.length-1]:Yn.map;jt={node:tn[tn.length-1],offset:tn[tn.length-2]-tn[tn.length-3]}}if(!Et||!jt){re.removeAllRanges();return}var Cr=re.rangeCount&&re.getRangeAt(0),mr;try{mr=at(Et.node,Et.offset,jt.offset,jt.node)}catch(bi){}mr&&(!oe&&le.state.focused?(re.collapse(Et.node,Et.offset),mr.collapsed||(re.removeAllRanges(),re.addRange(mr))):(re.removeAllRanges(),re.addRange(mr)),Cr&&re.anchorNode==null?re.addRange(Cr):oe&&this.startGracePeriod()),this.rememberSelection()}},Qa.prototype.startGracePeriod=function(){var re=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){re.gracePeriod=!1,re.selectionChanged()&&re.cm.operation(function(){return re.cm.curOp.selectionChanged=!0})},20)},Qa.prototype.showMultipleSelections=function(re){qe(this.cm.display.cursorDiv,re.cursors),qe(this.cm.display.selectionDiv,re.selection)},Qa.prototype.rememberSelection=function(){var re=this.getSelection();this.lastAnchorNode=re.anchorNode,this.lastAnchorOffset=re.anchorOffset,this.lastFocusNode=re.focusNode,this.lastFocusOffset=re.focusOffset},Qa.prototype.selectionInEditor=function(){var re=this.getSelection();if(!re.rangeCount)return!1;var le=re.getRangeAt(0).commonAncestorContainer;return vt(this.div,le)},Qa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Qa.prototype.blur=function(){this.div.blur()},Qa.prototype.getField=function(){return this.div},Qa.prototype.supportsTouch=function(){return!0},Qa.prototype.receivedFocus=function(){var re=this;this.selectionInEditor()?this.pollSelection():La(this.cm,function(){return re.cm.curOp.selectionChanged=!0});function le(){re.cm.state.focused&&(re.pollSelection(),re.polling.set(re.cm.options.pollInterval,le))}this.polling.set(this.cm.options.pollInterval,le)},Qa.prototype.selectionChanged=function(){var re=this.getSelection();return re.anchorNode!=this.lastAnchorNode||re.anchorOffset!=this.lastAnchorOffset||re.focusNode!=this.lastFocusNode||re.focusOffset!=this.lastFocusOffset},Qa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var re=this.getSelection(),le=this.cm;if(te&&Qe&&this.cm.display.gutterSpecs.length&&wp(re.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ye=qh(le,re.anchorNode,re.anchorOffset),ve=qh(le,re.focusNode,re.focusOffset);ye&&ve&&La(le,function(){ge(le.doc,Ya(ye,ve),It),(ye.bad||ve.bad)&&(le.curOp.selectionChanged=!0)})}}},Qa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var re=this.cm,le=re.display,ye=re.doc.sel.primary(),ve=ye.from(),xe=ye.to();if(ve.ch==0&&ve.line>re.firstLine()&&(ve=nn(ve.line-1,Rr(re.doc,ve.line-1).length)),xe.ch==Rr(re.doc,xe.line).text.length&&xe.line<re.lastLine()&&(xe=nn(xe.line+1,0)),ve.line<le.viewFrom||xe.line>le.viewTo-1)return!1;var Ke,dt,Ct;ve.line==le.viewFrom||(Ke=Ws(re,ve.line))==0?(dt=kt(le.view[0].line),Ct=le.view[0].node):(dt=kt(le.view[Ke].line),Ct=le.view[Ke-1].node.nextSibling);var Et=Ws(re,xe.line),jt,Yn;if(Et==le.view.length-1?(jt=le.viewTo-1,Yn=le.lineDiv.lastChild):(jt=kt(le.view[Et+1].line)-1,Yn=le.view[Et+1].node.previousSibling),!Ct)return!1;for(var tn=re.doc.splitLines($d(re,Ct,Yn,dt,jt)),Cr=Cn(re.doc,nn(dt,0),nn(jt,Rr(re.doc,jt).text.length));tn.length>1&&Cr.length>1;)if(Ot(tn)==Ot(Cr))tn.pop(),Cr.pop(),jt--;else if(tn[0]==Cr[0])tn.shift(),Cr.shift(),dt++;else break;for(var mr=0,bi=0,Ci=tn[0],Fi=Cr[0],Ji=Math.min(Ci.length,Fi.length);mr<Ji&&Ci.charCodeAt(mr)==Fi.charCodeAt(mr);)++mr;for(var yo=Ot(tn),oo=Ot(Cr),Po=Math.min(yo.length-(tn.length==1?mr:0),oo.length-(Cr.length==1?mr:0));bi<Po&&yo.charCodeAt(yo.length-bi-1)==oo.charCodeAt(oo.length-bi-1);)++bi;if(tn.length==1&&Cr.length==1&&dt==ve.line)for(;mr&&mr>ve.ch&&yo.charCodeAt(yo.length-bi-1)==oo.charCodeAt(oo.length-bi-1);)mr--,bi++;tn[tn.length-1]=yo.slice(0,yo.length-bi).replace(/^\u200b+/,""),tn[0]=tn[0].slice(mr).replace(/\u200b+$/,"");var Qo=nn(dt,mr),ao=nn(jt,Cr.length?Ot(Cr).length-bi:0);if(tn.length>1||tn[0]||Qn(Qo,ao))return pu(re.doc,tn,Qo,ao,"+input"),!0},Qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qa.prototype.reset=function(){this.forceCompositionEnd()},Qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qa.prototype.readFromDOMSoon=function(){var re=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(re.readDOMTimeout=null,re.composing)if(re.composing.done)re.composing=null;else return;re.updateFromDOM()},80))},Qa.prototype.updateFromDOM=function(){var re=this;(this.cm.isReadOnly()||!this.pollContent())&&La(this.cm,function(){return aa(re.cm)})},Qa.prototype.setUneditable=function(re){re.contentEditable="false"},Qa.prototype.onKeyPress=function(re){re.charCode==0||this.composing||(re.preventDefault(),this.cm.isReadOnly()||Us(this.cm,Jd)(this.cm,String.fromCharCode(re.charCode==null?re.keyCode:re.charCode),0))},Qa.prototype.readOnlyChanged=function(re){this.div.contentEditable=String(re!="nocursor")},Qa.prototype.onContextMenu=function(){},Qa.prototype.resetPosition=function(){},Qa.prototype.needsContentAttribute=!0;function qd(re,le){var ye=ou(re,le.line);if(!ye||ye.hidden)return null;var ve=Rr(re.doc,le.line),xe=Ua(ye,ve,le.line),Ke=Tn(ve,re.doc.direction),dt="left";if(Ke){var Ct=zt(Ke,le.ch);dt=Ct%2?"right":"left"}var Et=Vl(xe.map,le.ch,dt);return Et.offset=Et.collapse=="right"?Et.end:Et.start,Et}function wp(re){for(var le=re;le;le=le.parentNode)if(/CodeMirror-gutter-wrapper/.test(le.className))return!0;return!1}function Ld(re,le){return le&&(re.bad=!0),re}function $d(re,le,ye,ve,xe){var Ke="",dt=!1,Ct=re.doc.lineSeparator(),Et=!1;function jt(mr){return function(bi){return bi.id==mr}}function Yn(){dt&&(Ke+=Ct,Et&&(Ke+=Ct),dt=Et=!1)}function tn(mr){mr&&(Yn(),Ke+=mr)}function Cr(mr){if(mr.nodeType==1){var bi=mr.getAttribute("cm-text");if(bi){tn(bi);return}var Ci=mr.getAttribute("cm-marker"),Fi;if(Ci){var Ji=re.findMarks(nn(ve,0),nn(xe+1,0),jt(+Ci));Ji.length&&(Fi=Ji[0].find(0))&&tn(Cn(re.doc,Fi.from,Fi.to).join(Ct));return}if(mr.getAttribute("contenteditable")=="false")return;var yo=/^(pre|div|p|li|table|br)$/i.test(mr.nodeName);if(!/^br$/i.test(mr.nodeName)&&mr.textContent.length==0)return;yo&&Yn();for(var oo=0;oo<mr.childNodes.length;oo++)Cr(mr.childNodes[oo]);/^(pre|p)$/i.test(mr.nodeName)&&(Et=!0),yo&&(dt=!0)}else mr.nodeType==3&&tn(mr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Cr(le),le!=ye;)le=le.nextSibling,Et=!1;return Ke}function qh(re,le,ye){var ve;if(le==re.display.lineDiv){if(ve=re.display.lineDiv.childNodes[ye],!ve)return Ld(re.clipPos(nn(re.display.viewTo-1)),!0);le=null,ye=0}else for(ve=le;;ve=ve.parentNode){if(!ve||ve==re.display.lineDiv)return null;if(ve.parentNode&&ve.parentNode==re.display.lineDiv)break}for(var xe=0;xe<re.display.view.length;xe++){var Ke=re.display.view[xe];if(Ke.node==ve)return rg(Ke,le,ye)}}function rg(re,le,ye){var ve=re.text.firstChild,xe=!1;if(!le||!vt(ve,le))return Ld(nn(kt(re.line),0),!0);if(le==ve&&(xe=!0,le=ve.childNodes[ye],ye=0,!le)){var Ke=re.rest?Ot(re.rest):re.line;return Ld(nn(kt(Ke),Ke.text.length),xe)}var dt=le.nodeType==3?le:null,Ct=le;for(!dt&&le.childNodes.length==1&&le.firstChild.nodeType==3&&(dt=le.firstChild,ye&&(ye=dt.nodeValue.length));Ct.parentNode!=ve;)Ct=Ct.parentNode;var Et=re.measure,jt=Et.maps;function Yn(Fi,Ji,yo){for(var oo=-1;oo<(jt?jt.length:0);oo++)for(var Po=oo<0?Et.map:jt[oo],Qo=0;Qo<Po.length;Qo+=3){var ao=Po[Qo+2];if(ao==Fi||ao==Ji){var ya=kt(oo<0?re.line:re.rest[oo]),xs=Po[Qo]+yo;return(yo<0||ao!=Fi)&&(xs=Po[Qo+(yo?1:0)]),nn(ya,xs)}}}var tn=Yn(dt,Ct,ye);if(tn)return Ld(tn,xe);for(var Cr=Ct.nextSibling,mr=dt?dt.nodeValue.length-ye:0;Cr;Cr=Cr.nextSibling){if(tn=Yn(Cr,Cr.firstChild,0),tn)return Ld(nn(tn.line,tn.ch-mr),xe);mr+=Cr.textContent.length}for(var bi=Ct.previousSibling,Ci=ye;bi;bi=bi.previousSibling){if(tn=Yn(bi,bi.firstChild,-1),tn)return Ld(nn(tn.line,tn.ch+Ci),xe);Ci+=bi.textContent.length}}var pl=function(re){this.cm=re,this.prevInput="",this.pollingFast=!1,this.polling=new gt,this.hasSelection=!1,this.composing=null};pl.prototype.init=function(re){var le=this,ye=this,ve=this.cm;this.createField(re);var xe=this.textarea;re.wrapper.insertBefore(this.wrapper,re.wrapper.firstChild),Fe&&(xe.style.width="0px"),Mt(xe,"input",function(){Ve&&Te>=9&&le.hasSelection&&(le.hasSelection=null),ye.poll()}),Mt(xe,"paste",function(dt){mn(ve,dt)||yp(dt,ve)||(ve.state.pasteIncoming=+new Date,ye.fastPoll())});function Ke(dt){if(!mn(ve,dt)){if(ve.somethingSelected())xh({lineWise:!1,text:ve.getSelections()});else if(ve.options.lineWiseCopyCut){var Ct=bp(ve);xh({lineWise:!0,text:Ct.text}),dt.type=="cut"?ve.setSelections(Ct.ranges,null,It):(ye.prevInput="",xe.value=Ct.text.join(`
`),Qt(xe))}else return;dt.type=="cut"&&(ve.state.cutIncoming=+new Date)}}Mt(xe,"cut",Ke),Mt(xe,"copy",Ke),Mt(re.scroller,"paste",function(dt){if(!(pa(re,dt)||mn(ve,dt))){if(!xe.dispatchEvent){ve.state.pasteIncoming=+new Date,ye.focus();return}var Ct=new Event("paste");Ct.clipboardData=dt.clipboardData,xe.dispatchEvent(Ct)}}),Mt(re.lineSpace,"selectstart",function(dt){pa(re,dt)||tr(dt)}),Mt(xe,"compositionstart",function(){var dt=ve.getCursor("from");ye.composing&&ye.composing.range.clear(),ye.composing={start:dt,range:ve.markText(dt,ve.getCursor("to"),{className:"CodeMirror-composing"})}}),Mt(xe,"compositionend",function(){ye.composing&&(ye.poll(),ye.composing.range.clear(),ye.composing=null)})},pl.prototype.createField=function(re){this.wrapper=xp(),this.textarea=this.wrapper.firstChild},pl.prototype.screenReaderLabelChanged=function(re){re?this.textarea.setAttribute("aria-label",re):this.textarea.removeAttribute("aria-label")},pl.prototype.prepareSelection=function(){var re=this.cm,le=re.display,ye=re.doc,ve=Fu(re);if(re.options.moveInputWithCursor){var xe=Yo(re,ye.sel.primary().head,"div"),Ke=le.wrapper.getBoundingClientRect(),dt=le.lineDiv.getBoundingClientRect();ve.teTop=Math.max(0,Math.min(le.wrapper.clientHeight-10,xe.top+dt.top-Ke.top)),ve.teLeft=Math.max(0,Math.min(le.wrapper.clientWidth-10,xe.left+dt.left-Ke.left))}return ve},pl.prototype.showSelection=function(re){var le=this.cm,ye=le.display;qe(ye.cursorDiv,re.cursors),qe(ye.selectionDiv,re.selection),re.teTop!=null&&(this.wrapper.style.top=re.teTop+"px",this.wrapper.style.left=re.teLeft+"px")},pl.prototype.reset=function(re){if(!(this.contextMenuPending||this.composing)){var le=this.cm;if(le.somethingSelected()){this.prevInput="";var ye=le.getSelection();this.textarea.value=ye,le.state.focused&&Qt(this.textarea),Ve&&Te>=9&&(this.hasSelection=ye)}else re||(this.prevInput=this.textarea.value="",Ve&&Te>=9&&(this.hasSelection=null))}},pl.prototype.getField=function(){return this.textarea},pl.prototype.supportsTouch=function(){return!1},pl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||wt()!=this.textarea))try{this.textarea.focus()}catch(re){}},pl.prototype.blur=function(){this.textarea.blur()},pl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},pl.prototype.receivedFocus=function(){this.slowPoll()},pl.prototype.slowPoll=function(){var re=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){re.poll(),re.cm.state.focused&&re.slowPoll()})},pl.prototype.fastPoll=function(){var re=!1,le=this;le.pollingFast=!0;function ye(){var ve=le.poll();!ve&&!re?(re=!0,le.polling.set(60,ye)):(le.pollingFast=!1,le.slowPoll())}le.polling.set(20,ye)},pl.prototype.poll=function(){var re=this,le=this.cm,ye=this.textarea,ve=this.prevInput;if(this.contextMenuPending||!le.state.focused||Me(ye)&&!ve&&!this.composing||le.isReadOnly()||le.options.disableInput||le.state.keySeq)return!1;var xe=ye.value;if(xe==ve&&!le.somethingSelected())return!1;if(Ve&&Te>=9&&this.hasSelection===xe||he&&/[\uf700-\uf7ff]/.test(xe))return le.display.input.reset(),!1;if(le.doc.sel==le.display.selForContextMenu){var Ke=xe.charCodeAt(0);if(Ke==8203&&!ve&&(ve="\u200B"),Ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var dt=0,Ct=Math.min(ve.length,xe.length);dt<Ct&&ve.charCodeAt(dt)==xe.charCodeAt(dt);)++dt;return La(le,function(){Jd(le,xe.slice(dt),ve.length-dt,null,re.composing?"*compose":null),xe.length>1e3||xe.indexOf(`
`)>-1?ye.value=re.prevInput="":re.prevInput=xe,re.composing&&(re.composing.range.clear(),re.composing.range=le.markText(re.composing.start,le.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},pl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},pl.prototype.onKeyPress=function(){Ve&&Te>=9&&(this.hasSelection=null),this.fastPoll()},pl.prototype.onContextMenu=function(re){var le=this,ye=le.cm,ve=ye.display,xe=le.textarea;le.contextMenuPending&&le.contextMenuPending();var Ke=Ts(ye,re),dt=ve.scroller.scrollTop;if(!Ke||Ue)return;var Ct=ye.options.resetSelectionOnContextMenu;Ct&&ye.doc.sel.contains(Ke)==-1&&Us(ye,ge)(ye.doc,Ya(Ke),It);var Et=xe.style.cssText,jt=le.wrapper.style.cssText,Yn=le.wrapper.offsetParent.getBoundingClientRect();le.wrapper.style.cssText="position: static",xe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(re.clientY-Yn.top-5)+"px; left: "+(re.clientX-Yn.left-5)+`px;
z-index: 1000; background: `+(Ve?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var tn;ze&&(tn=window.scrollY),ve.input.focus(),ze&&window.scrollTo(null,tn),ve.input.reset(),ye.somethingSelected()||(xe.value=le.prevInput=" "),le.contextMenuPending=mr,ve.selForContextMenu=ye.doc.sel,clearTimeout(ve.detectingSelectAll);function Cr(){if(xe.selectionStart!=null){var Ci=ye.somethingSelected(),Fi="\u200B"+(Ci?xe.value:"");xe.value="\u21DA",xe.value=Fi,le.prevInput=Ci?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=Fi.length,ve.selForContextMenu=ye.doc.sel}}function mr(){if(le.contextMenuPending==mr&&(le.contextMenuPending=!1,le.wrapper.style.cssText=jt,xe.style.cssText=Et,Ve&&Te<9&&ve.scrollbars.setScrollTop(ve.scroller.scrollTop=dt),xe.selectionStart!=null)){(!Ve||Ve&&Te<9)&&Cr();var Ci=0,Fi=function(){ve.selForContextMenu==ye.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&le.prevInput=="\u200B"?Us(ye,li)(ye):Ci++<10?ve.detectingSelectAll=setTimeout(Fi,500):(ve.selForContextMenu=null,ve.input.reset())};ve.detectingSelectAll=setTimeout(Fi,200)}}if(Ve&&Te>=9&&Cr(),Ae){yr(re);var bi=function(){Yt(window,"mouseup",bi),setTimeout(mr,20)};Mt(window,"mouseup",bi)}else setTimeout(mr,50)},pl.prototype.readOnlyChanged=function(re){re||this.reset(),this.textarea.disabled=re=="nocursor",this.textarea.readOnly=!!re},pl.prototype.setUneditable=function(){},pl.prototype.needsContentAttribute=!1;function ig(re,le){if(le=le?ln(le):{},le.value=re.value,!le.tabindex&&re.tabIndex&&(le.tabindex=re.tabIndex),!le.placeholder&&re.placeholder&&(le.placeholder=re.placeholder),le.autofocus==null){var ye=wt();le.autofocus=ye==re||re.getAttribute("autofocus")!=null&&ye==document.body}function ve(){re.value=Ct.getValue()}var xe;if(re.form&&(Mt(re.form,"submit",ve),!le.leaveSubmitMethodAlone)){var Ke=re.form;xe=Ke.submit;try{var dt=Ke.submit=function(){ve(),Ke.submit=xe,Ke.submit(),Ke.submit=dt}}catch(Et){}}le.finishInit=function(Et){Et.save=ve,Et.getTextArea=function(){return re},Et.toTextArea=function(){Et.toTextArea=isNaN,ve(),re.parentNode.removeChild(Et.getWrapperElement()),re.style.display="",re.form&&(Yt(re.form,"submit",ve),!le.leaveSubmitMethodAlone&&typeof re.form.submit=="function"&&(re.form.submit=xe))}},re.style.display="none";var Ct=Da(function(Et){return re.parentNode.insertBefore(Et,re.nextSibling)},le);return Ct}function kd(re){re.off=Yt,re.on=Mt,re.wheelEventPixels=zo,re.Doc=sl,re.splitLines=oi,re.countColumn=Nt,re.findColumn=_n,re.isWordChar=Xe,re.Pass=sn,re.signal=on,re.Line=gi,re.changeEnd=Xa,re.scrollbarModel=Rl,re.Pos=nn,re.cmpPos=Qn,re.modes=Ii,re.mimeModes=Di,re.resolveMode=Fr,re.getMode=dn,re.modeExtensions=hn,re.extendMode=un,re.copyState=Ur,re.startState=Zr,re.innerMode=Tr,re.commands=Cd,re.keyMap=Uu,re.keyName=ip,re.isModifierKey=fd,re.lookupKey=ec,re.normalizeKeyMap=rp,re.StringStream=sr,re.SharedTextMarker=Rc,re.TextMarker=kn,re.LineWidget=Dc,re.e_preventDefault=tr,re.e_stopPropagation=lr,re.e_stop=yr,re.addClass=At,re.contains=vt,re.rmClass=We,re.keyNames=Yc}tg(Da),Nd(Da);var Jc="iter insert remove copy getEditor constructor".split(" ");for(var eh in sl.prototype)sl.prototype.hasOwnProperty(eh)&&ct(Jc,eh)<0&&(Da.prototype[eh]=function(re){return function(){return re.apply(this.doc,arguments)}}(sl.prototype[eh]));return ht(sl),Da.inputStyles={textarea:pl,contenteditable:Qa},Da.defineMode=function(re){!Da.defaults.mode&&re!="null"&&(Da.defaults.mode=re),Ti.apply(this,arguments)},Da.defineMIME=Vr,Da.defineMode("null",function(){return{token:function(re){return re.skipToEnd()}}}),Da.defineMIME("text/plain","null"),Da.defineExtension=function(re,le){Da.prototype[re]=le},Da.defineDocExtension=function(re,le){sl.prototype[re]=le},Da.fromTextArea=ig,kd(Da),Da.version="5.58.2",Da})},25419:function(Ze,Ee,ae){(function(oe){oe(ae(89780),ae(15525),ae(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(Pe,Ie){var ke=oe.getMode(Pe,"text/html"),Ve=ke.name=="null";function Te(Nt){if(oe.findModeByName){var gt=oe.findModeByName(Nt);gt&&(Nt=gt.mime||gt.mimes[0])}var ct=oe.getMode(Pe,Nt);return ct.name=="null"?null:ct}Ie.highlightFormatting===void 0&&(Ie.highlightFormatting=!1),Ie.maxBlockquoteDepth===void 0&&(Ie.maxBlockquoteDepth=0),Ie.taskLists===void 0&&(Ie.taskLists=!1),Ie.strikethrough===void 0&&(Ie.strikethrough=!1),Ie.emoji===void 0&&(Ie.emoji=!1),Ie.fencedCodeBlockHighlighting===void 0&&(Ie.fencedCodeBlockHighlighting=!0),Ie.fencedCodeBlockDefaultMode===void 0&&(Ie.fencedCodeBlockDefaultMode="text/plain"),Ie.xml===void 0&&(Ie.xml=!0),Ie.tokenTypeOverrides===void 0&&(Ie.tokenTypeOverrides={});var ze={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 st in ze)ze.hasOwnProperty(st)&&Ie.tokenTypeOverrides[st]&&(ze[st]=Ie.tokenTypeOverrides[st]);var Qe=/^([*\-_])(?:\s*\1){2,}\s*$/,Ue=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,St=/^\[(x| )\](?=\s)/i,$e=Ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Fe=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\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]/,ue=" ";function fe(Nt,gt,ct){return gt.f=gt.inline=ct,ct(Nt,gt)}function me(Nt,gt,ct){return gt.f=gt.block=ct,ct(Nt,gt)}function be(Nt){return!Nt||!/\S/.test(Nt.string)}function Ae(Nt){if(Nt.linkTitle=!1,Nt.linkHref=!1,Nt.linkText=!1,Nt.em=!1,Nt.strong=!1,Nt.strikethrough=!1,Nt.quote=0,Nt.indentedCode=!1,Nt.f==We){var gt=Ve;if(!gt){var ct=oe.innerMode(ke,Nt.htmlState);gt=ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText}gt&&(Nt.f=mt,Nt.block=De,Nt.htmlState=null)}return Nt.trailingSpace=0,Nt.trailingSpaceNewLine=!1,Nt.prevLine=Nt.thisLine,Nt.thisLine={stream:null},null}function De(Nt,gt){var ct=Nt.column()===gt.indentation,Jt=be(gt.prevLine.stream),sn=gt.indentedCode,It=gt.prevLine.hr,wn=gt.list!==!1,bn=(gt.listStack[gt.listStack.length-1]||0)+3;gt.indentedCode=!1;var _n=gt.indentation;if(gt.indentationDiff===null&&(gt.indentationDiff=gt.indentation,wn)){for(gt.list=null;_n<gt.listStack[gt.listStack.length-1];)gt.listStack.pop(),gt.listStack.length?gt.indentation=gt.listStack[gt.listStack.length-1]:gt.list=!1;gt.list!==!1&&(gt.indentationDiff=_n-gt.listStack[gt.listStack.length-1])}var Xt=!Jt&&!It&&!gt.prevLine.header&&(!wn||!sn)&&!gt.prevLine.fencedCodeEnd,zn=(gt.list===!1||It||Jt)&&gt.indentation<=bn&&Nt.match(Qe),Ot=null;if(gt.indentationDiff>=4&&(sn||gt.prevLine.fencedCodeEnd||gt.prevLine.header||Jt))return Nt.skipToEnd(),gt.indentedCode=!0,ze.code;if(Nt.eatSpace())return null;if(ct&&gt.indentation<=bn&&(Ot=Nt.match($e))&&Ot[1].length<=6)return gt.quote=0,gt.header=Ot[1].length,gt.thisLine.header=!0,Ie.highlightFormatting&&(gt.formatting="header"),gt.f=gt.inline,qe(gt);if(gt.indentation<=bn&&Nt.eat(">"))return gt.quote=ct?1:gt.quote+1,Ie.highlightFormatting&&(gt.formatting="quote"),Nt.eatSpace(),qe(gt);if(!zn&&!gt.setext&&ct&&gt.indentation<=bn&&(Ot=Nt.match(Ue))){var jn=Ot[1]?"ol":"ul";return gt.indentation=_n+Nt.current().length,gt.list=!0,gt.quote=0,gt.listStack.push(gt.indentation),gt.em=!1,gt.strong=!1,gt.code=!1,gt.strikethrough=!1,Ie.taskLists&&Nt.match(St,!1)&&(gt.taskList=!0),gt.f=gt.inline,Ie.highlightFormatting&&(gt.formatting=["list","list-"+jn]),qe(gt)}else{if(ct&&gt.indentation<=bn&&(Ot=Nt.match(te,!0)))return gt.quote=0,gt.fencedEndRE=new RegExp(Ot[1]+"+ *$"),gt.localMode=Ie.fencedCodeBlockHighlighting&&Te(Ot[2]||Ie.fencedCodeBlockDefaultMode),gt.localMode&&(gt.localState=oe.startState(gt.localMode)),gt.f=gt.block=nt,Ie.highlightFormatting&&(gt.formatting="code-block"),gt.code=-1,qe(gt);if(gt.setext||(!Xt||!wn)&&!gt.quote&&gt.list===!1&&!gt.code&&!zn&&!ee.test(Nt.string)&&(Ot=Nt.lookAhead(1))&&(Ot=Ot.match(Dt)))return gt.setext?(gt.header=gt.setext,gt.setext=0,Nt.skipToEnd(),Ie.highlightFormatting&&(gt.formatting="header")):(gt.header=Ot[0].charAt(0)=="="?1:2,gt.setext=gt.header),gt.thisLine.header=!0,gt.f=gt.inline,qe(gt);if(zn)return Nt.skipToEnd(),gt.hr=!0,gt.thisLine.hr=!0,ze.hr;if(Nt.peek()==="[")return fe(Nt,gt,Ht)}return fe(Nt,gt,gt.inline)}function We(Nt,gt){var ct=ke.token(Nt,gt.htmlState);if(!Ve){var Jt=oe.innerMode(ke,gt.htmlState);(Jt.mode.name=="xml"&&Jt.state.tagStart===null&&!Jt.state.context&&Jt.state.tokenize.isInText||gt.md_inside&&Nt.current().indexOf(">")>-1)&&(gt.f=mt,gt.block=De,gt.htmlState=null)}return ct}function nt(Nt,gt){var ct=gt.listStack[gt.listStack.length-1]||0,Jt=gt.indentation<ct,sn=ct+3;if(gt.fencedEndRE&&gt.indentation<=sn&&(Jt||Nt.match(gt.fencedEndRE))){Ie.highlightFormatting&&(gt.formatting="code-block");var It;return Jt||(It=qe(gt)),gt.localMode=gt.localState=null,gt.block=De,gt.f=mt,gt.fencedEndRE=null,gt.code=0,gt.thisLine.fencedCodeEnd=!0,Jt?me(Nt,gt,gt.block):It}else return gt.localMode?gt.localMode.token(Nt,gt.localState):(Nt.skipToEnd(),ze.code)}function qe(Nt){var gt=[];if(Nt.formatting){gt.push(ze.formatting),typeof Nt.formatting=="string"&&(Nt.formatting=[Nt.formatting]);for(var ct=0;ct<Nt.formatting.length;ct++)gt.push(ze.formatting+"-"+Nt.formatting[ct]),Nt.formatting[ct]==="header"&&gt.push(ze.formatting+"-"+Nt.formatting[ct]+"-"+Nt.header),Nt.formatting[ct]==="quote"&&(!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=Nt.quote?gt.push(ze.formatting+"-"+Nt.formatting[ct]+"-"+Nt.quote):gt.push("error"))}if(Nt.taskOpen)return gt.push("meta"),gt.length?gt.join(" "):null;if(Nt.taskClosed)return gt.push("property"),gt.length?gt.join(" "):null;if(Nt.linkHref?gt.push(ze.linkHref,"url"):(Nt.strong&&gt.push(ze.strong),Nt.em&&gt.push(ze.em),Nt.strikethrough&&gt.push(ze.strikethrough),Nt.emoji&&gt.push(ze.emoji),Nt.linkText&&gt.push(ze.linkText),Nt.code&&gt.push(ze.code),Nt.image&&gt.push(ze.image),Nt.imageAltText&&gt.push(ze.imageAltText,"link"),Nt.imageMarker&&gt.push(ze.imageMarker)),Nt.header&&gt.push(ze.header,ze.header+"-"+Nt.header),Nt.quote&&(gt.push(ze.quote),!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=Nt.quote?gt.push(ze.quote+"-"+Nt.quote):gt.push(ze.quote+"-"+Ie.maxBlockquoteDepth)),Nt.list!==!1){var Jt=(Nt.listStack.length-1)%3;Jt?Jt===1?gt.push(ze.list2):gt.push(ze.list3):gt.push(ze.list1)}return Nt.trailingSpaceNewLine?gt.push("trailing-space-new-line"):Nt.trailingSpace&&gt.push("trailing-space-"+(Nt.trailingSpace%2?"a":"b")),gt.length?gt.join(" "):null}function ot(Nt,gt){if(Nt.match(Fe,!0))return qe(gt)}function mt(Nt,gt){var ct=gt.text(Nt,gt);if(typeof ct!="undefined")return ct;if(gt.list)return gt.list=null,qe(gt);if(gt.taskList){var Jt=Nt.match(St,!0)[1]===" ";return Jt?gt.taskOpen=!0:gt.taskClosed=!0,Ie.highlightFormatting&&(gt.formatting="task"),gt.taskList=!1,qe(gt)}if(gt.taskOpen=!1,gt.taskClosed=!1,gt.header&&Nt.match(/^#+$/,!0))return Ie.highlightFormatting&&(gt.formatting="header"),qe(gt);var sn=Nt.next();if(gt.linkTitle){gt.linkTitle=!1;var It=sn;sn==="("&&(It=")"),It=(It+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var wn="^\\s*(?:[^"+It+"\\\\]+|\\\\\\\\|\\\\.)"+It;if(Nt.match(new RegExp(wn),!0))return ze.linkHref}if(sn==="`"){var bn=gt.formatting;Ie.highlightFormatting&&(gt.formatting="code"),Nt.eatWhile("`");var _n=Nt.current().length;if(gt.code==0&&(!gt.quote||_n==1))return gt.code=_n,qe(gt);if(_n==gt.code){var Xt=qe(gt);return gt.code=0,Xt}else return gt.formatting=bn,qe(gt)}else if(gt.code)return qe(gt);if(sn==="\\"&&(Nt.next(),Ie.highlightFormatting)){var zn=qe(gt),Ot=ze.formatting+"-escape";return zn?zn+" "+Ot:Ot}if(sn==="!"&&Nt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return gt.imageMarker=!0,gt.image=!0,Ie.highlightFormatting&&(gt.formatting="image"),qe(gt);if(sn==="["&&gt.imageMarker&&Nt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return gt.imageMarker=!1,gt.imageAltText=!0,Ie.highlightFormatting&&(gt.formatting="image"),qe(gt);if(sn==="]"&&gt.imageAltText){Ie.highlightFormatting&&(gt.formatting="image");var zn=qe(gt);return gt.imageAltText=!1,gt.image=!1,gt.inline=gt.f=vt,zn}if(sn==="["&&!gt.image)return gt.linkText&&Nt.match(/^.*?\]/)||(gt.linkText=!0,Ie.highlightFormatting&&(gt.formatting="link")),qe(gt);if(sn==="]"&&gt.linkText){Ie.highlightFormatting&&(gt.formatting="link");var zn=qe(gt);return gt.linkText=!1,gt.inline=gt.f=Nt.match(/\(.*?\)| ?\[.*?\]/,!1)?vt:mt,zn}if(sn==="<"&&Nt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){gt.f=gt.inline=at,Ie.highlightFormatting&&(gt.formatting="link");var zn=qe(gt);return zn?zn+=" ":zn="",zn+ze.linkInline}if(sn==="<"&&Nt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){gt.f=gt.inline=at,Ie.highlightFormatting&&(gt.formatting="link");var zn=qe(gt);return zn?zn+=" ":zn="",zn+ze.linkEmail}if(Ie.xml&&sn==="<"&&Nt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var jn=Nt.string.indexOf(">",Nt.pos);if(jn!=-1){var cr=Nt.string.substring(Nt.start,jn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(cr)&&(gt.md_inside=!0)}return Nt.backUp(1),gt.htmlState=oe.startState(ke),me(Nt,gt,We)}if(Ie.xml&&sn==="<"&&Nt.match(/^\/\w*?>/))return gt.md_inside=!1,"tag";if(sn==="*"||sn==="_"){for(var it=1,_e=Nt.pos==1?" ":Nt.string.charAt(Nt.pos-2);it<3&&Nt.eat(sn);)it++;var Re=Nt.peek()||" ",Xe=!/\s/.test(Re)&&(!he.test(Re)||/\s/.test(_e)||he.test(_e)),lt=!/\s/.test(_e)&&(!he.test(_e)||/\s/.test(Re)||he.test(Re)),Be=null,bt=null;if(it%2&&(!gt.em&&Xe&&(sn==="*"||!lt||he.test(_e))?Be=!0:gt.em==sn&&lt&&(sn==="*"||!Xe||he.test(Re))&&(Be=!1)),it>1&&(!gt.strong&&Xe&&(sn==="*"||!lt||he.test(_e))?bt=!0:gt.strong==sn&&lt&&(sn==="*"||!Xe||he.test(Re))&&(bt=!1)),bt!=null||Be!=null){Ie.highlightFormatting&&(gt.formatting=Be==null?"strong":bt==null?"em":"strong em"),Be===!0&&(gt.em=sn),bt===!0&&(gt.strong=sn);var Xt=qe(gt);return Be===!1&&(gt.em=!1),bt===!1&&(gt.strong=!1),Xt}}else if(sn===" "&&(Nt.eat("*")||Nt.eat("_"))){if(Nt.peek()===" ")return qe(gt);Nt.backUp(1)}if(Ie.strikethrough){if(sn==="~"&&Nt.eatWhile(sn)){if(gt.strikethrough){Ie.highlightFormatting&&(gt.formatting="strikethrough");var Xt=qe(gt);return gt.strikethrough=!1,Xt}else if(Nt.match(/^[^\s]/,!1))return gt.strikethrough=!0,Ie.highlightFormatting&&(gt.formatting="strikethrough"),qe(gt)}else if(sn===" "&&Nt.match(/^~~/,!0)){if(Nt.peek()===" ")return qe(gt);Nt.backUp(2)}}if(Ie.emoji&&sn===":"&&Nt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){gt.emoji=!0,Ie.highlightFormatting&&(gt.formatting="emoji");var Wt=qe(gt);return gt.emoji=!1,Wt}return sn===" "&&(Nt.match(/^ +$/,!1)?gt.trailingSpace++:gt.trailingSpace&&(gt.trailingSpaceNewLine=!0)),qe(gt)}function at(Nt,gt){var ct=Nt.next();if(ct===">"){gt.f=gt.inline=mt,Ie.highlightFormatting&&(gt.formatting="link");var Jt=qe(gt);return Jt?Jt+=" ":Jt="",Jt+ze.linkInline}return Nt.match(/^[^>]+/,!0),ze.linkInline}function vt(Nt,gt){if(Nt.eatSpace())return null;var ct=Nt.next();return ct==="("||ct==="["?(gt.f=gt.inline=At(ct==="("?")":"]"),Ie.highlightFormatting&&(gt.formatting="link-string"),gt.linkHref=!0,qe(gt)):"error"}var wt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function At(Nt){return function(gt,ct){var Jt=gt.next();if(Jt===Nt){ct.f=ct.inline=mt,Ie.highlightFormatting&&(ct.formatting="link-string");var sn=qe(ct);return ct.linkHref=!1,sn}return gt.match(wt[Nt]),ct.linkHref=!0,qe(ct)}}function Ht(Nt,gt){return Nt.match(/^([^\]\\]|\\.)*\]:/,!1)?(gt.f=Qt,Nt.next(),Ie.highlightFormatting&&(gt.formatting="link"),gt.linkText=!0,qe(gt)):fe(Nt,gt,mt)}function Qt(Nt,gt){if(Nt.match(/^\]:/,!0)){gt.f=gt.inline=Zt,Ie.highlightFormatting&&(gt.formatting="link");var ct=qe(gt);return gt.linkText=!1,ct}return Nt.match(/^([^\]\\]|\\.)+/,!0),ze.linkText}function Zt(Nt,gt){return Nt.eatSpace()?null:(Nt.match(/^[^\s]+/,!0),Nt.peek()===void 0?gt.linkTitle=!0:Nt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),gt.f=gt.inline=mt,ze.linkHref+" url")}var ln={startState:function(){return{f:De,prevLine:{stream:null},thisLine:{stream:null},block:De,htmlState:null,indentation:0,inline:mt,text:ot,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(Nt){return{f:Nt.f,prevLine:Nt.prevLine,thisLine:Nt.thisLine,block:Nt.block,htmlState:Nt.htmlState&&oe.copyState(ke,Nt.htmlState),indentation:Nt.indentation,localMode:Nt.localMode,localState:Nt.localMode?oe.copyState(Nt.localMode,Nt.localState):null,inline:Nt.inline,text:Nt.text,formatting:!1,linkText:Nt.linkText,linkTitle:Nt.linkTitle,linkHref:Nt.linkHref,code:Nt.code,em:Nt.em,strong:Nt.strong,strikethrough:Nt.strikethrough,emoji:Nt.emoji,header:Nt.header,setext:Nt.setext,hr:Nt.hr,taskList:Nt.taskList,list:Nt.list,listStack:Nt.listStack.slice(0),quote:Nt.quote,indentedCode:Nt.indentedCode,trailingSpace:Nt.trailingSpace,trailingSpaceNewLine:Nt.trailingSpaceNewLine,md_inside:Nt.md_inside,fencedEndRE:Nt.fencedEndRE}},token:function(Nt,gt){if(gt.formatting=!1,Nt!=gt.thisLine.stream){if(gt.header=0,gt.hr=!1,Nt.match(/^\s*$/,!0))return Ae(gt),null;if(gt.prevLine=gt.thisLine,gt.thisLine={stream:Nt},gt.taskList=!1,gt.trailingSpace=0,gt.trailingSpaceNewLine=!1,!gt.localState&&(gt.f=gt.block,gt.f!=We)){var ct=Nt.match(/^\s*/,!0)[0].replace(/\t/g,ue).length;if(gt.indentation=ct,gt.indentationDiff=null,ct>0)return null}}return gt.f(Nt,gt)},innerMode:function(Nt){return Nt.block==We?{state:Nt.htmlState,mode:ke}:Nt.localState?{state:Nt.localState,mode:Nt.localMode}:{state:Nt,mode:ln}},indent:function(Nt,gt,ct){return Nt.block==We&&ke.indent?ke.indent(Nt.htmlState,gt,ct):Nt.localState&&Nt.localMode.indent?Nt.localMode.indent(Nt.localState,gt,ct):oe.Pass},blankLine:Ae,getType:qe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ln},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(Ze,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.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 Pe=0;Pe<oe.modeInfo.length;Pe++){var Ie=oe.modeInfo[Pe];Ie.mimes&&(Ie.mime=Ie.mimes[0])}oe.findModeByMIME=function(ke){ke=ke.toLowerCase();for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.mime==ke)return Te;if(Te.mimes){for(var ze=0;ze<Te.mimes.length;ze++)if(Te.mimes[ze]==ke)return Te}}if(/\+xml$/.test(ke))return oe.findModeByMIME("application/xml");if(/\+json$/.test(ke))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(ke){ke=ke.toLowerCase();for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.ext){for(var ze=0;ze<Te.ext.length;ze++)if(Te.ext[ze]==ke)return Te}}},oe.findModeByFileName=function(ke){for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.file&&Te.file.test(ke))return Te}var ze=ke.lastIndexOf("."),st=ze>-1&&ke.substring(ze+1,ke.length);if(st)return oe.findModeByExtension(st)},oe.findModeByName=function(ke){ke=ke.toLowerCase();for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.name.toLowerCase()==ke)return Te;if(Te.alias){for(var ze=0;ze<Te.alias.length;ze++)if(Te.alias[ze].toLowerCase()==ke)return Te}}}})},67549:function(Ze,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.defineMode("stex",function(Pe,Ie){"use strict";function ke(Fe,te){Fe.cmdState.push(te)}function Ve(Fe){return Fe.cmdState.length>0?Fe.cmdState[Fe.cmdState.length-1]:null}function Te(Fe){var te=Fe.cmdState.pop();te&&te.closeBracket()}function ze(Fe){for(var te=Fe.cmdState,ee=te.length-1;ee>=0;ee--){var he=te[ee];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function st(Fe,te,ee){return function(){this.name=Fe,this.bracketNo=0,this.style=te,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Qe={};Qe.importmodule=st("importmodule","tag",["string","builtin"]),Qe.documentclass=st("documentclass","tag",["","atom"]),Qe.usepackage=st("usepackage","tag",["atom"]),Qe.begin=st("begin","tag",["atom"]),Qe.end=st("end","tag",["atom"]),Qe.label=st("label","tag",["atom"]),Qe.ref=st("ref","tag",["atom"]),Qe.eqref=st("eqref","tag",["atom"]),Qe.cite=st("cite","tag",["atom"]),Qe.bibitem=st("bibitem","tag",["atom"]),Qe.Bibitem=st("Bibitem","tag",["atom"]),Qe.RBibitem=st("RBibitem","tag",["atom"]),Qe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ue(Fe,te){Fe.f=te}function St(Fe,te){var ee;if(Fe.match(/^\\[a-zA-Z@]+/)){var he=Fe.current().slice(1);return ee=Qe.hasOwnProperty(he)?Qe[he]:Qe.DEFAULT,ee=new ee,ke(te,ee),Ue(te,Dt),ee.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return Ue(te,function(fe,me){return $e(fe,me,"\\]")}),"keyword";if(Fe.match("\\("))return Ue(te,function(fe,me){return $e(fe,me,"\\)")}),"keyword";if(Fe.match("$$"))return Ue(te,function(fe,me){return $e(fe,me,"$$")}),"keyword";if(Fe.match("$"))return Ue(te,function(fe,me){return $e(fe,me,"$")}),"keyword";var ue=Fe.next();if(ue=="%")return Fe.skipToEnd(),"comment";if(ue=="}"||ue=="]"){if(ee=Ve(te),ee)ee.closeBracket(ue),Ue(te,Dt);else return"error";return"bracket"}else return ue=="{"||ue=="["?(ee=Qe.DEFAULT,ee=new ee,ke(te,ee),"bracket"):/\d/.test(ue)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),ee=ze(te),ee.name=="begin"&&(ee.argument=Fe.current()),ee.styleIdentifier())}function $e(Fe,te,ee){if(Fe.eatSpace())return null;if(ee&&Fe.match(ee))return Ue(te,St),"keyword";if(Fe.match(/^\\[a-zA-Z@]+/))return"tag";if(Fe.match(/^[a-zA-Z]+/))return"variable-2";if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/]/)||Fe.match(/^[\^_&]/))return"tag";if(Fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Fe.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Fe.skipToEnd(),"comment"):"error"}function Dt(Fe,te){var ee=Fe.peek(),he;return ee=="{"||ee=="["?(he=Ve(te),he.openBracket(ee),Fe.eat(ee),Ue(te,St),"bracket"):/[ \t\r]/.test(ee)?(Fe.eat(ee),null):(Ue(te,St),Te(te),St(Fe,te))}return{startState:function(){var Fe=Ie.inMathMode?function(te,ee){return $e(te,ee)}:St;return{cmdState:[],f:Fe}},copyState:function(Fe){return{cmdState:Fe.cmdState.slice(),f:Fe.f}},token:function(Fe,te){return te.f(Fe,te)},blankLine:function(Fe){Fe.f=St,Fe.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(Ze,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Pe={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},Ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(ke,Ve){var Te=ke.indentUnit,ze={},st=Ve.htmlMode?Pe:Ie;for(var Qe in st)ze[Qe]=st[Qe];for(var Qe in Ve)ze[Qe]=Ve[Qe];var Ue,St;function $e(at,vt){function wt(Qt){return vt.tokenize=Qt,Qt(at,vt)}var At=at.next();if(At=="<")return at.eat("!")?at.eat("[")?at.match("CDATA[")?wt(te("atom","]]>")):null:at.match("--")?wt(te("comment","-->")):at.match("DOCTYPE",!0,!0)?(at.eatWhile(/[\w\._\-]/),wt(ee(1))):null:at.eat("?")?(at.eatWhile(/[\w\._\-]/),vt.tokenize=te("meta","?>"),"meta"):(Ue=at.eat("/")?"closeTag":"openTag",vt.tokenize=Dt,"tag bracket");if(At=="&"){var Ht;return at.eat("#")?at.eat("x")?Ht=at.eatWhile(/[a-fA-F\d]/)&&at.eat(";"):Ht=at.eatWhile(/[\d]/)&&at.eat(";"):Ht=at.eatWhile(/[\w\.\-:]/)&&at.eat(";"),Ht?"atom":"error"}else return at.eatWhile(/[^&<]/),null}$e.isInText=!0;function Dt(at,vt){var wt=at.next();if(wt==">"||wt=="/"&&at.eat(">"))return vt.tokenize=$e,Ue=wt==">"?"endTag":"selfcloseTag","tag bracket";if(wt=="=")return Ue="equals",null;if(wt=="<"){vt.tokenize=$e,vt.state=me,vt.tagName=vt.tagStart=null;var At=vt.tokenize(at,vt);return At?At+" tag error":"tag error"}else return/[\'\"]/.test(wt)?(vt.tokenize=Fe(wt),vt.stringStartCol=at.column(),vt.tokenize(at,vt)):(at.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(at){var vt=function(wt,At){for(;!wt.eol();)if(wt.next()==at){At.tokenize=Dt;break}return"string"};return vt.isInAttribute=!0,vt}function te(at,vt){return function(wt,At){for(;!wt.eol();){if(wt.match(vt)){At.tokenize=$e;break}wt.next()}return at}}function ee(at){return function(vt,wt){for(var At;(At=vt.next())!=null;){if(At=="<")return wt.tokenize=ee(at+1),wt.tokenize(vt,wt);if(At==">")if(at==1){wt.tokenize=$e;break}else return wt.tokenize=ee(at-1),wt.tokenize(vt,wt)}return"meta"}}function he(at,vt,wt){this.prev=at.context,this.tagName=vt,this.indent=at.indented,this.startOfLine=wt,(ze.doNotIndent.hasOwnProperty(vt)||at.context&&at.context.noIndent)&&(this.noIndent=!0)}function ue(at){at.context&&(at.context=at.context.prev)}function fe(at,vt){for(var wt;;){if(!at.context||(wt=at.context.tagName,!ze.contextGrabbers.hasOwnProperty(wt)||!ze.contextGrabbers[wt].hasOwnProperty(vt)))return;ue(at)}}function me(at,vt,wt){return at=="openTag"?(wt.tagStart=vt.column(),be):at=="closeTag"?Ae:me}function be(at,vt,wt){return at=="word"?(wt.tagName=vt.current(),St="tag",nt):ze.allowMissingTagName&&at=="endTag"?(St="tag bracket",nt(at,vt,wt)):(St="error",be)}function Ae(at,vt,wt){if(at=="word"){var At=vt.current();return wt.context&&wt.context.tagName!=At&&ze.implicitlyClosed.hasOwnProperty(wt.context.tagName)&&ue(wt),wt.context&&wt.context.tagName==At||ze.matchClosing===!1?(St="tag",De):(St="tag error",We)}else return ze.allowMissingTagName&&at=="endTag"?(St="tag bracket",De(at,vt,wt)):(St="error",We)}function De(at,vt,wt){return at!="endTag"?(St="error",De):(ue(wt),me)}function We(at,vt,wt){return St="error",De(at,vt,wt)}function nt(at,vt,wt){if(at=="word")return St="attribute",qe;if(at=="endTag"||at=="selfcloseTag"){var At=wt.tagName,Ht=wt.tagStart;return wt.tagName=wt.tagStart=null,at=="selfcloseTag"||ze.autoSelfClosers.hasOwnProperty(At)?fe(wt,At):(fe(wt,At),wt.context=new he(wt,At,Ht==wt.indented)),me}return St="error",nt}function qe(at,vt,wt){return at=="equals"?ot:(ze.allowMissing||(St="error"),nt(at,vt,wt))}function ot(at,vt,wt){return at=="string"?mt:at=="word"&&ze.allowUnquoted?(St="string",nt):(St="error",nt(at,vt,wt))}function mt(at,vt,wt){return at=="string"?mt:nt(at,vt,wt)}return{startState:function(at){var vt={tokenize:$e,state:me,indented:at||0,tagName:null,tagStart:null,context:null};return at!=null&&(vt.baseIndent=at),vt},token:function(at,vt){if(!vt.tagName&&at.sol()&&(vt.indented=at.indentation()),at.eatSpace())return null;Ue=null;var wt=vt.tokenize(at,vt);return(wt||Ue)&&wt!="comment"&&(St=null,vt.state=vt.state(Ue||wt,at,vt),St&&(wt=St=="error"?wt+" error":St)),wt},indent:function(at,vt,wt){var At=at.context;if(at.tokenize.isInAttribute)return at.tagStart==at.indented?at.stringStartCol+1:at.indented+Te;if(At&&At.noIndent)return oe.Pass;if(at.tokenize!=Dt&&at.tokenize!=$e)return wt?wt.match(/^(\s*)/)[0].length:0;if(at.tagName)return ze.multilineTagIndentPastTag!==!1?at.tagStart+at.tagName.length+2:at.tagStart+Te*(ze.multilineTagIndentFactor||1);if(ze.alignCDATA&&/<!\[CDATA\[/.test(vt))return 0;var Ht=vt&&/^<(\/)?([\w_:\.-]*)/.exec(vt);if(Ht&&Ht[1])for(;At;)if(At.tagName==Ht[2]){At=At.prev;break}else if(ze.implicitlyClosed.hasOwnProperty(At.tagName))At=At.prev;else break;else if(Ht)for(;At;){var Qt=ze.contextGrabbers[At.tagName];if(Qt&&Qt.hasOwnProperty(Ht[2]))At=At.prev;else break}for(;At&&At.prev&&!At.startOfLine;)At=At.prev;return At?At.indent+Te:at.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ze.htmlMode?"html":"xml",helperType:ze.htmlMode?"html":"xml",skipAttribute:function(at){at.state==ot&&(at.state=nt)},xmlCurrentTag:function(at){return at.tagName?{name:at.tagName,close:at.type=="closeTag"}:null},xmlCurrentContext:function(at){for(var vt=[],wt=at.context;wt;wt=wt.prev)wt.tagName&&vt.push(wt.tagName);return vt.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Ze,Ee){"use strict";var ae;Ee.Q=ke,ae=Ve;var oe=",",Pe=" ",Ie="";function ke(Te){for(var ze=[],st=String(Te||Ie),Qe=st.indexOf(oe),Ue=0,St=!1,$e;!St;)Qe===-1&&(Qe=st.length,St=!0),$e=st.slice(Ue,Qe).trim(),($e||!St)&&ze.push($e),Ue=Qe+1,Qe=st.indexOf(oe,Ue);return ze}function Ve(Te,ze){var st=ze||{},Qe=st.padLeft===!1?Ie:Pe,Ue=st.padRight?Pe:Ie;return Te[Te.length-1]===Ie&&(Te=Te.concat(Ie)),Te.join(Ue+oe+Qe).trim()}},86204:function(Ze){"use strict";var Ee=typeof Reflect=="object"?Reflect:null,ae=Ee&&typeof Ee.apply=="function"?Ee.apply:function(me,be,Ae){return Function.prototype.apply.call(me,be,Ae)},oe;Ee&&typeof Ee.ownKeys=="function"?oe=Ee.ownKeys:Object.getOwnPropertySymbols?oe=function(me){return Object.getOwnPropertyNames(me).concat(Object.getOwnPropertySymbols(me))}:oe=function(me){return Object.getOwnPropertyNames(me)};function Pe(fe){console&&console.warn&&console.warn(fe)}var Ie=Number.isNaN||function(me){return me!==me};function ke(){ke.init.call(this)}Ze.exports=ke,Ze.exports.once=ee,ke.EventEmitter=ke,ke.prototype._events=void 0,ke.prototype._eventsCount=0,ke.prototype._maxListeners=void 0;var Ve=10;function Te(fe){if(typeof fe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof fe)}Object.defineProperty(ke,"defaultMaxListeners",{enumerable:!0,get:function(){return Ve},set:function(fe){if(typeof fe!="number"||fe<0||Ie(fe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+fe+".");Ve=fe}}),ke.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},ke.prototype.setMaxListeners=function(me){if(typeof me!="number"||me<0||Ie(me))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+me+".");return this._maxListeners=me,this};function ze(fe){return fe._maxListeners===void 0?ke.defaultMaxListeners:fe._maxListeners}ke.prototype.getMaxListeners=function(){return ze(this)},ke.prototype.emit=function(me){for(var be=[],Ae=1;Ae<arguments.length;Ae++)be.push(arguments[Ae]);var De=me==="error",We=this._events;if(We!==void 0)De=De&&We.error===void 0;else if(!De)return!1;if(De){var nt;if(be.length>0&&(nt=be[0]),nt instanceof Error)throw nt;var qe=new Error("Unhandled error."+(nt?" ("+nt.message+")":""));throw qe.context=nt,qe}var ot=We[me];if(ot===void 0)return!1;if(typeof ot=="function")ae(ot,this,be);else for(var mt=ot.length,at=Dt(ot,mt),Ae=0;Ae<mt;++Ae)ae(at[Ae],this,be);return!0};function st(fe,me,be,Ae){var De,We,nt;if(Te(be),We=fe._events,We===void 0?(We=fe._events=Object.create(null),fe._eventsCount=0):(We.newListener!==void 0&&(fe.emit("newListener",me,be.listener?be.listener:be),We=fe._events),nt=We[me]),nt===void 0)nt=We[me]=be,++fe._eventsCount;else if(typeof nt=="function"?nt=We[me]=Ae?[be,nt]:[nt,be]:Ae?nt.unshift(be):nt.push(be),De=ze(fe),De>0&&nt.length>De&&!nt.warned){nt.warned=!0;var qe=new Error("Possible EventEmitter memory leak detected. "+nt.length+" "+String(me)+" listeners added. Use emitter.setMaxListeners() to increase limit");qe.name="MaxListenersExceededWarning",qe.emitter=fe,qe.type=me,qe.count=nt.length,Pe(qe)}return fe}ke.prototype.addListener=function(me,be){return st(this,me,be,!1)},ke.prototype.on=ke.prototype.addListener,ke.prototype.prependListener=function(me,be){return st(this,me,be,!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 Ue(fe,me,be){var Ae={fired:!1,wrapFn:void 0,target:fe,type:me,listener:be},De=Qe.bind(Ae);return De.listener=be,Ae.wrapFn=De,De}ke.prototype.once=function(me,be){return Te(be),this.on(me,Ue(this,me,be)),this},ke.prototype.prependOnceListener=function(me,be){return Te(be),this.prependListener(me,Ue(this,me,be)),this},ke.prototype.removeListener=function(me,be){var Ae,De,We,nt,qe;if(Te(be),De=this._events,De===void 0)return this;if(Ae=De[me],Ae===void 0)return this;if(Ae===be||Ae.listener===be)--this._eventsCount===0?this._events=Object.create(null):(delete De[me],De.removeListener&&this.emit("removeListener",me,Ae.listener||be));else if(typeof Ae!="function"){for(We=-1,nt=Ae.length-1;nt>=0;nt--)if(Ae[nt]===be||Ae[nt].listener===be){qe=Ae[nt].listener,We=nt;break}if(We<0)return this;We===0?Ae.shift():Fe(Ae,We),Ae.length===1&&(De[me]=Ae[0]),De.removeListener!==void 0&&this.emit("removeListener",me,qe||be)}return this},ke.prototype.off=ke.prototype.removeListener,ke.prototype.removeAllListeners=function(me){var be,Ae,De;if(Ae=this._events,Ae===void 0)return this;if(Ae.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ae[me]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ae[me]),this;if(arguments.length===0){var We=Object.keys(Ae),nt;for(De=0;De<We.length;++De)nt=We[De],nt!=="removeListener"&&this.removeAllListeners(nt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(be=Ae[me],typeof be=="function")this.removeListener(me,be);else if(be!==void 0)for(De=be.length-1;De>=0;De--)this.removeListener(me,be[De]);return this};function St(fe,me,be){var Ae=fe._events;if(Ae===void 0)return[];var De=Ae[me];return De===void 0?[]:typeof De=="function"?be?[De.listener||De]:[De]:be?te(De):Dt(De,De.length)}ke.prototype.listeners=function(me){return St(this,me,!0)},ke.prototype.rawListeners=function(me){return St(this,me,!1)},ke.listenerCount=function(fe,me){return typeof fe.listenerCount=="function"?fe.listenerCount(me):$e.call(fe,me)},ke.prototype.listenerCount=$e;function $e(fe){var me=this._events;if(me!==void 0){var be=me[fe];if(typeof be=="function")return 1;if(be!==void 0)return be.length}return 0}ke.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function Dt(fe,me){for(var be=new Array(me),Ae=0;Ae<me;++Ae)be[Ae]=fe[Ae];return be}function Fe(fe,me){for(;me+1<fe.length;me++)fe[me]=fe[me+1];fe.pop()}function te(fe){for(var me=new Array(fe.length),be=0;be<me.length;++be)me[be]=fe[be].listener||fe[be];return me}function ee(fe,me){return new Promise(function(be,Ae){function De(nt){fe.removeListener(me,We),Ae(nt)}function We(){typeof fe.removeListener=="function"&&fe.removeListener("error",De),be([].slice.call(arguments))}ue(fe,me,We,{once:!0}),me!=="error"&&he(fe,De,{once:!0})})}function he(fe,me,be){typeof fe.on=="function"&&ue(fe,"error",me,be)}function ue(fe,me,be,Ae){if(typeof fe.on=="function")Ae.once?fe.once(me,be):fe.on(me,be);else if(typeof fe.addEventListener=="function")fe.addEventListener(me,function De(We){Ae.once&&fe.removeEventListener(me,De),be(We)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof fe)}},58847:function(Ze){"use strict";var Ee=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,oe=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Ie=function(st){return typeof Array.isArray=="function"?Array.isArray(st):ae.call(st)==="[object Array]"},ke=function(st){if(!st||ae.call(st)!=="[object Object]")return!1;var Qe=Ee.call(st,"constructor"),Ue=st.constructor&&st.constructor.prototype&&Ee.call(st.constructor.prototype,"isPrototypeOf");if(st.constructor&&!Qe&&!Ue)return!1;var St;for(St in st);return typeof St=="undefined"||Ee.call(st,St)},Ve=function(st,Qe){oe&&Qe.name==="__proto__"?oe(st,Qe.name,{enumerable:!0,configurable:!0,value:Qe.newValue,writable:!0}):st[Qe.name]=Qe.newValue},Te=function(st,Qe){if(Qe==="__proto__")if(Ee.call(st,Qe)){if(Pe)return Pe(st,Qe).value}else return;return st[Qe]};Ze.exports=function ze(){var st,Qe,Ue,St,$e,Dt,Fe=arguments[0],te=1,ee=arguments.length,he=!1;for(typeof Fe=="boolean"&&(he=Fe,Fe=arguments[1]||{},te=2),(Fe==null||typeof Fe!="object"&&typeof Fe!="function")&&(Fe={});te<ee;++te)if(st=arguments[te],st!=null)for(Qe in st)Ue=Te(Fe,Qe),St=Te(st,Qe),Fe!==St&&(he&&St&&(ke(St)||($e=Ie(St)))?($e?($e=!1,Dt=Ue&&Ie(Ue)?Ue:[]):Dt=Ue&&ke(Ue)?Ue:{},Ve(Fe,{name:Qe,newValue:ze(he,Dt,St)})):typeof St!="undefined"&&Ve(Fe,{name:Qe,newValue:St}));return Fe}},12378:function(Ze,Ee,ae){"use strict";ae.d(Ee,{$u:function(){return Qe},BD:function(){return it},E9:function(){return st},FF:function(){return ui},FJ:function(){return me},Hn:function(){return fe},KX:function(){return Ae},NB:function(){return Pt},S0:function(){return Ot},UL:function(){return Ue},Vk:function(){return ue},Vm:function(){return zt},YI:function(){return jn},ZA:function(){return Ie},Zt:function(){return St},al:function(){return Be},bn:function(){return lt},bx:function(){return _e},g2:function(){return cr},h1:function(){return ot},hD:function(){return ht},l4:function(){return Te},rU:function(){return Vt},s_:function(){return Re},uz:function(){return On},z6:function(){return $e}}),Ze=ae.hmd(Ze),function(){var Me;function kr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Pr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:kr(a)}}function ei(a){for(var y,b=[];!(y=a.next()).done;)b.push(y.value);return b}var Ii=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Di;if(typeof Object.setPrototypeOf=="function")Di=Object.setPrototypeOf;else{var Ti;e:{var Vr={a:!0},Fr={};try{Fr.__proto__=Vr,Ti=Fr.a;break e}catch(a){}Ti=!1}Di=Ti?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var dn=Di;function hn(a,y){if(a.prototype=Ii(y.prototype),a.prototype.constructor=a,dn)dn(a,y);else for(var b in y)if(b!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,b);E&&Object.defineProperty(a,b,E)}else a[b]=y[b];a.QA=y.prototype}var un=typeof ae.g!="undefined"&&ae.g!=null?ae.g:self,Ur=typeof Object.assign=="function"?Object.assign:function(a,y){for(var b=1;b<arguments.length;b++){var E=arguments[b];if(E)for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(a[x]=E[x])}return a},Tr=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,b){a!=Array.prototype&&a!=Object.prototype&&(a[y]=b.value)};function Zr(a,y){if(y){var b=un;a=a.split(".");for(var E=0;E<a.length-1;E++){var x=a[E];x in b||(b[x]={}),b=b[x]}a=a[a.length-1],E=b[a],y=y(E),y!=E&&y!=null&&Tr(b,a,{writable:!0,value:y})}}Zr("Object.assign",function(a){return a||Ur}),Zr("Array.prototype.fill",function(a){return a||function(y,b,E){var x=this.length||0;for(0>b&&(b=Math.max(0,x+b)),(E==null||E>x)&&(E=x),E=Number(E),0>E&&(E=Math.max(0,x+E)),b=Number(b||0);b<E;b++)this[b]=y;return this}});var sr=typeof globalThis=="object"&&globalThis||typeof ae.g=="object"&&ae.g.global===ae.g&&ae.g||typeof self=="object"&&self.self===self&&self||{};sr.requestAnimationFrame===void 0&&(sr.setImmediate===void 0?sr.requestAnimationFrame=function(a){sr.setTimeout(a,0)}:sr.requestAnimationFrame=sr.setImmediate);function Rr(){}function Cn(a,y){var b=-1;return function(){var E=this,x=arguments;b!==-1&&sr.clearTimeout(b),b=fn(function(){b=-1,a.apply(E,x)},y)}}function fn(a,y){return sr.setTimeout(a,y)}function Wr(a){return sr.document.createElement(a)}function kt(a){throw Error(a)}function Gn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),kt(a)}function vr(a,y,b,E){b=b===null?"*":typeof b=="string"?b:typeof b=="function"&&typeof b.className=="string"?b.className:"",E!==void 0&&(b+="."+E),kt(b+" is not in the range "+y+": "+a)}function Qr(a){sr.console&&sr.console.log(a)}function nn(a){return typeof a=="object"&&a!==null}function Qn(a){return Array.isArray(a)||sr.NodeList&&a instanceof sr.NodeList||sr.HTMLCollection&&a instanceof sr.HTMLCollection}function Dn(a){return Array.prototype.slice.call(a)}function xn(a,y,b){Array.isArray(a)?y>=a.length?a.push(b):a.splice(y,0,b):kt("Cannot insert an object into an HTMLCollection or NodeList: "+b+" at "+y)}function Ge(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):kt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Jr(){var a=zi.pop();return a===void 0?[]:a}function Hr(a){a.length=0,zi.push(a)}function Jn(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(nn(a)&&a.constructor)return Jn(a.constructor);return typeof a}function hi(a){var y=a;return nn(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 ti(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var b=a.CA;if(b&&b[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Si(a,y,b){Object.defineProperty(ta.prototype,a,{get:y,set:b})}function nr(a){for(var y=[],b=0;256>b;b++)y["0123456789abcdef".charAt(b>>4)+"0123456789abcdef".charAt(b&15)]=String.fromCharCode(b);a.length%2&&(a="0"+a),b=[];for(var E=0,x=0;x<a.length;x+=2)b[E++]=y[a.substr(x,2)];for(a=b.join(""),a=a===""?"0":a,y=[],b=0;256>b;b++)y[b]=b;for(b=E=0;256>b;b++)E=(E+y[b]+119)%256,x=y[b],y[b]=y[E],y[E]=x;E=b=0;for(var z="",ne=0;ne<a.length;ne++)b=(b+1)%256,E=(E+y[b])%256,x=y[b],y[b]=y[E],y[E]=x,z+=String.fromCharCode(a.charCodeAt(ne)^y[(y[b]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var vn=sr.navigator!==void 0&&0<sr.navigator.userAgent.indexOf("Trident/7"),xi=sr.navigator!==void 0&&sr.navigator.platform!==void 0&&sr.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,zi=[];Object.freeze([]),Rr.className="Util",Rr.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Rr.adym="gojs.net",Rr.vfo="28e645fdb266",Rr.className="Util";function Ln(a,y,b){vi(this),this.j=a,this.xa=y,this.o=b}Ln.prototype.toString=function(){return"EnumValue."+this.xa};function Xr(a,y){return y==null||y===""?null:a[y]}un.Object.defineProperties(Ln.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Ln.className="EnumValue";function fi(){this.ew=[]}fi.prototype.toString=function(){return this.ew.join("")},fi.prototype.add=function(a){a!==""&&this.ew.push(a)},fi.className="StringBuilder";function wi(){}wi.className="PropertyCollection";var ai={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){sr.console&&sr.console.log(a)},HA:function(a,y,b,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(b,b),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},b;for(b in a){if(y.x=b,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var x={Tj:0};x.Tj<y.Zl.length;x={Tj:x.Tj},x.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[x.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[x.Tj],{set:function(ne,ie){return function(){throw Error("Property "+ne.Zl[ie.Tj]+" of "+ne.x+" is read-only.")}}(y,x)})}}}y={Zl:y.Zl,x:y.x}}}};function Ni(){}Ni.prototype.reset=function(){},Ni.prototype.next=function(){return!1},Ni.prototype.Ad=function(){return!1},Ni.prototype.first=function(){return null},Ni.prototype.any=function(){return!1},Ni.prototype.all=function(){return!0},Ni.prototype.each=function(){return this},Ni.prototype.map=function(){return this},Ni.prototype.filter=function(){return this},Ni.prototype.de=function(){},Ni.prototype.toString=function(){return"EmptyIterator"},un.Object.defineProperties(Ni.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Ni.prototype.first=Ni.prototype.first,Ni.prototype.hasNext=Ni.prototype.Ad,Ni.prototype.next=Ni.prototype.next,Ni.prototype.reset=Ni.prototype.reset;var Xi=null;Ni.className="EmptyIterator",Xi=new Ni;function Vi(a){this.key=-1,this.value=a}Vi.prototype.reset=function(){this.key=-1},Vi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Vi.prototype.Ad=function(){return this.next()},Vi.prototype.first=function(){return this.key=0,this.value},Vi.prototype.any=function(a){return this.key=-1,a(this.value)},Vi.prototype.all=function(a){return this.key=-1,a(this.value)},Vi.prototype.each=function(a){return this.key=-1,a(this.value),this},Vi.prototype.map=function(a){return new Vi(a(this.value))},Vi.prototype.filter=function(a){return a(this.value)?new Vi(this.value):Xi},Vi.prototype.de=function(){this.value=null},Vi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},un.Object.defineProperties(Vi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Vi.prototype.first=Vi.prototype.first,Vi.prototype.hasNext=Vi.prototype.Ad,Vi.prototype.next=Vi.prototype.next,Vi.prototype.reset=Vi.prototype.reset,Vi.className="SingletonIterator";function Bi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Bi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Bi.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,b=++this.Za,E=this.qf;if(E!==null)for(;b<y;){var x=a[b];if(E(x))return this.key=this.Za=b,this.value=x,!0;b++}else{if(b<y)return this.key=b,this.value=a[b],!0;this.de()}return!1},Bi.prototype.Ad=function(){return this.next()},Bi.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,b=this.qf;if(b!==null){for(var E=0;E<y;){var x=a[E];if(b(x))return this.key=this.Za=E,this.value=x;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Bi.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var b=y.length,E=this.qf,x=0;x<b;x++){var z=y[x];if((E===null||E(z))&&a(z))return!0}return!1},Bi.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var b=y.length,E=this.qf,x=0;x<b;x++){var z=y[x];if((E===null||E(z))&&!a(z))return!1}return!0},Bi.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var b=y.length,E=this.qf,x=0;x<b;x++){var z=y[x];(E===null||E(z))&&a(z)}return this},Bi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var b=[];y=y.s;for(var E=y.length,x=this.qf,z=0;z<E;z++){var ne=y[z];(x===null||x(ne))&&b.push(a(ne))}return a=new rr,a.s=b,a.xb(),a.iterator},Bi.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var b=[];y=y.s;for(var E=y.length,x=this.qf,z=0;z<E;z++){var ne=y[z];(x===null||x(ne))&&a(ne)&&b.push(ne)}return a=new rr,a.s=b,a.xb(),a.iterator},Bi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Bi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},un.Object.defineProperties(Bi.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,b=this.Bb.s,E=b.length,x=0;x<E;x++)a(b[x])&&y++;return y}return this.Bb.s.length}}}),Bi.prototype.first=Bi.prototype.first,Bi.prototype.hasNext=Bi.prototype.Ad,Bi.prototype.next=Bi.prototype.next,Bi.prototype.reset=Bi.prototype.reset,Bi.className="ListIterator";function Hi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Hi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Hi.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)},Hi.prototype.Ad=function(){return this.next()},Hi.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},Hi.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)if(a(y[b]))return!0;return!1},Hi.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)if(!a(y[b]))return!1;return!0},Hi.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)a(y[b]);return this},Hi.prototype.map=function(a){var y=this.Bb;y.Hg=null;var b=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)b.push(a(y[E]));return a=new rr,a.s=b,a.xb(),a.iterator},Hi.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var b=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var x=y[E];a(x)&&b.push(x)}return a=new rr,a.s=b,a.xb(),a.iterator},Hi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Hi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},un.Object.defineProperties(Hi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Hi.prototype.first=Hi.prototype.first,Hi.prototype.hasNext=Hi.prototype.Ad,Hi.prototype.next=Hi.prototype.next,Hi.prototype.reset=Hi.prototype.reset,Hi.className="ListIteratorBackwards";function rr(a){vi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&kt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=rr.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"List()#"+Mi(this)},Me.add=function(a){return a===null?this:(this._isFrozen&&Gn(this,a),this.s.push(a),this.xb(),this)},Me.push=function(a){this.add(a)},Me.addAll=function(a){if(a===null)return this;this._isFrozen&&Gn(this);var y=this.s;if(Qn(a))for(var b=a.length,E=0;E<b;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Me.clear=function(){this._isFrozen&&Gn(this),this.s.length=0,this.xb()},Me.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Me.has=function(a){return this.contains(a)},Me.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Me.M=function(a){var y=this.s;return(0>a||a>=y.length)&&vr(a,"0 <= i < length",rr,"elt:i"),y[a]},Me.get=function(a){return this.M(a)},Me.cd=function(a,y){var b=this.s;(0>a||a>=b.length)&&vr(a,"0 <= i < length",rr,"setElt:i"),this._isFrozen&&Gn(this,a),b[a]=y},Me.set=function(a,y){this.cd(a,y)},Me.first=function(){var a=this.s;return a.length===0?null:a[0]},Me.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Me.pop=function(){this._isFrozen&&Gn(this);var a=this.s;return 0<a.length?a.pop():null},rr.prototype.any=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)if(a(y[E]))return!0;return!1},rr.prototype.all=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)if(!a(y[E]))return!1;return!0},rr.prototype.each=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)a(y[E]);return this},rr.prototype.map=function(a){for(var y=new rr,b=[],E=this.s,x=E.length,z=0;z<x;z++)b.push(a(E[z]));return y.s=b,y.xb(),y},rr.prototype.filter=function(a){for(var y=new rr,b=[],E=this.s,x=E.length,z=0;z<x;z++){var ne=E[z];a(ne)&&b.push(ne)}return y.s=b,y.xb(),y},Me=rr.prototype,Me.Gb=function(a,y){0>a&&vr(a,">= 0",rr,"insertAt:i"),this._isFrozen&&Gn(this,a);var b=this.s;a>=b.length?b.push(y):b.splice(a,0,y),this.xb()},Me.remove=function(a){if(a===null)return!1;this._isFrozen&&Gn(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)},Me.delete=function(a){return this.remove(a)},Me.mb=function(a){var y=this.s;(0>a||a>=y.length)&&vr(a,"0 <= i < length",rr,"removeAt:i"),this._isFrozen&&Gn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Me.removeRange=function(a,y){var b=this.s,E=b.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&Gn(this);for(var x=a,z=y+1;z<E;)b[x++]=b[z++];return b.length=E-(y-a+1),this.xb(),this},rr.prototype.copy=function(){var a=new rr,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Me=rr.prototype,Me.Fa=function(){for(var a=this.s,y=this.count,b=Array(y),E=0;E<y;E++)b[E]=a[E];return b},Me.Iv=function(){for(var a=new ur,y=this.s,b=this.count,E=0;E<b;E++)a.add(y[E]);return a},Me.sort=function(a){return this._isFrozen&&Gn(this),this.s.sort(a),this.xb(),this},Me.zi=function(a,y,b){var E=this.s,x=E.length;y===void 0&&(y=0),b===void 0&&(b=x),this._isFrozen&&Gn(this);var z=b-y;if(1>=z)return this;if((0>y||y>=x-1)&&vr(y,"0 <= from < length",rr,"sortRange:from"),z===2)return b=E[y],x=E[y+1],0<a(b,x)&&(E[y]=x,E[y+1]=b,this.xb()),this;if(y===0)if(b>=x)E.sort(a);else for(y=E.slice(0,b),y.sort(a),a=0;a<b;a++)E[a]=y[a];else if(b>=x)for(b=E.slice(y),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];else for(x=E.slice(y,b),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];return this.xb(),this},Me.reverse=function(){return this._isFrozen&&Gn(this),this.s.reverse(),this.xb(),this},un.Object.defineProperties(rr.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 Xi;var a=this.Sa;return a!==null?(a.reset(),a):new Bi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Xi;var a=this.Hg;return a!==null?(a.reset(),a):new Hi(this)}}}),rr.prototype.reverse=rr.prototype.reverse,rr.prototype.sortRange=rr.prototype.zi,rr.prototype.sort=rr.prototype.sort,rr.prototype.toSet=rr.prototype.Iv,rr.prototype.toArray=rr.prototype.Fa,rr.prototype.removeRange=rr.prototype.removeRange,rr.prototype.removeAt=rr.prototype.mb,rr.prototype.delete=rr.prototype.delete,rr.prototype.remove=rr.prototype.remove,rr.prototype.insertAt=rr.prototype.Gb,rr.prototype.pop=rr.prototype.pop,rr.prototype.last=rr.prototype.jc,rr.prototype.first=rr.prototype.first,rr.prototype.set=rr.prototype.set,rr.prototype.setElt=rr.prototype.cd,rr.prototype.get=rr.prototype.get,rr.prototype.elt=rr.prototype.M,rr.prototype.indexOf=rr.prototype.indexOf,rr.prototype.has=rr.prototype.has,rr.prototype.contains=rr.prototype.contains,rr.prototype.clear=rr.prototype.clear,rr.prototype.addAll=rr.prototype.addAll,rr.prototype.push=rr.prototype.push,rr.prototype.add=rr.prototype.add,rr.prototype.thaw=rr.prototype.ka,rr.prototype.freeze=rr.prototype.freeze,rr.className="List";function _i(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}_i.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},_i.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)},_i.prototype.Ad=function(){return this.next()},_i.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},_i.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},_i.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},_i.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},_i.prototype.map=function(a){var y=this.eg;y.Sa=null;var b=new rr;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},_i.prototype.filter=function(a){var y=this.eg;y.Sa=null;var b=new rr;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},_i.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},_i.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},un.Object.defineProperties(_i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),_i.prototype.first=_i.prototype.first,_i.prototype.hasNext=_i.prototype.Ad,_i.prototype.next=_i.prototype.next,_i.prototype.reset=_i.prototype.reset,_i.className="SetIterator";function ur(a){vi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&kt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=ur.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"Set()#"+Mi(this)},Me.add=function(a){if(a===null)return this;this._isFrozen&&Gn(this,a);var y=a;return nn(a)&&(y=Pi(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Fn(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},Me.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Gn(this),Qn(a))for(var y=a.length,b=0;b<y;b++)this.add(a[b]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Me.contains=function(a){if(a===null)return!1;var y=a;return nn(a)&&(y=Mi(a),y===void 0)?!1:this.Tb[y]!==void 0},Me.has=function(a){return this.contains(a)},Me.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Me.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Me.first=function(){var a=this.ea;return a===null?null:a.value},ur.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ur.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ur.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},ur.prototype.map=function(a){for(var y=new ur,b=this.ea;b!==null;)y.add(a(b.value)),b=b.va;return y},ur.prototype.filter=function(a){for(var y=new ur,b=this.ea;b!==null;){var E=b.value;a(E)&&y.add(E),b=b.va}return y},Me=ur.prototype,Me.remove=function(a){if(a===null)return!1;this._isFrozen&&Gn(this,a);var y=a;if(nn(a)&&(y=Mi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var b=a.va,E=a.ll;return b!==null&&(b.ll=E),E!==null&&(E.va=b),this.ea===a&&(this.ea=b),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Me.delete=function(a){return this.remove(a)},Me.hp=function(a){if(a===null)return this;if(this._isFrozen&&Gn(this),Qn(a))for(var y=a.length,b=0;b<y;b++)this.remove(a[b]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Me.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Gn(this);var y=new ur;y.addAll(a),a=[];for(var b=this.iterator;b.next();){var E=b.value;y.contains(E)||a.push(E)}return this.hp(a),this},Me.clear=function(){this._isFrozen&&Gn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},ur.prototype.copy=function(){var a=new ur,y=this.Tb,b;for(b in y)a.add(y[b].value);return a},ur.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,b=0,E;for(E in y)a[b]=y[E].value,b++;return a},ur.prototype.Hv=function(){var a=new rr,y=this.Tb,b;for(b in y)a.add(y[b].value);return a};function vi(a){a.__gohashid=po++}function Pi(a){var y=a.__gohashid;return y===void 0&&(y=po++,a.__gohashid=y),y}function Mi(a){return a.__gohashid}un.Object.defineProperties(ur.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Xi;var a=this.Sa;return a!==null?(a.reset(),a):new _i(this)}}}),ur.prototype.toList=ur.prototype.Hv,ur.prototype.toArray=ur.prototype.Fa,ur.prototype.clear=ur.prototype.clear,ur.prototype.retainAll=ur.prototype.pA,ur.prototype.removeAll=ur.prototype.hp,ur.prototype.delete=ur.prototype.delete,ur.prototype.remove=ur.prototype.remove,ur.prototype.first=ur.prototype.first,ur.prototype.containsAny=ur.prototype.Ty,ur.prototype.containsAll=ur.prototype.Sy,ur.prototype.has=ur.prototype.has,ur.prototype.contains=ur.prototype.contains,ur.prototype.addAll=ur.prototype.addAll,ur.prototype.add=ur.prototype.add,ur.prototype.thaw=ur.prototype.ka,ur.prototype.freeze=ur.prototype.freeze;var po=1;ur.className="Set",ur.uniqueHash=vi,ur.hashIdUnique=Pi,ur.hashId=Mi;function Oo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Oo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Oo.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)},Oo.prototype.Ad=function(){return this.next()},Oo.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},Oo.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},Oo.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},Oo.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},Oo.prototype.map=function(a){var y=this.ma;this.sa=null;var b=new rr;for(y=y.ea;y!==null;)b.add(a(y.key)),y=y.va;return b.iterator},Oo.prototype.filter=function(a){var y=this.ma;this.sa=null;var b=new rr;for(y=y.ea;y!==null;){var E=y.key;a(E)&&b.add(E),y=y.va}return b.iterator},Oo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Oo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},un.Object.defineProperties(Oo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Oo.prototype.first=Oo.prototype.first,Oo.prototype.hasNext=Oo.prototype.Ad,Oo.prototype.next=Oo.prototype.next,Oo.prototype.reset=Oo.prototype.reset,Oo.className="MapKeySetIterator";function mo(a){ur.call(this),vi(this),this._isFrozen=!0,this.ma=a}hn(mo,ur),Me=mo.prototype,Me.freeze=function(){return this},Me.ka=function(){return this},Me.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Me.add=function(){kt("This Set is read-only: "+this.toString())},Me.contains=function(a){return this.ma.contains(a)},Me.has=function(a){return this.contains(a)},Me.remove=function(){kt("This Set is read-only: "+this.toString())},Me.delete=function(a){return this.remove(a)},Me.clear=function(){kt("This Set is read-only: "+this.toString())},Me.first=function(){var a=this.ma.ea;return a!==null?a.key:null},mo.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},mo.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},mo.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},mo.prototype.map=function(a){for(var y=new ur,b=this.ma.ea;b!==null;)y.add(a(b.key)),b=b.va;return y},mo.prototype.filter=function(a){for(var y=new ur,b=this.ma.ea;b!==null;){var E=b.key;a(E)&&y.add(E),b=b.va}return y},mo.prototype.copy=function(){return new mo(this.ma)},mo.prototype.Iv=function(){var a=new ur,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},mo.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),b=0,E;for(E in a)y[b]=a[E].key,b++;return y},mo.prototype.Hv=function(){var a=new rr,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},un.Object.defineProperties(mo.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Xi:new Oo(this.ma)}}}),mo.prototype.toList=mo.prototype.Hv,mo.prototype.toArray=mo.prototype.Fa,mo.prototype.toSet=mo.prototype.Iv,mo.prototype.first=mo.prototype.first,mo.prototype.clear=mo.prototype.clear,mo.prototype.delete=mo.prototype.delete,mo.prototype.remove=mo.prototype.remove,mo.prototype.has=mo.prototype.has,mo.prototype.contains=mo.prototype.contains,mo.prototype.add=mo.prototype.add,mo.prototype.thaw=mo.prototype.ka,mo.prototype.freeze=mo.prototype.freeze,mo.className="MapKeySet";function xo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}xo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},xo.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)},xo.prototype.Ad=function(){return this.next()},xo.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},xo.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},xo.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},xo.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},xo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var b=new rr;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},xo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var b=new rr;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},xo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},xo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},un.Object.defineProperties(xo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),xo.prototype.first=xo.prototype.first,xo.prototype.hasNext=xo.prototype.Ad,xo.prototype.next=xo.prototype.next,xo.prototype.reset=xo.prototype.reset,xo.className="MapValueSetIterator";function Fn(a,y){this.key=a,this.value=y,this.ll=this.va=null}Fn.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Fn.className="KeyValuePair";function fr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}fr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},fr.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)},fr.prototype.Ad=function(){return this.next()},fr.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},fr.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},fr.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},fr.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},fr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new rr;for(y=y.ea;y!==null;)b.add(a(y)),y=y.va;return b.iterator},fr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new rr;for(y=y.ea;y!==null;)a(y)&&b.add(y),y=y.va;return b.iterator},fr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},fr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},un.Object.defineProperties(fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),fr.prototype.first=fr.prototype.first,fr.prototype.hasNext=fr.prototype.Ad,fr.prototype.next=fr.prototype.next,fr.prototype.reset=fr.prototype.reset,fr.className="MapIterator";function Rn(a){vi(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"&&kt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=Rn.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"Map()#"+Mi(this)},Me.add=function(a,y){this._isFrozen&&Gn(this,a);var b=a;nn(a)&&(b=Pi(a));var E=this.Tb[b];return E===void 0?(this.Sb++,a=new Fn(a,y),this.Tb[b]=a,b=this.kf,b===null?this.ea=a:(a.ll=b,b.va=a),this.kf=a,this.xb()):E.value=y,this},Me.set=function(a,y){return this.add(a,y)},Me.addAll=function(a){if(a===null)return this;if(Qn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];this.add(E.key,E.value)}else if(a instanceof Rn)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},Me.first=function(){return this.ea},Rn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Rn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Rn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Rn.prototype.map=function(a){for(var y=new Rn,b=this.ea;b!==null;)y.add(b.key,a(b)),b=b.va;return y},Rn.prototype.filter=function(a){for(var y=new Rn,b=this.ea;b!==null;)a(b)&&y.add(b.key,b.value),b=b.va;return y},Me=Rn.prototype,Me.contains=function(a){var y=a;return nn(a)&&(y=Mi(a),y===void 0)?!1:this.Tb[y]!==void 0},Me.has=function(a){return this.contains(a)},Me.I=function(a){var y=a;return nn(a)&&(y=Mi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Me.get=function(a){return this.I(a)},Me.remove=function(a){if(a===null)return!1;this._isFrozen&&Gn(this,a);var y=a;if(nn(a)&&(y=Mi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var b=a.va,E=a.ll;return b!==null&&(b.ll=E),E!==null&&(E.va=b),this.ea===a&&(this.ea=b),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Me.delete=function(a){return this.remove(a)},Me.clear=function(){this._isFrozen&&Gn(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()},Rn.prototype.copy=function(){var a=new Rn,y=this.Tb,b;for(b in y){var E=y[b];a.add(E.key,E.value)}return a},Rn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),b=0,E;for(E in a){var x=a[E];y[b]=new Fn(x.key,x.value),b++}return y},Rn.prototype.Lf=function(){return new mo(this)},un.Object.defineProperties(Rn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Xi;var a=this.Sa;return a!==null?(a.reset(),a):new fr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Xi:new Oo(this)}},iteratorValues:{get:function(){if(0>=this.count)return Xi;var a=this.jf;return a!==null?(a.reset(),a):new xo(this)}}}),Rn.prototype.toKeySet=Rn.prototype.Lf,Rn.prototype.toArray=Rn.prototype.Fa,Rn.prototype.clear=Rn.prototype.clear,Rn.prototype.delete=Rn.prototype.delete,Rn.prototype.remove=Rn.prototype.remove,Rn.prototype.get=Rn.prototype.get,Rn.prototype.getValue=Rn.prototype.I,Rn.prototype.has=Rn.prototype.has,Rn.prototype.contains=Rn.prototype.contains,Rn.prototype.first=Rn.prototype.first,Rn.prototype.addAll=Rn.prototype.addAll,Rn.prototype.set=Rn.prototype.set,Rn.prototype.add=Rn.prototype.add,Rn.prototype.thaw=Rn.prototype.ka,Rn.prototype.freeze=Rn.prototype.freeze,Rn.className="Map";function rt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):kt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var jr,Sr,zr,ni,pi;rt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},rt.prototype.h=function(a,y){return this.x=a,this.y=y,this},rt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},rt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},rt.prototype.copy=function(){var a=new rt;return a.x=this.x,a.y=this.y,a},Me=rt.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&kt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Er(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;return(E=a[y++])&&(x=parseFloat(E)),new rt(b,x)}return new rt}function ft(a){return a.x.toString()+" "+a.y.toString()}Me.toString=function(){return"Point("+this.x+","+this.y+")"},Me.D=function(a){return a instanceof rt?this.x===a.x&&this.y===a.y:!1},Me.hi=function(a,y){return this.x===a&&this.y===y},Me.Xa=function(a){return an.B(this.x,a.x)&&an.B(this.y,a.y)},Me.add=function(a){return this.x+=a.x,this.y+=a.y,this},Me.re=function(a){return this.x-=a.x,this.y-=a.y,this},Me.offset=function(a,y){return this.x+=a,this.y+=y,this},rt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,b=this.y;if(y===0&&b===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*b,this.y=E*y+a*b,this},Me=rt.prototype,Me.scale=function(a,y){return this.x*=a,this.y*=y,this},Me.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Me.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Me.normalize=function(){var a=this.x,y=this.y,b=Math.sqrt(a*a+y*y);return 0<b&&(this.x=a/b,this.y=y/b),this},Me.ab=function(a){return En(a.x-this.x,a.y-this.y)},Me.direction=function(a,y){return En(a-this.x,y-this.y)};function En(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 b=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b}Me.Ry=function(a,y){return an.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Me.fA=function(a,y,b,E){return an.qh(a,y,b,E,this.x,this.y,this),this},Me.gA=function(a,y){return an.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Me.uA=function(a,y,b,E){return an.No(this.x,this.y,a,y,b,E,this),this},Me.vA=function(a,y){return an.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Me.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},Me.yi=function(a,y,b,E,x){return this.x=a+x.x*b+x.offsetX,this.y=y+x.y*E+x.offsetY,this},Me.transform=function(a){return a.Ga(this),this};function Mn(a,y){return y.Cd(a),a}function Xn(a,y,b,E,x,z){var ne=x-b,ie=z-E,se=ne*ne+ie*ie;b-=a,E-=y;var de=-b*ne-E*ie;return 0>=de||de>=se?(ne=x-a,ie=z-y,Math.min(b*b+E*E,ne*ne+ie*ie)):(a=ne*E-ie*b,a*a/se)}function Hn(a,y,b,E){return a=b-a,y=E-y,a*a+y*y}function hr(a,y,b,E){return a=b-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Me.w=function(){return isFinite(this.x)&&isFinite(this.y)},rt.alloc=function(){var a=$n.pop();return a===void 0?new rt:a},rt.allocAt=function(a,y){var b=$n.pop();return b===void 0?new rt(a,y):(b.x=a,b.y=y,b)},rt.free=function(a){$n.push(a)},rt.prototype.isReal=rt.prototype.w,rt.prototype.setSpot=rt.prototype.yi,rt.prototype.setRectSpot=rt.prototype.xi,rt.prototype.snapToGridPoint=rt.prototype.vA,rt.prototype.snapToGrid=rt.prototype.uA,rt.prototype.projectOntoLineSegmentPoint=rt.prototype.gA,rt.prototype.projectOntoLineSegment=rt.prototype.fA,rt.intersectingLineSegments=function(a,y,b,E,x,z,ne,ie){return an.Rl(a,y,b,E,x,z,ne,ie)},rt.prototype.compareWithLineSegmentPoint=rt.prototype.Ry,rt.compareWithLineSegment=function(a,y,b,E,x,z){return an.Fl(a,y,b,E,x,z)},rt.prototype.direction=rt.prototype.direction,rt.prototype.directionPoint=rt.prototype.ab,rt.prototype.normalize=rt.prototype.normalize,rt.prototype.distanceSquared=rt.prototype.zd,rt.prototype.distanceSquaredPoint=rt.prototype.Bf,rt.prototype.scale=rt.prototype.scale,rt.prototype.rotate=rt.prototype.rotate,rt.prototype.offset=rt.prototype.offset,rt.prototype.subtract=rt.prototype.re,rt.prototype.add=rt.prototype.add,rt.prototype.equalsApprox=rt.prototype.Xa,rt.prototype.equalTo=rt.prototype.hi,rt.prototype.equals=rt.prototype.D,rt.prototype.set=rt.prototype.set,rt.prototype.setTo=rt.prototype.sg;var $n=[];rt.className="Point",rt.parse=Er,rt.stringify=ft,rt.distanceLineSegmentSquared=Xn,rt.distanceSquared=Hn,rt.direction=hr,rt.Origin=jr=new rt(0,0).ja(),rt.InfiniteTopLeft=Sr=new rt(-1/0,-1/0).ja(),rt.InfiniteBottomRight=zr=new rt(1/0,1/0).ja(),rt.SixPoint=ni=new rt(6,6).ja(),rt.NoPoint=pi=new rt(NaN,NaN).ja(),rt.parse=Er,rt.stringify=ft,rt.distanceLineSegmentSquared=Xn,rt.distanceSquared=Hn,rt.direction=hr;function cn(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):kt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Kn,Gr,Li,mi,gi,Ri,Oi;cn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},cn.prototype.h=function(a,y){return this.width=a,this.height=y,this},cn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},cn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},cn.prototype.copy=function(){var a=new cn;return a.width=this.width,a.height=this.height,a},Me=cn.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&kt("cannot thaw constant: "+this),this._isFrozen=!1,this};function lo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;return(E=a[y++])&&(x=parseFloat(E)),new cn(b,x)}return new cn}function So(a){return a.width.toString()+" "+a.height.toString()}Me.toString=function(){return"Size("+this.width+","+this.height+")"},Me.D=function(a){return a instanceof cn?this.width===a.width&&this.height===a.height:!1},Me.hi=function(a,y){return this.width===a&&this.height===y},Me.Xa=function(a){return an.B(this.width,a.width)&&an.B(this.height,a.height)},Me.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},Me.w=function(){return isFinite(this.width)&&isFinite(this.height)},cn.alloc=function(){var a=na.pop();return a===void 0?new cn:a},cn.free=function(a){na.push(a)},cn.prototype.isReal=cn.prototype.w,cn.prototype.inflate=cn.prototype.Bc,cn.prototype.equalsApprox=cn.prototype.Xa,cn.prototype.equalTo=cn.prototype.hi,cn.prototype.equals=cn.prototype.D,cn.prototype.set=cn.prototype.set,cn.prototype.setTo=cn.prototype.sg;var na=[];cn.className="Size",cn.parse=lo,cn.stringify=So,cn.ZeroSize=Kn=new cn(0,0).ja(),cn.OneSize=Gr=new cn(1,1).ja(),cn.SixSize=Li=new cn(6,6).ja(),cn.EightSize=mi=new cn(8,8).ja(),cn.TenSize=gi=new cn(10,10).ja(),cn.InfiniteSize=Ri=new cn(1/0,1/0).ja(),cn.NoSize=Oi=new cn(NaN,NaN).ja(),cn.parse=lo,cn.stringify=So;function An(a,y,b,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof b=="number"&&(0<=b||isNaN(b))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=b,this.height=E):a instanceof rt?(b=a.x,a=a.y,y instanceof rt?(E=y.x,y=y.y,this.x=Math.min(b,E),this.y=Math.min(a,y),this.width=Math.abs(b-E),this.height=Math.abs(a-y)):y instanceof cn?(this.x=b,this.y=a,this.width=y.width,this.height=y.height):kt("Incorrect second argument supplied to Rect constructor "+y)):kt("Invalid arguments to Rect constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}Me=An.prototype,Me.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Me.h=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this};function so(a,y,b){a.width=y,a.height=b}Me.sg=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this},Me.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Me.dd=function(a){return this.x=a.x,this.y=a.y,this},Me.tA=function(a){return this.width=a.width,this.height=a.height,this},An.prototype.copy=function(){var a=new An;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Me=An.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&kt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Do(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;(E=a[y++])&&(x=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),new An(b,x,z,ne)}return new An}function Wi(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Me.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Me.D=function(a){return a instanceof An?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Me.hi=function(a,y,b,E){return this.x===a&&this.y===y&&this.width===b&&this.height===E},Me.Xa=function(a){return an.B(this.x,a.x)&&an.B(this.y,a.y)&&an.B(this.width,a.width)&&an.B(this.height,a.height)};function ho(a,y){return an.$(a.x,y.x)&&an.$(a.y,y.y)&&an.$(a.width,y.width)&&an.$(a.height,y.height)}Me.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Me.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},Me.contains=function(a,y,b,E){return b===void 0&&(b=0),E===void 0&&(E=0),this.x<=a&&a+b<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Me.offset=function(a,y){return this.x+=a,this.y+=y,this},Me.Bc=function(a,y){return Ki(this,y,a,y,a)},Me.Co=function(a){return Ki(this,a.top,a.right,a.bottom,a.left)},Me.Fv=function(a){return Ki(this,-a.top,-a.right,-a.bottom,-a.left)},Me.Hz=function(a,y,b,E){return Ki(this,a,y,b,E)};function Ki(a,y,b,E,x){var z=a.width;return b+x<=-z?(a.x+=z/2,a.width=0):(a.x-=x,a.width+=b+x),b=a.height,y+E<=-b?(a.y+=b/2,a.height=0):(a.y-=y,a.height+=y+E),a}Me.Ex=function(a){return da(this,a.x,a.y,a.width,a.height)},Me.Uu=function(a,y,b,E){return da(this,a,y,b,E)};function da(a,y,b,E,x){var z=Math.max(a.x,y),ne=Math.max(a.y,b);return y=Math.min(a.x+a.width,y+E),b=Math.min(a.y+a.height,b+x),a.x=z,a.y=ne,a.width=Math.max(0,y-z),a.height=Math.max(0,b-ne),a}Me.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Me.Vu=function(a,y,b,E){var x=this.width,z=this.x;return x!==1/0&&b!==1/0&&(x+=z,b+=a,isNaN(b)||isNaN(x)||z>b||a>x)?!1:(a=this.height,b=this.y,!(a!==1/0&&E!==1/0&&(a+=b,E+=y,isNaN(E)||isNaN(a)||b>E||y>a)))};function Vn(a,y){var b=a.width,E=a.x,x=y.x-10;return E>y.width+10+10+x||x>b+E?!1:(b=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>b+a))}Me.Ye=function(a){return Mo(this,a.x,a.y,0,0)},Me.ed=function(a){return Mo(this,a.x,a.y,a.width,a.height)},Me.Kv=function(a,y,b,E){return b===void 0&&(b=0),E===void 0&&(E=0),Mo(this,a,y,b,E)};function Mo(a,y,b,E,x){var z=Math.min(a.x,y),ne=Math.min(a.y,b);return y=Math.max(a.x+a.width,y+E),b=Math.max(a.y+a.height,b+x),a.x=z,a.y=ne,a.width=y-z,a.height=b-ne,a}Me.yi=function(a,y,b){return this.x=a-b.offsetX-b.x*this.width,this.y=y-b.offsetY-b.y*this.height,this};function ia(a,y,b,E,x,z,ne,ie){return ne===void 0&&(ne=0),ie===void 0&&(ie=0),a<=x&&x+ne<=a+b&&y<=z&&z+ie<=y+E}function Ps(a,y,b,E,x,z,ne,ie){return a>ne+x||x>b+a?!1:!(y>ie+z||z>E+y)}Me.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Me.Mz=function(){return this.width===0&&this.height===0},An.alloc=function(){var a=gs.pop();return a===void 0?new An:a},An.allocAt=function(a,y,b,E){var x=gs.pop();return x===void 0?new An(a,y,b,E):x.h(a,y,b,E)},An.free=function(a){gs.push(a)},un.Object.defineProperties(An.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 rt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new cn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new rt(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}}}),An.prototype.isEmpty=An.prototype.Mz,An.prototype.isReal=An.prototype.w,An.intersectsLineSegment=function(a,y,b,E,x,z,ne,ie){return an.Fx(a,y,b,E,x,z,ne,ie)},An.prototype.setSpot=An.prototype.yi,An.prototype.union=An.prototype.Kv,An.prototype.unionRect=An.prototype.ed,An.prototype.unionPoint=An.prototype.Ye,An.prototype.intersects=An.prototype.Vu,An.prototype.intersectsRect=An.prototype.Yc,An.prototype.intersect=An.prototype.Uu,An.prototype.intersectRect=An.prototype.Ex,An.prototype.grow=An.prototype.Hz,An.prototype.subtractMargin=An.prototype.Fv,An.prototype.addMargin=An.prototype.Co,An.prototype.inflate=An.prototype.Bc,An.prototype.offset=An.prototype.offset,An.prototype.contains=An.prototype.contains,An.prototype.containsRect=An.prototype.Re,An.prototype.containsPoint=An.prototype.ca,An.prototype.equalsApprox=An.prototype.Xa,An.prototype.equalTo=An.prototype.hi,An.prototype.equals=An.prototype.D,An.prototype.setSize=An.prototype.tA,An.prototype.setPoint=An.prototype.dd,An.prototype.set=An.prototype.set,An.prototype.setTo=An.prototype.sg;var Fa=null,Gs=null,gs=[];An.className="Rect",An.parse=Do,An.stringify=Wi,An.contains=ia,An.intersects=Ps,An.ZeroRect=Fa=new An(0,0,0,0).ja(),An.NoRect=Gs=new An(NaN,NaN,NaN,NaN).ja(),An.parse=Do,An.stringify=Wi,An.contains=ia,An.intersects=Ps;function Qi(a,y,b,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:b===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=b,this.left=E):kt("Invalid arguments to Margin constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}Qi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Qi.prototype.sg=function(a,y,b,E){return this.top=a,this.right=y,this.bottom=b,this.left=E,this},Qi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Qi.prototype.copy=function(){var a=new Qi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Me=Qi.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&kt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ca(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(b=parseFloat(E)),isNaN(b))return new Qi;for(var x=NaN;a[y]==="";)y++;if((E=a[y++])&&(x=parseFloat(E)),isNaN(x))return new Qi(b);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Qi(b,x);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new Qi(b,x):new Qi(b,x,z,ne)}return new Qi}function Ba(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Me.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Me.D=function(a){return a instanceof Qi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Me.hi=function(a,y,b,E){return this.top===a&&this.right===y&&this.bottom===b&&this.left===E},Me.Xa=function(a){return an.B(this.top,a.top)&&an.B(this.right,a.right)&&an.B(this.bottom,a.bottom)&&an.B(this.left,a.left)},Me.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Qi.alloc=function(){var a=Ao.pop();return a===void 0?new Qi:a},Qi.free=function(a){Ao.push(a)},Qi.prototype.isReal=Qi.prototype.w,Qi.prototype.equalsApprox=Qi.prototype.Xa,Qi.prototype.equalTo=Qi.prototype.hi,Qi.prototype.equals=Qi.prototype.D,Qi.prototype.set=Qi.prototype.set,Qi.prototype.setTo=Qi.prototype.sg;var is=null,To=null,Ao=[];Qi.className="Margin",Qi.parse=ca,Qi.stringify=Ba,Qi.ZeroMargin=is=new Qi(0,0,0,0).ja(),Qi.TwoMargin=To=new Qi(2,2,2,2).ja(),Qi.parse=ca,Qi.stringify=Ba;function _r(a,y,b,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),b===void 0&&(b=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=b,this.offsetY=E),this._isFrozen=!1}var to,No,ba,os,ms,uo,_a,qa,pa,ra,Ca,Ys,oa,as,Il,iu,Ua,jl,sc,ou,ss,cl,au,Vl,Zu,ts,lc,bc,Ou,Ku,Is,js,hs,vs,Sa,Ho;_r.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},_r.prototype.sg=function(a,y,b,E){return this.x=a,this.y=y,this.offsetX=b,this.offsetY=E,this},_r.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},_r.prototype.copy=function(){var a=new _r;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Me=_r.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&kt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Yo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ys(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return to;if(a==="TopLeft")return No;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return ba;if(a==="TopRight")return os;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return ms;if(a==="Center")return uo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return _a;if(a==="BottomLeft")return qa;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return pa;if(a==="BottomRight")return ra;if(a==="TopSide")return Ca;if(a==="LeftSide")return Ys;if(a==="RightSide")return oa;if(a==="BottomSide")return as;if(a==="TopBottomSides")return Il;if(a==="LeftRightSides")return iu;if(a==="TopLeftSides")return Ua;if(a==="TopRightSides")return jl;if(a==="BottomLeftSides")return sc;if(a==="BottomRightSides")return ou;if(a==="NotTopSide")return ss;if(a==="NotLeftSide")return cl;if(a==="NotRightSide")return au;if(a==="NotBottomSide")return Vl;if(a==="AllSides")return Zu;if(a==="Default")return ts;a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(x=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ne=parseFloat(E)),new _r(b,x,z,ne)}return new _r}function $a(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Me.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(to)?"None":this.D(No)?"TopLeft":this.D(ba)?"Top":this.D(os)?"TopRight":this.D(ms)?"Left":this.D(uo)?"Center":this.D(_a)?"Right":this.D(qa)?"BottomLeft":this.D(pa)?"Bottom":this.D(ra)?"BottomRight":this.D(Ca)?"TopSide":this.D(Ys)?"LeftSide":this.D(oa)?"RightSide":this.D(as)?"BottomSide":this.D(Il)?"TopBottomSides":this.D(iu)?"LeftRightSides":this.D(Ua)?"TopLeftSides":this.D(jl)?"TopRightSides":this.D(sc)?"BottomLeftSides":this.D(ou)?"BottomRightSides":this.D(ss)?"NotTopSide":this.D(cl)?"NotLeftSide":this.D(au)?"NotRightSide":this.D(Vl)?"NotBottomSide":this.D(Zu)?"AllSides":this.D(ts)?"Default":"None"},Me.D=function(a){return a instanceof _r?(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},Me.gv=function(){return new _r(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Me.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(lc))a=Ys;else if(a.D(bc))a=oa;else if(a.D(Ou))a=Ca;else if(a.D(Ku))a=as;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Me.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Me.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Me.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Me.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Me.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},_r.alloc=function(){var a=za.pop();return a===void 0?new _r:a},_r.free=function(a){za.push(a)},_r.prototype.isDefault=_r.prototype.Xb,_r.prototype.isNone=_r.prototype.ys,_r.prototype.isSide=_r.prototype.$c,_r.prototype.isNoSpot=_r.prototype.Mc,_r.prototype.isSpot=_r.prototype.sb,_r.prototype.includesSide=_r.prototype.Hf,_r.prototype.opposite=_r.prototype.gv,_r.prototype.equals=_r.prototype.D,_r.prototype.set=_r.prototype.set,_r.prototype.setTo=_r.prototype.sg;var za=[];_r.className="Spot",_r.parse=ys,_r.stringify=$a,_r.None=to=Yo(new _r(0,0,0,0),0).ja(),_r.Default=ts=Yo(new _r(0,0,-1,0),-1).ja(),_r.TopLeft=No=new _r(0,0,0,0).ja(),_r.TopCenter=ba=new _r(.5,0,0,0).ja(),_r.TopRight=os=new _r(1,0,0,0).ja(),_r.LeftCenter=ms=new _r(0,.5,0,0).ja(),_r.Center=uo=new _r(.5,.5,0,0).ja(),_r.RightCenter=_a=new _r(1,.5,0,0).ja(),_r.BottomLeft=qa=new _r(0,1,0,0).ja(),_r.BottomCenter=pa=new _r(.5,1,0,0).ja(),_r.BottomRight=ra=new _r(1,1,0,0).ja(),_r.MiddleTop=Is=ba,_r.MiddleLeft=js=ms,_r.MiddleRight=hs=_a,_r.MiddleBottom=vs=pa,_r.Top=Ou=ba,_r.Left=lc=ms,_r.Right=bc=_a,_r.Bottom=Ku=pa,_r.TopSide=Ca=Yo(new _r(0,0,1,1),1).ja(),_r.LeftSide=Ys=Yo(new _r(0,0,1,2),1).ja(),_r.RightSide=oa=Yo(new _r(0,0,1,4),1).ja(),_r.BottomSide=as=Yo(new _r(0,0,1,8),1).ja(),_r.TopBottomSides=Il=Yo(new _r(0,0,1,9),1).ja(),_r.LeftRightSides=iu=Yo(new _r(0,0,1,6),1).ja(),_r.TopLeftSides=Ua=Yo(new _r(0,0,1,3),1).ja(),_r.TopRightSides=jl=Yo(new _r(0,0,1,5),1).ja(),_r.BottomLeftSides=sc=Yo(new _r(0,0,1,10),1).ja(),_r.BottomRightSides=ou=Yo(new _r(0,0,1,12),1).ja(),_r.NotTopSide=ss=Yo(new _r(0,0,1,14),1).ja(),_r.NotLeftSide=cl=Yo(new _r(0,0,1,13),1).ja(),_r.NotRightSide=au=Yo(new _r(0,0,1,11),1).ja(),_r.NotBottomSide=Vl=Yo(new _r(0,0,1,7),1).ja(),_r.AllSides=Zu=Yo(new _r(0,0,1,15),1).ja(),Sa=new _r(.156,.156).ja(),Ho=new _r(.844,.844).ja(),_r.parse=ys,_r.stringify=$a;function Ui(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ui.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},Ui.prototype.setTransform=function(a,y,b,E,x,z){return this.m11=a,this.m12=y,this.m21=b,this.m22=E,this.dx=x,this.dy=z,this},Ui.prototype.copy=function(){var a=new Ui;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},Ui.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ui.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},Ui.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ui.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ui.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,b=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,x=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=b,this.m21=E,this.m22=x,this},Ui.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),b=a.m22*y,E=-a.m12*y,x=-a.m21*y,z=a.m11*y,ne=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*b+this.m21*E,b=this.m12*b+this.m22*E,E=this.m11*x+this.m21*z,x=this.m12*x+this.m22*z,this.dx=this.m11*ne+this.m21*a+this.dx,this.dy=this.m12*ne+this.m22*a+this.dy,this.m11=y,this.m12=b,this.m21=E,this.m22=x,this},Ui.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,b=-this.m21*a,E=this.m11*a,x=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=b,this.m22=E,this.dx=x,this.dy=z,this},Ui.prototype.rotate=function(a,y,b){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,b),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var x=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ne=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=x,this.m21=z,this.m22=ne,this.translate(-y,-b),this},Me=Ui.prototype,Me.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Me.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Me.Ga=function(a){var y=a.x,b=a.y;return a.h(y*this.m11+b*this.m21+this.dx,y*this.m12+b*this.m22+this.dy)},Me.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),b=a.x,E=a.y;return a.h(b*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),b*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Me.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),b=1.25*a.x,E=1.2*a.y;return a.h(b*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),b*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Me.pp=function(a){var y=a.x,b=a.y,E=y+a.width,x=b+a.height,z=this.m11,ne=this.m12,ie=this.m21,se=this.m22,de=this.dx,pe=this.dy,Se=y*z+b*ie+de,Ne=y*ne+b*se+pe,Oe=E*z+b*ie+de,He=E*ne+b*se+pe;return b=y*z+x*ie+de,y=y*ne+x*se+pe,z=E*z+x*ie+de,E=E*ne+x*se+pe,x=Math.min(Se,Oe),Se=Math.max(Se,Oe),Oe=Math.min(Ne,He),Ne=Math.max(Ne,He),x=Math.min(x,b),Se=Math.max(Se,b),Oe=Math.min(Oe,y),Ne=Math.max(Ne,y),x=Math.min(x,z),Se=Math.max(Se,z),Oe=Math.min(Oe,E),Ne=Math.max(Ne,E),a.h(x,Oe,Se-x,Ne-Oe),a},Ui.alloc=function(){var a=Sl.pop();return a===void 0?new Ui:a},Ui.free=function(a){Sl.push(a)},Ui.prototype.transformRect=Ui.prototype.pp,Ui.prototype.transformPoint=Ui.prototype.Ga,Ui.prototype.scale=Ui.prototype.scale,Ui.prototype.translate=Ui.prototype.translate,Ui.prototype.rotate=Ui.prototype.rotate,Ui.prototype.invert=Ui.prototype.Vj,Ui.prototype.multiplyInverted=Ui.prototype.bv,Ui.prototype.multiply=Ui.prototype.multiply,Ui.prototype.reset=Ui.prototype.reset,Ui.prototype.isIdentity=Ui.prototype.ws,Ui.prototype.equals=Ui.prototype.D,Ui.prototype.setTransform=Ui.prototype.setTransform,Ui.prototype.set=Ui.prototype.set;var Sl=[];Ui.className="Transform",Ui.xF="54a702f3e53909c447824c6706603faf4c";var an={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=an.Uv;if(y===null){y=[];for(var b=0;2e3>=b;b++)y[b]=Math.sqrt(b);an.Uv=y}return 1>a?(b=1/a,2e3>=b?1/y[b|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,b,E,x,z,ne){if(0>=x&&(x=1e-6),a<b)var ie=a,se=b;else ie=b,se=a;if(y<E)var de=y,pe=E;else de=E,pe=y;if(a===b)return de<=ne&&ne<=pe&&a-x<=z&&z<=a+x;if(y===E)return ie<=z&&z<=se&&y-x<=ne&&ne<=y+x;if(se+=x,ie-=x,ie<=z&&z<=se&&(pe+=x,de-=x,de<=ne&&ne<=pe))if(se-ie>pe-de)if(a-b>x||b-a>x){if(z=(E-y)/(b-a)*(z-a)+y,z-x<=ne&&ne<=z+x)return!0}else return!0;else if(y-E>x||E-y>x){if(ne=(b-a)/(E-y)*(ne-y)+a,ne-x<=z&&z<=ne+x)return!0}else return!0;return!1},cs:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se){if(an.Yb(a,y,ne,ie,Se,b,E)&&an.Yb(a,y,ne,ie,Se,x,z))return an.Yb(a,y,ne,ie,Se,de,pe);var Ne=(a+b)/2,Oe=(y+E)/2,He=(b+x)/2,Je=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(Ne+He)/2,b=(Oe+Je)/2,He=(He+x)/2,Je=(Je+z)/2;var xt=(E+He)/2,yt=(b+Je)/2;return an.cs(a,y,Ne,Oe,E,b,xt,yt,se,de,pe,Se)||an.cs(xt,yt,He,Je,x,z,ne,ie,se,de,pe,Se)},ax:function(a,y,b,E,x,z,ne,ie,se){var de=(b+x)/2,pe=(E+z)/2;return se.h((((a+b)/2+de)/2+(de+(x+ne)/2)/2)/2,(((y+E)/2+pe)/2+(pe+(z+ie)/2)/2)/2),se},My:function(a,y,b,E,x,z,ne,ie){var se=(b+x)/2,de=(E+z)/2;return hr(((a+b)/2+se)/2,((y+E)/2+de)/2,(se+(x+ne)/2)/2,(de+(z+ie)/2)/2)},Dl:function(a,y,b,E,x,z,ne,ie,se,de){if(an.Yb(a,y,ne,ie,se,b,E)&&an.Yb(a,y,ne,ie,se,x,z))Mo(de,a,y,0,0),Mo(de,ne,ie,0,0);else{var pe=(a+b)/2,Se=(y+E)/2,Ne=(b+x)/2,Oe=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Ne)/2,b=(Se+Oe)/2,Ne=(Ne+x)/2,Oe=(Oe+z)/2;var He=(E+Ne)/2,Je=(b+Oe)/2;an.Dl(a,y,pe,Se,E,b,He,Je,se,de),an.Dl(He,Je,Ne,Oe,x,z,ne,ie,se,de)}return de},Qe:function(a,y,b,E,x,z,ne,ie,se,de){if(an.Yb(a,y,ne,ie,se,b,E)&&an.Yb(a,y,ne,ie,se,x,z))de.length===0&&(de.push(a),de.push(y)),de.push(ne),de.push(ie);else{var pe=(a+b)/2,Se=(y+E)/2,Ne=(b+x)/2,Oe=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Ne)/2,b=(Se+Oe)/2,Ne=(Ne+x)/2,Oe=(Oe+z)/2;var He=(E+Ne)/2,Je=(b+Oe)/2;an.Qe(a,y,pe,Se,E,b,He,Je,se,de),an.Qe(He,Je,Ne,Oe,x,z,ne,ie,se,de)}return de},jv:function(a,y,b,E,x,z,ne,ie,se,de){if(an.Yb(a,y,x,z,de,b,E))return an.Yb(a,y,x,z,de,ie,se);var pe=(a+b)/2,Se=(y+E)/2;b=(b+x)/2,E=(E+z)/2;var Ne=(pe+b)/2,Oe=(Se+E)/2;return an.jv(a,y,pe,Se,Ne,Oe,ne,ie,se,de)||an.jv(Ne,Oe,b,E,x,z,ne,ie,se,de)},OA:function(a,y,b,E,x,z,ne){return ne.h(((a+b)/2+(b+x)/2)/2,((y+E)/2+(E+z)/2)/2),ne},iv:function(a,y,b,E,x,z,ne,ie){if(an.Yb(a,y,x,z,ne,b,E))Mo(ie,a,y,0,0),Mo(ie,x,z,0,0);else{var se=(a+b)/2,de=(y+E)/2;b=(b+x)/2,E=(E+z)/2;var pe=(se+b)/2,Se=(de+E)/2;an.iv(a,y,se,de,pe,Se,ne,ie),an.iv(pe,Se,b,E,x,z,ne,ie)}return ie},ep:function(a,y,b,E,x,z,ne,ie){if(an.Yb(a,y,x,z,ne,b,E))ie.length===0&&(ie.push(a),ie.push(y)),ie.push(x),ie.push(z);else{var se=(a+b)/2,de=(y+E)/2;b=(b+x)/2,E=(E+z)/2;var pe=(se+b)/2,Se=(de+E)/2;an.ep(a,y,se,de,pe,Se,ne,ie),an.ep(pe,Se,b,E,x,z,ne,ie)}return ie},Eo:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se,Ne,Oe){if(an.Yb(a,y,ne,ie,Ne,b,E)&&an.Yb(a,y,ne,ie,Ne,x,z))return!an.Rl(a,y,ne,ie,se,de,pe,Se)||(Ne=(a-ne)*(de-Se)-(y-ie)*(se-pe),Ne===0)?!1:(Oe.h(((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Ne,((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Ne),!0);var He=(a+b)/2,Je=(y+E)/2,xt=(b+x)/2,yt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(He+xt)/2,b=(Je+yt)/2,xt=(xt+x)/2,yt=(yt+z)/2;var Rt=(E+xt)/2,Bt=(b+yt)/2,Gt=1/0,$t=!1,In=0,qr=0;return an.Eo(a,y,He,Je,E,b,Rt,Bt,se,de,pe,Se,Ne,Oe)&&(a=(Oe.x-se)*(Oe.x-se)+(Oe.y-de)*(Oe.y-de),a<Gt&&(Gt=a,$t=!0,In=Oe.x,qr=Oe.y)),an.Eo(Rt,Bt,xt,yt,x,z,ne,ie,se,de,pe,Se,Ne,Oe)&&(Oe.x-se)*(Oe.x-se)+(Oe.y-de)*(Oe.y-de)<Gt&&($t=!0,In=Oe.x,qr=Oe.y),$t&&(Oe.x=In,Oe.y=qr),$t},Fo:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se,Ne){var Oe=0;if(an.Yb(a,y,ne,ie,Ne,b,E)&&an.Yb(a,y,ne,ie,Ne,x,z)){if(Ne=(a-ne)*(de-Se)-(y-ie)*(se-pe),Ne===0)return Oe;var He=((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Ne,Je=((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Ne;if(He>=pe)return Oe;if((se>pe?se-pe:pe-se)<(de>Se?de-Se:Se-de)){if(y<ie?(se=y,a=ie):(se=ie,a=y),Je<se||Je>a)return Oe}else if(a<ne?(se=a,a=ne):se=ne,He<se||He>a)return Oe;0<Ne?Oe++:0>Ne&&Oe--}else{He=(a+b)/2,Je=(y+E)/2;var xt=(b+x)/2,yt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(He+xt)/2,b=(Je+yt)/2,xt=(xt+x)/2,yt=(yt+z)/2;var Rt=(E+xt)/2,Bt=(b+yt)/2;Oe+=an.Fo(a,y,He,Je,E,b,Rt,Bt,se,de,pe,Se,Ne),Oe+=an.Fo(Rt,Bt,xt,yt,x,z,ne,ie,se,de,pe,Se,Ne)}return Oe},qh:function(a,y,b,E,x,z,ne){return an.$(a,b)?(y<E?(b=y,y=E):b=E,z<b?(ne.h(a,b),!1):z>y?(ne.h(a,y),!1):(ne.h(a,z),!0)):an.$(y,E)?(a<b?(E=a,a=b):E=b,x<E?(ne.h(E,y),!1):x>a?(ne.h(a,y),!1):(ne.h(x,y),!0)):(x=((a-x)*(a-b)+(y-z)*(y-E))/((b-a)*(b-a)+(E-y)*(E-y)),-5e-6>x?(ne.h(a,y),!1):1.000005<x?(ne.h(b,E),!1):(ne.h(a+x*(b-a),y+x*(E-y)),!0))},Ve:function(a,y,b,E,x,z,ne,ie,se){return an.B(a,b)&&an.B(y,E)?(se.h(a,y),!1):an.$(x,ne)?an.$(a,b)?(an.qh(a,y,b,E,x,z,se),!1):an.qh(a,y,b,E,x,(E-y)/(b-a)*(x-a)+y,se):(ie=(ie-z)/(ne-x),an.$(a,b)?(b=ie*(a-x)+z,y<E?(x=y,y=E):x=E,b<x?(se.h(a,x),!1):b>y?(se.h(a,y),!1):(se.h(a,b),!0)):(ne=(E-y)/(b-a),an.$(ie,ne)?(an.qh(a,y,b,E,x,z,se),!1):(x=(ne*a-ie*x+z-y)/(ne-ie),an.$(ne,0)?(a<b?(E=a,a=b):E=b,x<E?(se.h(E,y),!1):x>a?(se.h(a,y),!1):(se.h(x,y),!0)):an.qh(a,y,b,E,x,ne*(x-a)+y,se))))},MA:function(a,y,b,E,x){return an.Ve(b.x,b.y,E.x,E.y,a.x,a.y,y.x,y.y,x)},KA:function(a,y,b,E,x,z,ne,ie,se,de){function pe(xt,yt){var Rt=(xt-a)*(xt-a)+(yt-y)*(yt-y);Rt<Se&&(Se=Rt,se.h(xt,yt))}var Se=1/0;pe(se.x,se.y);var Ne=0,Oe=0,He=0,Je=0;if(x<ne?(Ne=x,Oe=ne):(Ne=ne,Oe=x),z<ie?(He=x,Je=ne):(He=ne,Je=x),Ne=(Oe-Ne)/2+de,de=(Je-He)/2+de,x=(x+ne)/2,z=(z+ie)/2,Ne===0||de===0)return se;if(.5>(b>a?b-a:a-b)){if(Ne=1-(b-x)*(b-x)/(Ne*Ne),0>Ne)return se;Ne=Math.sqrt(Ne),E=-de*Ne+z,pe(b,de*Ne+z),pe(b,E)}else{if(b=(E-y)/(b-a),E=1/(Ne*Ne)+b*b/(de*de),ie=2*b*(y-b*a)/(de*de)-2*b*z/(de*de)-2*x/(Ne*Ne),Ne=ie*ie-4*E*(2*b*a*z/(de*de)-2*y*z/(de*de)+z*z/(de*de)+x*x/(Ne*Ne)-1+(y-b*a)*(y-b*a)/(de*de)),0>Ne)return se;Ne=Math.sqrt(Ne),de=(-ie+Ne)/(2*E),pe(de,b*de-b*a+y),Ne=(-ie-Ne)/(2*E),pe(Ne,b*Ne-b*a+y)}return se},Ff:function(a,y,b,E,x,z,ne,ie,se){var de=1e21,pe=a,Se=y;if(an.Ve(a,y,a,E,x,z,ne,ie,se)){var Ne=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z);Ne<de&&(de=Ne,pe=se.x,Se=se.y)}return an.Ve(b,y,b,E,x,z,ne,ie,se)&&(Ne=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),Ne<de&&(de=Ne,pe=se.x,Se=se.y)),an.Ve(a,y,b,y,x,z,ne,ie,se)&&(y=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),y<de&&(de=y,pe=se.x,Se=se.y)),an.Ve(a,E,b,E,x,z,ne,ie,se)&&(a=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),a<de&&(de=a,pe=se.x,Se=se.y)),se.h(pe,Se),1e21>de},us:function(a,y,b){return an.Fx(a.x,a.y,a.width,a.height,y.x,y.y,b.x,b.y)},Fx:function(a,y,b,E,x,z,ne,ie){var se=a+b,de=y+E;return x===ne?(z<ie?(ne=z,z=ie):ne=ie,a<=x&&x<=se&&ne<=de&&z>=y):z===ie?(x<ne?(ie=x,x=ne):ie=ne,y<=z&&z<=de&&ie<=se&&x>=a):!!(ia(a,y,b,E,x,z)||ia(a,y,b,E,ne,ie)||an.Rl(a,y,se,y,x,z,ne,ie)||an.Rl(se,y,se,de,x,z,ne,ie)||an.Rl(se,de,a,de,x,z,ne,ie)||an.Rl(a,de,a,y,x,z,ne,ie))},Rl:function(a,y,b,E,x,z,ne,ie){return a===b&&y===E&&x===ne&&z===ie?a===x&&y===z:0>=an.Fl(a,y,b,E,x,z)*an.Fl(a,y,b,E,ne,ie)&&0>=an.Fl(x,z,ne,ie,a,y)*an.Fl(x,z,ne,ie,b,E)},Fl:function(a,y,b,E,x,z){return b-=a,E-=y,a=x-a,y=z-y,z=a*E-y*b,z===0&&(z=a*b+y*E,0<z&&(z=(a-b)*b+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,b,E,x,z){var ne=Math.PI;z||(E*=ne/180,x*=ne/180);var ie=E>x?-1:1;z=[];var se=ne/2,de=E;if(E=Math.min(2*ne,Math.abs(x-E)),1e-5>E)return se=de+ie*Math.min(E,se),ie=a+b*Math.cos(de),de=y+b*Math.sin(de),a+=b*Math.cos(se),y+=b*Math.sin(se),b=(ie+a)/2,se=(de+y)/2,z.push([ie,de,b,se,b,se,a,y]),z;for(;1e-5<E;)x=de+ie*Math.min(E,se),z.push(an.Vy(b,de,x,a,y)),E-=Math.abs(x-de),de=x;return z},Vy:function(a,y,b,E,x){var z=(b-y)/2,ne=a*Math.cos(z),ie=a*Math.sin(z),se=-ie,de=ne*ne+se*se,pe=de+ne*ne+se*ie;return de=4/3*(Math.sqrt(2*de*pe)-pe)/(ne*ie-se*ne),ie=ne-de*se,ne=se+de*ne,se=-ne,de=z+y,z=Math.cos(de),de=Math.sin(de),[E+a*Math.cos(y),x+a*Math.sin(y),E+ie*z-ne*de,x+ie*de+ne*z,E+ie*z-se*de,x+ie*de+se*z,E+a*Math.cos(b),x+a*Math.sin(b)]},No:function(a,y,b,E,x,z,ne){b=Math.floor((a-b)/x)*x+b,E=Math.floor((y-E)/z)*z+E;var ie=b;return b+x-a<x/2&&(ie=b+x),a=E,E+z-y<z/2&&(a=E+z),ne.h(ie,a),ne},vx:function(a,y){var b=Math.max(a,y);a=Math.min(a,y);var E;do y=b%a,b=E=a,a=y;while(0<y);return E},$y:function(a,y,b,E){var x=0>b,z=0>E;if(a<y)var ne=1,ie=0;else ne=0,ie=1;var se=ne===0?a:y,de=ne===0?b:E;return(ne===0?x:z)&&(de=-de),ne=ie,b=ne===0?b:E,(ne===0?x:z)&&(b=-b),an.az(se,ne===0?a:y,de,b,0,0)},az:function(a,y,b,E,x,z){if(0<E)if(0<b){x=a*a,z=y*y,a*=b;var ne=y*E,ie=-z+ne,se=-z+Math.sqrt(a*a+ne*ne);y=ie;for(var de=0;9999999999>de&&(y=.5*(ie+se),!(y===ie||y===se));++de){var pe=a/(y+x),Se=ne/(y+z);if(pe=pe*pe+Se*Se-1,0<pe)ie=y;else if(0>pe)se=y;else break}b=x*b/(y+x)-b,E=z*E/(y+z)-E,b=Math.sqrt(b*b+E*E)}else b=Math.abs(E-y);else E=a*a-y*y,z=a*b,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),b=a*E-b,b=Math.sqrt(b*b+z*z)):b=Math.abs(b-a);return b},Ze:new wi,um:new wi,Mf:new wi,Nf:0,vm:100};an.za=an.AA;function Lr(a){vi(this),this.l=2,a===void 0&&(a=Lr.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Lr.o?this.ee=new rr:(Lr.V===null&&(Lr.V=new rr().freeze()),this.ee=Lr.V),this.aq=this.ee.Ja,this.Ip=new An().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=No,this.gg=ra,this.Rk=this.Sk=NaN,this.Uf=Cr}Lr.prototype.copy=function(){var a=new Lr;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===Lr.o){for(var y=this.ee.s,b=a.ee,E=0;E<y.length;E++)b.add(y[E].copy());a.ee=b}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},Lr.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Lr.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Lr.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,b=0;b<y;b++)a[b].freeze();return this},Lr.prototype.ka=function(){if(Object.isFrozen(this)&&kt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Lr.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,b=0;b<y;b++)a[b].ka();return this},Lr.prototype.Xa=function(a){if(!(a instanceof Lr))return!1;if(this.type!==a.type)return this.type===Lr.j&&a.type===Lr.o?Eu(this,a):a.type===Lr.j&&this.type===Lr.o?Eu(a,this):!1;if(this.type===Lr.o){var y=this.figures.s;a=a.figures.s;var b=y.length;if(b!==a.length)return!1;for(var E=0;E<b;E++)if(!y[E].Xa(a[E]))return!1;return!0}return an.B(this.startX,a.startX)&&an.B(this.startY,a.startY)&&an.B(this.endX,a.endX)&&an.B(this.endY,a.endY)};function Eu(a,y){return a.type!==Lr.j||y.type!==Lr.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&an.B(a.startX,y.startX)&&an.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Wo&&an.B(a.endX,y.endX)&&an.B(a.endY,y.endY))))}Lr.ia=function(a){return a.toString()},Lr.prototype.qb=function(a){a.classType===Lr&&(this.type=a)},Lr.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Lr.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 Lr.u:var y=new An(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 Lr.F:if(y=new An(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 b=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+b+"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 "+b;case Lr.o:y="",b=this.figures.s;for(var E=b.length,x=0;x<E;x++){var z=b[x];0<x&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Lr.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,b="",E=0;E<y;E++){var x=a[E];b=x.match(/[Ff]/)!==null?E===0?b+x:b+("X"+(x[0]===" "?"":" ")+x):b+((E===0?"":"X ")+"F"+(x[0]===" "?"":" ")+x)}return b},Lr.parse=function(a,y){function b(){return Je>=Gt-1?!0:de[Je+1].match($t)!==null}function E(){return Je++,de[Je]}function x(qi){var ji=parseFloat(E()),Uo=parseFloat(E());xt===xt.toLowerCase()&&(ji=Bt.x+ji,Uo=Bt.y+Uo),qi.h(ji,Uo)}function z(){return x(Bt),Bt}function ne(){return x(Rt),Rt}function ie(){var qi=yt.toLowerCase();return qi!=="c"&&qi!=="s"&&qi!=="q"&&qi!=="t"?Bt:new rt(2*Bt.x-Rt.x,2*Bt.y-Rt.y)}y===void 0&&(y=!1);var se=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(se,"$1 $2"),a=a.replace(se,"$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 de=a.split(" ");for(a=0;a<de.length;a++){var pe=de[a];if(pe.match(/(\.[0-9]*)(\.)/gm)!==null){se=Jr();for(var Se="",Ne=!1,Oe=0;Oe<pe.length;Oe++){var He=pe[Oe];He!=="."||Ne?He==="."?(se.push(Se),Se="."):Se+=He:(Ne=!0,Se+=He)}for(se.push(Se),de.splice(a,1),pe=0;pe<se.length;pe++)de.splice(a+pe,0,se[pe]);a+=se.length-1,Hr(se)}}var Je=-1,xt="",yt="";se=new rt(0,0);var Rt=new rt(0,0),Bt=new rt(0,0),Gt=de.length;a=BS(null),Ne=Se=pe=!1,Oe=!0,He=null;for(var $t=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Je>=Gt-1);)if(yt=xt,xt=E(),xt!=="")switch(xt.toUpperCase()){case"X":Oe=!0,Se=pe=!1;break;case"M":for(He=z(),a.mc===null||Oe===!0?(gg(a,He.x,He.y,pe,!Se,Ne),Oe=!1):a.moveTo(He.x,He.y),se.assign(Bt);!b();)He=z(),a.lineTo(He.x,He.y);break;case"L":for(;!b();)He=z(),a.lineTo(He.x,He.y);break;case"H":for(;!b();)Bt=new rt((xt===xt.toLowerCase()?Bt.x:0)+parseFloat(E()),Bt.y),a.lineTo(Bt.x,Bt.y);break;case"V":for(;!b();)Bt=new rt(Bt.x,(xt===xt.toLowerCase()?Bt.y:0)+parseFloat(E())),a.lineTo(Bt.x,Bt.y);break;case"C":for(;!b();){He=new rt,x(He);var In=ne(),qr=z();Th(a,He.x,He.y,In.x,In.y,qr.x,qr.y)}break;case"S":for(;!b();)He=ie(),In=ne(),qr=z(),Th(a,He.x,He.y,In.x,In.y,qr.x,qr.y);break;case"Q":for(;!b();)He=ne(),In=z(),d0(a,He.x,He.y,In.x,In.y);break;case"T":for(;!b();)Rt=He=ie(),In=z(),d0(a,He.x,He.y,In.x,In.y);break;case"B":for(;!b();){He=parseFloat(E()),In=parseFloat(E()),qr=parseFloat(E());var yi=parseFloat(E()),di=parseFloat(E()),Dr=di,pr=!1;b()||(Dr=parseFloat(E()),b()||(pr=parseFloat(E())!==0)),xt===xt.toLowerCase()&&(qr+=Bt.x,yi+=Bt.y),a.arcTo(He,In,qr,yi,di,Dr,pr)}break;case"A":for(;!b();)He=Math.abs(parseFloat(E())),In=Math.abs(parseFloat(E())),qr=parseFloat(E()),di=yi=!1,pr=Dr=0,Dr=E(),Dr.length===1?(yi=!!parseFloat(Dr),di=!!parseFloat(E()),Dr=parseFloat(E())):Dr.length===2?(yi=!!parseFloat(Dr[0]),di=!!parseFloat(Dr[1]),Dr=parseFloat(E())):(yi=!!parseFloat(Dr[0]),di=!!parseFloat(Dr[1]),Dr=parseFloat(Dr.slice(2))),pr=parseFloat(E()),xt===xt.toLowerCase()&&(Dr=Bt.x+Dr,pr=Bt.y+pr),Bt.h(Dr,pr),dE(a,He,In,qr,yi,di,Dr,pr);break;case"Z":cE(a),Bt.assign(se);break;case"F":for(He="",In=1;de[Je+In];)if(de[Je+In]==="0")Ne=!0,In++;else if(de[Je+In].match(/[Uu]/)!==null)In++;else if(de[Je+In].match($t)===null)In++;else{He=de[Je+In];break}He.match(/[Mm]/)?pe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(He="",In=1;de[Je+In];)if(de[Je+In].match(/[Ff]/)!==null)In++;else if(de[Je+In].match($t)===null)In++;else{He=de[Je+In];break}He.match(/[Mm]/)?Se=!0:a.mc.isShadowed=!1}if(se=a.os,h0=a,y)for(y=se.figures.iterator;y.next();)y.value.isFilled=!0;return se},Lr.Ha=function(a,y){for(var b=a.length,E=rt.alloc(),x=0;x<b;x++){var z=a[x];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}rt.free(E)},Lr.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Lr.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,b=0;b<y;b++)if(a[b].Zu())return!0}return!1},Lr.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Lr.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,b=0;b<y;b++){var E=a[b];E._isInvalidBounds=!1;var x=E.segments;E.sr=x.Ja,E=x.s,x=E.length;for(var z=0;z<x;z++){var ne=E[z];ne._isInvalidBounds=!1,ne.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),Yu(this,a,!1),Mo(a,0,0,0,0),a.freeze()},Lr.prototype.ix=function(){var a=new An;return Yu(this,a,!0),a};function Yu(a,y,b){switch(a.type){case Lr.j:case Lr.u:case Lr.F:b?y.h(a.od,a.pd,0,0):Mo(y,a.od,a.pd,0,0),Mo(y,a.Dc,a.Ec,0,0);break;case Lr.o:var E=a.figures;a=E.s,E=E.length;for(var x=0;x<E;x++){var z=a[x];b&&x===0?y.h(z.startX,z.startY,0,0):Mo(y,z.startX,z.startY,0,0);for(var ne=z.segments.s,ie=ne.length,se=z.startX,de=z.startY,pe=0;pe<ie;pe++){var Se=ne[pe];switch(Se.type){case Wo:case aa:se=Se.endX,de=Se.endY,Mo(y,se,de,0,0);break;case Ka:an.Dl(se,de,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,y),se=Se.endX,de=Se.endY;break;case dl:an.iv(se,de,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,y),se=Se.endX,de=Se.endY;break;case Ia:case bl:var Ne=Se.type===Ia?Ts(Se,z):Ws(Se,z,se,de),Oe=Ne.length;if(Oe===0){se=Se.type===Ia?Se.centerX:Se.endX,de=Se.type===Ia?Se.centerY:Se.endY,Mo(y,se,de,0,0);break}Se=null;for(var He=0;He<Oe;He++)Se=Ne[He],an.Dl(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,y);Se!==null&&(se=Se[6],de=Se[7]);break;default:kt("Unknown Segment type: "+Se.type)}}}break;default:kt("Unknown Geometry type: "+a.type)}}Lr.prototype.normalize=function(){this._isFrozen&&Gn(this);var a=this.ix();return this.offset(-a.x,-a.y),new rt(-a.x,-a.y)},Lr.prototype.offset=function(a,y){return this._isFrozen&&Gn(this),this.transform(1,0,0,1,a,y),this},Lr.prototype.scale=function(a,y){return this._isFrozen&&Gn(this),this.transform(a,0,0,y,0,0),this},Lr.prototype.rotate=function(a,y,b){this._isFrozen&&Gn(this),y===void 0&&(y=0),b===void 0&&(b=0);var E=Ui.alloc();return E.reset(),E.rotate(a,y,b),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Ui.free(E),this},Me=Lr.prototype,Me.transform=function(a,y,b,E,x,z){switch(this.type){case Lr.j:case Lr.u:case Lr.F:var ne=this.od,ie=this.pd;this.od=ne*a+ie*b+x,this.pd=ne*y+ie*E+z,ne=this.Dc,ie=this.Ec,this.Dc=ne*a+ie*b+x,this.Ec=ne*y+ie*E+z;break;case Lr.o:for(var se=this.figures.s,de=se.length,pe=0;pe<de;pe++){var Se=se[pe];ne=Se.startX,ie=Se.startY,Se.startX=ne*a+ie*b+x,Se.startY=ne*y+ie*E+z,Se=Se.segments.s;for(var Ne=Se.length,Oe=0;Oe<Ne;Oe++){var He=Se[Oe];switch(He.type){case Wo:case aa:ne=He.endX,ie=He.endY,He.endX=ne*a+ie*b+x,He.endY=ne*y+ie*E+z;break;case Ka:ne=He.point1X,ie=He.point1Y,He.point1X=ne*a+ie*b+x,He.point1Y=ne*y+ie*E+z,ne=He.point2X,ie=He.point2Y,He.point2X=ne*a+ie*b+x,He.point2Y=ne*y+ie*E+z,ne=He.endX,ie=He.endY,He.endX=ne*a+ie*b+x,He.endY=ne*y+ie*E+z;break;case dl:ne=He.point1X,ie=He.point1Y,He.point1X=ne*a+ie*b+x,He.point1Y=ne*y+ie*E+z,ne=He.endX,ie=He.endY,He.endX=ne*a+ie*b+x,He.endY=ne*y+ie*E+z;break;case Ia:ne=He.centerX,ie=He.centerY,He.centerX=ne*a+ie*b+x,He.centerY=ne*y+ie*E+z,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),He.startAngle+=ne),0>a&&(He.startAngle=180-He.startAngle,He.sweepAngle=-He.sweepAngle),0>E&&(He.startAngle=-He.startAngle,He.sweepAngle=-He.sweepAngle),He.radiusX*=Math.sqrt(a*a+b*b),He.radiusY!==void 0&&(He.radiusY*=Math.sqrt(y*y+E*E));break;case bl:if(ne=He.endX,ie=He.endY,He.endX=ne*a+ie*b+x,He.endY=ne*y+ie*E+z,He.radiusX===0||He.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),He.xAxisRotation+=ne),0>a&&(He.xAxisRotation=180-He.xAxisRotation,He.isClockwiseArc=!He.isClockwiseArc),0>E&&(He.xAxisRotation=-He.xAxisRotation,He.isClockwiseArc=!He.isClockwiseArc),He.radiusX*=Math.sqrt(a*a+b*b),He.radiusY*=Math.sqrt(y*y+E*E);break;default:kt("Unknown Segment type: "+He.type)}}}}return this._isInvalidBounds=!0,this},Me.ca=function(a,y){y===void 0&&(y=0);var b=this.od,E=this.pd,x=this.Dc,z=this.Ec;switch(this.type){case Lr.j:return an.Yb(b,E,x,z,y,a.x,a.y);case Lr.u:var ne=An.allocAt(Math.min(b,x)-y,Math.min(E,z)-y,Math.abs(x-b)+2*y,Math.abs(z-E)+2*y);return a=ne.ca(a),An.free(ne),a;case Lr.F:ne=Math.min(b,x)-y;var ie=Math.min(E,z)-y;return b=(Math.abs(x-b)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=b||0>=y?!1:(ne=a.x-(ne+b),ie=a.y-(ie+y),1>=ne*ne/(b*b)+ie*ie/(y*y));case Lr.o:return fs(this,a,y,!0,!1);default:return!1}};function fs(a,y,b,E,x){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,ie=0,se,de,pe,Se,Ne=a.figures.s,Oe=Ne.length,He=0;He<Oe;He++){var Je=Ne[He],xt=!Je.isEvenOdd;if(Je.isFilled){if(E&&Je.ca(z,y,b))return!0;var yt=Je.segments;se=Je.startX,de=Je.startY;for(var Rt=se,Bt=de,Gt=yt.s,$t=0;$t<=yt.length;$t++){var In=void 0;if($t!==yt.length){In=Gt[$t];var qr=In.type;a=In.endX,Se=In.endY}else qr=Wo,a=Rt,Se=Bt;switch(qr){case aa:if(Rt=Vs(z,y,ne,y,se,de,Rt,Bt),isNaN(Rt))return!0;ie+=Rt,Rt=a,Bt=Se;break;case Wo:if(se=Vs(z,y,ne,y,se,de,a,Se),isNaN(se))return!0;ie+=se;break;case Ka:pe=an.Fo(se,de,In.point1X,In.point1Y,In.point2X,In.point2Y,a,Se,ne,y,z,y,.5),ie+=pe;break;case dl:pe=an.Fo(se,de,(se+2*In.point1X)/3,(de+2*In.point1Y)/3,(2*In.point1X+a)/3,(2*In.point1Y+Se)/3,a,Se,ne,y,z,y,.5),ie+=pe;break;case Ia:case bl:qr=In.type===Ia?Ts(In,Je):Ws(In,Je,se,de);var yi=qr.length;if(yi===0){if(se=Vs(z,y,ne,y,se,de,In.type===Ia?In.centerX:In.endX,In.type===Ia?In.centerY:In.endY),isNaN(se))return!0;ie+=se;break}In=null;for(var di=0;di<yi;di++){if(In=qr[di],di===0){if(pe=Vs(z,y,ne,y,se,de,In[0],In[1]),isNaN(pe))return!0;ie+=pe}pe=an.Fo(In[0],In[1],In[2],In[3],In[4],In[5],In[6],In[7],ne,y,z,y,.5),ie+=pe}In!==null&&(a=In[6],Se=In[7]);break;default:kt("Unknown Segment type: "+In.type)}se=a,de=Se}if(xt){if(ie!==0)return!0}else if(ie%2!==0)return!0;ie=0}else if(Je.ca(z,y,x?b:b+2))return!0}return!1}function Vs(a,y,b,E,x,z,ne,ie){if(an.Yb(x,z,ne,ie,.05,a,y))return NaN;var se=(a-b)*(z-ie);if(se===0)return 0;var de=((a*E-y*b)*(x-ne)-(a-b)*(x*ie-z*ne))/se;if(y=(a*E-y*b)*(z-ie)/se,de>=a)return 0;if((x>ne?x-ne:ne-x)<(z>ie?z-ie:ie-z)){if(z<ie){if(y<z||y>ie)return 0}else if(y<ie||y>z)return 0}else if(x<ne){if(de<x||de>ne)return 0}else if(de<ne||de>x)return 0;return 0<se?1:-1}function Dl(a,y,b,E){a=a.figures.s;for(var x=a.length,z=0;z<x;z++)if(a[z].ca(y,b,E))return!0;return!1}Me.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new rt),this.type===Lr.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var b=this.flattenedSegments,E=this.flattenedLengths,x=b.length,z=this.flattenedTotalLength*a,ne=0,ie=0;ie<x;ie++){var se=E[ie],de=se.length;for(a=0;a<de;a++){var pe=se[a];if(ne+pe>=z)return E=z-ne,E=pe===0?0:E/pe,b=b[ie],ie=b[2*a],x=b[2*a+1],y.h(ie+(b[2*a+2]-ie)*E,x+(b[2*a+3]-x)*E),y;ne+=pe}}return y},Me.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Lr.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,b=this.flattenedLengths,E=y.length,x=this.flattenedTotalLength*a,z=0,ne=0;ne<E;ne++){var ie=b[ne],se=ie.length;for(a=0;a<se;a++){var de=ie[a];if(z+de>=x)return x=y[ne],y=x[2*a],b=x[2*a+1],E=x[2*a+2],a=x[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-b)?0:1>Math.abs(E-y)?0<=a-b?90:270:1>Math.abs(a-b)?0<=E-y?0:180:180*Math.atan2(a-b,E-y)/Math.PI;z+=de}}return NaN},Me.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Lr.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 b=this.flattenedSegments,E=this.flattenedLengths,x=b.length,z=this.flattenedTotalLength*a,ne=0,ie=0;ie<x;ie++){var se=E[ie],de=se.length;for(a=0;a<de;a++){var pe=se[a];if(ne+pe>=z)return E=z-ne,E=pe===0?0:E/pe,pe=b[ie],b=pe[2*a],ie=pe[2*a+1],x=pe[2*a+2],a=pe[2*a+3],y[0]=b+(x-b)*E,y[1]=ie+(a-ie)*E,y[2]=1>Math.abs(x-b)&&1>Math.abs(a-ie)?0:1>Math.abs(x-b)?0<=a-ie?90:270:1>Math.abs(a-ie)?0<=x-b?0:180:180*Math.atan2(a-ie,x-b)/Math.PI,y;ne+=pe}}return y},Me.xx=function(a){if(this.type===Lr.j){var y=this.startX,b=this.startY,E=this.endX,x=this.endY;if(y!==E||b!==x){var z=a.x;if(a=a.y,y===E){if(b<x){var ne=b;E=x}else ne=x,E=b;return a<=ne?ne===b?0:1:a>=E?E===b?0:1:Math.abs(a-b)/(E-ne)}if(b===x)return y<E?ne=y:(ne=E,E=y),z<=ne?ne===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ne);ne=(E-y)*(E-y)+(x-b)*(x-b);var ie=rt.alloc();return an.qh(y,b,E,x,z,a,ie),a=ie.x,z=ie.y,rt.free(ie),Math.sqrt(((a-y)*(a-y)+(z-b)*(z-b))/ne)}}else if(this.type===Lr.u){ne=this.startX,ie=this.startY;var se=this.endX;if(x=this.endY,ne!==se||ie!==x){y=se-ne,b=x-ie,z=2*y+2*b,E=a.x,a=a.y,E=Math.min(Math.max(E,ne),se),a=Math.min(Math.max(a,ie),x),ne=Math.abs(E-ne),se=Math.abs(E-se),ie=Math.abs(a-ie),x=Math.abs(a-x);var de=Math.min(ne,se,ie,x);if(de===ie)return E/z;if(de===se)return(y+a)/z;if(de===x)return(2*y+b-E)/z;if(de===ne)return(2*y+2*b-a)/z}}else{y=this.flattenedSegments,b=this.flattenedLengths,z=this.flattenedTotalLength,E=rt.alloc(),x=1/0,ie=ne=0,se=y.length;for(var pe=de=0,Se=0;Se<se;Se++)for(var Ne=y[Se],Oe=b[Se],He=Ne.length,Je=0;Je<He;Je+=2){var xt=Ne[Je],yt=Ne[Je+1];if(Je!==0){an.qh(de,pe,xt,yt,a.x,a.y,E);var Rt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Rt<x&&(x=Rt,ne=ie,ne+=Math.sqrt((E.x-de)*(E.x-de)+(E.y-pe)*(E.y-pe))),ie+=Oe[(Je-2)/2]}de=xt,pe=yt}return rt.free(E),a=ne/z,0>a?0:1<a?1:a}return 0};function Xu(a){if(a.tk===null){var y=a.tk=[],b=a.ym=[],E=[],x=[];if(a.type===Lr.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),x.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),b.push(x);else if(a.type===Lr.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),x.push(Math.abs(a.startX-a.endX)),x.push(Math.abs(a.startY-a.endY)),x.push(Math.abs(a.startX-a.endX)),x.push(Math.abs(a.startY-a.endY)),b.push(x);else if(a.type===Lr.F){var z=new Va;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new wo(Ia);if(ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(a.startX+a.endX)/2,ne.centerY=(a.startY+a.endY)/2,ne.radiusX=Math.abs(a.startX-a.endX)/2,ne.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ne),a=Ts(ne,z),x=a.length,x===0)E.push(ne.centerX),E.push(ne.centerY);else{ne=z.startX,z=z.startY;for(var ie=0;ie<x;ie++){var se=a[ie];an.Qe(ne,z,se[2],se[3],se[4],se[5],se[6],se[7],.5,E),ne=se[6],z=se[7]}}y.push(E),b.push(uc(E))}else for(a=a.figures.iterator;a.next();){x=a.value,E=[],E.push(x.startX),E.push(x.startY),ne=x.startX,z=x.startY,ie=ne,se=z;for(var de=x.segments.s,pe=de.length,Se=0;Se<pe;Se++){var Ne=de[Se];switch(Ne.type){case aa:4<=E.length&&(y.push(E),b.push(uc(E))),E=[],E.push(Ne.endX),E.push(Ne.endY),ne=Ne.endX,z=Ne.endY,ie=ne,se=z;break;case Wo:E.push(Ne.endX),E.push(Ne.endY),ne=Ne.endX,z=Ne.endY;break;case Ka:an.Qe(ne,z,Ne.point1X,Ne.point1Y,Ne.point2X,Ne.point2Y,Ne.endX,Ne.endY,.5,E),ne=Ne.endX,z=Ne.endY;break;case dl:an.ep(ne,z,Ne.point1X,Ne.point1Y,Ne.endX,Ne.endY,.5,E),ne=Ne.endX,z=Ne.endY;break;case Ia:var Oe=Ts(Ne,x),He=Oe.length;if(He===0){E.push(Ne.centerX),E.push(Ne.centerY),ne=Ne.centerX,z=Ne.centerY;break}for(var Je=0;Je<He;Je++){var xt=Oe[Je];an.Qe(ne,z,xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],.5,E),ne=xt[6],z=xt[7]}break;case bl:if(Oe=Ws(Ne,x,ne,z),He=Oe.length,Je=Ne.endX,xt=Ne.endY,He===0){E.push(Je),E.push(xt),ne=Je,z=xt;break}for(Je=0;Je<He;Je++)xt=Oe[Je],an.Qe(ne,z,xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],.5,E),ne=xt[6],z=xt[7];break;default:kt("Segment not of valid type: "+Ne.type)}Ne.isClosed&&(E.push(ie),E.push(se))}4<=E.length&&(y.push(E),b.push(uc(E)))}}}function uc(a){for(var y=[],b=0,E=0,x=a.length,z=0;z<x;z+=2){var ne=a[z],ie=a[z+1];z!==0&&y.push(Math.sqrt(Hn(b,E,ne,ie))),b=ne,E=ie}return y}Me.add=function(a){return this.ee.add(a),this},Me.pm=function(a,y,b,E,x,z,ne,ie){return this._isFrozen&&Gn(this),this.fg=new _r(a,y,x,z).freeze(),this.gg=new _r(b,E,ne,ie).freeze(),this},un.Object.defineProperties(Lr.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 Xu(this),this.tk}},flattenedLengths:{get:function(){return Xu(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Lr.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===Lr.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var b=y.length,E=a=0;E<b;E++)for(var x=y[E],z=x.length,ne=0;ne<z;ne++)a+=x[ne]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Gn(this,a),this.na=a,a===Lr.o?this.ee=new rr:(Lr.V===null&&(Lr.V=new rr().freeze()),this.ee=Lr.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Gn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Gn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Gn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Gn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Gn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Gn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Gn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Gn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Lr.prototype.setSpots=Lr.prototype.pm,Lr.prototype.add=Lr.prototype.add,Lr.prototype.getFractionForPoint=Lr.prototype.xx,Lr.prototype.getPointAndAngleAlongPath=Lr.prototype.Qu,Lr.prototype.getAngleAlongPath=Lr.prototype.wx,Lr.prototype.getPointAlongPath=Lr.prototype.Pu,Lr.prototype.containsPoint=Lr.prototype.ca,Lr.prototype.transform=Lr.prototype.transform,Lr.prototype.rotate=Lr.prototype.rotate,Lr.prototype.scale=Lr.prototype.scale,Lr.prototype.offset=Lr.prototype.offset,Lr.prototype.normalize=Lr.prototype.normalize,Lr.prototype.computeBoundsWithoutOrigin=Lr.prototype.ix,Lr.prototype.equalsApprox=Lr.prototype.Xa,Lr.className="Geometry",Lr.j=new Ln(Lr,"Line",0),Lr.u=new Ln(Lr,"Rectangle",1),Lr.F=new Ln(Lr,"Ellipse",2),Lr.o=new Ln(Lr,"Path",3),Lr.V=null,Lr.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Lr.className="Geometry",Lr.stringify=Lr.ia,Lr.fillPath=Lr.nb,Lr.parse=Lr.parse,Lr.Line=Lr.j,Lr.Rectangle=Lr.u,Lr.Ellipse=Lr.F,Lr.Path=Lr.o;function Va(a,y,b,E,x){vi(this),b===void 0&&(b=!0),E===void 0&&(E=!0),x===void 0&&(x=!1),this.l=2|(b?4:0)|(E?8:0)|(x?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new rr,this.sr=this.pl.Ja,this.fw=null}Va.prototype.copy=function(){var a=new Va;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,b=y.length,E=a.pl,x=0;x<b;x++){var z=y[x].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Me=Va.prototype,Me.Xa=function(a){if(!(a instanceof Va&&an.B(this.startX,a.startX)&&an.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var b=y.length;if(b!==a.length)return!1;for(var E=0;E<b;E++)if(!y[E].Xa(a[E]))return!1;return!0},Me.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),b=this.segments.s,E=b.length,x=0;x<E;x++)y+=" "+b[x].toString(a);return y},Me.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var b=0;b<a;b++)y[b].freeze();return this},Me.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,b=0;b<y;b++)a[b].ka();return this},Me.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,b=0;b<y;b++)if(a[b]._isInvalidBounds)return!0;return!1},Me.add=function(a){return this.pl.add(a),this},Me.ca=function(a,y,b){for(var E=this.startX,x=this.startY,z=E,ne=x,ie=this.segments.s,se=ie.length,de=0;de<se;de++){var pe=ie[de];switch(pe.type){case aa:z=pe.endX,ne=pe.endY,E=pe.endX,x=pe.endY;break;case Wo:if(an.Yb(E,x,pe.endX,pe.endY,b,a,y))return!0;E=pe.endX,x=pe.endY;break;case Ka:if(an.cs(E,x,pe.point1X,pe.point1Y,pe.point2X,pe.point2Y,pe.endX,pe.endY,.5,a,y,b))return!0;E=pe.endX,x=pe.endY;break;case dl:if(an.jv(E,x,pe.point1X,pe.point1Y,pe.endX,pe.endY,.5,a,y,b))return!0;E=pe.endX,x=pe.endY;break;case Ia:case bl:var Se=pe.type===Ia?Ts(pe,this):Ws(pe,this,E,x),Ne=Se.length,Oe=pe.type===Ia?pe.centerX:pe.endX,He=pe.type===Ia?pe.centerY:pe.endY;if(Ne===0){if(an.Yb(E,x,Oe,He,b,a,y))return!0;E=Oe,x=He;break}for(Oe=null,He=0;He<Ne;He++)if(Oe=Se[He],He===0&&an.Yb(E,x,Oe[0],Oe[1],b,a,y)||an.cs(Oe[0],Oe[1],Oe[2],Oe[3],Oe[4],Oe[5],Oe[6],Oe[7],.5,a,y,b))return!0;Oe!==null&&(E=Oe[6],x=Oe[7]);break;default:kt("Unknown Segment type: "+pe.type)}if(pe.isClosed&&(E!==z||x!==ne)&&an.Yb(E,x,z,ne,b,a,y))return!0}return!1},un.Object.defineProperties(Va.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&&Gn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Gn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Gn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Gn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Gn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Gn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Va.prototype.add=Va.prototype.add,Va.prototype.equalsApprox=Va.prototype.Xa,Va.className="PathFigure";function wo(a,y,b,E,x,z,ne,ie){vi(this),a===void 0&&(a=Wo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,b!==void 0?this.Ec=b:this.Ec=0,E===void 0&&(E=0),x===void 0&&(x=0),z===void 0&&(z=0),ne===void 0&&(ne=0),a===bl?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(x,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),ie&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=x,a===Ia&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===Ia&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}wo.prototype.copy=function(){var a=new wo;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},Me=wo.prototype,Me.Xa=function(a){if(!(a instanceof wo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case aa:case Wo:return an.B(this.endX,a.endX)&&an.B(this.endY,a.endY);case Ka:return an.B(this.endX,a.endX)&&an.B(this.endY,a.endY)&&an.B(this.point1X,a.point1X)&&an.B(this.point1Y,a.point1Y)&&an.B(this.point2X,a.point2X)&&an.B(this.point2Y,a.point2Y);case dl:return an.B(this.endX,a.endX)&&an.B(this.endY,a.endY)&&an.B(this.point1X,a.point1X)&&an.B(this.point1Y,a.point1Y);case Ia:return an.B(this.startAngle,a.startAngle)&&an.B(this.sweepAngle,a.sweepAngle)&&an.B(this.centerX,a.centerX)&&an.B(this.centerY,a.centerY)&&an.B(this.radiusX,a.radiusX)&&an.B(this.radiusY,a.radiusY);case bl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&an.B(this.xAxisRotation,a.xAxisRotation)&&an.B(this.endX,a.endX)&&an.B(this.endY,a.endY)&&an.B(this.radiusX,a.radiusX)&&an.B(this.radiusY,a.radiusY);default:return!1}},Me.qb=function(a){a.classType===wo&&(this.type=a)},Me.toString=function(a){switch(a===void 0&&(a=-1),this.type){case aa:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Wo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ka: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 dl: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 Ia: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 bl: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":"")},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.close=function(){return this.isClosed=!0,this};function Ts(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var b=a.radiusX,E=a.radiusY;if(E===void 0&&(E=b),b===0||E===0)return a.ae=[],a.ae;y=a.Ne;var x=a.Vh,z=an.jx(0,0,b<E?b:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(b!==E){var ne=Ui.alloc();ne.reset(),b<E?ne.scale(1,E/b):ne.scale(b/E,1),Lr.Ha(z,ne),Ui.free(ne)}for(b=z.length,E=0;E<b;E++)ne=z[E],ne[0]+=y,ne[1]+=x,ne[2]+=y,ne[3]+=x,ne[4]+=y,ne[5]+=x,ne[6]+=y,ne[7]+=x;return a.ae=z,a.ae}function Ws(a,y,b,E){function x(Je,xt,yt,Rt){return(Je*Rt<xt*yt?-1:1)*Math.acos((Je*yt+xt*Rt)/(Math.sqrt(Je*Je+xt*xt)*Math.sqrt(yt*yt+Rt*Rt)))}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 ne=Math.PI/180*a.Ne,ie=a.isLargeArc,se=a.isClockwiseArc,de=a.Dc,pe=a.Ec,Se=Math.cos(ne),Ne=Math.sin(ne),Oe=Se*(b-de)/2+Ne*(E-pe)/2;ne=-Ne*(b-de)/2+Se*(E-pe)/2;var He=Oe*Oe/(y*y)+ne*ne/(z*z);return 1<He&&(y*=Math.sqrt(He),z*=Math.sqrt(He)),He=(ie===se?-1:1)*Math.sqrt((y*y*z*z-y*y*ne*ne-z*z*Oe*Oe)/(y*y*ne*ne+z*z*Oe*Oe)),isNaN(He)&&(He=0),ie=He*y*ne/z,He=He*-z*Oe/y,isNaN(ie)&&(ie=0),isNaN(He)&&(He=0),b=(b+de)/2+Se*ie-Ne*He,E=(E+pe)/2+Ne*ie+Se*He,pe=x(1,0,(Oe-ie)/y,(ne-He)/z),Se=(Oe-ie)/y,de=(ne-He)/z,Oe=(-Oe-ie)/y,ie=(-ne-He)/z,ne=x(Se,de,Oe,ie),Oe=(Se*Oe+de*ie)/(Math.sqrt(Se*Se+de*de)*Math.sqrt(Oe*Oe+ie*ie)),-1>=Oe?ne=Math.PI:1<=Oe&&(ne=0),!se&&0<ne&&(ne-=2*Math.PI),se&&0>ne&&(ne+=2*Math.PI),se=y>z?1:y/z,Oe=y>z?z/y:1,y=an.jx(0,0,y>z?y:z,pe,pe+ne,!0),z=Ui.alloc(),z.reset(),z.translate(b,E),z.rotate(a.Ne,0,0),z.scale(se,Oe),Lr.Ha(y,z),Ui.free(z),a.ae=y,a.ae}un.Object.defineProperties(wo.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&&Gn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Gn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Gn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Gn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Gn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Gn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Gn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Gn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Gn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&vr(a,">= zero",wo,"radiusX"),this._isFrozen&&Gn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&vr(a,">= zero",wo,"radiusY"),this._isFrozen&&Gn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Gn(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&&Gn(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&&Gn(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&&Gn(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&&Gn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),wo.prototype.equalsApprox=wo.prototype.Xa;var aa=new Ln(wo,"Move",0),Wo=new Ln(wo,"Line",1),Ka=new Ln(wo,"Bezier",2),dl=new Ln(wo,"QuadraticBezier",3),Ia=new Ln(wo,"Arc",4),bl=new Ln(wo,"SvgArc",4);wo.className="PathSegment",wo.Move=aa,wo.Line=Wo,wo.Bezier=Ka,wo.QuadraticBezier=dl,wo.Arc=Ia,wo.SvgArc=bl;function As(){this.H=null,this.xu=new rt(0,0).freeze(),this.mt=new rt(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}As.prototype.copy=function(){var a=new As;return this.clone(a)},As.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},As.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},As.prototype.So=function(a,y){var b=this.diagram;return b===null||Lf(b,a,y),y},As.prototype.Bz=function(a,y){var b=this.diagram;return b===null||(Lf(b,a,y),y.assign(b.Ps(y))),y},un.Object.defineProperties(As.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}}}),As.prototype.getMultiTouchDocumentPoint=As.prototype.Bz,As.prototype.getMultiTouchViewPoint=As.prototype.So,As.className="InputEvent";function Fu(){this.H=null,this.xa="",this.ar=this.Lr=null}Fu.prototype.copy=function(){var a=new Fu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Fu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},un.Object.defineProperties(Fu.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}}}),Fu.className="DiagramEvent";function ga(){this.Fm=sa,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ga.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ga.prototype.copy=function(){var a=new ga;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=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=nn(y)&&typeof y.J=="function"?y.J():y,a},ga.prototype.qb=function(a){a.classType===ga&&(this.change=a)},ga.prototype.toString=function(){var a="";return a=this.change===Ds?a+"* ":this.change===sa?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===Ds?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=hi(this.object)),this.oldValue!==null&&(a+=" old: "+hi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+hi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ga.prototype.I=function(a){return a?this.oldValue:this.newValue},ga.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ga.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ga.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ga.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ga.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},un.Object.defineProperties(ga.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===Ds&&(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}}}),ga.prototype.redo=ga.prototype.redo,ga.prototype.canRedo=ga.prototype.canRedo,ga.prototype.undo=ga.prototype.undo,ga.prototype.canUndo=ga.prototype.canUndo,ga.prototype.getParam=ga.prototype.Dz,ga.prototype.getValue=ga.prototype.I,ga.prototype.clear=ga.prototype.clear;var Ds=new Ln(ga,"Transaction",-1),sa=new Ln(ga,"Property",0),Ta=new Ln(ga,"Insert",1),ka=new Ln(ga,"Remove",2);ga.className="ChangedEvent",ga.Transaction=Ds,ga.Property=sa,ga.Insert=Ta,ga.Remove=ka;function Wa(){this.o=new rr().freeze(),this.xa="",this.j=!1}Wa.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 b=0;b<a;b++){var E=this.changes.M(b);E!==null&&(y+=`
`+E.toString())}}return y},Wa.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var b=a.M(y);b!==null&&b.clear()}a.clear(),a.freeze()},Wa.prototype.canUndo=function(){return this.isComplete},Wa.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()}},Wa.prototype.canRedo=function(){return this.isComplete},Wa.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var b=this.changes.M(y);b!==null&&b.redo()}},Wa.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Rn,b=0;b<a.count;b++){var E=a.M(b);if(E!==null&&E.change===sa&&E.object){var x=y.get(E.object);x||(x=new Rn,y.set(E.object,x));var z=x.get(E.propertyName);z===null?x.set(E.propertyName,-1):(0<z&&a.cd(z,null),x.set(E.propertyName,b))}}for(b=y=0;b<a.count;b++)E=a.M(b),E!==null&&(b>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},un.Object.defineProperties(Wa.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}}}),Wa.prototype.optimize=Wa.prototype.ak,Wa.prototype.redo=Wa.prototype.redo,Wa.prototype.canRedo=Wa.prototype.canRedo,Wa.prototype.undo=Wa.prototype.undo,Wa.prototype.canUndo=Wa.prototype.canUndo,Wa.prototype.clear=Wa.prototype.clear,Wa.className="Transaction";function $o(){this.Pt=new ur,this.Jd=!1,this.u=new rr().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new rr().freeze(),this.hl=new rr,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}$o.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var b=this.nestedTransactionNames.count,E=0;E<b;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(b=this.history.count,E=0;E<b;E++)y+=`
`+this.history.M(E).toString(a-1);return y},$o.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var b=a.M(y);b!==null&&b.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},$o.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Me=$o.prototype,Me.Xw=function(a){this.Pt.add(a)},Me.Rx=function(a){this.Pt.remove(a)},Me.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},Me.eb=function(a){return a===void 0&&(a=""),cc(this,!0,a)},Me.Kf=function(){return cc(this,!1,"")};function cc(a,y,b){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Qr("Ending transaction without having started a transaction: "+b);var E=a.transactionLevel===1,x=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",b,x));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(b===""&&(b=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ne-1),a.Ie.freeze()),ne=a.hl.count,0<ne&&(z=a.hl.M(ne-1),a.hl.mb(ne-1))}if(E){if(y)a.rq=!1,x===null&&b!==""&&(x=a.currentTransaction),a.isEnabled&&x!==null&&(x.isComplete||(x.isComplete=!0,x.name=b),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===x||(y.add(x),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",b,x);else{a.Fe=!0;try{a.isEnabled&&x!==null&&(x.isComplete=!0,x.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",b,x),a.Fe=!1}x!==null&&x.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&x!==null){for(a=z,b=x.changes,x=b.count-1;x>=a;x--)y=b.M(x),y!==null&&y.undo(),b.ka(),b.mb(x);b.freeze()}return!1}Me.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var b=a.M(y);b!==null&&b.clear(),a.mb(y),this.rq=!0}a.freeze()}},$o.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},$o.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){Qr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},$o.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},$o.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){Qr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},$o.prototype.Ob=function(a,y,b){b===void 0&&(b=null);var E=new ga;for(E.change=Ds,E.propertyName=a,E.object=b,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},$o.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Wa);var b=a.copy();y=y.changes,y.ka(),y.add(b),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Qr("Change not within a transaction: "+b.toString()))}},$o.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},un.Object.defineProperties($o.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}}}),$o.prototype.handleChanged=$o.prototype.Tu,$o.prototype.redo=$o.prototype.redo,$o.prototype.undo=$o.prototype.undo,$o.prototype.canUndo=$o.prototype.canUndo,$o.prototype.discardHistoryAfterIndex=$o.prototype.lx,$o.prototype.rollbackTransaction=$o.prototype.Kf,$o.prototype.commitTransaction=$o.prototype.eb,$o.prototype.startTransaction=$o.prototype.Ea,$o.prototype.removeModel=$o.prototype.Rx,$o.prototype.addModel=$o.prototype.Xw,$o.prototype.clear=$o.prototype.clear,$o.className="UndoManager";function vo(){vi(this),this.H=Rc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new As,this.Zr=-1}vo.prototype.toString=function(){return this.name!==""?this.name+" Tool":Jn(this.constructor)},vo.prototype.updateAdornments=function(){},vo.prototype.canStart=function(){return this.isEnabled},vo.prototype.doStart=function(){},vo.prototype.doActivate=function(){this.isActive=!0},vo.prototype.doDeactivate=function(){this.isActive=!1},vo.prototype.doStop=function(){},vo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},vo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},vo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},vo.prototype.doMouseMove=function(){},vo.prototype.doMouseUp=function(){this.stopTool()},vo.prototype.doMouseWheel=function(){},vo.prototype.canStartMultiTouch=function(){return!0},vo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,rt.allocAt(NaN,NaN)),E=y.So(1,rt.allocAt(NaN,NaN));if(b.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var x=E.x-b.x,z=E.y-b.y;a.Jw=Math.sqrt(x*x+z*z),y.bubbles=!1}rt.free(b),rt.free(E)},vo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,rt.allocAt(NaN,NaN)),E=y.So(1,rt.allocAt(NaN,NaN));if(b.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var x=E.x-b.x,z=E.y-b.y;z=Math.sqrt(x*x+z*z)/a.Jw,x=new rt((Math.min(E.x,b.x)+Math.max(E.x,b.x))/2,(Math.min(E.y,b.y)+Math.max(E.y,b.y))/2),z*=a.Bw;var ne=a.commandHandler;if(z!==a.scale&&ne.canResetZoom(z)){var ie=a.zoomPoint;a.zoomPoint=x,ne.resetZoom(z),a.zoomPoint=ie}y.bubbles=!1}rt.free(b),rt.free(E)},vo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},vo.prototype.doKeyUp=function(){},vo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},vo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},vo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,b=a.Ol(y.documentPoint,!1);if(b!==null){if(xi?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=b;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!b.isSelected){for(a.R("ChangingSelection",a.selection),y=b;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!b.isSelected){for(y=b;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(xi?y.meta:y.control)||y.shift||a.clearSelection()}},vo.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(x){return!x.layer.isTemporary});var b=this.diagram,E=b.lastInput;return a=b.ic(E.documentPoint,a,y),E.targetObject=a,dd(a,E,b),E.handled};function dd(a,y,b){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var x="ObjectSingleClicked";if(a!==null){switch(E){case 1:x="ObjectSingleClicked";break;case 2:x="ObjectDoubleClicked";break;case 3:x="ObjectContextClicked"}E!==0&&b.R(x,a)}else{switch(E){case 1:x="BackgroundSingleClicked";break;case 2:x="BackgroundDoubleClicked";break;case 3:x="BackgroundContextClicked"}E!==0&&b.R(x)}if(a!==null)for(;a!==null;){switch(b=null,E){case 1:b=a.click;break;case 2:b=a.doubleClick?a.doubleClick:a.click;break;case 3:b=a.contextClick}if(b!==null&&(b(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=b.click;break;case 2:a=b.doubleClick?b.doubleClick:b.click;break;case 3:a=b.contextClick}a!==null&&a(y)}}}vo.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var b=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var x=!1;if(E!==a.Ck){var z=a.Ck,ne=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var ie=z.mouseLeave;if(ie!==null&&(E===z||E!==null&&E.rg(z)||(ie(y,z,E),x=!0,y.handled)))break;z=z.panel}for(z=ne,y.handled=!1;E!==null&&(ne=E.mouseEnter,!(ne!==null&&(z===E||z!==null&&z.rg(E)||(ne(y,E,z),x=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ne="";z!==null&&(ne=z.cursor,ne==="");)z=z.panel;for(a.currentCursor=ne,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),x=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),x=!0);x&&a.$b(),a.skipsUndoManager=b}},vo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},vo.prototype.doCurrentObjectChanged=function(){},vo.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,b=y.delta;if(b!==0&&a.documentBounds.w()){var E=a.commandHandler,x=a.toolManager.mouseWheelBehavior;if(E!==null&&(x===su&&!y.shift||x===xu&&y.control))(0<b?E.canIncreaseZoom():E.canDecreaseZoom())&&(x=a.zoomPoint,a.zoomPoint=y.viewPoint,0<b?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=x),y.bubbles=!1;else if(x===su&&y.shift||x===xu&&!y.control){E=a.position.copy();var z=y.event;x=z.deltaMode;var ne=z.deltaX;z=z.deltaY;var ie="pixel";if(ne===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(b=3*b*a.scrollVerticalLineChange,a.scroll(ie,0<b?"up":"down",Math.abs(b))):y.shift&&a.allowHorizontalScroll&&(b=3*b*a.scrollHorizontalLineChange,a.scroll(ie,0<b?"left":"right",Math.abs(b)));else{switch(x){case 0:ie="pixel";break;case 1:ie="line";break;case 2:ie="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(ie,0<ne?"right":"left",Math.abs(ne))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ie,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},vo.prototype.doWheelChange=function(a,y,b){a.position.D(y)&&b.event.wheelDeltaX===0||(b.bubbles=!1)},vo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var b=this,E=y.clone(this.yy);this.Zr=fn(function(){b.doWaitAfter(E)},a)},vo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&sr.clearTimeout(this.Zr),this.Zr=-1},vo.prototype.doWaitAfter=function(){},vo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(b){for(;b!==null&&!(b.panel instanceof _o);)b=b.panel;return b}),a===null?null:a.part.category===y?a:null},vo.prototype.isBeyondDragSize=function(a,y){var b=this.diagram;a===void 0&&(a=b.firstInput.viewPoint),y===void 0&&(y=b.lastInput.viewPoint);var E=b.toolManager.dragSize,x=E.width;return E=E.height,b.firstInput.isTouchEvent&&(x+=6,E+=6),Math.abs(y.x-a.x)>x||Math.abs(y.y-a.y)>E},un.Object.defineProperties(vo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof kn&&(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}}}),vo.prototype.startTransaction=vo.prototype.Ea,vo.className="Tool";function ta(){vo.call(this),this.name="ToolManager",this.hb=new rr,this.ob=new rr,this.Hb=new rr,this.F=this.V=850,this.o=new cn(2,2).ja(),this.Ha=5e3,this.ia=xu,this.u=Ec,this.Mp=this.j=null,this.zj=-1}hn(ta,vo),ta.prototype.initializeStandardTools=function(){},ta.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof _o&&this.Mp===a){var b=y.adornedObject;(a!==null?b.part===a:b===null)?this.showToolTip(y,b):this.hideToolTip()}},ta.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===lu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Wl){y.bubbles=!0;return}if(this.gestureBehavior===lu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var b=this.mouseDownTools.length,E=0;E<b;E++){var x=this.mouseDownTools.M(E);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===xu?this.mouseWheelBehavior=su:this.mouseWheelBehavior===su&&(this.mouseWheelBehavior=xu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ta.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Wl){y.bubbles=!0;return}if(this.gestureBehavior===lu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var b=this.mouseMoveTools.length,E=0;E<b;E++){var x=this.mouseMoveTools.M(E);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseMove());return}}Vc(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Vc(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ta.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof _o&&(y===a||y.rg(a))||this.hideToolTip()},ta.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()))},ta.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var b=y.targetObject;if(b!==null)for(y.handled=!1;b!==null&&(a=this.isActive?b.mouseHold:b.mouseHover,!(a!==null&&(a(y,b),y.handled)));)b=b.panel;else b=this.isActive?a.mouseHold:a.mouseHover,b!==null&&b(y)},ta.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 _o)||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()},ta.prototype.showToolTip=function(a,y){var b=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof _o){a.layerName="Tool",a.selectable=!1,a.scale=1/b.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=b.scale);var E=a.diagram;E!==null&&E!==b&&E.remove(a),b.add(a),y!==null?a.adornedObject=y:a.data=b.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Co&&a!==this.currentToolTip&&a.show(y,b,this);if(this.currentToolTip=a,this.zj!==-1&&(sr.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var x=this;this.zj=fn(function(){x.hideToolTip()},a)}},ta.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,b=y.lastInput.documentPoint.copy(),E=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(b.x-=E.width),b.x+E.width>x.right&&(b.x-=E.width+5/y.scale),b.x<x.x&&(b.x=x.x),b.y=b.y+20/y.scale+E.height>x.bottom?b.y-(E.height+5/y.scale):b.y+20/y.scale,b.y<x.y&&(b.y=x.y),a.position=b}},ta.prototype.hideToolTip=function(){this.zj!==-1&&(sr.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof _o?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Co&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ta.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,b=0;b<y;b++){var E=this.mouseUpTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},ta.prototype.doMouseWheel=function(){this.standardMouseWheel()},ta.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ta.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ta.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,b=0;b<y;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return E}for(y=this.mouseMoveTools.length,b=0;b<y;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return E;for(y=this.mouseUpTools.length,b=0;b<y;b++)if(E=this.mouseUpTools.M(b),E.name===a)return E;return null},ta.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var b=this.mouseDownTools.length,E=0;E<b;E++){var x=this.mouseDownTools.M(E);if(x.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),x}for(b=this.mouseMoveTools.length,E=0;E<b;E++)if(x=this.mouseMoveTools.M(E),x.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),x;for(b=this.mouseUpTools.length,E=0;E<b;E++)if(x=this.mouseUpTools.M(E),x.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),x;return null},ta.prototype.gb=function(a,y,b){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&b.add(y)},un.Object.defineProperties(ta.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 _o?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}}}),ta.prototype.replaceStandardTool=ta.prototype.gb;var xu=new Ln(ta,"WheelScroll",0),su=new Ln(ta,"WheelZoom",1),Wc=new Ln(ta,"WheelNone",2),Ec=new Ln(ta,"GestureZoom",3),lu=new Ln(ta,"GestureCancel",4),Wl=new Ln(ta,"GestureNone",5);ta.className="ToolManager",ta.WheelScroll=xu,ta.WheelZoom=su,ta.WheelNone=Wc,ta.GestureZoom=Ec,ta.GestureCancel=lu,ta.GestureNone=Wl;function la(){vo.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 rt(NaN,NaN),this.Fr=new rt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new ur().freeze(),this.ia=new le,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Xs;hn(la,vo),la.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},la.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},la.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,(xi?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},la.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),bs=null,this.isActive=!0,this.tl.set(a.position),Bu(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&&sl(a),Rf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,bs=this,dc=this.diagram,this.doSimulatedDragOut()))};function Bu(a,y){if(a.dragsLink){var b=a.diagram;b.allowRelink&&(b.model.Wj()&&y.count===1&&y.first()instanceof Mr?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=b.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Al,a.Oe.diagram=b),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}la.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},la.prototype.Pd=function(a){return a===void 0?new Jc(jr):this.isGridSnapEnabled?new Jc(new rt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Jc(a.copy())},la.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),hl(this),Pd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Xs.count){for(var y=Xs,b=y.length,E=0;E<b;E++){var x=y.M(E);ha(x),jo(x),hl(x),x.diagram.ug()}y.clear()}ha(this),this.tl.h(NaN,NaN),dc!==null&&(dc.currentCursor=""),bs=dc=null,jo(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Wh(a,!0)},la.prototype.stopTransaction=function(){var a=this.diagram,y=vo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function hl(a){var y=a.diagram,b=y.skipsUndoManager;y.skipsUndoManager=!0,Rl(a,y.lastInput,null),y.skipsUndoManager=b,a.Cg.length=0}function Zl(){var a=bs;jo(a),Ns(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}la.prototype.doCancel=function(){jo(this),Ns(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},la.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},la.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function rl(a,y){if(a.copiedParts===null){var b=a.diagram;if((!y||!b.isReadOnly&&!b.isModelReadOnly)&&a.draggedParts!==null){var E=b.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(b.undoManager.Kf(),b.Ea("Drag")):Ns(a),b.skipsUndoManager=!y,b.partManager.addsToTemporaryLayer=!y,a.startPoint=b.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():b.selection,y=b.Kj(y,b,!0),b=new Rn,E=a.draggedParts.iterator;E.next();){var x=E.key;if(x.Zc()&&x.canCopy()){var z=y.I(x);z!==null&&(z.location=x.location,z.Va(),b.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof Mr&&E.canCopy()&&b.add(E,a.Pd());a.copiedParts=b,Bu(a,b.Lf()),a.draggedLink!==null&&(b=a.draggedLink,y=b.routeBounds,Lh(b,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function jo(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var b=a.draggedParts.iterator;b.next();)b.key instanceof Mr&&(b.value.point=new rt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function ha(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 Ga(a,y,b){var E=a.diagram,x=a.startPoint,z=rt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(x),b),rt.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(sl(E),E.hk())}la.prototype.moveParts=function(a,y,b){b===void 0&&(b=!1);var E=this.diagram;E!==null&&Zd(E,a,y,this.dragOptions,b)};function Ns(a){if(a.draggedParts!==null){for(var y=a.diagram,b=a.draggedParts.iterator;b.next();){var E=b.key;E.Zc()&&(E.location=b.value.point)}for(b=a.draggedParts.iterator;b.next();)if(E=b.key,E instanceof Mr&&E.suspendsRouting){var x=b.value.point;a.draggedParts.add(E,a.Pd()),Lh(E,-x.x,-x.y)}y.bd()}}function Ss(a,y){var b=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Tl(a,!1));var E=a.findDragOverObject(y),x=b.lastInput;x.targetObject=E,a.doUpdateCursor(E);var z=b.skipsUndoManager,ne=!1;try{if(b.skipsUndoManager=!0,ne=Rl(a,x,E),!a.isActive&&bs===null)return;var ie=E!==null?E.part:null;if(ie===null||b.handlesDragDropForTopLevelParts&&ie.isTopLevel&&!(ie instanceof $i)){var se=b.mouseDragOver;se!==null&&(se(x),ne=!0)}if(!a.isActive&&bs===null||(a.doDragOver(y,E),!a.isActive&&bs===null))return}finally{b.skipsUndoManager=z,ne&&b.bd()}a.Bn=E,b.isReadOnly||!b.allowMove&&!b.allowCopy||!b.allowHorizontalScroll&&!b.allowVerticalScroll||b.gs(x.viewPoint)}la.prototype.findDragOverObject=function(a){var y=this;return Yc(this.diagram,a,null,function(b){return b===null?b=!0:(b=b.part,b=!!(b===null||b instanceof _o||b.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(b)||y.copiedParts&&y.copiedParts.contains(b))),!b})},la.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 Rl(a,y,b){var E=!1,x=a.Cg.length,z=0<x?a.Cg[0]:null;if(b===z)return!1;y.handled=!1;for(var ne=0;ne<x;ne++){var ie=a.Cg[ne],se=ie.mouseDragLeave;if(se!==null&&(se(y,ie,b),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&bs===null||b===null)return E;for(y.handled=!1,x=b;x!==null;)a.Cg.push(x),x=Pl(x);for(x=a.Cg.length,b=0;b<x&&(ne=a.Cg[b],ie=ne.mouseDragEnter,ie===null||(ie(y,ne,z),E=!0,!y.handled));b++);return E}function Pl(a){var y=a.panel;return y!==null?y:a instanceof ki&&!(a instanceof $i)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Ml(a,y,b){var E=a.Oe;if(E===null)return null;var x=a.diagram.og(y,E.portGravity,function(de){return E.findValidLinkablePort(de,b)});a=rt.alloc();var z=1/0,ne=null;for(x=x.iterator;x.next();){var ie=x.value;if(ie.part!==null){var se=ie.ga(uo,a);se=y.Bf(se),se<z&&(ne=ie,z=se)}}return rt.free(a),ne}function Tl(a,y){var b=a.draggedLink;if(b!==null&&!(2>b.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var x=a.Oe;if(x!==null){var z=null,ne=null;b.fromNode===null&&(z=Ml(a,b.i(0),!1),z!==null&&(ne=z.part));var ie=null,se=null;b.toNode===null&&(ie=Ml(a,b.i(b.pointsCount-1),!0),ie!==null&&(se=ie.part)),x.isValidLink(ne,z,se,ie)?y?(b.defaultFromPoint=b.i(0),b.defaultToPoint=b.i(b.pointsCount-1),b.suspendsRouting=!1,b.fromNode=ne,z!==null&&(b.fromPortId=z.portId),b.toNode=se,ie!==null&&(b.toPortId=ie.portId),b.fromPort!==E.Mx&&E.R("LinkRelinked",b,E.Mx),b.toPort!==E.Nx&&E.R("LinkRelinked",b,E.Nx)):Ce(x,ne,z,se,ie):Ce(x,null,null,null,null)}}}}la.prototype.doDragOver=function(){};function uu(a,y){var b=a.diagram;a.dragsLink&&Tl(a,!0),hl(a);var E=a.findDragOverObject(y),x=b.lastInput;if(x.targetObject=E,E!==null){x.handled=!1;for(var z=E;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(x,z),x.handled))break;xd(a,x,z),z=Pl(z)}}else z=b.mouseDrop,z!==null&&z(x);if(a.isActive||bs!==null){for(x=(a.copiedParts||a.draggedParts).iterator;x.next();)z=x.key,z instanceof ii&&z.linksConnected.each(function(ie){ie.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||bs!==null){for(a=An.alloc(),y=b.selection.iterator;y.next();)E=y.value,E instanceof ii&&hh(b,E,a);An.free(a)}}}function xd(a,y,b){a=a.diagram,b=b.part,!a.handlesDragDropForTopLevelParts||!b.isTopLevel||b instanceof $i||(b=a.mouseDrop,b!==null&&b(y))}function hh(a,y,b){var E=!1;if(b=y.getAvoidableRect(b),a.viewportBounds.Re(b)&&(E=!0),a=a.Nu(b,function(x){return x.part},function(x){return x instanceof Mr},!0,function(x){return x instanceof Mr},E),a.count!==0)for(a=a.iterator;a.next();)b=a.value,!b.Td(y)&&b.isAvoiding&&b.bb()}la.prototype.doDropOnto=function(){},la.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()?(rl(this,!1),Rf(a,this.copiedParts),Ga(this,this.copiedParts,!1),Pd(a,this.copiedParts)):this.mayMove()?(jo(this),Ga(this,this.draggedParts,!0)):this.mayDragOut()?(rl(this,!1),Ga(this,this.copiedParts,!1)):jo(this),Ss(this,a.lastInput.documentPoint))}},la.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 b=this.mayCopy();if(b&&this.copiedParts!==null?(jo(this),rl(this,!0),Rf(a,this.copiedParts),Ga(this,this.copiedParts,!1),Pd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0}))):(y=!0,jo(this),this.mayMove()&&(Ga(this,this.draggedParts,!0),Ss(this,a.lastInput.documentPoint))),this.Ym=!0,uu(this,a.lastInput.documentPoint),this.isActive){var E=b?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&jd(this),a.Ya(),Pd(a,this.draggedParts),this.transactionResult=b?"Copy":"Move",a.R(b?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),b&&a.R("ChangedSelection",a.selection)}}},la.prototype.simulatedMouseMove=function(a,y,b){if(bs===null)return!1;var E=bs.diagram;b instanceof kn||(b=null);var x=dc;return b!==x&&(x!==null&&x!==E&&(x.ug(),bs.isDragOutStarted=!1,x=x.toolManager.findTool("Dragging"),x!==null&&x.doSimulatedDragLeave()),dc=b,b!==null&&b!==E&&(Zl(),x=b.toolManager.findTool("Dragging"),x!==null&&(Xs.contains(x)||Xs.add(x),x.doSimulatedDragEnter())),this.doUpdateCursor(null)),b===null||b===E||!b.allowDrop||b.isReadOnly||!b.allowInsert?!1:(E=b.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=b.getMouse(a)),b.lastInput.documentPoint=y,b.lastInput.viewPoint=b.op(y),b.lastInput.down=!1,b.lastInput.up=!1,E.doSimulatedDragOver()),!0)},la.prototype.simulatedMouseUp=function(a,y,b){if(bs===null)return!1;var E=dc,x=bs.diagram;if(b===null)return bs.doCancel(),!0;if(b!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==x&&z!==null)return E.ug(),bs.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;dc=b,E=b.toolManager.findTool("Dragging"),E!==null&&(Zl(),Xs.contains(E)||Xs.add(E),E.doSimulatedDragEnter())}return b!==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=b.getMouse(a)):y===null&&(y=new rt),b.lastInput.documentPoint=y,b.lastInput.viewPoint=b.op(y),b.lastInput.down=!1,b.lastInput.up=!0,a=b.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=bs,a!==null&&(b=a.mayCopy(),a.transactionResult=b?"Copy":"Move",a.stopTool()),!0):!1};function jd(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var b=y.key;b instanceof ii&&(b=b.containingGroup,b===null||b.placeholder===null||a.draggedParts.contains(b)||b.placeholder.v())}}la.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(xi?!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())},la.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())},la.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())},la.prototype.computeBorder=function(a,y,b){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:b.assign(y)},la.prototype.Az=function(){return bs},la.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=bs;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},la.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Pu(a),a.animationManager.Cc(),a=bs,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},la.prototype.doSimulatedDragLeave=function(){var a=bs;a!==null&&a.doSimulatedDragOut(),this.doCancel()},la.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=bs;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;fh(this,y.draggedParts.Lf(),!1,a.firstInput),Ga(this,this.copiedParts,!1),Ss(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},la.prototype.doSimulatedDrop=function(){var a=this.diagram,y=bs;if(y!==null){var b=y.diagram;if(y.Ym=!0,jo(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),fh(this,y.draggedParts.Lf(),!0,a.lastInput),Ga(this,this.copiedParts,!1);var E=new ur;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0,E.add(x)})),uu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,b),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function fh(a,y,b,E){if(a.copiedParts===null){var x=a.diagram;if(!x.isReadOnly&&!x.isModelReadOnly){x.skipsUndoManager=!b,x.partManager.addsToTemporaryLayer=!b,a.startPoint=E.documentPoint,b=x.Kj(y,x,!0);var z=An.alloc();x=E=1/0;for(var ne=-1/0,ie=-1/0,se=y.iterator;se.next();){var de=se.value;if(de.isVisible()){var pe=de.location;de=pe.x,pe=pe.y,isNaN(de)||isNaN(pe)||(de<E&&(E=de),pe<x&&(x=pe),de>ne&&(ne=de),pe>ie&&(ie=pe))}}for(E===1/0?z.h(0,0,0,0):z.h(E,x,ne-E,ie-x),E=z.x+z.width/2,x=z.y+z.height/2,An.free(z),z=a.Fr,ne=new Rn,ie=rt.alloc(),se=y.iterator;se.next();)de=se.value,de instanceof Mr&&de.canCopy()&&(pe=b.I(de),pe!==null&&(pe.points=de.points,Lh(pe,z.x-E,z.y-x),pe.suspendsRouting=!0,ne.add(pe,a.Pd())));for(y=y.iterator;y.next();)de=y.value,de.Zc()&&de.canCopy()&&(se=b.I(de),se!==null&&(de=de.location,ie.h(z.x-(E-de.x),z.y-(x-de.y)),se.location=ie,se.Va(),ne.add(se,a.Pd(ie))));rt.free(ie),a.copiedParts=ne,Bu(a,ne.Lf()),a.draggedLink!==null&&(b=a.draggedLink,y=b.routeBounds,Lh(b,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}la.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},la.prototype.computeMove=function(a,y,b,E){return b=this.diagram,b!==null?b.computeMove(a,y,this.dragOptions,E):new rt},un.Object.defineProperties(la.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}}}),la.prototype.getDraggingSource=la.prototype.Az;var bs=null,dc=null;la.className="DraggingTool",Xs=new rr,Si("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ta.prototype.doCancel=function(){bs!==null&&bs.doCancel(),vo.prototype.doCancel.call(this)};function La(){vo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Mr,y=new ro;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ro,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ii,y=new ro,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ii,y=new ro,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Rn,this.Of=this.gj=this.Pf=null}hn(La,vo),La.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},La.prototype.copyPortProperties=function(a,y,b,E,x){if(a!==null&&y!==null&&b!==null&&E!==null){var z=y.Df(),ne=cn.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,E.desiredSize=ne,cn.free(ne),x?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),b.locationSpot=uo,z=rt.alloc(),b.location=y.ga(uo,z),rt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,b,E,x)}},La.prototype.setNoTargetPortProperties=function(a,y,b){y!==null&&(y.desiredSize=Gr,y.fromSpot=to,y.toSpot=to),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,b)},La.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},La.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ii){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)}},La.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var b=a.part;if(!(b instanceof ii))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof ii)&&(y?this.isValidTo(b,a):this.isValidFrom(b,a)))return a;if(E===!1)break;a=a.panel}return null},La.prototype.findTargetPort=function(a){var y=this.diagram,b=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var x=this,z=y.og(b,E,function(Se){return x.findValidLinkablePort(Se,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ne=z.value,ie=ne.part;if(ie instanceof ii){var se=ne.ga(uo,rt.alloc()),de=b.x-se.x,pe=b.y-se.y;rt.free(se),se=de*de+pe*pe,se<E&&(de=this.validPortsCache.I(ne),de!==null?de&&(y=ne,E=se):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ie,ne)||!a&&this.isValidLink(ie,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,E=se):this.validPortsCache.add(ne,!1))}}return y!==null&&(b=y.part,b instanceof ii&&(b.layer===null||b.layer.allowLink))?y:null},La.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 b=y.fromMaxLinks;if(1/0>b){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=b)return!1}return!0},La.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 b=y.toMaxLinks;if(1/0>b){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=b)return!1}return!0},La.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},La.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var b=a.part;if(!(b instanceof ii))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof ii))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===b&&E.fromPortId===a)return!0;return!1},La.prototype.isValidLink=function(a,y,b,E){if(!this.isValidFrom(a,y)||!this.isValidTo(b,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||b!==null&&this.isLabelDependentOnLink(b,this.originalLink))||a!==null&&b!==null&&(a.data===null&&b.data!==null||a.data!==null&&b.data===null)||!this.isValidCycle(a,b,this.originalLink))return!1;if(a!==null){var x=a.linkValidation;if(x!==null&&!x(a,y,b,E,this.originalLink))return!1}return b!==null&&(x=b.linkValidation,x!==null&&!x(a,y,b,E,this.originalLink))?!1:(x=this.linkValidation,x!==null?x(a,y,b,E,this.originalLink):!0)},La.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var b=a.labeledLink;if(b===null)return!1;if(b===y)return!0;var E=new ur;return E.add(a),Us(this,b,y,E)};function Us(a,y,b,E){if(y===b)return!0;var x=y.fromNode;return x!==null&&x.isLinkLabel&&(E.add(x),Us(a,x.labeledLink,b,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Us(a,y.labeledLink,b,E))))}La.prototype.isValidCycle=function(a,y,b){if(b===void 0&&(b=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Jd){if(E===Ep){if(E=b||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var x=E.value;if(x!==b&&x.isTreeLink&&x.toNode===y)return!1}return!Qs(this,a,y,b,!0)}if(E===xp){if(E=b||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(x=E.value,x!==b&&x.isTreeLink&&x.fromNode===a)return!1;return!Qs(this,a,y,b,!0)}if(E===yp)return a===y?a=!0:(E=new ur,E.add(y),a=Zs(this,E,a,y,b)),!a;if(E===Sp)return!Qs(this,a,y,b,!1);if(E===bp)return a===y?a=!0:(E=new ur,E.add(y),a=xc(this,E,a,y,b)),!a}return!0};function Qs(a,y,b,E,x){if(y===b)return!0;if(y===null||b===null)return!1;for(var z=y.linksConnected;z.next();){var ne=z.value;if(ne!==E&&(!x||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&Qs(a,ne,b,E,x)))return!0}return!1}function Zs(a,y,b,E,x){if(b===E)return!0;if(b===null||E===null||y.contains(b))return!1;y.add(b);for(var z=b.linksConnected;z.next();){var ne=z.value;if(ne!==x&&ne.toNode===b&&(ne=ne.fromNode,ne!==b&&Zs(a,y,ne,E,x)))return!0}return!1}function xc(a,y,b,E,x){if(b===E)return!0;if(b===null||E===null||y.contains(b))return!1;y.add(b);for(var z=b.linksConnected;z.next();){var ne=z.value;if(ne!==x){var ie=ne.fromNode;if(ne=ne.toNode,ie=ie===b?ne:ie,ie!==b&&xc(a,y,ie,E,x))return!0}}return!1}un.Object.defineProperties(La.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 b=y.O.indexOf(this.j);y.mb(b),y.Gb(b,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 b=y.O.indexOf(this.o);y.mb(b),y.Gb(b,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}}}),La.className="LinkingBaseTool";function il(){La.call(this),this.name="Linking",this.V={},this.F=null,this.K=cu,this.Xd=null}hn(il,La),il.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},il.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 ii)))return null;var b=this.direction;if(b===cu||b===Ic){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(b===cu||b===Zc)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},il.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 ii&&(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 ii&&(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)},il.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()},il.prototype.doStop=function(){La.prototype.doStop.call(this),this.startObject=null},il.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,b=null,E=null,x=null,z=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var ie=ne.part;ie instanceof ii&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,b=this.originalFromPort),E=ie,x=ne):(y=ie,b=ne,this.originalToNode!==null&&(E=this.originalToNode,x=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,b=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,x=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,b,E,x),z!==null?(ne===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,b,E,x)):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)}}},il.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Mr)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)},il.prototype.insertLink=function(a,y,b,E){return this.diagram.partManager.insertLink(a,y,b,E)},il.prototype.doNoLink=function(){},un.Object.defineProperties(il.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 cu=new Ln(il,"Either",0),Ic=new Ln(il,"ForwardsOnly",0),Zc=new Ln(il,"BackwardsOnly",0);il.className="LinkingTool",il.Either=cu,il.ForwardsOnly=Ic,il.BackwardsOnly=Zc;function Al(){La.call(this),this.name="Relinking";var a=new ro;a.figure="Diamond",a.desiredSize=mi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ro,a.figure="Diamond",a.desiredSize=mi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new An}hn(Al,La),Al.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Mr){var y="RelinkFrom",b=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(b=a.Pj(y),b===null&&(b=this.makeAdornment(E,!1),a.bh(y,b)))}b===null&&a.Jf(y),y="RelinkTo",b=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(b=a.Pj(y),b===null?(b=this.makeAdornment(E,!0),a.bh(y,b)):b.v())),b===null&&a.Jf(y)}},Al.prototype.makeAdornment=function(a,y){var b=new _o;return b.type=Nr.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&b.add(y.copy()),b.adornedObject=a,b},Al.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},Al.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 b=y.part;if(!(b instanceof _o&&b.adornedPart instanceof Mr))return;this.handle=y,this.isForwards=b===null||b.category==="RelinkTo",this.originalLink=b.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=Kn),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Kn),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},Al.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var b=a.curve;(b===yg||b===kh)&&(b=Jl),y.curve=b,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}},Al.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()},Al.prototype.doStop=function(){La.prototype.doStop.call(this),this.handle=null},Al.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,b=this.originalFromPort,E=this.originalToNode,x=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ne=this.targetPort.part;ne instanceof ii&&(this.isForwards?(E=ne,x=this.targetPort):(y=ne,b=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?x=E=null:b=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?x:b,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()}}},Al.prototype.reconnectLink=function(a,y,b,E){return b=b!==null&&b.portId!==null?b.portId:"",E?(a.toNode=y,a.toPortId=b):(a.fromNode=y,a.fromPortId=b),!0},Al.prototype.doNoRelink=function(){};function Ce(a,y,b,E,x){y!==null?(a.copyPortProperties(y,b,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,x,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}un.Object.defineProperties(Al.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 _o))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Al.className="RelinkingTool",Si("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Si("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ye(){vo.call(this),this.name="LinkReshaping";var a=new ro;a.figure="Rectangle",a.desiredSize=Li,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new ro,a.figure="Diamond",a.desiredSize=mi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new rt,this.Yq=new rr}hn(Ye,vo),Ye.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:pt},Ye.prototype.om=function(a,y){a.reshapingBehavior=y},Ye.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Mr){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.path;b!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(b),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Ye.prototype.makeAdornment=function(a){var y=a.part,b=y.pointsCount,E=y.isOrthogonal,x=null;if(y.points!==null&&1<b){x=new _o,x.type=Nr.Link,b=y.firstPickIndex;var z=y.lastPickIndex,ne=E?1:0;if(y.resegmentable&&y.computeCurve()!==ic)for(var ie=b+ne;ie<z-ne;ie++){var se=this.makeResegmentHandle(a,ie);se!==null&&(se.segmentIndex=ie,se.segmentFraction=.5,se.fromMaxLinks=999,x.add(se))}for(ne=b+1;ne<z;ne++)if(ie=this.makeHandle(a,ne),ie!==null){if(ie.segmentIndex=ne,ne!==b)if(ne===b+1&&E){se=y.i(b);var de=y.i(b+1);an.B(se.x,de.x)&&an.B(se.y,de.y)&&(de=y.i(b-1)),an.B(se.x,de.x)?(this.om(ie,_t),ie.cursor="n-resize"):an.B(se.y,de.y)&&(this.om(ie,Ft),ie.cursor="w-resize")}else ne===z-1&&E?(se=y.i(z-1),de=y.i(z),an.B(se.x,de.x)&&an.B(se.y,de.y)&&(se=y.i(z+1)),an.B(se.x,de.x)?(this.om(ie,_t),ie.cursor="n-resize"):an.B(se.y,de.y)&&(this.om(ie,Ft),ie.cursor="w-resize")):ne!==z&&(this.om(ie,rn),ie.cursor="move");x.add(ie)}x.adornedObject=a}return x},Ye.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ye.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ye.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},Ye.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 Mr){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var b=y.points.copy(),E=this.getResegmentingPoint();if(b.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&b.Gb(this.handle.segmentIndex+1,E),y.points=b,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}}},Ye.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ye.prototype.stopTransaction=function(){var a=this.diagram,y=vo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ye.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ye.prototype.getResegmentingPoint=function(){return this.handle.ga(uo)},Ye.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ye.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 b=this.handle.segmentIndex,E=y.i(b-1),x=y.i(b),z=y.i(b+1);if(y.isOrthogonal){if(b>y.firstPickIndex+1&&b<y.lastPickIndex-1){var ne=y.i(b-2);if(Math.abs(E.x-x.x)<this.resegmentingDistance&&Math.abs(E.y-x.y)<this.resegmentingDistance&&(tt(this,ne,E,x,z,!0)||tt(this,ne,E,x,z,!1))){var ie=y.points.copy();tt(this,ne,E,x,z,!0)?(ie.cd(b-2,new rt(ne.x,(z.y+ne.y)/2)),ie.cd(b+1,new rt(z.x,(z.y+ne.y)/2))):(ie.cd(b-2,new rt((z.x+ne.x)/2,ne.y)),ie.cd(b+1,new rt((z.x+ne.x)/2,z.y))),ie.mb(b),ie.mb(b-1),y.points=ie,y.Wb()}else ne=y.i(b+2),Math.abs(x.x-z.x)<this.resegmentingDistance&&Math.abs(x.y-z.y)<this.resegmentingDistance&&(tt(this,E,x,z,ne,!0)||tt(this,E,x,z,ne,!1))&&(ie=y.points.copy(),tt(this,E,x,z,ne,!0)?(ie.cd(b-1,new rt(E.x,(E.y+ne.y)/2)),ie.cd(b+2,new rt(ne.x,(E.y+ne.y)/2))):(ie.cd(b-1,new rt((E.x+ne.x)/2,E.y)),ie.cd(b+2,new rt((E.x+ne.x)/2,ne.y))),ie.mb(b+1),ie.mb(b),y.points=ie,y.Wb())}}else ne=rt.alloc(),an.qh(E.x,E.y,z.x,z.y,x.x,x.y,ne)&&ne.Bf(x)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(b),y.points=E,y.Wb()),rt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function tt(a,y,b,E,x,z){return z?Math.abs(y.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-x.y)<a.resegmentingDistance:Math.abs(y.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-x.x)<a.resegmentingDistance}Ye.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var b=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(b===y.firstPickIndex+1)b=y.firstPickIndex+1,E===_t?(y.L(b,y.i(b-1).x,a.y),y.L(b+1,y.i(b+2).x,a.y)):E===Ft&&(y.L(b,a.x,y.i(b-1).y),y.L(b+1,a.x,y.i(b+2).y));else if(b===y.lastPickIndex-1)b=y.lastPickIndex-1,E===_t?(y.L(b-1,y.i(b-2).x,a.y),y.L(b,y.i(b+1).x,a.y)):E===Ft&&(y.L(b-1,a.x,y.i(b-2).y),y.L(b,a.x,y.i(b+1).y));else{E=b;var x=y.i(E),z=y.i(E-1),ne=y.i(E+1);an.B(z.x,x.x)&&an.B(x.y,ne.y)?(an.B(z.x,y.i(E-2).x)&&!an.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),b++,E++):y.L(E-1,a.x,z.y),an.B(ne.y,y.i(E+2).y)&&!an.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)):an.B(z.y,x.y)&&an.B(x.x,ne.x)?(an.B(z.y,y.i(E-2).y)&&!an.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),b++,E++):y.L(E-1,z.x,a.y),an.B(ne.x,y.i(E+2).x)&&!an.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):an.B(z.x,x.x)&&an.B(x.x,ne.x)?(an.B(z.x,y.i(E-2).x)&&!an.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),b++,E++):y.L(E-1,a.x,z.y),an.B(ne.x,y.i(E+2).x)&&!an.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):an.B(z.y,x.y)&&an.B(x.y,ne.y)&&(an.B(z.y,y.i(E-2).y)&&!an.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),b++,E++):y.L(E-1,z.x,a.y),an.B(ne.y,y.i(E+2).y)&&!an.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)),y.L(b,a.x,a.y)}else y.L(b,a.x,a.y),E=y.fromNode,x=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,x=E.port)),b===1&&y.computeSpot(!0,x).Mc()&&(z=x.ga(uo,rt.alloc()),E=y.getLinkPointFromPoint(E,x,z,a,!0,rt.alloc()),y.L(0,E.x,E.y),rt.free(z),rt.free(E)),E=y.toNode,x=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,x=E.port)),b===y.pointsCount-2&&y.computeSpot(!1,x).Mc()&&(b=x.ga(uo,rt.alloc()),a=y.getLinkPointFromPoint(E,x,b,a,!1,rt.alloc()),y.L(y.pointsCount-1,a.x,a.y),rt.free(b),rt.free(a));y.zf()},Ye.prototype.computeReshape=function(a){var y=this.adornedLink,b=this.handle.segmentIndex;switch(this.Ru(this.handle)){case rn:return a;case _t:return new rt(y.i(b).x,a.y);case Ft:return new rt(a.x,y.i(b).y);default:case pt:return y.i(b)}},un.Object.defineProperties(Ye.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 _o))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}}}),Ye.prototype.setReshapingBehavior=Ye.prototype.om,Ye.prototype.getReshapingBehavior=Ye.prototype.Ru;var pt=new Ln(Ye,"None",0),Ft=new Ln(Ye,"Horizontal",1),_t=new Ln(Ye,"Vertical",2),rn=new Ln(Ye,"All",3);Ye.className="LinkReshapingTool",Ye.None=pt,Ye.Horizontal=Ft,Ye.Vertical=_t,Ye.All=rn,Si("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Pn(){vo.call(this),this.name="Resizing",this.o=new cn(1,1).freeze(),this.j=new cn(9999,9999).freeze(),this.yg=new cn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new ro;a.alignmentFocus=uo,a.figure="Rectangle",a.desiredSize=Li,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new rt,this.Dw=new cn,this.Tn=new rt,this.rt=new cn(0,0),this.qt=new cn(1/0,1/0),this.pt=new cn(1,1)}hn(Pn,vo),Pn.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Mr)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,b=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((b===null||b.adornedObject!==y)&&(b=this.makeAdornment(y)),b!==null)){y=y.li(),of(a)&&this.updateResizeHandles(b,y),a.bh(this.name,b);return}}a.Jf(this.name)}},Pn.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new _o,y.type=Nr.Spot,y.locationSpot=uo;var b=new Ql;b.isPanelMain=!0,y.add(b),y.add(this.makeHandle(a,No)),y.add(this.makeHandle(a,os)),y.add(this.makeHandle(a,ra)),y.add(this.makeHandle(a,qa)),y.add(this.makeHandle(a,Is)),y.add(this.makeHandle(a,hs)),y.add(this.makeHandle(a,vs)),y.add(this.makeHandle(a,js))}else if(Pc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Pn.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Pn.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var b=a.alignment;if(b.Mc()&&(b=uo),0>=b.x)y=0>=b.y?y+225:1<=b.y?y+135:y+180;else if(1<=b.x)0>=b.y?y+=315:1<=b.y&&(y+=45);else if(0>=b.y)y+=270;else if(1<=b.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 Nr)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Pn.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},Pn.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))},Pn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Pn.prototype.stopTransaction=function(){var a=this.diagram,y=vo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Pn.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Pn.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,b=this.qt,E=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,rt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),a.bd(),rt.free(x)}},Pn.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,b=this.qt,E=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,rt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),rt.free(x),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Pn.prototype.resize=function(a){var y=this.diagram,b=this.adornedObject;if(b!==null){if(b.desiredSize=a.size,a=b.part,a.Va(),b=b.ga(this.handle.alignment.gv()),a instanceof $i){var E=new rr;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var x=new le;x.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(b),!0,x)}else a.location=a.location.copy().re(b).add(this.oppositePoint);y.bd()}},Pn.prototype.computeResize=function(a,y,b,E,x,z){y.Mc()&&(y=uo);var ne=this.adornedObject.naturalBounds,ie=ne.x,se=ne.y,de=ne.x+ne.width,pe=ne.y+ne.height,Se=1;if(!z){Se=ne.width;var Ne=ne.height;0>=Se&&(Se=1),0>=Ne&&(Ne=1),Se=Ne/Se}return Ne=rt.alloc(),an.No(a.x,a.y,ie,se,x.width,x.height,Ne),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ne.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=Math.max(de-a.x,b.width),a.y=Math.max(Ne.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=Math.max(pe-a.y,b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.x=de-a.width,a.y=pe-a.height)):1<=y.y?(a.x=Math.max(Ne.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=Math.max(de-a.x,b.width),a.height=Math.max(Math.min(Ne.y-se,E.height),b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.x=de-a.width)):(a.x=Math.max(Ne.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=de-a.x,z||(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se,a.y=se+.5*(pe-se-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ne.x-ie,E.width),b.width),a.y=Math.max(Ne.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=Math.max(pe-a.y,b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.y=pe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ne.x-ie,E.width),b.width),a.height=Math.max(Math.min(Ne.y-se,E.height),b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width))):(a.width=Math.max(Math.min(Ne.x-ie,E.width),b.width),z||(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se,a.y=se+.5*(pe-se-a.height))):0>=y.y?(a.y=Math.max(Ne.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=pe-a.y,z||(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width,a.x=ie+.5*(de-ie-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ne.y-se,E.height),b.height),z||(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width,a.x=ie+.5*(de-ie-a.width))),rt.free(Ne),a},Pn.prototype.computeReshape=function(){var a=mr;return this.adornedObject instanceof ro&&(a=Bv(this.adornedObject)),!(a===bi||this.diagram.lastInput.shift)},Pn.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},Pn.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},Pn.prototype.computeCellSize=function(){var a=new cn(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},un.Object.defineProperties(Pn.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 _o))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 _o)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}}}),Pn.className="ResizingTool",Si("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function br(){vo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new rt,this.ue=null;var a=new ro;a.figure="Ellipse",a.desiredSize=mi,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new rt(NaN,NaN),this.u=0,this.F=50}hn(br,vo),br.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 b=a.Pj(this.name);if((b===null||b.adornedObject!==y)&&(b=this.makeAdornment(y)),b!==null){b.angle=y.li(),b.placeholder===null&&(b.location=this.computeAdornmentLocation(y)),a.bh(this.name,b);return}}a.Jf(this.name)}},br.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new _o,y.type=Nr.Position,y.locationSpot=uo;var b=this.handleArchetype;b!==null&&y.add(b.copy())}else if(Pc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},br.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},br.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)},br.prototype.computeRotationPoint=function(a){var y=a.part,b=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===b?b.ga(y.locationSpot):a.ga(uo)},br.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var b=this.handleAngle;0>b?b+=360:360<=b&&(b-=360),b=Math.round(45*Math.round(b/45));var E=this.handleDistance;return b===0?y.x=a.naturalBounds.width+E:b===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):b===90?y.y=a.naturalBounds.height+E:b===135?(y.x=-E,y.y=a.naturalBounds.height+E):b===180?y.x=-E:b===225?(y.x=-E,y.y=-E):b===270?y.y=-E:b===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},br.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new rt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},br.prototype.stopTransaction=function(){var a=this.diagram,y=vo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},br.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},br.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},br.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()},br.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var b=y.locationObject,E=y.rotateObject;(b===E||b.rg(E))&&(b=this.Tn.copy(),y.location=b.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},br.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 b=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<b&&(a%y<b?a=Math.floor(a/y)*y:a%y>y-b&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},un.Object.defineProperties(br.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 _o))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 _o)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}}}),br.className="RotatingTool",Si("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function wr(){vo.call(this),this.name="ClickSelecting"}hn(wr,vo),wr.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},wr.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},wr.className="ClickSelectingTool";function ir(){vo.call(this),this.name="Action",this.pk=null}hn(ir,vo),ir.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,b=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return b!==null&&b.isActionable?(this.pk=b,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},ir.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()},ir.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))}},ir.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(b){for(;b.panel!==null&&(!b.isActionable||b!==y);)b=b.panel;return b},function(b){return b===y})}this.stopTool()},ir.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())},ir.prototype.doStop=function(){this.pk=null},ir.className="ActionTool";function Yr(){vo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new rt(0,0)}hn(Yr,vo),Yr.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)},Yr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Yr.prototype.insertPart=function(a){var y=this.diagram,b=this.archetypeNodeData;if(b===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),b instanceof ki)b.Zc()&&(Pc(b),E=b.copy(),E!==null&&y.add(E));else if(b!==null){var x=y.model.copyNodeData(b);nn(x)&&(y.model.xf(x),E=y.Lc(x))}if(E!==null){var z=rt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Df(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),rt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},un.Object.defineProperties(Yr.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}}}),Yr.className="ClickCreatingTool";function Br(){vo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ki;a.layerName="Tool",a.selectable=!1;var y=new ro;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}hn(Br,vo),Br.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))},Br.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Br.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Br.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),b=this.box.fb("SHAPE");b===null&&(b=this.box.Pb());var E=cn.alloc().h(y.width,y.height);b.desiredSize=E,this.box.mm(y.x,y.y,!1),cn.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Br.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()},Br.prototype.computeBoxBounds=function(){var a=this.diagram;return new An(a.firstInput.documentPoint,a.lastInput.documentPoint)},Br.prototype.selectInRect=function(a){var y=this.diagram,b=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),xi?b.meta:b.control)if(b.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(b.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(b=new rr,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||b.add(E)}for(y=b.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},un.Object.defineProperties(Br.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}}}),Br.className="DragSelectingTool";function dr(){vo.call(this),this.name="Panning",this.Xt=new rt,this.xy=new rt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(sr.document,"scroll",a.Kw,!1),a.stopTool()}}hn(dr,vo),dr.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())},dr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(sr.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},dr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},dr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},dr.prototype.doMouseMove=function(){this.move()},dr.prototype.doMouseUp=function(){this.move(),this.stopTool()},dr.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,b=a.firstInput.documentPoint,E=a.lastInput.documentPoint,x=y.x+b.x-E.x;b=y.y+b.y-E.y,a.allowHorizontalScroll||(x=y.x),a.allowVerticalScroll||(b=y.y),a.position=this.xy.h(x,b)}},un.Object.defineProperties(dr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),dr.className="PanningTool",Si("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Si("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Si("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Si("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Si("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Co(){this.F=this.u=this.j=this.o=null}un.Object.defineProperties(Co.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}}}),Co.className="HTMLInfo";function zo(a,y,b){this.text=a,this.hx=y,this.visible=b}zo.className="ContextMenuButtonInfo";function ea(){vo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new rt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}hn(ea,vo);function io(a){var y=new Co;y.show=function(x,z,ne){ne.showDefaultContextMenu()},y.hide=function(x,z){z.hideDefaultContextMenu()},Zi=y,a.tu=function(){a.stopTool()},y=Wr("div");var b=Wr("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",b.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=Wr("style");sr.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",Ro,!1),E.addEventListener(y,"selectstart",Ro,!1),E.addEventListener(b,"contextmenu",Ro,!1)),y.className="goCXforeground",b.className="goCXbackground",sr.document.body&&(sr.document.body.appendChild(y),sr.document.body.appendChild(b)),ja=y,Za=b,es=!0}function Ro(a){return a.preventDefault(),!1}ea.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)},ea.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ea.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ea.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.lastInput,E=null;if(a instanceof kn||(a instanceof tn?E=a:E=y.ic(b.documentPoint,null,function(x){return!x.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},ea.prototype.doActivate=function(){},ea.prototype.doMouseDown=function(){if(vo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof _o){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Bo(this)},ea.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof _o){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Bo(this)};function Bo(a){var y=a.diagram;if(a.isActive){var b=a.currentContextMenu;if(b!==null){var E=null;b instanceof Co||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(b)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Ya(a,!0),a.isActive||a.stopTool())}ea.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Ya(a,y,b){if(b===void 0&&(b=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Zi,b===null&&(b=a.findObjectWithContextMenu()),b!==null){var E=b.contextMenu;E!==null?(a.currentObject=b instanceof tn?b:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof _o&&!a.currentContextMenu.visible&&a.stopTool()}}ea.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ea.prototype.showContextMenu=function(a,y){var b=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof _o){a.layerName="Tool",a.selectable=!1,a.scale=1/b.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=b.scale);var E=a.diagram;E!==null&&E!==b&&E.remove(a),b.add(a),y!==null?a.adornedObject=y:a.data=b.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Co&&a.show(y,b,this);this.currentContextMenu=a},ea.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,b=y.lastInput.documentPoint.copy(),E=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(b.x-=E.width),b.x+E.width>x.right&&(b.x-=E.width+5/y.scale),b.x<x.x&&(b.x=x.x),b.y+E.height>x.bottom&&(b.y-=E.height+5/y.scale),b.y<x.y&&(b.y=x.y),a.position=b}},ea.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof _o?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Co&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Xa(a){var y=new rr;return y.add(new zo("Copy",function(b){b.commandHandler.copySelection()},function(b){return b.commandHandler.canCopySelection()})),y.add(new zo("Cut",function(b){b.commandHandler.cutSelection()},function(b){return b.commandHandler.canCutSelection()})),y.add(new zo("Delete",function(b){b.commandHandler.deleteSelection()},function(b){return b.commandHandler.canDeleteSelection()})),y.add(new zo("Paste",function(b){b.commandHandler.pasteSelection(a.mouseDownPoint)},function(b){return b.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new zo("Select All",function(b){b.commandHandler.selectAll()},function(b){return b.commandHandler.canSelectAll()})),y.add(new zo("Undo",function(b){b.commandHandler.undo()},function(b){return b.commandHandler.canUndo()})),y.add(new zo("Redo",function(b){b.commandHandler.redo()},function(b){return b.commandHandler.canRedo()})),y.add(new zo("Scroll To Part",function(b){b.commandHandler.scrollToPart()},function(b){return b.commandHandler.canScrollToPart()})),y.add(new zo("Zoom To Fit",function(b){b.commandHandler.zoomToFit()},function(b){return b.commandHandler.canZoomToFit()})),y.add(new zo("Reset Zoom",function(b){b.commandHandler.resetZoom()},function(b){return b.commandHandler.canResetZoom()})),y.add(new zo("Group Selection",function(b){b.commandHandler.groupSelection()},function(b){return b.commandHandler.canGroupSelection()})),y.add(new zo("Ungroup Selection",function(b){b.commandHandler.ungroupSelection()},function(b){return b.commandHandler.canUngroupSelection()})),y.add(new zo("Edit Text",function(b){b.commandHandler.editTextBlock()},function(b){return b.commandHandler.canEditTextBlock()})),y}ea.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Xa(this)),ja.innerHTML="",Za.addEventListener("pointerdown",this.tu,!1);var y=this,b=Wr("ul");b.className="goCXul",ja.appendChild(b),b.innerHTML="";for(var E=this.jt.iterator;E.next();){var x=E.value,z=x.visible;if(typeof x.hx=="function"&&(typeof z!="function"||z(a))){z=Wr("li"),z.className="goCXli";var ne=Wr("a");ne.className="goCXa",ne.href="#",ne.ky=x.hx,ne.addEventListener("pointerdown",function(ie){return this.ky(a),y.stopTool(),ie.preventDefault(),!1},!1),ne.textContent=x.text,z.appendChild(ne),b.appendChild(z)}}ja.style.display="block",Za.style.display="block"},ea.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Zi){ja.style.display="none",Za.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Za,"pointerdown",this.tu,!1),this.currentContextMenu=null}},un.Object.defineProperties(ea.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof _o?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return es===!1&&Zi===null&&Da&&io(this),Zi},set:function(a){a===null&&(es=!0),Zi=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Zi=null,es=!1,Za=null,ja=null;ea.className="ContextMenuTool",Si("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function bo(){vo.call(this),this.name="TextEditing",this.Zh=new ma,this.ia=null,this.V=El,this.vj=null,this.qa=Ar,this.u=1,this.F=!0,this.o=null,this.j=new Co,this.kt=null,fl(this,this.j)}hn(bo,vo);function fl(a,y){if(Da){var b=Wr("textarea");a.kt=b,b.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),b.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var x=E.key;x==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(ps)):x==="Tab"?(a.acceptText(wa),E.preventDefault()):x==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),b.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ar){var E=a.kt;a.qa===Nl&&(a.qa=Ol),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),b.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ar){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return b.value},y.mainElement=b,y.show=function(E,x,z){if(E instanceof ma&&z instanceof bo)if(z.state===ol)b.style.border="3px solid red",b.focus();else{var ne=E.ga(uo),ie=x.position,se=x.scale,de=E.Df()*se;de<z.minimumEditorScale&&(de=z.minimumEditorScale);var pe=E.naturalBounds.width*de+6,Se=E.naturalBounds.height*de+2,Ne=(ne.x-ie.x)*se;ne=(ne.y-ie.y)*se,ie=E.verticalAlignment,se=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*de,Se=ie.y*Se-ie.y*se+ie.offsetY-(.5*Se-.5*se)-se/2,b.value=E.text,x.div.style.font=E.font,b.style.position="absolute",b.style.zIndex="100",b.style.font="inherit",b.style.fontSize=100*de+"%",b.style.lineHeight="normal",b.style.width=pe+"px",b.style.left=(Ne-pe/2|0)-1+"px",b.style.top=(ne+Se|0)-1+"px",b.style.textAlign=E.textAlign,b.style.margin="0",b.style.padding="1px",b.style.border="0",b.style.outline="none",b.style.whiteSpace="pre-wrap",b.style.overflow="hidden",b.rows=E.lineCount,b.wA=de,b.className="goTXarea",x.div.appendChild(b),b.focus(),z.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(b)}}}bo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||du&&du!==this&&(du.acceptText(Zo),du&&du!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ma&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===El&&!y.isSelected||this.starting===Kl&&2>a.lastInput.clickCount)):!1},bo.prototype.doStart=function(){du=this,this.textBlock!==null&&this.doActivate()},bo.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 ma&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Nl;var b=this.defaultTextEditor;y.textEditor!==null&&(b=y.textEditor),this.Zh=this.textBlock.copy();var E=new An(this.textBlock.ga(No),this.textBlock.ga(ra));a.tv(E),b.show(y,a,this),this.currentTextEditor=b}}}},bo.prototype.doCancel=function(){this.stopTool()},bo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},bo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Zo)},bo.prototype.acceptText=function(a){switch(a){case Zo:this.qa===wu?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Nl||this.qa===ol||this.qa===Ol)&&(this.qa=Ir,ls(this));break;case Xo:case ps:case wa:(ps!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Nl||this.qa===ol||this.qa===Ol)&&(this.qa=Ir,ls(this))}};function ls(a){var y=a.textBlock,b=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var x=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,x,z)?(a.Ea(a.name),a.qa=wu,a.transactionResult=a.name,y.text=z,a.doSuccess(x,z),b!==null&&b.R("TextEdited",y,x),a.stopTransaction(),a.stopTool(),b!==null&&b.doFocus()):(a.qa=ol,a.doError(x,z))}}bo.prototype.doError=function(a,y){var b=this.textBlock;b.errorFunction!==null&&b.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(b,this.diagram,this)},bo.prototype.doSuccess=function(a,y){var b=this.textBlock;b.textEdited!==null&&b.textEdited(b,a,y)},bo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ar,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},bo.prototype.doStop=function(){du=null},bo.prototype.isValidText=function(a,y,b){var E=this.textValidation;return E!==null&&!E(a,y,b)?!1:(E=a.textValidation,!!(E===null||E(a,y,b)))},bo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},un.Object.defineProperties(bo.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)}}}),bo.prototype.measureTemporaryTextBlock=bo.prototype.Lx;var Xo=new Ln(bo,"LostFocus",0),Zo=new Ln(bo,"MouseDown",1),wa=new Ln(bo,"Tab",2),ps=new Ln(bo,"Enter",3),Js=new Ln(bo,"SingleClick",0),El=new Ln(bo,"SingleClickSelected",1),Kl=new Ln(bo,"DoubleClick",2),Ar=new Ln(bo,"StateNone",0),Nl=new Ln(bo,"StateActive",1),Ol=new Ln(bo,"StateEditing",2),Ir=new Ln(bo,"StateValidating",3),ol=new Ln(bo,"StateInvalid",4),wu=new Ln(bo,"StateValidated",5),du=null;bo.className="TextEditingTool",bo.LostFocus=Xo,bo.MouseDown=Zo,bo.Tab=wa,bo.Enter=ps,bo.SingleClick=Js,bo.SingleClickSelected=El,bo.DoubleClick=Kl,bo.StateNone=Ar,bo.StateActive=Nl,bo.StateEditing=Ol,bo.StateValidating=Ir,bo.StateInvalid=ol,bo.StateValidated=wu,Si("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function qs(a){ci||(en(),ci=!0),this.H=Rc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Ai,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ur,this.ce=new li,this.ce.Yd=this,this.Ei=new ur,this.pu=new ur,this.Sr=new ur,this.pr=new ur,a&&Object.assign(this,a)}qs.prototype.Xe=function(a){this.H=a},qs.prototype.canStart=function(){return!0};function Es(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),$s(a.H),a.zb=!0)}function hu(a){if(a.Jd&&a.zb){var y=a.ce,b=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Ai?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(b,"position",b.position.copy().offset(0,-200),b.position),y.add(b,"opacity",0,1)):a.Pk===Ko&&y.vc.clear(),a.Qw=!!(a.Pk===Lo&&b.du.D(b.pa)),b.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),eo(y,b),a.Ok=!1,b.N()):(a.Zd.clear(),b.kg=!1,E=y.vc.get(b),b.autoScale!==wl&&E!==null&&(delete E.start.scale,delete E.end.scale),sr.requestAnimationFrame(function(){a.zb===!1||y.bc||(b.Gf("temporaryPixelRatio")&&sl(b),Zh(b),a.zb=!1,y.start(),y.bc&&(xl(a),b.Ya(),_u(y,0),Pu(b,!0),fu(a),b.R("AnimationStarting",a)))}))}}function al(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qu(a,y,b,E){a.isTicking||al(a)||y instanceof Mr&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",b,E,!1)}Me=qs.prototype,Me.fv=function(a){return this.ce.fv(a)},Me.Xu=function(a){return this.ce.Xu(a)};function hc(a,y){function b(){if(0<x.Sr.count&&(E.addAll(x.Sr),x.Sr.clear(),x.bc=!0),x.bc!==!1&&E.count!==0){x.pu.addAll(E);for(var z=x.pu.iterator;z.next();){var ne=z.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var ie=!0;else{for(ie=ne.vc.iterator;ie.next();){var se=ie.key;if(se instanceof tn&&se.diagram!==null||se instanceof kn){ie=!0;break e}}ie=!1}ie?ns(ne,!1):ne.Xk=!0}}x.pu.clear(),x.bc!==!1&&(xl(x),Pu(x.H),fu(x)),sr.requestAnimationFrame(b)}}var E=a.Ei,x=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),sr.requestAnimationFrame(function(){b()}))}function wd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function xl(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 fu(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Me.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(),eo(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),eo(y,this.H)},Me.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))},Me.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ge(this,a))},Me.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Vo(this.ce,y,"position",y.position,y.position),ge(this,a))};function hd(a,y,b){!a.zb||y.D(b)||al(a)||(a.H.pi||(y=b.copy()),Vo(a.ce,a.H,"position",y,b))}function ce(a,y,b){y.fd&&(y.Tg=b,a.pr.add(y))}function ge(a,y){for(y=y.findLinksConnected();y.next();){var b=y.value;b.fd&&(b.Tg=b.points.copy(),a.pr.add(b))}}function et(a,y,b,E,x){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ne=a[1],ie=a[2];a=a[3];var se=y[0],de=y[1],pe=y[2];return y=y[3],ie===0||ie===100?(z=se,ne=de):(pe===0||pe===100)&&(se=z,de=ne),180<Math.abs(se-z)&&(se>z?z+=360:se+=360),z=x(b,z,se-z,E)%360,ne=x(b,ne,de-ne,E),ie=x(b,ie,pe-ie,E),b=x(b,a,y-a,E),"hsla("+z+", "+ne+"%, "+ie+"%, "+b+")"}function en(){function a(b,E,x,z,ne,ie){b.position=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}var y=new Rn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!1):b.position=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("location",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!0):b.location=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("position:placeholder",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!1):b.position=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("position:nodeCollapse",function(b,E,x,z,ne,ie){var se=b.actualBounds,de=x.actualBounds;x=de.x+de.width/2-se.width/2,se=de.y+de.height/2-se.height/2,ne<ie?b.mm(z(ne,E.x,x-E.x,ie),z(ne,E.y,se-E.y,ie),!1):b.position=new rt(z(ne,E.x,x-E.x,ie),z(ne,E.y,se-E.y,ie))}),y.add("desiredSize",function(b,E,x,z,ne,ie){b.desiredSize=new An(z(ne,E.width,x.width-E.width,ie),z(ne,E.height,x.height-E.height,ie))}),y.add("width",function(b,E,x,z,ne,ie){b.width=z(ne,E,x-E,ie)}),y.add("height",function(b,E,x,z,ne,ie){b.height=z(ne,E,x-E,ie)}),y.add("fill",function(b,E,x,z,ne,ie){b.fill=et(E,x,ne,ie,z)}),y.add("stroke",function(b,E,x,z,ne,ie){b.stroke=et(E,x,ne,ie,z)}),y.add("strokeWidth",function(b,E,x,z,ne,ie){b.strokeWidth=z(ne,E,x-E,ie)}),y.add("strokeDashOffset",function(b,E,x,z,ne,ie){b.strokeDashOffset=z(ne,E,x-E,ie)}),y.add("background",function(b,E,x,z,ne,ie){b.background=et(E,x,ne,ie,z)}),y.add("areaBackground",function(b,E,x,z,ne,ie){b.areaBackground=et(E,x,ne,ie,z)}),y.add("opacity",function(b,E,x,z,ne,ie){b.opacity=z(ne,E,x-E,ie)}),y.add("scale",function(b,E,x,z,ne,ie){b.scale=z(ne,E,x-E,ie)}),y.add("angle",function(b,E,x,z,ne,ie){b.angle=z(ne,E,x-E,ie)}),xr=y}un.Object.defineProperties(qs.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&&vr(a,">= 1",qs,"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}}}),qs.prototype.stopAnimation=qs.prototype.Cc;var xr=null,ci=!1,Ai=new Ln(qs,"Default",1),Lo=new Ln(qs,"AnimateLocations",2),Ko=new Ln(qs,"None",3);qs.className="AnimationManager",qs.defineAnimationEffect=function(a,y){ci||(en(),ci=!0),xr.add(a,y)},qs.Default=Ai,qs.AnimateLocations=Lo,qs.None=Ko;function li(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=Ju,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=jr,this.vc=new Rn,this.Tt=new Rn,this.yl=new ur,this.Ut=new ur,this.dw=Nd,a&&Object.assign(this,a)}li.prototype.suspend=function(){this.Xk=!0},li.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ns(this,!0),xl(this.Yd),Pu(this.H),fu(this.Yd),this.H.redraw()};function eo(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}Me=li.prototype,Me.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var b=y.key;a===null&&(b instanceof kn?a=b:b instanceof tn&&(a=b.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===Ai&&this===y.defaultAnimation&&(this.Lp=qu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Jh),xl(y),this.yl.each(function(E){E.data=null,a.add(E)}),fu(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,hc(y,this),this)},Me.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Me.add=function(a,y,b,E,x){if(y==="position"&&b.Xa(E))return this;if(this.H===null&&(a instanceof kn?this.H=a:a instanceof tn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ki){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Vo(this,a,y,b,E,x),this};function Vo(a,y,b,E,x,z){var ne=a.vc;if(y instanceof kn&&b==="position"&&(b="position:diagram"),(b==="fill"||b==="stroke"||b==="background"||b==="areaBackground")&&(rc(E),Bf(),E=[Lu.j,Lu.u,Lu.o,Lu.F],rc(x),Bf(),x=[Lu.j,Lu.u,Lu.o,Lu.F]),ne.contains(y)){var ie=ne.I(y),se=ie.start,de=ie.end;se[b]===void 0&&(se[b]=Aa(E)),de[b]=Aa(x)}else se={},de={},se[b]=Aa(E),de[b]=Aa(x),ie=se.position,y instanceof tn&&ie instanceof rt&&!ie.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ie.assign(de.position),ie=new pu(se,de,z),ne.add(y,ie);ne=se[b],ne instanceof rt&&!ne.w()&&ne.assign(a.o),z&&b.indexOf("position:")===0&&y instanceof ki?ie.Ku.location=Aa(y.location):z&&(ie.Ku[b]=Aa(E))}function Aa(a){return a instanceof rt||a instanceof cn?a.copy():a}Me.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Me.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ns(a,y){if(!a.Xk||y){var b=a.Yd;if(a.bc!==!1){var E=+new Date,x=E>a.cn?a.Gd:E-a.Qd;y&&(x=a.gw,x<a.Gd?(a.Qd=+new Date-x,a.cn=a.Qd+a.Gd):x=a.Gd),xl(b),_u(a,x),Pu(a.H,!0),fu(b),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function _u(a,y){for(var b=a.Gd,E=a.vc.iterator,x=a.Wk;E.next();){var z=E.key;if(!(z instanceof tn&&z.diagram===null)){var ne=E.value,ie=x?ne.end:ne.start;ne=x?ne.start:ne.end;var se=xr,de;for(de in ne)de==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||se.get(de)===null||se.get(de)(z,ie[de],ne[de],a.Lp,y,b,a)}}}Me.stop=function(){return this.bc?(this.Ml(!0),this):this},Me.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,b=this.Yd;this.Xk=this.bc=b.Ok=!1,xl(b);for(var E=this.vc,x=this.yl.iterator;x.next();)y.remove(x.value);for(x=this.Ut.iterator;x.next();)x.value.v();x=this.ho,E=E.iterator;for(var z=xr;E.next();){var ne=E.key,ie=E.value,se=x?ie.end:ie.start,de=x?ie.start:ie.end,pe=ie.Ku,Se;for(Se in de)if(z.get(Se)!==null){var Ne=Se;!ie.Hu||Ne!=="position:nodeCollapse"&&Ne!=="position:placeholder"||(Ne="position"),z.get(Ne)(ne,se[Se],pe[Se]!==void 0?pe[Se]:ie.Hu?se[Se]:de[Se],this.Lp,this.Gd,this.Gd,this)}ie.Hu&&pe.location!==void 0&&ne instanceof ki&&(ne.location=pe.location),ie.nv&&ne instanceof ki&&ne.Zb(!1)}if(y.As.clear(),Wh(y,!1),y.Ya(),y.N(),Pu(y,!0),b.defaultAnimation===this){for(Se=b.pr.iterator;Se.next();)x=Se.value,x.Tg!==null&&(x.points=x.Tg,x.Tg=null);b.pr.clear()}Pu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),fu(b),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),eo(this,null),b.Ml(this),y.$b())}},Me.Cj=function(a,y){var b=y.actualBounds,E=null;if(y instanceof $i&&(E=y.placeholder),E!==null?(b=E.ga(No),E=E.padding,b.x+=E.left,b.y+=E.top,this.add(a,"position",b,a.position,!1)):this.add(a,"position",new rt(b.x+b.width/2,b.y+b.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof $i)for(a=a.memberParts;a.next();)E=a.value,E instanceof ii&&this.Cj(E,y)},Me.Aj=function(a,y){if(a.isVisible()){var b=null;if(y instanceof $i&&(b=y.placeholder),b!==null){var E=b.ga(No);b=b.padding,E.x+=b.left,E.y+=b.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof $i)for(a=a.memberParts;a.next();)E=a.value,E instanceof ii&&this.Aj(E,y)}},Me.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},un.Object.defineProperties(li.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&vr(a,">= 1",li,"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:kt("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}}}),li.prototype.getTemporaryState=li.prototype.Ez,li.prototype.stop=li.prototype.stop,li.prototype.add=li.prototype.add,li.prototype.addTemporaryPart=li.prototype.Iy;function Ju(a,y,b,E){return a/=E/2,1>a?b/2*a*a+y:-b/2*(--a*(a-2)-1)+y}function qu(a,y,b,E){return a===E?y+b:b*(-Math.pow(2,-10*a/E)+1)+y}li.className="Animation",li.EaseLinear=function(a,y,b,E){return b*a/E+y},li.EaseInOutQuad=Ju,li.EaseInQuad=function(a,y,b,E){return b*(a/=E)*a+y},li.EaseOutQuad=function(a,y,b,E){return-b*(a/=E)*(a-2)+y},li.EaseInExpo=function(a,y,b,E){return a===0?y:b*Math.pow(2,10*(a/E-1))+y},li.EaseOutExpo=qu;function pu(a,y,b){this.start=a,this.end=y,this.Ku={},this.Hu=b,this.nv=!1}pu.className="AnimationState";function Fl(a,y,b){this.xd=null,this.rf=a,this.so=b||Kc,this.uk=null,y!==void 0&&(this.uk=y,b===void 0&&(this.so=Yl))}Fl.prototype.copy=function(){var a=new Fl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var b={};y.duration!==void 0&&(b.duration=y.duration),y.finished!==void 0&&(b.finished=y.finished),y.easing!==void 0&&(b.easing=y.easing),a.uk=b}return a};function Cu(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))}un.Object.defineProperties(Fl.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 Kc=new Ln(Fl,"Default",1),Yl=new Ln(Fl,"Immediate",2),ph=new Ln(Fl,"Bundled",3);Fl.className="AnimationTrigger",Fl.Default=Kc,Fl.Immediate=Yl,Fl.Bundled=ph;function Rs(a){vi(this),this.H=null,this.Pa=new rr,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)}Me=Rs.prototype,Me.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var b=a.s[y];b.Ig=null,ml(b)}a.clear(),this.Zq.length=0},Me.Xe=function(a){this.H=a},Me.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var b=0,E=0,x=0,z=0,ne=0,ie=this.Pa.iterator;ie.next();){var se=ie.value;se instanceof $i?x++:se instanceof ii?E++:se instanceof Mr?z++:se instanceof _o?ne++:b++}if(ie="",0<b&&(ie+=b+" Parts "),0<E&&(ie+=E+" Nodes "),0<x&&(ie+=x+" Groups "),0<z&&(ie+=z+" Links "),0<ne&&(ie+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)b=a.value,ie+=`
`+b.toString(),E=b.data,E!==null&&Mi(E)&&(ie+=" #"+Mi(E)),b instanceof ii?ie+=" "+hi(E):b instanceof Mr&&(ie+=" "+hi(b.fromNode)+" "+hi(b.toNode));return y+" "+this.Pa.count+": "+ie},Me.ic=function(a,y,b){if(y===void 0&&(y=null),b===void 0&&(b=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var x=rt.alloc(),z=this.Pa.s,ne=z.length;ne--;){var ie=z[ne];if((E!==!0||of(ie)!==!1)&&ie.isVisible()&&(x.assign(a),Mn(x,ie.oe),ie=ie.ic(x,y,b),ie!==null&&(y!==null&&(ie=y(ie)),ie!==null&&(b===null||b(ie)))))return rt.free(x),ie}return rt.free(x),null},Me.ji=function(a,y,b,E){if(y===void 0&&(y=null),b===void 0&&(b=null),E instanceof rr||E instanceof ur||(E=new ur),this.Uh===!1)return E;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var z=rt.alloc(),ne=this.Pa.s,ie=ne.length;ie--;){var se=ne[ie];if((x!==!0||of(se)!==!1)&&se.isVisible()){z.assign(a),Mn(z,se.oe);var de=se;se.ji(z,y,b,E)&&(y!==null&&(de=y(de)),de===null||b!==null&&!b(de)||E.add(de))}}return rt.free(z),E},Me.Cf=function(a,y,b,E,x){if(y===void 0&&(y=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof rr||x instanceof ur||(x=new ur),this.Uh===!1)return x;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ne=this.Pa.s,ie=ne.length;ie--;){var se=ne[ie];if((z!==!0||of(se)!==!1)&&se.isVisible()){var de=se;se.Cf(a,y,b,E,x)&&(y!==null&&(de=y(de)),de===null||b!==null&&!b(de)||x.add(de))}}return x},Me.Nu=function(a,y,b,E,x,z,ne){if(this.Uh===!1)return x;for(var ie=this.Pa.s,se=ie.length;se--;){var de=ie[se];if((ne!==!0||of(de)!==!1)&&z(de)&&de.isVisible()){var pe=de;de.Cf(a,y,b,E,x)&&(y!==null&&(pe=y(pe)),pe===null||b!==null&&!b(pe)||x.add(pe))}}return x},Me.og=function(a,y,b,E,x,z){if(b===void 0&&(b=null),E===void 0&&(E=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof rr||x instanceof ur)&&(z=x),x=!0),z instanceof rr||z instanceof ur||(z=new ur),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var ie=rt.alloc(),se=rt.alloc(),de=this.Pa.s,pe=de.length;pe--;){var Se=de[pe];if((ne!==!0||of(Se)!==!1)&&Se.isVisible()){ie.assign(a),Mn(ie,Se.oe),se.h(a.x+y,a.y),Mn(se,Se.oe);var Ne=Se;Se.og(ie,se,b,E,x,z)&&(b!==null&&(Ne=b(Ne)),Ne===null||E!==null&&!E(Ne)||z.add(Ne))}}return rt.free(ie),rt.free(se),z},Me.Fd=function(a,y){if(this.visible){var b=this.Pa.s,E=b.length;if(E!==0){a=Jr();for(var x=Jr(),z=0;z<E;z++){var ne=b[z];if(ne.vw=z,ne instanceof Mr){if(ne.fd===!1)continue}else if(ne instanceof _o&&ne.adornedPart!==null)continue;var ie=ne.actualBounds;ne.isVisible()&&Vn(ie,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&x.push(ne))}for(y=0;y<a.length;y++)for(b=a[y],Yv(b),b=b.adornments;b.next();)E=b.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<x.length;y++)Yv(x[y]);Hr(a),Hr(x)}}};function Dc(a,y){var b=1;return a.pb!==1&&(b=y.globalAlpha,y.globalAlpha=b*a.pb),b}Me.gc=function(a,y,b){if(this.visible&&this.pb!==0&&(b===void 0&&(b=!0),b||!this.isTemporary)){b=this.Pa.s;var E=b.length;if(E!==0){if(a.isTemporary)for(var x=0;x<E;x++)b[x].Gj();x=Dc(this,a);var z=this.Zq;z.length=0;for(var ne=y.scale,ie=An.alloc(),se=0;se<E;se++)this.Oj(a,b[se],y,z,ne,ie,!0);if(An.free(ie),a.isTemporary)for(y=0;y<E;y++)b[y].Gj();a.globalAlpha=x}}};function Yp(a,y,b,E,x){if(a.visible&&a.pb!==0&&(x||!a.isTemporary)){x=a.Pa.s;var z=x.length;if(z!==0){var ne=Dc(a,y),ie=a.Zq;ie.length=0;for(var se=b.scale,de=An.alloc(),pe=0;pe<z;pe++){var Se=x[pe];E.contains(Se)&&a.Oj(y,Se,b,ie,se,de,!1)}An.free(de),y.globalAlpha=ne}}}Me.Oj=function(a,y,b,E,x,z,ne){if(ne&&!of(y))a.Hs(y);else{if(E!==null&&y instanceof Mr&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,E=y.containingGroup;E!==null;)ne?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ne=!0,z.assign(E.tb)),E=E.containingGroup;var ie=y.actualBounds;if(E=!1,ne&&y.isVisible()){if(!z.Yc(ie)){a.Hs(y);return}E=!z.Re(ie)}E&&(a.save(),a instanceof Go?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ie.width*x>b.Oq||ie.height*x>b.Oq?y.gc(a,b):(x=y.actualBounds,z=y.naturalBounds,x.width===0||x.height===0||isNaN(x.x)||isNaN(x.y)||!y.isVisible()||(b=y.transform,y.areaBackground!==null&&(Ra(y,a,y.areaBackground,!0,!0,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.areaBackground===null&&y.background===null&&(Ra(y,a,"rgba(0,0,0,0.3)",!0,!1,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.background!==null&&(a.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ra(y,a,y.background,!0,!1,z,x),a.fillRect(0,0,z.width/2,z.height/2),b.ws()||(y=1/(b.m11*b.m22-b.m12*b.m21),a.transform(b.m22*y,-b.m12*y,-b.m21*y,b.m11*y,y*(b.m21*b.dy-b.m22*b.dx),y*(b.m12*b.dx-b.m11*b.dy)))))),E&&(a.restore(),a.Vc(!0))}},Me.g=function(a,y,b,E,x){var z=this.diagram;z!==null&&z.cb(sa,a,this,y,b,E,x)},Me.oi=function(a,y,b){var E=this.Pa;if(y.Ig=this,this===null&&ml(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(b),E=this.diagram,E!==null&&(b?E.N():E.oi(y)),Pf(this,a,y),a},Me.pc=function(a,y,b){if(!b&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,b);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(b),E.mb(a),E=this.diagram,E!==null&&(b?E.N():E.pc(y)),y.Ig=null,ml(y),a};function Pf(a,y,b){if(y=Vh(a,y,b),b instanceof $i&&b!==null&&isNaN(b.zOrder)){if(b.memberParts.count!==0){for(var E=-1,x=a.Pa.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];if(ie===b&&(y=ne,0<=E)||0>E&&ie.containingGroup===b&&(E=ne,0<=y))break}!(0>E)&&E<y&&(x=a.Pa,x.mb(y),x.Gb(E,b))}y=b.containingGroup,y!==null&&Pf(a,-1,y)}b.svg!==null&&b.svg.remove()}function Vh(a,y,b){var E=b.zOrder;if(isNaN(E))return y;a=a.Pa;var x=a.count;if(1>=x)return y;if(0>y&&(y=a.indexOf(b)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var ie=y+1,se=NaN;ie<x&&(se=a.M(ie).zOrder,!!isNaN(se));)ie++;if(!isNaN(ne)&&ne>E)for(;;){if(z===-1||ne<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,b),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(se)&&se<E)for(;;){if(ie===x||se>=E){if(ie--,ie===y)break;return a.mb(y),a.Gb(ie,b),ie}for(se=NaN;++ie<x&&(se=a.M(ie).zOrder,isNaN(se)););}return y}un.Object.defineProperties(Rs.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 b=this.diagram;if(b!==null)for(y===""&&kt("Cannot rename default Layer to: "+a),b=b.layers;b.next();)b.value.name===a&&kt("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)&&vr(a,"0 <= value <= 1",Rs,"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))}}}),Rs.prototype.findObjectsNear=Rs.prototype.og,Rs.prototype.findObjectsIn=Rs.prototype.Cf,Rs.prototype.findObjectsAt=Rs.prototype.ji,Rs.prototype.findObjectAt=Rs.prototype.ic,Rs.className="Layer";function kn(a,y){if(rg||(pl(),rg=!0),vi(this),Rc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Da){var b=this,E=function(){b.removeEventListener(sr.document,"DOMContentLoaded",E,!1),b.setRTL()};sr.document.body!==null?this.setRTL():b.addEventListener(sr.document,"DOMContentLoaded",E,!1)}this.ol=null,Ff.add("Model",Jo);var x=this;return this.Hb=function(z){var ne=x.partManager;if(z.model===ne.diagram.model&&ne.diagram.aa){ne.diagram.aa=!1;try{var ie=z.change;z.modelChange===""&&ie===sa&&ne.updateDataBindings(z.object,z.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(z){x.partManager.doModelChanged(z)},this.hu=this.ku=null,Xp(this),this.model=wy(),this.Wg=!0,Qp(this),this.layout=new Na,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 ig,a!==void 0&&(typeof a=="string"||sr.Element&&a instanceof Element?tp(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Vd,Rc;function Xp(a){a.Yd=new qs,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new rr,a.pj=new Rn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new rt(NaN,NaN).freeze(),a.du=new rt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new rt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ui,a.zu=new rt(NaN,NaN).freeze(),a.ut=new An(NaN,NaN,NaN,NaN).freeze(),a.rj=new Qi(0,0,0,0).freeze(),a.sj=Nd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=wl,a.zk=ts,a.Fg=wl,a.pq=ts,a.yt=No,a.Bt=No,a.Fc=!0,a.pn=!1,a.De=new ur,a.Eh=new Rn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Qi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new As,a.bq.diagram=a,a.Qg=new As,a.Qg.diagram=a,a.cj=new As,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,jg(a),a.ai=new ur,a.Ht=!0,a.uu=pd,a.pw=!1,a.wu=Jd,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 Rn,a.Xn=new rr,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 Qi(5).freeze(),a.Hw=new ur().freeze(),a.Nt=999999999,a.nw=new ur().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 ur,a.ow=new ur,a.Xh=null,a.aw=new cn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new rt,bounds:new An,Py:new cn,bA:new cn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new An(NaN,NaN,NaN,NaN).freeze(),a.wo=new cn(NaN,NaN).freeze(),a.Sp=new An(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Rn;var y=new ii,b=new ma;b.bind(new us("text","",hi)),y.add(b),a.ny=y,a.Lg.add("",y),y=new ii,b=new ma,b.stroke="brown",b.bind(new us("text","",hi)),y.add(b),a.Lg.add("Comment",y),y=new ii,y.selectable=!1,y.avoidable=!1,b=new ro,b.figure="Ellipse",b.fill="black",b.stroke=null,b.desiredSize=new cn(3,3).ja(),y.add(b),a.Lg.add("LinkLabel",y),a.Yi=new Rn,y=new $i,y.selectionObjectName="GROUPPANEL",y.type=Nr.Vertical,b=new ma,b.font="bold 12pt sans-serif",b.bind(new us("text","",hi)),y.add(b),b=new Nr(Nr.Auto),b.name="GROUPPANEL";var E=new ro;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",b.add(E),E=new Ql,E.padding=new Qi(5,5,5,5).ja(),b.add(E),y.add(b),a.ly=y,a.Yi.add("",y),a.Kh=new Rn,y=new Mr,b=new ro,b.isPanelMain=!0,y.add(b),b=new ro,b.toArrow="Standard",b.fill="black",b.stroke=null,b.strokeWidth=0,y.add(b),a.my=y,a.Kh.add("",y),y=new Mr,b=new ro,b.isPanelMain=!0,b.stroke="brown",y.add(b),a.Kh.add("Comment",y),y=new _o,y.type=Nr.Auto,b=new ro,b.fill=null,b.stroke="dodgerblue",b.strokeWidth=3,y.add(b),b=new Ql,b.margin=new Qi(1.5,1.5,1.5,1.5).ja(),y.add(b),a.St=y,a.wt=y,y=new _o,y.type=Nr.Link,b=new ro,b.isPanelMain=!0,b.fill=null,b.stroke="dodgerblue",b.strokeWidth=3,y.add(b),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Jo,a.toolManager=new ta,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new le,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Gg(),a.eq=null,a.fq=pi,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 rt,a.zy=500,a.wp=new rt,a.wq=!1}kn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Eh=null,Ad="",ep(this,!1),this.Xn.clear(),fg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function ep(a,y){a.animationManager.Cc(!0),a.Hw=new ur().freeze(),a.nw=new ur().freeze();var b=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var x=null;a.fe!==null&&(x=a.fe.part,x!==null&&a.remove(x));var z=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var ie=a.Wa.s[y].parts;ie.next();){var se=ie.value;se!==x&&se.data===null&&z.push(se)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ne;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(),fg(),a.Og.clear(),zi=[],x!==null&&(a.add(x),a.partManager.parts.remove(x)),E&&(a.skipsUndoManager=b),z}function Gg(){return null}kn.prototype.reset=function(){this.clear(),this.vb=!0,Xp(this),Oc(this),this.Wg=!0,Qp(this),this.layout=new Na,this.Wg=!1,this.model=wy(),this.model.undoManager=new $o,this.vb=this.rn=!1,this.N()},kn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=sr.document.body);var y=Wr("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 b="reverse";0<y.scrollLeft?b="default":(y.scrollLeft=1,y.scrollLeft===0&&(b="negative")),a.removeChild(y),this.bu=b},kn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=sr.document.body);var y=0;if(Da){var b=ng;y=Vd,b===null&&(b=ng=Wr("p"),b.style.width="100%",b.style.height="200px",b.style.boxSizing="content-box",y=Vd=Wr("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(b)),y.style.overflow="hidden",a.appendChild(y);var E=b.offsetWidth;y.style.overflow="scroll",b=b.offsetWidth,E===b&&(b=y.clientWidth),a.removeChild(y),y=E-b,y!==0||xi||(y=11)}this.Db=y,this.Gw=!0},kn.prototype.qb=function(a){a.classType===kn&&(this.autoScale=a)},kn.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 b=this.Wa.iterator;b.next();)y+=`
`+b.value.toString(a-1);return y};function tp(a,y){if(Da){if(y!=null||kt("Diagram setup requires an argument DIV."),a.Ka!==null&&kt("Diagram has already completed setup."),typeof y=="string"?a.Ka=sr.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:kt("No DIV or DIV id supplied: "+y),a.Ka===null&&kt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&kt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&sr.ResizeObserver){var b=Cn(function(){a.$b()},250);a.ol=new sr.ResizeObserver(function(){b()}),a.ol.observe(a.Ka)}sr.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=sr.go;var x=new ul(a);if(x.style!==void 0&&(x.style.position="absolute",x.style.top="0px",x.style.left="0px",sr.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),x.style.zIndex="2",x.style.userSelect="none",x.style.MozUserSelect="none",x.style.touchAction="none",x.style.letterSpacing="normal !important",x.style.wordSpacing="normal !important"),a.ta=x,a.ib=x.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Xh(a,a.Aa,a.ya),a.Ka.insertBefore(x.Oa,a.Ka.firstChild),x=new ul(null),x.width=1,x.height=1,a.jw=x,a.oy=x.context,Da){x=Wr("div");var z=Wr("div");x.style.position="absolute",x.style.overflow="auto",x.style.width=a.Aa+"px",x.style.height=a.ya+"px",x.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(x),x.appendChild(z),x.onscroll=qp,x.addEventListener("pointerdown",Tf),x.H=a,x.uy=!0,x.vy=!0,a.ku=x,a.hu=z}a.hk=Cn(function(){a.Yh=null,a.N()},300),a.Ov=Cn(function(){Zh(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var ie=Uu(a,ne,!0);ie.bubbles=!0;var se=0,de=0;ie.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(se=0<ne.deltaX?1:-1),ne.deltaY!==0&&(de=0<ne.deltaY?1:-1),ie.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-se:-de):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(se=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(de=0<ne.wheelDeltaY?-1:1),ie.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-se:-de):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(ie.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),ec(ie,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,Uu(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var ie=a.Yt;ie[ne.pointerId]===void 0&&(ie[ne.pointerId]=ne),ie=a.oj;var se=!1;if(ie[0]===null||ie[0].pointerId!==ne.pointerId&&ie[0].pointerType===ne.pointerType)if(ie[1]!==null&&ie[1].pointerId===ne.pointerId)ie[1]=ne,se=!0;else if(ie[0]===null)ie[0]=ne;else if(ie[1]===null)ie[1]=ne,se=!0;else{ne.preventDefault();return}else ie[0]=ne;(ie=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var de=se;se=rp(a,ne,!0,!1,!0,de),fd(a,ne,se),se.targetDiagram=mh(ne,ne.target),se.targetObject=null,de||se.clone(a.bq),de=a.uw,ie=ie?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(de.x-ne.screenX)>ie||Math.abs(de.y-ne.screenY)>ie)?a.yq++:a.yq=1,se.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():ec(se,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var ie=a.oj;if(ie[0]===null||ie[0].pointerId!==ne.pointerId&&ie[0].pointerType===ne.pointerType){if(ie[1]!==null&&ie[1].pointerId===ne.pointerId){ie[1]=ne;return}if(ie[0]===null)ie[0]=ne;else return}else ie[0]=ne;if(ie[0].pointerId===ne.pointerId){ie=rp(a,ne,!1,!1,!1,ie[1]!==null);var se=sr.document.elementFromPoint(ne.clientX,ne.clientY)||null;se!==null&&se.shadowRoot!==void 0&&se.shadowRoot!==null&&(se=se.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var de=a,pe=ne;se&&se.H&&(pe=ne,de=se.H),ie.targetDiagram=de,fd(a,pe,ie),ie.targetObject=null,a.doMouseMove(),ec(ie,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var ie=ne.pointerType==="touch"||ne.pointerType==="pen",se=a.Yt;if(ie&&a.qu)delete se[ne.pointerId],ne.preventDefault();else if(se=a.oj,se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType)se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null);else{se[0]=null,se=rp(a,ne,!1,!0,!0,!1);var de=sr.document.elementFromPoint(ne.clientX,ne.clientY)||null;de!==null&&de.shadowRoot!==void 0&&de.shadowRoot!==null&&(de=de.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),de!==null&&de.H instanceof kn&&de.H!==a&&fd(de.H,ne,se),de===null&&(de=ne.target),fd(a,ne,se),se.clickCount=a.yq,se.targetDiagram=mh(ne,de),se.targetObject=null,a.doMouseUp(),ec(se,ne),ie&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var ie=a.Yt;ie[ne.pointerId]&&delete ie[ne.pointerId],ie=a.oj,ie[0]!==null&&ie[0].pointerId===ne.pointerId&&(ie[0]=null),ie[1]!==null&&ie[1].pointerId===ne.pointerId&&(ie[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var ie=a.oj;ie[0]!==null&&ie[0].pointerId===ne.pointerId?(ie[0]=null,a.wq=!1):ie[1]!==null&&ie[1].pointerId===ne.pointerId&&(ie[1]=null)},a.Vp=E.Z["d"+eh[1]+eh[2]+"wI"+$d.slice(1,5)]["b"+EE.slice(1,y)](E.Z,qh,y,y),E.Vc(!0),Um(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}kn.prototype.addEventListener=function(a,y,b,E){a.addEventListener(y,b,{capture:E,passive:!1})},kn.prototype.removeEventListener=function(a,y,b,E){a.removeEventListener(y,b,{capture:E})};function Um(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(b){return b.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(b){return b.preventDefault(),!1},!1),a.addEventListener(sr,"resize",a.Ov,!1)}function sl(a){30<a.Sq&&(a.Yh=1)}function Wh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ai&&ai.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}kn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:sr.devicePixelRatio||1},kn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},kn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},kn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},kn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},kn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},kn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},kn.prototype.doFocus=function(){this.focus()},kn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=sr.scrollX||sr.pageXOffset,y=sr.scrollY||sr.pageYOffset;this.ta.focus(),sr.scrollTo(a,y)}},kn.prototype.Oy=function(){this.H.R("GainedFocus")},kn.prototype.Ny=function(){this.H.R("LostFocus")};function Zh(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var b=a.gf?a.Db:0,E=a.Be?a.Db:0,x=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==x&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+b||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===wl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Qp(a){var y=new Rs;y.name="Background",a.Al(y),y=new Rs,y.name="",a.Al(y),y=new Rs,y.name="Foreground",a.Al(y),y=new Rs,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Rs,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Rs,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Jp(a){var y=new Nr(Nr.Grid);y.name="GRID";var b=new ro;return b.figure="LineH",b.stroke="lightgray",b.strokeWidth=.5,b.interval=1,y.add(b),b=new ro,b.figure="LineH",b.stroke="gray",b.strokeWidth=.5,b.interval=5,y.add(b),b=new ro,b.figure="LineH",b.stroke="gray",b.strokeWidth=1,b.interval=10,y.add(b),b=new ro,b.figure="LineV",b.stroke="lightgray",b.strokeWidth=.5,b.interval=1,y.add(b),b=new ro,b.figure="LineV",b.stroke="gray",b.strokeWidth=.5,b.interval=5,y.add(b),b=new ro,b.figure="LineV",b.stroke="gray",b.strokeWidth=1,b.interval=10,y.add(b),b=new ki,b.add(y),b.layerName="Grid",b.zOrder=0,b.isInDocumentBounds=!1,b.isAnimated=!1,b.pickable=!1,b.locationObjectName="GRID",a.add(b),a.partManager.parts.remove(b),y.visible=!1,y}function qp(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Sh(this.H)}function Tf(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Sh(this.H)}kn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,b=this.hu;this.qr=!0;var E=this.documentBounds,x=this.viewportBounds,z=this.rj,ne=E.x-z.left,ie=E.y-z.top,se=E.width+z.left+z.right,de=E.height+z.top+z.bottom,pe=E.right+z.right;z=E.bottom+z.bottom;var Se=x.x;E=x.y;var Ne=x.width,Oe=x.height,He=x.right,Je=x.bottom;x=this.scale;var xt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":xt=xt+a.scrollWidth-a.clientWidth;break;case"reverse":xt=a.scrollWidth-xt-a.clientWidth}var yt=xt;Ne<se||Oe<de?(xt=rt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==yt&&(xt.x=yt/x+ne,this.ju=yt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(xt.y=a.scrollTop/x+ie,this.lu=a.scrollTop),this.position=xt,rt.free(xt),this.Ee=this.qr=!1):(xt=rt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Se&&(this.position=xt.h(yt+ne,this.position.y)),pe>He&&(this.position=xt.h(-(y.scrollWidth-this.Aa)+yt-this.Aa/x+pe,this.position.y))),a.vy&&this.allowVerticalScroll&&(ie<E&&(this.position=xt.h(this.position.x,a.scrollTop+ie)),z>Je&&(this.position=xt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/x+z))),rt.free(xt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,x=this.viewportBounds,pe=E.right,He=x.right,z=E.bottom,Je=x.bottom,ne=E.x,Se=x.x,ie=E.y,E=x.y,Ne>=se&&ne>=Se&&pe<=He&&(b.style.width="1px"),Oe>=de&&ie>=E&&z<=Je&&(b.style.height="1px"))}},kn.prototype.computeBounds=function(a){return a===void 0&&(a=new An),$s(this),Af(this,a)};function Af(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var b=!0,E=a.Wa.s,x=E.length,z=0;z<x;z++){var ne=E[z];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var ie=ne.length,se=0;se<ie;se++){var de=ne[se];de.isInDocumentBounds&&de.isVisible()&&(de=de.actualBounds,de.w()&&(b?(b=!1,y.assign(de)):y.ed(de)))}}}return b&&y.h(0,0,0,0),y.Co(a.yb),y}kn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var b=null;if(Qn(a))for(var E=0;E<a.length;E++){var x=a[E];!y&&x instanceof Mr||(x.Va(),b===null?b=x.actualBounds.copy():b.ed(x.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof Mr||(E.Va(),b===null?b=E.actualBounds.copy():b.ed(E.actualBounds));return b===null?new An(NaN,NaN,0,0):b};function $u(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var b=a.initialPosition;if(b.w()){a.vb=!1,a.position=b;return}b=rt.alloc(),b.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=An.allocAt(0,0,E.width,E.height);var x=rt.alloc();x.xi(E,a.initialViewportSpot),x.h(b.x-x.x,b.y-x.y),a.position=x,An.free(E),rt.free(x),rt.free(b)}b=a.yh,y&&a.Fg!==wl&&(b=a.Fg);var z=b!==wl?gh(a,b):a.scale;b=a.pa.x,E=a.pa.y,x=a.Aa/z;var ne=a.ya/z,ie=a.zk,se=a.pq;y&&!ie.sb()&&(se.sb()||se.Xb())&&(ie=se.Xb()?uo:se),np(a,a.documentBounds,x,ne,ie,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,an.B(z.x,b)&&an.B(z.y,E)&&an.B(z.width,x)&&an.B(z.height,ne)||a.onViewportBoundsChanged(new An(b,E,x,ne),z,y,!1)}}function gh(a,y){var b=a.Pp;if(a.ta===null)return b;a.Va();var E=a.documentBounds;if(!E.w())return b;var x=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),ie=z/x,se=ne/E;return y===gu?(y=Math.min(se,ie),y>b&&(y=b),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===xh?(y=se>ie?(ne-a.Db)/E:(z-a.Db)/x,y>b&&(y=b),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}kn.prototype.zoomToFit=function(){var a=this.sj;this.sj=Nd,this.scale=gh(this,gu),a!==Nd&&($u(this,!1),np(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Me=kn.prototype,Me.BA=function(a,y){y===void 0&&(y=gu);var b=a.width,E=a.height;if(!(b===0||E===0||isNaN(b)&&isNaN(E))){var x=1;if(y===gu||y===xh)if(isNaN(b))x=this.viewportBounds.height*this.scale/E;else if(isNaN(E))x=this.viewportBounds.width*this.scale/b;else{x=this.Aa;var z=this.ya;x=y===xh?z/E>x/b?(z-(this.Be?this.Db:0))/E:(x-(this.gf?this.Db:0))/b:Math.min(z/E,x/b)}this.scale=x,this.position=new rt(a.x,a.y)}},Me.Jy=function(a,y){this.Va();var b=this.documentBounds,E=this.viewportBounds;this.position=new rt(b.x+(a.x*b.width+a.offsetX)-(y.x*E.width-y.offsetX),b.y+(a.y*b.height+a.offsetY)-(y.y*E.height-y.offsetY))},Me.zz=function(a){if(a instanceof tn){this.eq=a;var y=rt.alloc();this.fq=this.op(a.ga(No,y)),rt.free(y)}else this.eq=null,this.fq=pi};function np(a,y,b,E,x,z){var ne=rt.allocAt(a.pa.x,a.pa.y),ie=ne.x,se=ne.y;if(a.eq!==null){var de=rt.alloc();de=a.eq.ga(No,de),ie=de.x-a.fq.x/a.scale,se=de.y-a.fq.y/a.scale,x=to,rt.free(de)}(z||a.scrollMode===Nd)&&(x.sb()&&(b>y.width&&(ie=y.x+(x.x*y.width+x.offsetX)-(x.x*b-x.offsetX)),E>y.height&&(se=y.y+(x.y*y.height+x.offsetY)-(x.y*E-x.offsetY))),x=a.rj,z=b-y.width,b<y.width+x.left+x.right?(ie=Math.min(ie+b/2,y.right+Math.max(z,x.right)-b/2),ie=Math.max(ie,y.left-Math.max(z,x.left)+b/2),ie-=b/2):ie>y.left?ie=y.left:ie<y.right-b&&(ie=y.right-b),b=E-y.height,E<y.height+x.top+x.bottom?(se=Math.min(se+E/2,y.bottom+Math.max(b,x.bottom)-E/2),se=Math.max(se,y.top-Math.max(b,x.top)+E/2),se-=E/2):se>y.top?se=y.top:se<y.bottom-E&&(se=y.bottom-E)),ne.x=isFinite(ie)?ie:-a.yb.left,ne.y=isFinite(se)?se:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),hd(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Oc(a),rt.free(ne)}Me.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Yc(this,a,function(b){return b.part},function(b){return b.canSelect()}),a instanceof ki)return a}else if(a=Yc(this,a,function(b){return b.part}),a instanceof ki)return a;return null},Me.ic=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null),$s(this);for(var E=this.Wa.iteratorBackwards;E.next();){var x=E.value;if(x.visible&&(x=x.ic(a,y,b),x!==null))return x}return null};function Yc(a,y,b,E){for(b===void 0&&(b=null),E===void 0&&(E=null),$s(a),a=a.Wa.iteratorBackwards;a.next();){var x=a.value;if(x.visible&&!x.isTemporary&&(x=x.ic(y,b,E),x!==null))return x}return null}Me.lz=function(a,y,b){return y===void 0&&(y=!0),Kh(this,a,function(E){return E.part},y?function(E){return E instanceof ki&&E.canSelect()}:null,b)};function Kh(a,y,b,E,x){for(b===void 0&&(b=null),E===void 0&&(E=null),x instanceof rr||x instanceof ur||(x=new ur),$s(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,b,E,x)}return x}Me.ji=function(a,y,b,E){y===void 0&&(y=null),b===void 0&&(b=null),E instanceof rr||E instanceof ur||(E=new ur),$s(this);for(var x=this.Wa.iteratorBackwards;x.next();){var z=x.value;z.visible&&z.ji(a,y,b,E)}return E},Me.ux=function(a,y,b,E){return y===void 0&&(y=!1),b===void 0&&(b=!0),Nf(this,a,function(x){return x instanceof ki&&(!b||x.canSelect())},y,E)},Me.Cf=function(a,y,b,E,x){y===void 0&&(y=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof rr||x instanceof ur||(x=new ur),$s(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,b,E,x)}return x},Me.Nu=function(a,y,b,E,x,z){var ne=new ur;$s(this);for(var ie=this.Wa.iteratorBackwards;ie.next();){var se=ie.value;se.visible&&se.Nu(a,y,b,E,ne,x,z)}return ne};function Nf(a,y,b,E,x){var z=null;for(z===void 0&&(z=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof rr||x instanceof ur||(x=new ur),$s(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,b,E,x)}return x}Me.mz=function(a,y,b,E,x){return b===void 0&&(b=!0),E===void 0&&(E=!0),Yh(this,a,y,function(z){return z instanceof ki&&(!E||z.canSelect())},b,x)},Me.og=function(a,y,b,E,x,z){b===void 0&&(b=null),E===void 0&&(E=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof rr||x instanceof ur)&&(z=x),x=!0),z instanceof rr||z instanceof ur||(z=new ur),$s(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var ie=ne.value;ie.visible&&ie.og(a,y,b,E,x,z)}return z};function Yh(a,y,b,E,x,z){var ne=null;for(ne===void 0&&(ne=null),E===void 0&&(E=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof rr||x instanceof ur)&&(z=x),x=!0),z instanceof rr||z instanceof ur||(z=new ur),$s(a),a=a.Wa.iteratorBackwards;a.next();){var ie=a.value;ie.visible&&!ie.isTemporary&&ie.og(y,b,ne,E,x,z)}return z}kn.prototype.acceptEvent=function(a){return Uu(this,a,a instanceof MouseEvent)};function Uu(a,y,b){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,b?fd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),xi&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=mh(y,y.target),E.targetObject=null,E}function mh(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 rp(a,y,b,E,x,z){var ne=a.Qg;return a.Qg=a.cj,a.cj=ne,ne.diagram=a,ne.clickCount=1,a=ne.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ne.modifiers=a,ne.event=y,ne.timestamp=y.timeStamp,ne.button=y.button,ne.buttons=y.buttons,xi&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=b,ne.up=E,ne.handled=!1,ne.bubbles=x,ne.isMultiTouch=z,ne}function ec(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}kn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var b=Uu(y,a,!1);switch(b.key=String.fromCharCode(a.which),b.down=!0,a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 48:b.key="0";break;case 187:case 61:case 107:b.key="Add";break;case 189:case 173:case 109:b.key="Subtract";break;case 27:b.key="Esc"}return y.doKeyDown(),ec(b,a)},kn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=Uu(y,a,!1);switch(b.key=String.fromCharCode(a.which),b.up=!0,a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del"}return y.doKeyUp(),ec(b,a)},kn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=Uu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(b),y.currentTool.standardMouseOver(),ec(b,a)},kn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=Uu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(b),ec(b,a)},kn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new rt(0,0);var b=y.getBoundingClientRect();return y=a.clientX-this.Aa/b.width*b.left,a=a.clientY-this.ya/b.height*b.top,this.Ab!==null?Mn(new rt(y,a),this.Ab):new rt(y,a)};function fd(a,y,b){var E=a.ta,x=a.Aa,z=a.ya,ne=0,ie=0;E!==null&&(E=E.getBoundingClientRect(),ne=y.clientX-x/E.width*E.left,ie=y.clientY-z/E.height*E.top),b.viewPoint.h(ne,ie),a.Ab!==null?(y=rt.allocAt(ne,ie),a.Ab.Cd(y),b.documentPoint.assign(y),rt.free(y)):b.documentPoint.h(ne,ie)}function Lf(a,y,b){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),b.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}kn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ip(a){a.ld||$s(a),a.Va()}kn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Me=kn.prototype,Me.Pz=function(){return this.kg},Me.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,b=y.isEnabled;y.Cc(),y.isEnabled=!1,Pu(this),this.hf=!1,this.du=new rt(NaN,NaN),y.isEnabled=b,this.ld=!0;var E=this;a!==null&&fn(function(){E.ld=!1,Es(y,"Model"),a(E)},1)},Me.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;sr.requestAnimationFrame(function(){y.kg&&y.bd()})}},Me.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Pu(this))};function Wd(a,y,b){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sh(a)||(y&&$s(a),b&&$u(a,!1))}function Pu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var b=a.animationManager,E=a.Xn;if(!b.isAnimating&&E.length!==0){for(var x=E.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];Tt(ie,!1),ie.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(se){se.Nv()}),E.clear()),x=E=!1,b.defaultAnimation.isAnimating&&(x=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),b.zb||Zh(a),Wd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Mc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),$s(a),z=!1,(!a.hf||a.xh)&&(a.hf?gp(a,!a.Jk):(a.Ea("Initial Layout"),b.isEnabled===!1&&b.Cc(),gp(a,!1)),z=!0),a.Jk=!1,$s(a),a.ou||ip(a),Wd(a,!0,!1),ne=!1,z?(b=An.alloc(),b.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,op(a)),a.R("LayoutCompleted"),Wd(a,!0,!1),An.free(b)):b.Ok&&b.Qw&&(a.Fg!==wl?a.scale=gh(a,a.Fg):a.yh!==wl?a.scale=gh(a,a.yh):(b=a.initialScale,isFinite(b)&&0<b&&(a.scale=b)),$u(a,!0)),z&&ne&&a.eb("Initial Layout"),$s(a),y||a.gc(a.ib),x&&(a.skipsUndoManager=E),a.ld=!1}}function op(a){if(a.Fg!==wl)a.scale=gh(a,a.Fg);else if(a.yh!==wl)a.scale=gh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}$u(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Mc(a)}function $s(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var b=a.De.iterator;if(b===null||a.De.count===0)break;a.De=new ur,a.Nv(b,a.De)}a.nodes.each(function(E){E instanceof $i&&E.U&65536&&(E.U=E.U^65536)})}}Me.Nv=function(a,y){for(a.reset();a.next();){var b=a.value;!b.Zc()||b instanceof $i||(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))}for(a.reset();a.next();)b=a.value,b instanceof $i&&b.isVisible()&&Xc(this,b);for(a.reset();a.next();)b=a.value,b instanceof Mr&&b.isVisible()&&(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b));for(a.reset();a.next();)b=a.value,b instanceof _o&&b.isVisible()&&(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))};function Xc(a,y){for(var b=Jr(),E=Jr(),x=y.memberParts;x.next();){var z=x.value;z.isVisible()&&(z instanceof $i?(Lt(z)||Ut(z)||rf(z))&&Xc(a,z):z instanceof Mr?z.fromNode===y||z.toNode===y?E.push(z):b.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=b.length,x=0;x<a;x++)z=b[x],z.measure(1/0,1/0),z.arrange();for(Hr(b),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)b=E[y],b.measure(1/0,1/0),b.arrange();Hr(E)}Me.Fd=function(a,y,b,E){if(this.vd||this.animationManager.isAnimating)for(var x=0;x<y;x++)a[x].Fd(b,E)},Me.gc=function(a){if(this.Ka!==null){if(this.ta===null&&kt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yh(this);var b=this.Aa,E=this.ya;if(a.Gv.resize(b,E,b,E),b=this.Wa.s,E=b.length,this.Fd(b,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var x=this.Ca,z=Math.round(y.x*x)/x,ne=Math.round(y.y*x)/x,ie=this.Ab;for(ie.reset(),x!==1&&ie.scale(x),y.x===0&&y.y===0||ie.translate(-z,-ne),a.ti=null,Ea(a,ie.m11,ie.m12,ie.m21,ie.m22,ie.dx,ie.dy),this.pb!==1&&(a.globalAlpha=this.pb),Cd(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)b[y].gc(a,this);a=!1,this.Yf?kd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ui.prototype.Cd=Ui.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(b=new Date,yh(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,x=y.length,this.Fd(y,x,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ne=this.Mb,ie=this.pa;var se=this.Ca,de=Math.round(ie.x*se)/se,pe=Math.round(ie.y*se)/se;for(se!==1&&z.scale(se),ie.x===0&&ie.y===0||z.translate(-de,-pe),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Cd(this,a),ie=0;ie<x;ie++)a.setTransform(ne,0,0,ne,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ie].gc(a,this);if(y=!1,this.Yf?kd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ui.prototype.Cd=Ui.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+b,E=ai&&ai.nx,b=this.zw,E||this.Yh===null){for(b[this.Tq]=y,this.Tq=(this.Tq+1)%b.length,x=y=0;x<b.length;x++)y+=b[x];this.Sq=y/b.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<b.length;E++)a.fillText(b[E].toString(),20,150+ +(20*E))}}};function kf(a,y,b,E,x,z,ne,ie,se,de){if(a.Ka!==null){a.ta===null&&kt("No canvas specified"),ne===void 0&&(ne=null),ie===void 0&&(ie=null),se===void 0&&(se=!1),de===void 0&&(de=!1),yh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var pe=a.Ca;a.Ca=x;var Se=a.Wa.s,Ne=Se.length;try{var Oe=new An(z.x,z.y,E.width/x,E.height/x),He=Oe.copy();He.Co(b),Mc(a,He),$s(a),a.Fd(Se,Ne,a,Oe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),ie!==null&&ie!==""&&(y.fillStyle=ie,y.ox(0,0,E.width,E.height));var Je=a.Mb;y.scale(Je,Je);var xt=Ui.alloc();xt.reset(),xt.translate(b.left,b.top),xt.scale(x),z.x===0&&z.y===0||xt.translate(-z.x,-z.y),y.setTransform(xt.m11,xt.m12,xt.m21,xt.m22,xt.dx,xt.dy),y.yc(),y instanceof Go&&Ea(y,xt.m11,xt.m12,xt.m21,xt.m22,xt.dx,xt.dy),Ui.free(xt),Cd(a,y),y.globalAlpha=a.pb;var yt=a.Qj("Grid");if(ne){var Rt=new ur,Bt=ne.iterator;for(Bt.reset();Bt.next();){var Gt=Bt.value;Gt instanceof ki&&(de||Gt.layer!==yt)&&(Gt.Gj(),Rt.add(Gt))}for(de=0;de<Ne;de++)Yp(Se[de],y,a,Rt,se);Rt.each(function(In){return In.Gj()})}else for(Rt=0;Rt<Ne;Rt++){var $t=Se[Rt];$t===yt?de&&$t.gc(y,a,!0):$t.gc(y,a,se)}a.$i=!1,a.Yf&&kd(a.Yf,a)&&a.Vp()}finally{a.Ca=pe,a.ib.Vc(!0),a.vd=!0,a.Fd(Se,Ne,a,a.viewportBounds),Mc(a),a.ib instanceof Go&&(a.ib.Nj.PA(),a.redraw())}}}Me.Gf=function(a){return this.Rg[a]},Me.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Me.Tx=function(){this.Rg=new wi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(xi||vn),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Cd(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Me.Ql=function(a){return this.on[a]},Me.sA=function(a,y){this.on[a]=y},Me.Sx=function(){this.on=new wi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Me.set=function(a){return Object.assign(this,a),this},Me.Du=function(a){return this.nm(a)},Me.nm=function(a){return vh(this,a),this};function vh(a,y){var b=a instanceof Nr,E=a instanceof kn,x;for(x in y){x===""&&kt("Setting properties requires non-empty property names");var z=a,ne=x;if(b||E){var ie=x.indexOf(".");if(0<ie){var se=x.substring(0,ie);b?z=a.fb(se):(z=a[se],z==null&&(z=a.toolManager[se])),nn(z)?ne=x.substr(ie+1):kt("Unable to find object named: "+se+" in "+a.toString()+" when trying to set property: "+x)}}if(ne[0]!=="_"&&!ti(z,ne))if(E&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(E&&ne==="Changed"){a.Pe(y[ne]);continue}else if(E&&ti(a.toolManager,ne))z=a.toolManager;else if(E&&$p(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof Ei&&ne==="Changed"){a.Pe(y[ne]);continue}else kt('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[x],ne[0]==="_"&&z instanceof tn&&z.Vw(ne)}}Me.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Rn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Me.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")},kn.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var b=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Jh&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,x=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-x)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=An.alloc(),fp(this,this.computeBounds(E)),An.free(E)),E=this.ta,E===null||E instanceof Eo)))){var ne=this.Mb;x=this.Aa*ne;var ie=this.ya*ne,se=this.scale*ne;z=Math.round(Math.round(y.x*se)-Math.round(a.x*se)),y=Math.round(Math.round(y.y*se)-Math.round(a.y*se)),se=this.jw,a=this.oy,se.width!==x&&(se.width=x),se.height!==ie&&(se.height=ie),a.clearRect(0,0,x,ie),se=190*ne;var de=70*ne,pe=Math.max(z,0),Se=Math.max(y,0),Ne=Math.floor(x-pe),Oe=Math.floor(ie-Se);a.drawImage(E.Oa,pe,Se,Ne,Oe,0,0,Ne,Oe),kd(this.Yf,this)&&a.clearRect(0,0,se,de),E=Jr(),a=Jr(),Oe=Math.abs(z),Ne=Math.abs(y);var He=pe===0?0:x-Oe;pe=rt.allocAt(He,0),Oe=rt.allocAt(Oe+He,ie),a.push(new An(Math.min(pe.x,Oe.x),Math.min(pe.y,Oe.y),Math.abs(pe.x-Oe.x),Math.abs(pe.y-Oe.y)));var Je=this.Ab;if(Je.reset(),Je.scale(ne,ne),this.Ca!==1&&Je.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&Je.translate(-ne.x,-ne.y),Mn(pe,Je),Mn(Oe,Je),E.push(new An(Math.min(pe.x,Oe.x),Math.min(pe.y,Oe.y),Math.abs(pe.x-Oe.x),Math.abs(pe.y-Oe.y))),He=Se===0?0:ie-Ne,pe.h(0,He),Oe.h(x,Ne+He),a.push(new An(Math.min(pe.x,Oe.x),Math.min(pe.y,Oe.y),Math.abs(pe.x-Oe.x),Math.abs(pe.y-Oe.y))),Mn(pe,Je),Mn(Oe,Je),E.push(new An(Math.min(pe.x,Oe.x),Math.min(pe.y,Oe.y),Math.abs(pe.x-Oe.x),Math.abs(pe.y-Oe.y))),kd(this.Yf,this)&&(x=0<z?0:-z,ie=0<y?0:-y,pe.h(x,ie),Oe.h(se+x,de+ie),a.push(new An(Math.min(pe.x,Oe.x),Math.min(pe.y,Oe.y),Math.abs(pe.x-Oe.x),Math.abs(pe.y-Oe.y))),Mn(pe,Je),Mn(Oe,Je),E.push(new An(Math.min(pe.x,Oe.x),Math.min(pe.y,Oe.y),Math.abs(pe.x-Oe.x),Math.abs(pe.y-Oe.y)))),rt.free(pe),rt.free(Oe),Wd(this,!1,!0),this.Ka===null&&kt("No div specified"),this.ta===null&&kt("No canvas specified"),!this.animationManager.zb&&(x=this.ib,this.Fc)){for(yh(this),ie=this.Mb,x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,this.Aa*ie,this.ya*ie),x.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ne=this.Ca,se=Math.round(z.x*ne)/ne,de=Math.round(z.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),z.x===0&&z.y===0||y.translate(-se,-de),x.save(),x.beginPath(),z=a.length,ne=0;ne<z;ne++)se=a[ne],se.width!==0&&se.height!==0&&x.rect(Math.floor(se.x),Math.floor(se.y),Math.ceil(se.width),Math.ceil(se.height));for(x.clip(),x.setTransform(ie,0,0,ie,0,0),x.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),x.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Cd(this,x),x.globalAlpha=this.pb,ie=0;ie<z;ie++)if(ne=y[ie],se=E,ne.visible&&ne.pb!==0){de=Dc(ne,x),Se=ne.Zq,Se.length=0,pe=this.scale,Ne=An.alloc(),Oe=ne.Pa.s,Je=Oe.length,He=se.length;for(var xt=0;xt<Je;xt++){var yt=Oe[xt],Rt=Gf(yt,yt.actualBounds);e:{for(var Bt=2/pe,Gt=4/pe,$t=0;$t<He;$t++){var In=se[$t];if(In.width!==0&&In.height!==0&&Rt.Vu(In.x-Bt,In.y-Bt,In.width+Gt,In.height+Gt)){Rt=!0;break e}}Rt=!1}Rt&&ne.Oj(x,yt,this,Se,pe,Ne,!0)}An.free(Ne),x.globalAlpha=de}x.restore(),x.Vc(!0),this.Yf&&kd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Hr(E),Hr(a),this.ld=!1}}else this.bd();b&&(sl(this),this.bd(),Wh(this,!0))}else b?(sl(this),this.bd(),Wh(this,!0)):this.bd()}};function yh(a){a.pn!==!1&&(a.pn=!1,Xh(a,a.Aa,a.ya))}function Xh(a,y,b){Oc(a);var E=a.Mb;a.ta.resize(y*E,b*E,y,b)&&(a.Fc=!0,a.ib.Vc(!0))}function Sh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var b=a.Aa,E=a.ya,x=a.Ka,z=!1,ne=a.gf?a.Db:0,ie=a.Be?a.Db:0,se=x.clientWidth||b+ne,de=x.clientHeight||E+ie,pe=a.viewportBounds;x=pe.x;var Se=pe.y,Ne=pe.width,Oe=pe.height;if((se!==b+ne||de!==E+ie)&&(a.gf=!1,a.Be=!1,ie=ne=0,a.Aa=se,a.ya=de,z=a.pn=!0,Oc(a)),!a.hf||!a.viewportBounds.w())return!0;var He=a.ku,Je=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var xt=a.documentBounds,yt=0,Rt=0,Bt=0,Gt=0,$t=pe.width,In=pe.height,qr=a.rj;a.contentAlignment.sb()?(xt.width>$t&&(yt=qr.left,Rt=qr.right),xt.height>In&&(Bt=qr.top,Gt=qr.bottom)):(yt=qr.left,Rt=qr.right,Bt=qr.top,Gt=qr.bottom);var yi=xt.width+yt+Rt,di=xt.height+Bt+Gt;qr=a.scale;var Dr=yi>se/qr,pr=di>de/qr;if(!(z||a.gf||a.Be||Dr||pr))return!0;yt=xt.x-yt,se=pe.x,Rt=xt.right+Rt,de=pe.right+ne,Bt=xt.y-Bt;var qi=pe.y;xt=xt.bottom+Gt,pe=pe.bottom+ie;var ji="1px";if(Gt="1px",a.scrollMode===Nd&&(Dr||pr)&&(Dr&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Dr=1,yt+1<se&&(Dr=Math.max((se-yt)*qr+a.Aa,Dr)),Rt>de+1&&(Dr=Math.max((Rt-de)*qr+a.Aa,Dr)),$t+ne+1<yi&&(Dr=Math.max((yi-$t)*qr+a.Aa,Dr)),ji=Dr.toString()+"px"),pr&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Dr=1,Bt+1<qi&&(Dr=Math.max((qi-Bt)*qr+a.ya,Dr)),xt>pe+1&&(Dr=Math.max((xt-pe)*qr+a.ya,Dr)),In+ie+1<di&&(Dr=Math.max((di-In)*qr+a.ya,Dr)),Gt=Dr.toString()+"px")),Dr=ji!=="1px",pr=Gt!=="1px",Dr&&pr||!Dr&&!pr||(pr&&(de-=a.Db),Dr&&(pe-=a.Db),yi<$t+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,yt+1<se&&(ne=Math.max((se-yt)*qr+a.Aa,ne)),Rt>de+1&&(ne=Math.max((Rt-de)*qr+a.Aa,ne)),$t+1<yi&&(ne=Math.max((yi-$t)*qr+a.Aa,ne)),ji=ne.toString()+"px"),Dr=ji!=="1px",ne=a.ya,Dr!==a.Be&&(ne=Dr?a.ya-a.Db:a.ya+a.Db),di<In+ie||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ie=1,Bt+1<qi&&(ie=Math.max((qi-Bt)*qr+ne,ie)),xt>pe+1&&(ie=Math.max((xt-pe)*qr+ne,ie)),In+1<di&&(ie=Math.max((di-In)*qr+ne,ie)),Gt=ie.toString()+"px"),pr=Gt!=="1px"),a.qr&&Dr===a.Be&&pr===a.gf)return b===a.Aa&&E===a.ya||a.bd(),!1;if(Dr!==a.Be&&(ji==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Dr,Je.style.width=ji,pr!==a.gf&&(Gt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ie=rt.alloc(),pr?(y.style.left=a.Db+"px",a.position=ie.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ie.h(a.pa.x-a.Db/a.scale,a.pa.y)),rt.free(ie))),z&&Oc(a),a.gf=pr,Je.style.height=Gt,a.gu=!0,z&&(a.pn=!0),y=He.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($t+1<yi?y=(a.position.x-yt)*qr:yt+1<se?y=He.scrollWidth-He.clientWidth:Rt>de+1&&(y=a.position.x*qr)),a.tn)switch(a.bu){case"negative":y=-(He.scrollWidth-y-He.clientWidth);break;case"reverse":y=He.scrollWidth-y-He.clientWidth}return He.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(In+1<di?He.scrollTop=(a.position.y-Bt)*qr:Bt+1<qi?He.scrollTop=He.scrollHeight-He.clientHeight:xt>pe+1&&(He.scrollTop=a.position.y*qr)),se=a.Aa,de=a.ya,He.style.width=se+(a.gf?a.Db:0)+"px",He.style.height=de+(a.Be?a.Db:0)+"px",b!==se||E!==de||a.animationManager.zb?(b=An.allocAt(x,Se,Ne,Oe),a.onViewportBoundsChanged(b,a.viewportBounds,qr,z),An.free(b),!1):!0}Me=kn.prototype,Me.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&kt("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&&kt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var b=y.oi(99999999,a,a.diagram===this);0<=b&&this.cb(Ta,"parts",y,null,a,null,b),y.isTemporary||this.Ya(),a.C(1),b=a.layerChanged,b!==null&&b(a,null,y)}},Me.oi=function(a){this.partManager.oi(a);var y=this;Uf(a,function(b){bh(y,b)}),(a instanceof _o||a instanceof $i&&a.placeholder!==null)&&a.v(),a.data!==null&&Uf(a,function(b){by(y.partManager,b)}),Ut(a)!==!0&&rf(a)!==!0||this.De.add(a),VS(a,!0,this),ZS(a)?(a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.$b()},Me.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Uf(a,function(b){Ey(y.partManager,b,y)}),this.De.remove(a),ZS(a)?(a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.$b()},Me.remove=function(a){ap(this,a,!0)};function ap(a,y,b){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),b&&y.Lj(),b=E.pc(-1,y,!1),0<=b&&a.cb(ka,"parts",E,y,null,b,null),a=y.layerChanged,a!==null&&a(y,E,null))}Me.Is=function(a,y){if(y===void 0&&(y=!1),Qn(a))for(var b=a.length,E=0;E<b;E++){var x=a[E];y&&!x.canDelete()||this.remove(x)}else for(b=new ur,b.addAll(a),a=b.iterator;a.next();)b=a.value,y&&!b.canDelete()||this.remove(b)},Me.Kj=function(a,y,b){return b===void 0&&(b=!1),this.partManager.Kj(a,y,b)},kn.prototype.moveParts=function(a,y,b,E){if(b===void 0&&(b=!1),E===void 0&&(E=If(this)),this.toolManager!==null){var x=new Rn;if(a!==null)if(Qn(a))for(var z=0;z<a.length;z++)Qc(this,x,a[z],b,E);else for(a=a.iterator;a.next();)Qc(this,x,a.value,b,E);else{for(a=this.parts;a.next();)Qc(this,x,a.value,b,E);for(a=this.nodes;a.next();)Qc(this,x,a.value,b,E);for(a=this.links;a.next();)Qc(this,x,a.value,b,E)}Zd(this,x,y,E,b)}};function Qc(a,y,b,E,x,z){if(!y.contains(b)&&(z===void 0&&(z=!1),!E||z||b.canMove()||b.canCopy()))if(x===void 0&&(x=If(a)),b instanceof ii){if(y.add(b,a.Pd(x,b,b.location)),b instanceof $i&&(b.placeholder!==null||x.dragsMembers))for(z=b.memberParts;z.next();)Qc(a,y,z.value,E,x,x.groupsAlwaysMove);for(z=b.linksConnected;z.next();){var ne=z.value;if(!y.contains(ne)){var ie=ne.fromNode,se=ne.toNode;ie!==null&&y.contains(ie)&&se!==null&&y.contains(se)&&Qc(a,y,ne,E,x)}}if(x.dragsTree)for(b=b.Ou();b.next();)Qc(a,y,b.value,E,x)}else if(b instanceof Mr)for(y.add(b,a.Pd(x,b)),b=b.labelNodes;b.next();)Qc(a,y,b.value,E,x);else b instanceof _o||y.add(b,a.Pd(x,b,b.location))}function Zd(a,y,b,E,x){if(y!==null&&y.count!==0){var z=rt.alloc(),ne=rt.alloc();ne.assign(b),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(b=a.Mr)||Rf(a,y);for(var ie=Jr(),se=Jr(),de=y.iterator,pe=rt.alloc();de.next();){var Se=de.key,Ne=de.value;if(Se.Zc()){var Oe=sp(a,Se,y);Oe!==null?ie.push(new re(Se,Ne,Oe)):(!x||Se.canMove())&&(Oe=Ne.point,z.assign(Oe),a.computeMove(Se,z.add(ne),E,pe),Se.location=pe,Ne.shifted===void 0&&(Ne.shifted=new rt),Ne.shifted.assign(pe.re(Oe)))}else de.key instanceof Mr&&se.push(de.sa)}for(rt.free(pe),x=ie.length,de=0;de<x;de++)Se=ie[de],z.assign(Se.info.point),Se.Su.shifted===void 0&&(Se.Su.shifted=new rt),Se.node.location=z.add(Se.Su.shifted);for(x=rt.alloc(),de=rt.alloc(),Se=se.length,Ne=0;Ne<Se;Ne++){var He=se[Ne];if(Oe=He.key,Oe instanceof Mr)if(Oe.suspendsRouting){Oe.Tg=null,pe=Oe.fromNode;var Je=Oe.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Je=He.value.point,Oe.dragComputation===null)y.add(Oe,a.Pd(E,Oe,ne)),Lh(Oe,ne.x-Je.x,ne.y-Je.y);else{He=rt.allocAt(0,0),(pe=Oe.i(0))&&pe.w()&&He.assign(pe);var xt=pe=rt.alloc().assign(He).add(ne);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(xt=rt.alloc(),Df(a,Oe,pe,xt,E)),pe.assign(Oe.dragComputation(Oe,pe,xt)).re(He),y.add(Oe,a.Pd(E,Oe,pe)),Lh(Oe,pe.x-Je.x,pe.y-Je.y),rt.free(He),rt.free(pe),xt!==pe&&rt.free(xt)}else pe!==null&&(x.assign(pe.location),xt=y.I(pe),xt!==null&&x.re(xt.point)),Je!==null&&(de.assign(Je.location),xt=y.I(Je),xt!==null&&de.re(xt.point)),pe!==null&&Je!==null?x.Xa(de)?(pe=He.value.point,Je=z,Je.assign(x),Je.re(pe),y.add(Oe,a.Pd(E,Oe,x)),Lh(Oe,Je.x,Je.y)):(Oe.suspendsRouting=!1,Oe.bb()):(He=He.value.point,pe=pe!==null?x:Je!==null?de:ne,y.add(Oe,a.Pd(E,Oe,pe)),Lh(Oe,pe.x-He.x,pe.y-He.y))}else(Oe.fromNode===null||Oe.toNode===null)&&(pe=He.value.point,y.add(Oe,a.Pd(E,Oe,ne)),Lh(Oe,ne.x-pe.x,ne.y-pe.y))}rt.free(z),rt.free(ne),rt.free(x),rt.free(de),Hr(ie),Hr(se),b||($s(a),Pd(a,y))}}kn.prototype.computeMove=function(a,y,b,E){if(E===void 0&&(E=new rt),E.assign(y),a===null)return E;var x=y,z=b.isGridSnapEnabled;z&&(b.isGridSnapRealtime||this.lastInput.up)&&(x=rt.alloc(),Df(this,a,y,x,b)),b=a.dragComputation!==null?a.dragComputation(a,y,x):x;var ne=a.minLocation,ie=ne.x;isNaN(ie)&&(ie=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var se=a.maxLocation,de=se.x;return isNaN(de)&&(de=z?Math.round(1e3*a.location.x)/1e3:a.location.x),se=se.y,isNaN(se)&&(se=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(ie,Math.min(b.x,de)),Math.max(ne,Math.min(b.y,se))),x!==y&&rt.free(x),E};function If(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Df(a,y,b,E,x){if(x===void 0&&(x=If(a)),E.assign(b),y!==null){var z=a.grid;y=x.gridSnapCellSize,a=y.width,y=y.height;var ne=x.gridSnapOrigin,ie=ne.x;if(ne=ne.y,x=x.gridSnapCellSpot,z!==null){var se=z.gridCellSize;isNaN(a)&&(a=se.width),isNaN(y)&&(y=se.height),z=z.gridOrigin,isNaN(ie)&&(ie=z.x),isNaN(ne)&&(ne=z.y)}z=rt.allocAt(0,0),z.yi(0,0,a,y,x),an.No(b.x,b.y,ie+z.x,ne+z.y,a,y,E),rt.free(z)}}function Rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Mr&&(y.suspendsRouting=!0)}function Pd(a,y){if(y!==null){for(y=y.iterator;y.next();){var b=y.key;b instanceof Mr&&(b.suspendsRouting=!1,ay(b)&&b.bb())}a.Mr=!1}}function sp(a,y,b){return y=y.containingGroup,y!==null&&(a=sp(a,y,b),a!==null||(a=b.I(y),a!==null))?a:null}Me=kn.prototype,Me.Pd=function(a,y,b){if(b===void 0)return new Jc(jr);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Jc(new rt(Math.round(1e3*b.x)/1e3,Math.round(1e3*b.y)/1e3)):new Jc(b.copy())};function lp(a,y,b){if(y.diagram!==null&&y.diagram!==a&&kt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),b===null?y.diagram!==null&&kt("Cannot add an existing Layer to this Diagram again: "+y):(b.diagram!==a&&kt("Existing Layer must be in this Diagram: "+b+" not in "+b.diagram),y===b&&kt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,b=a.count;for(var E=0;E<b;E++)a.M(E).name===y&&kt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Me.Al=function(a){lp(this,a,null),a.Xe(this);var y=this.Wa,b=y.count-1;if(!a.isTemporary)for(;0<=b&&y.M(b).isTemporary;)b--;return y.Gb(b+1,a),this.cc!==null&&this.cb(Ta,"layers",this,null,a,null,b+1),this.N(),this.Ya(),this},Me.Ww=function(a,y){lp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(ka,"layers",this,a,null,E,null));var x=b.count,z;for(z=0;z<x;z++)if(b.M(z)===y){b.Gb(z,a);break}return this.cc!==null&&this.cb(Ta,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Me.Cy=function(a,y){lp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(ka,"layers",this,a,null,E,null));var x=b.count,z;for(z=0;z<x;z++)if(b.M(z)===y){b.Gb(z+1,a);break}return this.cc!==null&&this.cb(Ta,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Me.kA=function(a){if(a.diagram!==this&&kt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,b=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,x=E.layerName;x!==a.name?E.layerName=x:E.layerName=""}this.cc!==null&&this.cb(ka,"layers",this,a,null,b,null),this.N(),this.Ya()}}},Me.Qj=function(a){for(var y=this.layers;y.next();){var b=y.value;if(b.name===a)return b}return null},Me.Yw=function(a){return this.pf===null&&(this.pf=new rr),this.pf.add(a),this.model.Pe(a),this},Me.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Me.Pe=function(a){return this.zg===null&&(this.zg=new rr),this.zg.add(a),this},Me.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Me.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Ds&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,b=y.length,E=0;E<b;E++)y.M(E)(a)},Me.cb=function(a,y,b,E,x,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var ie=new ga;ie.diagram=this,ie.change=a,ie.propertyName=y,ie.object=b,ie.oldValue=E,ie.oldParam=z,ie.newValue=x,ie.newParam=ne,this.ds(ie)},Me.g=function(a,y,b,E,x){this.cb(sa,a,this,y,b,E,x)},kn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var b=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===sa){var x=a.object;if(Pa(x,a.propertyName,a.I(y)),x instanceof tn){var z=x.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===Ta){var ne=a.object,ie=a.newParam,se=a.newValue;if(ne instanceof Nr)if(typeof ie=="number"&&se instanceof tn){y?ne.pc(ie):ne.Gb(ie,se);var de=ne.part;de!==null&&de.Wb()}else typeof ie=="number"&&se instanceof ws&&(se.isRow?mS(ne,ie,y?void 0:se):vS(ne,ie,y?void 0:se));else if(ne instanceof Rs){var pe=a.oldParam===!0;typeof ie=="number"&&se instanceof ki&&(y?(se.isSelected=!1,se.isHighlighted=!1,se.Wb(),ne.pc(pe?ie:-1,se,pe)):ne.oi(ie,se,pe))}else ne instanceof kn?typeof ie=="number"&&se instanceof Rs&&(y?this.Wa.mb(ie):(se.Xe(this),this.Wa.Gb(ie,se))):kt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===ka){var Se=a.object,Ne=a.oldParam,Oe=a.oldValue;if(Se instanceof Nr)typeof Ne=="number"&&Oe instanceof tn?y?Se.Gb(Ne,Oe):Se.pc(Ne):typeof Ne=="number"&&Oe instanceof ws&&(Oe.isRow?mS(Se,Ne,y?Oe:void 0):vS(Se,Ne,y?Oe:void 0));else if(Se instanceof Rs){var He=a.newParam===!0;typeof Ne=="number"&&Oe instanceof ki&&(y?0>Se.Pa.indexOf(Oe)&&Se.oi(Ne,Oe,He):(Oe.isSelected=!1,Oe.isHighlighted=!1,Oe.Wb(),Se.pc(He?Ne:-1,Oe,He)))}else Se instanceof kn?typeof Ne=="number"&&Oe instanceof Rs&&(y?(Oe.Xe(this),this.Wa.Gb(Ne,Oe)):this.Wa.mb(Ne)):kt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Ds&&kt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=b}}},kn.prototype.Ea=function(a){return this.undoManager.Ea(a)},kn.prototype.eb=function(a){return this.undoManager.eb(a)},kn.prototype.Kf=function(){return this.undoManager.Kf()},kn.prototype.commit=function(a,y){y===void 0&&(y="");var b=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=b}},kn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},kn.prototype.rp=function(){this.partManager.rp()};function up(a,y,b){var E=a.animationManager;if(a.vb||a.ld)a.Ca=b,Oc(a),a.N(),a.Ee=!0,E.zb&&(al(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=b,Oc(a);else{a.vb=!0;var x=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,ie=a.zoomPoint.x,se=a.zoomPoint.y,de=a.contentAlignment;isNaN(ie)&&(de.$c()?de.Hf(Ys)?ie=0:de.Hf(oa)&&(ie=z-1):ie=de.sb()?de.x*(z-1):z/2),isNaN(se)&&(de.$c()?de.Hf(Ca)?se=0:de.Hf(as)&&(se=ne-1):se=de.sb()?de.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(b=a.scaleComputation(a,b)),b<a.minScale&&(b=a.minScale),b>a.maxScale&&(b=a.maxScale),z=rt.allocAt(a.pa.x+ie/y-ie/b,a.pa.y+se/y-se/b),a.position=z,rt.free(z),a.Ca=b,Oc(a),a.vb=!1,a.onViewportBoundsChanged(x,a.viewportBounds,y,!1),$u(a,!1),E.zb&&(al(E)||E.ce.add(E.H,"scale",y,a.Ca))}}kn.prototype.onViewportBoundsChanged=function(a,y,b,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var x=this.layout;x===null||!x.isViewportSized||this.autoScale!==wl||a.width===y.width&&a.height===y.height||x.C(),x=this.currentTool,this.Vk===!0&&x instanceof ta&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Vc(x,this)),this.vb||this.invalidateViewport(a,y),Mc(this),this.fc.scale=b,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*b),this.fc.canvasSize.height=Math.round(a.height*b),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Mc(a,y){var b=a.fe;if(b!==null&&b.visible){for(var E=cn.alloc(),x=1,z=1,ne=b.O.s,ie=ne.length,se=0;se<ie;se++){var de=ne[se],pe=Math.abs(de.interval);2>pe||(Nv(de.figure)?z=z*pe/an.vx(z,pe):x=x*pe/an.vx(x,pe))}if(ne=b.gridCellSize,E.h(z*ne.width,x*ne.height),y!==void 0)x=y.width,z=y.height,a=y.x,ne=y.y;else{if(y=An.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){An.free(y);return}x=y.width,z=y.height,a=y.x,ne=y.y,An.free(y)}b.width=x+2*E.width,b.height=z+2*E.height,y=rt.alloc(),an.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),cn.free(E),b.part.location=y,rt.free(y)}}kn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var b=y.Fa(),E=b.length,x=0;x<E;x++)b[x].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},kn.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))},kn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Qn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];E instanceof ki||kt("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof ki||kt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},kn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),b=y.length,E=0;E<b;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Me=kn.prototype,Me.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Me.Jz=function(a){a=new ur().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 ki||kt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Me.scroll=function(a,y,b){b===void 0&&(b=1);var E=y==="up"||y==="down",x=0,z=rt.alloc();if(a==="pixel")x=b;else if(a==="line")x=b*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(x=b*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){x=this.documentBounds,b=this.viewportBounds,y==="up"?this.position=z.h(b.x,x.y):y==="left"?this.position=z.h(x.x,b.y):y==="down"?this.position=z.h(b.x,x.bottom-b.height):y==="right"&&(this.position=z.h(x.right-b.width,b.y)),rt.free(z);return}kt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}x/=this.scale,b=this.position,y==="up"?this.position=z.h(b.x,b.y-x):y==="down"?this.position=z.h(b.x,b.y+x):y==="left"?this.position=z.h(b.x-x,b.y):y==="right"?this.position=z.h(b.x+x,b.y):kt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),rt.free(z)},Me.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)},Me.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Me.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var b=this.pa;return(b.x!==0||b.y!==0)&&isFinite(b.x)&&isFinite(b.y)&&y.translate(-b.x,-b.y),a.copy().transform(this.Ab)},Me.zA=function(a){var y=this.Ab,b=a.x,E=a.y,x=b+a.width,z=E+a.height,ne=y.m11,ie=y.m12,se=y.m21,de=y.m22,pe=y.dx,Se=y.dy,Ne=b*ne+E*se+pe;y=b*ie+E*de+Se;var Oe=x*ne+E*se+pe;return a=x*ie+E*de+Se,E=b*ne+z*se+pe,b=b*ie+z*de+Se,ne=x*ne+z*se+pe,x=x*ie+z*de+Se,z=Math.min(Ne,Oe),Ne=Math.max(Ne,Oe),Oe=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Ne=Math.max(Ne,E),Oe=Math.min(Oe,b),y=Math.max(y,b),z=Math.min(z,ne),Ne=Math.max(Ne,ne),Oe=Math.min(Oe,x),y=Math.max(y,x),new An(z,Oe,Ne-z,y-Oe)},Me.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var b=this.pa;return(b.x!==0||b.y!==0)&&isFinite(b.x)&&isFinite(b.y)&&y.translate(-b.x,-b.y),Mn(a.copy(),this.Ab)};function cp(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function dp(a){return a=Ff.get(a),a!==null?new a:new Jo}kn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var b=a.change,E=a.propertyName;if(b===Ds&&E[0]==="S")if(E==="StartingFirstTransaction"){var x=this;a=this.toolManager,a.mouseDownTools.each(function(se){return se.diagram=x}),a.mouseMoveTools.each(function(se){return se.diagram=x}),a.mouseUpTools.each(function(se){return se.diagram=x}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&b===Ds){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),$s(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||hu(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(cp(this),this.As.clear(),wd(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var ie=this;fn(function(){ie.currentTool.standardMouseOver(),ie.Rt=!1},10)}}}finally{this.aa=!0}}}};function bh(a,y){y=y.O.s;for(var b=y.length,E=0;E<b;E++)Kd(a,y[E])}function Kd(a,y){if(y instanceof yu){var b=y.element;if(b!==null&&b instanceof HTMLImageElement){b.Bg instanceof ur&&b.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),b.hn)if(b=b.getAttribute("src")||"",E=a.Og.I(b),E===null)E=[],E.push(y),a.Og.add(b,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function hp(a,y){if(y instanceof yu){var b=y.element;if(b!==null&&b instanceof HTMLImageElement&&b.hn){var E=b.getAttribute("src")||"",x=a.Og.I(E);if(x!==null){for(var z=0;z<x.length;z++)if(x[z]===y){x.splice(z,1),x.length===0&&(a.Og.remove(E),b.Fq&&b.removeEventListener("load",b.Fq),b.Yp&&b.removeEventListener("error",b.Yp),delete b.Fq,delete b.Yp,b.Bg instanceof ur&&b.Bg.remove(a),fg(E));break}}}}}kn.prototype.Wd=function(){this.partManager.Wd()},kn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},kn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},kn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},kn.prototype.Vb=function(a){return this.partManager.Vb(a)},kn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Me=kn.prototype,Me.Lc=function(a){return this.partManager.Lc(a)},Me.ii=function(a){return this.partManager.ii(a)},Me.Kc=function(a){return this.partManager.Kc(a)},Me.ms=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:ei(Pr(y)))},Me.ls=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:ei(Pr(y)))};function Oc(a){var y=a.pa,b=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/b,Math.max(a.ya,0)/b),a.vd=!0}function fp(a,y){a.Zi=!1;var b=a.Sp;b.D(y)||(b=b.copy(),a.Sp.assign(y),$u(a,!1),a.R("DocumentBoundsChanged",void 0,b),a.Ee=!0,a.N())}Me.Va=function(){if(this.Zi){var a=An.alloc();fp(this,this.computeBounds(a)),An.free(a)}},Me.rz=function(){for(var a=new ur,y=this.nodes;y.next();){var b=y.value;b.isTopLevel&&a.add(b)}for(y=this.links;y.next();)b=y.value,b.isTopLevel&&a.add(b);return a.iterator},Me.qz=function(){return this.ai.iterator},Me.Uz=function(a){$s(this),a&&Yd(this,!0),this.ld?gp(this,!1):(this.Jk=!0,Pu(this))};function Yd(a,y){for(var b=a.ai.iterator;b.next();)pp(a,b.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function pp(a,y,b){if(y!==null){for(var E=y.gl.iterator;E.next();)pp(a,E.value,b);y.layout!==null&&(b?y.layout.isValidLayout=!1:y.layout.C())}}function gp(a,y){if(a.xh&&!a.lt){var b=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,x=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Es(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)mp(a,ne.value,y,E);x.isValidLayout||(!y||x.isRealtime||x.isRealtime===null||E===0?(x.doLayout(a),$s(a),x.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||hu(z),a.aa=b}}}function mp(a,y,b,E){if(y!==null){for(var x=y.gl.iterator;x.next();)mp(a,x.value,b,E);x=y.layout,x===null||x.isValidLayout||(!b||x.isRealtime||E===0?(y.rh=!y.location.w(),x.doLayout(y),y.C(32),Xc(a,y),x.isValidLayout=!0):a.xh=!0)}}Me.yz=function(){for(var a=new rr,y=this.nodes;y.next();){var b=y.value;b.isTopLevel&&b.kh()===null&&a.add(b)}return a.iterator};function jg(a){function y(x){var z=x.toLowerCase(),ne=new rr;b.add(x,ne),b.add(z,ne),E.add(x,x),E.add(z,x)}var b=new Rn,E=new Rn;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=b,a.hw=E}function $p(a,y){var b=a.hw.I(y);return b!==null?b:a.hw.I(y.toLowerCase())}function Td(a,y){var b=a.iw.I(y);if(b!==null||(b=a.iw.I(y.toLowerCase()),b!==null))return b;kt("Unknown DiagramEvent name: "+y)}Me.Bj=function(a,y){return a=Td(this,a),a!==null&&a.add(y),this},Me.am=function(a,y){a=Td(this,a),a!==null&&a.remove(y)},Me.R=function(a,y,b){var E=Td(this,a),x=new Fu;if(x.diagram=this,a=$p(this,a),a!==null&&(x.name=a),y!==void 0&&(x.subject=y),b!==void 0&&(x.parameter=b),y=E.length,y===1)E.M(0)(x);else if(y!==0)for(E=E.Fa(),b=0;b<y;b++)(0,E[b])(x)};function Mf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Me.Yj=function(a,y){return Qh(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},kn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Af(this,a):a.assign(this.documentBounds)};function Qh(a,y,b,E){var x=a.Xh;if(x===null&&(a.Xh=x=new um(a.avoidanceCellSize)),x.vs||x.group!==b||x.Yx!==E){if(x.Hx=Math.max(x.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),x.Ix=Math.max(x.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),b!==null&&(b=eg(a,b)),b===null){y=An.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),x.initialize(y);for(var z=a.nodes;z.next();){var ne=z.value,ie=ne.layer;ie!==null&&ie.visible&&!ie.isTemporary&&Of(a,ne,E,y)}An.free(y)}else{for(0<b.memberParts.count&&(y=a.computePartsBounds(b.memberParts,!1),y.Bc(20,20),x.initialize(y)),y=An.alloc(),z=b.memberParts;z.next();)ne=z.value,ne instanceof ii&&Of(a,ne,E,y);An.free(y)}x.group=b,x.Yx=E,x.vs=!1}else y&&d1(x);return x}function eg(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?eg(a,y.containingGroup):null}function Of(a,y,b,E){if(y!==b&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var x=y.x,z=y.y;if(Sg(a,x,z))for(b=(z-a.Od)/a.sc|0,E=Math.min((x+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),x=(x-a.Nd)/a.rc|0;x<=E;x++)if(z=a.ac[x],z.fill)z.fill(Ih,b,y+1);else for(var ne=b;ne<=y;ne++)z[ne]=Ih}else if(y instanceof $i)for(y=y.memberParts;y.next();)x=y.value,x instanceof ii&&Of(a,x,b,E)}}function Xd(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}kn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():vp(this)};function vp(a){a.vk===-1&&(a.vk=fn(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=An.alloc(),a.computeBounds(y),y.ed(a.documentBounds),fp(a,y),An.free(y),a.Fc=!0,a.bd(),vp(a))}},a.vp))}kn.prototype.ug=function(){this.vk!==-1&&(sr.clearTimeout(this.vk),this.vk=-1)},kn.prototype.computeAutoScrollPosition=function(a){var y=this.position,b=this.xp;if(0>=b.top&&0>=b.left&&0>=b.right&&0>=b.bottom)return y;var E=this.viewportBounds,x=this.scale;E=An.allocAt(0,0,E.width*x,E.height*x);var z=rt.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+b.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,z.x-=ne,a.x<E.x+b.left/2&&(z.x-=ne),a.x<E.x+b.left/4&&(z.x-=4*ne)}else a.x<=E.x+E.width&&a.x>E.x+E.width-b.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>E.x+E.width-b.right/2&&(z.x+=ne),a.x>E.x+E.width-b.right/4&&(z.x+=4*ne));return a.y>=E.y&&a.y<E.y+b.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y-=ne,a.y<E.y+b.top/2&&(z.y-=ne),a.y<E.y+b.top/4&&(z.y-=4*ne)):a.y<=E.y+E.height&&a.y>E.y+E.height-b.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>E.y+E.height-b.bottom/2&&(z.y+=ne),a.y>E.y+E.height-b.bottom/4&&(z.y+=4*ne)),z.Xa(jr)||(y=new rt(y.x+z.x/x,y.y+z.y/x)),An.free(E),rt.free(z),y},Me=kn.prototype,Me.Cs=function(){return null},Me.av=function(){return null},Me.bs=function(a,y){this.pj.add(a,y)},Me.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof $i&&(y.$p=null)})};function Qd(a,y,b){function E(){var pe=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||pe-de>se?y(b,x,ie):sr.requestAnimationFrame(E)}for(var x=b.callback,z=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){z=!1;break}if(typeof x!="function"||z)return y(b,x,a);var ie=a,se=b.callbackTimeout||300,de=+new Date;return sr.requestAnimationFrame(function(){E()}),null}Me.Wz=function(a){return Da?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Me.Jx=function(a){return a===void 0&&(a={}),Qd(this,this.Xz,a)},Me.Xz=function(a,y,b){var E=tg(b,a,"canvas",null);if(E===null)return null;b=E.Z.canvas;var x=null;if(b!==null)switch(x=a.returnType,x===void 0?x="string":x=x.toLowerCase(),x){case $d+"data":x=E.getImageData(0,0,b.width,b.height);break;case $d:E=(a.document||document).createElement("img"),E.src=b.toDataURL(a.type,a.details),x=E;break;case"blob":return typeof y!="function"&&kt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof b.toBlob=="function"?(b.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:x=b.toDataURL(a.type,a.details)}return typeof y=="function"?(y(x),null):x};function tg(a,y,b,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&kt("properties argument must be an Object.");var x=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=b==="SVG"?new cn(1/0,1/0):new cn(2e3,2e3));var ie=y.position||null,se=y.parts||null,de=y.padding===void 0?1:y.padding,pe=y.background||null,Se=y.omitTemporary;Se===void 0&&(Se=!0);var Ne=y.document||document,Oe=y.elementFinished||null,He=y.showTemporary;He===void 0&&(He=!Se),y=y.showGrid,y===void 0&&(y=He),x!==null&&isNaN(x.width)&&isNaN(x.height)&&(x=null),typeof de=="number"?de=new Qi(de):de instanceof Qi||kt("MakeImage padding must be a Margin or a number."),de.left=Math.max(de.left,0),de.right=Math.max(de.right,0),de.top=Math.max(de.top,0),de.bottom=Math.max(de.bottom,0),a.ib.Vc(!0),Se=new ul(null,Ne,void 0,!0);var Je=Se.context;if(!(x||z||se||ie))return Se.width=a.Aa+Math.ceil(de.left+de.right),Se.height=a.ya+Math.ceil(de.top+de.bottom),b==="SVG"?E===null?null:(E.resize(Se.width,Se.height,Se.width,Se.height),E.ownerDocument=Ne,E.hs=Oe,kf(a,E.context,de,new cn(Se.width,Se.height),a.Ca,a.pa,se,pe,He,y),E.context):(a.Xm=!1,kf(a,Je,de,new cn(Se.width,Se.height),a.Ca,a.pa,se,pe,He,y),a.Xm=!0,Se.context);var xt=a.Pp,yt=a.documentBounds.copy();if(yt.Fv(a.yb),He)for(var Rt=a.Wa.s,Bt=Rt.length,Gt=0;Gt<Bt;Gt++){var $t=Rt[Gt];if($t.visible&&$t.isTemporary){$t=$t.Pa.s;for(var In=$t.length,qr=0;qr<In;qr++){var yi=$t[qr];yi.isInDocumentBounds&&yi.isVisible()&&(yi=yi.actualBounds,yi.w()&&yt.ed(yi))}}}if(Rt=new rt(yt.x,yt.y),se!==null){for(Bt=new An(0,0,0,0),Gt=!0,$t=se.iterator,$t.reset();$t.next();)In=$t.value,In instanceof ki&&(qr=In.layer,qr!==null&&!qr.visible||qr!==null&&!He&&qr.isTemporary||!In.isVisible()||(In=In.actualBounds,In.w()&&(Gt?(Gt=!1,Bt.assign(In)):Bt.ed(In))));yt.width=Bt.width,yt.height=Bt.height,Rt.x=Bt.x,Rt.y=Bt.y}return ie!==null&&ie.w()&&(Rt=ie,z||(z=xt)),Bt=ie=0,de!==null&&(ie=de.left+de.right,Bt=de.top+de.bottom),Gt=$t=0,x!==null&&($t=x.width,Gt=x.height,isFinite($t)&&($t=Math.max(0,$t-ie)),isFinite(Gt)&&(Gt=Math.max(0,Gt-Bt))),x!==null&&z!==null?(z==="NaN"&&(z=xt),x.w()?(x=$t,yt=Gt):isNaN(Gt)?(x=$t,yt=yt.height*z):(x=yt.width*z,yt=Gt)):x!==null?x.w()?(z=Math.min($t/yt.width,Gt/yt.height),x=$t,yt=Gt):isNaN(Gt)?(z=$t/yt.width,x=$t,yt=yt.height*z):(z=Gt/yt.height,x=yt.width*z,yt=Gt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-ie)/yt.width,(ne.height-Bt)/yt.height),z>xt?(z=xt,x=yt.width,yt=yt.height):(x=ne.width,yt=ne.height)):(x=yt.width*z,yt=yt.height*z):(z=xt,x=yt.width,yt=yt.height),de!==null?(x+=ie,yt+=Bt):de=new Qi(0),ne!==null&&(xt=ne.width,ne=ne.height,isNaN(xt)&&(xt=2e3),isNaN(ne)&&(ne=2e3),isFinite(xt)&&(x=Math.min(x,xt)),isFinite(ne)&&(yt=Math.min(yt,ne))),Se.width=Math.ceil(x),Se.height=Math.ceil(yt),b==="SVG"?E===null?null:(E.resize(Se.width,Se.height,Se.width,Se.height),E.ownerDocument=Ne,E.hs=Oe,kf(a,E.context,de,new cn(Math.ceil(x),Math.ceil(yt)),z,Rt,se,pe,He,y),E.context):(a.Xm=!1,kf(a,Je,de,new cn(Math.ceil(x),Math.ceil(yt)),z,Rt,se,pe,He,y),a.Xm=!0,Se.context)}un.Object.defineProperties(kn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof xe||(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 Eo(this,sr.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 Eo(this,sr.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(b){b.cancelWaitAfter()}),y.mouseMoveTools.each(function(b){b.cancelWaitAfter()}),y.mouseUpTools.each(function(b){b.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(sr,"resize",this.Ov,!1),this.removeEventListener(sr,"wheel",this.$j,!0),Rc===this&&(Rc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),tp(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)&&vr(a,"0 <= value <= 1",kn,"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),$u(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),$u(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),$u(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),$u(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&vr(a,">= 0",kn,"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&&vr(a,">= 0",kn,"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,b=this.Ka;if(y!==null&&b!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,b.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,b.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,b.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,b.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 b=0;b<a;b++)y[b].isSelected=!1;this.R("ChangedSelection",this.selection)}}else vr(a,">= 0",kn,"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||cp(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&&kt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var b=ep(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Es(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=dp(this.cc.type);for(var x=0;x<b.length;x++)this.add(b[x]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(sr,"pointermove",this.dk,!0),this.addEventListener(sr,"pointerdown",this.ui,!0),this.addEventListener(sr,"pointerup",this.fk,!0),this.addEventListener(sr,"pointerout",this.ek,!0),this.addEventListener(sr,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(sr,"wheel",this.$j,!0),this.addEventListener(sr,"selectstart",this.preventDefault,!1)):(this.removeEventListener(sr,"pointermove",this.dk,!0),this.removeEventListener(sr,"pointerdown",this.ui,!0),this.removeEventListener(sr,"pointerup",this.fk,!0),this.removeEventListener(sr,"pointerout",this.ek,!0),this.removeEventListener(sr,"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(sr,"wheel",this.$j,!0),this.removeEventListener(sr,"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=rt.alloc().assign(this.pa);if(!y.D(a)){var b=this.viewportBounds.copy();this.pa.assign(a),hd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Oc(this):(this.vb=!0,a=this.scale,np(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(b,this.viewportBounds,this.Ca,!1)}rt.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=Jp(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Jp(this)),a.type!==Nr.Grid&&kt("Diagram.grid must be a Panel of type Panel.Grid");var b=y.panel;b!==null&&b.remove(y),this.fe=a,a.name="GRID",b!==null&&b.add(a),Mc(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),Oc(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||kt("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 Qi(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===Nd&&$u(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,$u(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,up(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&&up(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!==wl&&$u(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()||kt("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()||kt("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)):vr(a,"> 0",kn,"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)):vr(a,"> 0",kn,"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),$u(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 Qi(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&&kt("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();)$g(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==pd&&a!==Qa&&a!==qd&&kt("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 cn(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 Qi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),un.Object.defineProperties(kn,{licenseKey:{get:function(){return wp.jc()},set:function(a){wp.add(a.replace(/\s/g,""))}},version:{get:function(){return Ld}}}),kn.prototype.makeImageData=kn.prototype.Jx,kn.prototype.makeImage=kn.prototype.Wz,kn.prototype.cacheGroupExternalLinks=kn.prototype.Fu,kn.prototype.addRenderer=kn.prototype.bs,kn.prototype.makeSVG=kn.prototype.av,kn.prototype.makeSvg=kn.prototype.Cs,kn.prototype.stopAutoScroll=kn.prototype.ug,kn.prototype.doAutoScroll=kn.prototype.gs,kn.prototype.isUnoccupied=kn.prototype.Yj,kn.prototype.raiseDiagramEvent=kn.prototype.R,kn.prototype.removeDiagramListener=kn.prototype.am,kn.prototype.addDiagramListener=kn.prototype.Bj,kn.prototype.findTreeRoots=kn.prototype.yz,kn.prototype.layoutDiagram=kn.prototype.Uz,kn.prototype.findTopLevelGroups=kn.prototype.qz,kn.prototype.findTopLevelNodesAndLinks=kn.prototype.rz,kn.prototype.ensureBounds=kn.prototype.Va,kn.prototype.findLinksByExample=kn.prototype.ls,kn.prototype.findNodesByExample=kn.prototype.ms,kn.prototype.findLinkForData=kn.prototype.Kc,kn.prototype.findNodeForData=kn.prototype.ii,kn.prototype.findPartForData=kn.prototype.Lc,kn.prototype.findLinkForKey=kn.prototype.findLinkForKey,kn.prototype.findNodeForKey=kn.prototype.Vb,kn.prototype.findPartForKey=kn.prototype.findPartForKey,kn.prototype.rebuildParts=kn.prototype.Wd,kn.prototype.transformViewToDoc=kn.prototype.Ps,kn.prototype.transformRectDocToView=kn.prototype.zA,kn.prototype.transformDocToView=kn.prototype.op,kn.prototype.centerRect=kn.prototype.es,kn.prototype.scrollToRect=kn.prototype.tv,kn.prototype.scroll=kn.prototype.scroll,kn.prototype.highlightCollection=kn.prototype.Jz,kn.prototype.highlight=kn.prototype.Iz,kn.prototype.selectCollection=kn.prototype.rA,kn.prototype.select=kn.prototype.select,kn.prototype.updateAllRelationshipsFromData=kn.prototype.rp,kn.prototype.updateAllTargetBindings=kn.prototype.updateAllTargetBindings,kn.prototype.commit=kn.prototype.commit,kn.prototype.rollbackTransaction=kn.prototype.Kf,kn.prototype.commitTransaction=kn.prototype.eb,kn.prototype.startTransaction=kn.prototype.Ea,kn.prototype.raiseChanged=kn.prototype.g,kn.prototype.raiseChangedEvent=kn.prototype.cb,kn.prototype.removeChangedListener=kn.prototype.ik,kn.prototype.addChangedListener=kn.prototype.Pe,kn.prototype.removeModelChangedListener=kn.prototype.mA,kn.prototype.addModelChangedListener=kn.prototype.Yw,kn.prototype.findLayer=kn.prototype.Qj,kn.prototype.removeLayer=kn.prototype.kA,kn.prototype.addLayerAfter=kn.prototype.Cy,kn.prototype.addLayerBefore=kn.prototype.Ww,kn.prototype.addLayer=kn.prototype.Al,kn.prototype.moveParts=kn.prototype.moveParts,kn.prototype.copyParts=kn.prototype.Kj,kn.prototype.removeParts=kn.prototype.Is,kn.prototype.remove=kn.prototype.remove,kn.prototype.add=kn.prototype.add,kn.prototype.clearDelayedGeometries=kn.prototype.bx,kn.prototype.setProperties=kn.prototype.nm,kn.prototype.attach=kn.prototype.Du,kn.prototype.set=kn.prototype.set,kn.prototype.resetInputOptions=kn.prototype.Sx,kn.prototype.setInputOption=kn.prototype.sA,kn.prototype.getInputOption=kn.prototype.Ql,kn.prototype.resetRenderingHints=kn.prototype.Tx,kn.prototype.setRenderingHint=kn.prototype.Xx,kn.prototype.getRenderingHint=kn.prototype.Gf,kn.prototype.maybeUpdate=kn.prototype.bd,kn.prototype.requestUpdate=kn.prototype.$b,kn.prototype.delayInitialization=kn.prototype.Xy,kn.prototype.isUpdateRequested=kn.prototype.Pz,kn.prototype.invalidateDocumentBounds=kn.prototype.Ya,kn.prototype.findObjectsNear=kn.prototype.og,kn.prototype.findPartsNear=kn.prototype.mz,kn.prototype.findObjectsIn=kn.prototype.Cf,kn.prototype.findPartsIn=kn.prototype.ux,kn.prototype.findObjectsAt=kn.prototype.ji,kn.prototype.findPartsAt=kn.prototype.lz,kn.prototype.findObjectAt=kn.prototype.ic,kn.prototype.findPartAt=kn.prototype.Ol,kn.prototype.focusObject=kn.prototype.zz,kn.prototype.alignDocument=kn.prototype.Jy,kn.prototype.zoomToRect=kn.prototype.BA,kn.prototype.zoomToFit=kn.prototype.zoomToFit,kn.prototype.diagramScroll=kn.prototype.kx,kn.prototype.focus=kn.prototype.focus;var Ff=new Rn,ng=null,Da=sr.document!==void 0,Eh=null,Ad="",wl=new Ln(kn,"None",0),gu=new Ln(kn,"Uniform",1),xh=new Ln(kn,"UniformToFill",2),Jd=new Ln(kn,"CycleAll",10),yp=new Ln(kn,"CycleNotDirected",11),Sp=new Ln(kn,"CycleNotDirectedFast",12),bp=new Ln(kn,"CycleNotUndirected",13),Ep=new Ln(kn,"CycleDestinationTree",14),xp=new Ln(kn,"CycleSourceTree",15),Nd=new Ln(kn,"DocumentScroll",1),Jh=new Ln(kn,"InfiniteScroll",2),pd=new Ln(kn,"TreeParentCollapsed",21),Qa=new Ln(kn,"AllParentsCollapsed",22),qd=new Ln(kn,"AnyParentsCollapsed",23),wp=new rr,Ld="2.3.10",$d="image",qh=null,rg=!1;function pl(){if(Da){var a=sr.document.createElement("canvas"),y=a.getContext("2d"),b=nr("7ca11abfd022028846");y[b]=nr("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Rr.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ui.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",an.za],x=1;5>x;x++)y[nr("7ca11abfd7330390")](nr(E[x-1]),10,15*x);for(y[b]=nr("39f046ebb36e4b"),b=1;5>b;b++)y[nr("7ca11abfd7330390")](nr(E[b-1]),10,15*b);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Ui.prototype.Cd=Ui.prototype.Eu),qh=a}}kn.className="Diagram",kn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=sr.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof kn?y.H:null},kn.inherit=function(a,y){function b(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);b.prototype=y.prototype,a.prototype=new b,a.prototype.constructor=a},kn.useDOM=function(a){Da=a?sr.document!==void 0:!1},kn.isUsingDOM=function(){return Da},kn.None=wl,kn.Uniform=gu,kn.UniformToFill=xh,kn.CycleAll=Jd,kn.CycleNotDirected=yp,kn.CycleNotDirectedFast=Sp,kn.CycleNotUndirected=bp,kn.CycleDestinationTree=Ep,kn.CycleSourceTree=xp,kn.DocumentScroll=Nd,kn.InfiniteScroll=Jh,kn.TreeParentCollapsed=pd,kn.AllParentsCollapsed=Qa,kn.AnyParentsCollapsed=qd;function ig(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function kd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var b=sr[nr("76a715b2f73f148a")][nr("72ba13b5")]||"";if(a.Rc=!0,Da){var E=kn[nr("76a115b6ed251eaf4692")];if(E)for(var x=wp.iterator;x.next()&&(E=x.value,E=nr(E).split(nr("39e9")),!(6>E.length));){var z=nr(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=nr(Rr[nr("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var ie=sr[nr("74a900bae4370f8b51")][nr("6fbb13a1c2311e8a57")].toLowerCase();if(ne=ie[nr("73a612b6fb191d")](nr("3aad1ab6e022098b4dc4")),z=nr(E[2]),-1<ne&&(ie=ie[nr("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ie&&ie<ne),!a.Rc))break;for(ne=b[nr("76ad18b4f73e")],ie=b[nr("73a612b6fb191d")](nr("35e7"))+2;ie<ne;ie++)y+=b[ie];if(ne=y[nr("73a612b6fb191d")](z),0>ne&&z!==nr("7da71ca0ad381e90")&&(ne=y[nr("73a612b6fb191d")](nr("76a715b2ef3e149757"))),0>ne&&(ne=y[nr("73a612b6fb191d")](nr("76a715b2ef3e149757"))),0>ne&&(ne=y[nr("73a612b6fb191d")](nr("2bfa41fdb3784bca12"))),0>ne&&(ne=b[nr("73a612b6fb191d")](nr("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[nr("73a612b6fb191d")](nr("35"))||y[nr("73a612b6fb191d")](nr("35"))===-1),!a.Rc||b[nr("73a612b6fb191d")](nr("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<b[nr("73a612b6fb191d")](z)),!a.Rc)||(ne=sr[nr("76a715b2f73f148a")][nr("69ad17a1e03e")],ie=ne[nr("73a612b6fb191d")](nr("7fb002b6ed25128b4da25b2e")),-1<ie&&(a.Rc=!(ne[nr("73a612b6fb191d")](z)>ie),!a.Rc)))break;if(z[0]==="#"){ne=sr.document.createElement("div");for(var se=E[0].replace(/[A-Za-z]/g,"");4>se.length;)se+="9";if(ie=se,se=se.substr(se.length-4),E="",E+=["gsh","gsf"][parseInt(se.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(se.substr(0,1),10)%4],ne[nr("79a417a0f0181a8946")]=E,sr.document[nr("78a712aa")]){sr.document[nr("78a712aa")][nr("7bb806b6ed32388c4a875b")](ne),se=sr.getComputedStyle(ne).getPropertyValue(nr("78a704b7e62456904c9b12701b6532a8"));var de=sr.getComputedStyle(ne).getPropertyValue(nr("75b817b0ea2202"));if(sr.document[nr("78a712aa")][nr("68ad1bbcf533388c4a875b")](ne),se){if(ne=sr[nr("77a902b0eb1b1e804a8a")],de==="0."+parseInt(ie,10)%100||se.indexOf(parseInt(z[1]+z[2],16))!==-1&&se.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(nr("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ne=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var pe in ne)if(E===ne[pe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(pe=b[nr("76ad18b4f73e")],x=b[nr("73a612b6fb191d")](nr("35e7"))+2;x<pe;x++)y+=b[x];b=y[nr("73a612b6fb191d")](nr("7da71ca0ad381e90")),a.Rc=!(0<=b&&b<y[nr("73a612b6fb191d")](nr("35")))}}}return 0<a.Rc&&a!==a.wy}ig.className="DiagramHelper";function Jc(a){this.j=a===void 0?new rt:a,this.o=new rt}un.Object.defineProperties(Jc.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 eh="DraggingInfo";Jc.className="DraggingInfo";function re(a,y,b){this.node=a,this.info=y,this.Su=b}re.className="DraggingNodeInfoPair";function le(){this.reset()}le.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new cn(NaN,NaN).freeze(),this.gridSnapCellSpot=No,this.gridSnapOrigin=new rt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},le.className="DraggingOptions";function ye(a,y){if(typeof a=="string"||sr.Element&&a instanceof Element)var b=kn.call(this,a)||this;else b=kn.call(this)||this,y=a;return ve(b),y&&b.nm(y),b}hn(ye,kn);function ve(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=ba,a.layout=new tl}ye.prototype.reset=function(){kn.prototype.reset.call(this),ve(this)},ye.className="Palette";function xe(a,y){if(typeof a=="string"||sr.Element&&a instanceof Element)var b=kn.call(this,a)||this;else b=kn.call(this)||this,y=a;var E=b;b.animationManager.isEnabled=!1,b.vb=!0,b.V=null,b.mn=!1,b.nn=!1,b.F=!0,b.u=!0,b.ia=0,b.o=!1,b.ql=null,b.Xx("drawShadows",!1),a=new ki;var x=new ro;return x.stroke="magenta",x.strokeWidth=2,x.fill="transparent",x.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(x),b.j=a,b.allowCopy=!1,b.allowDelete=!1,b.allowSelect=!0,b.autoScrollRegion=new Qi(0,0,0,0),b.pa.h(0,0),b.toolManager.gb("Dragging",new Ct,b.toolManager.mouseMoveTools),b.click=function(){var z=E.observed;if(z!==null){var ne=z.viewportBounds,ie=E.lastInput.documentPoint;z.position=new rt(ie.x-ne.width/2,ie.y-ne.height/2)}},b.Pf=function(){E.Ya(),dt(E)},b.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},b.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},b.Of=function(){E.observed!==null&&dt(E)},b.autoScale=gu,b.vb=!1,y&&Object.assign(b,y),b}hn(xe,kn),xe.prototype.computePixelRatio=function(){return 1},xe.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(yh(this),this.ql===null){var b=new ul(null);b.width=a.width,b.height=a.height,this.ql=b}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),Ke(this)}finally{this.ta=a,this.ib=y}}}kn.prototype.redraw.call(this)},xe.prototype.gc=function(){if(this.Ka===null&&kt("No div specified"),this.ta===null&&kt("No canvas specified"),!(this.ta instanceof Eo)&&(Yv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yh(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?Ke(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 b=y.length,E=0;E<b;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Ke(a){var y=a.observed;if(y!==null){var b=a.drawsTemporaryLayers,E=a.drawsGrid&&b,x=y.grid;E&&x!==null&&x.visible&&!isNaN(x.width)&&!isNaN(x.height)&&(x=An.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Mc(y,x),An.free(x),$s(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),x=a.ib,x.scale(a.Mb,a.Mb),x.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),x.yc(),y=y.Wa.s,z=y.length;for(var ne=0;ne<z;ne++){var ie=y[ne],se=a;if(ie.visible&&ie.opacity!==0){var de=ie.diagram.grid.part;if(!b&&ie.isTemporary)E&&de.layer===ie&&(ie=Dc(ie,x),de.gc(x,se),x.globalAlpha=ie);else{for(var pe=Dc(ie,x),Se=se.scale,Ne=An.alloc(),Oe=ie.Pa.s,He=Oe.length,Je=0;Je<He;Je++){var xt=Oe[Je];(E||xt!==de)&&ie.Oj(x,xt,se,null,Se,Ne,!1)}An.free(Ne),x.globalAlpha=pe}}}}}function dt(a){var y=a.box;if(y!==null){var b=a.observed;if(b!==null){a.Fc=!0,b=b.viewportBounds;var E=y.selectionObject,x=cn.alloc();x.h(b.width,b.height),E.desiredSize=x,cn.free(x),a=2/a.scale,E instanceof ro&&(E.strokeWidth=a),y.location=new rt(b.x-a/2,b.y-a/2),y.isSelected=!0}}}xe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Fa;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},xe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},xe.prototype.onViewportBoundsChanged=function(a,y,b,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),dt(this),this.fc.scale=b,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},un.Object.defineProperties(xe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xe&&kt("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 b=this.ta,E=this.ib;b&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,b.width,b.height))}else this.Ha(null),dt(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),dt(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)}}}),xe.className="Overview";function Ct(){la.call(this),this.j=null}hn(Ct,la),Ct.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 b=a.lastInput;return!b.left||a.currentTool!==this&&(!this.isBeyondDragSize()||b.isTouchEvent&&b.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(b=y.viewportBounds,this.j=new rt(b.width/2,b.height/2),a=a.firstInput.documentPoint,y.position=new rt(a.x-this.j.x,a.y-this.j.y)),!0)},Ct.prototype.doActivate=function(){this.j=null,la.prototype.doActivate.call(this)},Ct.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ct.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var b=a.box;if(b!==null){if(this.j===null){var E=a.firstInput.documentPoint;b=b.location,this.j=new rt(E.x-b.x,E.y-b.y)}a=a.lastInput.documentPoint,y.position=new rt(a.x-this.j.x,a.y-this.j.y)}}},Ct.className="OverviewDraggingTool";function Et(){vi(this),this.H=Rc,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=Fa,this.hb=!0,this.cg=null,this.ob=200}Et.prototype.toString=function(){return"CommandHandler"},Et.prototype.Xe=function(a){this.H=a},Et.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,b=xi?y.meta:y.control,E=y.shift,x=y.alt,z=y.key;!b||z!=="C"&&z!=="Insert"?b&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():b&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():b&&z==="Y"||x&&E&&z==="Backspace"?this.canRedo()&&this.redo():b&&z==="Z"||x&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():b&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(b?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(b?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(b?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(b?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?b&&a.allowVerticalScroll?a.scroll("document","up"):!b&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?b&&a.allowVerticalScroll?a.scroll("document","down"):!b&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():b&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():b&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():b&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Et.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Et.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ta&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Et.prototype.canStopCommand=function(){return!0},Et.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 b=a.nodes;b.next();)b.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Et.prototype.canSelectAll=function(){return this.diagram.allowSelect},Et.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 ur,b=a.selection.iterator;b.next();)af(y,b.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Et.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Et.prototype.copySelection=function(){var a=this.diagram,y=new ur;for(a=a.selection.iterator;a.next();)af(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(b){return b.canCopy()});this.copyToClipboard(y)},Et.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Et.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Et.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Et.prototype.copyToClipboard=function(a){var y=this.diagram,b=null;if(a===null)Eh=null,Ad="";else{b=y.model;var E=!1,x=!1,z=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(x=b.Ij,b.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=x),b=new rr,b.addAll(z),Eh=b,Ad=y.model.dataFormat}}y.R("ClipboardChanged",b)},Et.prototype.pasteFromClipboard=function(){var a=new ur,y=Eh;if(y===null)return a;var b=this.diagram;if(Ad!==b.model.dataFormat)return a;var E=b.model,x=!1,z=!1,ne=null;try{E.Tl()&&(x=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ne=b.Kj(y,b,!1)}finally{for(E.Tl()&&(E.Jj=x),E.Wj()&&(E.Ij=z),y=ne.iterator;y.next();)b=y.value,E=y.key,b.location.w()||(E.location.w()?b.location=E.location:!b.position.w()&&E.position.w()&&(b.position=E.position)),a.add(b)}return a},Et.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 b=this.pasteFromClipboard();0<b.count&&y.clearSelection(!0);for(var E=b.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var x=y.computePartsBounds(y.selection);if(x.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Zd(y,z,new rt(a.x-x.centerX,a.y-x.centerY),y.Wm,!1)}}y.R("ClipboardPasted",b)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Et.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Eh===null||Eh.count===0||Ad!==a.model.dataFormat)},Et.prototype.undo=function(){this.diagram.undoManager.undo()},Et.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Et.prototype.redo=function(){this.diagram.undoManager.redo()},Et.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Et.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===wl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Et.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==wl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Et.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===wl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Et.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==wl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Et.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Et.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Et.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var b=a.position,E=a.scale;Es(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Fa):(this.Jt=E,this.sw=b.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),hu(y)},Et.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Et.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(se){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 b=y.animationManager;Es(b,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var x=jt(this,a,[a]);if(x.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var se=x.pop();0<x.length&&se instanceof ii&&se.isTreeExpanded&&(!(se instanceof $i)||se.isSubGraphExpanded);)se=x.pop();0<x.length?(se instanceof ki&&y.tv(se.actualBounds),se instanceof ii&&!se.isTreeExpanded&&(se.isTreeExpanded=!0),se instanceof $i&&!se.isSubGraphExpanded&&(se.isSubGraphExpanded=!0)):(se instanceof ki&&y.es(se.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){fn(z,(b.isEnabled?b.duration:0)+E)};y.Bj("LayoutCompleted",ne),z()}}else{var ie=y.position.copy();y.es(a.actualBounds),ie.Xa(y.position)&&b.Cc()}}};function jt(a,y,b){if(y.isVisible())return b;if(y instanceof _o)jt(a,y.adornedPart,b);else if(y instanceof Mr){var E=y.fromNode;E!==null&&jt(a,E,b),y=y.toNode,y!==null&&jt(a,y,b)}else y instanceof ii&&(E=y.labeledLink,E!==null&&jt(a,E,b),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||b.push(E),jt(a,E,b))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||b.push(y),jt(a,y,b));return b}Et.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ki)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Et.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Es(y.animationManager,"Collapse Tree");var b=new rr;if(a!==null&&a.isTreeExpanded)a.collapseTree(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof ii&&x.isTreeExpanded&&(x.collapseTree(),b.add(x))}y.R("TreeCollapsed",b)}finally{y.eb("Collapse Tree")}},Et.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ii&&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 ii&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Et.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Es(y.animationManager,"Expand Tree");var b=new rr;if(a!==null&&!a.isTreeExpanded)a.expandTree(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof ii&&!x.isTreeExpanded&&(x.expandTree(),b.add(x))}y.R("TreeExpanded",b)}finally{y.eb("Expand Tree")}},Et.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ii)||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 ii&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Et.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var b=this.archetypeGroupData;if(b!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var x=new rr,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&x.add(ne)}for(var ie=new rr,se=x.iterator;se.next();){var de=se.value;z=!1;for(var pe=x.iterator;pe.next();)if(de.Td(pe.value)){z=!0;break}z||ie.add(de)}if(0<ie.count){var Se=ie.first().containingGroup;if(Se!==null)for(;Se!==null;){x=!1;for(var Ne=ie.iterator;Ne.next();)if(!Ne.value.Td(Se)){x=!0;break}if(x)Se=Se.containingGroup;else break}if(b instanceof $i)Pc(b),E=b.copy(),E!==null&&a.add(E);else if(y.Yu(b)){var Oe=y.copyNodeData(b);nn(Oe)&&(y.xf(Oe),E=a.ii(Oe))}if(E!==null){Se!==null&&this.isValidMember(Se,E)&&(E.containingGroup=Se);for(var He=ie.iterator;He.next();){var Je=He.value;this.isValidMember(E,Je)&&(Je.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Et.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 Yn(a){var y=Jr();for(a=a.iterator;a.next();){var b=a.value;b instanceof Mr||y.push(b)}a=new ur,b=y.length;for(var E=0;E<b;E++){for(var x=y[E],z=!0,ne=0;ne<b;ne++)if(x.Td(y[ne])){z=!1;break}z&&a.add(x)}return Hr(y),a}Et.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Mr)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var b=a.memberValidation;if(b!==null&&!b(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return b=this.memberValidation,b!==null?b(a,y):!0},Et.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.model;if(b.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new rr;if(a!==null)E.add(a);else for(var x=y.selection.iterator;x.next();){var z=x.value;z instanceof $i&&z.canUngroup()&&E.add(z)}var ne=new rr;if(0<E.count){y.clearSelection(!0);for(var ie=E.iterator;ie.next();){var se=ie.value;se.expandSubGraph();var de=se.containingGroup,pe=de!==null&&de.data!==null?b.wa(de.data):void 0;ne.addAll(se.memberParts);for(var Se=ne.iterator;Se.next();){var Ne=Se.value;if(Ne.isSelected=!0,!(Ne instanceof Mr)){var Oe=Ne.data;Oe!==null?b.mp(Oe,pe):Ne.containingGroup=de}}y.remove(se)}}y.R("SelectionUngrouped",E,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Et.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 $i))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof $i&&y.canUngroup())return!0;return!1},Et.prototype.addTopLevelParts=function(a,y){var b=!0;for(a=Yn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:b=!1)}return b},Et.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Es(y.animationManager,"Collapse SubGraph");var b=new rr;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof $i&&x.isSubGraphExpanded&&(x.collapseSubGraph(),b.add(x))}y.R("SubGraphCollapsed",b)}finally{y.eb("Collapse SubGraph")}},Et.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof $i&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof $i&&y.isSubGraphExpanded)return!0;return!1},Et.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Es(y.animationManager,"Expand SubGraph");var b=new rr;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof $i&&!x.isSubGraphExpanded&&(x.expandSubGraph(),b.add(x))}y.R("SubGraphExpanded",b)}finally{y.eb("Expand SubGraph")}},Et.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof $i&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof $i&&!y.isSubGraphExpanded)return!0;return!1},Et.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.toolManager.findTool("TextEditing");if(b!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var x=E.value;if(x.canEdit()){a=x;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof ma&&z.editable})}a!==null&&(y.currentTool=null,b.textBlock=a,y.currentTool=b)}},Et.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 ma))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(b){return b instanceof ma&&b.editable}),a!==null))return!0;return!1},Et.prototype.showContextMenu=function(a){var y=this.diagram,b=y.toolManager.findTool("ContextMenu");if(b!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=b.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,x=null;a instanceof tn?x=a.ga(uo):y.viewportBounds.ca(E.documentPoint)||(x=y.viewportBounds,x=new rt(x.x+x.width/2,x.y+x.height/2)),x!==null&&(E.viewPoint=y.op(x),E.documentPoint=x,E.left=!1,E.right=!0,E.up=!0),y.currentTool=b,Ya(b,!1,a)}},Et.prototype.canShowContextMenu=function(a){var y=this.diagram,b=y.toolManager.findTool("ContextMenu");return b===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),b.findObjectWithContextMenu(a)!==null)},Et.prototype.computeEffectiveCollection=function(a,y){var b=this.diagram,E=b.toolManager.findTool("Dragging"),x=b.currentTool===E;if(y===void 0&&(y=x?E.dragOptions:b.Wm),E=new Rn,a===null)return E;for(var z=a.iterator;z.next();)Qc(b,E,z.value,x,y);if(b.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof Mr&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},un.Object.defineProperties(Et.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||kt("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}}}),Et.className="CommandHandler",Gg=function(){return new Et};function tn(){vi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new rt(NaN,NaN).freeze(),this.jd=Oi,this.Ab=new Ui,this.wh=new Ui,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=is,this.uc=new An(NaN,NaN,NaN,NaN).freeze(),this.Ib=new An(NaN,NaN,NaN,NaN).freeze(),this.dc=new An(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ts,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 Cr,mr,bi,Ci,Fi,Ji,yo,oo,Po,Qo;tn.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=Dn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},tn.prototype.Vw=function(a){var y=this.Dh;if(Qn(y)){for(var b=0;b<y.length;b++)if(y[b]===a)return}else this.Dh=y=[];y.push(a)},tn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},tn.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 b=this.Dh[y];a[b]=this[b]}return a},tn.prototype.copy=function(){return this.clone()},Me=tn.prototype,Me.qb=function(a){a.classType===Mr?a.name.indexOf("Orient")===0?this.segmentOrientation=a:kt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===tn&&(this.stretch=a)},Me.toString=function(){return Jn(this.constructor)+"#"+Mi(this)},Me.th=function(){this.A!==null&&(this.A.nc=!0)};function ao(a){a.A===null?a.A=new Gi:a.A.nc&&(a.A=a.A.copy())}Me.Xc=function(){if(this.ba===null){var a=new no;a.Xi=to,a.yj=to,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Me.cb=function(a,y,b,E,x,z,ne){var ie=this.part;if(ie!==null&&(ie.gk(a,y,b,E,x,z,ne),b===this&&a===sa&&we(this)&&ya(this,ie,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 Rn),ne=z.undoManager.transactionLevel===0,a.startCondition===Yl?ne=!0:a.startCondition===ph&&(ne=!1),ne?(z=new li,Cu(a,z),ne=this.jo.get(a),ne!==null&&ne.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,x),z.start()):(Es(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,x)))),this instanceof Nr&&b===ie&&(ie.l&16777216)!==0&&ie.data!==null))for(b=this.O.s,E=b.length,x=0;x<E;x++)ie=b[x],ie instanceof Nr&&Uf(ie,function(se){se.data!==null&&se.l&16777216&&se.La(y)})};function ya(a,y,b){var E=a.ih();if(E!==null)for(var x=a.localBindings.iterator;x.next();){var z=x.value,ne=null;if(z.sourceName!==null){if(ne=R1(z,E,a),ne===null)continue;z.sp(a,ne,b,null)}else if(z.isToModel){var ie=y.diagram;ie===null||ie.skipsModelSourceBindings||z.sp(a,ie.model.modelData,b,E)}else{if(ie=E.data,ie===null)continue;var se=y.diagram;se===null||se.skipsModelSourceBindings||z.sp(a,ie,b,E)}ne===a&&(ie=E.ks(z.Ai),ie!==null&&z.Mv(ie,ne,b))}}Me.ks=function(a){return this.bindingId===a?this:null},Me.g=function(a,y,b){this.cb(sa,a,this,y,b)},Me.Ge=function(a,y,b,E){var x=this.uc;if(x.h(a,y,b,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Ui);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),z.pp(x)}};function xs(a,y,b,E){return a.pickable===!1?!1:(E.multiply(a.transform),b?a.Yc(y,E):a.fh(y,E))}Me.tx=function(a,y,b){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),b?Xn(a.x,a.y,0,0,0,E.height)<=y||Xn(a.x,a.y,0,E.height,E.width,E.height)<=y||Xn(a.x,a.y,E.width,E.height,E.width,0)<=y||Xn(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Me.se=function(){return!0},Me.ca=function(a){var y=rt.alloc();y.assign(a),this.transform.Ga(y);var b=this.actualBounds;if(!b.w())return rt.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var x=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ne=z/2,ie=this.naturalBounds;E=this.Df()*E.scale;var se=1/E;if(ie.width*E<x&&ie.height*E<x)return a=ia(b.x-ne*se,b.y-ne*se,b.width+z*se,b.height+z*se,y.x,y.y),rt.free(y),a}return x=!1,(this instanceof _o||this instanceof ro?ia(b.x-5,b.y-5,b.width+10,b.height+10,y.x,y.y):b.ca(y))&&(this.tb&&!this.tb.ca(y)?x=!1:this.areaBackground!==null&&b.ca(y)||this.Ma!==null&&this.dc.ca(a)?x=!0:x=this.gh(a)),rt.free(y),x},Me.gh=function(a){var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Me.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=An.allocAt(0,0,y.width,y.height);var b=this.transform,E=!1,x=rt.allocAt(a.x,a.y);return y.ca(b.Cd(x))&&(x.h(a.x,a.bottom),y.ca(b.Cd(x))&&(x.h(a.right,a.bottom),y.ca(b.Cd(x))&&(x.h(a.right,a.y),y.ca(b.Cd(x))&&(E=!0)))),rt.free(x),An.free(y),E},Me.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var b=this.naturalBounds,E=!1,x=rt.allocAt(0,0);return a.ca(y.Ga(x))&&(x.h(0,b.height),a.ca(y.Ga(x))&&(x.h(b.width,b.height),a.ca(y.Ga(x))&&(x.h(b.width,0),a.ca(y.Ga(x))&&(E=!0)))),rt.free(x),E},Me.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var b=this.naturalBounds,E=rt.allocAt(0,0),x=rt.allocAt(0,b.height),z=rt.allocAt(b.width,b.height),ne=rt.allocAt(b.width,0),ie=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(x))||a.ca(y.Ga(z))||a.ca(y.Ga(ne)))ie=!0;else{b=An.allocAt(0,0,b.width,b.height);var se=rt.allocAt(a.x,a.y);b.ca(y.Cd(se))?ie=!0:(se.h(a.x,a.bottom),b.ca(y.Cd(se))?ie=!0:(se.h(a.right,a.bottom),b.ca(y.Cd(se))?ie=!0:(se.h(a.right,a.y),b.ca(y.Cd(se))&&(ie=!0)))),rt.free(se),An.free(b),!ie&&(an.us(a,E,x)||an.us(a,x,z)||an.us(a,z,ne)||an.us(a,ne,E))&&(ie=!0)}return rt.free(E),rt.free(x),rt.free(z),rt.free(ne),ie},Me.ga=function(a,y){if(y===void 0&&(y=new rt),a instanceof _r){var b=this.naturalBounds;y.h(a.x*b.width+a.offsetX,a.y*b.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Me.mi=function(a){a===void 0&&(a=new An);var y=this.naturalBounds,b=this.oe,E=rt.allocAt(0,0).transform(b);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(b),Mo(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(b),Mo(a,E.x,E.y,0,0),E.h(0,y.height).transform(b),Mo(a,E.x,E.y,0,0),rt.free(E),a},Me.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},Me.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Me.qs=function(a,y){return y===void 0&&(y=new rt),y.assign(a),this.oe.Cd(y),y},Me.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},Me.Sj=function(a,y,b,E,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),ie=z.m22*ne,se=-z.m12*ne,de=-z.m21*ne,pe=z.m11*ne,Se=ne*(z.m21*z.dy-z.m22*z.dx),Ne=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,an.Ff(z.left,z.top,z.right,z.bottom,a,y,b,E,x)):(ne=a*ie+y*de+Se,a=a*se+y*pe+Ne,y=b*ie+E*de+Se,b=b*se+E*pe+Ne,x.h(0,0),E=this.naturalBounds,b=an.Ff(0,0,E.width,E.height,ne,a,y,b,x),x.transform(z),b)},tn.prototype.measure=function(a,y,b,E){if(Lt(this)!==!1){var x=this.Kg,z=x.right+x.left;x=x.top+x.bottom,a=Math.max(a-z,0),y=Math.max(y-x,0),b=Math.max((b||0)-z,0),E=Math.max((E||0)-x,0),z=this.angle,x=this.desiredSize;var ne=this.kq();z===90||z===270?(a=isFinite(x.height)?x.height+ne:a,y=isFinite(x.width)?x.width+ne:y):(a=isFinite(x.width)?x.width+ne:a,y=isFinite(x.height)?x.height+ne:y),x=b||0,ne=E||0;var ie=this instanceof Nr;switch(_l(this,!0)){case mr:ne=x=0,ie&&(y=a=1/0);break;case Cr:isFinite(a)&&a>b&&(x=a),isFinite(y)&&y>E&&(ne=y);break;case Ci:isFinite(a)&&a>b&&(x=a),ne=0,ie&&(y=1/0);break;case Fi:isFinite(y)&&y>E&&(ne=y),x=0,ie&&(a=1/0)}ie=this.maxSize;var se=this.minSize;x>ie.width&&se.width<ie.width&&(x=ie.width),ne>ie.height&&se.height<ie.height&&(ne=ie.height),b=Math.max(x,se.width),E=Math.max(ne,se.height),ie.width<b&&(b=Math.min(se.width,b)),ie.height<E&&(E=Math.min(se.height,E)),a=Math.min(ie.width,a),y=Math.min(ie.height,y),a=Math.max(b,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=b,b=E,E=z),this.uc.ka(),this.Wl(a,y,b,E),this.uc.freeze(),this.uc.w()||kt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Tt(this,!1)}},tn.prototype.Wl=function(){},tn.prototype.Dd=function(){return!1},tn.prototype.arrange=function(a,y,b,E,x){this.Uk();var z=An.alloc();z.assign(this.Ib),this.Ib.ka(),Ut(this)===!1?this.Ib.h(a,y,b,E):this.eh(a,y,b,E),this.Ib.freeze(),x===void 0?this.tb=null:this.tb=x,b=!1,x!==void 0?b=!0:(x=this.panel,x!==null&&Ph(x)&&(x=x.panel),x!==null&&(x=x.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),b=y+E.height,E=a+E.width,b=!(0<=a+.05&&E<=x.width+.05&&0<=y+.05&&b<=x.height+.05),this instanceof ma&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(b=!0)),this.l=b?this.l|256:this.l&-257,this.Ib.w()||kt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Kt(this,!1),An.free(z)},Me=tn.prototype,Me.eh=function(){};function Cl(a,y,b,E,x){if(a.Ib.h(y,b,E,x),!a.desiredSize.w()){var z=a.uc;b=a.Kg,y=b.right+b.left;var ne=b.top+b.bottom;switch(b=z.width+y,z=z.height+ne,E+=y,x+=ne,y=_l(a,!0),b===E&&z===x&&(y=mr),y){case mr:(b>E||z>x)&&(Tt(a,!0),a.measure(b>E?E:b,z>x?x:z,0,0));break;case Cr:Tt(a,!0),a.measure(E,x,0,0);break;case Ci:Tt(a,!0),a.measure(E,z,0,0);break;case Fi:Tt(a,!0),a.measure(b,x,0,0)}}}Me.Xl=function(a,y){var b=this.part;b!==null&&b.diagram!==null&&(b.selectionObject!==this&&b.resizeObject!==this&&b.rotateObject!==this||Jv(b,!0),this.N(),ho(a,y)||(b.oh(),this.Pn(b)))},Me.Pn=function(a){this.portId!==null&&(Jv(a,!0),a instanceof ii&&QS(a,this))},Me.gc=function(a,y){if(!Au(this,a,y)&&this.visible){var b=this.opacity;if(b!==0){var E=1;b!==1&&(E=a.globalAlpha,a.globalAlpha=E*b);var x="";this.filter!==""&&(x=a.filter,a.filter=this.filter);var z=this instanceof Nr&&Ph(this),ne=this.Ib;if(z){var ie=this.Ib,se=this.dc,de=this.areaBackground,pe=this.Ma;de===null&&pe===null||a.yc(),de!==null&&(Ra(this,a,de,!0,!0,se,ie),de instanceof Fo&&de.type===pc?(a.beginPath(),a.rect(ie.x,ie.y,ie.width,ie.height),a.ng(de)):a.fillRect(ie.x,ie.y,ie.width,ie.height)),pe!==null&&(Ra(this,a,pe,!0,!1,se,ie),pe instanceof Fo&&pe.type===pc?(a.beginPath(),a.rect(ie.x,ie.y,ie.width,ie.height),a.ng(pe)):a.fillRect(ie.x,ie.y,ie.width,ie.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,ie=this.panel,this.l&4096&&Os(this),de=this.part,se=!1;var Se=0;de&&y.Gf("drawShadows")&&(se=de.isShadowed)&&(pe=de.shadowOffset,Se=Math.max(pe.y,pe.x)*y.scale*y.Mb),pe=this.Dd();var Ne;if(!(Ne=y.$i||!pe)){var Oe=this.naturalBounds;Ne=this.wh;var He=Ne.m11,Je=Ne.m21,xt=Ne.dx,yt=Ne.m12,Rt=Ne.m22,Bt=Ne.dy,Gt,$t=Gt=0;Ne=Gt*He+$t*Je+xt;var In=Gt*yt+$t*Rt+Bt;Gt=Oe.width+Se,$t=0;var qr=Gt*He+$t*Je+xt;Gt=Gt*yt+$t*Rt+Bt,$t=Math.min(Ne,qr);var yi=Math.min(In,Gt),di=Math.max(Ne+0,qr)-$t,Dr=Math.max(In+0,Gt)-yi;Ne=$t,In=yi,Gt=Oe.width+Se,$t=Oe.height+Se,qr=Gt*He+$t*Je+xt,Gt=Gt*yt+$t*Rt+Bt,$t=Math.min(Ne,qr),yi=Math.min(In,Gt),di=Math.max(Ne+di,qr)-$t,Dr=Math.max(In+Dr,Gt)-yi,Ne=$t,In=yi,Gt=0,$t=Oe.height+Se,qr=Gt*He+$t*Je+xt,Gt=Gt*yt+$t*Rt+Bt,$t=Math.min(Ne,qr),yi=Math.min(In,Gt),di=Math.max(Ne+di,qr)-$t,Dr=Math.max(In+Dr,Gt)-yi,Ne=$t,In=yi,Se=y.viewportBounds,Oe=Se.x,He=Se.y,Ne=!(Ne>Se.width+Oe||Oe>di+Ne||In>Se.height+He||He>Dr+In)}if(Ne){if(Ne=(this.l&256)!==0,a.clipInsteadOfFill&&(Ne=!1),this instanceof ma&&(a.font=this.font),Ne){if(In=ie.se()?ie.naturalBounds:ie.actualBounds,di=Math.max(ne.x,In.x),Dr=Math.max(ne.y,In.y),Se=Math.min(ne.right,In.right)-di,Oe=Math.min(ne.bottom,In.bottom)-Dr,He=this.tb,He!==null&&(di=He.x,Dr=He.y,Se=He.width,Oe=He.height),di>ne.width+ne.x||ne.x>In.width+In.x){b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x);return}a.save(),a.beginPath(),a.rect(di,Dr,Se,Oe),a.clip()}if(pe){if(!de.isVisible()){b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x);return}se&&(In=de.shadowOffset,a.Ev(In.x*y.scale*this.scale*y.Mb,In.y*y.scale*this.scale*y.Mb,de.shadowBlur),Ks(a),a.shadowColor=de.shadowColor)}se&&this.shadowVisible===!0?Ks(a):se&&this.shadowVisible===!1&&Ul(a),de=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Tu(this,a,de,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),se&&Ms(this,ie)&&this.shadowVisible===null&&Ul(a),this.Ma!==null&&(a.yc(),Xl(this,a,de,ne)),se&&(this.Ma!==null||this.areaBackground!==null||Ms(this,ie))?(tc(this,!0),this.shadowVisible===null&&Ul(a)):tc(this,!1),this.hh(a,y),se&&this.l&512&&Ks(a),pe&&se&&Ul(a),Ne&&(a.restore(),a.Vc(this instanceof Nr)),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)))}}b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x)}}};function Ms(a,y){return y===null?!1:(Ph(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Nr.Auto||y.type===Nr.Spot)&&y.Pb()!==a)}Me.Dv=function(){};function Tu(a,y,b,E){Ra(a,y,a.areaBackground,!0,!0,b,E),a.areaBackground instanceof Fo&&a.areaBackground.type===pc?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Xl(a,y,b,E){var x=a.kq(),z=b.x,ne=b.y,ie=b.width+x,se=b.height+x;Ra(a,y,a.Ma,!0,!1,b,E),a.Ma instanceof Fo&&a.Ma.type===pc?(y.beginPath(),y.rect(z-x/2,ne-x/2,ie,se),y.ng(a.Ma)):y.fillRect(z-x/2,ne-x/2,ie,se)}function gl(a,y,b){for(var E=y.O.s,x=E.length,z=-1,ne=0;ne<x;ne++)if(E[ne]===a){z=ne;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(b):y.svg.Ma?y.svg.Ma.after(b):y.type===Nr.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(b)):y.svg.prepend(b);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(b):(a=y.M(a-1).svg,a!==null?a.after(b):y.svg.appendChild(b))}}function Au(a,y,b){if(!(y instanceof Go))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,x=a.nk(y);if(a.kk(y,b,x))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&gl(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*b.scale*a.scale*b.Mb,z.y*b.scale*a.scale*b.Mb,a.shadowBlur),Ks(y),y.shadowColor=a.shadowColor}a instanceof ma&&(y.font=a.font),y.yd=null;var ne=a.transform;z=a instanceof Nr;var ie=a instanceof Nr?Ph(a):!1;a.l&4096&&Os(a);var se=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,x&&(y.o=!0,z&&ie?(fc(y,1,0,0,1,0,0),a.svg=y.ad):z?(fc(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):fc(y,1,0,0,1,0,0)),x=a.naturalBounds,a.areaBackground!==null){var de=ne.copy().Vj();y.rb.ha=[de.m11,de.m12,de.m21,de.m22,de.dx,de.dy],Tu(a,y,x,se),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),a.background!==null&&(z?(ie&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),Xl(a,y,x,se),ie&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Xl(a,y,x,se)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,x=a.part,ie=!1,x&&b.Gf("drawShadows")&&(ie=x.isShadowed),y.clipInsteadOfFill&&(ie=!1),a.Dd()&&ie&&Ks(y),ie&&a.shadowVisible===!0?Ks(y):ie&&a.shadowVisible===!1&&Ul(y),x=a.panel,ie&&Ms(a,x)&&a.shadowVisible===null&&Ul(y),y.Il&&(de=b.computePixelRatio(),de="drop-shadow("+y.shadowOffsetX/de+"px "+y.shadowOffsetY/de+"px "+y.shadowBlur/de/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",de),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",de)),ie&&(a.Ma!==null||a.areaBackground!==null||Ms(a,x))?(tc(a,!0),a.shadowVisible===null&&Ul(y)):tc(a,!1),x=ie,a.hh(y,b),z&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,ie=z?a.svg:y.yd,de=a.svg,!z&&de!==null&&ie!==de&&de.parentNode===a.panel.svg?(a.svg.replaceWith(ie),a.svg=ie,ie!==null&&a.$o(y,E,se,ie),Bl(y,de),!0):(a.svg=ie,ne!==null&&ie===null&&(nc(y),y.nh.pop()),ie===null||(a.$o(y,E,se,ie),y.Il&&(b=b.computePixelRatio(),a.Dv(ie,"drop-shadow("+y.shadowOffsetX/b+"px "+y.shadowOffsetY/b+"px "+y.shadowBlur/b/2+"px "+y.shadowColor+")")),x&&a.l&512&&Ks(y),a.Dd()&&Ul(y),b=a.Dd()?a.opacity*y.globalAlpha:a.opacity,b!==1&&ie.setAttributeNS(null,"opacity",b.toString()),a.filter!==""&&ie.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ie):y.Nj.prepend(ie),y.ti=ie):E!==null&&gl(a,E,ie),ne!==null&&ne(a,ie)),!0)}Me.$o=function(a,y,b,E){var x=(this.l&256)!==0;if(a.clipInsteadOfFill&&(x=!1),x){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(b.x,z.x),x=Math.max(b.y,z.y);var ne=Math.min(b.right,z.right)-y;b=Math.min(b.bottom,z.bottom)-x,z=this.tb,z!==null&&(y=z.x,x=z.y,ne=z.width,b=z.height),z=E.getAttribute("clip-path");var ie=null;z!==null&&(ie=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ie===null?(z="CLIP"+po++,ie=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:x,width:ne,height:b}),this instanceof Nr&&(x=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")")),ie.appendChild(y),a.svg.appendChild(ie),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ie.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",x.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",b.toString()))}else E.removeAttributeNS(null,"clip-path"),Bl(a,E)};function Bl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function ml(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),b=a.svg.ownerDocument;if(y!==null){y=Pr(y);for(var E=y.next();!E.done;E=y.next())E=b.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Me.hh=function(){},Me.lv=function(){this.Uc=!0},Me.kk=function(a,y,b){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"&&b||y.nodeName==="g"&&!b)return!1;var E=this.transform,x=this instanceof Nr?Ph(this):!1;if(!(this instanceof Nr&&x))if(this instanceof yu){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&Ha(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),b?y.lastElementChild.setAttributeNS(null,"transform",vl(a)):y.setAttributeNS(null,"transform",vl(a))}else if(!b||this instanceof Nr)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof ro){z=y.getElementsByTagName("path");for(var ne=0;ne<z.length;ne++)z[ne].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ne=E.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Tu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ne=y.gd.getAttribute("filter"),ne!==null&&a.ad.setAttribute("filter",ne),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&gd(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(gd(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((x||b&&!(this instanceof Nr))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),Xl(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gd(a,y.Ma),b=y.Ma.getAttribute("filter"),b!==null&&a.ad.setAttribute("filter",b),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&gd(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Me.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 Ra(a,y,b,E,x,z,ne){if(b!==null){var ie=1,se=1;if(typeof b=="string")E?y.fillStyle=b:y.strokeStyle=b;else if(b.type===Ch)E?y.fillStyle=b.color:y.strokeStyle=b.color;else{var de=a.kq();if(ie=z.width,se=z.height,x?(ie=ne.width,se=ne.height):E||(ie+=de,se+=de),(z=y instanceof $c)&&b.xe&&(b.type===lg||b.yk===ie&&b.ft===se))var pe=b.xe;else{var Se=0,Ne=0,Oe=0,He=0,Je=0,xt=0;if(xt=Je=0,x?(Je=ne.x,xt=ne.y):E||(Je-=de/2,xt-=de/2),Se=b.start.x*ie+b.start.offsetX,Ne=b.start.y*se+b.start.offsetY,Oe=b.end.x*ie+b.end.offsetX,He=b.end.y*se+b.end.offsetY,Se+=Je,Oe+=Je,Ne+=xt,He+=xt,b.type===nh)pe=y.createLinearGradient(Se,Ne,Oe,He);else if(b.type===pc)xt=isNaN(b.endRadius)?Math.max(ie,se)/2:b.endRadius,isNaN(b.startRadius)?(Je=0,xt=Math.max(ie,se)/2):Je=b.startRadius,pe=y.createRadialGradient(Se,Ne,Je,Oe,He,xt);else if(b.type===lg)try{pe=y.createPattern(b.pattern,"repeat")}catch(Rt){pe=null}if(b.type!==lg&&(x=b.colorStops,x!==null))for(x=x.iterator;x.next();)pe.addColorStop(x.key,x.value);if(z&&(b.xe=pe,pe!==null&&(b.yk=ie,b.ft=se),pe===null&&b.type===lg&&b.yk!==-1)){b.yk=-1;var yt=a.diagram;yt!==null&&b.yk===-1&&fn(function(){yt.redraw()},600)}}E?y.fillStyle=pe:y.strokeStyle=pe}}}Me.rg=function(a){if(a instanceof Nr)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},Me.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Me.If=function(){for(var a=this instanceof Nr?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Os(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){je(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 b=a.naturalBounds;a.no(y,b.x,b.y,b.width,b.height)}je(a,!1),ut(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ut(a,!1)):y.oe!==null&&(b=a.wh,b.reset(),y.se()?b.multiply(y.wh):y.panel!==null&&b.multiply(y.panel.wh),b.multiply(a.Ab),a.Kk=a.scale*y.Kk,ut(a,!1)))}Me.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=rt.alloc();z.yi(y,b,E,x,uo),a.rotate(this.Kb,z.x,z.y),rt.free(z)}},Me.v=function(a){if(!Lt(this)){a===void 0&&(a=!1),Tt(this,!0),Kt(this,!0);var y=this.panel;y===null||a||y.v()}},Me.Uj=function(){Lt(this)||(Tt(this,!0),Kt(this,!0))};function Ll(a){if(!Ut(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof ii&&a.Bd(),y.$b())),Kt(a,!0)}}Me.Uk=function(){!(this.l&2048)&&(je(this,!0),ut(this,!0))},Me.Wu=function(){ut(this,!0)},Me.N=function(){var a=this.part;a!==null&&a.N()};function _l(a,y){var b=a.stretch,E=a.panel;return E!==null&&E.type===Nr.Table?wc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===Nr.Auto&&E.Pb()===a?Fs(a,Cr,y):b===Ji?E!==null?E.type===Nr.Spot&&E.Pb()===a?Fs(a,Cr,y):(b=E.defaultStretch,b===Ji?Fs(a,mr,y):Fs(a,b,y)):Fs(a,mr,y):Fs(a,b,y)}function wc(a,y,b,E){var x=a.stretch;if(x!==Ji)return Fs(a,x,E);var z=x=null;switch(y.stretch){case Fi:z=!0;break;case Cr:z=!0}switch(b.stretch){case Ci:x=!0;break;case Cr:x=!0}return y=a.panel.defaultStretch,x===null&&(x=y===Ci||y===Cr),z===null&&(z=y===Fi||y===Cr),x===!0&&z===!0?Fs(a,Cr,E):x===!0?Fs(a,Ci,E):z===!0?Fs(a,Fi,E):Fs(a,mr,E)}function Fs(a,y,b){if(b)return y;if(y===mr||(b=a.desiredSize,b.w()))return mr;if(a=a.angle,!isNaN(b.width))if(a!==90&&a!==270){if(y===Ci)return mr;if(y===Cr)return Fi}else{if(y===Fi)return mr;if(y===Cr)return Ci}if(!isNaN(b.height))if(a!==90&&a!==270){if(y===Fi)return mr;if(y===Cr)return Ci}else{if(y===Ci)return mr;if(y===Cr)return Fi}return y}function tc(a,y){a.l=y?a.l|512:a.l&-513}function we(a){return(a.l&1024)!==0}function Le(a,y){a.l=y?a.l|1024:a.l&-1025}function je(a,y){a.l=y?a.l|2048:a.l&-2049}function ut(a,y){a.l=y?a.l|4096:a.l&-4097}function Lt(a){return(a.l&8192)!==0}function Tt(a,y){a.l=y?a.l|8192:a.l&-8193}function Ut(a){return(a.l&16384)!==0}function Kt(a,y){a.l=y?a.l|16384:a.l&-16385}Me.Gj=function(){this.svg=null},Me.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Me.Av=function(){},Me.zv=function(a){return this.pa=a,Ll(this),!0},Me.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Me.kq=function(){return 0};function Bn(a){var y=a.part;if(y instanceof ii&&(a.portId!==null||a===y.port)){var b=y.diagram;b===null||b.undoManager.isUndoingRedoing||QS(y,a)}}function ar(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Nr?a instanceof ii?a.Bd():a.qm(a,function(b){Bn(b)}):Bn(a))}Me.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new us(a,y,b,E):x=a,x.xd=this,a=this.ih(),a!==null&&yS(a)&&kt("Cannot add a Binding to a template that has already been copied: "+x),this.localBindings===null&&(this.localBindings=new rr),this.localBindings.add(x),this},Me.set=function(a){return Object.assign(this,a),this},Me.Du=function(a){return Zn(this,a),this},Me.apply=function(a){return a(this),this},Me.nm=function(a){return vh(this,a),this},Me.pz=function(){return this.ih()},Me.ih=function(){for(var a=this instanceof Nr?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Me.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Rn),this.animationTriggers.add(a.propertyName,a),this};function qn(a,y){for(var b=1;b<arguments.length;++b);b=arguments;var E=null,x=null;if(typeof a=="function")x=a;else if(typeof a=="string"){var z=si.I(a);typeof z=="function"?(b=Dn(arguments),E=z(b),nn(E)||kt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):x=sr.go[a]}if(E===null&&(x!=null&&x.constructor||kt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new x),x=1,E instanceof kn&&1<b.length){z=E;var ne=b[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(tp(z,ne),x++)}for(;x<b.length;x++)z=b[x],z===void 0?kt("Undefined value at argument "+x+" for object being constructed by GraphObject.make: "+E):Zn(E,z);return E}function Zn(a,y){if(typeof y=="string")if(a instanceof ma)a.text=y;else if(a instanceof ro)a.figure=y;else if(a instanceof yu)a.source=y;else if(a instanceof Nr)y=Fc.I(y),y!==null&&(a.type=y);else if(a instanceof Fo){var b=Xr(Fo,y);b!==null?a.type=b:kt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Lr?(y=Xr(Lr,y),y!==null&&(a.type=y)):a instanceof wo&&(y=Xr(wo,y),y!==null&&(a.type=y));else if(y instanceof tn)a instanceof Nr||kt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof ws){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof ws?e0(E,y):kt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Ln)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ls)a.type=y;else if(y instanceof us)a instanceof tn||a instanceof ws?a.bind(y):kt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Fl)a instanceof tn?a.Jv(y):kt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Va)a instanceof Lr&&a.type===Lr.o?a.figures.add(y):kt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof wo)a instanceof Va?a.segments.add(y):kt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Na)a instanceof kn||a instanceof $i?a.layout=y:kt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(b=0;b<y.length;b++)Zn(a,y[b]);else if(typeof y=="object"&&y!==null)if(a instanceof Fo){b=new wi;for(var x in y)E=parseFloat(x),isNaN(E)?b[x]=y[x]:a.addColorStop(E,y[x]);vh(a,b)}else if(a instanceof ws){y.row!==void 0?(x=y.row,(x==null||x===1/0||isNaN(x)||0>x)&&kt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+x),a.isRow=!0,a.index=x):y.column!==void 0&&(x=y.column,(x==null||x===1/0||isNaN(x)||0>x)&&kt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+x),a.isRow=!1,a.index=x),x=new wi;for(b in y)b!=="row"&&b!=="column"&&(x[b]=y[b]);vh(a,x)}else vh(a,y);else kt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wn(a,y){si.add(a,y)}function gr(a,y,b){b===void 0&&(b=null);var E=a[1];if(typeof b=="function"?b(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof b=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}un.Object.defineProperties(tn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Gi),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 Gi),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 Gi),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(ao(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&&(ao(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Jl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Jl&&(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 Yi),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 Yi),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:jr},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Yi),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Ji},set:function(a){var y=this.stretch;y!==a&&(ao(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&&(ao(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)&&vr(a,"0 <= value <= 1",tn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Gf(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(Gf(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(),ar(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&&ef(a,"GraphObject.areaBackground"),a instanceof Fo&&a.freeze(),ao(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&&ef(a,"GraphObject.background"),a instanceof Fo&&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 ki)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,b=a.y,E=this.pa,x=E.x;E=E.y,(x===y||isNaN(x)&&isNaN(y))&&(E===b||isNaN(E)&&isNaN(b))?this.Av():(a=a.copy(),this.zv(a,x,E)&&this.g("position",new rt(x,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&kt("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,ar(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,b=a.height,E=this.jd,x=E.width,z=E.height;(x===y||isNaN(x)&&isNaN(y))&&(z===b||isNaN(z)&&isNaN(b))||(this.jd=a=a.J(),this.v(),this instanceof ro&&this.qc(),this.g("desiredSize",E,a),we(this)&&(a=this.part,a!==null&&(ya(this,a,"width"),ya(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 cn(a,this.jd.height).freeze(),this.v(),this instanceof ro&&this.qc(),this.g("desiredSize",y,a),we(this)&&(a=this.part,a!==null&&ya(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 cn(this.jd.width,a).freeze(),this.v(),this instanceof ro&&this.qc(),this.g("desiredSize",y,a),we(this)&&(a=this.part,a!==null&&ya(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Kn},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(),ao(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ri},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(),ao(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 Qi(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&&Os(this),this.Ab}},oe:{get:function(){return this.l&4096&&Os(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(ao(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:mr},set:function(a){this.reshapingBehavior!==a&&(ao(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()&&kt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ll(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&&vr(a,">= 0",tn,"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&&vr(a,">= 1",tn,"columnSpan"),ao(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&&vr(a,">= 0",tn,"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&&vr(a,">= 1",tn,"rowSpan"),ao(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&&(ao(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 b=this.part;b===null||b instanceof ii||kt("Cannot set portID on a Link: "+a),y!==null&&b!==null&&ty(b,this),this.Yn=a,a!==null&&b!==null&&(b.Te=!0,$S(b,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:to},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Bn(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&vr(a,">= 0",tn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Bn(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),Bn(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&&vr(a,">= 0",tn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:to},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Bn(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&vr(a,">= 0",tn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Bn(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),Bn(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&&vr(a,">= 0",tn,"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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(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&&(ao(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),tn.prototype.trigger=tn.prototype.Jv,tn.prototype.findBindingPanel=tn.prototype.ih,tn.prototype.findTemplateBinder=tn.prototype.pz,tn.prototype.setProperties=tn.prototype.nm,tn.prototype.apply=tn.prototype.apply,tn.prototype.attach=tn.prototype.Du,tn.prototype.set=tn.prototype.set,tn.prototype.isEnabledObject=tn.prototype.If,tn.prototype.isVisibleObject=tn.prototype.Ed,tn.prototype.isContainedBy=tn.prototype.rg,tn.prototype.getNearestIntersectionPoint=tn.prototype.rs,tn.prototype.getLocalPoint=tn.prototype.qs,tn.prototype.getDocumentScale=tn.prototype.Df,tn.prototype.getDocumentAngle=tn.prototype.li,tn.prototype.getDocumentBounds=tn.prototype.mi,tn.prototype.getDocumentPoint=tn.prototype.ga,tn.prototype.intersectsRect=tn.prototype.Yc,tn.prototype.containedInRect=tn.prototype.fh,tn.prototype.containsRect=tn.prototype.Re,tn.prototype.containsPoint=tn.prototype.ca,tn.prototype.raiseChanged=tn.prototype.g,tn.prototype.raiseChangedEvent=tn.prototype.cb,tn.prototype.addCopyProperty=tn.prototype.Vw;var si=null;tn.className="GraphObject",si=new Rn,Wn("Button",function(){function a(b,E){return b.diagram.ic(b.documentPoint,function(x){for(;x.panel!==null&&!x.isActionable;)x=x.panel;return x},function(x){return x===E})!==null}var y=qn(Nr,Nr.Auto,{isActionable:!0,enabledChanged:function(b,E){if(b instanceof Nr){var x=b.fb("ButtonBorder");x!==null&&(x.fill=E?b._buttonFillNormal:b._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},qn(ro,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new _r(0,0,2.76142374915397,2.761423749153969),spot2:new _r(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(b,E){if(E.If()&&E instanceof Nr&&(b=E.fb("ButtonBorder"),b instanceof ro)){var x=E._buttonFillOver;E._buttonFillNormal=b.fill,b.fill=x,x=E._buttonStrokeOver,E._buttonStrokeNormal=b.stroke,b.stroke=x}},y.mouseLeave=function(b,E){E.If()&&E instanceof Nr&&(b=E.fb("ButtonBorder"),b instanceof ro&&(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal))},y.actionDown=function(b,E){if(E.If()&&E instanceof Nr&&E._buttonFillPressed!==null&&b.button===0){var x=E.fb("ButtonBorder");if(x instanceof ro){b=b.diagram;var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ne=E._buttonFillPressed;E._buttonFillOver=x.fill,x.fill=ne,ne=E._buttonStrokePressed,E._buttonStrokeOver=x.stroke,x.stroke=ne,b.skipsUndoManager=z}}},y.actionUp=function(b,E){if(E.If()&&E instanceof Nr&&E._buttonFillPressed!==null&&b.button===0){var x=E.fb("ButtonBorder");if(x instanceof ro){var z=b.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(b,E)?(x.fill=E._buttonFillOver,x.stroke=E._buttonStrokeOver):(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionCancel=function(b,E){if(E.If()&&E instanceof Nr&&E._buttonFillPressed!==null){var x=E.fb("ButtonBorder");if(x instanceof ro){var z=b.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(b,E)?(x.fill=E._buttonFillOver,x.stroke=E._buttonStrokeOver):(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionMove=function(b,E){if(E.If()&&E instanceof Nr&&E._buttonFillPressed!==null){var x=b.diagram;if(x.firstInput.button===0&&(x.currentTool.standardMouseOver(),a(b,E)&&(b=E.fb("ButtonBorder"),b instanceof ro))){var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=E._buttonFillPressed;b.fill!==ne&&(b.fill=ne),ne=E._buttonStrokePressed,b.stroke!==ne&&(b.stroke=ne),x.skipsUndoManager=z}}},y}),Wn("TreeExpanderButton",function(){var a=qn("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},qn(ro,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:mi},new us("figure","isTreeExpanded",function(y,b){return b=b.panel,y?b._treeExpandedFigure:b._treeCollapsedFigure}).cp()),{visible:!1},new us("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,b){if(b=b.part,b instanceof _o&&(b=b.adornedPart),b instanceof ii){var E=b.diagram;if(E!==null){if(E=E.commandHandler,b.isTreeExpanded){if(!E.canCollapseTree(b))return}else if(!E.canExpandTree(b))return;y.handled=!0,b.isTreeExpanded?E.collapseTree(b):E.expandTree(b)}}},a}),Wn("SubGraphExpanderButton",function(){var a=qn("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},qn(ro,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:mi},new us("figure","isSubGraphExpanded",function(y,b){return b=b.panel,y?b._subGraphExpandedFigure:b._subGraphCollapsedFigure}).cp()));return a.click=function(y,b){if(b=b.part,b instanceof _o&&(b=b.adornedPart),b instanceof $i){var E=b.diagram;if(E!==null){if(E=E.commandHandler,b.isSubGraphExpanded){if(!E.canCollapseSubGraph(b))return}else if(!E.canExpandSubGraph(b))return;y.handled=!0,b.isSubGraphExpanded?E.collapseSubGraph(b):E.expandSubGraph(b)}}},a}),Wn("ToolTip",function(){return qn(_o,Nr.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new rt(0,3),shadowBlur:5},qn(ro,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new _r(0,0,4,6),spot2:new _r(1,1,-4,-4)}))}),Wn("ContextMenu",function(){return qn(_o,Nr.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new rt(0,3),shadowBlur:5},new us("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wn("ContextMenuButton",function(){var a=qn("Button");a.stretch=Ci;var y=a.fb("ButtonBorder");return y instanceof ro&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new _r(0,0,2,3),y.spot2=new _r(1,1,-2,-2)),a}),Wn("PanelExpanderButton",function(a){var y=gr(a,"COLLAPSIBLE"),b=qn("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},qn(ro,{name:"ButtonIcon",strokeWidth:2},new us("geometryString","visible",function(E){return E?b._buttonExpandedFigure:b._buttonCollapsedFigure}).cp(y)));return a=b.fb("ButtonBorder"),a instanceof ro&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),b.click=function(E,x){var z=x.diagram;if(z!==null&&!z.isReadOnly){var ne=x.ih();ne===null&&(ne=x.part),ne!==null&&(x=ne.fb(y),x!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),x.visible=!x.visible,z.eb("Collapse/Expand Panel")))}},b}),Wn("CheckBoxButton",function(a){var y=gr(a);return a=qn("Button",{desiredSize:new cn(14,14)},qn(ro,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Cr,geometryStretch:bi,visible:!1},y!==""?new us("visible",y).Kx():[])),a.click=function(b,E){if(E instanceof Nr){var x=b.diagram;if(!(x===null||x.isReadOnly||y!==""&&x.model.isReadOnly)){b.handled=!0;var z=E.fb("ButtonIcon");x.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(b,E),x.eb("checkbox")}}},a}),Wn("CheckBox",function(a){a=gr(a),a=qn("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Qi(0,1,0,0)});var y=qn(Nr,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Qi(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}),tn.None=mr=new Ln(tn,"None",0),tn.Default=Ji=new Ln(tn,"Default",0),tn.Vertical=Fi=new Ln(tn,"Vertical",4),tn.Horizontal=Ci=new Ln(tn,"Horizontal",5),tn.Fill=Cr=new Ln(tn,"Fill",3),tn.Uniform=bi=new Ln(tn,"Uniform",1),tn.UniformToFill=yo=new Ln(tn,"UniformToFill",2),tn.FlipVertical=oo=new Ln(tn,"FlipVertical",1),tn.FlipHorizontal=Po=new Ln(tn,"FlipHorizontal",2),tn.FlipBoth=Qo=new Ln(tn,"FlipBoth",3),tn.make=qn,tn.getBuilders=function(){var a=new Rn,y;for(y in si)if(y!==y.toLowerCase()){var b=si.I(y);typeof b=="function"&&a.add(y,b)}return a.freeze(),a},tn.defineBuilder=Wn,tn.build=function(a,y,b){for(var E=[],x=2;x<arguments.length;++x)E[x-2]=arguments[x];if(x=si.I(a),typeof x=="function"&&(E=x([a].concat(E)),E instanceof tn))return y&&E.set(y),E;kt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},tn.takeBuilderArgument=gr;function Gi(){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=Kn,this.o=Ri,this.hg=Ji,this.ob=this.Bi=1,this.Pf=mr,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Gi.prototype.copy=function(){var a=new Gi;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 Yi(){this.u=-1/0,this.o=0,this.F=jr,this.rr=Jl,this.j=this.V="None"}Yi.prototype.copy=function(){var a=new Yi;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},Yi.className="LinkElementSettings";function no(){this.yj=this.Xi=ts,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}no.prototype.copy=function(){var a=new no;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},no.className="LinkSettings";function co(){this.ha=[1,0,0,1,0,0]}co.prototype.copy=function(){var a=new co;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},co.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},co.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},co.prototype.rotate=function(a,y,b){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,b),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var x=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ne=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=x,this.ha[2]=z,this.ha[3]=ne,this.translate(-y,-b)}},co.className="STransform";function ko(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}ko.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},ko.className="SGradient";function Eo(a,y,b){this.ownerDocument=a=y===void 0?sr.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 Go(this,b)}Eo.prototype.resize=function(a,y,b,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=b+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",b+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+b+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",b+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Eo.prototype.Ud=function(a,y,b){if(a=this.ownerDocument.createElementNS(this.cA,a),nn(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return b!==void 0&&(a.textContent=b),a},Eo.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Eo.prototype.focus=function(){this.Oa.focus()},Eo.prototype.mx=function(){this.ownerDocument=null},un.Object.defineProperties(Eo.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}}}),Eo.className="SVGSurface";function Go(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 co,this.j=nc(this),this.Nj=nc(this,"gojs-diagram"),this.Hl=this.ti=null;var b=po++,E=this.Ud("clipPath",{id:"mainClip"+b});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+b+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Ea(a,y,b,E,x,z,ne){a.Nj===void 0?fc(a,y,b,E,x,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+b+", "+E+", "+x+", "+z+", "+ne+")")}Me=Go.prototype,Me.arc=function(a,y,b,E,x,z,ne,ie){var se=2*Math.PI,de=se-1e-6,pe=b*Math.cos(E),Se=b*Math.sin(E),Ne=a+pe,Oe=y+Se,He=z?0:1;E=z?E-x:x-E,(1e-6<Math.abs(ne-Ne)||1e-6<Math.abs(ie-Oe))&&this.path.push(["L",Ne,+Oe]),0>E&&(E=E%se+se),E>de?(this.path.push(["A",b,b,0,1,He,a-pe,y-Se]),this.path.push(["A",b,b,0,1,He,Ne,Oe])):1e-6<E&&this.path.push(["A",b,b,0,+(E>=Math.PI),He,a+b*Math.cos(x),y+b*Math.sin(x)])},Me.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Me.Se=function(a){this.addPath(this.path,this.rb,a||0)},Me.bezierCurveTo=function(a,y,b,E,x,z){this.path.push(["C",a,y,b,E,x,z])},Me.clearRect=function(){},Me.clip=function(){this.Yl.clipPath=!0},Me.closePath=function(){this.path.push(["z"])},Me.createLinearGradient=function(a,y,b,E){var x=new ko("linear");return x.x1=a,x.y1=y,x.x2=b,x.y2=E,x},Me.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var b=this.eA;if(b[y])return"url(#"+b[y]+")";var E="PATTERN"+po++,x={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud($d,x)),this.svg.appendChild(a),b[y]=E,"url(#"+E+")"},Me.createRadialGradient=function(a,y,b,E,x,z){var ne=new ko("radial");return ne.x1=a,ne.y1=y,ne.r1=b,ne.x2=E,ne.y2=x,ne.r2=z,ne};function Ha(a,y,b,E,x,z,ne,ie,se){E=ie/E,x=se/x,z===0&&ne===0||a.rb.translate(z,ne),E===1&&x===1||a.rb.scale(E,x),y===0&&b===0||a.rb.translate(-y,-b)}Me.drawImage=function(a,y,b,E,x,z,ne,ie,se){var de="";a instanceof HTMLCanvasElement&&(de=a.toDataURL()),a instanceof HTMLImageElement&&(de=a.getAttribute("src"));var pe=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ne=b,ie=E=pe,se=x=a),E=E||0,x=x||0,ie=ie||0,se=se||0,Ha(this,y,b,E,x,z||0,ne||0,ie,se),z={x:0,y:0,width:pe||E,height:a||x,href:de},an.$(E,ie)&&an.$(x,se)?de.toLowerCase().indexOf(".svg")===-1&&de.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||b!==0||E!==pe||x!==a)&&(E+=y,x+=b,z["clip-path"]="path('M "+y+","+b+" L "+E+" "+b+" L "+E+" "+x+" L "+y+" "+x+" z')"),Ma(this,$d,z,this.rb),this.addElement($d,z)},Me.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ll(this,this.Yl)},Me.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Me.fillRect=function(a,y,b,E){a=[a,y,b,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Ma(this,"fill",a,this.rb),this.addElement("rect",a)},Me.ox=function(a,y,b,E){a={x:a,y,width:b,height:E},Ma(this,"fill",a,this.rb),ll(this,a),this.svg.prepend(this.Ud("rect",a))},Me.fillText=function(a,y,b){a=[a,y,b],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},Ma(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Me.lineTo=function(a,y){this.path.push(["L",a,y])},Me.moveTo=function(a,y){this.path.push(["M",a,y])},Me.quadraticCurveTo=function(a,y,b,E){this.path.push(["Q",a,y,b,E])},Me.rect=function(a,y,b,E){this.path.push(["M",a,y],["L",a+b,y],["L",a+b,y+E],["L",a,y+E],["z"])},Me.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},Me.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())},Me.setTransform=function(a,y,b,E,x,z){a===1&&y===0&&b===0&&E===1&&x===0&&z===0||fc(this,a,y,b,E,x,z)};function vl(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Me.scale=function(a,y){this.rb.scale(a,y)},Me.translate=function(a,y){this.rb.translate(a,y)},Me.transform=function(){},Me.yc=function(){},Me.stroke=function(){Nu(this,this.Yl)},Me.jk=function(){this.clipInsteadOfFill||this.stroke()},Me.Ud=function(a,y,b){return this.Gv.Ud(a,y,b)},Me.addElement=function(a,y,b){return a=this.Ud(a,y,b),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Ma(a,y,b,E){y==="fill"?ll(a,b):y==="stroke"&&Nu(a,b),E!==null&&(a=E.ha,b.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ll(a,y){a.fillStyle instanceof ko?y.fill=qc(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 mu(a,y,b){b=b?"fill":"stroke",a.fillStyle instanceof ko?y.setAttributeNS(null,"fill",qc(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,b,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,b+"-opacity",a[4])):y.setAttributeNS(null,b,a.fillStyle)}function Nu(a,y){if(a.strokeStyle instanceof ko)y.stroke=qc(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var b=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+b[1]+","+b[2]+","+b[3]+")",y["stroke-opacity"]=b[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 qc(a,y,b){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(b?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),b=a.svg.getElementById(E),b!==null&&b.remove()):E="GRAD"+po++,y.type==="linear")b=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")b=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var x=y.gx;y=x.length;for(var z=[],ne=0;ne<y;ne++){var ie=x[ne],se=ie.color;ie={offset:ie.offset,"stop-color":se},/^rgba\(/.test(se)&&(se=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(se),ie["stop-color"]="rgb("+se[1]+","+se[2]+","+se[3]+")",ie["stop-opacity"]=se[4]),z.push(ie)}for(z.sort(function(de,pe){return de.offset>pe.offset?1:-1}),x=0;x<y;x++)b.appendChild(a.Ud("stop",z[x]));return a.svg.appendChild(b),"url(#"+E+")"}Me.addPath=function(a,y,b){for(var E=[],x=0;x<a.length;x++){var z=Dn(a[x]),ne=[z.shift()];if(ne[0]==="A")ne.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ne.push(z.shift()+","+z.shift());E.push(ne.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Ma(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ie in a)ie!=="transform"&&y.setAttributeNS(null,ie,a[ie]);else{ie=y.getElementsByTagName("path");for(var se in a)se!=="transform"&&ie[b].setAttributeNS(null,se,a[se])}else this.addElement("path",a)};function fc(a,y,b,E,x,z,ne){var ie=new co;ie.ha=[y,b,E,x,z,ne],y={},Ma(a,"g",y,ie),ie=a.addElement("g",y),a.nh.push(ie)}function nc(a,y){var b={};return y&&(b.class=y),y=a.addElement("g",b),a.nh.push(y),y}Me.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b};function Ul(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Ks(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Me.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Me.fs=function(){this.Ct=!1},Me.Vc=function(){},Me.Wx=function(){},Go.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Go.prototype.getImageData=function(){return null},Go.prototype.measureText=function(){return null};function gd(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()))}Go.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Go.className="SVGContext",kn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Eo(this,sr.document));var y=new Eo(this,sr.document,!0);a===void 0&&(a=new wi);var b=this;return Qd(this,function(E,x){return E=tg(b,E,"SVG",y),E=E!==null?E.svg:null,typeof x=="function"?(x(E),null):E},a)},kn.prototype.makeSvg=kn.prototype.Cs,kn.prototype.av=function(a){return this.Cs(a)},kn.prototype.makeSVG=kn.prototype.av;function ul(a,y,b,E){this.ownerDocument=y=y===void 0?sr.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new $c(y,b,E),y.H=a}ul.prototype.resize=function(a,y,b,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=b+"px",this.style.height=E+"px",!0):!1},ul.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},ul.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ul.prototype.focus=function(){this.Oa.focus()},ul.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},un.Object.defineProperties(ul.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}}}),ul.className="CanvasSurface";function $c(a,y,b){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&kt("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Ui,this.isTemporary=!!b}Me=$c.prototype,Me.Wx=function(a){this.Z.imageSmoothingEnabled=a},Me.arc=function(a,y,b,E,x,z){this.Z.arc(a,y,b,E,x,z)},Me.beginPath=function(){this.Z.beginPath()},Me.Se=function(){},Me.bezierCurveTo=function(a,y,b,E,x,z){this.Z.bezierCurveTo(a,y,b,E,x,z)},Me.clearRect=function(a,y,b,E){this.yc(),this.Z.clearRect(a,y,b,E)},Me.clip=function(){this.Z.clip()},Me.closePath=function(){this.Z.closePath()},Me.createLinearGradient=function(a,y,b,E){return this.Z.createLinearGradient(a,y,b,E)},Me.createPattern=function(a,y){return this.Z.createPattern(a,y)},Me.createRadialGradient=function(a,y,b,E,x,z){return this.Z.createRadialGradient(a,y,b,E,x,z)},Me.drawImage=function(a,y,b,E,x,z,ne,ie,se){E===void 0?this.Z.drawImage(a,y,b):this.Z.drawImage(a,y,b,E,x,z,ne,ie,se)},Me.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Me.fillRect=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},Me.ox=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},Me.fillText=function(a,y,b){this.Z.fillText(a,y,b)},Me.getImageData=function(a,y,b,E){return this.Z.getImageData(a,y,b,E)},Me.lineTo=function(a,y){this.Z.lineTo(a,y)},Me.measureText=function(a){return this.Z.measureText(a)},Me.moveTo=function(a,y){this.Z.moveTo(a,y)},Me.quadraticCurveTo=function(a,y,b,E){this.Z.quadraticCurveTo(a,y,b,E)},Me.rect=function(a,y,b,E){this.Z.rect(a,y,b,E)},Me.restore=function(){this.Z.restore()},Me.save=function(){this.yc(),this.Z.save()},$c.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Me=$c.prototype,Me.setTransform=function(a,y,b,E,x,z){this.El.setTransform(a,y,b,E,x,z)},Me.scale=function(a,y){this.El.scale(a,y)},Me.translate=function(a,y){this.El.translate(a,y)},Me.stroke=function(){this.Z.stroke()},Me.transform=function(a,y,b,E,x,z){if(a!==1||y!==0||b!==0||E!==1||x!==0||z!==0){var ne=this.El,ie=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*b+ne.m21*E,b=ne.m12*b+ne.m22*E,ne.dx=ne.m11*x+ne.m21*z+ne.dx,ne.dy=ne.m12*x+ne.m22*z+ne.dy,ne.m11=ie,ne.m12=a,ne.m21=y,ne.m22=b}},Me.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Me.ng=function(a,y){if(a instanceof Fo&&a.type===pc){var b=a.yk;a=a.ft,a>b?(this.scale(b/a,1),this.translate((a-b)/2,0)):b>a&&(this.scale(1,a/b),this.translate(0,(b-a)/2)),this.Hm?this.clip():this.fill(y),a>b?(this.translate(-(a-b)/2,0),this.scale(1/(b/a),1)):b>a&&(this.translate(0,-(b-a)/2),this.scale(1,1/(a/b)))}else this.Hm?this.clip():this.fill(y)},Me.jk=function(){this.Hm||this.stroke()},Me.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b},Me.js=function(a,y){var b=this.Z;b.setLineDash!==void 0&&(b.setLineDash(a),b.lineDashOffset=y)},Me.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash($h),a.lineDashOffset=0)},Me.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Me.Hs=function(){},un.Object.defineProperties($c.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 $h=Object.freeze([]);$c.className="CanvasSurfaceContext";function ed(){this.F=this.o=this.u=this.j=0}ed.className="ColorNumbers";function Fo(a,y){sg||(ag(),sg=!0),vi(this),this._isFrozen=!1,a===void 0?(this.na=Ch,this.xk="black"):typeof a=="string"?(this.na=Ch,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===nh?(this.Qd=ba,this.Lk=pa):this.Lk=a===pc?this.Qd=uo:this.Qd=to,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Fo.prototype.copy=function(){var a=new Fo;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},Me=Fo.prototype,Me.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Me.ka=function(){return Object.isFrozen(this)&&kt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Me.qb=function(a){a.classType===Fo&&(this.type=a)},Me.toString=function(){var a="Brush(";if(this.type===Ch)a+=this.color;else if(a=this.type===nh?a+"Linear ":this.type===pc?a+"Radial ":this.type===lg?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+")"},Me.addColorStop=function(a,y){return this._isFrozen&&Gn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&vr(a,"0 <= loc <= 1",Fo,"addColorStop:loc"),this.we===null&&(this.we=new Rn),this.we.add(a,y),this.na===Ch&&(this.type=nh),this.xe=null,this},Me.Vz=function(a,y){if(this._isFrozen&&Gn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?ug:y,this.type===Ch)rc(this.color),this.color=th(a,y);else if((this.type===nh||this.type===pc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)rc(b.value),this.addColorStop(b.key,th(a,y));return this};function wh(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?ug:b,rc(a),th(y,b)}Me.Wy=function(a,y){if(this._isFrozen&&Gn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?ug:y,this.type===Ch)rc(this.color),this.color=th(-a,y);else if((this.type===nh||this.type===pc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)rc(b.value),this.addColorStop(b.key,th(-a,y));return this};function Cp(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?ug:b,rc(a),th(-y,b)}function td(a,y,b){rc(a),a=ua.j;var E=ua.u,x=ua.o,z=ua.F;return rc(y),b===void 0&&(b=.5),"rgba("+Math.round((ua.j-a)*b+a)+", "+Math.round((ua.u-E)*b+E)+", "+Math.round((ua.o-x)*b+x)+", "+Math.round((ua.F-z)*b+z)+")"}Me.Gx=function(){if(this.type===Ch)return Id(this.color);if((this.type===nh||this.type===pc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===pc)return Id(a.first().value);if(a.get(.5)!==null)return Id(a.get(.5));if(a.count===2)return a=a.Fa(),Id(td(a[0].value,a[1].value));for(var y=a.iterator,b=-1,E=-1,x=1,z=1;y.next();){var ne=y.key,ie=Math.abs(.5-y.key);x>z&&ie<x?(b=ne,x=ie):z>=x&&ie<z&&(E=ne,z=ie)}return b>E&&(z=b,b=E,E=z,z=x),x=E-b,Id(td(a.get(b),a.get(E),1-z/x))}return!1};function Id(a){return a?a instanceof Fo?a.Gx():(rc(a),128>(299*ua.j+587*ua.u+114*ua.o)/1e3):!1}function th(a,y){switch(y){case ug:y=100*_f(ua.j);var b=100*_f(ua.u),E=100*_f(ua.o);return el.j=.4124564*y+.3575761*b+.1804375*E,el.u=.2126729*y+.7151522*b+.072175*E,el.o=.0193339*y+.119192*b+.9503041*E,el.F=ua.F,y=Vg(el.j/nf[0]),b=Vg(el.u/nf[1]),E=Vg(el.o/nf[2]),Cc.j=116*b-16,Cc.u=500*(y-b),Cc.o=200*(b-E),Cc.F=el.F,Cc.j=Math.min(100,Math.max(0,Cc.j+100*a)),a=(Cc.j+16)/116,y=a-Cc.o/200,el.j=nf[0]*Pp(Cc.u/500+a),el.u=nf[1]*(Cc.j>tf*Tp?Math.pow(a,3):Cc.j/tf),el.o=nf[2]*Pp(y),el.F=Cc.F,a=-.969266*el.j+1.8760108*el.u+.041556*el.o,y=.0556434*el.j+-.2040259*el.u+1.0572252*el.o,ua.j=255*og((3.2404542*el.j+-1.5371385*el.u+-.4985314*el.o)/100),ua.u=255*og(a/100),ua.o=255*og(y/100),ua.F=el.F,ua.j=Math.round(ua.j),255<ua.j?ua.j=255:0>ua.j&&(ua.j=0),ua.u=Math.round(ua.u),255<ua.u?ua.u=255:0>ua.u&&(ua.u=0),ua.o=Math.round(ua.o),255<ua.o?ua.o=255:0>ua.o&&(ua.o=0),"rgba("+ua.j+", "+ua.u+", "+ua.o+", "+ua.F+")";case lS:return Bf(),Lu.o=Math.min(100,Math.max(0,Lu.o+100*a)),"hsla("+Lu.j+", "+Lu.u+"%, "+Lu.o+"%, "+Lu.F+")";default:kt("Unknown color space: "+y)}}function rc(a){sg||(ag(),sg=!0);var y=Ap;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var b=y.fillStyle;y.fillStyle=a,y.fillStyle!==b?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,ua.j=a[0],ua.u=a[1],ua.o=a[2],ua.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ua.j=0,ua.u=0,ua.o=0,ua.F=1)}}function Bf(){var a=ua.j/255,y=ua.u/255,b=ua.o/255,E=Math.max(a,y,b),x=Math.min(a,y,b),z=E-x;if(x=(E+x)/2,z===0)var ne=a=0;else{switch(E){case a:ne=(y-b)/z%6;break;case y:ne=(b-a)/z+2;break;case b:ne=(a-y)/z+4}ne*=60,0>ne&&(ne+=360),a=z/(1-Math.abs(2*x-1))}Lu.j=Math.round(ne),Lu.u=Math.round(100*a),Lu.o=Math.round(100*x),Lu.F=ua.F}function _f(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function og(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Vg(a){return a>Tp?Math.pow(a,1/3):(tf*a+16)/116}function Pp(a){var y=a*a*a;return y>Tp?y:(116*a-16)/tf}function ef(a,y){typeof a!="string"&&(a instanceof Fo||kt("Value for "+y+" must be a color string or a Brush, not "+a))}function ag(){Ap=Da?new ul(null,void 0,{willReadFrequently:!0}).context:null}un.Object.defineProperties(Fo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Gn(this,a),this.na=a,this.start.Mc()&&(a===nh?this.start=ba:a===pc&&(this.start=uo)),this.end.Mc()&&(a===nh?this.end=pa:a===pc&&(this.end=uo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Gn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Gn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Gn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Gn(this,a),0>a&&vr(a,">= zero",Fo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Gn(this,a),0>a&&vr(a,">= zero",Fo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Gn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Gn(this,a),this.cr=a,this.xe=null}}}),Fo.prototype.isDark=Fo.prototype.Gx,Fo.prototype.darkenBy=Fo.prototype.Wy,Fo.prototype.lightenBy=Fo.prototype.Vz,Fo.prototype.addColorStop=Fo.prototype.addColorStop;var Tp=216/24389,tf=24389/27,nf=[95.047,100,108.883],Ap=null,ua=new ed,Lu=new ed,el=new ed,Cc=new ed,sg=!1;Fo.className="Brush";var Ch;Fo.Solid=Ch=new Ln(Fo,"Solid",0);var nh;Fo.Linear=nh=new Ln(Fo,"Linear",1);var pc;Fo.Radial=pc=new Ln(Fo,"Radial",2);var lg;Fo.Pattern=lg=new Ln(Fo,"Pattern",4);var ug;Fo.Lab=ug=new Ln(Fo,"Lab",5);var lS;Fo.HSL=lS=new Ln(Fo,"HSL",6),Fo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var b=Math.abs(y-a);y=Math.floor(a+Math.random()*b).toString(16);var E=Math.floor(a+Math.random()*b).toString(16);return a=Math.floor(a+Math.random()*b).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Fo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;sg||(ag(),sg=!0);var y=Ap;if(y===null)return!0;y.fillStyle="#000000";var b=y.fillStyle;return y.fillStyle=a,y.fillStyle!==b?!0:(y.fillStyle="#FFFFFF",b=y.fillStyle,y.fillStyle=a,y.fillStyle!==b)},Fo.lighten=function(a){return wh(a)},Fo.lightenBy=wh,Fo.darken=function(a){return Cp(a)},Fo.darkenBy=Cp,Fo.mix=td,Fo.isDark=Id;function Ls(){this.xa="Base"}Ls.prototype.measure=function(){},Ls.prototype.Yz=function(a,y,b,E,x){a.measure(y,b,E,x)},Ls.prototype.arrange=function(){},Ls.prototype.Ly=function(a,y,b,E,x,z){a.arrange(y,b,E,x,z)},Ls.prototype.iA=function(a){a.Uj()},Ls.prototype.gc=function(){},un.Object.defineProperties(Ls.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Nr}}}),Ls.prototype.remeasureObject=Ls.prototype.iA,Ls.prototype.arrangeElement=Ls.prototype.Ly,Ls.prototype.measureElement=Ls.prototype.Yz,Ls.className="PanelLayout";function Hm(){this.xa="Base"}hn(Hm,Ls),Hm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;a=rh(a);for(var se=0;se<ie;se++){var de=E[se];if(de.visible||de===a){var pe=de.margin,Se=pe.right+pe.left;pe=pe.top+pe.bottom,de.measure(y,b,z,ne);var Ne=de.measuredBounds;Se=Math.max(Ne.width+Se,0),pe=Math.max(Ne.height+pe,0),Ne=de.position.x;var Oe=de.position.y;isFinite(Ne)||(Ne=0),isFinite(Oe)||(Oe=0),de instanceof ro&&de.isGeometryPositioned&&(de=de.strokeWidth/2,Ne-=de,Oe-=de),Mo(x,Ne,Oe,Se,pe)}}},Hm.prototype.arrange=function(a,y,b){var E=y.length,x=a.padding;for(a=b.x-x.left,b=b.y-x.top,x=0;x<E;x++){var z=y[x],ne=z.measuredBounds,ie=z.margin,se=z.position.x,de=z.position.y;if(se=isNaN(se)?-a:se-a,de=isNaN(de)?-b:de-b,z instanceof ro&&z.isGeometryPositioned){var pe=z.strokeWidth/2;se-=pe,de-=pe}z.visible&&z.arrange(se+ie.left,de+ie.top,ne.width,ne.height)}};function zm(){this.xa="Base"}hn(zm,Ls),zm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;y=Jr(),z=rh(a);for(var se=0;se<ie;se++){var de=E[se];if(de.visible||de===z){var pe=_l(de,!1);if(pe!==mr&&pe!==Ci)y.push(de);else{de.measure(1/0,b,0,ne),pe=de.margin,de=de.measuredBounds;var Se=Math.max(de.height+pe.top+pe.bottom,0);x.width+=Math.max(de.width+pe.right+pe.left,0),x.height=Math.max(x.height,Se)}}}for(E=y.length,a.desiredSize.height?b=Math.min(a.desiredSize.height,a.maxSize.height):x.height!==0&&(b=Math.min(x.height,a.maxSize.height)),a=0;a<E;a++)se=y[a],(se.visible||se===z)&&(pe=se.margin,ie=pe.right+pe.left,pe=pe.top+pe.bottom,se.measure(1/0,b,0,ne),se=se.measuredBounds,pe=Math.max(se.height+pe,0),x.width+=Math.max(se.width+ie,0),x.height=Math.max(x.height,pe));Hr(y)},zm.prototype.arrange=function(a,y,b){for(var E=y.length,x=a.padding,z=x.top,ne=a.isOpposite,ie=ne?b.width:x.left,se=0;se<E;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Ne=pe.margin,Oe=Ne.top+Ne.bottom,He=z+x.bottom,Je=Se.height,xt=_l(pe,!1);(isNaN(pe.desiredSize.height)&&xt===Cr||xt===Fi)&&(Je=Math.max(b.height-Oe-He,0)),Oe=Je+Oe+He,He=pe.alignment,He.Xb()&&(He=a.defaultAlignment),He.sb()||(He=uo),ne&&(ie-=Se.width+Ne.left+Ne.right),pe.arrange(ie+He.offsetX+Ne.left,de+He.offsetY+Ne.top+(b.height*He.y-Oe*He.y),Se.width,Je),ne||(ie+=Se.width+Ne.left+Ne.right)}}};function Gm(){this.xa="Base"}hn(Gm,Ls),Gm.prototype.measure=function(a,y,b,E,x,z){var ne=E.length;b=Jr();for(var ie=rh(a),se=0;se<ne;se++){var de=E[se];if(de.visible||de===ie){var pe=_l(de,!1);if(pe!==mr&&pe!==Fi)b.push(de);else{var Se=de.margin;pe=Se.right+Se.left,Se=Se.top+Se.bottom,de.measure(y,1/0,z,0),de=de.measuredBounds,so(x,Math.max(x.width,Math.max(de.width+pe,0)),x.height+Math.max(de.height+Se,0))}}}if(E=b.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):x.width!==0&&(y=Math.min(x.width,a.maxSize.width)),a=0;a<E;a++)se=b[a],(se.visible||se===ie)&&(de=se.margin,ne=de.right+de.left,de=de.top+de.bottom,se.measure(y,1/0,z,0),se=se.measuredBounds,de=Math.max(se.height+de,0),x.width=Math.max(x.width,Math.max(se.width+ne,0)),x.height+=de);Hr(b)}},Gm.prototype.arrange=function(a,y,b){for(var E=y.length,x=a.padding,z=x.left,ne=a.isOpposite,ie=ne?b.height:x.top,se=0;se<E;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Ne=pe.margin,Oe=Ne.left+Ne.right,He=z+x.right,Je=Se.width,xt=_l(pe,!1);(isNaN(pe.desiredSize.width)&&xt===Cr||xt===Ci)&&(Je=Math.max(b.width-Oe-He,0)),Oe=Je+Oe+He,He=pe.alignment,He.Xb()&&(He=a.defaultAlignment),He.sb()||(He=uo),ne&&(ie-=Se.height+Ne.bottom+Ne.top),pe.arrange(de+He.offsetX+Ne.left+(b.width*He.x-Oe*He.x),ie+He.offsetY+Ne.top,Je,Se.height),ne||(ie+=Se.height+Ne.bottom+Ne.top)}}};function jm(){this.xa="Base"}hn(jm,Ls),jm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length,se=a.Pb(),de=se.margin,pe=de.right+de.left,Se=de.top+de.bottom;se.measure(y,b,z,ne);var Ne=se.measuredBounds;z=Ne.width,ne=Ne.height;var Oe=Math.max(z+pe,0),He=Math.max(ne+Se,0),Je=a.isClipping,xt=An.allocAt(-de.left,-de.top,Oe,He),yt=An.allocAt(0,0,z,ne);Tv(se,yt,!0),z=yt.width,ne=yt.height;for(var Rt=!0,Bt=rh(a),Gt=0;Gt<ie;Gt++){var $t=E[Gt];Ne=y;var In=b;if($t!==se&&($t.visible||$t===Bt)){de=$t.margin;var qr=de.left,yi=de.top;switch(Oe=de.right+de.left,He=de.top+de.bottom,de=_l($t,!1),de){case Cr:Ne=z,In=ne,yi=qr=He=Oe=0;break;case Ci:Ne=z,qr=Oe=0;break;case Fi:In=ne,yi=He=0}$t.measure(Ne,In,0,0),Ne=$t.measuredBounds,Oe=Math.max(Ne.width+Oe,0),He=Math.max(Ne.height+He,0),de=$t.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=uo);var di=$t.alignmentFocus;if(di.Xb()&&(di=uo),In=null,$t instanceof Nr&&$t.$e!==""&&(In=$t.fb($t.$e),In===$t&&(In=null)),qr=yt.x-qr,yi=yt.y-yi,In!==null){for($t.arrange(0,0,Ne.width,Ne.height),Ne=In.actualBounds,Ne=rt.allocAt(Ne.x+(di.x*Ne.width-di.offsetX),Ne.y+(di.y*Ne.height-di.offsetY)),In=In.panel;In!==$t;)In.transform.Ga(Ne),In=In.panel;qr+=de.x*z+de.offsetX-Ne.x,yi+=de.y*ne+de.offsetY-Ne.y,rt.free(Ne)}else qr+=de.x*z+de.offsetX-(di.x*Ne.width+di.offsetX),yi+=de.y*ne+de.offsetY-(di.y*Ne.height+di.offsetY);Rt?(Rt=!1,x.h(qr,yi,Oe,He)):Mo(x,qr,yi,Oe,He)}}switch(Rt?x.assign(xt):Je?x.Uu(yt.x,yt.y,yt.width,yt.height):Mo(x,xt.x,xt.y,xt.width,xt.height),An.free(xt),An.free(yt),de=se.stretch,de===Ji&&(de=_l(se,!1)),de){case mr:return;case Cr:if(!isFinite(y)&&!isFinite(b))return;break;case Ci:if(!isFinite(y))return;break;case Fi:if(!isFinite(b))return}for(Ne=se.measuredBounds,z=Ne.width,ne=Ne.height,Oe=Math.max(z+pe,0),He=Math.max(ne+Se,0),de=se.margin,yt=An.allocAt(-de.left,-de.top,Oe,He),Tv(se,yt,!0),z=yt.width,ne=yt.height,y=0;y<ie;y++)b=E[y],b===se||!b.visible&&b!==Bt||(de=b.margin,Oe=de.right+de.left,He=de.top+de.bottom,Ne=b.measuredBounds,Oe=Math.max(Ne.width+Oe,0),He=Math.max(Ne.height+He,0),pe=b.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=uo),b=b.alignmentFocus,b.Xb()&&(b=uo),Rt?(Rt=!1,x.h(pe.x*z+pe.offsetX-(b.x*Ne.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Ne.height+b.offsetY)-de.top,Oe,He)):Mo(x,pe.x*z+pe.offsetX-(b.x*Ne.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Ne.height+b.offsetY)-de.top,Oe,He));Rt?x.assign(xt):Je?x.Uu(yt.x,yt.y,yt.width,yt.height):Mo(x,xt.x,xt.y,xt.width,xt.height),An.free(yt)},jm.prototype.arrange=function(a,y,b){var E=y.length,x=a.Pb(),z=x.measuredBounds,ne=z.width,ie=z.height,se=a.padding;z=se.left,se=se.top;var de=z-b.x,pe=se-b.y;for(x.arrange(de,pe,ne,ie),ne=An.allocAt(0,0,ne,ie),Tv(x,ne,!1),ie=0;ie<E;ie++){var Se=y[ie];if(Se!==x){de=Se.measuredBounds;var Ne=de.width,Oe=de.height;pe=Se.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=uo);var He=Se.alignmentFocus;if(He.Xb()&&(He=uo),de=null,Se instanceof Nr&&Se.$e!==""&&(de=Se.fb(Se.$e),de===Se&&(de=null)),de!==null){var Je=de.actualBounds;for(He=rt.allocAt(Je.x+(He.x*Je.width-He.offsetX),Je.y+(He.y*Je.height-He.offsetY)),de=de.panel;de!==Se;)de.transform.Ga(He),de=de.panel;de=pe.x*ne.width+pe.offsetX-He.x,pe=pe.y*ne.height+pe.offsetY-He.y,rt.free(He)}else de=pe.x*ne.width+pe.offsetX-(He.x*Ne+He.offsetX),pe=pe.y*ne.height+pe.offsetY-(He.y*Oe+He.offsetY);de+=ne.x-b.x,pe+=ne.y-b.y,Se.visible&&Se.arrange(z+de,se+pe,Ne,Oe)}}An.free(ne)};function Tv(a,y,b){var E=null;if(a instanceof Nr&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(b&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function Vm(){this.xa="Base"}hn(Vm,Ls),Vm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length,se=a.Pb(),de=se.margin,pe=y,Se=b,Ne=de.right+de.left,Oe=de.top+de.bottom;se.measure(y,b,z,ne),de=se.measuredBounds;var He=0,Je=null;se instanceof ro&&(Je=se,He=Je.strokeWidth*Je.scale);var xt=Math.max(de.width+Ne,0);de=Math.max(de.height+Oe,0);var yt=kv(se),Rt=yt.x*xt+yt.offsetX;yt=yt.y*de+yt.offsetY;var Bt=Iv(se),Gt=Bt.x*xt+Bt.offsetX;for(Bt=Bt.y*de+Bt.offsetY,isFinite(y)&&(pe=Math.max(Math.abs(Rt-Gt)-He,0)),isFinite(b)&&(Se=Math.max(Math.abs(yt-Bt)-He,0)),He=cn.alloc(),He.h(0,0),a=rh(a),Bt=0;Bt<ie;Bt++)yt=E[Bt],yt===se||!yt.visible&&yt!==a||(de=yt.margin,xt=de.right+de.left,Rt=de.top+de.bottom,yt.measure(pe,Se,0,0),de=yt.measuredBounds,xt=Math.max(de.width+xt,0),de=Math.max(de.height+Rt,0),He.h(Math.max(xt,He.width),Math.max(de,He.height)));if(ie===1)x.width=xt,x.height=de,cn.free(He);else{switch(yt=kv(se),Bt=Iv(se),ie=E=0,Bt.x!==yt.x&&Bt.y!==yt.y&&(E=He.width/Math.abs(Bt.x-yt.x),ie=He.height/Math.abs(Bt.y-yt.y)),cn.free(He),He=0,Je!==null&&(He=Je.strokeWidth*Je.scale,Bv(Je)===bi&&(E=ie=Math.max(E,ie))),E+=Math.abs(yt.offsetX)+Math.abs(Bt.offsetX)+He,ie+=Math.abs(yt.offsetY)+Math.abs(Bt.offsetY)+He,Je=se.stretch,Je===Ji&&(Je=_l(se,!1)),Je){case mr:ne=z=0;break;case Cr:isFinite(y)&&(E=y),isFinite(b)&&(ie=b);break;case Ci:isFinite(y)&&(E=y),ne=0;break;case Fi:z=0,isFinite(b)&&(ie=b)}se.Uj(),se.measure(E,ie,z,ne),x.width=se.measuredBounds.width+Ne,x.height=se.measuredBounds.height+Oe}},Vm.prototype.arrange=function(a,y){var b=y.length,E=a.Pb(),x=E.measuredBounds,z=An.alloc();z.h(0,0,1,1);var ne=E.margin,ie=ne.left;ne=ne.top;var se=a.padding,de=se.left;se=se.top,E.arrange(de+ie,se+ne,x.width,x.height);var pe=kv(E),Se=Iv(E),Ne=pe.y*x.height+pe.offsetY,Oe=Se.x*x.width+Se.offsetX;for(Se=Se.y*x.height+Se.offsetY,z.x=pe.x*x.width+pe.offsetX,z.y=Ne,Mo(z,Oe,Se,0,0),z.x+=ie+de,z.y+=ne+se,x=0;x<b;x++)ie=y[x],ie!==E&&(de=ie.measuredBounds,ne=ie.margin,se=Math.max(de.width+ne.right+ne.left,0),pe=Math.max(de.height+ne.top+ne.bottom,0),Ne=ie.alignment,Ne.Xb()&&(Ne=a.defaultAlignment),Ne.sb()||(Ne=uo),se=z.width*Ne.x+Ne.offsetX-se*Ne.x+ne.left+z.x,ne=z.height*Ne.y+Ne.offsetY-pe*Ne.y+ne.top+z.y,ie.visible&&(ia(z.x,z.y,z.width,z.height,se,ne,de.width,de.height)?ie.arrange(se,ne,de.width,de.height):ie.arrange(se,ne,de.width,de.height,new An(z.x,z.y,z.width,z.height))));An.free(z)};function Wm(){this.xa="Base",this.name="Table"}hn(Wm,Ls),Wm.prototype.measure=function(a,y,b,E,x){for(var z=E.length,ne=Jr(),ie=Jr(),se=0;se<z;se++){var de=E[se],pe=de instanceof Nr?de:null;if(pe!==null&&Ph(pe)&&de.visible){ie.push(pe);for(var Se=pe.O.s,Ne=Se.length,Oe=0;Oe<Ne;Oe++){var He=Se[Oe];pe.type===Nr.TableRow?He.row=de.row:pe.type===Nr.TableColumn&&(He.column=de.column),ne.push(He)}}else ne.push(de)}z=ne.length,z===0&&(a.Fb(0),a.Eb(0));for(var Je=[],xt=0;xt<z;xt++){var yt=ne[xt];yt.visible&&(Tt(yt,!0),Kt(yt,!0),Je[yt.row]||(Je[yt.row]=[]),Je[yt.row][yt.column]||(Je[yt.row][yt.column]=[]),Je[yt.row][yt.column].push(yt))}Hr(ne);var Rt=Jr(),Bt=Jr(),Gt=Jr(),$t={count:0},In={count:0},qr=y,yi=b,di=a.rowDefs,Dr=a.colDefs,pr=null;z=di.length;for(var qi=0;qi<z;qi++)pr=di[qi],pr!==void 0&&(pr.actual=0);z=Dr.length;for(var ji=0;ji<z;ji++)pr=Dr[ji],pr!==void 0&&(pr.actual=0);for(var Uo=Je.length,fa=0,Bs=0;Bs<Uo;Bs++)Je[Bs]&&(fa=Math.max(fa,Je[Bs].length));var zs=Math.min(a.topIndex,Uo-1),Hl=Math.min(a.leftIndex,fa-1),_s=0;Uo=Je.length;for(var Oh=rh(a),cs=0;cs<Uo;cs++)if(Je[cs]){fa=Je[cs].length;var ad=a.Fb(cs);ad.actual=0;for(var zl=ad.oc=0;zl<fa;zl++)if(Je[cs][zl]){var Fh=a.Eb(zl);Rt[zl]===void 0&&(Fh.actual=0,Fh.oc=0,Rt[zl]=!0);for(var ac=Je[cs][zl],Nc=ac.length,Gu=0;Gu<Nc;Gu++){var Iu=ac[Gu];if(Iu.visible||Iu===Oh){var vf=1<Iu.rowSpan||1<Iu.columnSpan;vf&&(cs<zs||zl<Hl||Bt.push(Iu));var sd=Iu.margin,Dg=sd.right+sd.left,ju=sd.top+sd.bottom,Gl=wc(Iu,ad,Fh,!1),Im=Iu.desiredSize,Up=!isNaN(Im.height),yd=!isNaN(Im.width)&&Up;if(vf||Gl===mr||yd||cs<zs||zl<Hl||($t[zl]!==void 0||Gl!==Cr&&Gl!==Ci||($t[zl]=-1,$t.count++),In[cs]!==void 0||Gl!==Cr&&Gl!==Fi||(In[cs]=-1,In.count++),Gt.push(Iu)),Iu.measure(1/0,1/0,0,0),!(cs<zs||zl<Hl)){var Du=Iu.measuredBounds,Kf=Math.max(Du.width+Dg,0),Vu=Math.max(Du.height+ju,0);if(Iu.rowSpan===1&&(Gl===mr||Gl===Ci)){pr=a.Fb(cs);var yf=pr.Wc();_s=Math.max(Vu-pr.actual,0),_s+yf>yi&&(_s=Math.max(yi-yf,0));var pv=pr.oa===0;pr.oc=pr.oc+_s,pr.actual=pr.oa+_s,yi=Math.max(yi-(_s+(pv?yf:0)),0)}if(Iu.columnSpan===1&&(Gl===mr||Gl===Fi)){pr=a.Eb(zl);var Dm=pr.Wc();_s=Math.max(Kf-pr.actual,0),_s+Dm>qr&&(_s=Math.max(qr-Dm,0));var $y=pr.oa===0;pr.oc=pr.oc+_s,pr.actual=pr.oa+_s,qr=Math.max(qr-(_s+($y?Dm:0)),0)}vf&&Iu.Uj()}}}}}Hr(Rt);var Hd=0,ah=0;z=a.columnCount;for(var Hp=0;Hp<z;Hp++){var Sf=Dr[Hp];Sf!==void 0&&(Hd+=isNaN(Sf.Hc)?Sf.oc:Sf.Hc,Sf.oc!==0&&(Hd+=Sf.Wc()))}z=a.rowCount;for(var Rg=0;Rg<z;Rg++){var bf=di[Rg];bf!==void 0&&(ah+=isNaN(bf.Hc)?bf.oc:bf.Hc,bf.oc!==0&&(ah+=bf.Wc()))}qr=Math.max(y-Hd,0);var zd=yi=Math.max(b-ah,0),Bh=qr;z=Gt.length;for(var Ru=0;Ru<z;Ru++){var Sd=Gt[Ru],gv=a.Fb(Sd.row),sh=a.Eb(Sd.column),Mg=Sd.measuredBounds,ld=Sd.margin,Yf=ld.right+ld.left,bd=ld.top+ld.bottom;$t[Sd.column]=sh.oc===0&&$t[Sd.column]!==void 0?Math.max(Mg.width+Yf,$t[Sd.column]):null,In[Sd.row]=gv.oc===0&&In[Sd.row]!==void 0?Math.max(Mg.height+bd,In[Sd.row]):null}var zp=0,Og=0,Gc;for(Gc in In)Gc!=="count"&&(zp+=In[Gc]);for(Gc in $t)Gc!=="count"&&(Og+=$t[Gc]);for(var nl=cn.alloc(),Rm=0;Rm<z;Rm++){var nu=Gt[Rm];if(nu.visible||nu===Oh){var ds=a.Fb(nu.row),ru=a.Eb(nu.column),lh=0;isFinite(ru.width)?lh=ru.width:(isFinite(qr)&&$t[nu.column]!==null?Og===0?lh=ru.actual+qr:lh=$t[nu.column]/Og*Bh:$t[nu.column]!==null?lh=qr:lh=ru.actual||qr,lh=Math.max(0,lh-ru.Wc()));var _h=0;switch(isFinite(ds.height)?_h=ds.height:(isFinite(yi)&&In[nu.row]!==null?zp===0?_h=ds.actual+yi:_h=In[nu.row]/zp*zd:In[nu.row]!==null?_h=yi:_h=ds.actual||yi,_h=Math.max(0,_h-ds.Wc())),nl.h(Math.max(ru.minimum,Math.min(lh,ru.maximum)),Math.max(ds.minimum,Math.min(_h,ds.maximum))),Gl=wc(nu,ds,ru,!1),Gl){case Ci:nl.height=Math.max(nl.height,ds.actual+yi);break;case Fi:nl.width=Math.max(nl.width,ru.actual+qr)}var Xf=nu.margin,eS=Xf.right+Xf.left,mv=Xf.top+Xf.bottom;nu.Uj(),nu.measure(nl.width,nl.height,ru.minimum,ds.minimum);var Fg=nu.measuredBounds,Qf=Math.max(Fg.width+eS,0),Gp=Math.max(Fg.height+mv,0);isFinite(qr)&&(Qf=Math.min(Qf,nl.width)),isFinite(yi)&&(Gp=Math.min(Gp,nl.height));var Mu=0;Mu=ds.actual,ds.actual=Math.max(ds.actual,Gp),ds.oc=Math.max(ds.oc,Gp),_s=ds.actual-Mu,yi=Math.max(yi-_s,0),In[nu.row]===null&&(zd=Math.max(zd-_s,0)),Mu=ru.actual,ru.actual=Math.max(ru.actual,Qf),ru.oc=Math.max(ru.oc,Qf),_s=ru.actual-Mu,qr=Math.max(qr-_s,0),$t[nu.column]===null&&(Bh=Math.max(Bh-_s,0))}}Hr(Gt);var uh=cn.alloc(),ud=Jr(),Sc=Jr();if(z=Bt.length,z!==0){for(var Ef=0;Ef<Uo;Ef++)if(Je[Ef]){fa=Je[Ef].length;var Bg=a.Fb(Ef);ud[Ef]=Bg.actual;for(var xf=0;xf<fa;xf++)if(Je[Ef][xf]){var vv=a.Eb(xf);Sc[xf]=vv.actual}}}for(var _g=0;_g<z;_g++){var Ja=Bt[_g];if(Ja.visible||Ja===Oh){var jc=a.Fb(Ja.row),Lc=a.Eb(Ja.column);switch(nl.h(Math.max(Lc.minimum,Math.min(y,Lc.maximum)),Math.max(jc.minimum,Math.min(b,jc.maximum))),Gl=wc(Ja,jc,Lc,!1),Gl){case Cr:Sc[Lc.index]!==0&&(nl.width=Math.min(nl.width,Sc[Lc.index])),ud[jc.index]!==0&&(nl.height=Math.min(nl.height,ud[jc.index]));break;case Ci:Sc[Lc.index]!==0&&(nl.width=Math.min(nl.width,Sc[Lc.index]));break;case Fi:ud[jc.index]!==0&&(nl.height=Math.min(nl.height,ud[jc.index]))}isFinite(Lc.width)&&(nl.width=Lc.width),isFinite(jc.height)&&(nl.height=jc.height),uh.h(0,0);for(var yv=Lc.minimum,Wu=jc.minimum,Uh=1;Uh<Ja.rowSpan&&!(Ja.row+Uh>=a.rowCount);Uh++)pr=a.Fb(Ja.row+Uh),_s=0,_s=Gl===Cr||Gl===Fi?Math.max(pr.minimum,ud[Ja.row+Uh]===0?pr.maximum:Math.min(ud[Ja.row+Uh],pr.maximum)):Math.max(pr.minimum,isNaN(pr.Hc)?pr.maximum:Math.min(pr.Hc,pr.maximum)),uh.height+=_s,Wu+=pr.minimum;for(var kc=1;kc<Ja.columnSpan&&!(Ja.column+kc>=a.columnCount);kc++)pr=a.Eb(Ja.column+kc),_s=0,_s=Gl===Cr||Gl===Ci?Math.max(pr.minimum,Sc[Ja.column+kc]===0?pr.maximum:Math.min(Sc[Ja.column+kc],pr.maximum)):Math.max(pr.minimum,isNaN(pr.Hc)?pr.maximum:Math.min(pr.Hc,pr.maximum)),uh.width+=_s,yv+=pr.minimum;nl.width+=uh.width,nl.height+=uh.height;var Ug=Ja.margin,wf=Ug.right+Ug.left,Mm=Ug.top+Ug.bottom;Ja.measure(nl.width,nl.height,yv,Wu);for(var Hg=Ja.measuredBounds,Ed=Math.max(Hg.width+wf,0),Jf=Math.max(Hg.height+Mm,0),Cf=0,zg=0;zg<Ja.rowSpan&&!(Ja.row+zg>=a.rowCount);zg++)pr=a.Fb(Ja.row+zg),Cf+=pr.total||0;if(Cf<Jf){var Hh=Jf-Cf,Gd=Jf-Cf;if(Ja.spanAllocation!==null)for(var zh=Ja.spanAllocation,ch=0;ch<Ja.rowSpan&&!(0>=Hh)&&!(Ja.row+ch>=a.rowCount);ch++){pr=a.Fb(Ja.row+ch);var Gh=pr.oa||0,qf=zh(Ja,pr,Gd);pr.actual=Math.min(pr.maximum,Gh+qf),pr.oa!==Gh&&(Hh-=pr.oa-Gh)}for(;0<Hh;){var cd=pr.oa||0;if(isNaN(pr.height)&&pr.maximum>cd&&(pr.actual=Math.min(pr.maximum,cd+Hh),pr.oa!==cd&&(Hh-=pr.oa-cd)),pr.index===0)break;pr=a.Fb(pr.index-1)}}for(var jp=0,jh=0;jh<Ja.columnSpan&&!(Ja.column+jh>=a.columnCount);jh++)pr=a.Eb(Ja.column+jh),jp+=pr.total||0;if(jp<Ed){var Vp=Ed-jp,tS=Ed-jp;if(Ja.spanAllocation!==null)for(var dh=Ja.spanAllocation,$f=0;$f<Ja.columnSpan&&!(0>=Vp)&&!(Ja.column+$f>=a.columnCount);$f++){pr=a.Eb(Ja.column+$f);var Om=pr.oa||0,nS=dh(Ja,pr,tS);pr.actual=Math.min(pr.maximum,Om+nS),pr.oa!==Om&&(Vp-=pr.oa-Om)}for(;0<Vp;){var Sv=pr.oa||0;if(isNaN(pr.width)&&pr.maximum>Sv&&(pr.actual=Math.min(pr.maximum,Sv+Vp),pr.oa!==Sv&&(Vp-=pr.oa-Sv)),pr.index===0)break;pr=a.Eb(pr.index-1)}}}}Hr(Bt),cn.free(uh),cn.free(nl),ud!==void 0&&Hr(ud),Sc!==void 0&&Hr(Sc);var Wp=0,Zp=0,bv=a.desiredSize,eE=a.maxSize;Gl=_l(a,!0);var Fm=ah=Hd=0,Bm=0;z=a.columnCount;for(var Ev=0;Ev<z;Ev++)Dr[Ev]!==void 0&&(pr=a.Eb(Ev),isFinite(pr.width)?(Fm+=pr.width,Fm+=pr.Wc()):t0(pr)===Yg?(Fm+=pr.oa,Fm+=pr.Wc()):pr.oa!==0&&(Hd+=pr.oa,Hd+=pr.Wc()));isFinite(bv.width)?Wp=Math.min(bv.width,eE.width):Wp=Gl!==mr&&isFinite(y)?y:Hd,Wp=Math.max(Wp,a.minSize.width),Wp=Math.max(Wp-Fm,0);for(var HE=Hd===0?1:Math.max(Wp/Hd,1),xv=0;xv<z;xv++)Dr[xv]!==void 0&&(pr=a.Eb(xv),isFinite(pr.width)||t0(pr)===Yg||(pr.actual=pr.oa*HE),pr.position=x.width,pr.oa!==0&&(x.width+=pr.oa,x.width+=pr.Wc()));z=a.rowCount;for(var wv=0;wv<z;wv++)di[wv]!==void 0&&(pr=a.Fb(wv),isFinite(pr.height)?(Bm+=pr.height,Bm+=pr.Wc()):t0(pr)===Yg?(Bm+=pr.oa,Bm+=pr.Wc()):pr.oa!==0&&(ah+=pr.oa,ah+=pr.Wc()));isFinite(bv.height)?Zp=Math.min(bv.height,eE.height):Zp=Gl!==mr&&isFinite(b)?b:ah,Zp=Math.max(Zp,a.minSize.height),Zp=Math.max(Zp-Bm,0);for(var zE=ah===0?1:Math.max(Zp/ah,1),Cv=0;Cv<z;Cv++)di[Cv]!==void 0&&(pr=a.Fb(Cv),isFinite(pr.height)||t0(pr)===Yg||(pr.actual=pr.oa*zE),pr.position=x.height,pr.oa!==0&&(x.height+=pr.oa,x.height+=pr.Wc()));z=ie.length;for(var rS=0;rS<z;rS++){var _m=ie[rS],iS=0,oS=0;_m.type===Nr.TableRow?(iS=x.width,pr=a.Fb(_m.row),oS=pr.actual):(pr=a.Eb(_m.column),iS=pr.actual,oS=x.height),_m.measuredBounds.h(0,0,iS,oS),Tt(_m,!1)}Hr(ie),a.inRowsCols=Je},Wm.prototype.arrange=function(a,y,b){var E=y.length,x=a.padding,z=x.left;x=x.top;var ne=a.inRowsCols;if(ne!==null){for(var ie,se,de=ne.length,pe=0,Se=0;Se<de;Se++)ne[Se]&&(pe=Math.max(pe,ne[Se].length));se=a.rowDefs,ie=a.colDefs;var Ne=Se=0,Oe=Math.min(a.topIndex,de-1);if(0<se.length){for(;Oe!==de&&(se[Oe]===void 0||se[Oe].oa===0);)Oe++;Oe=Math.max(Math.min(Oe,de-1),0),Se=-se[Oe].position}var He=Math.min(a.leftIndex,pe-1);if(0<ie.length){for(;He!==pe&&(ie[He]===void 0||ie[He].oa===0);)He++;He=Math.max(Math.min(He,pe-1),0),Ne=-ie[He].position}for(var Je=0,xt=0;Je!==de&&se[Je]===void 0;)Je++;for(;xt!==de&&ie[xt]===void 0;)xt++;pe=a.part,a.Fb(Je),a.Eb(xt);for(var yt=0;yt<y.length;yt++){var Rt=y[yt];if(Rt instanceof Nr&&Rt.visible&&Ph(Rt)){if(Rt.type===Nr.TableRow){ie=a.Fb(Rt.row);var Bt=a.Eb(xt)}else ie=a.Fb(Je),Bt=a.Eb(Rt.column);se=ie.position+Se+x,ie.oa!==0&&(se+=ie.Io(Math.max(Je,Oe))),ie=Bt.position+Ne+z,Bt.oa!==0&&(ie+=Bt.Io(Math.max(xt,He))),Bt=Rt.measuredBounds,Rt.Uk(),Rt.actualBounds.ka();var Gt=Rt.actualBounds,$t=An.allocAt(Gt.x,Gt.y,Gt.width,Gt.height);Gt.x=Rt.type===Nr.TableRow?z:ie,Gt.y=Rt.type===Nr.TableColumn?x:se,Gt.width=Bt.width,Gt.height=Bt.height,Rt.actualBounds.freeze(),Kt(Rt,!1),ho($t,Gt)||pe===null||(pe.oh(),Rt.Pn(pe)),An.free($t)}}for(yt=cn.alloc(),Rt=0;Rt<de;Rt++)if(ne[Rt]){for(pe=ne[Rt].length,Bt=a.Fb(Rt),se=Bt.position+Se+x,Bt.oa!==0&&(se+=Bt.Io(Math.max(Je,Oe))),Gt=0;Gt<pe;Gt++)if(ne[Rt][Gt]){$t=a.Eb(Gt),ie=$t.position+Ne+z,$t.oa!==0&&(ie+=$t.Io(Math.max(xt,He)));for(var In=ne[Rt][Gt],qr=In.length,yi=0;yi<qr;yi++){var di=In[yi],Dr=di.measuredBounds;yt.h(0,0);for(var pr=1;pr<di.rowSpan&&!(Rt+pr>=a.rowCount);pr++){var qi=a.Fb(Rt+pr);qi.oa!==0&&(yt.height+=qi.total)}for(pr=1;pr<di.columnSpan&&!(Gt+pr>=a.columnCount);pr++)qi=a.Eb(Gt+pr),qi.oa!==0&&(yt.width+=qi.total);var ji=$t.oa+yt.width,Uo=Bt.oa+yt.height;pr=ie,qi=se;var fa=ji,Bs=Uo,zs=ie,Hl=se,_s=ji,Oh=Uo;ie+ji>b.width&&(_s=Math.max(b.width-ie,0)),se+Uo>b.height&&(Oh=Math.max(b.height-se,0));var cs=di.alignment;if(cs.Xb()){cs=a.defaultAlignment,cs.sb()||(cs=uo);var ad=cs.x,zl=cs.y,Fh=cs.offsetX;cs=cs.offsetY;var ac=$t.alignment,Nc=Bt.alignment;ac.sb()&&(ad=ac.x,Fh=ac.offsetX),Nc.sb()&&(zl=Nc.y,cs=Nc.offsetY)}else ad=cs.x,zl=cs.y,Fh=cs.offsetX,cs=cs.offsetY;(isNaN(ad)||isNaN(zl))&&(zl=ad=.5,cs=Fh=0),ac=Dr.width,Nc=Dr.height;var Gu=di.margin,Iu=Gu.left+Gu.right,vf=Gu.top+Gu.bottom,sd=wc(di,Bt,$t,!1);!isNaN(di.desiredSize.width)||sd!==Cr&&sd!==Ci||(ac=Math.max(ji-Iu,0)),!isNaN(di.desiredSize.height)||sd!==Cr&&sd!==Fi||(Nc=Math.max(Uo-vf,0)),ji=di.maxSize,Uo=di.minSize,ac=Math.min(ji.width,ac),Nc=Math.min(ji.height,Nc),ac=Math.max(Uo.width,ac),Nc=Math.max(Uo.height,Nc),ji=Nc+vf,pr+=fa*ad-(ac+Iu)*ad+Fh+Gu.left,qi+=Bs*zl-ji*zl+cs+Gu.top,di.visible&&(ia(zs,Hl,_s,Oh,pr,qi,Dr.width,Dr.height)?di.arrange(pr,qi,ac,Nc):di.arrange(pr,qi,ac,Nc,new An(zs,Hl,_s,Oh)))}}}for(cn.free(yt),a=0;a<E;a++)b=y[a],z=b instanceof Nr?b:null,z!==null&&Ph(z)&&(z=b.actualBounds,b.naturalBounds.ka(),b.naturalBounds.h(0,0,z.width,z.height),b.naturalBounds.freeze())}};function Zm(){this.xa="Base"}hn(Zm,Ls),Zm.prototype.measure=function(){},Zm.prototype.arrange=function(){};function Km(){this.xa="Base"}hn(Km,Ls),Km.prototype.measure=function(){},Km.prototype.arrange=function(){};function Ym(){this.xa="Base"}hn(Ym,Ls),Ym.prototype.measure=function(a,y,b,E,x,z,ne){1<E.length&&kt("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ne);var ie=E.measuredBounds,se=E.margin,de=se.right+se.left;if(se=se.top+se.bottom,isFinite(y)||isFinite(b)){var pe=E.scale,Se=ie.width;ie=ie.height;var Ne=Math.max(y-de,0),Oe=Math.max(b-se,0),He=1;a.viewboxStretch===bi?Se!==0&&ie!==0&&(He=Math.min(Ne/Se,Oe/ie)):Se!==0&&ie!==0&&(He=Math.max(Ne/Se,Oe/ie)),He===0&&(He=1e-4),E.Ca*=He,pe!==E.scale&&(Tt(E,!0),E.measure(1/0,1/0,z,ne))}ie=E.measuredBounds,x.width=isFinite(y)?y:Math.max(ie.width+de,0),x.height=isFinite(b)?b:Math.max(ie.height+se,0)},Ym.prototype.arrange=function(a,y,b){y=y[0];var E=y.measuredBounds,x=y.margin,z=Math.max(E.width+(x.right+x.left),0);x=Math.max(E.height+(x.top+x.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=uo),y.arrange(b.width*ne.x-z*ne.x+ne.offsetX,b.height*ne.y-x*ne.y+ne.offsetY,E.width,E.height)};function Wg(){this.xa="Base"}hn(Wg,Ls),Wg.prototype.measure=function(){},Wg.prototype.arrange=function(){},Wg.prototype.gc=function(a,y,b){b=a.Df()*b.scale,0>=b&&(b=1);var E=a.gridCellSize,x=E.width;E=E.height;var z=a.naturalBounds,ne=a.actualBounds,ie=z.width,se=z.height,de=Math.ceil(ie/x),pe=Math.ceil(se/E),Se=a.gridOrigin,Ne=Se.x;Se=Se.y,y.save(),y.beginPath(),y.rect(0,0,ie,se),y.clip(),y.Se();for(var Oe=[],He=a.O.s,Je=He.length,xt=0;xt<Je;xt++){var yt=He[xt],Rt=[];if(Oe.push(Rt),yt.visible){var Bt=yt.interval;if(!(0>Bt)){yt=Nv(yt.figure);for(var Gt=0;Gt<Je;Gt++)if(Gt!==xt){var $t=He[Gt];$t.visible&&Nv($t.figure)===yt&&($t=$t.interval,$t>Bt&&Rt.push($t))}}}}for(He=a.O.s,Je=He.length,xt=0;xt<Je;xt++){var In=He[xt];if(In.visible&&(Rt=In.interval||1,yt=Math.abs(Rt),!(2>x*yt*b))){if(Bt=In.segmentIndex,(!isFinite(Bt)||isNaN(Bt))&&(Bt=0),0>Bt&&(Bt=yt-Math.min(-Bt,yt)),Bt=Math.round(Bt%yt),yt=In.opacity,Gt=1,yt!==1){if(yt===0)continue;Gt=y.globalAlpha,y.globalAlpha=Gt*yt}$t=Oe[xt];var qr=!1,yi=In.strokeDashArray;if(yi!==null&&(qr=!0,y.js(yi,In.strokeDashOffset)),In.figure==="LineV"&&In.stroke!==null&&0<In.strokeWidth){for(y.lineWidth=In.strokeWidth,Ra(a,y,In.stroke,!1,!1,z,ne),y.beginPath(),yi=In=Math.floor((Ne-x)/x);yi<=In+de;yi++){var di=yi*x+Ne;0<=di&&di<=ie&&Xm(yi,Rt,Bt,$t)&&(y.moveTo(di,0),y.lineTo(di,se))}y.stroke(),y.Se()}else if(In.figure==="LineH"&&In.stroke!==null&&0<In.strokeWidth){for(y.lineWidth=In.strokeWidth,Ra(a,y,In.stroke,!1,!1,z,ne),y.beginPath(),yi=In=Math.floor((Se-E)/E);yi<=In+pe;yi++)di=yi*E+Se,0<=di&&di<=se&&Xm(yi,Rt,Bt,$t)&&(y.moveTo(0,di),y.lineTo(ie,di));y.stroke(),y.Se()}else if(In.figure==="BarV"&&In.fill!==null)for(Ra(a,y,In.fill,!0,!1,z,ne),In=In.width,isNaN(In)&&(In=x),di=yi=Math.floor((Ne-x)/x);di<=yi+de;di++){var Dr=di*x+Ne;0<=Dr+In&&Dr<=ie&&Xm(di,Rt,Bt,$t)&&y.fillRect(Dr,0,In,se)}else if(In.figure==="BarH"&&In.fill!==null)for(Ra(a,y,In.fill,!0,!1,z,ne),In=In.height,isNaN(In)&&(In=E),di=yi=Math.floor((Se-E)/E);di<=yi+pe;di++)Dr=di*E+Se,0<=Dr+In&&Dr<=se&&Xm(di,Rt,Bt,$t)&&y.fillRect(0,Dr,ie,In);qr&&y.fs(),yt!==1&&(y.globalAlpha=Gt)}}y.restore(),y.Vc(!1)};function Xm(a,y,b,E){if(0>y)return a%y===b;if(a%y!==b)return!1;y=E.length;for(var x=0;x<y;x++)if(a%E[x]===b)return!1;return!0}function Qm(){this.xa="Base"}hn(Qm,Ls),Qm.prototype.measure=function(a,y,b,E,x){var z=E.length;if(a instanceof _o||a instanceof Mr){var ne=null,ie=null;if(a instanceof Mr&&(ne=a),a instanceof _o&&(ie=a,ne=ie.adornedPart,a.j===null&&(a.j=[])),ne instanceof Mr){var se=ne;if(z===0)so(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var de=a instanceof _o?null:ne.path;y=ne.routeBounds,b=a.jg,b.h(0,0,y.width,y.height);var pe=se.points,Se=ne.pointsCount;ie!==null?ie.Ul(!1):ne!==null&&ne.Ul(!1),ie=y.width;var Ne=y.height,Oe=a.j;if(Oe.length=0,de!==null){uS(a,ie,Ne,de);var He=de.measuredBounds;b.ed(He),Oe.push(He)}He=Ui.alloc();for(var Je=rt.alloc(),xt=rt.alloc(),yt=0;yt<z;yt++){var Rt=E[yt];if(Rt!==de)if(Rt.isPanelMain&&Rt instanceof ro){uS(a,ie,Ne,Rt);var Bt=Rt.measuredBounds;b.ed(Bt),Oe.push(Bt)}else if(2>Se)Rt.measure(1/0,1/0,0,0),Bt=Rt.measuredBounds,b.ed(Bt),Oe.push(Bt);else{var Gt=Rt.segmentIndex,$t=Rt.segmentFraction,In=Rt.alignmentFocus;In.Mc()&&(In=uo);var qr=Rt.segmentOrientation,yi=Rt.segmentOffset;if(isNaN(Gt)){var di=se.ua;Bt=Jr(),di.Qu($t,Bt);var Dr=rt.allocAt(Bt[0],Bt[1]);if(Dr.add(se.i(0)),di.type===Lr.j?Dr.offset(-di.startX,-di.startY):(di=di.figures.first(),di!==null&&Dr.offset(-di.startX,-di.startY)),di=Bt[2],qr!==Jl){var pr=se.computeAngle(Rt,qr,di);Rt.Kb=pr}pr=Dr.x-y.x;var qi=Dr.y-y.y;rt.free(Dr),Hr(Bt)}else if(Gt<-Se||Gt>=Se)Bt=rt.alloc(),se.vg(),se.computeMidPoint(Bt),di=se.midAngle,qr!==Jl&&(pr=se.computeAngle(Rt,qr,di),Rt.Kb=pr),pr=Bt.x-y.x,qi=Bt.y-y.y,rt.free(Bt);else{if(pr=0,0<=Gt?(qi=pe.M(Gt),Bt=Gt<Se-1?pe.M(Gt+1):qi):(pr=Se+Gt,qi=pe.M(pr),Bt=0<pr?pe.M(pr-1):qi),qi.Xa(Bt)){0<=Gt?(di=0<Gt?pe.M(Gt-1):qi,pr=Gt<Se-2?pe.M(Gt+2):Bt):(di=pr<Se-1?pe.M(pr+1):qi,pr=1<pr?pe.M(pr-2):Bt),Dr=di.Bf(qi);var ji=Bt.Bf(pr);di=Dr>ji+10?0<=Gt?di.ab(qi):qi.ab(di):ji>Dr+10?0<=Gt?Bt.ab(pr):pr.ab(Bt):0<=Gt?di.ab(pr):pr.ab(di)}else di=0<=Gt?qi.ab(Bt):Bt.ab(qi);qr!==Jl&&(pr=se.computeAngle(Rt,qr,di),Rt.Kb=pr),pr=qi.x+(Bt.x-qi.x)*$t-y.x,qi=qi.y+(Bt.y-qi.y)*$t-y.y}Rt.measure(1/0,1/0,0,0),Bt=Rt.measuredBounds,Dr=Rt.naturalBounds;var Uo=0;Rt instanceof ro&&(Uo=Rt.strokeWidth),ji=Dr.width+Uo;var fa=Dr.height+Uo;He.reset(),He.translate(-Bt.x,-Bt.y),He.scale(Rt.scale,Rt.scale),He.rotate(qr===Jl?Rt.angle:di,ji/2,fa/2),qr!==im&&qr!==am||He.rotate(90,ji/2,fa/2),qr!==om&&qr!==sm||He.rotate(-90,ji/2,fa/2),qr===T0&&(45<di&&135>di||225<di&&315>di)&&He.rotate(-di,ji/2,fa/2),Dr=new An(0,0,ji,fa),Je.xi(Dr,In),He.Ga(Je),In=-Je.x+Uo/2*Rt.scale,Rt=-Je.y+Uo/2*Rt.scale,xt.assign(yi),Uo=isNaN(yi.x);var Bs=isNaN(yi.y);if(Uo||Bs){ji=ji/2+3,fa=fa/2+3;var zs=45<=di&&135>=di,Hl=225<=di&&315>=di;qr===Jl&&(zs||Hl)?(xt.x=Bs?ji:yi.y,xt.y=Uo?fa:yi.x,zs?0<=Gt||isNaN(Gt)&&.5>$t||!Uo||(xt.y=-fa):Hl&&((0<=Gt||isNaN(Gt)&&.5>$t)&&Uo&&(xt.y=-fa),Bs&&(xt.x=-ji))):(Uo&&(xt.x=0<=Gt||isNaN(Gt)&&.5>$t?ji:-ji),Bs&&(xt.y=-fa),xt.rotate(di))}else xt.rotate(di);pr+=xt.x,qi+=xt.y,Dr.set(Bt),Dr.h(pr+In,qi+Rt,Bt.width,Bt.height),Oe.push(Dr),b.ed(Dr)}}if(ne!==null)for(E=ne.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=b,a.position.h(y.x+b.x,y.y+b.y),so(x,b.width||0,b.height||0),Ui.free(He),rt.free(Je),rt.free(xt)}}}},Qm.prototype.arrange=function(a,y){var b=y.length;if(a instanceof _o||a instanceof Mr){var E=a,x=null;a instanceof _o&&(x=a,E=x.adornedPart);var z=a instanceof _o?null:E.path,ne=a.j;if(ne.length!==0){var ie=0;if(z!==null&&ie<ne.length){var se=ne[ie];ie++,z.arrange(se.x-a.jg.x,se.y-a.jg.y,se.width,se.height)}for(se=0;se<b;se++){var de=y[se];if(de!==z&&ie<ne.length){var pe=ne[ie];ie++,de.arrange(pe.x-a.jg.x,pe.y-a.jg.y,pe.width,pe.height)}}}if(y=E.points,b=y.count,2<=b&&a instanceof Mr)for(z=a.labelNodes;z.next();){var Se=a;ne=z.value,ie=ne.segmentIndex,se=ne.segmentFraction;var Ne=ne.alignmentFocus;if(de=ne.segmentOrientation,pe=ne.segmentOffset,isNaN(ie)){var Oe=Se.ua,He=Jr();Oe.Qu(se,He);var Je=rt.allocAt(He[0],He[1]);Je.add(Se.i(0)),Oe.type===Lr.j||(Oe=Oe.figures.first()),Je.offset(-Oe.startX,-Oe.startY),Oe=He[2],de!==Jl&&(Se=Se.computeAngle(ne,de,Oe),ne.angle=Se),Se=Je.x;var xt=Je.y;rt.free(Je),Hr(He)}else if(ie<-b||ie>=b)He=rt.alloc(),Oe=Se,xt=He,Oe.vg(),Oe.computeMidPoint(xt),Oe=Se.midAngle,de!==Jl&&(Se=Se.computeAngle(ne,de,Oe),ne.angle=Se),Se=He.x,xt=He.y,rt.free(He);else{if(Je=0,0<=ie?(He=y.s[ie],xt=ie<b-1?y.s[ie+1]:He):(Je=b+ie,He=y.s[Je],xt=0<Je?y.s[Je-1]:He),He.Xa(xt)){0<=ie?(Oe=0<ie?y.s[ie-1]:He,Je=ie<b-2?y.s[ie+2]:xt):(Oe=Je<b-1?y.s[Je+1]:He,Je=1<Je?y.s[Je-2]:xt);var yt=Oe.Bf(He),Rt=xt.Bf(Je);Oe=yt>Rt+10?0<=ie?Oe.ab(He):He.ab(Oe):Rt>yt+10?0<=ie?xt.ab(Je):Je.ab(xt):0<=ie?Oe.ab(Je):Je.ab(Oe)}else Oe=0<=ie?He.ab(xt):xt.ab(He);de!==Jl&&(Se=Se.computeAngle(ne,de,Oe),ne.angle=Se),Se=He.x+(xt.x-He.x)*se,xt=He.y+(xt.y-He.y)*se}if(Ne.ys())ne.location=new rt(Se,xt);else{Ne.Mc()&&(Ne=uo),He=Ui.alloc(),He.reset(),He.scale(ne.scale,ne.scale),He.rotate(ne.angle,0,0);var Bt=ne.naturalBounds;Je=An.allocAt(0,0,Bt.width,Bt.height),yt=rt.alloc(),yt.xi(Je,Ne),He.Ga(yt),Ne=-yt.x,Rt=-yt.y;var Gt=Bt.width,$t=Bt.height;Bt=rt.alloc(),Bt.assign(pe);var In=isNaN(pe.x),qr=isNaN(pe.y);if(In||qr){Gt=Gt/2+3,$t=$t/2+3;var yi=45<=Oe&&135>=Oe,di=225<=Oe&&315>=Oe;de===Jl&&(yi||di)?(Bt.x=qr?Gt:pe.y,Bt.y=In?$t:pe.x,yi?0<=ie||isNaN(ie)&&.5>se||!In||(Bt.y=-$t):di&&((0<=ie||isNaN(ie)&&.5>se)&&In&&(Bt.y=-$t),qr&&(Bt.x=-Gt))):(In&&(Bt.x=0<=ie||isNaN(ie)&&.5>se?Gt:-Gt),qr&&(Bt.y=-$t),Bt.rotate(Oe))}else Bt.rotate(Oe);Se+=Bt.x,xt+=Bt.y,He.pp(Je),Ne+=Je.x,Rt+=Je.y,ie=rt.allocAt(Se+Ne,xt+Rt),ne.move(ie),rt.free(ie),rt.free(Bt),rt.free(yt),An.free(Je),Ui.free(He)}}x!==null?x.Ul(!1):E.Ul(!1),E=US(a),a.location.h(a.position.x+E.x,a.position.y+E.y),rt.free(E)}};function uS(a,y,b,E){if(Lt(E)!==!1){var x=E.strokeWidth;x===0&&a instanceof _o&&a.type===Nr.Link&&a.adornedObject instanceof ro&&(x=a.adornedObject.strokeWidth),x*=E.Ca,a instanceof Mr&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):a instanceof _o&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):E.Ge(-(x/2),-(x/2),y+x,b+x),x=E.desiredSize,x.w()||E.ua===null?E.dc.h(0,0,x.width,x.height):E.dc.assign(E.ua.bounds),Tt(E,!1)}}function Zg(){this.xa="Base"}hn(Zg,Ls),Zg.prototype.measure=function(a,y,b,E,x,z,ne){var ie=a.Pb();a.graduatedBounds=[];var se=ie.margin,de=se.right+se.left,pe=se.top+se.bottom;ie.measure(y,b,z,ne);var Se=ie.measuredBounds,Ne=new An(-se.left,-se.top,Math.max(Se.width+de,0),Math.max(Se.height+pe,0));a.graduatedBounds.push(Ne),x.assign(Ne);for(var Oe=ie.geometry,He=ie.strokeWidth,Je=Oe.flattenedSegments,xt=Oe.flattenedLengths,yt=Oe.flattenedTotalLength,Rt=Je.length,Bt=0,Gt=0,$t=Jr(),In=0;In<Rt;In++){var qr=Je[In],yi=[];Gt=Bt=0;for(var di=qr.length,Dr=0;Dr<di;Dr+=2){var pr=qr[Dr],qi=qr[Dr+1];if(Dr!==0){var ji=180*Math.atan2(qi-Gt,pr-Bt)/Math.PI;0>ji&&(ji+=360),yi.push(ji)}Bt=pr,Gt=qi}$t.push(yi)}if(a.graduatedIntervals===null){for(var Uo=[],fa=a.O.s,Bs=fa.length,zs=0;zs<Bs;zs++){var Hl=fa[zs],_s=[];if(Uo.push(_s),Hl.visible){var Oh=Hl.interval;if(!(0>Oh)){for(var cs=0;cs<Bs;cs++)if(cs!==zs){var ad=fa[cs];if(ad.visible&&Hl.constructor===ad.constructor){var zl=ad.interval;zl>Oh&&_s.push(zl)}}}}}a.graduatedIntervals=Uo}var Fh=a.graduatedIntervals,ac=a.O.s,Nc=ac.length,Gu=0,Iu=0,vf=yt;a.graduatedMarks=[];for(var sd,Dg=0;Dg<Nc;Dg++){var ju=ac[Dg];if(sd=[],ju.visible&&ju!==ie){var Gl=Math.abs(ju.interval),Im=a.graduatedTickUnit;if(!(2>Im*Gl*yt/a.graduatedRange&&ju.graduatedSkip===null)){var Up=xt[0][0],yd=0,Du=0;Iu=yt*ju.graduatedStart-1e-4,vf=yt*ju.graduatedEnd+1e-4;var Kf=Im*Gl,Vu=a.graduatedTickBase;if(Vu<a.graduatedMin){var yf=(a.graduatedMin-Vu)/Kf;yf=yf%1===0?yf:Math.floor(yf+1),Vu+=yf*Kf}else Vu>a.graduatedMin+Kf&&(Vu-=Math.floor((Vu-a.graduatedMin)/Kf)*Kf);for(var pv=Fh[Dg],Dm=Vu,$y=1e-6*a.graduatedMax,Hd=1;Vu<=a.graduatedMax+$y;Hd++){e:{for(var ah=pv.length,Hp=0;Hp<ah;Hp++){var Sf=(Vu-a.graduatedTickBase)%(pv[Hp]*a.graduatedTickUnit),Rg=1e-6*a.graduatedTickUnit;if(Sf<Rg&&Sf>-Rg){var bf=!1;break e}}bf=!0}if(bf&&(Vu>a.graduatedMax&&(Vu=a.graduatedMax),ju.graduatedSkip===null||ju instanceof ma&&!ju.graduatedSkip(Vu,ju)||ju instanceof ro&&!ju.graduatedSkip(Vu,ju))&&(Gu=(Vu-a.graduatedMin)*yt/a.graduatedRange,Gu>yt&&(Gu=yt),Iu<=Gu&&Gu<=vf)){for(var zd=$t[yd][Du],Bh=xt[yd][Du];yd<xt.length;){for(;Gu>Up&&Du<xt[yd].length-1;)Du++,zd=$t[yd][Du],Bh=xt[yd][Du],Up+=Bh;if(Gu<=Up)break;yd++,Du=0,zd=$t[yd][Du],Bh=xt[yd][Du],Up+=Bh}var Ru=Je[yd],Sd=Ru[2*Du],gv=Ru[2*Du+1],sh=(Gu-(Up-Bh))/Bh,Mg=new rt(Sd+(Ru[2*Du+2]-Sd)*sh+He/2-Oe.bounds.x,gv+(Ru[2*Du+3]-gv)*sh+He/2-Oe.bounds.y);Mg.scale(ie.scale,ie.scale);e:{var ld=zd,Yf=$t[yd];if(!(.5005>sh&&.4995<sh)){var bd=ld;if(.5>sh?0<Du?bd=Yf[Du-1]:an.$(Ru[0],Ru[Ru.length-2])&&an.$(Ru[1],Ru[Ru.length-1])&&(bd=Yf[Yf.length-1]):.5<sh&&(Du+1<Yf.length?bd=Yf[Du+1]:an.$(Ru[0],Ru[Ru.length-2])&&an.$(Ru[1],Ru[Ru.length-1])&&(bd=Yf[0])),ld!==bd){var zp=Math.abs(ld-bd);if(180<zp&&(ld<bd?ld+=360:bd+=360,zp=Math.abs(ld-bd)),5e-4>sh||.9995<sh){zd=(ld+bd)/2%360;break e}if(10>zp){var Og=1-Math.abs(.5-sh);zd=(ld*Og+bd*(1-Og))%360;break e}}}zd=ld}if(ju instanceof ma){var Gc="";ju.graduatedFunction!==null?(Gc=ju.graduatedFunction(Vu,ju),Gc=Gc!=null?Gc.toString():""):Gc=(+Vu.toFixed(2)).toString(),Gc!==""&&sd.push({$l:Mg,angle:zd,text:Gc})}else sd.push({$l:Mg,angle:zd})}Vu=Dm+Hd*Kf}}}a.graduatedMarks.push(sd)}Hr($t);var nl=a.graduatedMarks;if(nl!==null)for(var Rm=E.length,nu=0;nu<Rm;nu++){var ds=E[nu],ru=nl[nu];if(ds.visible&&ds!==ie&&ru.length!==0){if(ds instanceof ro){var lh=a,_h=x,Xf=ds.alignmentFocus;Xf.Mc()&&(Xf=ba);var eS=ds.angle;ds.Kb=0,ds.measure(1/0,1/0,0,0),ds.Kb=eS;var mv=ds.measuredBounds,Fg=mv.width,Qf=mv.height,Gp=An.allocAt(0,0,Fg,Qf),Mu=rt.alloc();Mu.xi(Gp,Xf),An.free(Gp);for(var uh=-Mu.x,ud=-Mu.y,Sc=new An,Ef=ru.length,Bg=0;Bg<Ef;Bg++)for(var xf=ru[Bg],vv=xf.$l.x,_g=xf.$l.y,Ja=xf.angle,jc=0;4>jc;jc++){switch(jc){case 0:Mu.h(uh,ud);break;case 1:Mu.h(uh+Fg,ud);break;case 2:Mu.h(uh,ud+Qf);break;case 3:Mu.h(uh+Fg,ud+Qf)}Mu.rotate(Ja+ds.angle),Mu.offset(vv,_g),Bg===0&&jc===0?Sc.h(Mu.x,Mu.y,0,0):Sc.Ye(Mu),Mu.offset(-vv,-_g),Mu.rotate(-Ja-ds.angle)}rt.free(Mu),lh.graduatedBounds!==null&&lh.graduatedBounds.push(Sc),Mo(_h,Sc.x,Sc.y,Sc.width,Sc.height)}else if(ds instanceof ma){var Lc=a,yv=x;Lc.temporaryTextBlock===null&&(Lc.temporaryTextBlock=new ma);var Wu=Lc.temporaryTextBlock;CS(Wu,ds);var Uh=ds.alignmentFocus;Uh.Mc()&&(Uh=ba);for(var kc=ds.segmentOrientation,Ug=ds.segmentOffset,wf=new An,Mm=0,Hg=0,Ed=0,Jf=0,Cf=0,zg=ru.length,Hh=0;Hh<zg;Hh++){var Gd=ru[Hh];Mm=Gd.$l.x,Hg=Gd.$l.y,Ed=Gd.angle,Cf=Jf=ds.angle,kc!==Jl&&(Cf=kc===rm||kc===P0?Ed+ds.angle:Ed,Jf=Mr.computeAngle(kc,Cf)),Wu.Kb=Jf,Wu.text=Gd.text||"",Wu.measure(1/0,1/0,0,0);var zh=Wu.measuredBounds,ch=Wu.naturalBounds,Gh=ch.width,qf=ch.height,cd=Ui.alloc();cd.reset(),cd.translate(-zh.x,-zh.y),cd.scale(Wu.scale,Wu.scale),cd.rotate(Cf,Gh/2,qf/2),kc!==im&&kc!==am||cd.rotate(90,Gh/2,qf/2),kc!==om&&kc!==sm||cd.rotate(-90,Gh/2,qf/2),kc===T0&&(45<Ed&&135>Ed||225<Ed&&315>Ed)&&cd.rotate(-Ed,Gh/2,qf/2);var jp=An.allocAt(0,0,Gh,qf),jh=rt.alloc();jh.xi(jp,Uh),cd.Ga(jh);var Vp=-jh.x,tS=-jh.y,dh=rt.alloc();dh.assign(Ug),isNaN(dh.x)&&(dh.x=Gh/2+3),isNaN(dh.y)&&(dh.y=-(qf/2+3)),dh.rotate(Ed),Mm+=dh.x+Vp,Hg+=dh.y+tS;var $f=new An(Mm,Hg,zh.width,zh.height),Om=new An(zh.x,zh.y,zh.width,zh.height),nS=new An(ch.x,ch.y,ch.width,ch.height);Gd.Sz=Jf,Gd.lineCount=Wu.lineCount,Gd.lines=[Wu.Cb,Wu.Ih,Wu.df,Wu.Le,Wu.Qc,Wu.Qb,Wu.ze],Gd.actualBounds=$f,Gd.measuredBounds=Om,Gd.naturalBounds=nS,Hh===0?wf.assign($f):wf.ed($f),rt.free(dh),rt.free(jh),An.free(jp),Ui.free(cd)}Lc.graduatedBounds!==null&&Lc.graduatedBounds.push(wf),Mo(yv,wf.x,wf.y,wf.width,wf.height)}Tt(ds,!1)}}},Zg.prototype.arrange=function(a,y,b){if(a.graduatedBounds!==null){var E=a.Pb(),x=a.graduatedMarks;if(x!==null){var z=a.graduatedBounds,ne=0,ie=z[ne];ne++,E!==null&&E.arrange(ie.x-b.x,ie.y-b.y,ie.width,ie.height);for(var se=y.length,de=0;de<se;de++){var pe=y[de];ie=x[de],pe.visible&&pe!==E&&ie.length!==0&&(ie=z[ne],ne++,pe.arrange(ie.x-b.x,ie.y-b.y,ie.width,ie.height))}a.graduatedBounds=null}}},Zg.prototype.gc=function(a,y,b){var E=b.$i;b.$i=!0;var x=a.naturalBounds,z=x.width,ne=x.height;x=y instanceof Go,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ne+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,b),ne=a.Df()*b.scale,0>=ne&&(ne=1);for(var ie=z.actualBounds,se=a.O.s,de=a.graduatedMarks,pe=se.length,Se=0;Se<pe;Se++){var Ne=se[Se],Oe=de[Se],He=Oe.length;if(Ne.visible&&Ne!==z&&Oe.length!==0){if(Ne instanceof ro){if(!(2>a.graduatedTickUnit*Ne.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ne.graduatedSkip===null)){var Je=Ne.measuredBounds,xt=Ne.strokeWidth*Ne.scale,yt=Ne.alignmentFocus;yt.Mc()&&(yt=ba);for(var Rt=0;Rt<He;Rt++){var Bt=Oe[Rt].$l,Gt=Oe[Rt].angle,$t=yt,In=Ne.Ab;In.reset(),In.translate(Bt.x+ie.x,Bt.y+ie.y),In.rotate(Gt+Ne.angle,0,0),In.translate(-Je.width*$t.x+$t.offsetX+xt/2,-Je.height*$t.y+$t.offsetY+xt/2),In.scale(Ne.scale,Ne.scale),je(Ne,!1),Ne.wh.set(Ne.Ab),Ne.Kk=Ne.scale,ut(Ne,!1),Ne.gc(y,b),x&&(a.svg.appendChild(Ne.svg),Ne.svg=null),Ne.Ab.reset()}}}else if(Ne instanceof ma)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ma),Je=a.temporaryTextBlock,CS(Je,Ne),xt=0;xt<He;xt++)yt=Oe[xt],yt.actualBounds&&yt.measuredBounds&&yt.naturalBounds&&(Je.ec=yt.text||"",Je.Kb=yt.Sz||0,Je.Gc=yt.lineCount||0,Rt=yt.lines,Rt!==void 0&&(Je.Cb=Rt[0],Je.Ih=Rt[1],Je.df=Rt[2],Je.Le=Rt[3],Je.Qc=Rt[4],Je.Qb=Rt[5],Je.ze=Rt[6]),yt.naturalBounds&&(Je.dc=yt.naturalBounds),yt.actualBounds&&(Rt=yt.actualBounds,Je.arrange(Rt.x,Rt.y,Rt.width,Rt.height)),Rt=yt.actualBounds,Je.arrange(Rt.x,Rt.y,Rt.width,Rt.height),Bt=yt.measuredBounds,yt=yt.naturalBounds,Gt=Je.Ab,Gt.reset(),Gt.translate(Rt.x+ie.x,Rt.y+ie.y),Gt.translate(-Bt.x,-Bt.y),Je.no(Gt,yt.x,yt.y,yt.width,yt.height),je(Je,!1),Je.wh.set(Je.Ab),Je.Kk=Je.scale,ut(Je,!1),Je.Ng=Ne.part,Je.Me=Ne.panel,Je.gc(y,b),Je.Me=null,Je.Ng=null,x&&(a.svg.appendChild(Je.svg),Je.svg=null))}}b.$i=E,y.restore(),y.Vc(!0)};function Nr(a,y){if(tn.call(this),this.na=null,a===void 0)this.na=Nr.Position;else if(typeof a=="string"){var b=Fc.I(a);b!==null&&(this.na=b)}else a instanceof Ls?this.na=a:a&&(this.na=Nr.Position,y=a);this.na===null&&kt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Nr.Grid?1048576:0),this.O=new rr,this.yb=is,this.Tm=ts,this.Uf=Ji,this.$g=null,this.$e="",this.jg=new An(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=bi,this.jn=gi,this.kn=jr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}hn(Nr,tn),Nr.prototype.cloneProtected=function(a){tn.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},Nr.prototype.Af=function(a){tn.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,b=y.length,E=0;E<b;E++)y[E].Me=a;a.$g=null},Nr.prototype.copy=function(){var a=tn.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E].copy();x.wi(a),x.Ng=null;var z=a.O,ne=z.count;if(z.Gb(ne,x),z=a.part,z!==null){z.Rh=null,x.portId!==null&&z instanceof ii&&(z.Te=!0);var ie=a.diagram;ie!==null&&ie.undoManager.isUndoingRedoing||z.cb(Ta,"elements",a,null,x,null,ne)}}return a}return null},Me=Nr.prototype,Me.toString=function(){return"Panel("+this.type.name+")#"+Mi(this)},Me.Pn=function(a){tn.prototype.Pn.call(this,a);for(var y=this.O.s,b=y.length,E=0;E<b;E++)y[E].Pn(a)},Me.hh=function(a,y){if(this.na===Nr.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Nr.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Nr.Table)if(a.yc(),a instanceof Go){var b=a.yd;a.yd=nc(a,"gojs-ts"),Av(this,a),a.nh.pop(),a.yd=b}else Av(this,a);(b=this.isClipping&&this.na===Nr.Spot)&&a.save();for(var E=this.Pb(),x=this.O.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];b&&ie===E&&(a.clipInsteadOfFill=!0),ie.gc(a,y),b&&ie===E&&(a.clipInsteadOfFill=!1)}b&&(a.restore(),a.Vc(!0))}};function Av(a,y){y.lineCap="butt";var b=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;b!==null&&Jm(a,y,!0,b,!0),E!==null&&Jm(a,y,!1,E,!0),b!==null&&cS(a,y,!0,b),E!==null&&cS(a,y,!1,E),b!==null&&Jm(a,y,!0,b,!1),E!==null&&Jm(a,y,!1,E,!1)}function cS(a,y,b,E){for(var x=E.length,z=a.actualBounds,ne=a.naturalBounds,ie=!0,se=0;se<x;se++){var de=E[se];if(de!==void 0&&de.actual!==0)if(ie)ie=!1;else{if(b){if(de.position>ne.height)continue}else if(de.position>ne.width)continue;var pe=de.separatorStrokeWidth;isNaN(pe)&&(pe=b?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Se=de.separatorStroke;if(Se===null&&(Se=b?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),pe!==0&&Se!==null){Ra(a,y,Se,!1,!1,ne,z),Se=!1;var Ne=de.separatorDashArray;Ne===null&&(Ne=b?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ne!==null&&(Se=!0,y.js(Ne,0)),y.beginPath(),Ne=de.position+pe,b?Ne>ne.height&&(pe-=Ne-ne.height):Ne>ne.width&&(pe-=Ne-ne.width),de=de.position+pe/2,y.lineWidth=pe,pe=a.yb,b?(de+=pe.top,Ne=ne.width-pe.right,y.moveTo(pe.left,de),y.lineTo(Ne,de)):(de+=pe.left,Ne=ne.height-pe.bottom,y.moveTo(de,pe.top),y.lineTo(de,Ne)),y.stroke(),y.Se(),Se&&y.fs()}}}}function Jm(a,y,b,E,x){for(var z=E.length,ne=a.actualBounds,ie=a.naturalBounds,se=dS(a,!0),de=dS(a,!1),pe=0;pe<z;pe++){var Se=E[pe];if(Se!==void 0&&Se.background!==null&&Se.coversSeparators!==x&&Se.actual!==0){var Ne=b?ne.height:ne.width;if(!(Se.position>Ne)){var Oe=Se.Wc(),He=Se.separatorStrokeWidth;isNaN(He)&&(He=b?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Je=Se.separatorStroke;Je===null&&(Je=b?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Je===null||Se.index===(b?se:de))&&(He=0),Oe-=He,He=Se.position+He,Oe+=Se.actual,He+Oe>Ne&&(Oe=Ne-He),0>=Oe||(Ne=a.yb,Ra(a,y,Se.background,!0,!1,ie,ne),b?y.fillRect(Ne.left,He+Ne.top,ne.width-(Ne.left+Ne.right),Oe):y.fillRect(He+Ne.left,Ne.top,Oe,ne.height-(Ne.top+Ne.bottom)))}}}}function dS(a,y){for(var b=y?a.rowCount:a.columnCount,E=0;E<b;E++){var x=y?a.rowDefs[E]:a.colDefs[E];if(x!==void 0)return x.index}return 0}function Nv(a){return a==="LineV"||a==="BarV"}Me.lv=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].lv();this.Uc=!0},Me.kk=function(a,y,b){if(!tn.prototype.kk.call(this,a,y,b))return!1;if(this.type===Nr.Table)b=this.svg.getElementsByClassName("gojs-ts"),b=b.length!==0?b[0]:null,b!==null&&(b.innerHTML=""),a.yd=b,Av(this,a),a.yd=null;else if(this.na===Nr.Grid||this.na===Nr.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;b=this.O.s;for(var E=b.length,x=0;x<E;x++)b[x].gc(a,y);return!0},Me.nk=function(){return!0},Me.$o=function(a,y,b,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var x=0,z=0,ne=0;ne<y.length;ne++)if(y[ne].Ed()){var ie=y[ne].actualBounds;x=ne===0?ie.x:Math.min(ie.x,x),z=ne===0?ie.y:Math.min(ie.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-b.x-x)+","+(a.y-b.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else tn.prototype.$o.call(this,a,y,b,E)},Me.Sj=function(a,y,b,E,x){var z=this.se(),ne=this.transform,ie=1/(ne.m11*ne.m22-ne.m12*ne.m21),se=ne.m22*ie,de=-ne.m12*ie,pe=-ne.m21*ie,Se=ne.m11*ie,Ne=ie*(ne.m21*ne.dy-ne.m22*ne.dx),Oe=ie*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,an.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,b,E,x);if(this.background!==null)return z=a*se+y*pe+Ne,ie=a*de+y*Se+Oe,a=b*se+E*pe+Ne,se=b*de+E*Se+Oe,x.h(0,0),b=this.naturalBounds,z=an.Ff(0,0,b.width,b.height,z,ie,a,se,x),x.transform(ne),z;z||(se=1,pe=de=0,Se=1,Oe=Ne=0),ie=a*se+y*pe+Ne,a=a*de+y*Se+Oe,se=b*se+E*pe+Ne,b=b*de+E*Se+Oe,x.h(se,b),E=(se-ie)*(se-ie)+(b-a)*(b-a),de=!1,Se=this.O.s,Oe=Se.length,pe=rt.alloc(),Ne=null,y=1/0;var He=null,Je=this.isClipping&&this.na===Nr.Spot;Je&&(He=rt.alloc(),Ne=this.Pb(),(de=Ne.Sj(ie,a,se,b,He))&&(y=(ie-He.x)*(ie-He.x)+(a-He.y)*(a-He.y)));for(var xt=0;xt<Oe;xt++){var yt=Se[xt];yt.visible&&yt!==Ne&&yt.Sj(ie,a,se,b,pe)&&(de=!0,yt=(ie-pe.x)*(ie-pe.x)+(a-pe.y)*(a-pe.y),yt<E&&(E=yt,x.set(pe)))}return Je&&(y>E&&x.set(He),rt.free(He)),rt.free(pe),z&&x.transform(ne),de},Me.Gj=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Gj();tn.prototype.Gj.call(this)},Me.v=function(a){if(!Lt(this)){tn.prototype.v.call(this,a),a=null,(this.na===Nr.Auto||this.na===Nr.Link)&&(a=this.Pb());for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E];if((x===a||x.isPanelMain)&&x.v(!0),!x.desiredSize.w()){var z=_l(x,!1);(x instanceof Ql||x instanceof Nr||x instanceof ma||z!==mr)&&x.v(!0)}}}},Me.Uj=function(){if(!Lt(this)){Tt(this,!0),Kt(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Uj()}},Me.Uk=function(){if(!(this.l&2048)){je(this,!0),ut(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()}},Me.Wu=function(){ut(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()},Me.Wl=function(a,y,b,E){var x=this.jg;x.h(0,0,0,0);var z=this.desiredSize,ne=this.minSize;b===void 0&&(b=ne.width,E=ne.height),b=Math.max(b,ne.width),E=Math.max(E,ne.height);var ie=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ie.width)),isNaN(z.height)||(y=Math.min(z.height,ie.height)),a=Math.max(b,a),y=Math.max(E,y);var se=this.yb;a=Math.max(a-se.left-se.right,0),y=Math.max(y-se.top-se.bottom,0);var de=this.O.s;de.length!==0&&this.na.measure(this,a,y,de,x,b,E),a=x.width+se.left+se.right,se=x.height+se.top+se.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(se=z.height),a=Math.min(ie.width,a),se=Math.min(ie.height,se),a=Math.max(ne.width,a),se=Math.max(ne.height,se),a=Math.max(b,a),se=Math.max(E,se),so(x,a,se),so(this.naturalBounds,a,se),this.Ge(0,0,a,se)},Me.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var b=0;b<y;b++){var E=a[b];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function rh(a){return a.part!==null?a.part.locationObject:null}Me.eh=function(a,y,b,E){var x=this.O.s;if(this.actualBounds.h(a,y,b,E),x.length!==0){if(!this.desiredSize.w()){a=_l(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ne=this.Kg,ie=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===b&&z===E&&(a=mr),a){case mr:(y>b||z>E)&&(this.v(),this.measure(y>b?b:y,z>E?E:z,0,0));break;case Cr:this.v(!0),this.measure(b+ie,E+ne,0,0);break;case Ci:this.v(!0),this.measure(b+ie,z+ne,0,0);break;case Fi:this.v(!0),this.measure(y+ie,E+ne,0,0)}}this.na.arrange(this,x,this.jg)}},Me.gh=function(a){var y=this.naturalBounds,b=rh(this);if(ia(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,x=rt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===b)&&(Mn(x.set(a),z.transform),z.ca(x)))return rt.free(x),!0}return rt.free(x),!(this.Ma===null&&this.areaBackground===null)}return!1},Me.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E].ks(a);if(x!==null)return x}return null},Me.qm=function(a,y){if(y(this,a),a instanceof Nr){a=a.O.s;for(var b=a.length,E=0;E<b;E++)this.qm(a[E],y)}};function Uf(a,y){hS(a,a,y)}function hS(a,y,b){b(y),y=y.O.s;for(var E=y.length,x=0;x<E;x++){var z=y[x];z instanceof Nr&&hS(a,z,b)}}function aE(a,y){fS(a,a,y)}function fS(a,y,b){if(b(y),y instanceof Nr){y=y.O.s;for(var E=y.length,x=0;x<E;x++)fS(a,y[x],b)}}Me.Nl=function(a){return pS(this,this,a)};function pS(a,y,b){if(b(y))return y;if(y instanceof Nr){y=y.O.s;for(var E=y.length,x=0;x<E;x++){var z=pS(a,y[x],b);if(z!==null)return z}}return null}Me.fb=function(a){if(this.name===a)return this;var y=this.O.s,b=y.length;this.Hh===null&&this.itemTemplateMap===null||(b=Kg(this));for(var E=0;E<b;E++){var x=y[E];if(x instanceof Nr){var z=x.fb(a);if(z!==null)return z}if(x.name===a)return x}return null};function gS(a){a=a.O.s;for(var y=a.length,b=0,E=0;E<y;E++){var x=a[E];x instanceof Nr?b=Math.max(b,gS(x)):x instanceof ro&&(b=Math.max(b,x.ig/2*x.strokeMiterLimit*x.Df()))}return b}Me.se=function(){return!(this.type===Nr.TableRow||this.type===Nr.TableColumn)};function Ph(a){return a.type===Nr.TableRow||a.type===Nr.TableColumn}Me.ic=function(a,y,b){if(this.pickable===!1||(y===void 0&&(y=null),b===void 0&&(b=null),Ut(this)))return null;var E=this.naturalBounds,x=1/this.Df(),z=this.se(),ne=z?a:Mn(rt.allocAt(a.x,a.y),this.transform),ie=this.diagram,se=10,de=5;if(ie!==null&&(se=ie.Ql("extraTouchArea"),de=se/2),ia(-(de*x),-(de*x),E.width+se*x,E.height+se*x,ne.x,ne.y)){if(!this.isAtomic){x=this.O.s;var pe=x.length;if(ie=rt.alloc(),de=(se=this.isClipping&&this.na===Nr.Spot)?this.Pb():null,se&&(de.se()?Mn(ie.set(a),de.transform):ie.set(a),!de.ca(ie)))return rt.free(ie),z||rt.free(ne),null;for(var Se=rh(this);pe--;){var Ne=x[pe];if((Ne.visible||Ne===Se)&&(Ne.se()?Mn(ie.set(a),Ne.transform):ie.set(a),!se||Ne!==de)){var Oe=null;if(Ne instanceof Nr?Oe=Ne.ic(ie,y,b):Ne.pickable===!0&&Ne.ca(ie)&&(Oe=Ne),Oe!==null&&(y!==null&&(Oe=y(Oe)),Oe!==null&&(b===null||b(Oe))))return rt.free(ie),z||rt.free(ne),Oe}}rt.free(ie)}return this.background===null&&this.areaBackground===null?(z||rt.free(ne),null):(a=ia(0,0,E.width,E.height,ne.x,ne.y)?this:null,z||rt.free(ne),a)}return z||rt.free(ne),null},Me.ji=function(a,y,b,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),b===void 0&&(b=null);var x=this.naturalBounds,z=this.se(),ne=z?a:Mn(rt.allocAt(a.x,a.y),this.transform);if(x=ia(0,0,x.width,x.height,ne.x,ne.y),Ph(this)||x){if(!this.isAtomic){for(var ie=this.O.s,se=ie.length,de=rt.alloc(),pe=rh(this);se--;){var Se=ie[se];if(Se.visible||Se===pe){Se.se()?Mn(de.set(a),Se.transform):de.set(a);var Ne=Se;Se=Se instanceof Nr?Se:null,(Se!==null?Se.ji(de,y,b,E):Ne.ca(de))&&Ne.pickable!==!1&&(y!==null&&(Ne=y(Ne)),Ne===null||b!==null&&!b(Ne)||E.add(Ne))}}rt.free(de)}return z||rt.free(ne),x&&(this.background!==null||this.areaBackground!==null)}return z||rt.free(ne),!1},Me.Cf=function(a,y,b,E,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),b===void 0&&(b=null);var ne=z;if(z===void 0&&(ne=Ui.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Ui.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var ie=rh(this),se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===ie){var Se=pe.actualBounds,Ne=this.naturalBounds;Se.x>Ne.width||Se.y>Ne.height||0>Se.x+Se.width||0>Se.y+Se.height||(Se=pe,pe=pe instanceof Nr?pe:null,Ne=Ui.alloc(),Ne.set(ne),(pe!==null?pe.Cf(a,y,b,E,x,Ne):xs(Se,a,E,Ne))&&(y!==null&&(Se=y(Se)),Se===null||b!==null&&!b(Se)||x.add(Se)),Ui.free(Ne))}}return z===void 0&&Ui.free(ne),E}return z===void 0&&Ui.free(ne),!1};function Lv(a,y,b,E){for(var x=a.O.s,z=x.length;z--;){var ne=x[z];if(ne.visible){var ie=ne.actualBounds,se=a.naturalBounds;ie.x>se.width||ie.y>se.height||0>ie.x+ie.width||0>ie.y+ie.height||(ne instanceof Nr&&Lv(ne,y,b,E),y!==null&&(ne=y(ne)),ne===null||b!==null&&!b(ne)||E.add(ne))}}}Me.og=function(a,y,b,E,x,z){if(this.pickable===!1)return!1;b===void 0&&(b=null),E===void 0&&(E=null);var ne=this.naturalBounds,ie=this.se(),se=ie?a:Mn(rt.allocAt(a.x,a.y),this.transform),de=ie?y:Mn(rt.allocAt(y.x,y.y),this.transform),pe=se.Bf(de),Se=0<se.x&&se.x<ne.width&&0<se.y&&se.y<ne.height||Xn(se.x,se.y,0,0,0,ne.height)<=pe||Xn(se.x,se.y,0,ne.height,ne.width,ne.height)<=pe||Xn(se.x,se.y,ne.width,ne.height,ne.width,0)<=pe||Xn(se.x,se.y,ne.width,0,0,0)<=pe;if(ne=se.zd(0,0)<=pe&&se.zd(0,ne.height)<=pe&&se.zd(ne.width,0)<=pe&&se.zd(ne.width,ne.height)<=pe,ie||(rt.free(se),rt.free(de)),Se){if(!this.isAtomic){se=rt.alloc(),de=rt.alloc(),pe=rh(this);for(var Ne=this.O.s,Oe=Ne.length;Oe--;){var He=Ne[Oe];if(He.visible||He===pe){var Je=He.actualBounds,xt=this.naturalBounds;(!ie||!(Je.x>xt.width||Je.y>xt.height||0>Je.x+Je.width||0>Je.y+Je.height))&&(He.se()?(Je=He.transform,Mn(se.set(a),Je),Mn(de.set(y),Je)):(se.set(a),de.set(y)),Je=He,He=He instanceof Nr?He:null,(He!==null?He.og(se,de,b,E,x,z):Je.tx(se,de,x))&&(b!==null&&(Je=b(Je)),Je===null||E!==null&&!E(Je)||z.add(Je)))}}rt.free(se),rt.free(de)}return x?Se:ne}return!1};function kv(a){var y=null;return a instanceof ro&&(y=a.spot1,y===ts&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=No),y}function Iv(a){var y=null;return a instanceof ro&&(y=a.spot2,y===ts&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ra),y}Me.add=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];for(b=0;b<y.length;b++)this.Gb(this.O.count,y[b]);return this},Me.M=function(a){return this.O.M(a)},Me.Gb=function(a,y){y instanceof ki&&kt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&kt("Cannot make a Panel contain itself: "+this.toString()),kt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var b=y.panel;if(b!==null&&b!==this&&kt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+b.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Nr.Grid||y instanceof ro||kt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Nr.Graduated||y instanceof ro||y instanceof ma||kt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new Rn),this.ge.add(E,y))}var x=this.O;if(E=-1,b===this){for(var z=-1,ne=this.O.s,ie=ne.length,se=0;se<ie;se++)if(ne[se]===y){z=se;break}if(z!==-1){if(z===a||z+1>=x.count&&a>=x.count)return;x.mb(z),E=z}else kt("element "+y.toString()+" has panel "+b.toString()+" but is not contained by it.")}(0>a||a>x.count)&&(a=x.count),x.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Lt(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Nr&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||$m(this,y,!1),b=this.part,b!==null&&(b.Rh=null,b.ag=NaN,this.Te&&b instanceof ii&&(b.Te=!0),b.Te&&b instanceof ii&&(b.wc=null),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||(E!==-1&&b.cb(ka,"elements",this,y,null,E,null),b.cb(Ta,"elements",this,null,y,null,a)))};function Dv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Me.remove=function(a){for(var y=this.O.s,b=y.length,E=-1,x=0;x<b;x++)if(y[x]===a){E=x;break}E!==-1&&this.pc(E,!0)},Me.mb=function(a){0<=a&&this.pc(a,!0)},Me.pc=function(a,y){var b=this.O,E=b.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var x=E.data;typeof x=="object"&&this.ge.remove(x)}b.mb(a),Tt(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof ii&&(E instanceof Nr?E.qm(E,function(ne,ie){ty(z,ie,y)}):ty(z,E,y)),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||z.cb(ka,"elements",this,E,null,a,null))},Me.Fb=function(a){0>a&&vr(a,">= 0",Nr,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var b=new ws;b.wi(this),b.isRow=!0,b.index=a,y[a]=b,this.cb(Ta,"rowdefs",this,null,b,null,a)}return y[a]},Me.oA=function(a){if(0>a&&vr(a,">= 0",Nr,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,b=y[a];if(b){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ka,"rowdefs",this,b,null,a,null),this.v()}}};function mS(a,y,b){var E=a.rowDefs;if(!(0>y)){if(E[y]=b instanceof ws?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Me.Eb=function(a){0>a&&vr(a,">= 0",Nr,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var b=new ws;b.wi(this),b.isRow=!1,b.index=a,y[a]=b,this.cb(Ta,"coldefs",this,null,b,null,a)}return y[a]},Me.jA=function(a){if(0>a&&vr(a,">= 0",Nr,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,b=y[a];if(b){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ka,"coldefs",this,b,null,a,null),this.v()}}};function vS(a,y,b){var E=a.colDefs;if(!(0>y)){if(E[y]=b instanceof ws?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Me.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&e0(y,a),this},Me.Hy=function(a,y){return(a=this.Fb(a))&&e0(a,new ws(y)),this},Me.By=function(a,y){return(a=this.Eb(a))&&e0(a,new ws(y)),this},Me.nz=function(a){if(0>a||this.type!==Nr.Table||this.rowCount===0)return-1;for(var y=0,b=this.rowDefs,E=b.length,x=this.topIndex;x<E;x++){var z=b[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},Me.fz=function(a){if(0>a||this.type!==Nr.Table||this.columnCount===0)return-1;for(var y=0,b=this.colDefs,E=b.length,x=this.leftIndex;x<E;x++){var z=b[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},Me.Fz=function(a,y){if(y===void 0&&(y=new rt(NaN,NaN)),this.type!==Nr.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var b=this.Pb();return b.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),b.transform.Ga(y)},Me.Gz=function(a){if(this.type!==Nr.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function yS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Pc(a){var y=a.allBindings;if(y===null)a.data!==null&&kt("Template cannot have .data be non-null: "+a),a.allBindings=y=new rr;else if(y._isFrozen)return;var b=new rr;Dv(a,!1),a.qm(a,function(de,pe){pe.th();var Se=pe.localBindings;if(Se!==null)for(Le(pe,!1),Se=Se.iterator;Se.next();){var Ne=Se.value;Ne.mode===gm&&Le(pe,!0);var Oe=Ne.sourceName;Oe!==null&&(Oe==="/"&&Dv(de,!0),Oe=R1(Ne,de,pe),Oe!==null&&(b.add(Oe),Oe.srcBindings===null&&(Oe.srcBindings=new rr),Oe.srcBindings.add(Ne))),y.add(Ne)}if(pe instanceof Nr&&pe.type===Nr.Table){if(0<pe.rowCount){for(de=pe.rowDefs,Se=de.length,Ne=0;Ne<Se;Ne++)if(Oe=de[Ne],Oe!==void 0&&Oe.be!==null)for(var He=Oe.be.iterator;He.next();){var Je=He.value;Je.xd=Oe,Je.to=2,Je.wl=Oe.index,y.add(Je)}}if(0<pe.columnCount){for(pe=pe.colDefs,de=pe.length,Se=0;Se<de;Se++)if(Ne=pe[Se],Ne!==void 0&&Ne.be!==null)for(Oe=Ne.be.iterator;Oe.next();)He=Oe.value,He.xd=Ne,He.to=1,He.wl=Ne.index,y.add(He)}}});for(var E=b.iterator;E.next();){var x=E.value;if(x.srcBindings!==null){Le(x,!0);for(var z=x.srcBindings.iterator;z.next();){var ne=z.value;x.localBindings===null&&(x.localBindings=new rr),x.localBindings.add(ne)}}x.srcBindings=null}for(E=y.iterator;E.next();)if(x=E.value,z=x.xd,z!==null){x.xd=null;var ie=x.targetProperty,se=ie.indexOf(".");0<se&&z instanceof Nr&&(ne=ie.substring(0,se),ie=ie.substr(se+1),se=z.fb(ne),se!==null?(z=se,x.targetProperty=ie):Qr('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+x.toString())),z instanceof ws?(ne=Mi(z.panel),x.Ai=ne===void 0?-1:ne,z.panel.bindingId=x.Ai):z instanceof tn?(ne=Mi(z),x.Ai=ne===void 0?-1:ne,z.bindingId=x.Ai):kt("Unknown type of binding target: "+z)}y.freeze(),a instanceof ki&&a.Zc()&&a.Va()}Me.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return aE(y,function(b){b instanceof Nr&&(b.allBindings=null,b.ub=null);var E=b.localBindings;E!==null&&(b.localBindings=null,E.each(function(x){b.bind(x.copy())})),E=b.animationTriggers,E!==null&&(b.animationTriggers=null,E.each(function(x){b.Jv(x.value.copy())}))}),a&&Pc(y),y},Me.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var b=y.value,E=b.sourceProperty;if((a===""||E===""||E===a)&&(E=b.targetProperty,b.converter!==null||E!=="")){E=this.data;var x=b.sourceName;if(x!==null){if(x==="")E=this;else if(x==="/")E=this;else if(x===".")E=this;else if(x==="..")E=this;else if(E=this.fb(x),E===null)continue}else if(b.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,ne=b.Ai;if(ne!==-1){if(z=this.ks(ne),z===null)continue}else b.xd!==null&&(z=b.xd);if(x==="/"?E=z.part:x==="."?E=z:x===".."&&(E=z.panel),x=b.to,x!==0){if(!(z instanceof Nr))continue;x===1?z=z.Eb(b.wl):x===2&&(z=z.Fb(b.wl))}z!==void 0&&b.Mv(z,E)}}},Me.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function sE(a,y){a=a.O.s;for(var b=a.length,E=y.length,x=0,z=null;x<b&&(z=a[x],!(z instanceof Nr&&z.data!==null));)x++,z=a[x];if(b-x!==E)return!0;if(z===null)return 0<E;for(var ne=0;x<b&&ne<E;){if(z=a[x],!(z instanceof Nr)||z.data!==y[ne])return!0;x++,ne++}return!1}function Kg(a){if(a.type===Nr.Spot||a.type===Nr.Auto)return Math.min(a.O.length,1);if(a.type===Nr.Link){a=a.O;for(var y=a.length,b=0;b<y;b++){var E=a.M(b);if(!(E instanceof ro&&E.isPanelMain))break}return b}return a.type===Nr.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Nr&&Ph(a))?1:0}Me.mv=function(){for(var a=Kg(this);this.O.length>a;)this.pc(this.O.length-1,!1);SS(this,this.itemArray)};function SS(a,y){var b=Kg(a);if(y===null||y.length===0)for(;a.O.length>b;)a.pc(a.O.length-1,!1);else if(a.O.length<=b){b=y.length;for(var E=0;E<b;E++)qm(a,y[E],E,!0)}else{E=b;for(var x=0;x<y.length;x++,E++){var z=y[x],ne=E<a.O.length?a.O.M(E):null;if(ne instanceof Nr){if(ne.data!==z){var ie=Mv(a,ne.data),se=Mv(a,z),de=se!==ie;de||(ie=Ov(a,ie),de=Ov(a,se)!==ie),de?(a.pc(E,!1),qm(a,z,x,!1)):ne.data=z}}else qm(a,z,x,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,Rv(a,b,0),Lt(a)||a.v(),a.graduatedIntervals=null,a.If()||$m(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof ii&&(y.Te=!0),y.Te&&y instanceof ii&&(y.wc=null))}}function qm(a,y,b,E){if(!(y==null||0>b)){var x=Mv(a,y);if(x=Ov(a,x),x!==null){if(Pc(x),x=x.copy(),x.l&16777216){var z=a.ih();z!==null&&Dv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Rn),a.ge.add(y,x)),z=b+Kg(a),a.Gb(z,x),E&&(x.ub=y,Rv(a,z,b),x.ub=null),x.data=y}}}function Rv(a,y,b){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof Nr){var x=y,z=b;E.type===Nr.TableRow?E.row=x:E.type===Nr.TableColumn&&(E.column=x),E.itemIndex=z}y++,b++}}function Mv(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=rs(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;kt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Ov(a,y){var b=a.itemTemplateMap,E=null;return b!==null&&(E=b.I(y)),E===null&&(b!==null&&(E=b.I("")),E===null&&(bS||(bS=!0,Qr('No item template Panel found for category "'+y+'" on '+a),Qr(" Using default item template."),a=new Nr,y=new ma,y.bind(new us("text","",hi)),a.add(y),ES=a),E=ES)),E}function $m(a,y,b){var E=y.enabledChanged;if(E!==null&&E(y,b),y instanceof Nr){y=y.O.s,E=y.length;for(var x=0;x<E;x++){var z=y[x];b&&z instanceof Nr&&!z.isEnabled||$m(a,z,b)}}}function md(a,y){y.name=a,Fc.add(a,y)}un.Object.defineProperties(Nr.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Nr.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&&vr(a,">= 0",Nr,"padding"),a=new Qi(a)):(0>a.left&&vr(a.left,">= 0",Nr,"padding:value.left"),0>a.right&&vr(a.right,">= 0",Nr,"padding:value.right"),0>a.top&&vr(a.top,">= 0",Nr,"padding:value.top"),0>a.bottom&&vr(a.bottom,">= 0",Nr,"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 Qi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new gc),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 Fo)&&(a instanceof Fo&&a.freeze(),this.T===null&&(this.T=new gc),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 gc),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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||kt("defaultRowSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gc),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 Fo)&&(a instanceof Fo&&a.freeze(),this.T===null&&(this.T=new gc),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 gc),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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||kt("defaultColumnSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gc),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 gc),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||kt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Mc(b),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()||kt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Mc(b),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 ih),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),we(this)&&(a=this.part,a!==null&&ya(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 ih),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),we(this)&&(a=this.part,a!==null&&ya(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 ih),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 ih),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 ih,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 ih,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 ih,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 ih,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 gc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new gc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:n0},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new gc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:n0},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new gc),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)&&kt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),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)&&kt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),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 b=this instanceof ki&&!(this instanceof _o);Pc(this),this.ub=a;var E=this.diagram;E!==null&&(b?(b=E.partManager,this instanceof Mr?(y!==null&&b.bf.remove(y),a!==null&&b.bf.add(a,this)):this instanceof ki&&(y!==null&&b.cf.remove(y),a!==null&&b.cf.add(a,this))):(b=this.panel,b!==null&&b.ge!==null&&(y!==null&&b.ge.remove(y),a!==null&&b.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Gi),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&sE(this,a)){var b=this.diagram;y!==a&&(b!==null&&y!==null&&Ey(b.partManager,this,b),this.Hh=a,b!==null&&a!==null&&by(b.partManager,this)),this.g("itemArray",y,a),b!==null&&b.undoManager.isUndoingRedoing||SS(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 Rn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ki||a.isPanelMain)&&kt("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 b=a.iterator;b.next(););ao(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&&(ao(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 $i&&(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 b=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||b&&$m(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))}}}),un.Object.defineProperties(Nr,{Position:{get:function(){return Fc.I("Position")}},Horizontal:{get:function(){return Fc.I("Horizontal")}},Vertical:{get:function(){return Fc.I("Vertical")}},Spot:{get:function(){return Fc.I("Spot")}},Auto:{get:function(){return Fc.I("Auto")}},Table:{get:function(){return Fc.I("Table")}},Viewbox:{get:function(){return Fc.I("Viewbox")}},TableRow:{get:function(){return Fc.I("TableRow")}},TableColumn:{get:function(){return Fc.I("TableColumn")}},Link:{get:function(){return Fc.I("Link")}},Grid:{get:function(){return Fc.I("Grid")}},Graduated:{get:function(){return Fc.I("Graduated")}}}),Nr.prototype.rebuildItemElements=Nr.prototype.mv,Nr.prototype.findItemPanelForData=Nr.prototype.sx,Nr.prototype.updateTargetBindings=Nr.prototype.La,Nr.prototype.copyTemplate=Nr.prototype.Uy,Nr.prototype.graduatedValueForPoint=Nr.prototype.Gz,Nr.prototype.graduatedPointForValue=Nr.prototype.Fz,Nr.prototype.findColumnForLocalX=Nr.prototype.fz,Nr.prototype.findRowForLocalY=Nr.prototype.nz,Nr.prototype.addColumnDefinition=Nr.prototype.By,Nr.prototype.addRowDefinition=Nr.prototype.Hy,Nr.prototype.addRowColumnDefinition=Nr.prototype.Gy,Nr.prototype.removeColumnDefinition=Nr.prototype.jA,Nr.prototype.getColumnDefinition=Nr.prototype.Eb,Nr.prototype.removeRowDefinition=Nr.prototype.oA,Nr.prototype.getRowDefinition=Nr.prototype.Fb,Nr.prototype.removeAt=Nr.prototype.mb,Nr.prototype.remove=Nr.prototype.remove,Nr.prototype.insertAt=Nr.prototype.Gb,Nr.prototype.elt=Nr.prototype.M,Nr.prototype.add=Nr.prototype.add,Nr.prototype.findObject=Nr.prototype.fb,Nr.prototype.findInVisualTree=Nr.prototype.Nl,Nr.prototype.walkVisualTreeFrom=Nr.prototype.qm,Nr.prototype.findMainElement=Nr.prototype.Pb;var bS=!1,ES=null,Fc=new Rn;Nr.className="Panel",Nr.definePanelLayout=md,md("Position",new Hm),md("Vertical",new Gm),md("Auto",new Vm),md("Link",new Qm);function ih(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}ih.prototype.copy=function(){var a=new ih;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},ih.className="GradPanelSettings";function gc(){this.Pc=[],this.Oc=[],this.j=this.ob=n0,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}gc.prototype.copy=function(a){for(var y=new gc,b=this.Pc,E=b.length,x=y.Pc,z=0;z<E;z++)if(b[z]!==void 0){var ne=b[z].copy();ne.wi(a),x[z]=ne}for(b=this.Oc,E=b.length,x=y.Oc,z=0;z<E;z++)b[z]!==void 0&&(ne=b[z].copy(),ne.wi(a),x[z]=ne);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},gc.className="TablePanelSettings";function ws(a){vi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ts,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Fv,this.hg=Ji,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))}ws.prototype.copy=function(){var a=new ws;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=Dn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function e0(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=Dn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Me=ws.prototype,Me.qb=function(a){a.classType===ws&&(this.sizing=a)},Me.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Mi(this)},Me.wi=function(a){this.Me=a},Me.Io=function(a){var y=0,b=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&b!==null&&(a=this.isRow?b.defaultRowSeparatorStroke:b.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(b!==null?y=this.isRow?b.defaultRowSeparatorStrokeWidth:b.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(b!==null)a=b.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Me.Wc=function(){var a=0,y=this.Me,b=0,E=this.isRow;if(y!==null&&y.type===Nr.Table)for(var x=E?y.rowDefs.length:y.colDefs.length,z=0;z<x;z++){var ne=E?y.rowDefs[z]:y.colDefs[z];if(ne!==void 0&&ne.oa!==0){b=ne.index;break}}if(this.index!==b&&(b=this.separatorStroke,b===null&&y!==null&&(b=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),b!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Me.Ob=function(a,y,b){var E=this.Me;if(E!==null&&(E.cb(sa,a,this,y,b,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(b=this.be.iterator;b.next();)b.value.sp(this,y,a,E)};function t0(a){if(a.sizing===Fv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Me.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new us(a,y,b,E):x=a,x.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&yS(y)&&kt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+x+" on "+a)),this.be===null&&(this.be=new rr),this.be.add(x),this},un.Object.defineProperties(ws.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&&vr(a,">= 0",ws,"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&&vr(a,">= 0",ws,"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))&&vr(a,">= 0",ws,"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&&vr(a,">= 0",ws,"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 Qi(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&&ef(a,"RowColumnDefinition.separatorStroke"),a instanceof Fo&&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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||kt("separatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&ef(a,"RowColumnDefinition.background"),a instanceof Fo&&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}}}),ws.prototype.computeEffectiveSpacing=ws.prototype.Wc,ws.prototype.computeEffectiveSpacingTop=ws.prototype.Io;var Fv=new Ln(ws,"Default",0),Yg=new Ln(ws,"None",1),n0=new Ln(ws,"ProportionalExtra",2);ws.className="RowColumnDefinition",ws.Default=Fv,ws.None=Yg,ws.ProportionalExtra=n0;function ro(a,y){tn.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)}hn(ro,tn),ro.prototype.cloneProtected=function(a){tn.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=Dn(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 Hf(a){a.Na===null?a.Na=new Uv:a.Na.nc&&(a.Na=a.Na.copy())}Me=ro.prototype,Me.th=function(){tn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Me.qb=function(a){a===mr||a===bi||a===yo||a===Ji?this.geometryStretch=a:tn.prototype.qb.call(this,a)},Me.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Mi(this)};function cg(a,y,b,E){var x=b.length;if(!(4>x)){var z=E.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var ie=b[0],se=b[1],de,pe,Se,Ne,Oe,He,Je=0,xt=Jr(),yt=2;yt<x;yt+=2)de=b[yt],pe=b[yt+1],Se=de-ie,ie=pe-se,Se===0&&(Se=.001),Ne=ie/Se,Oe=Math.atan2(ie,Se),He=Math.sqrt(Se*Se+ie*ie),xt.push([Se,Oe,Ne,He]),Je+=He,ie=de,se=pe;ie=b[0],se=b[1],Se=E.measuredBounds.width,E instanceof ro&&(Se-=E.strokeWidth),1>Se&&(Se=1),x=b=Se,de=ne/2,pe=de!==0,yt=0,He=xt[yt],Se=He[0],Oe=He[1],Ne=He[2],He=He[3];for(var Rt=0;.1<=Je;){if(Rt===0&&(pe?(x=b,x-=de,Je-=de,pe=!1):x=b,x===0&&(x=1)),x>Je){Hr(xt);return}x>He?(Rt=x-He,x=He):Rt=0;var Bt=Math.sqrt(x*x/(1+Ne*Ne));if(0>Se&&(Bt=-Bt),ie+=Bt,se+=Ne*Bt,a.translate(ie,se),a.rotate(Oe),a.translate(-(ne/2),-(z/2)),Rt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Oe),a.translate(-ie,-se),Je-=x,He-=x,Rt!==0){if(yt++,yt===xt.length){Hr(xt);return}He=xt[yt],Se=He[0],Oe=He[1],Ne=He[2],He=He[3],x=Rt}}Hr(xt)}}Me.hh=function(a,y){var b=this.xc,E=this.Ui;if(b!==null||E!==null){var x=this.ua;if(x!==null){a.yc();var z=this.actualBounds,ne=this.naturalBounds;E!==null&&Ra(this,a,E,!0,!1,ne,z);var ie=this.part,se=this.ig;if(b===null||se!==0||ie===null||!this.isPanelMain&&ie.Pb()!==this||(se=ie.type===Nr.Link&&ie instanceof _o&&ie.category==="Selection"&&ie.adornedObject instanceof ro&&ie.adornedPart.Pb()===ie.adornedObject?ie.adornedObject.strokeWidth:0),se===0&&(b=null),b!==null&&se!==0&&(Ra(this,a,b,!1,!1,ne,z),a.lineWidth=se,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ie&&y.Gf("drawShadows")&&(z=ie.isShadowed),a.Il===!1&&(z=!1),ie=!0,b===null||E!==null&&E!=="transparent"||(ie=!1),ne=!1,se=this.strokeDashArray,se!==null&&(ne=!0,a.js(se,this.strokeDashOffset)),x.type===Lr.j)a.beginPath(),a.moveTo(x.startX,x.startY),a.lineTo(x.endX,x.endY),b!==null&&a.jk(),a.Se();else if(x.type===Lr.u){var de=x.startX;se=x.startY;var pe=x.endX,Se=x.endY;x=Math.min(de,pe);var Ne=Math.min(se,Se);de=Math.abs(pe-de),se=Math.abs(Se-se),a.beginPath(),a.rect(x,Ne,de,se),E!==null&&a.ng(E),b!==null&&(ie&&z&&Ul(a),a.jk(),ie&&z&&Ks(a)),a.Se()}else if(x.type===Lr.F)de=x.startX,se=x.startY,pe=x.endX,Se=x.endY,x=Math.abs(pe-de)/2,Ne=Math.abs(Se-se)/2,de=Math.min(de,pe)+x,se=Math.min(se,Se)+Ne,a.beginPath(),a.moveTo(de,se-Ne),a.bezierCurveTo(de+an.wg*x,se-Ne,de+x,se-an.wg*Ne,de+x,se),a.bezierCurveTo(de+x,se+an.wg*Ne,de+an.wg*x,se+Ne,de,se+Ne),a.bezierCurveTo(de-an.wg*x,se+Ne,de-x,se+an.wg*Ne,de-x,se),a.bezierCurveTo(de-x,se-an.wg*Ne,de-an.wg*x,se-Ne,de,se-Ne),a.closePath(),E!==null&&a.ng(E),b!==null&&(ie&&z&&Ul(a),a.jk(),ie&&z&&Ks(a)),a.Se();else if(x.type===Lr.o)for(x=x.figures,se=x.length,Ne=0;Ne<se;Ne++){de=x.s[Ne],a.beginPath(),a.moveTo(de.startX,de.startY),pe=de.segments.s,Se=pe.length;for(var Oe=null,He=0;He<Se;He++){var Je=pe[He];switch(Je.type){case aa:a.moveTo(Je.endX,Je.endY);break;case Wo:a.lineTo(Je.endX,Je.endY);break;case Ka:a.bezierCurveTo(Je.point1X,Je.point1Y,Je.point2X,Je.point2Y,Je.endX,Je.endY);break;case dl:a.quadraticCurveTo(Je.point1X,Je.point1Y,Je.endX,Je.endY);break;case Ia:if(Je.radiusX===Je.radiusY){var xt=Math.PI/180;a.arc(Je.point1X,Je.point1Y,Je.radiusX,Je.startAngle*xt,(Je.startAngle+Je.sweepAngle)*xt,0>Je.sweepAngle,Oe!==null?Oe.endX:de.startX,Oe!==null?Oe.endY:de.startY)}else if(Oe=Ts(Je,de),xt=Oe.length,xt===0)a.lineTo(Je.centerX,Je.centerY);else for(var yt=0;yt<xt;yt++){var Rt=Oe[yt];yt===0&&a.lineTo(Rt[0],Rt[1]),a.bezierCurveTo(Rt[2],Rt[3],Rt[4],Rt[5],Rt[6],Rt[7])}break;case bl:if(yt=xt=0,Oe!==null&&Oe.type===Ia){if(Oe=Ts(Oe,de),Rt=Oe.length,Rt===0){a.lineTo(Je.endX,Je.endY);break}Oe=Oe[Rt-1]||null,Oe!==null&&(xt=Oe[6],yt=Oe[7])}else xt=Oe!==null?Oe.endX:de.startX,yt=Oe!==null?Oe.endY:de.startY;if(Oe=Ws(Je,de,xt,yt),xt=Oe.length,xt===0){a.lineTo(Je.endX,Je.endY);break}for(yt=0;yt<xt;yt++)Rt=Oe[yt],a.bezierCurveTo(Rt[2],Rt[3],Rt[4],Rt[5],Rt[6],Rt[7]);break;default:kt("Segment not of valid type: "+Je.type)}Je.isClosed&&a.closePath(),Oe=Je}pe=de.isFilled,z?de.isShadowed?(pe===!0&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&(pe&&ie&&Ul(a),a.jk(),pe&&ie&&Ks(a))):(Ul(a),pe&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk(),Ks(a)):(pe&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk()),a.Se(Ne)}if(ne&&a.fs(),this.pathPattern!==null){if(b=this.pathPattern,b.measure(1/0,1/0),E=b.measuredBounds,b.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=Jr(),z.type===Lr.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),cg(a,y,E,b);else if(z.type===Lr.o)for(z=z.figures.iterator;z.next();){for(ie=z.value,E.length=0,E.push(ie.startX),E.push(ie.startY),ne=ie.startX,x=ie.startY,se=ne,Ne=x,de=ie.segments.s,pe=de.length,Se=0;Se<pe;Se++){switch(He=de[Se],He.type){case aa:cg(a,y,E,b),E.length=0,E.push(He.endX),E.push(He.endY),ne=He.endX,x=He.endY,se=ne,Ne=x;break;case Wo:E.push(He.endX),E.push(He.endY),ne=He.endX,x=He.endY;break;case Ka:an.Qe(ne,x,He.point1X,He.point1Y,He.point2X,He.point2Y,He.endX,He.endY,.5,E),ne=He.endX,x=He.endY;break;case dl:an.ep(ne,x,He.point1X,He.point1Y,He.endX,He.endY,.5,E),ne=He.endX,x=He.endY;break;case Ia:if(Je=Ts(He,ie),Oe=Je.length,Oe===0){E.push(He.centerX),E.push(He.centerY),ne=He.centerX,x=He.centerY;break}for(xt=0;xt<Oe;xt++)yt=Je[xt],an.Qe(ne,x,yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,E),ne=yt[6],x=yt[7];break;case bl:if(Je=Ws(He,ie,ne,x),Oe=Je.length,Oe===0){E.push(He.endX),E.push(He.endY),ne=He.endX,x=He.endY;break}for(xt=0;xt<Oe;xt++)yt=Je[xt],an.Qe(ne,x,yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,E),ne=yt[6],x=yt[7];break;default:kt("Segment not of valid type: "+He.type)}He.isClosed&&(E.push(se),E.push(Ne),cg(a,y,E,b))}cg(a,y,E,b)}else if(z.type===Lr.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),cg(a,y,E,b);else if(z.type===Lr.F){if(x=new Va,x.startX=z.endX,x.startY=(z.startY+z.endY)/2,ne=new wo(Ia),ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(z.startX+z.endX)/2,ne.centerY=(z.startY+z.endY)/2,ne.radiusX=Math.abs(z.startX-z.endX)/2,ne.radiusY=Math.abs(z.startY-z.endY)/2,x.add(ne),z=Ts(ne,x),ie=z.length,ie===0)E.push(ne.centerX),E.push(ne.centerY);else for(ne=x.startX,x=x.startY,se=0;se<ie;se++)Ne=z[se],an.Qe(ne,x,Ne[2],Ne[3],Ne[4],Ne[5],Ne[6],Ne[7],.5,E),ne=Ne[6],x=Ne[7];cg(a,y,E,b)}Hr(E),a.restore(),a.Vc(!1)}}}},Me.kk=function(a,y,b){return!tn.prototype.kk.call(this,a,y,b)||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)},Me.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:tn.prototype.nk.call(this,a)},Me.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var b=0;b<a.length;b++)a[b].setAttributeNS(null,"filter",y)}},Me.ga=function(a,y){if(y===void 0&&(y=new rt),a instanceof _r){a.Mc()&&kt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var b=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(b.width+E)-E/2+b.x+a.offsetX,a.y*(b.height+E)-E/2+b.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Me.mi=function(a){a===void 0&&(a=new An);var y=this.naturalBounds,b=this.oe;y=An.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=rt.allocAt(y.x,y.y).transform(b),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(b),Mo(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(b),Mo(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(b),Mo(a,E.x,E.y,0,0),An.free(y),rt.free(E),a},Me.gh=function(a,y){var b=this.geometry;if(b===null||this.fill===null&&this.stroke===null)return!1;var E=b.bounds,x=this.strokeWidth/2;b.type!==Lr.j||y||(x+=2);var z=An.alloc();if(z.assign(E),z.Bc(x+2,x+2),!z.ca(a))return An.free(z),!1;if(E=x+1e-4,b.type===Lr.j)return this.stroke===null||(E=(b.endX-b.startX)*(a.x-b.startX)+(b.endY-b.startY)*(a.y-b.startY),0>(b.startX-b.endX)*(a.x-b.endX)+(b.startY-b.endY)*(a.y-b.endY)||0>E)?!1:(An.free(z),an.Yb(b.startX,b.startY,b.endX,b.endY,x,a.x,a.y));if(b.type===Lr.u){y=b.startX;var ne=b.startY,ie=b.endX;if(b=b.endY,z.x=Math.min(y,ie),z.y=Math.min(ne,b),z.width=Math.abs(ie-y),z.height=Math.abs(b-ne),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return An.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(x,x),a=z.ca(a),An.free(z),a}if(b.type===Lr.F){ne=b.startX,x=b.startY,ie=b.endX;var se=b.endY;if(b=Math.min(ne,ie),y=Math.min(x,se),ne=Math.abs(ie-ne)/2,x=Math.abs(se-x)/2,b=a.x-(b+ne),y=a.y-(y+x),this.fill===null){if(ne-=E,x-=E,0>=ne||0>=x||1>=b*b/(ne*ne)+y*y/(x*x))return An.free(z),!1;ne+=E,x+=E}return this.stroke!==null&&(ne+=E,x+=E),An.free(z),0>=ne||0>=x?!1:1>=b*b/(ne*ne)+y*y/(x*x)}if(b.type===Lr.o)return An.free(z),this.fill===null?Dl(b,a.x,a.y,x):fs(b,a,x,1<this.strokeWidth,y);kt("Unknown Geometry type: "+b.type)},Me.Wl=function(a,y,b,E){var x=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ne=this.geometry.bounds;else{var ie=this.figure,se=_v[ie];if(se===void 0){var de=an.Ze[ie];typeof de=="string"&&(de=an.Ze[de]),typeof de=="function"?(se=de(null,100,100),_v[ie]=se):kt("Unsupported Figure: "+ie)}ne=se.bounds}ie=ne.width,se=ne.height,de=ne.width;var pe=ne.height;switch(_l(this,!0)){case mr:E=b=0;break;case Cr:de=Math.max(a-z,0),pe=Math.max(y-z,0);break;case Ci:de=Math.max(a-z,0),E=0;break;case Fi:b=0,pe=Math.max(y-z,0)}isFinite(x.width)&&(de=x.width),isFinite(x.height)&&(pe=x.height);var Se=this.maxSize,Ne=this.minSize;switch(b=Math.max(b-z,Ne.width),E=Math.max(E-z,Ne.height),de=Math.min(Se.width,de),pe=Math.min(Se.height,pe),de=isFinite(de)?Math.max(b,de):Math.max(ie,b),pe=isFinite(pe)?Math.max(E,pe):Math.max(se,E),b=Bv(this),b){case mr:break;case Cr:ie=de,se=pe;break;case bi:b=Math.min(de/ie,pe/se),isFinite(b)||(b=1),ie*=b,se*=b;break;default:kt(b+" is not a valid geometryStretch.")}this.Rd!==null?(ie===0&&(ie=.001),se===0&&(se=.001),b=this.Rd!==null?this.Rd:this.ua,ne=b.bounds,E=ie/ne.width,ne=se/ne.height,isFinite(E)||(E=1),isFinite(ne)||(ne=1),this.ua=E===1&&ne===1?b:b.copy().scale(E,ne)):this.ua!==null&&an.$(this.ua.Sk,a-z)&&an.$(this.ua.Rk,y-z)||(this.ua=ro.makeGeometry(this,ie,se)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-z/2,ne.y-z/2,a===0&&ie===0?0:ne.width+z,y===0&&se===0?0:ne.height+z):this.Ge(-(z/2),-(z/2),de+z,pe+z),x.w()?(de=x.width,pe=x.height,de=Math.min(Se.width,de),pe=Math.min(Se.height,pe),de=Math.max(Ne.width,de),pe=Math.max(Ne.height,pe),this.dc.h(0,0,de,pe)):this.dc.assign(ne)};function Bv(a){var y=a.geometryStretch;return a.Rd!==null?y===Ji?Cr:y:y===Ji?_v[a.figure].defaultStretch:y}Me.eh=function(a,y,b,E){Cl(this,a,y,b,E)},Me.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},Me.Sj=function(a,y,b,E,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),ie=z.m22*ne,se=-z.m12*ne,de=-z.m21*ne,pe=z.m11*ne,Se=ne*(z.m21*z.dy-z.m22*z.dx),Ne=ne*(z.m12*z.dx-z.m11*z.dy);z=a*ie+y*de+Se,ne=a*se+y*pe+Ne,ie=b*ie+E*de+Se,se=b*se+E*pe+Ne,Se=this.ig/2,de=this.ua,de===null&&(this.measure(1/0,1/0),de=this.ua);var Oe=de.bounds;if(pe=!1,de.type===Lr.j)if(1.5>=this.strokeWidth)pe=an.Ve(de.startX,de.startY,de.endX,de.endY,z,ne,ie,se,x);else{if(de.startX===de.endX?(E=Se,pe=0):(y=(de.endY-de.startY)/(de.endX-de.startX),pe=Se/Math.sqrt(1+y*y),E=pe*y),y=Jr(),a=new rt,an.Ve(de.startX+E,de.startY+pe,de.endX+E,de.endY+pe,z,ne,ie,se,a)&&y.push(a),a=new rt,an.Ve(de.startX-E,de.startY-pe,de.endX-E,de.endY-pe,z,ne,ie,se,a)&&y.push(a),a=new rt,an.Ve(de.startX+E,de.startY+pe,de.startX-E,de.startY-pe,z,ne,ie,se,a)&&y.push(a),a=new rt,an.Ve(de.endX+E,de.endY+pe,de.endX-E,de.endY-pe,z,ne,ie,se,a)&&y.push(a),ie=y.length,ie===0)return Hr(y),!1;for(pe=!0,se=1/0,E=0;E<ie;E++)a=y[E],b=(a.x-z)*(a.x-z)+(a.y-ne)*(a.y-ne),b<se&&(se=b,x.x=a.x,x.y=a.y);Hr(y)}else if(de.type===Lr.u)pe=an.Ff(Oe.x-Se,Oe.y-Se,Oe.x+Oe.width+Se,Oe.y+Oe.height+Se,z,ne,ie,se,x);else if(de.type===Lr.F){y=An.allocAt(Oe.x,Oe.y,Oe.width,Oe.height).Bc(Se,Se);e:if(y.width===0)pe=an.Ve(y.x,y.y,y.x,y.y+y.height,z,ne,ie,se,x);else if(y.height===0)pe=an.Ve(y.x,y.y,y.x+y.width,y.y,z,ne,ie,se,x);else{if(a=y.width/2,de=y.height/2,E=y.x+a,pe=y.y+de,b=9999,z!==ie&&(b=(ne-se)/(z-ie)),9999>Math.abs(b)){if(se=ne-pe-b*(z-E),0>a*a*b*b+de*de-se*se){x.x=NaN,x.y=NaN,pe=!1;break e}Se=Math.sqrt(a*a*b*b+de*de-se*se),ie=(-(a*a*b*se)+a*de*Se)/(de*de+a*a*b*b)+E,a=(-(a*a*b*se)-a*de*Se)/(de*de+a*a*b*b)+E,de=b*(ie-E)+se+pe,se=b*(a-E)+se+pe,Math.abs((z-ie)*(z-ie))+Math.abs((ne-de)*(ne-de))<Math.abs((z-a)*(z-a))+Math.abs((ne-se)*(ne-se))?(x.x=ie,x.y=de):(x.x=a,x.y=se)}else{if(ie=de*de,se=z-E,ie-=ie/(a*a)*se*se,0>ie){x.x=NaN,x.y=NaN,pe=!1;break e}se=Math.sqrt(ie),ie=pe+se,se=pe-se,Math.abs(ie-ne)<Math.abs(se-ne)?(x.x=z,x.y=ie):(x.x=z,x.y=se)}pe=!0}An.free(y)}else if(de.type===Lr.o){Ne=rt.alloc();var He=ie-z,Je=se-ne,xt=He*He+Je*Je,yt=z,Rt=ne;if(0<xt&&Oe.contains(yt,Rt)&&(Ne.x=yt,Ne.y=Rt,this.ca(Ne)))for(He!==0&&.5>Math.abs(He)?(Je*=.5/He,He=.5):Je!==0&&.5>Math.abs(Je)&&(He*=.5/Je,Je=.5),yt-=He,Rt-=Je;Oe.contains(yt,Rt);)yt-=He,Rt-=Je;for(x.x=ie,x.y=se,Je=0;Je<de.figures.count;Je++){var Bt=de.figures.s[Je],Gt=Bt.isFilled?yt:z,$t=Bt.isFilled?Rt:ne,In=Bt.segments;Oe=Bt.startX,He=Bt.startY;for(var qr=Oe,yi=He,di=0;di<In.count;di++){var Dr=In.s[di],pr=Dr.type,qi=Dr.endX,ji=Dr.endY,Uo=!1;switch(pr){case aa:qr=qi,yi=ji;break;case Wo:Uo=i0(Oe,He,qi,ji,Gt,$t,ie,se,Ne);break;case Ka:Uo=an.Eo(Oe,He,Dr.point1X,Dr.point1Y,Dr.point2X,Dr.point2Y,qi,ji,Gt,$t,ie,se,.6,Ne);break;case dl:Uo=an.Eo(Oe,He,Oe+2/3*(Dr.point1X-Oe),He+2/3*(Dr.point1Y-He),qi+2/3*(Dr.point1X-qi),ji+2/3*(Dr.point1Y-ji),qi,ji,Gt,$t,ie,se,.6,Ne);break;case Ia:case bl:pr=Dr.type===Ia?Ts(Dr,Bt):Ws(Dr,Bt,Oe,He);var fa=pr.length;if(fa===0){Uo=i0(Oe,He,Dr.type===Ia?Dr.centerX:Dr.endX,Dr.type===Ia?Dr.centerY:Dr.endY,Gt,$t,ie,se,Ne);break}for(ji=null,qi=0;qi<fa;qi++){if(ji=pr[qi],qi===0&&i0(Oe,He,ji[0],ji[1],Gt,$t,ie,se,Ne)){var Bs=r0(Gt,$t,Ne,xt,x);Bs<xt&&(xt=Bs,pe=!0)}an.Eo(ji[0],ji[1],ji[2],ji[3],ji[4],ji[5],ji[6],ji[7],Gt,$t,ie,se,.6,Ne)&&(Bs=r0(Gt,$t,Ne,xt,x),Bs<xt&&(xt=Bs,pe=!0))}qi=ji[6],ji=ji[7];break;default:kt("Unknown Segment type: "+pr)}Oe=qi,He=ji,Uo&&(Uo=r0(Gt,$t,Ne,xt,x),Uo<xt&&(xt=Uo,pe=!0)),Dr.isClosed&&(qi=qr,ji=yi,i0(Oe,He,qi,ji,Gt,$t,ie,se,Ne)&&(Dr=r0(Gt,$t,Ne,xt,x),Dr<xt&&(xt=Dr,pe=!0)))}}z=b-a,ne=E-y,ie=Math.sqrt(z*z+ne*ne),ie!==0&&(z/=ie,ne/=ie),x.x-=z*Se,x.y-=ne*Se,rt.free(Ne)}else kt("Unknown Geometry type: "+de.type);return pe?(this.transform.Ga(x),!0):!1};function r0(a,y,b,E,x){return a=b.x-a,y=b.y-y,y=a*a+y*y,y<E?(x.x=b.x,x.y=b.y,y):E}function i0(a,y,b,E,x,z,ne,ie,se){if(an.$(a,b)&&an.$(y,E)||an.$(x,ne)&&an.$(z,ie))return!1;var de=!1,pe=(x-ne)*(y-E)-(z-ie)*(a-b);return pe===0?!1:(se.x=((x*ie-z*ne)*(a-b)-(x-ne)*(a*E-y*b))/pe,se.y=((x*ie-z*ne)*(y-E)-(z-ie)*(a*E-y*b))/pe,(a>b?a-b:b-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(se.y>a||an.$(se.y,a))&&(se.y<y||an.$(se.y,y))&&(de=!0)):(y=a<b?a:b,a=a<b?b:a,(se.x>y||an.$(se.x,y))&&(se.x<a||an.$(se.x,a))&&(de=!0)),de)}Me.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var b=this.ua;b===null&&(this.measure(1/0,1/0),b=this.ua),b=b.bounds;var E=this.strokeWidth/2,x=!1,z=rt.alloc();return z.h(b.x-E,b.y-E),a.ca(y.Ga(z))&&(z.h(b.x-E,b.bottom+E),a.ca(y.Ga(z))&&(z.h(b.right+E,b.bottom+E),a.ca(y.Ga(z))&&(z.h(b.right+E,b.y-E),a.ca(y.Ga(z))&&(x=!0)))),rt.free(z),x},Me.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var b=Ui.alloc();b.set(y),b.Vj();var E=a.left,x=a.right,z=a.top;a=a.bottom;var ne=rt.alloc();if(ne.h(E,z),b.Ga(ne),this.gh(ne,!0)||(ne.h(x,z),b.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),b.Ga(ne),this.gh(ne,!0))||(ne.h(x,a),b.Ga(ne),this.gh(ne,!0)))return rt.free(ne),!0;var ie=rt.alloc(),se=rt.alloc();return b.set(y),b.bv(this.transform),b.Vj(),ie.x=x,ie.y=z,ie.transform(b),ne.x=E,ne.y=z,ne.transform(b),y=!1,zf(this,ne,ie,se)?y=!0:(ne.x=x,ne.y=a,ne.transform(b),zf(this,ne,ie,se)?y=!0:(ie.x=E,ie.y=a,ie.transform(b),zf(this,ne,ie,se)?y=!0:(ne.x=E,ne.y=z,ne.transform(b),zf(this,ne,ie,se)&&(y=!0)))),rt.free(ne),Ui.free(b),rt.free(ie),rt.free(se),y};function zf(a,y,b,E){if(!a.rs(y,b,E))return!1;a=y.x,y=y.y;var x=b.x,z=b.y;return b=E.x,E=E.y,a===x?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<x?(E=a,a=x):E=x,b>=E&&b<=a)}Me.tx=function(a,y,b){function E(xt,yt){for(var Rt=xt.length,Bt=0;Bt<Rt;Bt+=2)if(yt.zd(xt[Bt],xt[Bt+1])>x)return!0;return!1}if(b&&this.fill!==null&&this.gh(a,!0))return!0;var x=a.Bf(y),z=x;if(1.5<this.strokeWidth&&(x=this.strokeWidth/2+Math.sqrt(x),x*=x),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!b){var ne=y.bounds,ie=ne.x,se=ne.y,de=ne.x+ne.width;if(ne=ne.y+ne.height,Hn(a.x,a.y,ie,se)<=x&&Hn(a.x,a.y,de,se)<=x&&Hn(a.x,a.y,ie,ne)<=x&&Hn(a.x,a.y,de,ne)<=x)return!0}if(ie=y.startX,se=y.startY,de=y.endX,ne=y.endY,y.type===Lr.j){if(b=(ie-de)*(a.x-de)+(se-ne)*(a.y-ne),Xn(a.x,a.y,ie,se,de,ne)<=(0<=(de-ie)*(a.x-ie)+(ne-se)*(a.y-se)&&0<=b?x:z))return!0}else{if(y.type===Lr.u)return y=!1,b&&(y=Xn(a.x,a.y,ie,se,ie,ne)<=x||Xn(a.x,a.y,ie,se,de,se)<=x||Xn(a.x,a.y,de,se,de,ne)<=x||Xn(a.x,a.y,ie,ne,de,ne)<=x),y;if(y.type===Lr.F){y=a.x-(ie+de)/2,z=a.y-(se+ne)/2;var pe=Math.abs(de-ie)/2,Se=Math.abs(ne-se)/2;if(pe===0||Se===0)return Xn(a.x,a.y,ie,se,de,ne)<=x;if(b){if(a=an.$y(pe,Se,y,z),a*a<=x)return!0}else return!(Hn(y,z,-pe,0)>=x||Hn(y,z,0,-Se)>=x||Hn(y,z,0,Se)>=x||Hn(y,z,pe,0)>=x)}else if(y.type===Lr.o){if(de=y.bounds,z=de.x,ie=de.y,se=de.x+de.width,de=de.y+de.height,a.x>se&&a.x<z&&a.y>de&&a.y<ie&&Xn(a.x,a.y,z,ie,z,de)>x&&Xn(a.x,a.y,z,ie,se,ie)>x&&Xn(a.x,a.y,se,de,z,de)>x&&Xn(a.x,a.y,se,de,se,ie)>x)return!1;if(z=Math.sqrt(x),b){if(this.fill===null?Dl(y,a.x,a.y,z):fs(y,a,z,!0,!1))return!0}else{for(b=y.figures,y=0;y<b.count;y++){if(z=b.s[y],ne=z.startX,pe=z.startY,a.zd(ne,pe)>x)return!1;for(ie=z.segments.s,se=ie.length,de=0;de<se;de++)switch(Se=ie[de],Se.type){case aa:case Wo:if(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x)return!1;break;case Ka:var Ne=Jr();if(an.Qe(ne,pe,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.8,Ne),ne=E(Ne,a),Hr(Ne),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case dl:if(Ne=Jr(),an.ep(ne,pe,Se.point1X,Se.point1Y,Se.endX,Se.endY,.8,Ne),ne=E(Ne,a),Hr(Ne),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case Ia:case bl:Ne=Se.type===Ia?Ts(Se,z):Ws(Se,z,ne,pe);var Oe=Ne.length;if(Oe===0){if(ne=Se.type===Ia?Se.centerX:Se.endX,pe=Se.type===Ia?Se.centerY:Se.endY,a.zd(ne,pe)>x)return!1;break}Se=null;for(var He=Jr(),Je=0;Je<Oe;Je++)if(Se=Ne[Je],He.length=0,an.Qe(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.8,He),E(He,a))return Hr(He),!1;Hr(He),Se!==null&&(ne=Se[6],pe=Se[7]);break;default:kt("Unknown Segment type: "+Se.type)}}return!0}}}return!1},Me.qc=function(){this.ua=null},Me.kq=function(){return this.ig};function xS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=rm,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=hs):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new _r(1-hs.x,hs.y)))}ro.makeGeometry=function(a,y,b){if(a.toArrow!=="None")var E=Dd[a.toArrow];else a.fromArrow!=="None"?E=Dd[a.fromArrow]:(E=an.Ze[a.figure],typeof E=="string"&&(E=an.Ze[E]),E===void 0&&kt("Unknown Shape.figure: "+a.figure),E=E(a,y,b),E.Sk=y,E.Rk=b);if(E===null){var x=an.Ze.Rectangle;typeof x=="function"&&(E=x(a,y,b))}return E};function wS(a){var y=Dd[a];if(y===void 0){var b=a.toLowerCase();if(b==="none")return"None";if(y=Dd[b],y===void 0){var E=null,x;for(x in an.um)if(x.toLowerCase()===b){E=x;break}if(E!==null)return a=Lr.parse(an.um[E],!1),Dd[E]=a,b!==E&&(Dd[b]=E),E}}return typeof y=="string"?y:y instanceof Lr?a:null}un.Object.defineProperties(ro.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,b=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||b,a),we(this)&&(a=this.part,a!==null&&ya(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Lr.parse(a);var y=a.normalize();this.geometry=a,this.position=a=rt.allocAt(-y.x,-y.y),rt.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&&ef(a,"Shape.fill"),a instanceof Fo&&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&&ef(a,"Shape.stroke"),a instanceof Fo&&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 b=this.part;b!==null&&(b.ag=NaN),this.g("strokeWidth",y,a)}else vr(a,"value >= 0",ro,"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"?vr(a,'"butt", "round", or "square"',ro,"strokeCap"):(Hf(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"?vr(a,'"miter", "bevel", or "round"',ro,"strokeJoin"):(Hf(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){Hf(this),this.Na.Jr=a,this.N();var b=this.part;b!==null&&(b.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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];0<=z&&isFinite(z)||kt("strokeDashArray:value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Hf(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 b=an.Ze[a];typeof b=="function"?b=a:(b=an.Ze[a.toLowerCase()])||kt("Unknown Shape.figure: "+a),y!==b&&(a=this.part,a!==null&&(a.ag=NaN),this.an=b,this.Rd=null,this.qc(),this.v(),this.g("figure",y,b))}}},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 b=wS(a);b===null?kt("Unknown Shape.toArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.V=b,this.Rd=null,this.qc(),this.v(),xS(this),this.g("toArrow",y,b))}}},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 b=wS(a);b===null?kt("Unknown Shape.fromArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.j=b,this.Rd=null,this.qc(),this.v(),xS(this),this.g("fromArrow",y,b))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ts},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Hf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ts},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Hf(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&&(Hf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Ji},set:function(a){var y=this.geometryStretch;y!==a&&(Hf(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 Rd),this.fa.Tk=a;var b=this.diagram;b!==null&&this.panel===b.grid&&Mc(b),this.v(),b=this.panel,b!==null&&(b.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 Rd),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 Rd),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 Rd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),ro.prototype.intersectsRect=ro.prototype.Yc,ro.prototype.containedInRect=ro.prototype.fh,ro.prototype.getNearestIntersectionPoint=ro.prototype.rs,ro.prototype.getDocumentBounds=ro.prototype.mi,ro.prototype.getDocumentPoint=ro.prototype.ga;var Dd=new wi,_v=new wi;ro.className="Shape",ro.getFigureGenerators=function(){var a=new Rn,y;for(y in an.Ze)y!==y.toLowerCase()&&a.add(y,an.Ze[y]);return a.freeze(),a},ro.defineFigureGenerator=function(a,y){var b=a.toLowerCase(),E=an.Ze;E[a]=y,E[b]=a},ro.getArrowheadGeometries=function(){var a=new Rn;for(E in an.um)if(Dd[E]===void 0){var y=Lr.parse(an.um[E],!1);Dd[E]=y,y=E.toLowerCase(),y!==E&&(Dd[y]=E)}for(var b in Dd)if(b!==b.toLowerCase()){var E=Dd[b];E instanceof Lr&&a.add(b,E)}return a.freeze(),a},ro.defineArrowheadGeometry=function(a,y){var b=null;typeof y=="string"?b=Lr.parse(y,!1):b=y,y=a.toLowerCase(),y!=="none"&&a!==y||kt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Dd;E[a]=b,E[y]=a};function Uv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Ji,this.gg=this.fg=ts}Uv.prototype.copy=function(){var a=new Uv;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 ma(a,y){return tn.call(this),u0||(vu=Da?new ul(null).context:null,u0=!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}hn(ma,tn),ma.prototype.cloneProtected=function(a){tn.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 vd(a){a.da===null?a.da=new Zv:a.da.nc&&(a.da=a.da.copy())}Me=ma.prototype,Me.th=function(){tn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function CS(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}Me.qb=function(a){a.classType===ma?this.wrap=a:tn.prototype.qb.call(this,a)},Me.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Me.v=function(){tn.prototype.v.call(this)},Me.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var b=this.naturalBounds,E=this.actualBounds,x=b.width,z=b.height,ne=Qg(this),ie=a.textAlign=this.textAlign,se=y.tn;ie==="start"?ie=se?"right":"left":ie==="end"&&(ie=se?"left":"right"),se=this.isUnderline;var de=this.isStrikethrough;Ra(this,a,this.xc,!0,!1,b,E),(se||de)&&Ra(this,a,this.xc,!1,!1,b,E),E=0,b=!1;var pe=this.oe,Se=pe.dx-(ne*pe.m21+pe.dx);pe=pe.dy-(ne*pe.m22+pe.dy);var Ne=y.scale;switch(8>(Se*Se+pe*pe)*Ne*Ne&&(b=!0),y.ib!==a&&(b=!1),y.ib instanceof Go&&(b=!1),y.Gf("textGreeking")===!1&&(b=!1),y=this.spacingAbove,Se=this.spacingBelow,this.flip){case Po:a.translate(x,0),a.scale(-1,1);break;case oo:a.translate(0,z),a.scale(1,-1);break;case Qo:a.translate(x,z),a.scale(-1,-1)}if(a.yc(),pe=this.Gc,Ne=(y+ne+Se)*pe,z>Ne&&(E=this.verticalAlignment,E=E.y*z-E.y*Ne+E.offsetY),pe===1&&this.ze!==null)Se=this.Cb,Se>x&&(Se=x),this.Oj(this.ze,a,0,E+y,x,ne,Se,b,ie,se,de);else if(this.Qc!==null&&this.Qb!==null)for(Ne=0;Ne<pe;Ne++){var Oe=this.Qc[Ne];Oe>x&&(Oe=x),E+=y,this.Oj(this.Qb[Ne],a,0,E,x,ne,Oe,b,ie,se,de),E+=ne+Se}switch(this.flip){case Po:a.scale(-1,1),a.translate(-x,0);break;case oo:a.scale(1,-1),a.translate(0,-z);break;case Qo:a.scale(-1,-1),a.translate(-x,-z)}}},Me.Oj=function(a,y,b,E,x,z,ne,ie,se,de,pe){var Se=0;if(ie)se==="left"?Se=0:se==="right"?Se=x-ne:se==="center"&&(Se=(x-ne)/2),y.fillRect(b+Se,E+.25*z,ne,1);else{if(se==="left"?Se=0:se==="right"?Se=x:se==="center"&&(Se=x/2),x=o0!==null?o0(this,z):.75*z,y.fillText(a,b+Se,E+x),a=z/20|0,a===0&&(a=1),se==="right"?Se-=ne:se==="center"&&(Se-=ne/2),de){ie=a0!==null?a0(this,z):.8*z,se=b+Se,de=E+ie,x=b+Se+ne,ie=E+ie;var Ne=a;y.beginPath(),y.lineWidth=Ne,y.moveTo(se,de),y.lineTo(x,ie),y.stroke(),y.Se(),y instanceof Go&&y.ad.classList.add("gojs-td")}pe&&(pe=E+z-z/2.2|0,a%2!==0&&(pe+=.5),E=b+Se,z=pe,b=b+Se+ne,ne=pe,Se=a,y.beginPath(),y.lineWidth=Se,y.moveTo(E,z),y.lineTo(b,ne),y.stroke(),y.Se(),y instanceof Go&&y.ad.classList.add("gojs-td"))}},Me.kk=function(a,y,b){if(!tn.prototype.kk.call(this,a,y,b))return!1;if(Ra(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),b){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),b=0;b<y.length;b++)mu(a,y[b],!1)}else y=this.svg,y.innerHTML=this.text,mu(a,y,!0);return!0},Me.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:tn.prototype.nk.call(this,a)},Me.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var b=0;b<a.length;b++)a[b].setAttributeNS(null,"filter",y)}},Me.Wl=function(a,y,b,E){var x=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;vu!==null&&DS!==z&&(DS=vu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;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 ie=ne=0,se=!1;!se;){var de=z.indexOf(`
`,ie);de===-1&&(de=z.length,se=!0),ie=z.substr(ie,de-ie),this.formatting===Jg&&(ie=ie.trim()),ne=Math.max(ne,Bc(ie)),ie=de+1}z=ne}else ne=z.indexOf(`
`,0),0<=ne&&(z=z.substr(0,ne)),z=Bc(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)),ne=TS(this,z),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,se=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===s0&&(y=this.Ae,y=this.overflow===s0?PS(y):0,de=this.spacingAbove+this.spacingBelow,de=Math.max(0,Qg(this)+de),se=Math.min(this.maxLines-1,Math.max(Math.floor(se/de+.01)-1,0)),!(se+1>=this.Qb.length))){for(this.l|=16777216,de=this.Qb[se],y=Math.max(1,a-y);Bc(de)>y&&1<de.length;)de=de.substr(0,de.length-1);de+=qg,y=Bc(de),this.Qb[se]=de,this.Qb=this.Qb.slice(0,se+1),this.Qc[se]=y,this.Qc=this.Qc.slice(0,se+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===AS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(b,z),ne=Math.max(E,ne),so(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&x!==this.Gc&&(this.Uc=!0)},Me.eh=function(a,y,b,E){Cl(this,a,y,b,E)};function Xg(a,y,b){a.ze===null?(a.ze=y,a.Cb=b):((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(b),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Hv(a,y,b,E){var x=a.formatting===Jg;x&&(y=y.trim());var z=0,ne=a.Ae,ie=a.spacingAbove+a.spacingBelow;ie=Math.max(0,Qg(a)+ie);var se=a.overflow===s0?PS(ne):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ie);else if(ne=y,a.wrap===zv){a.Le=1;var de=Bc(y);if(se===0||de<=b)a.Cb=Math.max(a.Cb,de),Xg(a,y,a.Cb),E!==null&&E.h(de,ie);else{for(z=dg(a,ne),ne=ne.substr(z.length),y=dg(a,ne),de=Bc(z+y);0<y.length&&de<=b;)z+=y,ne=ne.substr(y.length),y=dg(a,ne),de=z+y,x&&(de=de.trim()),de=Bc(de);for(x&&(y=y.trim()),z+=y,b=Math.max(1,b-se);Bc(z)>b&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=qg;var pe=Bc(z);a.Cb=pe,Xg(a,z,pe),E!==null&&E.h(pe,ie)}}else{for(se=0,ne.length===0&&(se=1,Xg(a,ne,0));0<ne.length;){for(y=dg(a,ne),ne=ne.substr(y.length);Bc(y)>b;){var Se=1;for(de=Bc(y.substr(0,Se)),pe=0;de<=b;)Se++,pe=de,de=Bc(y.substr(0,Se));if(Se===1){var Ne=de;z=Math.max(z,de)}else Ne=pe,z=Math.max(z,pe);if(Se--,1>Se&&(Se=1),Xg(a,y.substr(0,Se),Ne),se++,y=y.substr(Se),a.Gc+se>a.maxLines)break}for(pe=dg(a,ne),de=Bc(y+pe);0<pe.length&&de<=b;)y+=pe,ne=ne.substr(pe.length),pe=dg(a,ne),de=y+pe,x&&(de=de.trim()),de=Bc(de);if(x&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),pe.length===0?(Se=de,z=Math.max(z,de)):(Se=pe=Bc(y),z=Math.max(z,pe)),Xg(a,y,Se),se++,a.Gc+se>a.maxLines))break}a.Le=Math.min(a.maxLines,se),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ie*a.Le)}}function dg(a,y){if(a.wrap===LS)return y.substr(0,1);for(var b=y.length,E=0,x=lE;E<b&&!x.test(y.charAt(E));)E++;for(a.formatting===kS&&(b=Math.min(b,E+1));E<b&&x.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Bc(a){return vu===null?8*a.length:vu.measureText(a).width}function Qg(a){if(a.df!==null)return a.df;var y=a.Ae;if(vu===null){var b=16;return a.df=b}return Vv[y]!==void 0&&5e3>IS?b=Vv[y]:(b=1.3*vu.measureText("M").width,Vv[y]=b,IS++),a.df=b}function PS(a){if(vu===null)return 6;if(l0[a]!==void 0&&5e3>Wv)var y=l0[a];else y=vu.measureText(qg).width,l0[a]=y,Wv++;return y}function TS(a,y){var b=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Qg(a)+E),b.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var x=b.indexOf(`
`,0);0<=x&&(b=b.substr(0,x))}x=0;for(var z=a.Gc=0,ne,ie=!1;!ie;){if(ne=b.indexOf(`
`,z),ne===-1&&(ne=b.length,ie=!0),z<=ne){if(z=b.substr(z,ne-z),a.wrap!==zv){a.Le=0;var se=cn.alloc();Hv(a,z,y,se),x+=se.height,cn.free(se),a.Gc+=a.Le}else Hv(a,z,y,null),x+=E,a.Gc++;a.Gc===a.maxLines&&(ie=!0)}z=ne+1}return a.Lq=x}un.Object.defineProperties(ma.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"||(vd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:mr},set:function(a){var y=this.flip;y!==a&&(vd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ou},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),vd(this),this.da.Yr=a,Ll(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=cn.alloc();Hv(this,this.ec,999999,a);var y=a.width;cn.free(a),a=TS(this,y);var b=this.desiredSize;isNaN(b.width)||(y=b.width),isNaN(b.height)||(a=b.height),so(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:Gv},set:function(a){var y=this.wrap;y!==a&&(vd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:jv},set:function(a){var y=this.overflow;y!==a&&(vd(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&&ef(a,"TextBlock.stroke"),a instanceof Fo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Qg(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&&(vd(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&&(vd(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 Rd),this.fa.Tk=a,this.v();var b=this.panel;b!==null&&(b.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 Rd),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 Rd),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 Rd),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 Rd),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&&(vd(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&&(vd(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&&(vd(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&&(vd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Jg},set:function(a){var y=this.formatting;y!==a&&(vd(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&&vr(a,"> 0",ma,"maxLines"),vd(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 o0=null,a0=null,zv=new Ln(ma,"None",0),AS=new Ln(ma,"WrapFit",1),Gv=new Ln(ma,"WrapDesiredSize",2),LS=new Ln(ma,"WrapBreakAll",3),jv=new Ln(ma,"OverflowClip",0),s0=new Ln(ma,"OverflowEllipsis",1),Jg=new Ln(ma,"FormatTrim",0),kS=new Ln(ma,"FormatNone",0),lE=/[ \u200b\u00ad]/,Vv=new wi,IS=0,l0=new wi,Wv=0,qg="...",DS="",vu=null,u0=!1;ma.className="TextBlock";function Zv(){this.nc=!1,this.Hd=null,this.Xf=mr,this.gq=Jg,this.Jq=1/0,this.$q=jv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ou,this.$r=Gv}Zv.prototype.copy=function(){var a=new Zv;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},ma.getEllipsis=function(){return qg},ma.setEllipsis=function(a){qg=a,l0=new wi,Wv=0},ma.getBaseline=function(){return o0},ma.setBaseline=function(a){o0=a},ma.getUnderline=function(){return a0},ma.setUnderline=function(a){a0=a},ma.isValidFont=function(a){if(u0||(vu=Da?new ul(null).context:null,u0=!0),vu===null)return!0;var y=vu.font;if(a===y||a==="10px sans-serif")return!0;vu.font="10px sans-serif",vu.font=a;var b=vu.font;if(b!=="10px sans-serif")return vu.font=y,!0;vu.font="19px serif";var E=vu.font;return vu.font=a,b=vu.font,vu.font=y,b!==E},ma.FormatNone=kS,ma.FormatTrim=Jg,ma.None=zv,ma.OverflowClip=jv,ma.OverflowEllipsis=s0,ma.WrapBreakAll=LS,ma.WrapDesiredSize=Gv,ma.WrapFit=AS;function Rd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Rd.prototype.copy=function(){var a=new Rd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Rd.className="GradElementSettings";function yu(a,y){tn.call(this),this.Eg=null,this.qo="",this.Xg=Gs,this.Nk=Cr,this.Zg=this.Hd=null,this.Mk=uo,this.Xf=mr,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 hg;hn(yu,tn),yu.prototype.cloneProtected=function(a){tn.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},yu.prototype.qb=function(a){a===mr||a===bi||a===yo?this.imageStretch=a:tn.prototype.qb.call(this,a)},yu.prototype.toString=function(){return"Picture("+this.source+")#"+Mi(this)};function fg(a){a===void 0&&(a=""),a!==""?hg[a]&&(delete hg[a],c0--):(hg=new wi,c0=0)}function RS(a,y){y.qy||(y.Fq=function(b){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var x=E.value;x.N();var z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null)for(var ie=ne.length,se=0;se<ie;se++)z=ne[se],x.Xn.add(z),z.Uc=!0,x.$b(),y.hn&&(y.eu===void 0&&(y.eu=b),z.Zg!==null&&z.Zg(z,b))}y.Bg.clear()}a.desiredSize.w()||(Tt(a,!1),a.v())},y.Yp=function(b){y.ln=b;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var x=E.value,z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null){x=ne.length,z=Jr();for(var ie=0;ie<x;ie++)z.push(ne[ie]);if(y.hn)for(ie=0;ie<x;ie++)ne=z[ie],ne.Hd!==null&&ne.Hd(ne,b);Hr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}yu.prototype.hA=function(){if(this.source!==""){fg(this.source);var a=this.source;this.source="",this.source=a}},yu.prototype.redraw=function(){this.N(),this.Uc=!0},yu.prototype.hh=function(a,y){var b=this.Eg;if(b!==null){var E=b.getAttribute("src");if(!(b instanceof HTMLImageElement&&(E===null||E==="")||b.ln instanceof Event&&a instanceof $c)){var x=a instanceof Go;E=this.naturalBounds;var z=0,ne=0,ie=this.qn,se=ie?+b.width:b.naturalWidth;if(ie=ie?+b.height:b.naturalHeight,se===void 0&&b.videoWidth&&(se=b.videoWidth),ie===void 0&&b.videoHeight&&(ie=b.videoHeight),se=se||E.width,ie=ie||E.height,se!==0&&ie!==0){var de=se,pe=ie;this.sourceRect.w()&&(z=this.Xg.x,ne=this.Xg.y,se=this.Xg.width,ie=this.Xg.height);var Se=se,Ne=ie,Oe=this.Nk,He=this.Mk;switch(Oe){case mr:if(this.sourceRect.w())break;Se>=E.width&&(z=z+He.offsetX+(Se*He.x-E.width*He.x)),Ne>=E.height&&(ne=ne+He.offsetY+(Ne*He.y-E.height*He.y)),se=Math.min(E.width,Se),ie=Math.min(E.height,Ne);break;case Cr:Se=E.width,Ne=E.height;break;case bi:case yo:Oe===bi?(Oe=Math.min(E.height/Ne,E.width/Se),Se*=Oe,Ne*=Oe):Oe===yo&&(Oe=Math.max(E.height/Ne,E.width/Se),Se*=Oe,Ne*=Oe,Se>=E.width&&(z=(z+He.offsetX+(Se*He.x-E.width*He.x)/Se)*se),Ne>=E.height&&(ne=(ne+He.offsetY+(Ne*He.y-E.height*He.y)/Ne)*ie),se*=1/(Se/E.width),ie*=1/(Ne/E.height),Se=E.width,Ne=E.height)}Oe=this.Df()*y.scale;var Je=Se*Oe*Ne*Oe,xt=se*ie/Je,yt=b.__goCache;Oe=null;var Rt=uE;if(!x){if(b.sq&&yt!==void 0&&4<Je&&xt>Rt*Rt)for(yt.gi===null&&(OS(yt,4,de,pe,b),OS(yt,16,de,pe,b)),x=yt.gi,de=x.length,pe=0;pe<de&&x[pe].ratio*x[pe].ratio<xt;pe++)Oe=x[pe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{x=new ul(null).context;try{x.drawImage(this.Eg,0,0)}catch(Bt){this.en=!1}try{x.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Bt){this.vl=!0}}if(this.vl)return}}switch(x=Se<E.width?He.offsetX+(E.width*He.x-Se*He.x):0,He=Ne<E.height?He.offsetY+(E.height*He.y-Ne*He.y):0,this.flip){case Po:a.translate(Math.min(E.width,Se),0),a.scale(-1,1);break;case oo:a.translate(0,Math.min(E.height,Ne)),a.scale(1,-1);break;case Qo:a.translate(Math.min(E.width,Se),Math.min(E.height,Ne)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&yt!==void 0&&Oe!==null&&Oe.ratio!==1){a.save(),y=Oe.ratio;try{a.drawImage(Oe.source,z/y,ne/y,Math.min(Oe.source.width,se/y),Math.min(Oe.source.height,ie/y),x,He,Math.min(E.width,Se),Math.min(E.height,Ne)),a instanceof Go&&(this.bt=[z/y,ne/y,Math.min(Oe.source.width,se/y),Math.min(Oe.source.height,ie/y),x,He,Math.min(E.width,Se),Math.min(E.height,Ne)])}catch(Bt){this.en=!1}a.restore()}else try{a.drawImage(b,z,ne,se,ie,x,He,Math.min(E.width,Se),Math.min(E.height,Ne)),a instanceof Go&&(this.bt=[z,ne,se,ie,x,He,Math.min(E.width,Se),Math.min(E.height,Ne)])}catch(Bt){this.en=!1}switch(this.flip){case Po:a.scale(-1,1),a.translate(-Math.min(E.width,Se),0);break;case oo:a.scale(1,-1),a.translate(0,-Math.min(E.height,Ne));break;case Qo:a.scale(-1,-1),a.translate(-Math.min(E.width,Se),-Math.min(E.height,Ne))}}}}},yu.prototype.Wl=function(a,y,b,E){var x=this.desiredSize,z=_l(this,!0),ne=this.Eg,ie=this.qn,se=0,de=0;(ie||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(x.width)||(a=0),isFinite(x.height)||(y=0)):(se=ie?+ne.width:ne.naturalWidth,de=ie?+ne.height:ne.naturalHeight),isFinite(x.width)||z===Cr||z===Ci?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=se)),b=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:se),isFinite(x.height)||z===Cr||z===Fi?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=de)),E=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:de),isFinite(x.width)&&(a=x.width),isFinite(x.height)&&(y=x.height),x=this.maxSize,z=this.minSize,b=Math.max(b||0,z.width),E=Math.max(E||0,z.height),a=Math.min(x.width,a),y=Math.min(x.height,y),a=Math.max(b,a),y=Math.max(E,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),so(this.dc,a,y),this.Ge(0,0,a,y)},yu.prototype.eh=function(a,y,b,E){Cl(this,a,y,b,E)},un.Object.defineProperties(yu.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 b=a instanceof HTMLImageElement;a===null||b||a instanceof HTMLVideoElement||this.qn||kt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&hp(E,this),this.Eg=a,a!==null&&b&&a.Bg===void 0&&(a.Bg=new ur),E!==null&&b&&Kd(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Tt(this,!1),this.v())):b&&RS(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 b=hg;if(Da){var E=null;if(b[a]!==void 0)E=b[a];else if(a!==""){30<c0&&(fg(),b=hg),E=Wr("img"),E.hn=!0,RS(this,E);var x=this.rl;x!==null&&(E.crossOrigin=x(this)),E.src=a,b[a]=E,c0++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new MS),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}}}),yu.prototype.redraw=yu.prototype.redraw,yu.prototype.reloadSource=yu.prototype.hA;var c0=0,uE=4;yu.className="Picture",hg=new wi,yu.clearCache=fg;function MS(){this.gi=null}function OS(a,y,b,E,x){a.gi===null&&(a.gi=[]);var z=new ul(null),ne=z.context,ie=1/y;z.width=b/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new FS(z.Oa,y),b=1,0<a.gi.length&&(b=a.gi[a.gi.length-1],x=b.source,b=b.ratio),ne.setTransform(ie*b,0,0,ie*b,0,0),ne.yc(),ne.drawImage(x,0,0),a.gi.push(y))}MS.className="PictureCacheArray";function FS(a,y){this.source=a,this.ratio=y}FS.className="PictureCacheInstance";function pg(){this.os=new Lr,this.mc=null}pg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Lr,this.mc=null};function gg(a,y,b,E,x,z){a.mc=new Va,a.mc.startX=y,a.mc.startY=b,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),x!==void 0&&(a.mc.isShadowed=x)}function cE(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}pg.prototype.moveTo=function(a,y,b){b===void 0&&(b=!1);var E=new wo(aa);E.endX=a,E.endY=y,b&&E.close(),this.mc.segments.add(E)},pg.prototype.lineTo=function(a,y,b){b===void 0&&(b=!1);var E=new wo(Wo);E.endX=a,E.endY=y,b&&E.close(),this.mc.segments.add(E)};function Th(a,y,b,E,x,z,ne){var ie;ie===void 0&&(ie=!1);var se=new wo(Ka);se.point1X=y,se.point1Y=b,se.point2X=E,se.point2Y=x,se.endX=z,se.endY=ne,ie&&se.close(),a.mc.segments.add(se)}function d0(a,y,b,E,x){var z;z===void 0&&(z=!1);var ne=new wo(dl);ne.point1X=y,ne.point1Y=b,ne.endX=E,ne.endY=x,z&&ne.close(),a.mc.segments.add(ne)}pg.prototype.arcTo=function(a,y,b,E,x,z,ne){z===void 0&&(z=0),ne===void 0&&(ne=!1);var ie=new wo(Ia);ie.startAngle=a,ie.sweepAngle=y,ie.centerX=b,ie.centerY=E,ie.radiusX=x,ie.radiusY=z!==0?z:x,ne&&ie.close(),this.mc.segments.add(ie)};function dE(a,y,b,E,x,z,ne,ie){var se;se===void 0&&(se=!1),y=new wo(bl,ne,ie,y,b,E,x,z),se&&y.close(),a.mc.segments.add(y)}function BS(a){var y=h0;return y!==null?(h0=null,y.reset(a),y):(y=new pg,y.reset(a),y)}var h0=null;pg.className="StreamGeometryContext";function kl(a,y){var b=a.toLowerCase(),E=an.Ze;E[a]=y,E[b]=a}kl("Rectangle",function(a,y,b){a="r"+y+","+b;var E=an.Mf[a];return E!==void 0||(E=new Lr(Lr.u),E.endX=y,E.endY=b,an.Nf<an.vm&&(an.Mf[a]=E,an.Nf++)),E}),kl("Square",function(a,y,b){a="s"+y+","+b;var E=an.Mf[a];return E!==void 0||(E=new Lr(Lr.u),E.endX=y,E.endY=b,E.defaultStretch=bi,an.Nf<an.vm&&(an.Mf[a]=E,an.Nf++)),E}),kl("RoundedRectangle",function(a,y,b){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,b/3);var E="rr"+y+","+b+","+a,x=an.Mf[E];if(x!==void 0)return x;var z=a*an.wg;return x=new Lr().add(new Va(a,0,!0).add(new wo(Wo,y-a,0)).add(new wo(Ka,y,a,y-z,0,y,z)).add(new wo(Wo,y,b-a)).add(new wo(Ka,y-a,b,y,b-z,y-z,b)).add(new wo(Wo,a,b)).add(new wo(Ka,0,b-a,z,b,0,b-z)).add(new wo(Wo,0,a)).add(new wo(Ka,a,0,0,z,z,0).close())),1<z&&(x.spot1=new _r(0,0,z,z),x.spot2=new _r(1,1,-z,-z)),an.Nf<an.vm&&(an.Mf[E]=x,an.Nf++),x}),kl("Border","RoundedRectangle"),kl("Ellipse",function(a,y,b){a="e"+y+","+b;var E=an.Mf[a];return E!==void 0||(E=new Lr(Lr.F),E.endX=y,E.endY=b,E.spot1=Sa,E.spot2=Ho,an.Nf<an.vm&&(an.Mf[a]=E,an.Nf++)),E}),kl("Circle",function(a,y,b){a="c"+y+","+b;var E=an.Mf[a];return E!==void 0||(E=new Lr(Lr.F),E.endX=y,E.endY=b,E.spot1=Sa,E.spot2=Ho,E.defaultStretch=bi,an.Nf<an.vm&&(an.Mf[a]=E,an.Nf++)),E}),kl("TriangleRight",function(a,y,b){return new Lr().add(new Va(0,0).add(new wo(Wo,y,.5*b)).add(new wo(Wo,0,b).close())).pm(0,.25,.5,.75)}),kl("TriangleDown",function(a,y,b){return new Lr().add(new Va(0,0).add(new wo(Wo,y,0)).add(new wo(Wo,.5*y,b).close())).pm(.25,0,.75,.5)}),kl("TriangleLeft",function(a,y,b){return new Lr().add(new Va(y,b).add(new wo(Wo,0,.5*b)).add(new wo(Wo,y,0).close())).pm(.5,.25,1,.75)}),kl("TriangleUp",function(a,y,b){return new Lr().add(new Va(y,b).add(new wo(Wo,0,b)).add(new wo(Wo,.5*y,0).close())).pm(.25,.5,.75,1)}),kl("Triangle","TriangleUp"),kl("Diamond",function(a,y,b){return new Lr().add(new Va(.5*y,0).add(new wo(Wo,0,.5*b)).add(new wo(Wo,.5*y,b)).add(new wo(Wo,y,.5*b).close())).pm(.25,.25,.75,.75)}),kl("LineH",function(a,y,b){return a=new Lr(Lr.j),a.startX=0,a.startY=b/2,a.endX=y,a.endY=b/2,a}),kl("LineV",function(a,y,b){return a=new Lr(Lr.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=b,a}),kl("None","Rectangle"),kl("BarH","Rectangle"),kl("BarV","Rectangle"),kl("MinusLine","LineH"),kl("PlusLine",function(a,y,b){return new Lr().add(new Va(0,b/2,!1).add(new wo(Wo,y,b/2)).add(new wo(aa,y/2,0)).add(new wo(Wo,y/2,b)))}),kl("XLine",function(a,y,b){return new Lr().add(new Va(0,b,!1).add(new wo(Wo,y,0)).add(new wo(aa,0,0)).add(new wo(Wo,y,b)))}),kl("LineRight",function(a,y,b){return new Lr().add(new Va(.25*y,0,!1).add(new wo(Wo,.75*y,.5*b)).add(new wo(Wo,.25*y,b)))}),kl("LineDown",function(a,y,b){return new Lr().add(new Va(0,.25*b,!1).add(new wo(Wo,.5*y,.75*b)).add(new wo(Wo,y,.25*b)))}),kl("LineLeft",function(a,y,b){return new Lr().add(new Va(.75*y,0,!1).add(new wo(Wo,.25*y,.5*b)).add(new wo(Wo,.75*y,b)))}),kl("LineUp",function(a,y,b){return new Lr().add(new Va(0,.75*b,!1).add(new wo(Wo,.5*y,.25*b)).add(new wo(Wo,y,.75*b)))}),an.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 Kv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Oi,this.ir=null,this.jr="",this.lr=ts,this.Gq="",this.Hq=No,this.Pq=Sr,this.Kq=zr,this.Up=null,this.Cq=127,this.zr=ni,this.yr="gray",this.Vg=4}Kv.prototype.copy=function(){var a=new Kv;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 ki(a,y){a===void 0||a instanceof Ls||typeof a=="string"?Nr.call(this,a):(Nr.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 rt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new An,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}hn(ki,Nr),ki.prototype.cloneProtected=function(a){Nr.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},Me=ki.prototype,Me.Af=function(a){Nr.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Me.toString=function(){var a=Jn(this.constructor)+"#"+Mi(this);return this.data!==null&&(a+="("+hi(this.data)+")"),a};function Su(a){a.P===null?a.P=new Kv:a.P.nc&&(a.P=a.P.copy())}Me.th=function(){Nr.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Me.gk=function(a,y,b,E,x,z,ne){var ie=this.diagram;ie!==null&&(a===Ta&&y==="elements"?x instanceof Nr?Uf(x,function(se){by(ie.partManager,se),bh(ie,se)}):Kd(ie,x):a===ka&&y==="elements"&&(x instanceof Nr?Uf(x,function(se){Ey(ie.partManager,se,ie)}):hp(ie,x)),ie.cb(a,y,b,E,x,z,ne))},Me.La=function(a){if(Nr.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E];x instanceof Nr&&Uf(x,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ki.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ki.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ki.prototype.bh=function(a,y){if(y!==null){var b=null,E=this.Qf;if(E!==null&&(b=E.I(a)),b!==y){if(b!==null){var x=b.diagram;x!==null&&x.remove(b)}E===null&&(this.Qf=E=new Rn),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},ki.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var b=y.I(a);if(b!==null){var E=b.diagram;E!==null&&E.remove(b)}y.remove(a),y.count===0&&(this.Qf=null)}},ki.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Jr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var b=0;b<a;b++)this.Jf(y[b]);Hr(y)}},ki.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var b=y.value;b.v(),b.placeholder&&b.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(b=this.Pj("Selection"),b===null){if(b=this.selectionAdornmentTemplate,b===null&&(b=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof $i?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(b instanceof _o))break e;Pc(b),b=b.copy(),b!==null&&(this.ph()&&this.selectionObject===this.path&&(b.type=Nr.Link),b.adornedObject=y)}if(b!==null){b.type===Nr.Link&&b.v(),this.bh("Selection",b);break e}}this.Jf("Selection")}for(hE(this,a),y=this.adornments;y.next();)y.value.La()}},ki.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Yv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function hE(a,y){y.toolManager.mouseDownTools.each(function(b){b.isEnabled&&b.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function f0(a){if(rf(a)===!1){Qv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function _S(a){if(a.G|=2097152,rf(a)!==!1){var y=a.position,b=a.location;b.w()&&y.w()||zS(a,y,b),b=a.Ib;var E=An.alloc().assign(b);b.ka(),b.x=y.x,b.y=y.y,b.freeze(),a.Xl(E,b),An.free(E),Qv(a,!1)}}ki.prototype.Ge=function(a,y,b,E){var x=this.uc;x.h(a,y,b,E),this.Lb===null&&(this.Lb=new Ui);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),this.Lb=z,z.ws()||z.pp(x)},ki.prototype.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=uo;this.locationSpot.sb()&&(z=this.locationSpot);var ne=rt.alloc();if(this.locationObject!==this)for(y=this.locationObject,b=y.naturalBounds,ne.yi(b.x,b.y,b.width,b.height,z),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ne),ne.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ne.yi(y,b,E,x,z);a.rotate(this.Kb,ne.x,ne.y),rt.free(ne)}},ki.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ki.prototype.moveTo=function(a,y,b){a=rt.allocAt(a,y),this.move(a,b),rt.free(a)},ki.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())},ki.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())},ki.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Rn),y.I(a)!==null)return y.I(a);var b=Nr.prototype.fb.call(this,a);return b!==null?(y.set(a,b),b):(y.set(a,null),null)};function Ah(a,y,b,E){E===void 0&&(E=new rt),b=b.Mc()?uo:b;var x=y.naturalBounds;if(E.h(x.width*b.x+b.offsetX,x.height*b.y+b.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}ki.prototype.mi=function(a){return a===void 0&&(a=new An),a.assign(this.actualBounds)},ki.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function US(a){var y=rt.alloc(),b=a.locationObject,E=b.naturalBounds,x=b instanceof ro?b.strokeWidth:0;if(y.yi(0,0,E.width+x,E.height+x,a.locationSpot),b!==a)for(y.offset(-x/2,-x/2),b.transform.Ga(y),b=b.panel;b!==null&&b!==a;)b.transform.Ga(y),b=b.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Gf(a,y){var b=a.py;isNaN(a.ag)&&(a.ag=gS(a));var E=a.ag,x=2*E;if(!a.isShadowed)return b.h(y.x-1-E,y.y-1-E,y.width+2+x,y.height+2+x),b;E=y.x,x=y.y;var z=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,z+=ne,y+=ne,E-=ne/2,x-=ne/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(x+=a.y,y-=a.y),b.h(E-1,x-1,z+2,y+2),b}ki.prototype.arrange=function(){if(Ut(this)===!1)_S(this);else{Kt(this,!1);var a=this.Ib,y=An.alloc();y.assign(a);var b=of(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;zS(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(b):!this.Zc()||an.B(y.width,a.width)&&an.B(y.height,a.height)||0<=this.vw&&this.C(16),An.free(y),Qv(this,!1)}},Me=ki.prototype,Me.Xl=function(a,y){var b=this.diagram;if(b!==null){var E=!1;if(b.Zi===!1&&a.w()){var x=An.alloc();x.assign(b.documentBounds),x.Fv(b.padding),a.x>x.x&&a.y>x.y&&a.right<x.right&&a.bottom<x.bottom&&y.x>x.x&&y.y>x.y&&y.right<x.right&&y.bottom<x.bottom&&(E=!0),An.free(x)}!(this.G&65536)&&a.D(y)||VS(this,E,b),b.N(),!a.w()&&!y.w()||ho(a,y)||(this instanceof ii&&!b.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Me.zv=function(a,y,b){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&HS(this,E,a,y,b),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new rt(E.x+(a.x-y),E.y+(a.y-b)),this.g("location",E,this.ke.copy())),rf(this)===!1&&Ut(this)===!1&&(f0(this),_S(this)),!0};function HS(a,y,b,E,x){y===null||a instanceof _o||(y=y.animationManager,y.zb&&Qu(y,a,new rt(E,x),b))}Me.mm=function(a,y,b){var E=this.ke,x=this.pa;if(b){if(E.x===a&&E.y===y)return;rf(this)||Ut(this)?x.h(NaN,NaN):x.h(x.x+a-E.x,x.y+y-E.y),E.h(a,y)}else{if(x.x===a&&x.y===y)return;E.h(E.x+a-x.x,E.y+y-x.y),x.h(a,y)}f0(this)},Me.Av=function(){this.G&=-2097153,f0(this)};function zS(a,y,b){var E=US(a),x=a.diagram,z=b.w(),ne=y.w();z&&ne?a.G&2097152?GS(a,y,b,x,E):jS(a,y,b,x,E):z?GS(a,y,b,x,E):ne&&jS(a,y,b,x,E),a.G|=2097152,rt.free(E),a.Uk()}function GS(a,y,b,E,x){var z=y.x,ne=y.y;y.h(b.x-x.x,b.y-x.y),E!==null&&(b=E.animationManager,(E=b.defaultAnimation.isAnimating)||!b.zb||a instanceof _o||Qu(b,a,new rt(z,ne),y),E||y.x===z&&y.y===ne||a.g("position",new rt(z,ne),y.copy()))}function jS(a,y,b,E,x){var z=b.copy();b.h(y.x+x.x,y.y+x.y),b.D(z)||E===null||a.g("location",z,b.copy())}function VS(a,y,b){Jv(a,!1),a instanceof ii&&Xd(b,a),a.layer.isTemporary||y||b.Ya(),y=a.Ib;var E=b.viewportBounds;E.w()?of(a)?(Vn(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():b.vd=!0}Me.si=function(){return!0},Me.Zc=function(){return!0},Me.ph=function(){return!1},Me.Dd=function(){return!0};function Xv(a,y,b,E){y.constructor===a.constructor||KS||(KS=!0,Qr('Should not change the class of the Part when changing category from "'+b+'" to "'+E+'"'),Qr(" Old class: "+Jn(a.constructor)+", new class: "+Jn(y.constructor)+", part: "+a.toString())),a.Ej();var x=a.data;b=a.layerName;var z=a.isSelected,ne=a.isHighlighted,ie=!0,se=!0,de=!1;a instanceof ii&&(ie=a.isTreeLeaf,se=a.isTreeExpanded,de=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=x,a.G=z?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof ii&&(a.U=ie?a.U|4:a.U&-5,a.U=se?a.U|1:a.U&-2,a.U=de?a.U|2:a.U&-3),x!==null&&a.La(),x=a.layerName,x!==b&&(a.Jg=b,a.layerName=x),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}ki.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},ki.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},ki.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},ki.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},ki.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},ki.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},ki.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},ki.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},ki.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 rf(a){return(a.G&32768)!==0}function Qv(a,y){a.G=y?a.G|32768:a.G&-32769}function Jv(a,y){a.G=y?a.G|65536:a.G&-65537}function of(a){return(a.G&131072)!==0}Me=ki.prototype,Me.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function p0(a,y){a.G=y?a.G|1048576:a.G&-1048577}Me.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Me.N=function(){var a=this.diagram;a!==null&&!Ut(this)&&!rf(this)&&this.isVisible()&&this.Ib.w()&&a.N(Gf(this,this.Ib))},Me.v=function(){Nr.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof ii&&this.labeledLink!==null&&Ll(this.labeledLink),a.$b(!0))},Me.Vo=function(a){a||(a=this.Ah,a!==null&&ry(a,this))},Me.Wo=function(a){a||(a=this.Ah,a!==null&&iy(a,this))},Me.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Me.oz=function(){return qv(this,this)};function qv(a,y){var b=y.containingGroup;return b!==null?1+qv(a,b):y instanceof ii&&(y=y.labeledLink,y!==null)?qv(a,y):0}Me.sz=function(){return WS(this,this)};function WS(a,y){var b=y.containingGroup;return b!==null||y instanceof ii&&(b=y.labeledLink,b!==null)?WS(a,b):y}Me.Td=function(a){return a instanceof $i?$v(this,this,a):!1};function $v(a,y,b){if(y===b||b===null)return!1;var E=y.containingGroup;return E===null||E!==b&&!$v(a,E,b)?y instanceof ii&&(y=y.labeledLink,y!==null)?$v(a,y,b):!1:!0}Me.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof $i&&p0(y,!0),y instanceof ii){var b=y.labeledLink;b!==null&&(y=b)}y=y.containingGroup}for(b=null,y=a;y!==null;){if(y.G&1048576){b=y;break}y instanceof ii&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof $i&&p0(y,!1),y instanceof ii&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return b},ki.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof ii&&this.isLinkLabel)},ki.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 ii&&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 b=y.layout;b!==null?b.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function ZS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function af(a,y,b,E,x,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof _o)){if(a.add(y),y instanceof ii){if(b&&y instanceof $i)for(var ne=y.memberParts;ne.next();)af(a,ne.value,b,E,x,z);if(x!==!1)for(ne=y.linksConnected;ne.next();){var ie=ne.value;if(!a.contains(ie)){var se=ie.fromNode,de=ie.toNode;se=se===null||a.contains(se),de=de===null||a.contains(de),(x?se&&de:se||de)&&af(a,ie,b,E,x,z)}}if(1<E)for(y=y.Ou();y.next();)af(a,y.value,b,E-1,x,z)}else if(y instanceof Mr)for(y=y.labelNodes;y.next();)af(a,y.value,b,E,x,z)}}un.Object.defineProperties(ki.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Xi: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 b=this.diagram;if((b===null||b.Qj(a)!==null&&!b.partManager.addsToTemporaryLayer)&&(this.Jg=a,b!==null&&b.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(b=y.diagram,b!==null&&(a=b.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&b.cb(ka,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&b.cb(Ta,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var x=b.aa;b.aa=!0,E(this,y,a),b.aa=x}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Su(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 b=this.layer;b!==null&&Pf(b,-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 _o?this.type!==Nr.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:Sr},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Su(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:zr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Su(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&&(Su(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:No},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Su(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,b=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===b||isNaN(E.y)&&isNaN(b))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Ut(this)===!1&&(f0(this),b=this.pa,b.w())){var x=this.diagram;if(x===null||x.animationManager.isTicking||!x.undoManager.isUndoingRedoing){var z=b.copy();b.h(b.x+(y.x-E.x),b.y+(y.y-E.y)),HS(this,x,b,z.x,z.y),this.g("position",z,b.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var b=this.diagram,E=this.data,x=null;if(b!==null&&E!==null&&!(this instanceof _o)){var z=b.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(x=this.clone(),x.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),b===null||E===null||this instanceof _o?this instanceof _o&&(x=this.adornedPart,x!==null&&(a=x.Qf,a!==null&&a.remove(y),x.bh(this.category,this))):(z=b.model,z.undoManager.isUndoingRedoing||(this.ph()?(b.partManager.setLinkCategoryForData(E,a),b=b.partManager.findLinkTemplateForCategory(a),b!==null&&(Pc(b),b=b.copy(),b!==null&&Xv(this,b,y,a))):(z!==null&&z.jm(E,a),b=y1(b.partManager,E,a),b!==null&&(Pc(b),b=b.copy(),b===null||b instanceof Mr||(E=this.location.copy(),Xv(this,b,y,a),this.location.w()||(this.location=E)))),x!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",x,y))))}}},self:{get:function(){return this},set:function(a){Xv(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 b=this.diagram;b!==null&&b.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 b=this.diagram;if(!a||this.canSelect()&&!(b!==null&&b.selection.count>=b.maxSelectionCount)){this.G^=4096;var E=!1;if(b!==null){E=b.skipsUndoManager,b.skipsUndoManager=!0;var x=b.selection;x.ka(),a?x.add(this):x.remove(this),x.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),b!==null&&(b.$b(),b.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var b=this.diagram;b!==null&&(b=b.highlighteds,b.ka(),a?b.add(this):b.remove(this),b.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&&(Su(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&&(Su(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&&(Su(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 Mr?(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&&(Su(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&&(Su(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&&(Su(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:Oi},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Su(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&&(Su(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&&(Su(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:ts},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Su(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&&kt("Cannot make a Group a member of itself: "+this.toString()),kt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var b=this.diagram;if(y!==null?iy(y,this):this instanceof $i&&b!==null&&b.ai.remove(this),this.Ah=a,a!==null?ry(a,this):this instanceof $i&&b!==null&&b.ai.add(this),this.C(1),b!==null&&b.aa){var E=this.data,x=b.model;if(E!==null&&x.Xj()){var z=x.wa(a!==null?a.data:null);x.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(x=!0,b!==null&&(x=b.aa,b.aa=!0),E(this,y,a),b!==null&&(b.aa=x)),this instanceof $i){for(b=new ur,af(b,this,!0,0,!0),b=b.iterator;b.next();)if(E=b.value,E instanceof ii)for(E=E.linksConnected;E.next();)mg(E.value)}if(this instanceof ii){for(b=this.linksConnected;b.next();)mg(b.value);b=this.labeledLink,b!==null&&mg(b)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Pf(y,-1,a))}}else kt("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&&(Su(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ii&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Su(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&&(Su(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ni},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Su(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&&(Su(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&&(Su(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ki.prototype.invalidateLayout=ki.prototype.C,ki.prototype.findCommonContainingGroup=ki.prototype.px,ki.prototype.isMemberOf=ki.prototype.Td,ki.prototype.findTopLevelPart=ki.prototype.sz,ki.prototype.findSubGraphLevel=ki.prototype.oz,ki.prototype.ensureBounds=ki.prototype.Va,ki.prototype.getDocumentBounds=ki.prototype.mi,ki.prototype.findObject=ki.prototype.fb,ki.prototype.moveTo=ki.prototype.moveTo,ki.prototype.invalidateAdornments=ki.prototype.Wb,ki.prototype.clearAdornments=ki.prototype.Ej,ki.prototype.removeAdornment=ki.prototype.Jf,ki.prototype.addAdornment=ki.prototype.bh,ki.prototype.findAdornment=ki.prototype.Pj,ki.prototype.updateTargetBindings=ki.prototype.La;var KS=!1;ki.className="Part",ki.LayoutNone=0,ki.LayoutAdded=1,ki.LayoutRemoved=2,ki.LayoutShown=4,ki.LayoutHidden=8,ki.LayoutNodeSized=16,ki.LayoutGroupLayout=32,ki.LayoutNodeReplaced=64,ki.LayoutStandard=127,ki.LayoutAll=16777215;function _o(a,y){a===void 0||a instanceof Ls||typeof a=="string"?ki.call(this,a):(ki.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)}hn(_o,ki),_o.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},_o.prototype.updateRelationshipsFromData=function(){},_o.prototype.Ul=function(a){var y=this.adornedObject,b=y==null?void 0:y.part;if(b instanceof Mr&&y instanceof ro){y=b.path,b.Ul(a),a=y.geometry,b=this.O.s,y=b.length;for(var E=0;E<y;E++){var x=b[E];x.isPanelMain&&x instanceof ro&&(x.ua=a)}}},_o.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ut(a))},_o.prototype.Zc=function(){return!1},_o.prototype.gk=function(a,y,b,E,x,z,ne){if(a===Ta&&y==="elements"){if(x instanceof Ql)this.$a===null&&(this.$a=x);else if(x instanceof Nr){var ie=x.Nl(function(se){return se instanceof Ql});ie instanceof Ql&&this.$a===null&&(this.$a=ie)}}else a===ka&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Nr&&this.$a.rg(E)&&(this.$a=null));ki.prototype.gk.call(this,a,y,b,E,x,z,ne)},_o.prototype.updateAdornments=function(){},_o.prototype.Lj=function(){},un.Object.defineProperties(_o.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,b=null;a!==null&&(b=a.part),y===null||a!==null&&y===b||y.Jf(this.category),this.ue=a,b!==null&&b.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),_o.className="Adornment";function ey(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=To,this.er=v0,this.Kr=this.ij=this.Nq=this.Mq=null}ey.prototype.copy=function(){var a=new ey;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 ii(a,y){a===void 0||a instanceof Ls||typeof a=="string"?ki.call(this,a):(ki.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new rr,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}hn(ii,ki),ii.prototype.cloneProtected=function(a){ki.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Me=ii.prototype,Me.Af=function(a){ki.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Nh(a){a.Ba===null?a.Ba=new ey:a.Ba.nc&&(a.Ba=a.Ba.copy())}Me.th=function(){ki.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function YS(a,y){y!==null&&(a.af===null&&(a.af=new ur),a.af.add(y))}function XS(a,y,b,E){if(y===null||a.af===null)return null;for(var x=a.af.iterator;x.next();){var z=x.value;if(z.Ds===a&&z.cv===y&&z.Ox===b&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===b)return z}return null}Me.Lz=function(a,y,b){y==null&&(y=""),b==null&&(b=""),a=XS(this,a,y,b),a!==null&&a.Sl()},Me.gk=function(a,y,b,E,x,z,ne){a===Ta&&y==="elements"?this.wc=null:a===ka&&y==="elements"&&(this.wc=null),ki.prototype.gk.call(this,a,y,b,E,x,z,ne)},Me.Bd=function(a){for(var y=this.linksConnected;y.next();){var b=y.value;a!==void 0&&a.contains(b)||(Hu(b.fromPort),Hu(b.toPort),b.bb())}};function QS(a,y){for(a=a.linksConnected;a.next();){var b=a.value;(b.fromPort===y||b.toPort===y)&&(Hu(b.fromPort),Hu(b.toPort),b.bb())}}function Hu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Hu(y.port)}}Me.si=function(){return!0},ii.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},ii.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},ii.prototype.isVisible=function(){if(!ki.prototype.isVisible.call(this))return!1;var a=!0,y=pd,b=this.diagram;if(b!==null&&(a=b.isTreePathToChildren,y=b.treeCollapsePolicy),y===pd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Qa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===qd&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},ii.prototype.Zb=function(a){ki.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var b=y.value;if(a&&this.containingGroup!==null){var E=b.To(this);E===null||E.Td(this.containingGroup)||b.bb()}b.Zb(a)}},ii.prototype.qx=function(){var a=new ur,y=new ur;return JS(this,this,a,y),y.iterator};function JS(a,y,b,E){if(y!==null&&!b.has(y)){b.add(y);var x=!0,z=a.diagram;z!==null&&(x=z.isTreePathToChildren),y.linksConnected.each(function(ne){ne.isTreeLink?(x?ne.fromNode===y:ne.toNode===y)&&JS(a,x?ne.toNode:ne.fromNode,b,E):E.add(ne)})}}ii.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Bi(this.jb),b=this;return y.predicate=function(E){return E.fromNode===b&&E.fromPortId===a||E.toNode===b&&E.toPortId===a},y},Me=ii.prototype,Me.Mo=function(a){a===void 0&&(a=null);var y=new Bi(this.jb),b=this;return y.predicate=function(E){return E.fromNode!==b?!1:a===null?!0:E.fromPortId===a},y},Me.Sd=function(a){a===void 0&&(a=null);var y=new Bi(this.jb),b=this;return y.predicate=function(E){return E.toNode!==b?!1:a===null?!0:E.toPortId===a},y},Me.Mu=function(a){a===void 0&&(a=null);for(var y=null,b=null,E=this.jb.iterator;E.next();){var x=E.value;x.fromNode===this?(a===null||x.fromPortId===a)&&(x=x.toNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ur,y.add(b),y.add(x)):b=x):x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ur,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Vi(b):Xi},Me.Po=function(a){a===void 0&&(a=null);for(var y=null,b=null,E=this.jb.iterator;E.next();){var x=E.value;x.fromNode!==this||a!==null&&x.fromPortId!==a||(x=x.toNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ur,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Vi(b):Xi},Me.Oo=function(a){a===void 0&&(a=null);for(var y=null,b=null,E=this.jb.iterator;E.next();){var x=E.value;x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ur,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Vi(b):Xi},Me.jz=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null);var E=new Bi(this.jb),x=this;return E.predicate=function(z){return!((z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||b!==null&&z.toPortId!==b)&&(z.fromNode!==a||z.toNode!==x||b!==null&&z.fromPortId!==b||y!==null&&z.toPortId!==y))},E},Me.kz=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null);var E=new Bi(this.jb),x=this;return E.predicate=function(z){return!(z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||b!==null&&z.toPortId!==b)},E};function g0(a,y,b){Hu(b);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var x=a.linkConnected;if(x!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),x(a,y,b),ne!==null&&(ne.aa=z)}}!E&&y.isTreeLink&&(b=y.fromNode,y=y.toNode,b!==null&&y!==null&&b!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),x=E?y:b,z=E?b:y,x.ci||(x.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?b===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function m0(a,y,b){Hu(b);var E=a.jb.remove(y),x=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(x=a.diagram,z!==null){var ne=!0;x!==null&&(ne=x.aa,x.aa=!0),z(a,y,b),x!==null&&(x.aa=ne)}}E&&y.isTreeLink&&(b=!0,x!==null&&(b=x.isTreePathToChildren),a=b?y.toNode:y.fromNode,y=b?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,x!==null&&x.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):$g(y)))}function $g(a){if(a.ci=!1,a.jb.count!==0){var y=!0,b=a.diagram;if(b===null||!b.undoManager.isUndoingRedoing){for(b!==null&&(y=b.isTreePathToChildren),b=a.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}ii.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Me=ii.prototype,Me.Vo=function(a){ki.prototype.Vo.call(this,a),a||($g(this),a=this.Yk,a!==null&&a1(a,this))},Me.Wo=function(a){ki.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Me.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,b=this.jb.copy().iterator;b.next();){var E=b.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,ki.prototype.Lj.call(this)},Me.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;qS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function qS(a){a.wc===null?a.wc=new Rn:a.wc.clear(),a.qm(a,function(y,b){$S(y,b)}),a.wc.count===0&&a.wc.add("",a)}function $S(a,y){var b=y.portId;b!==null&&a.wc!==null&&a.wc.add(b,y)}function ty(a,y,b){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&b)){for(b=null,a=a.findLinksConnected(E);a.next();)E=a.value,b===null&&(b=Jr()),b.push(E);if(b!==null){for(a=0;a<b.length;a++)y.remove(b[a]);Hr(b)}}}Me.Nz=function(a){if(a===null||a===this)return!1;var y=!0,b=this.diagram;if(b!==null&&(y=b.isTreePathToChildren),b=this,y)for(;b!==a;){y=null;for(var E=b.jb.iterator;E.next();){var x=E.value;if(x.isTreeLink&&(y=x.fromNode,y!==b&&y!==this))break}if(y===this||y===null||y===b)return!1;b=y}else for(;b!==a;){for(y=null,E=b.jb.iterator;E.next()&&(x=E.value,!x.isTreeLink||(y=x.toNode,y===b||y===this)););if(y===this||y===null||y===b)return!1;b=y}return!0},Me.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var b=y.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,b=y.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Me.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)p0(y,!0),y=y.pg();var b=null;for(y=a;y!==null;){if(y.G&1048576){b=y;break}y=y.pg()}for(y=this;y!==null;)p0(y,!1),y=y.pg();return b},Me.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},Me.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof ii)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var b=y.value;if(b.isTreeLink&&(b=a?b.fromNode:b.toNode,b!==this))return this.ci=b}return this.ci=null},Me.vz=function(){function a(b,E){E.add(b);var x=b.kh();x!==null&&(E.add(x),b=b.pg(),b!==null&&a(b,E))}var y=new ur;return a(this,y),y},Me.uz=function(){return e1(this,this)};function e1(a,y){return y=y.pg(),y===null?0:1+e1(a,y)}Me.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Bi(this.jb);var b=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===b)}:function(E){return!!(E.isTreeLink&&E.toNode===b)},y},Me.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var b=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):b!==null&&b!==a?(y=new rr,y.add(b),y.add(a)):b=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):b!==null&&b!==a?(y=new rr,y.add(b),y.add(a)):b=a);return y!==null?y.iterator:b!==null?new Vi(b):Xi},Me.wz=function(a){a===void 0&&(a=1/0);var y=new ur;return af(y,this,!1,a,!0),y},ii.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 b=new ur;b.add(this),t1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function t1(a,y,b,E,x,z,ne){if(1<E)for(var ie=b?a.Mo():a.Sd();ie.next();){var se=ie.value;se.isTreeLink&&(se=se.To(a),se===null||se===a||y.contains(se)||(y.add(se),t1(se,y,b,E-1,x,z,ne)))}else n1(a,y,b,x,z,ne)}function n1(a,y,b,E,x,z){for(var ne=x===a?!0:a.isTreeExpanded,ie=b?a.Mo():a.Sd(),se={};ie.next();){var de=ie.value;if(de.isTreeLink&&(de=de.To(a),de!==null&&de!==a)){var pe=y.contains(de);if(pe||y.add(de),ne){var Se=b?de.Oo():de.Po();se.uv=a,Se.all(function(Ne){return function(Oe){return Oe===Ne.uv||!Oe.isTreeExpanded}}(se))&&E.Aj(de,x),de.oh(),de.Zb(!1)}de.isTreeExpanded&&(de.wasTreeExpanded=de.isTreeExpanded,pe||n1(de,y,b,E,x,z))}se={uv:se.uv}}a.isTreeExpanded=!1}ii.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 b=new ur;b.add(this),r1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function r1(a,y,b,E,x,z,ne){for(var ie=z===a?!1:a.isTreeExpanded,se=b?a.Mo():a.Sd(),de={};se.next();){var pe=se.value;if(pe.isTreeLink&&(ie||pe.fd||pe.bb(),pe=pe.To(a),pe!==null&&pe!==a&&!y.contains(pe))){if(y.add(pe),!ie){pe.Zb(!0),pe.oh();var Se=b?pe.Oo():pe.Po();de.vv=a,Se.all(function(Ne){return function(Oe){return Oe===Ne.vv||!Oe.isTreeExpanded}}(de))&&x.Cj(pe,z)}(2<E||pe.wasTreeExpanded)&&(pe.wasTreeExpanded=!1,r1(pe,y,b,E-1,x,z,ne))}de={vv:de.vv}}a.isTreeExpanded=!0}un.Object.defineProperties(ii.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:v0},set:function(a){var y=this.portSpreading;y!==a&&(Nh(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 b=this.diagram;b!==null&&Xd(b,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:To},set:function(a){typeof a=="number"&&(a=new Qi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Nh(this),this.Ba.yp=a;var b=this.diagram;b!==null&&Xd(b,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&&(Nh(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&&(Nh(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&&(Nh(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 b=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),b!==null&&E!==null&&!b.undoManager.isUndoingRedoing){var x=y.data,z=b.model;if(x!==null&&z.ri()){var ne=z.wa(E);ne!==void 0&&z.Qx(x,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(a1(a,this),b===null||E===null||b.undoManager.isUndoingRedoing||(x=a.data,b=b.model,x!==null&&b.ri()&&(E=b.wa(E),E!==void 0&&b.Bu(x,E))),this.containingGroup=a.containingGroup),Ll(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&qS(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 b=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;b!==null&&(E=b.aa,b.aa=!0),y(this),b!==null&&(b.aa=E)}b!==null&&b.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&&(Nh(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))}}}),ii.prototype.expandTree=ii.prototype.expandTree,ii.prototype.collapseTree=ii.prototype.collapseTree,ii.prototype.findTreeParts=ii.prototype.wz,ii.prototype.findTreeChildrenNodes=ii.prototype.Ou,ii.prototype.findTreeChildrenLinks=ii.prototype.Qo,ii.prototype.findTreeLevel=ii.prototype.uz,ii.prototype.findTreeParentChain=ii.prototype.vz,ii.prototype.findTreeParentNode=ii.prototype.pg,ii.prototype.findTreeParentLink=ii.prototype.kh,ii.prototype.findCommonTreeParent=ii.prototype.gz,ii.prototype.findTreeRoot=ii.prototype.xz,ii.prototype.isInTreeOf=ii.prototype.Nz,ii.prototype.findPort=ii.prototype.ns,ii.prototype.findLinksTo=ii.prototype.kz,ii.prototype.findLinksBetween=ii.prototype.jz,ii.prototype.findNodesInto=ii.prototype.Oo,ii.prototype.findNodesOutOf=ii.prototype.Po,ii.prototype.findNodesConnected=ii.prototype.Mu,ii.prototype.findLinksInto=ii.prototype.Sd,ii.prototype.findLinksOutOf=ii.prototype.Mo,ii.prototype.findExternalTreeLinksConnected=ii.prototype.qx,ii.prototype.invalidateConnectedLinks=ii.prototype.Bd,ii.prototype.invalidateLinkBundle=ii.prototype.Lz;var fE=new Ln(ii,"SpreadingNone",10),v0=new Ln(ii,"SpreadingEvenly",11),ny=new Ln(ii,"SpreadingPacked",12);ii.className="Node",ii.SpreadingNone=fE,ii.SpreadingEvenly=v0,ii.SpreadingPacked=ny;function $i(a,y){a===void 0||a instanceof Ls||typeof a=="string"?ii.call(this,a):(ii.call(this),a&&(y=a)),this.U|=4608,this.Gn=new ur,this.$a=null,this.Sc=new Na,this.Sc.group=this,this.gl=new ur,this.tb=this.$p=null,y&&Object.assign(this,y)}hn($i,ii),$i.prototype.cloneProtected=function(a){ii.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(b){return b instanceof Ql});y instanceof Ql?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())},Me=$i.prototype,Me.Af=function(a){ii.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var b=a.value;if(b.v(),b.C(8),b.Ej(),b instanceof ii)b.Bd(y);else if(b instanceof Mr)for(b=b.labelNodes;b.next();)b.value.Bd(y)}},Me.gk=function(a,y,b,E,x,z,ne){if(a===Ta&&y==="elements"){if(x instanceof Ql)this.$a===null?this.$a=x:this.$a!==x&&kt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(x instanceof Nr){var ie=x.Nl(function(se){return se instanceof Ql});ie instanceof Ql&&(this.$a===null?this.$a=ie:this.$a!==ie&&kt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ka&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Nr&&this.$a.rg(E)&&(this.$a=null));ii.prototype.gk.call(this,a,y,b,E,x,z,ne)},Me.Xl=function(a,y){ii.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Nr.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Nr&&(a=a.Pb()),this.tb===null&&(this.tb=new An),a.mi(this.tb),a instanceof ro&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Me.eh=function(a,y,b,E){this.nf=this.$a,ii.prototype.eh.call(this,a,y,b,E)},Me.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Mr||y.Va()}),ii.prototype.Va.call(this)},Me.si=function(){if(!ii.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof ii){if(y.isVisible()&&Ut(y))return!1}else if(y instanceof Mr&&y.isVisible()&&Ut(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function ry(a,y){if(a.Gn.add(y)){y instanceof $i&&a.gl.add(y);var b=a.memberAdded;if(b!==null){var E=!0,x=a.diagram;x!==null&&(E=x.aa,x.aa=!0),b(a,y),x!==null&&(x.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Mr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function iy(a,y){if(a.Gn.remove(y)){y instanceof $i&&a.gl.remove(y);var b=a.memberRemoved;if(b!==null){var E=!0,x=a.diagram;x!==null&&(E=x.aa,x.aa=!0),b(a,y),x!==null&&(x.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Mr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Me.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)}ii.prototype.Lj.call(this)},$i.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Yn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},$i.prototype.addMembers=function(a,y){var b=this.diagram;if(b===null)return!1;b=b.commandHandler;var E=!0;for(a=Yn(a).iterator;a.next();){var x=a.value;!y||b.isValidMember(this,x)?x.containingGroup=this:E=!1}return E},$i.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))},Me=$i.prototype,Me.Bd=function(a){var y=(this.U&65536)!==0;if(ii.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var b=y.value;if(a===void 0||!a.contains(b)){var E=b.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(Hu(b.fromPort),Hu(b.toPort),b.bb()):(E=b.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Hu(b.fromPort),Hu(b.toPort),b.bb()))}}},Me.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 b=new ur,E=y.iterator;E.next();){var x=E.value;if(x instanceof ii)for(x=x.linksConnected;x.next();){var z=x.value;y.contains(z)||b.add(z)}}return a&&(this.$p=b),b.iterator},Me.iz=function(){var a=this.Rj();a.add(this);for(var y=new ur,b=a.iterator;b.next();){var E=b.value;if(E instanceof ii)for(E=E.linksConnected;E.next();){var x=E.value,z=x.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),x=x.toNode,x===null||a.contains(x)&&x!==this||y.add(x)}}return y.iterator},Me.hz=function(){function a(b,E){b!==null&&(E.add(b),a(b.containingGroup,E))}var y=new ur;return a(this,y),y},Me.Rj=function(){var a=new ur;return af(a,this,!0,0,!0),a.remove(this),a},Me.Zb=function(a){ii.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},$i.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();i1(this,y,a,this),a.Ue=!1}};function i1(a,y,b,E){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!1),z instanceof $i&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,i1(z,y,b,E)),z instanceof ii)z.Bd(y),b.Aj(z,E);else if(z instanceof Mr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}$i.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();o1(this,y,a,this),a.Ue=!1}};function o1(a,y,b,E){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!0),z instanceof $i&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,b,E)),z instanceof ii)z.Bd(y),b.Cj(z,E);else if(z instanceof Mr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}$i.prototype.move=function(a,y){y===void 0&&(y=!1);var b=y?this.location:this.position,E=b.x;b=b.y;var x=a.x,z=a.y;if(!(E===x||isNaN(E)&&isNaN(x))||!(b===z||isNaN(b)&&isNaN(z))){for(E=x-(isNaN(E)?0:E),b=z-(isNaN(b)?0:b),z=rt.alloc(),ii.prototype.move.call(this,a,y),a=new ur,y=this.Rj().iterator;y.next();)x=y.value,x instanceof Mr&&(x.suspendsRouting&&a.add(x),x.fd||x.fromNode!==this&&x.toNode!==this)&&(x.suspendsRouting=!0);for(y.reset();y.next();)if(x=y.value,!(x.ph()||x instanceof ii&&x.isLinkLabel)){var ne=x.position,ie=x.location;ne.w()?(z.x=ne.x+E,z.y=ne.y+b,x.position=z):ie.w()&&(z.x=ie.x+E,z.y=ie.y+b,x.location=z)}for(y.reset();y.next();)x=y.value,x instanceof Mr&&(x.suspendsRouting=a.contains(x),x.fd||x.fromNode!==this&&x.toNode!==this)&&(ne=x.position,z.x=ne.x+E,z.y=ne.y+b,z.w()?x.move(z):x.bb(),ay(x)&&x.bb());rt.free(z)}},un.Object.defineProperties($i.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&&kt("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 b=this.diagram;a!==null&&(a.diagram=b,a.group=this),b!==null&&(b.xh=!0),this.g("layout",y,a),b!==null&&b.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Nh(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&&(Nh(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&&(Nh(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 b=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;b!==null&&(E=b.aa,b.aa=!0),y(this),b!==null&&(b.aa=E)}b!==null&&b.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(x){x.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&&(Nh(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)}}}),$i.prototype.expandSubGraph=$i.prototype.expandSubGraph,$i.prototype.collapseSubGraph=$i.prototype.collapseSubGraph,$i.prototype.findSubGraphParts=$i.prototype.Rj,$i.prototype.findContainingGroupChain=$i.prototype.hz,$i.prototype.findExternalNodesConnected=$i.prototype.iz,$i.prototype.findExternalLinksConnected=$i.prototype.Lu,$i.prototype.ensureBounds=$i.prototype.Va,$i.className="Group";function Ql(a){tn.call(this),this.yb=is,this.ko=new An(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}hn(Ql,tn),Ql.prototype.cloneProtected=function(a){tn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ql.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Ql.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof $i||a instanceof _o)||kt("Placeholder is not inside a Group or Adornment."),a instanceof $i){var y=this.computeBorder(this.ko),b=this.minSize,E=this.dc;for(so(E,(isFinite(b.width)?Math.max(b.width,y.width):y.width)||0,(isFinite(b.height)?Math.max(b.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,b=!1;E.next();)if(E.value.isVisible()){b=!0;break}E=a.diagram,!b||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(b=rt.alloc(),b.xi(y,a.locationSpot),b.D(a.location)||(a.location=b),rt.free(b))}else{y=this.dc,b=this.yb,E=b.left+b.right;var x=b.top+b.bottom,z=a.adornedObject;a.angle=z.li();var ne=0;z instanceof ro&&(ne=z.strokeWidth);var ie=z.Df(),se=z.naturalBounds,de=(se.width+ne)*ie;ne=(se.height+ne)*ie,a.type!==Nr.Link&&(ie=z.ga(a.category==="Selection"?No:a.locationSpot,rt.alloc()),a.location=ie,rt.free(ie)),isNaN(de)||isNaN(ne)?(a=z.ga(No,rt.alloc()),de=An.allocAt(a.x,a.y,0,0),de.Ye(z.ga(ra,a)),de.Ye(z.ga(os,a)),de.Ye(z.ga(qa,a)),so(y,de.width+E||0,de.height+x||0),this.Ge(-b.left,-b.top,y.width,y.height),rt.free(a),An.free(de)):(so(y,de+E||0,ne+x||0),this.Ge(-b.left,-b.top,y.width,y.height))}},Ql.prototype.eh=function(a,y,b,E){this.actualBounds.h(a,y,b,E)},Ql.prototype.computeBorder=function(a){var y=this.part,b=y.diagram,E=b===null||!b.animationManager.isAnimating;if(b!==null&&y instanceof $i&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var x=b.toolManager.findTool("Dragging");if(x===b.currentTool&&(b=x.computeBorder(y,this.ko,a),b!==null))return b}b=An.alloc(),x=this.computeMemberBounds(b);var z=this.yb;return y instanceof $i&&!y.isSubGraphExpanded?a.h(x.x-z.left,x.y-z.top,0,0):a.h(x.x-z.left,x.y-z.top,Math.max(x.width+z.left+z.right,0),Math.max(x.height+z.top+z.bottom,0)),An.free(b),E&&y instanceof $i&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ql.prototype.computeMemberBounds=function(a){if(!(this.part instanceof $i))return a.h(0,0,0,0),a;for(var y=this.part,b=1/0,E=1/0,x=-1/0,z=-1/0,ne=y.memberParts;ne.next();){var ie=ne.value;if(ie.isVisible()){if(ie instanceof Mr&&(!y.computesBoundsIncludingLinks||Lt(ie)||ie.fromNode===y||ie.toNode===y))continue;ie=ie.actualBounds,ie.left<b&&(b=ie.left),ie.top<E&&(E=ie.top),ie.right>x&&(x=ie.right),ie.bottom>z&&(z=ie.bottom)}}return isFinite(b)&&isFinite(E)?a.h(b,E,x-b,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},un.Object.defineProperties(Ql.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Qi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ql.className="Placeholder";function Mr(a){ki.call(this,Nr.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Jl,this.Om=0,this.Qm=Jl,this.Rm=NaN,this.qj=uy,this.po=.5,this.wd=null,this.Nb=new rr().freeze(),this.Tg=this.Mg=null,this.ml=new An,this.ua=new Lr,this.u=this.o=this.Sf=this.Wf=null,this.su=new rt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}hn(Mr,ki),Mr.prototype.cloneProtected=function(a){ki.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())},Me=Mr.prototype,Me.Af=function(a){ki.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&&Hu(y),a=a.toPort,a!==null&&Hu(a)},Me.qb=function(a){a.classType===Mr?(a.value&2)===2?this.routing=a:a===ic||a===kh||a===yg?this.curve=a:a===nm||a===w0||a===C0?this.adjusting=a:a!==uy&&a!==Jl&&kt("Unknown Link enum value for a Link property: "+a):ki.prototype.qb.call(this,a)},Me.Xc=function(){this.ba===null&&(this.ba=new no)},Me.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ut(a)||rf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ut(a)||rf(a)))},Me.zv=function(){return!1},Me.Av=function(){},Me.Zc=function(){return!1},Mr.prototype.computeAngle=function(a,y,b){return Mr.computeAngle(y,b)},Mr.computeAngle=function(a,y){switch(a){default:case Jl:a=0;break;case rm:a=y;break;case im:a=y+90;break;case om:a=y-90;break;case cy:a=y+180;break;case P0:a=an.bp(y),90<a&&270>a&&(a-=180);break;case am:a=an.bp(y+90),90<a&&270>a&&(a-=180);break;case sm:a=an.bp(y-90),90<a&&270>a&&(a-=180);break;case T0:if(a=an.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return an.bp(a)};function mg(a){var y=a.fromNode,b=a.toNode,E=null;if(y!==null?E=b!==null?y.px(b):y.containingGroup:b!==null?E=b.containingGroup:E=null,y=E,b=a.Ah,b!==y){b!==null&&iy(b,a),a.Ah=y,y!==null&&ry(y,a);var x=a.containingGroupChanged;if(x!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),x(a,b,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==b&&a.Mw!==b||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Me=Mr.prototype,Me.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ki.prototype.oh.call(this)},Me.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Me.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function a1(a,y){a.wd===null&&(a.wd=new ur),a.wd.add(y),a.v()}Me.Vo=function(a){if(ki.prototype.Vo.call(this,a),jf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,g0(a,this,y));var b=this.uf;if(b!==null){var E=this.toPort;b===a&&E===y||g0(b,this,E)}em(this)}},Me.Wo=function(a){if(ki.prototype.Wo.call(this,a),jf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,m0(a,this,y));var b=this.uf;if(b!==null){var E=this.toPort;b===a&&E===y||m0(b,this,E)}tm(this)}},Me.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))},Mr.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Mr.prototype.move=function(a,y){var b=y?this.location:this.position,E=b.x;isNaN(E)&&(E=0);var x=b.y;for(isNaN(x)&&(x=0),E=a.x-E,x=a.y-x,y===!0?ki.prototype.move.call(this,a,!1):(a=rt.allocAt(b.x+E,b.y+x),ki.prototype.move.call(this,a,!1),rt.free(a)),Lh(this,E,x),a=this.labelNodes;a.next();)y=a.value,b=y.position,y.moveTo(b.x+E,b.y+x)},Mr.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},Mr.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},Mr.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(pi),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var b=this.i(0),E=this.i(1);return a.h((b.x+E.x)/2,(b.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ic))return this.ua.Pu(.5,a),a.add(this.i(0)),b=this.ua.figures.first(),a.offset(-b.startX,-b.startY),a;if(this.computeCurve()===ic){if(y===3){b=this.i(0),E=this.i(1);var x=this.i(2);return an.ax(b.x,b.y,E.x,E.y,E.x,E.y,x.x,x.y,a),a}if(E=(y-1)/3|0,b=3*(E/2|0),E%2===1){E=this.i(b),x=this.i(b+1);var z=this.i(b+2);b=this.i(b+3),an.ax(E.x,E.y,x.x,x.y,z.x,z.y,b.x,b.y,a)}else a.assign(this.i(b));return a}var ne=this.flattenedLengths;for(b=this.flattenedTotalLength,x=z=E=0;E<b/2&&z<y&&(x=ne[z],!(E+x>b/2));)E+=x,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-(b/2-E)):a.h(y.x,y.y+(b/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(b/2-E),y.y):a.h(y.x+(b/2-E),y.y):(b=(b/2-E)/x,a.h(y.x+b*(z.x-y.x),y.y+b*(z.y-y.y))),a},Mr.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()===ic))return this.ua.wx(.5);if(this.computeCurve()===ic&&4<=a){var y=(a-1)/3|0,b=3*(y/2|0);if(y%2===1){b=Math.floor(b),a=this.i(b),y=this.i(b+1);var E=this.i(b+2);return b=this.i(b+3),an.My(a.x,a.y,y.x,y.y,E.x,E.y,b.x,b.y)}if(0<b&&b+1<a)return this.i(b-1).ab(this.i(b+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var x=0;b=0;for(var z;x<E/2&&b<a&&(z=y[b],!(x+z>E/2));)x+=z,b++;if(y=this.i(b),E=this.i(b+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<b&&b+2<a)return this.i(b-1).ab(this.i(b+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Me=Mr.prototype,Me.i=function(a){return this.Nb.s[a]},Me.dd=function(a,y){this.Nb.cd(a,y)},Me.L=function(a,y,b){this.Nb.cd(a,new rt(y,b))},Me.Kz=function(a,y){this.Nb.Gb(a,y)},Me.m=function(a,y,b){this.Nb.Gb(a,new rt(y,b))},Me.ne=function(a){this.Nb.add(a)},Me.yf=function(a,y){this.Nb.add(new rt(a,y))},Me.pv=function(a){this.Nb.mb(a)},Me.Fj=function(){this.Nb.clear()};function Lh(a,y,b){if(y!==0||b!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,b),a.defaultToPoint&&a.defaultToPoint.offset(y,b);else{for(var E=a.fd,x=new rr,z=a.Nb.iterator;z.next();){var ne=z.value;x.add(new rt(ne.x+y,ne.y+b).freeze())}x.freeze(),z=a.Nb,a.Nb=x,ne=a.diagram,isNaN(y)||isNaN(b)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+b),a.pa.h(a.pa.x+y,a.pa.y+b),Ll(a)),E?y0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&ce(ne.animationManager,a,x),a.g("points",z,x)}}Me.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Me.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,b=1/0,E=1/0,x=a.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];b=Math.min(ie.x,b),E=Math.min(ie.y,E)}ie=ne=1/0;for(var se=y.s,de=se.length,pe=0;pe<de;pe++){var Se=se[pe];ne=Math.min(Se.x,ne),ie=Math.min(Se.y,ie),Se.freeze()}if(y.freeze(),de===z){for(z=0;z<de;z++)if(pe=x[z],Se=se[z],pe.x-b!==Se.x-ne||pe.y-E!==Se.y-ie){this.qc();break}}else this.qc();this.Mg=null,b=this.diagram,b!==null&&b.animationManager.zb&&ce(b.animationManager,this,y),y0(this),this.g("points",a,y)}},Me.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function y0(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),x0(a,!1))}Me.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())}},Me.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()}}},Mr.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(kp||(kp=new ii,kp.desiredSize=Kn,kp.Va()),this.defaultFromPoint&&(kp.location=this.defaultFromPoint,kp.Va(),y=a=kp)):y=this.fromPort,y!==null&&!a.isVisible()){var b=a.findVisibleNode();b!==null&&b!==a?(a=b,y=b.port):a=b}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,x=null;if(E===null?(Ip||(Ip=new ii,Ip.desiredSize=Kn,Ip.Va()),this.defaultToPoint&&(Ip.location=this.defaultToPoint,Ip.Va(),x=E=Ip)):x=this.toPort,x===null||E.isVisible()||(b=E.findVisibleNode(),b!==null&&b!==E?(E=b,x=b.port):E=b),this.Mw=E,E===null||!E.location.w())return!1;for(;!(x===null||x.actualBounds.w()&&x.Ed());)x=x.panel;if(x===null)return!1;var z=this.pointsCount,ne=this.computeSpot(!0,y);b=this.computeSpot(!1,x);var ie=vg(ne),se=vg(b),de=y===x&&y!==null,pe=this.isOrthogonal,Se=this.curve===ic;this.Wf=de&&!pe?Se=!0:!1;var Ne=this.computeAdjusting()===Jl||de;if(!pe&&!de&&ie&&se){if(ie=!1,!Ne&&3<=z&&(Ne=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=this.adjustPoints(0,Ne,z-1,se))&&(Ne=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),this.adjustPoints(0,Ne,z-1,se)),!ie)if(this.Fj(),Se){z=this.getLinkPoint(a,y,ne,!0,!1,E,x),Ne=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=Ne.x-z.x,se=Ne.y-z.y,de=this.computeCurviness(),Se=pe=0;var Oe=z.x+ie/3,He=z.y+se/3,Je=Oe,xt=He;an.B(se,0)?xt=0<ie?xt-de:xt+de:(pe=-ie/se,Se=Math.sqrt(de*de/(pe*pe+1)),0>de&&(Se=-Se),Je=(0>se?-1:1)*Se+Oe,xt=pe*(Je-Oe)+He),Oe=z.x+2*ie/3,He=z.y+2*se/3;var yt=Oe,Rt=He;an.B(se,0)?Rt=0<ie?Rt-de:Rt+de:(yt=(0>se?-1:1)*Se+Oe,Rt=pe*(yt-Oe)+He),this.Fj(),this.ne(z),this.yf(Je,xt),this.yf(yt,Rt),this.ne(Ne),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,E,x)),this.dd(3,this.getLinkPoint(E,x,b,!1,!1,a,y))}else z=E,Ne=x,E=this.getLinkPoint(a,y,ne,!0,!1,z,Ne),x=this.getLinkPoint(z,Ne,b,!1,!1,a,y),this.hasCurviness()?(Ne=x.x-E.x,b=x.y-E.y,ne=this.computeCurviness(),a=E.x+Ne/2,y=E.y+b/2,z=a,ie=y,an.B(b,0)?ie=0<Ne?ie-ne:ie+ne:(Ne=-Ne/b,z=Math.sqrt(ne*ne/(Ne*Ne+1)),0>ne&&(z=-z),z=(0>b?-1:1)*z+a,ie=Ne*(z-a)+y),this.ne(E),this.yf(z,ie),this.ne(x)):(this.ne(E),this.ne(x),ie=An.alloc(),y.mi(ie),se=ie.ca(x),Ne.mi(ie),de=ie.ca(E),(se||de)&&(ne=y.ga(b0(ne),new rt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,x,!0,ne)),b=Ne.ga(b0(b),new rt),this.dd(1,this.getLinkPointFromPoint(z,Ne,b,E,!1,b))),An.free(ie))}else{Se=this.isAvoiding,Ne&&(pe&&Se||de)&&this.Fj();var Bt=de?this.computeCurviness():0;Se=this.getLinkPoint(a,y,ne,!0,pe,E,x),Oe=Je=He=0,(pe||!ie||de)&&(xt=this.computeEndSegmentLength(a,y,ne,!0),Oe=this.getLinkDirection(a,y,Se,ne,!0,pe,E,x),de&&(ie||ne.D(b)||!pe&&ne.x+b.x===1&&ne.y+b.y===1)&&(Oe-=pe?90:30,0>Bt&&(Oe-=180)),0>Oe?Oe+=360:360<=Oe&&(Oe-=360),de&&(xt+=Math.abs(Bt)*(pe?1:2)),Oe===0?He=xt:Oe===90?Je=xt:Oe===180?He=-xt:Oe===270?Je=-xt:(He=xt*Math.cos(Oe*Math.PI/180),Je=xt*Math.sin(Oe*Math.PI/180)),ne.Mc()&&de&&(xt=y.ga(uo,rt.alloc()),yt=rt.allocAt(xt.x+1e3*He,xt.y+1e3*Je),this.getLinkPointFromPoint(a,y,xt,yt,!0,Se),rt.free(xt),rt.free(yt))),xt=this.getLinkPoint(E,x,b,!1,pe,a,y);var Gt=Rt=yt=0;if(pe||!se||de){var $t=this.computeEndSegmentLength(E,x,b,!1);Gt=this.getLinkDirection(E,x,xt,b,!1,pe,a,y),de&&(se||ne.D(b)||!pe&&ne.x+b.x===1&&ne.y+b.y===1)&&(Gt+=pe?0:30,0>Bt&&(Gt+=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),de&&($t+=Math.abs(Bt)*(pe?1:2)),Gt===0?yt=$t:Gt===90?Rt=$t:Gt===180?yt=-$t:Gt===270?Rt=-$t:(yt=$t*Math.cos(Gt*Math.PI/180),Rt=$t*Math.sin(Gt*Math.PI/180)),b.Mc()&&de&&(b=x.ga(uo,rt.alloc()),ne=rt.allocAt(b.x+1e3*yt,b.y+1e3*Rt),this.getLinkPointFromPoint(E,x,b,ne,!1,xt),rt.free(b),rt.free(ne))}b=Se,(pe||!ie||de)&&(b=new rt(Se.x+He,Se.y+Je)),ne=xt,(pe||!se||de)&&(ne=new rt(xt.x+yt,xt.y+Rt)),!Ne&&!pe&&ie&&3<z&&this.adjustPoints(0,Se,z-2,ne)?this.dd(z-1,xt):!Ne&&!pe&&se&&3<z&&this.adjustPoints(1,b,z-1,xt)?this.dd(0,Se):!Ne&&(pe?6<=z:4<z)&&this.adjustPoints(1,b,z-2,ne)?(this.dd(0,Se),this.dd(z-1,xt)):(this.Fj(),this.ne(Se),(pe||!ie||de)&&this.ne(b),pe&&this.addOrthoPoints(b,Oe,ne,Gt,a,E),(pe||!se||de)&&this.ne(ne),this.ne(xt))}return!0};function oy(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}Mr.prototype.getLinkPointFromPoint=function(a,y,b,E,x,z){if(z===void 0&&(z=new rt),a===null||y===null)return z.assign(b),z;if(a.isVisible()||(x=a.findVisibleNode(),x!==null&&x!==a&&(y=x.port)),a=null,x=y.panel,x===null||x.se()||(x=x.panel),x===null){x=E.x,E=E.y;var ne=b.x;b=b.y}else{a=x.oe,x=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*x;var ie=-a.m12*x,se=-a.m21*x,de=a.m11*x,pe=x*(a.m21*a.dy-a.m22*a.dx),Se=x*(a.m12*a.dx-a.m11*a.dy);x=E.x*ne+E.y*se+pe,E=E.x*ie+E.y*de+Se,ne=b.x*ne+b.y*se+pe,b=b.x*ie+b.y*de+Se}return y.Sj(x,E,ne,b,z),a!==null&&z.transform(a),z};function S0(a,y){var b=y.Zn;return b===null&&(b=new Dp,b.port=y,b.node=y.part,y.Zn=b),p1(b,a)}Mr.prototype.getLinkPoint=function(a,y,b,E,x,z,ne,ie){if(ie===void 0&&(ie=new rt),b.sb()&&!vg(b))return y.ga(b,ie),ie;if(b.$c()){var se=S0(this,y);if(se!==null){if(ie.assign(se.Zo),x&&this.routing===l1){var de=S0(this,ne);if(de!==null&&se.Gl<de.Gl){se=rt.alloc(),de=rt.alloc();var pe=new An(y.ga(No,se),y.ga(ra,de)),Se=this.computeSpot(!E,ne);a=this.getLinkPoint(z,ne,Se,!E,x,a,y,de),(b.Hf(Ys)||b.Hf(oa))&&a.y>=pe.y&&a.y<=pe.y+pe.height?ie.y=a.y:(b.Hf(Ca)||b.Hf(as))&&a.x>=pe.x&&a.x<=pe.x+pe.width&&(ie.x=a.x),rt.free(se),rt.free(de)}}return ie}}return b=y.ga(b0(b),rt.alloc()),this.pointsCount>(x?6:2)?(ne=E?this.i(1):this.i(this.pointsCount-2),x&&(ne=oy(b,ne.copy()))):(se=this.computeSpot(!E,ne),z=rt.alloc(),ne=ne.ga(b0(se),z),x&&(ne=oy(b,ne)),rt.free(z)),this.getLinkPointFromPoint(a,y,b,ne,E,ie),rt.free(b),ie},Mr.prototype.getLinkDirection=function(a,y,b,E,x,z,ne,ie){e:if(E.sb())var se=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(se=S0(this,y),se!==null))switch(se.Nc){case 1:se=270;break e;case 2:se=180;break e;default:case 4:se=0;break e;case 8:se=90;break e}se=y.ga(uo,rt.alloc()),this.pointsCount>(z?6:2)?(ie=x?this.i(1):this.i(this.pointsCount-2),ie=z?oy(se,ie.copy()):b):(b=rt.alloc(),ie=ie.ga(uo,b),rt.free(b)),b=Math.abs(ie.x-se.x)>Math.abs(ie.y-se.y)?ie.x>=se.x?0:180:ie.y>=se.y?90:270,rt.free(se),se=b}return E.Mc()&&ne.Td(a)&&(se+=180,360<=se&&(se-=360)),vg(E)||(a=y.li(),a===0)||(45<=a&&135>a?se+=90:135<=a&&225>a?se+=180:225<=a&&315>a&&(se+=270),360<=se&&(se-=360)),se},Mr.prototype.computeEndSegmentLength=function(a,y,b,E){return y!==null&&b.$c()&&(a=S0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Mr.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=uo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ts?to:y)):(a=y||this.toPort,a===null?a=uo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ts?to:y)),a};function vg(a){return a===to||a.x===.5&&a.y===.5}function b0(a){return a.x===.5&&a.y===.5?a:uo}Mr.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Jl&&4<this.pointsCount?this.computeMidPoint(new rt):(a=y.Zn,a=a!==null?p1(a,this):null,a!==null?a.Zo:y.ga(uo))},Mr.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},Mr.prototype.Cf=function(a,y,b,E,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),b===void 0&&(b=null);var ne=z;if(z===void 0&&(ne=Ui.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Ui.free(ne),!0;if(this.Yc(a,ne)){var ie=!1;if(!this.isAtomic)for(var se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===this.locationObject){var Se=pe.actualBounds,Ne=this.naturalBounds;if(!(Se.x>Ne.width||Se.y>Ne.height||0>Se.x+Se.width||0>Se.y+Se.height)){if(Se=Ui.alloc(),Se.set(ne),pe instanceof Nr)ie=pe.Cf(a,y,b,E,x,Se);else if(this.path===pe){if(pe instanceof ro)if(ie=a,Ne=E,pe.pickable===!1)ie=!1;else if(Se.multiply(pe.transform),Ne)e:{var Oe=ie,He=Se;if(pe.fh(Oe,He))ie=!0;else{if(He===void 0&&(He=pe.transform,Oe.Re(pe.actualBounds))){ie=!0;break e}ie=Oe.left,Ne=Oe.right;var Je=Oe.top;Oe=Oe.bottom;var xt=rt.alloc(),yt=rt.alloc(),Rt=rt.alloc(),Bt=Ui.alloc();Bt.set(He),Bt.bv(pe.transform),Bt.Vj(),yt.x=Ne,yt.y=Je,yt.transform(Bt),xt.x=ie,xt.y=Je,xt.transform(Bt),He=!1,zf(pe,xt,yt,Rt)?He=!0:(xt.x=Ne,xt.y=Oe,xt.transform(Bt),zf(pe,xt,yt,Rt)?He=!0:(yt.x=ie,yt.y=Oe,yt.transform(Bt),zf(pe,xt,yt,Rt)?He=!0:(xt.x=ie,xt.y=Je,xt.transform(Bt),zf(pe,xt,yt,Rt)&&(He=!0)))),Ui.free(Bt),rt.free(xt),rt.free(yt),rt.free(Rt),ie=He}}else ie=pe.fh(ie,Se)}else ie=xs(pe,a,E,Se);ie&&(Ne=pe,y!==null&&(Ne=y(pe)),Ne&&(b===null||b(Ne))&&x.add(Ne)),Ui.free(Se)}}}return z===void 0&&Ui.free(ne),ie||this.background!==null||this.areaBackground!==null}return z===void 0&&Ui.free(ne),!1},Mr.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?ic:this.curve},Mr.prototype.computeCorner=function(){if(this.curve===ic)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Mr.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E];if(x!==a&&!x.isPanelMain&&(x.segmentIndex===-1/0||isNaN(x.segmentIndex)))return x}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Mr.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=c1;a=Math.max(a,this.computeThickness());var y=this.fromPort,b=this.toPort;if(y!==null&&b!==null){var E=this.findMidLabel();if(E!==null){var x=E.naturalBounds,z=E.margin,ne=isNaN(x.width)?30:x.width*E.scale+z.left+z.right;x=isNaN(x.height)?14:x.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===rm||E===P0||E===cy?a=Math.max(a,x):E===om||E===sm||E===im||E===am?a=Math.max(a,ne):(y=y.ga(uo).ab(b.ga(uo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*x)+1)),this.curve===ic&&(a*=1.333)}}return a},Mr.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var b=a[y];b.computeAdjusting()===Jl&&b.bb()}},Mr.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var b=Jr(),E=0,x=y.links,z=0;z<x.length;z++){var ne=x[z].computeSpacing();b.push(ne),E+=ne}for(E=-E/2,z=0;z<x.length;z++){if(x[z]===this){a=E+b[z]/2;break}E+=b[z]}y.Ds===this.fromNode&&(a=-a),Hr(b)}}return a},Mr.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Mr.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Mr.prototype.adjustPoints=function(a,y,b,E){var x=this.computeAdjusting();if(this.isOrthogonal){if(x===w0)return!1;x===C0&&(x=nm)}switch(x){case w0:var z=this.i(a),ne=this.i(b);if(!z.Xa(y)||!ne.Xa(E)){x=z.x,z=z.y;var ie=ne.x-x,se=ne.y-z,de=Math.sqrt(ie*ie+se*se);if(!an.$(de,0)){if(an.$(ie,0))var pe=0>se?-Math.PI/2:Math.PI/2;else pe=Math.atan(se/Math.abs(ie)),0>ie&&(pe=Math.PI-pe);ne=y.x;var Se=y.y;ie=E.x-ne;var Ne=E.y-Se;for(se=Math.sqrt(ie*ie+Ne*Ne),an.$(ie,0)?Ne=0>Ne?-Math.PI/2:Math.PI/2:(Ne=Math.atan(Ne/Math.abs(ie)),0>ie&&(Ne=Math.PI-Ne)),de=se/de,pe=Ne-pe,this.dd(a,y),a+=1;a<b;a++)y=this.i(a),ie=y.x-x,se=y.y-z,y=Math.sqrt(ie*ie+se*se),an.$(y,0)||(an.$(ie,0)?se=0>se?-Math.PI/2:Math.PI/2:(se=Math.atan(se/Math.abs(ie)),0>ie&&(se=Math.PI-se)),ie=se+pe,y*=de,this.L(a,ne+y*Math.cos(ie),Se+y*Math.sin(ie)));this.dd(b,E)}}return!0;case C0:if(z=this.i(a),Se=this.i(b),!z.Xa(y)||!Se.Xa(E)){x=z.x,z=z.y,ne=Se.x,Se=Se.y,de=(ne-x)*(ne-x)+(Se-z)*(Se-z),ie=y.x,pe=y.y,se=E.x,Ne=E.y;var Oe=1;if(se-ie!==0){var He=(Ne-pe)/(se-ie);Oe=Math.sqrt(1+1/(He*He))}else He=9e9;for(this.dd(a,y),a+=1;a<b;a++){y=this.i(a);var Je=y.x,xt=y.y,yt=.5;de!==0&&(yt=((x-Je)*(x-ne)+(z-xt)*(z-Se))/de);var Rt=x+yt*(ne-x),Bt=z+yt*(Se-z);y=Math.sqrt((Je-Rt)*(Je-Rt)+(xt-Bt)*(xt-Bt)),xt<He*(Je-Rt)+Bt&&(y=-y),0<He&&(y=-y),Je=ie+yt*(se-ie),yt=pe+yt*(Ne-pe),He!==0?(y=Je+y/Oe,this.L(a,y,yt-(y-Je)/He)):this.L(a,Je,yt+y)}this.dd(b,E)}return!0;case nm:e:{if(this.isOrthogonal&&(x=this.i(a),z=this.i(a+1),ne=this.i(a+2),ie=z.x,pe=z.y,Se=ie,de=pe,an.B(x.y,z.y)?an.B(z.x,ne.x)?pe=y.y:an.B(z.y,ne.y)&&(ie=y.x):an.B(x.x,z.x)&&(an.B(z.y,ne.y)?ie=y.x:an.B(z.x,ne.x)&&(pe=y.y)),this.L(a+1,ie,pe),x=this.i(b),z=this.i(b-1),ne=this.i(b-2),ie=z.x,pe=z.y,se=ie,Ne=pe,an.B(x.y,z.y)?an.B(z.x,ne.x)?pe=E.y:an.B(z.y,ne.y)&&(ie=E.x):an.B(x.x,z.x)&&(an.B(z.y,ne.y)?ie=E.x:an.B(z.x,ne.x)&&(pe=E.y)),this.L(b-1,ie,pe),ay(this))){this.L(a+1,Se,de),this.L(b-1,se,Ne),b=!1;break e}this.dd(a,y),this.dd(b,E),b=!0}return b;default:return!1}},Mr.prototype.addOrthoPoints=function(a,y,b,E,x,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ne=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ie=x.actualBounds.copy(),se=z.actualBounds.copy();if(ie.w()&&se.w()){ie.Bc(lm,lm),se.Bc(lm,lm),ie.Ye(a),se.Ye(b);var de=rt.alloc(),pe=rt.alloc();y===0?b.x>a.x||E===270&&b.y<a.y&&se.right>a.x||E===90&&b.y>a.y&&se.right>a.x?(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),E===180?(de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1),pe.x=de.x,pe.y=b.y):E===270&&b.y<a.y||E===90&&b.y>a.y?(de.x=a.x<se.left?this.computeMidOrthoPosition(a.x,a.y,se.left,b.y,!1):a.x<se.right&&(E===270&&a.y<se.top||E===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):se.right,pe.x=de.x,pe.y=b.y):E===0&&a.x<se.left&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<b.y?Math.min(b.y,se.top):Math.max(b.y,se.bottom),pe.y=de.y)):(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),(E===180||E===90&&b.y<ie.top||E===270&&b.y>ie.bottom)&&(E===180&&(se.ca(a)||ie.ca(b))?de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):b.y<a.y&&(E===180||E===90)?de.y=this.computeMidOrthoPosition(a.x,ie.top,b.x,Math.max(b.y,se.bottom),!0):b.y>a.y&&(E===180||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,ie.bottom,b.x,Math.min(b.y,se.top),!0)),pe.x=b.x,pe.y=de.y),de.y>ie.top&&de.y<ie.bottom&&(b.x>=ie.left&&b.x<=a.x||a.x<=se.right&&a.x>=b.x?(E===90||E===270)&&(de.h(Math.max((a.x+b.x)/2,a.x),a.y),pe.h(de.x,b.y)):(de.y=E===270||(E===0||E===180)&&b.y<a.y?Math.min(b.y,E===0?ie.top:Math.min(ie.top,se.top)):Math.max(b.y,E===0?ie.bottom:Math.max(ie.bottom,se.bottom)),pe.x=b.x,pe.y=de.y))):y===180?b.x<a.x||E===270&&b.y<a.y&&se.left<a.x||E===90&&b.y>a.y&&se.left<a.x?(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),E===0?(de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1),pe.x=de.x,pe.y=b.y):E===270&&b.y<a.y||E===90&&b.y>a.y?(de.x=a.x>se.right?this.computeMidOrthoPosition(a.x,a.y,se.right,b.y,!1):a.x>se.left&&(E===270&&a.y<se.top||E===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):se.left,pe.x=de.x,pe.y=b.y):E===180&&a.x>se.right&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<b.y?Math.min(b.y,se.top):Math.max(b.y,se.bottom),pe.y=de.y)):(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),(E===0||E===90&&b.y<ie.top||E===270&&b.y>ie.bottom)&&(E===0&&(se.ca(a)||ie.ca(b))?de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):b.y<a.y&&(E===0||E===90)?de.y=this.computeMidOrthoPosition(a.x,ie.top,b.x,Math.max(b.y,se.bottom),!0):b.y>a.y&&(E===0||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,ie.bottom,b.x,Math.min(b.y,se.top),!0)),pe.x=b.x,pe.y=de.y),de.y>ie.top&&de.y<ie.bottom&&(b.x<=ie.right&&b.x>=a.x||a.x>=se.left&&a.x<=b.x?(E===90||E===270)&&(de.h(Math.min((a.x+b.x)/2,a.x),a.y),pe.h(de.x,b.y)):(de.y=E===270||(E===0||E===180)&&b.y<a.y?Math.min(b.y,E===180?ie.top:Math.min(ie.top,se.top)):Math.max(b.y,E===180?ie.bottom:Math.max(ie.bottom,se.bottom)),pe.x=b.x,pe.y=de.y))):y===90?b.y>a.y||E===180&&b.x<a.x&&se.bottom>a.y||E===0&&b.x>a.x&&se.bottom>a.y?(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),E===270?(de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0),pe.x=b.x,pe.y=de.y):E===180&&b.x<a.x||E===0&&b.x>a.x?(de.y=a.y<se.top?this.computeMidOrthoPosition(a.x,a.y,b.x,se.top,!0):a.y<se.bottom&&(E===180&&a.x<se.left||E===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):se.bottom,pe.x=b.x,pe.y=de.y):E===90&&a.y<se.top&&a.x>se.left&&a.x<se.right&&(de.x=a.x<b.x?Math.min(b.x,se.left):Math.max(b.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),(E===270||E===0&&b.x<ie.left||E===180&&b.x>ie.right)&&(E===270&&(se.ca(a)||ie.ca(b))?de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):b.x<a.x&&(E===270||E===0)?de.x=this.computeMidOrthoPosition(ie.left,a.y,Math.max(b.x,se.right),b.y,!1):b.x>a.x&&(E===270||E===180)&&(de.x=this.computeMidOrthoPosition(ie.right,a.y,Math.min(b.x,se.left),b.y,!1)),pe.x=de.x,pe.y=b.y),de.x>ie.left&&de.x<ie.right&&(b.y>=ie.top&&b.y<=a.y||a.y<=se.bottom&&a.y>=b.y?(E===0||E===180)&&(de.h(a.x,Math.max((a.y+b.y)/2,a.y)),pe.h(b.x,de.y)):(de.x=E===180||(E===90||E===270)&&b.x<a.x?Math.min(b.x,E===90?ie.left:Math.min(ie.left,se.left)):Math.max(b.x,E===90?ie.right:Math.max(ie.right,se.right)),pe.x=de.x,pe.y=b.y))):b.y<a.y||E===180&&b.x<a.x&&se.top<a.y||E===0&&b.x>a.x&&se.top<a.y?(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),E===90?(de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0),pe.x=b.x,pe.y=de.y):E===180&&b.x<a.x||E===0&&b.x>=a.x?(de.y=a.y>se.bottom?this.computeMidOrthoPosition(a.x,a.y,b.x,se.bottom,!0):a.y>se.top&&(E===180&&a.x<se.left||E===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):se.top,pe.x=b.x,pe.y=de.y):E===270&&a.y>se.bottom&&a.x>se.left&&a.x<se.right&&(de.x=a.x<b.x?Math.min(b.x,se.left):Math.max(b.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),(E===90||E===0&&b.x<ie.left||E===180&&b.x>ie.right)&&(E===90&&(se.ca(a)||ie.ca(b))?de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):b.x<a.x&&(E===90||E===0)?de.x=this.computeMidOrthoPosition(ie.left,a.y,Math.max(b.x,se.right),b.y,!1):b.x>a.x&&(E===90||E===180)&&(de.x=this.computeMidOrthoPosition(ie.right,a.y,Math.min(b.x,se.left),b.y,!1)),pe.x=de.x,pe.y=b.y),de.x>ie.left&&de.x<ie.right&&(b.y<=ie.bottom&&b.y>=a.y||a.y>=se.top&&a.y<=b.y?(E===0||E===180)&&(de.h(a.x,Math.min((a.y+b.y)/2,a.y)),pe.h(b.x,de.y)):(de.x=E===180||(E===90||E===270)&&b.x<a.x?Math.min(b.x,E===270?ie.left:Math.min(ie.left,se.left)):Math.max(b.x,E===270?ie.right:Math.max(ie.right,se.right)),pe.x=de.x,pe.y=b.y)));var Se=b;if(this.isAvoiding){var Ne=this.diagram;if(Ne===null||x===z||this.layer.isTemporary||!Mf(Ne)||ie.ca(Se)&&!z.Td(x)||se.ca(a)&&!x.Td(z))y=!1;else{var Oe=Qh(Ne,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Oe.Yj(Math.min(a.x,de.x),Math.min(a.y,de.y),Math.abs(a.x-de.x),Math.abs(a.y-de.y))&&Oe.Yj(Math.min(de.x,pe.x),Math.min(de.y,pe.y),Math.abs(de.x-pe.x),Math.abs(de.y-pe.y))&&Oe.Yj(Math.min(pe.x,Se.x),Math.min(pe.y,Se.y),Math.abs(pe.x-Se.x),Math.abs(pe.y-Se.y)))y=!1;else{x=a,z=Se;var He=b=null;if(Ne.isVirtualized){Ne=Oe.bounds.copy(),Ne.Bc(-Oe.Ho,-Oe.Go);var Je=rt.alloc();Sg(Oe,a.x,a.y)||(an.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,a.x,a.y,de.x,de.y,Je)?(b=a=Je.copy(),y=Je.ab(de)):an.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,de.x,de.y,pe.x,pe.y,Je)?(b=a=Je.copy(),y=Je.ab(pe)):an.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,pe.x,pe.y,Se.x,Se.y,Je)&&(b=a=Je.copy(),y=Je.ab(Se))),Sg(Oe,Se.x,Se.y)||(an.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,Se.x,Se.y,pe.x,pe.y,Je)?(He=Se=Je.copy(),E=pe.ab(Je)):an.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,pe.x,pe.y,de.x,de.y,Je)?(He=Se=Je.copy(),E=de.ab(Je)):an.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,de.x,de.y,a.x,a.y,Je)&&(He=Se=Je.copy(),E=a.ab(Je))),rt.free(Je)}ie=ie.copy().ed(se),ie.Bc(Oe.Ho*Oe.Os,Oe.Go*Oe.Os),h1(Oe,a,y,Se,E,ie,!0),se=Md(Oe,Se.x,Se.y),!Oe.abort&&se>=bg&&(d1(Oe),ie.Bc(Oe.Ho*Oe.Hx,Oe.Go*Oe.Ix),h1(Oe,a,y,Se,E,ie,!1),se=Md(Oe,Se.x,Se.y)),!Oe.abort&&se<bg&&Md(Oe,Se.x,Se.y)!==Ih?(sy(this,Oe,Se.x,Se.y,E,!0,ne),ie=this.i(2),4>this.pointsCount?(y===0||y===180?(ie.x=a.x,ie.y=Se.y):(ie.x=Se.x,ie.y=a.y),this.L(2,ie.x,ie.y),this.m(3,ie.x,ie.y)):(ne=this.i(3),y===0||y===180?an.B(ie.x,ne.x)?(ie=y===0?Math.max(ie.x,a.x):Math.min(ie.x,a.x),this.L(2,ie,a.y),this.L(3,ie,ne.y)):an.B(ie.y,ne.y)?(Math.abs(a.y-ie.y)<=Oe.Go/2&&(this.L(2,ie.x,a.y),this.L(3,ne.x,a.y)),this.m(2,ie.x,a.y)):this.L(2,a.x,ie.y):(y===90||y===270)&&(an.B(ie.y,ne.y)?(ie=y===90?Math.max(ie.y,a.y):Math.min(ie.y,a.y),this.L(2,a.x,ie),this.L(3,ne.x,ie)):an.B(ie.x,ne.x)?(Math.abs(a.x-ie.x)<=Oe.Ho/2&&(this.L(2,a.x,ie.y),this.L(3,a.x,ne.y)),this.m(2,a.x,ie.y)):this.L(2,ie.x,a.y))),b!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,x.x,b.y):this.m(2,b.x,x.y)),He!==null&&(E===0||E===180?this.yf(z.x,He.y):this.yf(He.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(de.copy()),this.ne(pe.copy())),rt.free(de),rt.free(pe)}},Mr.prototype.computeMidOrthoPosition=function(a,y,b,E,x){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),x?(y+E)/2+z:(a+b)/2+z};function ay(a){if(a.diagram===null||!a.isAvoiding||!Mf(a.diagram))return!1;var y=a.points.s,b=y.length;if(4>b)return!1;a=Qh(a.diagram,!0,a.containingGroup,null);for(var E=1;E<b-2;E++){var x=y[E],z=y[E+1];if(!a.Yj(Math.min(x.x,z.x),Math.min(x.y,z.y),Math.abs(x.x-z.x),Math.abs(x.y-z.y)))return!0}return!1}function sy(a,y,b,E,x,z,ne){var ie=y.Ho,se=y.Go,de=Md(y,b,E),pe=b,Se=E;for(x===0?pe+=ie:x===90?Se+=se:x===180?pe-=ie:Se-=se,x!==ne&&de>Vf&&Md(y,pe,Se)!==de-1&&(Md(y,b-ie,E)===de-1?(x=180,pe=b-ie,Se=E):Md(y,b+ie,E)===de-1?(x=0,pe=b+ie,Se=E):Md(y,b,E-se)===de-1?(x=270,pe=b,Se=E-se):Md(y,b,E+se)===de-1&&(x=90,pe=b,Se=E+se));de>Vf&&Md(y,pe,Se)===de-1;)b=pe,E=Se,x===0?pe+=ie:x===90?Se+=se:x===180?pe-=ie:Se-=se,--de;z?de>Vf&&(x===180||x===0?b=Math.floor(b/ie)*ie+ie/2:(x===90||x===270)&&(E=Math.floor(E/se)*se+se/2)):(b=Math.floor(b/ie)*ie+ie/2,E=Math.floor(E/se)*se+se/2),de>Vf&&(z=x,ne=b,pe=E,x===0?(z=90,pe+=se):x===90?(z=180,ne-=ie):x===180?(z=270,pe-=se):x===270&&(z=0,ne+=ie),Md(y,ne,pe)===de-1?sy(a,y,ne,pe,z,!1,z):(ne=b,pe=E,x===0?(z=270,pe-=se):x===90?(z=0,ne+=ie):x===180?(z=90,pe+=se):x===270&&(z=180,ne-=ie),Md(y,ne,pe)===de-1&&sy(a,y,ne,pe,z,!1,z))),a.yf(b,E)}Mr.prototype.ez=function(a){var y=a.x;a=a.y;for(var b=this.i(0),E=this.i(1),x=Xn(y,a,b.x,b.y,E.x,E.y),z=0,ne=1;ne<this.pointsCount-1;ne++){b=this.i(ne+1);var ie=Xn(y,a,E.x,E.y,b.x,b.y);E=b,ie<x&&(z=ne,x=ie)}return z},Mr.prototype.qc=function(){this.lk=!1,this.v()},Mr.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,b=y.length,E=0;E<b;E++){var x=y[E];x!==a&&x.isPanelMain&&x instanceof ro&&(x.ua=this.ua)}}},Mr.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,b=!1,E=this.diagram;E!==null&&jf(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(b=!0);var x=this.i(0).copy(),z=x.copy();E=this.Nb.s;var ne=this.computeCurve();if(ne===ic&&3<=y&&!an.$(this.smoothness,0))if(y===3){var ie=this.i(1);E=Math.min(x.x,ie.x);var se=Math.min(x.y,ie.y);ie=this.i(2),E=Math.min(E,ie.x),se=Math.min(se,ie.y)}else{if(this.isOrthogonal)for(se=0;se<y;se++)ie=E[se],z.x=Math.min(ie.x,z.x),z.y=Math.min(ie.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),se=this.i(E),z.x=Math.min(se.x,z.x),z.y=Math.min(se.y,z.y);E=z.x,se=z.y}else{for(se=0;se<y;se++)ie=E[se],z.x=Math.min(ie.x,z.x),z.y=Math.min(ie.y,z.y);E=z.x,se=z.y}if(E-=this.su.x,se-=this.su.y,x.x-=E,x.y-=se,y!==2||jf(this)){if(a.type=Lr.o,ie=BS(a),this.computeShortLength(!0)!==0&&(x=Np(this,x,!0,z)),gg(ie,x.x,x.y,!1),ne===ic&&3<=y&&!an.$(this.smoothness,0))if(y===3)b=this.i(1),y=b.x-E,b=b.y-se,x=this.i(2).copy(),x.x-=E,x.y-=se,this.computeShortLength(!1)!==0&&(x=Np(this,x,!1,z)),Th(ie,y,b,y,b,x.x,x.y);else if(this.isOrthogonal){y=rt.allocAt(E,se),b=rt.alloc(),b.assign(this.i(1)),z=rt.allocAt(E,se),x=rt.allocAt(E,se),ne=this.i(0);for(var de,pe=this.smoothness/3,Se=1;Se<this.pointsCount-1;Se++){de=this.i(Se);var Ne=ne,Oe=de,He=this.i(ly(this,de,Se,!1));if((!an.$(Ne.x,Oe.x)||!an.$(Oe.x,He.x))&&(!an.$(Ne.y,Oe.y)||!an.$(Oe.y,He.y))){var Je=pe;isNaN(Je)&&(Je=this.smoothness/3);var xt=Ne.x;Ne=Ne.y;var yt=Oe.x;Oe=Oe.y;var Rt=He.x;He=He.y;var Bt=Je*E0(xt,Ne,yt,Oe);Je*=E0(yt,Oe,Rt,He),an.$(Ne,Oe)&&an.$(yt,Rt)&&(yt>xt?He>Oe?(z.x=yt-Bt,z.y=Oe-Bt,x.x=yt+Je,x.y=Oe+Je):(z.x=yt-Bt,z.y=Oe+Bt,x.x=yt+Je,x.y=Oe-Je):He>Oe?(z.x=yt+Bt,z.y=Oe-Bt,x.x=yt-Je,x.y=Oe+Je):(z.x=yt+Bt,z.y=Oe+Bt,x.x=yt-Je,x.y=Oe-Je)),an.$(xt,yt)&&an.$(Oe,He)&&(Oe>Ne?(Rt>yt?(z.x=yt-Bt,z.y=Oe-Bt,x.x=yt+Je):(z.x=yt+Bt,z.y=Oe-Bt,x.x=yt-Je),x.y=Oe+Je):(Rt>yt?(z.x=yt-Bt,z.y=Oe+Bt,x.x=yt+Je):(z.x=yt+Bt,z.y=Oe+Bt,x.x=yt-Je),x.y=Oe-Je)),(an.$(xt,yt)&&an.$(yt,Rt)||an.$(Ne,Oe)&&an.$(Oe,He))&&(xt=.5*(xt+Rt),Ne=.5*(Ne+He),z.x=xt,z.y=Ne,x.x=xt,x.y=Ne),(Se===1||Se===2&&an.$(ne.x,this.i(0).x)&&an.$(ne.y,this.i(0).y))&&(b.x=.5*(ne.x+de.x),b.y=.5*(ne.y+de.y)),Th(ie,b.x-E,b.y-se,z.x-E,z.y-se,de.x-E,de.y-se),y.set(z),b.set(x),ne=de}}de=ne.x,ne=ne.y,pe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(pe=Np(this,pe.copy(),!1,jr)),de=.5*(de+pe.x),ne=.5*(ne+pe.y),Th(ie,x.x-E,x.y-se,de-E,ne-se,pe.x-E,pe.y-se),rt.free(y),rt.free(b),rt.free(z),rt.free(x)}else for(b=3;b<y;b+=3)z=this.i(b-2),b+3>=y&&(b=y-1),x=this.i(b-1),ne=this.i(b),b===y-1&&this.computeShortLength(!1)!==0&&(ne=Np(this,ne.copy(),!1,jr)),Th(ie,z.x-E,z.y-se,x.x-E,x.y-se,ne.x-E,ne.y-se);else{for(z=rt.alloc(),z.assign(this.i(0)),x=rt.alloc(),x.assign(z),ne=this.computeCorner(),Se=1,de=0;Se<y;){if(Se=ly(this,z,Se,1<Se),pe=this.i(Se),Se>=y-1){if(!z.D(pe))this.computeShortLength(!1)!==0&&(pe=Np(this,pe.copy(),!1,jr)),Lp(this,ie,-E,-se,z,pe,b);else if(de===0)for(Se=1;Se<y;)x.assign(z),pe=this.i(Se++),Lp(this,ie,-E,-se,z,pe,b),z.assign(pe);break}if(de=ly(this,pe,Se+1,Se<y-3),Se=-E,xt=-se,Ne=pe,yt=this.i(de),Je=b,an.B(z.y,Ne.y)&&an.B(Ne.x,yt.x))if(He=Math.min(ne,Math.abs(Ne.x-x.x)/2),He=Bt=Math.min(He,Math.abs(yt.y-Ne.y)/2),an.B(He,0))Lp(this,ie,Se,xt,z,Ne,Je),z.assign(Ne);else{var Gt=Ne.x,$t=Ne.y;Oe=Gt,Rt=$t,Ne.x>z.x?Gt=Ne.x-He:Gt=Ne.x+He,yt.y>Ne.y?Rt=Ne.y+Bt:Rt=Ne.y-Bt,yt=rt.allocAt(Gt,$t),Lp(this,ie,Se,xt,z,yt,Je),rt.free(yt),d0(ie,Ne.x+Se,Ne.y+xt,Oe+Se,Rt+xt),z.h(Oe,Rt)}else an.B(z.x,Ne.x)&&an.B(Ne.y,yt.y)?(He=Math.min(ne,Math.abs(Ne.y-x.y)/2),He=Bt=Math.min(He,Math.abs(yt.x-Ne.x)/2),an.B(Bt,0)?(Lp(this,ie,Se,xt,z,Ne,Je),z.assign(Ne)):(Gt=Ne.x,$t=Ne.y,Oe=Gt,Rt=$t,Ne.y>z.y?$t=Ne.y-He:$t=Ne.y+He,yt.x>Ne.x?Oe=Ne.x+Bt:Oe=Ne.x-Bt,yt=rt.allocAt(Gt,$t),Lp(this,ie,Se,xt,z,yt,Je),rt.free(yt),d0(ie,Ne.x+Se,Ne.y+xt,Oe+Se,Rt+xt),z.h(Oe,Rt))):(Lp(this,ie,Se,xt,z,Ne,Je),z.assign(Ne));x.assign(pe),Se=de}rt.free(z)}h0=ie}else ie=this.i(1).copy(),ie.x-=E,ie.y-=se,this.computeShortLength(!0)!==0&&(x=Np(this,x,!0,z)),this.computeShortLength(!1)!==0&&(ie=Np(this,ie,!1,z)),a.type=Lr.j,a.startX=x.x,a.startY=x.y,a.endX=ie.x,a.endY=ie.y;return this.lk=!0,a};function E0(a,y,b,E){return a=b-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),an.$(a,0)?y:an.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Np(a,y,b,E){var x=a.pointsCount;if(2>x)return y;if(b){var z=a.i(1);if(b=z.x-E.x,z=z.y-E.y,E=E0(y.x,y.y,b,z),E===0)return y;x=x===2?.5*E:E,a=a.computeShortLength(!0),a>x&&(a=x),x=a*(z-y.y)/E,y.x+=a*(b-y.x)/E,y.y+=x}else{if(z=a.i(x-2),b=z.x-E.x,z=z.y-E.y,E=E0(y.x,y.y,b,z),E===0)return y;x=x===2?.5*E:E,a=a.computeShortLength(!1),a>x&&(a=x),x=a*(y.y-z)/E,y.x-=a*(y.x-b)/E,y.y-=x}return y}function ly(a,y,b,E){for(var x=a.pointsCount,z=y;an.$(y.x,z.x)&&an.$(y.y,z.y);){if(b>=x)return x-1;z=a.i(b++)}if(!an.$(y.x,z.x)&&!an.$(y.y,z.y))return b-1;for(var ne=z;an.$(y.x,z.x)&&an.$(z.x,ne.x)&&(!E||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||an.$(y.y,z.y)&&an.$(z.y,ne.y)&&(!E||(y.x>=z.x?z.x>=ne.x:z.x<=ne.x));){if(b>=x)return x-1;ne=a.i(b++)}return b-2}Mr.prototype.computeJumpLength=function(){return 10};function Lp(a,y,b,E,x,z,ne){if(!ne&&jf(a)){ne=a.computeJumpLength();var ie=ne/2,se=[],de=0;if(a.isVisible()&&(de=pE(a,x,z,se)),0<de){if(an.B(x.y,z.y))if(x.x<z.x)for(var pe=0;pe<de;){var Se=Math.max(x.x,Math.min(se[pe++]-ie,z.x-ne));y.lineTo(Se+b,z.y+E);for(var Ne=Se+b,Oe=Math.min(Se+ne,z.x);pe<de&&(Se=se[pe],Se<Oe+ne);)pe++,Oe=Math.min(Se+ie,z.x);Se=z.y-ne+E,Oe+=b;var He=z.y+E;a.curve===kh?gg(y,Oe,He,!1):Th(y,Ne,Se,Oe,Se,Oe,He)}else for(--de;0<=de;){for(pe=Math.min(x.x,Math.max(se[de--]+ie,z.x+ne)),y.lineTo(pe+b,z.y+E),Ne=pe+b,Se=Math.max(pe-ne,z.x);0<=de&&(pe=se[de],pe>Se-ne);)de--,Se=Math.max(pe-ie,z.x);pe=z.y-ne+E,Se+=b,Oe=z.y+E,a.curve===kh?gg(y,Se,Oe,!1):Th(y,Ne,pe,Se,pe,Se,Oe)}else if(an.B(x.x,z.x))if(x.y<z.y)for(pe=0;pe<de;){for(Se=Math.max(x.y,Math.min(se[pe++]-ie,z.y-ne)),y.lineTo(z.x+b,Se+E),Ne=Se+E,Se=Math.min(Se+ne,z.y);pe<de&&(Oe=se[pe],Oe<Se+ne);)pe++,Se=Math.min(Oe+ie,z.y);Oe=z.x-ne+b,He=z.x+b,Se+=E,a.curve===kh?gg(y,He,Se,!1):Th(y,Oe,Ne,Oe,Se,He,Se)}else for(--de;0<=de;){for(pe=Math.min(x.y,Math.max(se[de--]+ie,z.y+ne)),y.lineTo(z.x+b,pe+E),Ne=pe+E,pe=Math.max(pe-ne,z.y);0<=de&&(Se=se[de],Se>pe-ne);)de--,pe=Math.max(Se-ie,z.y);Se=z.x-ne+b,Oe=z.x+b,pe+=E,a.curve===kh?gg(y,Oe,pe,!1):Th(y,Se,Ne,Se,pe,Oe,pe)}}}y.lineTo(z.x+b,z.y+E)}function pE(a,y,b,E){var x=a.diagram;if(x===null||y.D(b))return 0;for(x=x.layers;x.next();){var z=x.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ne=z.length,ie=0;ie<ne;ie++){var se=z[ie];if(se instanceof Mr){if(se===a)return 0<E.length&&E.sort(function(pe,Se){return pe-Se}),E.length;if(se.isVisible()&&jf(se)){var de=se.routeBounds;de.w()&&a.routeBounds.Yc(de)&&!a.usesSamePort(se)&&(de=se.path,de!==null&&de.Ed()&&gE(y,b,E,se))}}}}}return 0<E.length&&E.sort(function(pe,Se){return pe-Se}),E.length}function gE(a,y,b,E){for(var x=an.B(a.y,y.y),z=E.pointsCount,ne=E.i(0),ie=rt.alloc(),se=1;se<z;se++){var de=E.i(se);if(se<z-1){var pe=E.i(se+1);if(ne.y===de.y&&de.y===pe.y){if(de.x>ne.x&&pe.x>=de.x||de.x<ne.x&&pe.x<=de.x)continue}else if(ne.x===de.x&&de.x===pe.x&&(de.y>ne.y&&pe.y>=de.y||de.y<ne.y&&pe.y<=de.y))continue}e:{pe=a.x;var Se=a.y,Ne=y.x,Oe=y.y,He=ne.x;ne=ne.y;var Je=de.x,xt=de.y;if(an.B(pe,Ne)){if(!an.B(Se,Oe)&&an.B(ne,xt)&&Math.min(Se,Oe)<ne&&Math.max(Se,Oe)>ne&&Math.min(He,Je)<pe&&Math.max(He,Je)>pe&&!an.B(He,Je)){ie.x=pe,ie.y=ne,pe=!0;break e}}else if(an.B(Se,Oe)&&an.B(He,Je)&&Math.min(pe,Ne)<He&&Math.max(pe,Ne)>He&&Math.min(ne,xt)<Se&&Math.max(ne,xt)>Se&&!an.B(ne,xt)){ie.x=He,ie.y=Se,pe=!0;break e}ie.x=0,ie.y=0,pe=!1}pe&&(x?b.push(ie.x):b.push(ie.y)),ne=de}rt.free(ie)}function jf(a){return a=a.curve,a===yg||a===kh}function x0(a,y){(y||jf(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()))}Mr.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var b=y.diagram;if(b!==null&&!b.animationManager.isTicking){var E=!1;for(b=b.layers;b.next();){var x=b.value;if(x.visible){if(x===y){E=!0;var z=!1;x=x.Pa.s;for(var ne=x.length,ie=0;ie<ne;ie++){var se=x[ie];se instanceof Mr&&(se===this?z=!0:z&&s1(this,se,a))}}else if(E)for(z=x.Pa.s,x=z.length,ne=0;ne<x;ne++)ie=z[ne],ie instanceof Mr&&s1(this,ie,a)}}}}};function s1(a,y,b){if(y!==null&&y.lk&&y.fd&&jf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||b.Yc(E))&&(a.usesSamePort(y)||y.qc())}}Mr.prototype.usesSamePort=function(a){var y=this.pointsCount,b=a.pointsCount;if(0<y&&0<b){var E=this.i(0),x=a.i(0);if(E.Xa(x)||(y=this.i(y-1),a=a.i(b-1),y.Xa(a)||E.Xa(a)||y.Xa(x)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Mr.prototype.isVisible=function(){if(!ki.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,b=this.diagram;if(b!==null&&(y=b.isTreePathToChildren),b=this.fromNode,b!==null){if(this.isTreeLink&&y&&!b.isTreeExpanded)return!1;if(b===a)return!0;for(var E=b;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(b=b.findVisibleNode(),b===null||b===a)return!1}if(b=this.toNode,b!==null){if(this.isTreeLink&&!y&&!b.isTreeExpanded)return!1;if(b===a)return!0;for(y=b;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=b.findVisibleNode(),y===null||y===a)return!1}return!0},Mr.prototype.Zb=function(a){if(ki.prototype.Zb.call(this,a),a&&x0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Mr.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?nm:this.qk};function em(a){var y=a.ef;if(y!==null){var b=a.uf;if(b!==null&&isNaN(a.curviness)){for(var E=a.ff,x=a.vf,z=a=null,ne=y.jb.s,ie=ne.length,se=0;se<ie;se++){var de=ne[se];(de.ef===y&&de.ff===E&&de.uf===b&&de.vf===x||de.ef===b&&de.ff===x&&de.uf===y&&de.vf===E)&&(z===null?z=de:(a===null&&(a=[],a.push(z)),a.push(de)))}if(a!==null){for(z=XS(y,b,E,x),z===null&&(z=new A0(y,E,b,x),YS(y,z),YS(b,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function tm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Ge(y.links,a),y.Sl()))}Mr.prototype.ph=function(){return!0},un.Object.defineProperties(Mr.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var b=this.fromPort;y!==null&&(this.uf!==y&&m0(y,this,b),tm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var x=this.fromPort,z=this.fromPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,b,x),E!==null&&(E.aa=ne)}a!==null&&(this.uf!==a&&g0(a,this,x),em(this),this.C(1)),this.g("fromNode",y,a),mg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var b=this.fromPort;b!==null&&Hu(b),tm(this),this.ff=a;var E=this.fromPort;E!==null&&Hu(E);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.xv(z,a)}b!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,b,E),x!==null&&(x.aa=ne))),em(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 b=this.toPort;y!==null&&(this.ef!==y&&m0(y,this,b),tm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var x=this.toPort,z=this.toPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,b,x),E!==null&&(E.aa=ne)}a!==null&&(this.ef!==a&&g0(a,this,x),em(this),this.C(1)),this.g("toNode",y,a),mg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var b=this.toPort;b!==null&&Hu(b),tm(this),this.vf=a;var E=this.toPort;E!==null&&Hu(E);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.Cv(z,a)}b!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,b,E),x!==null&&(x.aa=ne))),em(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:ts},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&&Hu(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&&vr(a,">= 0",Mr,"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:ts},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&&Hu(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&&vr(a,">= 0",Mr,"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?Xi: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&&$g(this.fromNode),this.toNode!==null&&$g(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof ro?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,b=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),b=Math.min(E.y,b),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var x=this.i(1);y=Math.min(E.x,x.x),b=Math.min(E.y,x.y),a.h(E.x,E.y,0,0),a.Ye(x)}else if(this.computeCurve()===ic&&3<=E&&!this.isOrthogonal)if(x=this.i(0),y=x.x,b=x.y,a.h(y,b,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),b=Math.min(E.y,b);var z=this.i(2);y=Math.min(z.x,y),b=Math.min(z.y,b),an.Dl(x.x,x.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var ne=this.i(z-2);z+3>=E&&(z=E-1);var ie=this.i(z-1),se=this.i(z);an.Dl(x.x,x.y,ne.x,ne.y,ie.x,ie.y,se.x,se.y,.5,a),y=Math.min(se.x,y),b=Math.min(se.y,b),x=se}else for(x=this.i(0),z=this.i(1),y=Math.min(x.x,z.x),b=Math.min(x.y,z.y),a.h(x.x,x.y,0,0),a.Ye(z),x=2;x<E;x++)z=this.i(x),y=Math.min(z.x,y),b=Math.min(z.y,b),a.Ye(z);this.su.h(y-a.x,b-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new rt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||y0(this);for(var a=this.cq=[],y=this.pointsCount,b=0;b<y-1;b++){var E=this.i(b),x=this.i(b+1);an.$(E.x,x.x)?(E=x.y-E.y,0>E&&(E=-E)):an.$(E.y,x.y)?(E=x.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(x)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,b=y.length,E=a=0;E<b;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var b=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var x=0;x<a.length;x++)if(typeof a[x]!="number"||isNaN(a[x])){E=!1;break}}if(E)for(b=new rr,E=0;E<a.length/2;E++)x=new rt(a[2*E],a[2*E+1]).freeze(),b.add(x);else{for(E=!0,x=0;x<a.length;x++){var z=a[x];if(!nn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(b=new rr,E=0;E<a.length;E++)x=a[E],b.add(new rt(x.x,x.y).freeze())}}else if(a instanceof rr)for(b=a.copy(),a=b.iterator;a.next();)a.value.freeze();else kt("Link.points value is not an instance of List or Array: "+a);b.freeze(),this.Nb=b,this.qc(),y0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ce(a.animationManager,this,b)),this.g("points",y,b)}}},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||!vg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!vg(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(),x0(this,y===kh||y===yg||a===kh||a===yg),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(),x0(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)}}}),Mr.prototype.invalidateOtherJumpOvers=Mr.prototype.Xo,Mr.prototype.findClosestSegment=Mr.prototype.ez,Mr.prototype.updateRoute=Mr.prototype.vg,Mr.prototype.invalidateRoute=Mr.prototype.bb,Mr.prototype.rollbackRoute=Mr.prototype.rv,Mr.prototype.commitRoute=Mr.prototype.zf,Mr.prototype.startRoute=Mr.prototype.uh,Mr.prototype.clearPoints=Mr.prototype.Fj,Mr.prototype.removePoint=Mr.prototype.pv,Mr.prototype.addPointAt=Mr.prototype.yf,Mr.prototype.addPoint=Mr.prototype.ne,Mr.prototype.insertPointAt=Mr.prototype.m,Mr.prototype.insertPoint=Mr.prototype.Kz,Mr.prototype.setPointAt=Mr.prototype.L,Mr.prototype.setPoint=Mr.prototype.dd,Mr.prototype.getPoint=Mr.prototype.i,Mr.prototype.getOtherPort=Mr.prototype.Cz,Mr.prototype.getOtherNode=Mr.prototype.To;var kp=null,Ip=null,uy=new Ln(Mr,"Normal",1),mE=new Ln(Mr,"Orthogonal",2),vE=new Ln(Mr,"AvoidsNodes",6),l1=new Ln(Mr,"AvoidsNodesStraight",7),Jl=new Ln(Mr,"None",0),ic=new Ln(Mr,"Bezier",9),kh=new Ln(Mr,"JumpGap",10),yg=new Ln(Mr,"JumpOver",11),nm=new Ln(Mr,"End",17),w0=new Ln(Mr,"Scale",18),C0=new Ln(Mr,"Stretch",19),rm=new Ln(Mr,"OrientAlong",21),im=new Ln(Mr,"OrientPlus90",22),om=new Ln(Mr,"OrientMinus90",23),cy=new Ln(Mr,"OrientOpposite",24),P0=new Ln(Mr,"OrientUpright",25),am=new Ln(Mr,"OrientPlus90Upright",26),sm=new Ln(Mr,"OrientMinus90Upright",27),T0=new Ln(Mr,"OrientUpright45",28),u1=16,c1=14,lm=8;Mr.className="Link",Mr.Normal=uy,Mr.Orthogonal=mE,Mr.AvoidsNodes=vE,Mr.AvoidsNodesStraight=l1,Mr.None=Jl,Mr.Bezier=ic,Mr.JumpGap=kh,Mr.JumpOver=yg,Mr.End=nm,Mr.Scale=w0,Mr.Stretch=C0,Mr.OrientAlong=rm,Mr.OrientPlus90=im,Mr.OrientMinus90=om,Mr.OrientOpposite=cy,Mr.OrientUpright=P0,Mr.OrientPlus90Upright=am,Mr.OrientMinus90Upright=sm,Mr.OrientUpright45=T0,Mr.EndSegmentStep=8,Mr.CurvinessStart=u1,Mr.SpacingMin=c1,Mr.OrthoShortCut=lm;function A0(a,y,b,E){vi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=b,this.Px=E,this.links=[]}A0.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},A0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],b=y.diagram;b=b===null||b.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,b),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))}},A0.className="LinkBundle";function um(a){vi(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}um.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,b=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((b+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(b=[],E=0;E<=a;E++)b[E]=new Uint32Array(y);this.ac=b,this.di=a-1,this.ei=y-1}if(a=dy,this.ac!==null)for(y=0;y<=this.di;y++)if(b=this.ac[y],b.fill)b.fill(a);else for(E=0;E<=this.ei;E++)b[E]=a}};function Sg(a,y,b){return a.Nd<=y&&y<=a.En&&a.Od<=b&&b<=a.Fn}function Md(a,y,b){return Sg(a,y,b)?(y-=a.Nd,y/=a.rc,b-=a.Od,b/=a.sc,a.ac[y|0][b|0]):dy}function d1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var b=a.ac[y],E=0;E<=a.ei;E++)b[E]>=Vf&&(b[E]=dy)}um.prototype.Yj=function(a,y,b,E){if(a>this.En||a+b<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,b=Math.max(0,b)/this.rc+1|0;var x=Math.max(0,E)/this.sc+1|0;if(0>a&&(b+=a,a=0),0>y&&(x+=y,y=0),0>b||0>x)return!0;for(E=Math.min(a+b-1,this.di)|0,b=Math.min(y+x-1,this.ei)|0;a<=E;a++){x=this.ac[a];for(var z=y;z<=b;z++)if(x[z]===Ih)return!1}return!0};function Od(a,y,b,E,x,z,ne,ie,se){if(!(y<z||y>ne||b<ie||b>se)){var de=y|0,pe=b|0,Se=a.ac[de][pe];if(Se>=Vf&&Se<bg)for(x?pe+=E:de+=E,Se+=1;z<=de&&de<=ne&&ie<=pe&&pe<=se&&!(Se>=a.ac[de][pe]);)a.ac[de][pe]=Se,Se+=1,x?pe+=E:de+=E;if(de=x?pe:de,x)if(0<E)for(b+=E;b<de;b+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se);else for(b+=E;b>de;b+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se);else if(0<E)for(y+=E;y<de;y+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se);else for(y+=E;y>de;y+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se)}}function N0(a,y,b,E,x,z,ne,ie,se){y|=0,b|=0;var de=Ih,pe=Vf;for(a.ac[y][b]=pe;de===Ih&&y>z&&y<ne&&b>ie&&b<se;)pe+=1,a.ac[y][b]=pe,x?b+=E:y+=E,de=a.ac[y][b]}function L0(a,y,b,E,x,z,ne,ie,se){y|=0,b|=0;var de=Ih,pe=bg;for(a.ac[y][b]=pe;de===Ih&&y>z&&y<ne&&b>ie&&b<se;)a.ac[y][b]=pe,x?b+=E:y+=E,de=a.ac[y][b]}function h1(a,y,b,E,x,z,ne){if(a.ac!==null){a.abort=!1;var ie=y.x,se=y.y;if(Sg(a,ie,se)){ie-=a.Nd,ie/=a.rc,se-=a.Od,se/=a.sc;var de=E.x,pe=E.y;if(Sg(a,de,pe))if(de-=a.Nd,de/=a.rc,pe-=a.Od,pe/=a.sc,1>=Math.abs(ie-de)&&1>=Math.abs(se-pe))a.abort=!0;else{var Se=z.x;E=z.y,y=z.x+z.width;var Ne=z.y+z.height;Se-=a.Nd,Se/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Ne-=a.Od,Ne/=a.sc,z=Math.max(0,Math.min(a.di,Se|0)),y=Math.min(a.di,Math.max(0,y|0)),Se=Math.max(0,Math.min(a.ei,E|0)),Ne=Math.min(a.ei,Math.max(0,Ne|0)),E=a.ac,ie|=0,se|=0,de|=0,pe|=0;var Oe=b===0||b===90?1:-1;if(b=b===90||b===270,E[ie][se]===Ih?(N0(a,ie,se,Oe,b,z,y,Se,Ne),N0(a,ie,se,1,!b,z,y,Se,Ne),N0(a,ie,se,-1,!b,z,y,Se,Ne)):N0(a,ie,se,Oe,b,ie,se,ie,se),E[de][pe]===Ih?(L0(a,de,pe,x===0||x===90?1:-1,x===90||x===270,z,y,Se,Ne),L0(a,de,pe,1,!(x===90||x===270),z,y,Se,Ne),L0(a,de,pe,-1,!(x===90||x===270),z,y,Se,Ne)):L0(a,de,pe,Oe,b,de,pe,de,pe),b=Jr(),ne&&f1(a,de,pe,x,ie,se,b))for((b[0]!==de||b[1]!==pe)&&(b.unshift(pe),b.unshift(de)),(b[b.length-2]!==ie||b[b.length-1]!==se)&&(b.push(ie),b.push(se)),a=Vf,x=b[b.length-2],ne=b[b.length-1],E[x][ne]=a++,z=b.length-4;0<=z;z-=2)for(x=b[z+2],ne=b[z+3],y=b[z],de=b[z+1];y>x?x++:y<x?x--:de>ne?ne++:de<ne&&ne--,E[x][ne]=a++,x!==y||ne!==de;);else Od(a,ie,se,1,!1,z,y,Se,Ne),Od(a,ie,se,-1,!1,z,y,Se,Ne),Od(a,ie,se,1,!0,z,y,Se,Ne),Od(a,ie,se,-1,!0,z,y,Se,Ne);Hr(b)}}}}function f1(a,y,b,E,x,z,ne){for(var ie=a.ac,se=y,de=b;;){if(se===x&&de===z)return!0;var pe=se,Se=de;if(E===0)if(pe<x)pe++;else break;else if(E===90)if(Se<z)Se++;else break;else if(E===180)if(pe>x)pe--;else break;else if(Se>z)Se--;else break;var Ne=ie[pe][Se];if(Ne===0||Ne===hy)break;se=pe,de=Se}for(;;){if(pe=E,Se=se,Ne=de,E===0?Ne<z?(pe=90,Ne++):Ne>z&&(pe=270,Ne--):E===90?Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--):E===180?Ne<z?(pe=90,Ne++):Ne>z&&(pe=270,Ne--):Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--),Se=ie[Se][Ne],pe!==E&&Se!==0&&Se!==hy){if(ne.push(se),ne.push(de),f1(a,se,de,pe,x,z,ne))return!0;ne.pop(),ne.pop()}if(ie[se][de]=hy,E===0){if(se===y)return!1;se--}else if(E===90){if(de===b)return!1;de--}else if(E===180){if(se===y)return!1;se++}else{if(de===b)return!1;de++}}}un.Object.defineProperties(um.prototype,{bounds:{get:function(){return new An(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 Ih=0,Vf=1,bg=999999,dy=bg+1,hy=bg+2;um.className="PositionArray";function Dp(){vi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Dp.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",b=0;b<a.length;b++){var E=a[b];E!==null&&(y+=`
`+E.toString())}return y};function yE(a,y,b,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<b?270:90;case 6:return 90<b&&270>=b?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return b>a&&b<=180+a?180:270;case 5:return b>180-a&&b<=360-a?270:0;case 12:return b>a&&b<=180+a?90:0;case 10:return b>180-a&&b<=360-a?180:90;case 7:return 90<b&&b<=180+a?180:b>180+a&&b<=360-a?270:0;case 13:return 180<b&&b<=360-a?270:b>a&&180>=b?90:0;case 14:return b>a&&b<=180-a?90:b>180-a&&270>=b?180:0;case 11:return b>180-a&&b<=180+a?180:b>180+a?270:90}return E&&y!==15&&(b-=15,0>b&&(b+=360)),b>a&&b<180-a?90:b>=180-a&&b<=180+a?180:b>180+a&&b<360-a?270:0}Dp.prototype.Sl=function(){this.pe.length=0};function p1(a,y){var b=a.pe;if(b.length===0){e:if(!a.ap){b=a.ap,a.ap=!0;var E=null,x=a.node,z=x instanceof $i?x:null;if(z===null||z.isSubGraphExpanded)var ne=x.isTreeExpanded?x.findLinksConnected(a.port.portId):x.qx();else{if(!z.actualBounds.w()){a.ap=b;break e}E=z,ne=E.Lu()}z=a.pe.length=0;var ie=a.port.ga(No,rt.alloc()),se=a.port.ga(ra,rt.alloc());for(x=An.allocAt(ie.x,ie.y,0,0),x.Ye(se),rt.free(ie),rt.free(se),ie=rt.allocAt(x.x+x.width/2,x.y+x.height/2),se=a.port.li(),ne=ne.iterator;ne.next();){var de=ne.value;if(de.isVisible()&&de.fromPort!==de.toPort){var pe=de.fromPort===a.port||de.fromNode!==null&&de.fromNode.Td(E),Se=de.computeSpot(pe,a.port);if(Se.$c()&&(pe=pe?de.toPort:de.fromPort,pe!==null)){var Ne=pe.part;if(Ne!==null){var Oe=Ne.findVisibleNode();Oe!==null&&Oe!==Ne&&(Ne=Oe,pe=Ne.port),pe=de.computeOtherPoint(Ne,pe),Ne=ie.ab(pe),Ne-=se,0>Ne?Ne+=360:360<=Ne&&(Ne-=360),Se=yE(x,Se,Ne,de.isOrthogonal),Se===0?(Se=4,180<Ne&&(Ne-=360)):Se===90?(Se=8,270<Ne&&(Ne-=360)):Se===180?Se=2:(Se=1,90>Ne&&(Ne+=360)),Oe=a.pe[z],Oe===void 0?(Oe=new fy(de,Ne,Se),a.pe[z]=Oe):(Oe.link=de,Oe.angle=Ne,Oe.Nc=Se),Oe.hv.set(pe),z++}}}}for(rt.free(ie),a.pe.sort(Dp.prototype.j),se=a.pe.length,E=-1,z=ie=0;z<se;z++)ne=a.pe[z],ne!==void 0&&(ne.Nc!==E&&(E=ne.Nc,ie=0),ne.Uo=ie,ie++);for(E=-1,ie=0,z=se-1;0<=z;z--)se=a.pe[z],se!==void 0&&(se.Nc!==E&&(E=se.Nc,ie=se.Uo+1),se.Gl=ie);if(z=a.pe,Se=a.port,E=a.node.portSpreading,ie=rt.alloc(),se=rt.alloc(),ne=rt.alloc(),de=rt.alloc(),Se.ga(No,ie),Se.ga(os,se),Se.ga(ra,ne),Se.ga(qa,de),Oe=Ne=pe=Se=0,E===ny)for(var He=0;He<z.length;He++){var Je=z[He];if(Je!==null){var xt=Je.link.computeThickness();switch(Je.Nc){case 8:Ne+=xt;break;case 2:Oe+=xt;break;case 1:Se+=xt;break;default:case 4:pe+=xt}}}var yt=He=0,Rt=1,Bt=Je=0;for(xt=0;xt<z.length;xt++){var Gt=z[xt];if(Gt!==null){if(He!==Gt.Nc){switch(He=Gt.Nc,He){case 8:var $t=ne;yt=de;break;case 2:$t=de,yt=ie;break;case 1:$t=ie,yt=se;break;default:case 4:$t=se,yt=ne}switch(Je=yt.x-$t.x,Bt=yt.y-$t.y,He){case 8:Ne>Math.abs(Je)?(Rt=Math.abs(Je)/Ne,Ne=Math.abs(Je)):Rt=1;break;case 2:Oe>Math.abs(Bt)?(Rt=Math.abs(Bt)/Oe,Oe=Math.abs(Bt)):Rt=1;break;case 1:Se>Math.abs(Je)?(Rt=Math.abs(Je)/Se,Se=Math.abs(Je)):Rt=1;break;default:case 4:pe>Math.abs(Bt)?(Rt=Math.abs(Bt)/pe,pe=Math.abs(Bt)):Rt=1}yt=0}var In=Gt.Zo;if(E===ny){switch(Gt=Gt.link.computeThickness(),Gt*=Rt,In.set($t),He){case 8:In.x=$t.x+Je/2+Ne/2-yt-Gt/2;break;case 2:In.y=$t.y+Bt/2+Oe/2-yt-Gt/2;break;case 1:In.x=$t.x+Je/2-Se/2+yt+Gt/2;break;default:case 4:In.y=$t.y+Bt/2-pe/2+yt+Gt/2}yt+=Gt}else{var qr=.5;E===v0&&(qr=(Gt.Uo+1)/(Gt.Gl+1)),In.x=$t.x+Je*qr,In.y=$t.y+Bt*qr}}}for(rt.free(ie),rt.free(se),rt.free(ne),rt.free(de),$t=a.pe,z=0;z<$t.length;z++)E=$t[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=b,An.free(x)}b=a.pe}for(a=0;a<b.length;a++)if(x=b[a],x!==null&&x.link===y)return x;return null}Dp.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},Dp.prototype.computeEndSegmentLength=function(a){var y=a.link,b=y.computeEndSegmentLength(this.node,this.port,to,y.fromPort===this.port),E=a.Uo;if(0>E)return b;var x=a.Gl;if(1>=x||!y.isOrthogonal)return b;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=x-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?b+8*E:(a?y.y===z.y:y.x===z.x)?b:b+8*(x-1-E)},Dp.className="Knot";function fy(a,y,b){this.link=a,this.angle=y,this.Nc=b,this.hv=new rt,this.Gl=this.Uo=0,this.Zo=new rt,this.Ju=0}fy.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()},fy.className="LinkInfo";function Na(a){vi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new rt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Na.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},Na.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Na.prototype.qb=function(){},Na.prototype.toString=function(){var a=Jn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Na.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())}}},Na.prototype.createNetwork=function(){return new va(this)},Na.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof kn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof $i?y.lg(a.memberParts):y.lg(a.iterator),y},Na.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 b=y.value.node;if(b!==null&&(a=b.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Na.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()}},Na.prototype.doLayout=function(a){var y=new ur;a instanceof kn?(sf(this,y,a.nodes,!0,this.rh,!0,!1,!0),sf(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof $i?sf(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},Na.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var b=this.arrangementOrigin.x,E=b,x=this.arrangementOrigin.y,z=0,ne=0;for(a=a.iterator;a.next();){var ie=a.value;cm(ie);var se=ie.measuredBounds,de=se.width;se=se.height,ie.moveTo(E,x),ie instanceof $i&&(ie.rh=!1),E+=Math.max(de,50)+20,ne=Math.max(ne,Math.max(se,50)),z>=y-1?(z=0,E=b,x+=ne+20,ne=0):z++}},Na.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,b=y,E=this.arrangementOrigin.y,x=0,z=0,ne=this.network.vertexes.iterator;ne.next();){var ie=ne.value.node;if(!(ie===null||ie instanceof Mr)&&(cm(ie),this.rh(ie))){var se=ie.measuredBounds,de=se.width;se=se.height,ie.moveTo(b,E),ie instanceof $i&&(ie.rh=!1),b+=Math.max(de,50)+20,z=Math.max(z,Math.max(se,50)),x>=a-1?(x=0,b=y,E+=z+20,z=0):x++}}},Na.prototype.rh=function(a){return!!(!a.location.w()||a instanceof $i&&a.rh)};function sf(a,y,b,E,x,z,ne,ie){for(b=b.iterator;b.next();){var se=b.value;E&&!se.isTopLevel||x!==null&&!x(se)||!se.canLayout()||(z&&se instanceof ii?se.isLinkLabel||(se instanceof $i&&se.layout===null?sf(a,y,se.memberParts,!1,x,z,ne,ie):(cm(se),y.add(se))):ne&&se instanceof Mr?y.add(se):!ie||!se.Zc()||se instanceof ii||(cm(se),y.add(se)))}}function cm(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Na.prototype.ni=function(a,y){var b=this.boundsComputation;return b!==null?(y||(y=new An),b(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Na.prototype.ex=function(a){var y=new ur;return a instanceof kn?(sf(this,y,a.nodes,!0,null,!0,!0,!0),sf(this,y,a.links,!0,null,!0,!0,!0),sf(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof $i?sf(this,y,a.memberParts,!1,null,!0,!0,!0):sf(this,y,a.iterator,!1,null,!0,!0,!0),y},Na.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var b=y.position.copy();return(isNaN(b.x)||isNaN(b.y))&&b.set(a),y=y.placeholder,y!==null&&(b=y.ga(No),(isNaN(b.x)||isNaN(b.y))&&b.set(a),a=y.padding,b.x+=a.left,b.y+=a.top),b}return a},un.Object.defineProperties(Na.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())}}}),Na.prototype.collectParts=Na.prototype.ex,Na.prototype.getLayoutBounds=Na.prototype.ni,Na.prototype.invalidateLayout=Na.prototype.C,Na.className="Layout";function va(a){vi(this),this.Sc=a,this.wf=new ur,this.ye=new ur,this.Es=new Rn,this.zs=new Rn}va.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 ur,this.ye=new ur,this.Es=new Rn,this.zs=new Rn},va.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 b=this.wf.iterator;b.next();)y+=`
`+b.value.toString(a-1);for(b=this.ye.iterator;b.next();)y+=`
`+b.value.toString(a-1)}return y},va.prototype.createVertex=function(){return new ks(this)},va.prototype.createEdge=function(){return new zu(this)},va.prototype.lg=function(a,y,b){if(a!==null){for(y===void 0&&(y=!1),b===void 0&&(b=null),b===null&&(b=function(ne){if(ne instanceof ii)return!ne.isLinkLabel;if(ne instanceof Mr){var ie=ne.fromNode;return ie===null||ie.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof ii&&(!y||E.isTopLevel)&&E.canLayout()&&b(E)){if(E instanceof $i&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var x=this.createVertex();x.node=E,this.dh(x)}}}for(a.reset();a.next();)if(E=a.value,E instanceof Mr&&(!y||E.isTopLevel)&&E.canLayout()&&b(E)&&this.Lo(E)===null){var z=E.fromNode;x=E.toNode,z!==null&&x!==null&&z!==x&&(z=this.findGroupVertex(z),x=this.findGroupVertex(x),z!==null&&x!==null&&this.Zj(z,x,E))}}},va.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},Me=va.prototype,Me.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Me.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},Me.Iu=function(a){if(a!==null&&g1(this,a)){for(var y=a.tg,b=y.count-1;0<=b;b--){var E=y.M(b);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)b=y.M(a),this.Mj(b)}};function g1(a,y){if(y===null)return!1;var b=a.wf.remove(y);return b&&(y=y.node,y!==null&&a.Es.remove(y)),b}Me.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Me.ki=function(a){return a===null?null:this.Es.I(a)},Me.Bo=function(a){if(a!==null){py(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function py(a,y){if(y!==null){a.ye.add(y);var b=y.link;b!==null&&a.Lo(b)===null&&a.zs.add(b,y),y.network=a}}Me.Dy=function(a){if(a===null)return null;var y=a.fromNode,b=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),b!==null&&(E.toVertex=this.Bl(b)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,b!==null?E.toVertex=this.Bl(b):E.toVertex=null),E},Me.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),gy(this,a)}};function gy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Me.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Me.Lo=function(a){return a===null?null:this.zs.I(a)},Me.Zj=function(a,y,b){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=b,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Me.gm=function(a){if(a!==null){var y=a.fromVertex,b=a.toVertex;y!==null&&b!==null&&(y.Jl(a),b.Kl(a),a.gm(),y.Cl(a),b.zl(a))}},Me.Ko=function(){for(var a=Jr(),y=this.ye.iterator;y.next();){var b=y.value;b.fromVertex===b.toVertex&&a.push(b)}for(y=a.length,b=0;b<y;b++)this.Mj(a[b]);Hr(a)},va.prototype.deleteArtificialVertexes=function(){for(var a=Jr(),y=this.wf.iterator;y.next();){var b=y.value;b.node===null&&b.data===null&&a.push(b)}for(b=a.length,y=0;y<b;y++)this.Iu(a[y]);for(y=Jr(),b=this.ye.iterator;b.next();){var E=b.value;E.link===null&&E.data===null&&y.push(E)}for(b=y.length,E=0;E<b;E++)this.Mj(y[E]);Hr(a),Hr(y)};function SE(a){for(var y=Jr(),b=a.ye.iterator;b.next();){var E=b.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(b=y.length,E=0;E<b;E++)a.Mj(y[E]);Hr(y)}va.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),SE(this),this.Ko()),a=new rr;for(var y=!0;y;){y=!1;for(var b=this.wf.iterator;b.next();){var E=b.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),my(this,y,E),y=!0;break}}}return a.sort(function(x,z){return x===null||z===null||x===z?0:z.vertexes.count-x.vertexes.count}),a};function my(a,y,b){if(b!==null&&b.network!==y){g1(a,b),y.dh(b);for(var E=b.sourceEdges;E.next();){var x=E.value;x.network!==y&&(gy(a,x),py(y,x),my(a,y,x.fromVertex))}for(E=b.destinationEdges;E.next();)b=E.value,b.network!==y&&(gy(a,b),py(y,b),my(a,y,b.toVertex))}}va.prototype.dz=function(){for(var a=new ur,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},un.Object.defineProperties(va.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}}}),va.prototype.findAllParts=va.prototype.dz,va.prototype.splitIntoSubNetworks=va.prototype.Zx,va.prototype.deleteSelfEdges=va.prototype.Ko,va.prototype.reverseEdge=va.prototype.gm,va.prototype.linkVertexes=va.prototype.Zj,va.prototype.findEdge=va.prototype.Lo,va.prototype.deleteLink=va.prototype.Yy,va.prototype.deleteEdge=va.prototype.Mj,va.prototype.addLink=va.prototype.Dy,va.prototype.addEdge=va.prototype.Bo,va.prototype.findVertex=va.prototype.ki,va.prototype.deleteNode=va.prototype.Zy,va.prototype.deleteVertex=va.prototype.Iu,va.prototype.addNode=va.prototype.Bl,va.prototype.addVertex=va.prototype.dh,va.prototype.addParts=va.prototype.lg,va.className="LayoutNetwork";function ks(a){vi(this),this.ob=a,this.j=new An(0,0,10,10).freeze(),this.o=new rt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new rr,this.mg=new rr}ks.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new rr,this.mg=new rr},ks.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Mi(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var b=!0,E=this.tg.iterator;E.next();){var x=E.value;b?b=!1:a+=",",a+=x.toString(0)}for(x="",b=!0,E=this.mg.iterator;E.next();){var z=E.value;b?b=!1:x+=",",x+=z.toString(0)}y+=" sources: "+a+" destinations: "+x}return y},ks.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,b=a.bounds;nn(b)?(b.x=y.x,b.y=y.y,b.width=y.width,b.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof $i)){b=An.alloc(),a.Va();var E=this.network.layout.ni(a,b),x=a.locationObject.ga(uo);if(E.w()&&x.w()){a.moveTo(y.x+this.focusX-(x.x-E.x),y.y+this.focusY-(x.y-E.y)),An.free(b);return}An.free(b)}a.moveTo(y.x,y.y)}},ks.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},ks.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},ks.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},ks.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function vy(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}un.Object.defineProperties(ks.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 b=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,b,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,b=An.alloc(),E=y.ni(a,b);y=E.x;var x=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(x)&&(x=0),this.j.h(y,x,z,E),An.free(b),!(a instanceof $i)&&(a=a.locationObject.ga(uo),a.w())){this.o.h(a.x-y,a.y-x);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new ur,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new ur,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new ur,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 rr,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}}}),ks.prototype.deleteDestinationEdge=ks.prototype.Jl,ks.prototype.addDestinationEdge=ks.prototype.zl,ks.prototype.deleteSourceEdge=ks.prototype.Kl,ks.prototype.addSourceEdge=ks.prototype.Cl,ks.className="LayoutVertex",ks.standardComparer=vy,ks.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var b=y.Sh;if(a!==null){if(b!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=b.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),b=0;b<y.length;b++)if(a[b]!==""&&a[b]!==void 0){var E=parseFloat(y[b]),x=parseFloat(a[b]);if(isNaN(E))if(isNaN(x)){if(y[b].localeCompare(a[b])!==0)return y[b].localeCompare(a[b])}else return 1;else{if(isNaN(x))return-1;if(E-x!==0)return E-x}}else if(y[b]!=="")return 1;return a[b]!==""&&a[b]!==void 0?-1:0}return 1}return b!==null?-1:0}return 1}return y!==null?-1:0};function zu(a){vi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}zu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},zu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Mi(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},zu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},zu.prototype.commit=function(){},zu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},un.Object.defineProperties(zu.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)}}}),zu.prototype.getOtherVertex=zu.prototype.Ax,zu.className="LayoutEdge";function tl(a){Na.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new cn(NaN,NaN).freeze(),this.tf=new cn(10,10).freeze(),this.Jb=dm,this.Rb=I0,this.nd=hm,this.hd=m1,a&&Object.assign(this,a)}hn(tl,Na),tl.prototype.cloneProtected=function(a){Na.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},tl.prototype.qb=function(a){a.classType===tl?a===hm||a===R0||a===yy||a===D0?this.sorting=a:a===I0||a===nd?this.arrangement=a:a===dm||a===k0?this.alignment=a:kt("Unknown enum value: "+a):Na.prototype.qb.call(this,a)},tl.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var b=y.copy().iterator;b.next();){var E=b.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof $i)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var x=y.Fa();if(x.length!==0){switch(this.sorting){case D0:x.reverse();break;case hm:x.sort(this.comparer);break;case R0:x.sort(this.comparer),x.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=z&&0>=ne&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),b=this.spacing.height,isFinite(b)||(b=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case k0:var ie=y,se=b,de=An.alloc(),pe=Math.max(this.cellSize.width,1);if(!isFinite(pe))for(var Se=pe=0;Se<x.length;Se++){var Ne=this.ni(x[Se],de);pe=Math.max(pe,Ne.width)}if(pe=Math.max(pe+ie,1),Se=Math.max(this.cellSize.height,1),!isFinite(Se))for(Ne=Se=0;Ne<x.length;Ne++){var Oe=this.ni(x[Ne],de);Se=Math.max(Se,Oe.height)}Se=Math.max(Se+se,1),Ne=this.arrangement;for(var He=Oe=this.arrangementOrigin.x,Je=this.arrangementOrigin.y,xt=0,yt=0,Rt=0;Rt<x.length;Rt++){var Bt=x[Rt],Gt=this.ni(Bt,de),$t=Math.ceil((Gt.width+ie)/pe)*pe,In=Math.ceil((Gt.height+se)/Se)*Se;switch(Ne){case nd:var qr=Math.abs(He-Gt.width);break;default:qr=He+Gt.width}switch((0<z&&xt>z-1||0<ne&&0<xt&&qr-Oe>ne)&&(E.push(new An(0,Je,ne+ie,yt)),xt=0,He=Oe,Je+=yt,yt=0),yt=Math.max(yt,In),Ne){case nd:Gt=-Gt.width;break;default:Gt=0}switch(Bt.moveTo(He+Gt,Je),Ne){case nd:He-=$t;break;default:He+=$t}xt++}E.push(new An(0,Je,ne+ie,yt)),An.free(de);break;case dm:for(se=ne,pe=z,Se=y,Ne=b,ne=An.alloc(),Oe=Math.max(this.cellSize.width,1),z=Je=de=0,ie=rt.alloc(),He=0;He<x.length;He++)yt=x[He],xt=this.ni(yt,ne),yt=Ah(yt,yt.locationObject,yt.locationSpot,ie),de=Math.max(de,yt.x),Je=Math.max(Je,xt.width-yt.x),z=Math.max(z,yt.y);switch(He=this.arrangement,He){case nd:de+=Se;break;default:Je+=Se}Oe=isFinite(Oe)?Math.max(Oe+Se,1):Math.max(de+Je,1);var yi=yt=this.arrangementOrigin.x;for(Rt=this.arrangementOrigin.y,Je=0,se>=de&&(se-=de),de=Bt=0,$t=Math.max(this.cellSize.height,1),Gt=z=0,In=!0,xt=rt.alloc(),qr=0;qr<x.length;qr++){var di=x[qr],Dr=this.ni(di,ne),pr=Ah(di,di.locationObject,di.locationSpot,ie);if(0<Je)switch(He){case nd:yi=(yi-yt-(Dr.width-pr.x))/Oe,yi=an.$(Math.round(yi),yi)?Math.round(yi):Math.floor(yi),yi=yi*Oe+yt;break;default:yi=(yi-yt+pr.x)/Oe,yi=an.$(Math.round(yi),yi)?Math.round(yi):Math.ceil(yi),yi=yi*Oe+yt}else switch(He){case nd:Bt=yi+pr.x+Dr.width;break;default:Bt=yi-pr.x}switch(He){case nd:var qi=-(yi+pr.x)+Bt;break;default:qi=yi+Dr.width-pr.x-Bt}if(0<pe&&Je>pe-1||0<se&&0<Je&&qi>se){for(E.push(new An(0,In?Rt-z:Rt,se+Se,Gt+z+Ne)),yi=0;yi<Je&&qr!==Je;yi++){qi=x[qr-Je+yi];var ji=Ah(qi,qi.locationObject,qi.locationSpot,xt);qi.moveTo(qi.position.x,qi.position.y+z-ji.y)}Gt+=Ne,Rt=In?Rt+Gt:Rt+(Gt+z),Je=Gt=z=0,yi=yt,In=!1}switch(yi===yt&&(de=He===nd?Math.max(de,Dr.width-pr.x):Math.min(de,-pr.x)),z=Math.max(z,pr.y),Gt=Math.max(Gt,Dr.height-pr.y),isFinite($t)&&(Gt=Math.max(Gt,Math.max(Dr.height,$t)-pr.y)),In?di.moveTo(yi-pr.x,Rt-pr.y):di.moveTo(yi-pr.x,Rt),He){case nd:yi-=pr.x+Se;break;default:yi+=Dr.width-pr.x+Se}Je++}if(E.push(new An(0,Rt,se+Se,(In?Gt:Gt+z)+Ne)),x.length!==Je)for(se=0;se<Je;se++)pe=x[x.length-Je+se],Se=Ah(pe,pe.locationObject,pe.locationSpot,ie),pe.moveTo(pe.position.x,pe.position.y+z-Se.y);if(rt.free(ie),rt.free(xt),He===nd)for(x=0;x<E.length;x++)z=E[x],z.width+=de,z.x-=de;else for(x=0;x<E.length;x++)z=E[x],z.x>de&&(z.width+=z.x-de,z.x=de);An.free(ne)}for(ie=z=ne=x=0;ie<E.length;ie++)se=E[ie],x=Math.min(x,se.x),ne=Math.min(ne,se.y),z=Math.max(z,se.x+se.width);this.arrangement===nd?this.commitLayers(E,new rt(x+y/2-(z+x),ne-b/2)):this.commitLayers(E,new rt(x-y/2,ne-b/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},tl.prototype.commitLayers=function(){};function m1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}un.Object.defineProperties(tl.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!==dm&&a!==k0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==I0&&a!==nd||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==yy&&a!==D0&&a!==hm&&a!==R0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var k0=new Ln(tl,"Position",0),dm=new Ln(tl,"Location",1),I0=new Ln(tl,"LeftToRight",2),nd=new Ln(tl,"RightToLeft",3),yy=new Ln(tl,"Forward",4),D0=new Ln(tl,"Reverse",5),hm=new Ln(tl,"Ascending",6),R0=new Ln(tl,"Descending",7);tl.className="GridLayout",tl.standardComparer=m1,tl.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 b=0;b<a.length;b++)if(y[b]!==""&&y[b]!==void 0){var E=parseFloat(a[b]),x=parseFloat(y[b]);if(isNaN(E))if(isNaN(x)){if(a[b].localeCompare(y[b])!==0)return a[b].localeCompare(y[b])}else return 1;else{if(isNaN(x))return-1;if(E-x!==0)return E-x}}else if(a[b]!=="")return 1;return y[b]!==""&&y[b]!==void 0?-1:0}return 1}return y!==null?-1:0},tl.Position=k0,tl.Location=dm,tl.LeftToRight=I0,tl.RightToLeft=nd,tl.Forward=yy,tl.Reverse=D0,tl.Ascending=hm,tl.Descending=R0;function Jo(){this.On=new ur,this.Dn=new ur,this.Pa=new ur,this.cf=new Rn,this.bf=new Rn,this.aj=new Rn,this.H=null,this.tp=!1}Me=Jo.prototype,Me.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Me.Xe=function(a){this.H=a},Me.oi=function(a){if(a instanceof ii){if(this.On.add(a),a instanceof $i){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 Mr?this.Dn.add(a):a instanceof _o||this.Pa.add(a);y=a.data,y===null||a instanceof _o||(a instanceof Mr?this.bf.add(y,a):this.cf.add(y,a))},Me.pc=function(a){if(a.Ej(),a instanceof ii){if(this.On.remove(a),a instanceof $i){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 Mr?this.Dn.remove(a):a instanceof _o||this.Pa.remove(a);y=a.data,y===null||a instanceof _o||(a instanceof Mr?this.bf.remove(y):this.cf.remove(y))},Me.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var b=y.value,E=y.key;(!b.Zc()||b instanceof $i)&&kt('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+b)}for(y=a.groupTemplateMap.iterator;y.next();)b=y.value,E=y.key,b instanceof $i||kt('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+b);for(y=a.linkTemplateMap.iterator;y.next();)b=y.value,E=y.key,b instanceof Mr||kt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+b);for(y=Jr(),b=a.selection.iterator;b.next();)(E=b.value.data)&&y.push(E);for(b=Jr(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&b.push(E);for(a=Jr(),E=this.nodes.iterator;E.next();){var x=E.value;x.data!==null&&(a.push(x.data),a.push(x.location))}for(E=this.links.iterator;E.next();)x=E.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(E=this.parts.iterator;E.next();)x=E.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)x=this.Lc(y[E]),x!==null&&(x.isSelected=!0);for(E=0;E<b.length;E++)x=this.Lc(b[E]),x!==null&&(x.isHighlighted=!0);for(E=0;E<a.length;E+=2)x=this.Lc(a[E]),x!==null&&(x.location=a[E+1]);Hr(y),Hr(b),Hr(a)}},Jo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Jo.prototype.addModeledParts=function(a,y){var b=this,E=this.diagram.model;a.forEach(function(x){E.lb(x)&&v1(b,x,!1)}),a.forEach(function(x){E.lb(x)&&b.resolveReferencesForData(x)}),y!==!1&&Yd(this.diagram,!1)};function v1(a,y,b){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){b===void 0&&(b=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),x=y1(a,y,E);if(x!==null&&(Pc(x),x=x.copy(),x!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,x.Tf=E,x.ub=y,a.tp&&(x.Jg="Tool"),a.diagram.add(x),x.ub=null,x.data=y,a.diagram.skipsModelSourceBindings=z,E=x;break e}}E=null}E!==null&&b&&a.resolveReferencesForData(y)}}Jo.prototype.insertLink=function(){return null},Jo.prototype.resolveReferencesForData=function(){},Jo.prototype.Ro=function(a){return this.H.model.Ro(a)};function y1(a,y,b){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(b),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(E1||(E1=!0,Qr('No Group template found for category "'+b+'"'),Qr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(b),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(b1||(b1=!0,Qr('No Node template found for category "'+b+'"'),Qr(" Using default node template")),y=a.ny))),y}Jo.prototype.getLinkCategoryForData=function(){return""},Jo.prototype.setLinkCategoryForData=function(){},Jo.prototype.setFromNodeForLink=function(){},Jo.prototype.setToNodeForLink=function(){},Jo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,b=y.linkTemplateMap.I(a);return b===null&&(b=y.linkTemplateMap.I(""),b===null&&(x1||(x1=!0,Qr('No Link template found for category "'+a+'"'),Qr(" Using default link template")),b=y.my)),b},Jo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Jo.prototype.Gs=function(a){var y=this;a.forEach(function(b){y.ip(b)})},Jo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(ap(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Jo.prototype.unresolveReferencesForPart=function(){},Jo.prototype.removeDataForLink=function(){},Jo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Jo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof ii?a:null)},Jo.prototype.findLinkForKey=function(){return null},Me=Jo.prototype,Me.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Me.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof ii?a:null)},Me.Kc=function(a){return a===null?null:this.bf.I(a)},Me.ms=function(a){for(var y=0;y<arguments.length;++y);y=new ur;for(var b=this.On.iterator;b.next();){var E=b.value,x=E.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(nn(ne)&&Sy(this,x,ne)){y.add(E);break}}}return y.iterator},Me.ls=function(a){for(var y=0;y<arguments.length;++y);y=new ur;for(var b=this.Dn.iterator;b.next();){var E=b.value,x=E.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(nn(ne)&&Sy(this,x,ne)){y.add(E);break}}}return y.iterator};function Sy(a,y,b){for(var E in b){var x=y[E],z=b[E];if(Qn(z)){if(!Qn(x)||x.length<z.length)return!1;for(var ne=0;ne<x.length;ne++){var ie=z[ne];if(ie!==void 0&&!S1(a,x[ne],ie))return!1}}else if(!S1(a,x,z))return!1}return!0}function S1(a,y,b){if(typeof b=="function"){if(!b(y))return!1}else if(b instanceof RegExp){if(!y||!b.test(y.toString()))return!1}else if(nn(y)&&nn(b)){if(!Sy(a,y,b))return!1}else if(y!==b)return!1;return!0}Jo.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var b=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(b===sa){if(E==="nodeCategory"){var x=this.Lc(a.object),z=a.newValue;x!==null&&typeof z=="string"&&(x.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(b===Ta){var ne=a.newValue;E==="nodeDataArray"&&nn(ne)&&v1(this,ne),y.isModified=!0}else if(b===ka){var ie=a.oldValue;E==="nodeDataArray"&&nn(ie)&&this.ip(ie),y.isModified=!0}else b===Ds&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(b===sa){var se=a.propertyName,de=a.object;de===y.model?(se==="nodeKeyProperty"||se==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(de,se),y.isModified=!0}else if(b===Ta||b===ka){var pe=a.change===Ta,Se=pe?a.newParam:a.oldParam,Ne=pe?a.newValue:a.oldValue,Oe=this.aj.I(a.object);if(Array.isArray(Oe))for(a=0;a<Oe.length;a++){var He=Oe[a];if(pe)qm(He,Ne,Se,!0);else if(!(0>Se)){var Je=Se+Kg(He);He.pc(Je,!0),Rv(He,Je,Se)}}y.isModified=!0}}finally{y.aa=!0}}}}},Jo.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)},Jo.prototype.rp=function(){for(var a=this.H.model,y=new ur,b=a.nodeDataArray,E=0;E<b.length;E++)y.add(b[E]);var x=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||x.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||x.push(ne.data)}),x.forEach(function(ne){I1(a,ne,!1)}),E=0;E<b.length;E++){var z=b[E];this.Lc(z)===null&&k1(a,z,!1)}for(this.refreshDataBoundLinks(),b=this.parts.iterator;b.next();)b.value.updateRelationshipsFromData();for(b=this.nodes.iterator;b.next();)b.value.updateRelationshipsFromData();for(b=this.links.iterator;b.next();)b.value.updateRelationshipsFromData()},Jo.prototype.refreshDataBoundLinks=function(){},Jo.prototype.updateRelationshipsFromData=function(){},Jo.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var b=this.Lc(a);if(b!==null)b.La(y);else{b=null;for(var E=this.aj.iterator;E.next();){for(var x=E.value,z=0;z<x.length;z++){var ne=x[z].sx(a);ne!==null&&(b===null&&(b=Jr()),b.push(ne))}if(b!==null)break}if(b!==null){for(E=0;E<b.length;E++)b[E].La(y);Hr(b)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function by(a,y){var b=y.Hh;if(Qn(b)){var E=a.aj.I(b);if(E===null)E=[],E.push(y),a.aj.add(b,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function Ey(a,y,b){Uf(y,function(ne){ne=ne.O.s;for(var ie=ne.length,se=0;se<ie;se++)hp(b,ne[se])});var E=y.Hh;if(Qn(E)){var x=a.aj.I(E);if(x!==null){for(var z=0;z<x.length;z++)if(x[z]===y){x.splice(z,1),x.length===0&&a.aj.remove(E);break}}}}Jo.prototype.Kj=function(a,y,b){b===void 0&&(b=!1);var E=new Rn;if(Qn(a))for(var x=0;x<a.length;x++)M0(this,a[x],y,E,b);else for(a=a.iterator;a.next();)M0(this,a.value,y,E,b);if(y!==null){b=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,x=new ur;for(var z=new Rn,ne=E.iterator;ne.next();){var ie=ne.value;if(ie instanceof Mr)a||ie.fromNode!==null&&ie.toNode!==null||x.add(ie);else if(ie instanceof ii&&ie.data!==null&&b.Tl()){var se=ie;ie=ne.key;var de=ie.pg();de!==null&&(de=E.I(de),de!==null?(b.qe(se.data,b.wa(de.data)),se=y.Kc(se.data),ie=ie.kh(),ie!==null&&se!==null&&z.add(ie,se)):b.qe(se.data,void 0))}}if(0<x.count&&y.Is(x,!1),0<z.count)for(b=z.iterator;b.next();)E.add(b.key,b.value)}if(y!==null&&this.H!==null&&(y=y.model,b=y.afterCopyFunction,b!==null)){var pe=new Rn;E.each(function(Se){Se.key.data!==null&&pe.add(Se.key.data,Se.value.data)}),b(pe,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function M0(a,y,b,E,x){if(y===null||x&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,b);if(!(z instanceof ki))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof ii){for(var ne=y.linksConnected;ne.next();){var ie=ne.value;if(ie.fromNode===y){var se=E.I(ie);se!==null&&(se.fromNode=z)}ie.toNode===y&&(ie=E.I(ie),ie!==null&&(ie.toNode=z))}if(y instanceof $i&&z instanceof $i)for(y=y.memberParts;y.next();)ne=M0(a,y.value,b,E,x),ne instanceof Mr||ne===null||(ne.containingGroup=z)}else if(y instanceof Mr&&z instanceof Mr)for(ne=y.fromNode,ne!==null&&(ne=E.I(ne),ne!==null&&(z.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=E.I(ne),ne!==null&&(z.toNode=ne)),y=y.labelNodes;y.next();)ne=M0(a,y.value,b,E,x),ne!==null&&ne instanceof ii&&(ne.labeledLink=z);return z}Jo.prototype.copyPartData=function(a,y){var b=null,E=a.data;if(E!==null&&y!==null){var x=y.model;a instanceof Mr||(E=x.copyNodeData(E),nn(E)&&(x.xf(E),b=y.Lc(E)))}else Pc(a),b=a.copy(),b!==null&&(x=this.H,y!==null?y.add(b):E!==null&&x!==null&&x.commandHandler!==null&&x.commandHandler.copiesClipboardData&&(y=x.model,x=null,b instanceof Mr||(x=y.copyNodeData(E)),nn(x)&&(b.data=x)));return b},un.Object.defineProperties(Jo.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}}}),Jo.prototype.updateAllRelationshipsFromData=Jo.prototype.rp,Jo.prototype.findLinksByExample=Jo.prototype.ls,Jo.prototype.findNodesByExample=Jo.prototype.ms,Jo.prototype.findLinkForData=Jo.prototype.Kc,Jo.prototype.findNodeForData=Jo.prototype.ii,Jo.prototype.findPartForData=Jo.prototype.Lc,Jo.prototype.findNodeForKey=Jo.prototype.Vb,Jo.prototype.removeModeledPart=Jo.prototype.ip,Jo.prototype.removeModeledParts=Jo.prototype.Gs,Jo.prototype.rebuildParts=Jo.prototype.Wd;var b1=!1,E1=!1,x1=!1;Jo.className="PartManager";function Hs(a){Jo.apply(this,arguments)}hn(Hs,Jo),Hs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),w1(this,a.linkDataArray)},Hs.prototype.addModeledParts=function(a){for(Jo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)mg(a.value);Yd(this.diagram,!1)};function w1(a,y){y.forEach(function(b){C1(a,b)}),Yd(a.diagram,!1)}function C1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var b=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(b);if(E!==null){Pc(E);var x=E.copy();if(x!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,x.Tf=b,x.ub=y,b=a.diagram.model;var z=_0(b,y,!0);z!==""&&(x.fromPortId=z),z=oc(b,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof ii&&(x.fromNode=z)),z=_0(b,y,!1),z!==""&&(x.toPortId=z),z=oc(b,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof ii&&(x.toNode=z)),b=b.Ef(y),Array.isArray(b)&&b.forEach(function(ne){ne=a.Vb(ne),ne!==null&&(ne.labeledLink=x)}),a.tp&&(x.Jg="Tool"),a.diagram.add(x),x.ub=null,x.data=y,a.diagram.skipsModelSourceBindings=E}}}}Hs.prototype.removeAllModeledParts=function(){var a=this.diagram.model;P1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function P1(a,y){y.forEach(function(b){a.ip(b)})}Hs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Hs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Hs.prototype.setFromNodeForLink=function(a,y){var b=this.diagram.model;b.wv(a.data,b.wa(y!==null?y.data:null))},Hs.prototype.setToNodeForLink=function(a,y){var b=this.diagram.model;b.Bv(a.data,b.wa(y!==null?y.data:null))},Hs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Hs.prototype.findPartForKey=function(a){var y=Jo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Hs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Hs.prototype.doModelChanged=function(a){var y=this;if(Jo.prototype.doModelChanged.call(this,a),this.diagram){var b=this.diagram;if(a.model===b.model){var E=a.change;if(b.aa){b.aa=!1;try{var x=a.modelChange;if(x!==""){if(E===sa){if(x==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ne=this.Vb(a.newValue);z.fromNode=ne}}else if(x==="linkToKey"){var ie=this.Kc(a.object);if(ie!==null){var se=this.Vb(a.newValue);ie.toNode=se}}else if(x==="linkFromPortId"){var de=this.Kc(a.object);if(de!==null){var pe=a.newValue;typeof pe=="string"&&(de.fromPortId=pe)}}else if(x==="linkToPortId"){var Se=this.Kc(a.object);if(Se!==null){var Ne=a.newValue;typeof Ne=="string"&&(Se.toPortId=Ne)}}else if(x==="nodeGroupKey"){var Oe=this.Lc(a.object);if(Oe!==null){var He=a.newValue;if(He!==void 0){var Je=this.Vb(He);Je instanceof $i?Oe.containingGroup=Je:Oe.containingGroup=null}else Oe.containingGroup=null}}else if(x==="linkLabelKeys"){var xt=this.Kc(a.object);if(xt!==null){var yt=a.oldValue,Rt=a.newValue;Array.isArray(yt)&&yt.forEach(function(pr){0<=Rt.indexOf(pr)||(pr=y.Vb(pr),pr!==null&&(pr.labeledLink=null))}),Array.isArray(Rt)&&Rt.forEach(function(pr){pr=y.Vb(pr),pr!==null&&(pr.labeledLink=xt)})}}else if(x==="linkCategory"){var Bt=this.Kc(a.object),Gt=a.newValue;Bt!==null&&typeof Gt=="string"&&(Bt.category=Gt)}else x==="linkDataArray"&&(P1(this,a.oldValue),w1(this,a.newValue));b.isModified=!0}else if(E===Ta){var $t=a.newValue;if(x==="linkDataArray"&&typeof $t=="object"&&$t!==null)C1(this,$t);else if(x==="linkLabelKeys"&&uf($t)){var In=this.Kc(a.object),qr=this.Vb($t);In!==null&&qr!==null&&(qr.labeledLink=In)}b.isModified=!0}else if(E===ka){var yi=a.oldValue;if(x==="linkDataArray"&&typeof yi=="object"&&yi!==null)this.ip(yi);else if(x==="linkLabelKeys"&&uf(yi)){var di=this.Vb(yi);di!==null&&(di.labeledLink=null)}b.isModified=!0}}else if(E===sa){var Dr=a.propertyName;a.object!==b.model||Dr!=="linkFromKeyProperty"&&Dr!=="linkToKeyProperty"&&Dr!=="linkFromPortIdProperty"&&Dr!=="linkToPortIdProperty"&&Dr!=="linkLabelKeysProperty"&&Dr!=="nodeIsGroupProperty"&&Dr!=="nodeGroupKeyProperty"&&Dr!=="linkCategoryProperty"||b.undoManager.isUndoingRedoing||this.Wd(),b.isModified=!0}}finally{b.aa=!0}}}}},Hs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,b=new ur,E=y.linkDataArray;E.forEach(function(z){b.add(z)});var x=[];this.links.each(function(z){z.data===null||b.contains(z.data)||x.push(z.data)}),x.forEach(function(z){B1(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&F1(y,z,!1)})},Hs.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var b=a.diagram;if(b!==null){var E=b.model;if(a instanceof Mr){var x=oc(E,y,!0);if(x=b.Vb(x),a.fromNode=x,x=oc(E,y,!1),x=b.Vb(x),a.toNode=x,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){x=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===x)return}x=new ur().addAll(y);var ne=new ur;a.labelNodes.each(function(ie){ie.data!==null&&(ie=E.wa(ie.data),ie!==void 0&&ne.add(ie))}),y=ne.copy(),y.hp(x),x=x.copy(),x.hp(ne),(0<y.count||0<x.count)&&(y.each(function(ie){ie=b.Vb(ie),ie!==null&&ie.labeledLink===a&&(ie.labeledLink=null)}),x.each(function(ie){ie=b.Vb(ie),ie!==null&&ie.labeledLink!==a&&(ie.labeledLink=a)}))}}else!(a instanceof _o)&&(y=E.lh(y),y=b.findPartForKey(y),y===null||y instanceof $i)&&(a.containingGroup=y)}}},Hs.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,b=y.wa(a);if(b!==void 0){var E=fm(y,b),x=this.Lc(a);if(E!==null&&x!==null){E=E.iterator;for(var z={};E.next();){var ne=E.value;y.lb(ne)?x instanceof $i&&y.lh(ne)===b&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=x)):(z.link=this.Kc(ne),z.link!==null&&x instanceof ii&&(oc(y,ne,!0)===b&&(z.link.fromNode=x),oc(y,ne,!1)===b&&(z.link.toNode=x),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(ie){return function(se){return se===b?(x.labeledLink=ie.link,!0):!1}}(z)))),z={link:z.link}}id(y,b)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof $i&&(x.containingGroup=a))}},Hs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ii){var b=y.wa(a.data);if(b!==void 0){for(var E=a.linksConnected;E.next();)rd(y,b,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&rd(y,b,E.data)),a instanceof $i)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&rd(y,b,E)}}},Hs.prototype.copyPartData=function(a,y){var b=Jo.prototype.copyPartData.call(this,a,y);if(a instanceof Mr)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),b=y.Kc(a))}else b!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(b.data=y)));return b},Hs.prototype.insertLink=function(a,y,b,E){var x=this.diagram,z=x.model,ne=x.toolManager.findTool("Linking"),ie="";if(a!==null&&(y===null&&(y=a),ie=y.portId,ie===null&&(ie="")),y="",b!==null&&(E===null&&(E=b),y=E.portId,y===null&&(y="")),E=ne.archetypeLinkData,E instanceof Mr){if(Pc(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=ie,z.toNode=b,z.toPortId=y,x.add(z),a=ne.archetypeLabelNodeData,a instanceof ii&&(Pc(a),a=a.copy(),a!==null&&(a.labeledLink=z,x.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&xg(z,E,z.wa(a.data),!0),wg(z,E,ie,!0),b!==null&&xg(z,E,z.wa(b.data),!1),wg(z,E,y,!1),z.fi(E),a=ne.archetypeLabelNodeData,a===null||a instanceof ii||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),x.Kc(E);return null},Hs.prototype.findLinkForKey=Hs.prototype.findLinkForKey,Hs.prototype.findPartForKey=Hs.prototype.findPartForKey,Hs.prototype.removeAllModeledParts=Hs.prototype.removeAllModeledParts,Hs.prototype.addModeledParts=Hs.prototype.addModeledParts,Hs.prototype.addAllModeledParts=Hs.prototype.addAllModeledParts,Hs.className="GraphLinksPartManager";function mc(){Jo.apply(this,arguments),this.Sg=null}hn(mc,Jo);function O0(a,y,b){if(y!==null&&b!==null&&b.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),x=y,z=b;if(a.diagram.isTreePathToChildren||(x=b,z=y),(E===null||!Qs(E,x,z,null,!0))&&(y=a.getLinkCategoryForData(b.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Pc(E),E=E.copy(),E!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=b.data,E.fromNode=x,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=b.data,a.diagram.skipsModelSourceBindings=ne}}}mc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},mc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},mc.prototype.setFromNodeForLink=function(a,y,b){var E=this.diagram.model;if(b===void 0&&(b=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var x=this.Sg;this.Sg=a,b!==null&&E.qe(b.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=x}},mc.prototype.setToNodeForLink=function(a,y,b){var E=this.diagram.model;if(b===void 0&&(b=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var x=this.Sg;this.Sg=a,b!==null&&E.qe(b.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=x}else E.qe(a.data,E.wa(y))},mc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},mc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},mc.prototype.doModelChanged=function(a){if(Jo.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var b=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===sa){if(E==="nodeParentKey"){var x=a.object,z=this.Vb(a.newValue),ne=this.ii(x);if(this.Sg!==null)z!==null&&(this.Sg.data=x,this.Sg.category=this.getLinkCategoryForData(x));else if(ne!==null){var ie=ne.kh();ie!==null?z===null?y.remove(ie):y.isTreePathToChildren?ie.fromNode=z:ie.toNode=z:O0(this,z,ne)}}else if(E==="parentLinkCategory"){var se=this.ii(a.object),de=a.newValue;if(se!==null&&typeof de=="string"){var pe=se.kh();pe!==null&&(pe.category=de)}}y.isModified=!0}}else if(b===sa){var Se=a.propertyName;a.object===y.model&&Se==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},mc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var b=a.diagram;if(b!==null){var E=b.model;a instanceof ii&&(y=E.mh(y),y=b.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?b.isTreePathToChildren?E.fromNode=y:E.toNode=y:O0(this,y,a):E!==null&&ap(b,E,!1)))}}},mc.prototype.updateDataBindings=function(a,y){Jo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},mc.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,b=y.wa(a);if(b!==void 0){var E=fm(y,b),x=this.Lc(a);if(E!==null&&x!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&x instanceof ii&&y.mh(z)===b&&O0(this,x,this.ii(z))}id(y,b)}a=y.mh(a),a!==void 0&&x instanceof ii&&(a=this.Vb(a),O0(this,a,x))}},mc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ii){var b=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var x=E.layer;if(x!==null){var z=x.pc(-1,E,!1);0<=z&&this.diagram.cb(ka,"parts",x,E,null,z,null),z=E.layerChanged,z!==null&&z(E,x,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)x=a.value,x=(E?x.toNode:x.fromNode).data,y.lb(x)&&rd(y,b,x)}},mc.prototype.insertLink=function(a,y,b){y=this.diagram.model;var E=a,x=b;return this.diagram.isTreePathToChildren||(E=b,x=a),E!==null&&x!==null?(y.qe(x.data,y.wa(E.data)),x.kh()):null},mc.prototype.findLinkForKey=mc.prototype.findLinkForKey,mc.className="TreePartManager";function Ei(a,y){this.kl=new ur,this.il=new ur,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,vi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Rn,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 Rn,this.Lt=new rr,this.Wg=!1,this.o=null,this.undoManager=new $o,a!==void 0&&(Qn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ei.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},Ei.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ei.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ei.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 b=a.length,E=0;E<b;E++){var x=a[E];y+=" "+this.wa(x)+":"+hi(x)}}return y},Ei.prototype.xA=function(a){a.change!==Ds&&kt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Wa?(A1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ei.prototype.Qv=function(a,y){var b=this,E=!1,x=new ur,z=new ur,ne=new ur,ie=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="nodeDataArray"?Se.change===Ta?x.add(Se.newValue):Se.change===ka&&ne.add(Se.oldValue):b.lb(Se.object)?z.add(Se.object):Se.change!==sa||b.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(ie&&ie.contains(Se.object)?ie.get(Se.object).each(function(Ne){b.lb(Ne)&&z.add(Ne)}):Se.object instanceof Ei||b.ri()&&b.Jc(Se.object)||N1(b,Se.object).each(function(Ne){z.add(Ne)})):E=!0)});var se=this.il;se.clear(),x.each(function(Se){se.add(b.wa(Se)),y||z.add(Se)});var de=this.kl;de.clear(),ne.each(function(Se){de.add(b.wa(Se)),y&&z.add(Se)}),a=b.cloneDeep(z.Fa());var pe=null;return E&&(pe===null&&(pe={}),pe.modelData=this.cloneDeep(this.modelData)),0<se.count&&(pe===null&&(pe={}),y?pe.removedNodeKeys=se.Fa():pe.insertedNodeKeys=se.Fa()),0<a.length&&(pe===null&&(pe={}),pe.modifiedNodeData=a),0<de.count&&(pe===null&&(pe={}),y?pe.insertedNodeKeys=de.Fa():pe.removedNodeKeys=de.Fa()),de.clear(),se.clear(),pe},Ei.prototype.cloneDeep=function(a){return Eg(this,a,!0)};function Eg(a,y,b,E,x,z){function ne(Se,Ne){ie?(Se.__gohashid===void 0&&z.push(Se),E.set(Se,Ne)):(Se=po++,E.set(Se,Ne),x.set(Se,y))}if(!nn(y))return y;z||(z=[]);var ie=Object.isExtensible(y);if(E||(E=new Rn),ie){var se=E.get(y);if(se)return se}else for(x||(x=new Rn),se=x.iterator;se.next();){var de=se.key;if(se.value===y&&(de=E.get(de)))return de}if(Array.isArray(y)){se=[],ne(y,se);for(var pe=0;pe<y.length;pe++)se.push(Eg(a,y[pe],!1,E,x,z))}else if(y instanceof rt||y instanceof cn||y instanceof An||y instanceof Qi||y instanceof _r)se=y.copy(),ne(y,se);else{if(y instanceof Fo||y instanceof Lr||y instanceof Ln)return y;if(y instanceof rr)se=new rr().addAll(Eg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof ur)se=new ur().addAll(Eg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof Rn)se=new Rn().addAll(Eg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof Date)se=new Date(y.getTime()),ne(y,se);else if(y instanceof RegExp)se=new RegExp(y),ne(y,se),se.lastIndex=y.lastIndex;else if(typeof y.copy=="function")se=y.copy(),ne(y,se);else for(pe in se={},ne(y,se),y)pe!=="__gohashid"&&(se[pe]=Eg(a,y[pe],!1,E,x,z))}return b&&z.forEach(function(Se){delete Se.__gohashid}),se}Me=Ei.prototype,Me.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Me.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},Me.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 T1(a,y){y=y.modelData,nn(y)&&(a.dm(y),a.modelData=y)}Me.Rv=function(){var a=this.modelData,y=!1,b;for(b in a)if(!L1(b,a[b])){y=!0;break}return a="",y&&(a=`,
"modelData": `+xy(this,this.modelData)),a+`,
"nodeDataArray": `+lf(this,this.nodeDataArray,!0)},Me.kv=function(a){T1(this,a),a=a.nodeDataArray,Qn(a)&&(this.dm(a),this.nodeDataArray=a)};function A1(a,y){function b(x,z){if((z=z.part)&&(z=z.data,x!==z)){var ne=E.get(x);ne===null?(ne=new ur,ne.add(z),E.add(x,ne)):ne.add(z)}}var E=a.vh;E===null&&(E=new Rn,y.changes.each(function(x){if(x.diagram!==null){var z=x.change;z===sa?(x=x.object.panel)&&(z=x.data)&&b(z,x):(z===Ta||z===ka)&&(x=x.object,(z=x.itemArray)&&b(z,x))}}),a.vh=E)}function N1(a,y){for(var b=new ur,E=0;E<a.nodeDataArray.length;E++){var x=a.nodeDataArray[E];F0(a,y,x,x,b)}return b}function F0(a,y,b,E,x){if(Array.isArray(b))for(var z=0;z<b.length;z++){var ne=b[z];if(ne===y)return x.add(E),!0;if(F0(a,y,ne,E,x))return!0}else if(nn(b)&&Object.getPrototypeOf(b)===Object.prototype)for(z in b){if(ne=b[z],ne===y)return x.add(E),!0;if(F0(a,y,ne,E,x))return!0}return!1}Me.Pv=function(a,y){var b=this,E=!1,x=new ur,z=new ur,ne=new ur,ie=this.vh;a.changes.each(function(pe){pe.model===b&&(pe.modelChange==="nodeDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===ka&&ne.add(pe.oldValue):b.lb(pe.object)?z.add(pe.object):pe.change!==sa||b.modelData!==pe.object&&pe.propertyName!=="modelData"?pe.object!==null&&(ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){b.lb(Se)&&z.add(Se)}):pe.object instanceof Ei||b.ri()&&b.Jc(pe.object)||N1(b,pe.object).each(function(Se){z.add(Se)})):E=!0)});var se=this.il;se.clear(),x.each(function(pe){se.add(b.wa(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(b.wa(pe)),y&&z.add(pe)}),a="",E&&(a+=`,
"modelData": `+xy(this,this.modelData)),0<se.count&&(a+=(y?this.Yv:this.Wv)+lf(this,se.Fa(),!0)),0<z.count&&(a+=this.jy+lf(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Wv:this.Yv)+lf(this,de.Fa(),!0)),de.clear(),se.clear(),a},Me.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)&&kt("applyIncrementalJson cannot change Model properties"),T1(this,a);var y=a.insertedNodeKeys,b=a.modifiedNodeData,E=new Rn;if(Array.isArray(b))for(var x=0;x<b.length;x++){var z=b[x],ne=this.wa(z);ne!=null&&E.set(ne,z)}if(Array.isArray(y))for(x=y.length,z=0;z<x;z++){ne=y[z];var ie=this.hc(ne);ie===null&&(ie=(ie=E.get(ne))?ie:this.copyNodeData({}),this.km(ie,ne),this.xf(ie))}if(Array.isArray(b)){for(y=b.length,E=0;E<y;E++)if(x=b[E],z=this.wa(x),z=this.hc(z),z!==null){for(var se in x)se==="__gohashid"||se===this.nodeKeyProperty||this.Wj()&&se===this.nodeIsGroupProperty||this.setDataProperty(z,se,x[se]);this.lm(x,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(b=a.length,se=0;se<b;se++)y=this.hc(a[se]),y!==null&&this.cm(y)},Me.$x=function(a,y){a.change!==Ds&&kt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var b=a.object;return a.isTransactionFinished&&b instanceof Wa?(y===void 0&&(y=pm(this,this)),A1(this,b),a=this.Pv(b,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Me.yA=function(a,y){return this.$x(a,y)},Me.np=function(a){return a===void 0&&(a=pm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Me.toJSON=function(a){return this.np(a)},Me.Zw=function(a){var y=null;if(typeof a=="string")try{y=sr.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:kt("Unable to modify a Model from: "+a);var b=y.incremental;typeof b!="number"&&kt("Unable to apply non-incremental changes to Model: "+a),b!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Me.Ky=function(a){return this.Zw(a)},Ei.constructGraphLinksModel=function(){return new Ei},Me=Ei.prototype,Me.dm=function(a){if(Qn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];if(nn(E)){var x=b;E=this.dm(E),Array.isArray(a)?a[x]=E:kt("Cannot replace an object in an HTMLCollection or NodeList at "+x)}}else if(nn(a)){for(y in a)if(b=a[y],nn(b)&&(b=this.dm(b),a[y]=b,y==="points"&&Array.isArray(b))){for(x=b.length%2===0,E=0;E<b.length;E++)if(typeof b[E]!="number"){x=!1;break}if(x){for(x=new rr,E=0;E<b.length/2;E++)x.add(new rt(b[2*E],b[2*E+1]));x.freeze(),a[y]=x}}return bE(a)}return a},Me.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()):Qn(a)?lf(this,a):nn(a)?xy(this,a):typeof a=="function"?"null":a.toString()};function lf(a,y,b){b===void 0&&(b=!1);var E=y.length;if(0>=E)return"[]";var x=new fi;x.add("["),b&&1<E&&x.add(`
`);for(var z=0;z<E;z++){var ne=y[z];ne!==void 0&&(0<z&&(x.add(","),b&&x.add(`
`)),x.add(a.sm(ne)))}return b&&1<E&&x.add(`
`),x.add("]"),x.toString()}function L1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function ql(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function xy(a,y){var b=y;if(b instanceof rt)y={class:"go.Point",x:ql(b.x),y:ql(b.y)};else if(b instanceof cn)y={class:"go.Size",width:ql(b.width),height:ql(b.height)};else if(b instanceof An)y={class:"go.Rect",x:ql(b.x),y:ql(b.y),width:ql(b.width),height:ql(b.height)};else if(b instanceof Qi)y={class:"go.Margin",top:ql(b.top),right:ql(b.right),bottom:ql(b.bottom),left:ql(b.left)};else if(b instanceof _r)b.sb()?y={class:"go.Spot",x:ql(b.x),y:ql(b.y),offsetX:ql(b.offsetX),offsetY:ql(b.offsetY)}:y={class:"go.Spot",enum:b.toString()};else if(b instanceof Fo){if(y={class:"go.Brush",type:b.type.name},b.type===Ch?y.color=b.color:(b.type===nh||b.type===pc)&&(y.start=b.start,y.end=b.end,b.type===pc&&(b.startRadius!==0&&(y.startRadius=ql(b.startRadius)),isNaN(b.endRadius)||(y.endRadius=ql(b.endRadius)))),b.colorStops!==null){var E={};for(b=b.colorStops.iterator;b.next();)E[b.key]=b.value;y.colorStops=E}}else b instanceof Lr?(y={class:"go.Geometry",type:b.type.name},b.startX!==0&&(y.startX=ql(b.startX)),b.startY!==0&&(y.startY=ql(b.startY)),b.endX!==0&&(y.endX=ql(b.endX)),b.endY!==0&&(y.endY=ql(b.endY)),b.spot1.D(No)||(y.spot1=b.spot1),b.spot2.D(ra)||(y.spot2=b.spot2),b.type===Lr.o&&(y.path=Lr.ia(b))):b instanceof Ln&&(y={class:"go.EnumValue",classType:pm(a,b.classType),name:b.name});E="{",b=!0;for(var x in y){var z=rs(y,x);if(!L1(x,z))if(b?b=!1:E+=",",E+=a.quote(x)+":",x==="points"&&z instanceof rr){var ne="[";for(z=z.iterator;z.next();){var ie=z.value;1<ne.length&&(ne+=","),ne+=a.sm(ie.x),ne+=",",ne+=a.sm(ie.y)}ne+="]",E+=ne}else E+=a.sm(z)}return E+"}"}function $l(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function bE(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 b=a;if(y==="Point")b=new rt($l(a.x),$l(a.y));else if(y==="Size")b=new cn($l(a.width),$l(a.height));else if(y==="Rect")b=new An($l(a.x),$l(a.y),$l(a.width),$l(a.height));else if(y==="Margin")b=new Qi($l(a.top),$l(a.right),$l(a.bottom),$l(a.left));else if(y==="Spot")typeof a.enum=="string"?b=ys(a.enum):b=new _r($l(a.x),$l(a.y),$l(a.offsetX),$l(a.offsetY));else if(y==="Brush"){if(b=new Fo,b.type=Xr(Fo,a.type),typeof a.color=="string"&&(b.color=a.color),a.start instanceof _r&&(b.start=a.start),a.end instanceof _r&&(b.end=a.end),typeof a.startRadius=="number"&&(b.startRadius=$l(a.startRadius)),typeof a.endRadius=="number"&&(b.endRadius=$l(a.endRadius)),a=a.colorStops,nn(a))for(var E in a)b.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(b=null,typeof a.path=="string"?b=Lr.parse(a.path):b=new Lr,b.type=Xr(Lr,a.type),typeof a.startX=="number"&&(b.startX=$l(a.startX)),typeof a.startY=="number"&&(b.startY=$l(a.startY)),typeof a.endX=="number"&&(b.endX=$l(a.endX)),typeof a.endY=="number"&&(b.endY=$l(a.endY)),a.spot1 instanceof _r&&(b.spot1=a.spot1),a.spot2 instanceof _r&&(b.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=Cy(E),typeof E=="function"&&(b=Xr(E,a.name)));return b}Me.Pe=function(a){return this.Lt.add(a),this},Me.ik=function(a){this.Lt.remove(a)},Me.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,b=y.length,E=0;E<b;E++)y.M(E)(a)},Me.cb=function(a,y,b,E,x,z,ne){Cs(this,"",a,y,b,E,x,z,ne)},Me.g=function(a,y,b,E,x){Cs(this,"",sa,a,this,y,b,E,x)},Me.Fs=function(a,y,b,E,x,z){Cs(this,"",sa,y,a,b,E,x,z)};function Cs(a,y,b,E,x,z,ne,ie,se){ie===void 0&&(ie=null),se===void 0&&(se=null);var de=new ga;de.model=a,de.change=b,de.modelChange=y,de.propertyName=E,de.object=x,de.oldValue=z,de.oldParam=ie,de.newValue=ne,de.newParam=se,a.ds(de)}Ei.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===sa){var b=a.object,E=a.propertyName,x=a.I(y);E===this.nodeKeyProperty&&this.lb(b)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),x!==void 0&&this.kb.add(x,b)),Pa(b,E,x)}else a.change===Ta?(b=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,nn(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]===a&&Ge(this.Tc,b),E!==void 0&&this.kb.remove(E)):(this.Tc[b]!==a&&xn(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Qn(E)&&a.propertyName&&(E=rs(a.object,a.propertyName)),Qn(E)&&typeof b=="number"&&(a=a.newValue,y?Ge(E,b):xn(E,b,a))):kt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ka?(b=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,nn(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]!==a&&xn(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[b]===a&&Ge(this.Tc,b),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Qn(E)&&a.propertyName&&(E=rs(a.object,a.propertyName)),Qn(E)&&typeof b=="number"&&(a=a.oldValue,y?xn(E,b,a):Ge(E,b))):kt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Ds&&kt("unknown ChangedEvent: "+a.toString())},Ei.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ei.prototype.eb=function(a){return this.undoManager.eb(a)},Ei.prototype.Kf=function(){return this.undoManager.Kf()},Ei.prototype.commit=function(a,y){y===void 0&&(y="");var b=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=b}},Me=Ei.prototype,Me.La=function(a,y){y===void 0&&(y=""),Cs(this,"SourceChanged",Ds,y,a,null,null)},Me.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=rs(a,y),y!==void 0)){if(uf(y))return y;kt("Key value for node data "+a+" is not a number or a string: "+y)}}},Me.km=function(a,y){if(a!==null){var b=this.Th;if(b!=="")if(this.lb(a)){var E=rs(a,b);E!==y&&this.hc(y)===null&&(Pa(a,b,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Cs(this,"nodeKey",sa,b,a,E,y),typeof b=="string"&&this.La(a,b),this.jp(E,y))}else Pa(a,b,y)}};function uf(a){return typeof a=="number"||typeof a=="string"}Me.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Me.hc=function(a){return a===null&&kt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&uf(a)?this.kb.I(a):null},Me.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var b=this.wa(a);if(b===void 0||this.kb.contains(b)){var E=this.bl;if(E!==null&&(b=E(this,a),b!=null&&!this.kb.contains(b))){Pa(a,y,b);return}if(typeof b=="string"){for(E=2;this.kb.contains(b+E);)E++;Pa(a,y,b+E)}else if(b===void 0||typeof b=="number"){for(b=-this.kb.count-1;this.kb.contains(b);)b--;Pa(a,y,b)}}}}},Me.xf=function(a){a!==null&&(Pi(a),this.lb(a)||k1(this,a,!0))};function k1(a,y,b){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&kt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,b&&(E=a.Tc.length,xn(a.Tc,E,y)),Cs(a,"nodeDataArray",Ta,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Me.Fy=function(a){if(Qn(a))for(var y=a.length,b=0;b<y;b++)this.xf(a[b]);else for(a=a.iterator;a.next();)this.xf(a.value)},Me.cm=function(a){a!==null&&I1(this,a,!0)};function I1(a,y,b){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,b){e:if(b=a.Tc,Array.isArray(b))E=b.indexOf(y);else{E=b.length;for(var x=0;x<E;x++)if(b[x]===y){E=x;break e}E=-1}if(0>E)return;Ge(a.Tc,E)}Cs(a,"nodeDataArray",ka,"nodeDataArray",a,y,null,E,null),a.qp(y)}Me.nA=function(a){if(Qn(a))for(var y=a.length,b=0;b<y;b++)this.cm(a[b]);else for(a=a.iterator;a.next();)this.cm(a.value)},Me.$z=function(a){if(a!==this.nodeDataArray&&Qn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var b=this.il;b.clear();for(var E=a.length,x=0;x<E;x++){var z=a[x],ne=this.wa(z);if(ne!==void 0){b.add(ne);var ie=this.hc(ne);ie!==z&&(ie!==null?(this.Do(ie,z),this.lm(z,ie)):(z=this.cloneDeep(z),this.km(z,ne),this.xf(z)))}else ne=this.cloneDeep(z),this.xf(ne),b.add(this.wa(ne))}for(a=y.iterator;a.next();)E=a.value,b.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),b.clear()}},Me.jp=function(a,y){y!==void 0&&(a=fm(this,a),a instanceof ur&&this.Vf.add(y,a))},Me.Lv=function(){},Me.fm=function(){},Me.em=function(){},Me.qp=function(){};function rd(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new ur,a.Vf.add(y,E)),E.add(b)}}function id(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E instanceof ur&&(b==null?a.Vf.remove(y):(E.remove(b),E.count===0&&a.Vf.remove(y)))}}function fm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof ur?a:null)}Me.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ei.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):B0(this,a,!0),nn(a)&&vi(a),a};function B0(a,y,b){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(b=0;b<y.length;b++){var x=B0(a,y[b],a.copiesArrayObjects);E.push(x)}return vi(E),E}if(b&&nn(y)){b=(b=y.constructor)?new b:{},x=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")b.__gohashid=void 0;else if(E===x)b[x]=void 0;else{var z=rs(y,E),ne=pm(a,z);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||z instanceof Ei||z instanceof $o||z instanceof Wa||z instanceof ga||(z=B0(a,z,!1)),Pa(b,E,z)}return vi(b),b}return y instanceof rt||y instanceof cn||y instanceof An||y instanceof _r||y instanceof Qi?y.copy():y}Ei.prototype.setDataProperty=function(a,y,b){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,b);return}if(y===this.nodeCategoryProperty){this.jm(a,b);return}}else!D1&&a instanceof tn&&(D1=!0,Qr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Qr(" Is that really your intent?"));var E=rs(a,y);E!==b&&(Pa(a,y,b),this.Fs(a,y,E,b))},Me=Ei.prototype,Me.set=function(a,y,b){this.setDataProperty(a,y,b)},Me.Do=function(a,y){if(y){var b=this.lb(a),E;for(E in y)E==="__gohashid"||b&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Me.Ay=function(a,y){this.ts(a,-1,y)},Me.ts=function(a,y,b){0>y&&(y=a.length),xn(a,y,b),Cs(this,"",Ta,"",a,null,b,null,y)},Me.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&kt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var b=a[y];Ge(a,y),Cs(this,"",ka,"",a,b,null,y,null)},Me.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=rs(a,y),y===void 0))return"";if(typeof y=="string")return y;kt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Me.jm=function(a,y){if(a!==null){var b=this.lj;if(b!=="")if(this.lb(a)){var E=rs(a,b);E===void 0&&(E=""),E!==y&&(Pa(a,b,y),Cs(this,"nodeCategory",sa,b,a,E,y))}else Pa(a,b,y)}},Me.lm=function(a,y){this.jm(y,this.Ro(a))},Me.Tl=function(){return!1},Me.Wj=function(){return!1},Me.ri=function(){return!1},Me.xs=function(){return!1},Me.Xj=function(){return!1};function wy(){return new Ei}function pm(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 pm(a,y.constructor);return typeof y}function Cy(a){return _c[a]?_c[a]:sr.go!==void 0&&sr.go[a]?sr.go[a]:null}function rs(a,y){if(!a||!y)return null;try{if(typeof y=="function")var b=y(a);else typeof a.getAttribute=="function"?(b=a.getAttribute(y),b===null&&(b=void 0)):b=a[y]}catch(E){}return b}function Pa(a,y,b){if(a&&y)try{typeof y=="function"?y(a,b):typeof a.setAttribute=="function"?a.setAttribute(y,b):a[y]=b}catch(E){}}un.Object.defineProperties(Ei.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===""&&kt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&kt("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 b=a.length,E=0;E<b;E++){var x=a[E];nn(x)||kt("Model.nodeDataArray must only contain Objects, not: "+x),Pi(x)}for(this.Tc=a,E=new rr,x=0;x<b;x++){var z=a[x],ne=this.wa(z);ne===void 0||this.kb.I(ne)!==null?E.add(z):this.kb.add(ne,z)}for(E=E.iterator;E.next();)x=E.value,this.$u(x),z=this.wa(x),z!==void 0&&this.kb.add(z,x);for(Cs(this,"nodeDataArray",sa,"nodeDataArray",this,y,a),y=0;y<b;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Ei.prototype.setCategoryForNodeData=Ei.prototype.jm,Ei.prototype.getCategoryForNodeData=Ei.prototype.Ro,Ei.prototype.removeArrayItem=Ei.prototype.ov,Ei.prototype.insertArrayItem=Ei.prototype.ts,Ei.prototype.addArrayItem=Ei.prototype.Ay,Ei.prototype.assignAllDataProperties=Ei.prototype.Do,Ei.prototype.set=Ei.prototype.set,Ei.prototype.clearUnresolvedReferences=Ei.prototype.Qy,Ei.prototype.mergeNodeDataArray=Ei.prototype.$z,Ei.prototype.removeNodeDataCollection=Ei.prototype.nA,Ei.prototype.removeNodeData=Ei.prototype.cm,Ei.prototype.addNodeDataCollection=Ei.prototype.Fy,Ei.prototype.addNodeData=Ei.prototype.xf,Ei.prototype.makeNodeDataKeyUnique=Ei.prototype.$u,Ei.prototype.findNodeDataForKey=Ei.prototype.hc,Ei.prototype.containsNodeData=Ei.prototype.lb,Ei.prototype.setKeyForNodeData=Ei.prototype.km,Ei.prototype.getKeyForNodeData=Ei.prototype.wa,Ei.prototype.updateTargetBindings=Ei.prototype.La,Ei.prototype.commit=Ei.prototype.commit,Ei.prototype.rollbackTransaction=Ei.prototype.Kf,Ei.prototype.commitTransaction=Ei.prototype.eb,Ei.prototype.startTransaction=Ei.prototype.Ea,Ei.prototype.raiseDataChanged=Ei.prototype.Fs,Ei.prototype.raiseChanged=Ei.prototype.g,Ei.prototype.raiseChangedEvent=Ei.prototype.cb,Ei.prototype.removeChangedListener=Ei.prototype.ik,Ei.prototype.addChangedListener=Ei.prototype.Pe,Ei.prototype.writeJsonValue=Ei.prototype.sm,Ei.prototype.replaceJsonObjects=Ei.prototype.dm,Ei.prototype.applyIncrementalJSON=Ei.prototype.Ky,Ei.prototype.applyIncrementalJson=Ei.prototype.Zw,Ei.prototype.toJSON=Ei.prototype.toJSON,Ei.prototype.toJson=Ei.prototype.np,Ei.prototype.toIncrementalJSON=Ei.prototype.yA,Ei.prototype.toIncrementalJson=Ei.prototype.$x,Ei.prototype.toIncrementalData=Ei.prototype.xA,Ei.prototype.clear=Ei.prototype.clear;var D1=!1,_c={};Ei.className="Model",Ei.fromJSON=Ei.fromJson=function(a,y){y===void 0&&(y=null);var b=null;if(typeof a=="string")try{b=sr.JSON.parse(a)}catch(z){}else typeof a=="object"?b=a:kt("Unable to construct a Model from: "+a);if(y===null){a=null;var E=b.class;if(typeof E=="string")try{var x=null;E.indexOf("go.")===0?(E=E.substr(3),x=Cy(E)):(x=Cy(E),x===null&&(x=sr[E])),typeof x=="function"&&(a=new x)}catch(z){}a===null||a instanceof Ei?y=a:kt("Unable to construct a Model of declared class: "+b.class)}return y===null&&(y=Ei.constructGraphLinksModel()),y.gp(b),y.kv(b),y},Ei.safePropertyValue=rs,Ei.safePropertySet=Pa,_c.Brush=Fo,_c.ChangedEvent=ga,_c.Geometry=Lr,_c.Margin=Qi,_c.Panel=Nr,_c.Point=rt,_c.Rect=An,_c.Size=cn,_c.Spot=_r,_c.Transaction=Wa,_c.UndoManager=$o;function us(a,y,b,E){vi(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),b===void 0&&(b=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=b,E===void 0?(this.el=M1,this.wk=null):(this.el=gm,this.wk=E),this.st=new ur}us.prototype.copy=function(){var a=new us;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},Me=us.prototype,Me.qb=function(a){a.classType===us&&(this.mode=a)},Me.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.Kx=function(a){return a===void 0&&(a=null),this.mode=gm,this.backConverter=a,this},Me.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Me.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function R1(a,y,b){return a=a.sourceName,a===null||a===""?y:a==="/"?b.part:a==="."?b:a===".."?b.panel:y.fb(a)}Me.Mv=function(a,y,b){var E=this.sl;if(b===void 0||E===""||E===b){b=this.xl;var x=this.Im;if(x===null&&b==="")Qr("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=rs(y,E)),z!==void 0)if(x===null)b!==""&&Pa(a,b,z);else try{if(b!==""){var ne=x(z,a);Pa(a,b,ne)}else x(z,a)}catch(ie){}}}},Me.sp=function(a,y,b,E){if(this.el===gm){var x=this.xl;if(b===void 0||x===b){b=this.sl;var z=this.wk,ne=a;if(x!==""&&(ne=rs(a,x)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var ie=E!==null?E.diagram:null,se=ie!==null?ie.model:null;if(z===null){if(b!=="")se!==null?se.setDataProperty(y,b,ne):Pa(y,b,ne);else if(se!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var de=E.itemIndex,pe=E.panel.itemArray;se.ov(pe,de),se.ts(pe,de,ne)}}else try{if(b!==""){var Se=z(ne,y,se);se!==null?se.setDataProperty(y,b,Se):Pa(y,b,Se)}else{var Ne=z(ne,y,se);if(Ne!==void 0&&se!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Oe=E.itemIndex,He=E.panel.itemArray;se.ov(He,Oe),se.ts(He,Oe,Ne)}}}catch(Je){}}finally{this.st.remove(a)}}}},un.Object.defineProperties(us.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Gn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Gn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Gn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Gn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Gn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Gn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Gn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Gn(this),this.el=a}}}),us.prototype.updateSource=us.prototype.sp,us.prototype.updateTarget=us.prototype.Mv,us.prototype.ofModel=us.prototype.dA,us.prototype.ofObject=us.prototype.cp,us.prototype.makeTwoWay=us.prototype.Kx;var EE="Binding",M1=new Ln(us,"OneWay",1),gm=new Ln(us,"TwoWay",2);us.className="Binding",us.parseEnum=function(a,y){return function(b){return b=Xr(a,b),b===null?y:b}},us.toString=hi,us.OneWay=M1,us.TwoWay=gm;function Io(a,y,b){Ei.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new ur,this.wb=new Rn,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&&(Qn(a)?this.nodeDataArray=a:b=a),b&&(Object.assign(this,b),a=b.Changed)&&(delete this.Changed,this.Pe(a))}hn(Io,Ei),Io.constructGraphLinksModel=Ei.constructGraphLinksModel,Io.prototype.cloneProtected=function(a){Ei.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},Me=Io.prototype,Me.clear=function(){Ei.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Me.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 b=a.length,E;for(E=0;E<b;E++){var x=a[E];y+=" "+this.wa(x)+":"+hi(x)}for(y+=`
link data:`,a=this.linkDataArray,b=a.length,E=0;E<b;E++)x=a[E],y+=" "+oc(this,x,!0)+"-->"+oc(this,x,!1)}return y},Me.Qv=function(a,y){this.linkKeyProperty===""&&kt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var b=Ei.prototype.Qv.call(this,a,y),E=this,x=new ur,z=new ur,ne=new ur,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===ka&&ne.add(pe.oldValue):E.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):pe.object instanceof Ei||E.lb(pe.object)||O1(E,pe.object).each(function(Se){z.add(Se)})))});var se=this.il;se.clear(),x.each(function(pe){se.add(E.Ac(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(E.Ac(pe)),y&&z.add(pe)}),a=E.cloneDeep(z.Fa()),0<se.count&&(b===null&&(b={}),y?b.removedLinkKeys=se.Fa():b.insertedLinkKeys=se.Fa()),0<a.length&&(b===null&&(b={}),b.modifiedLinkData=a),0<de.count&&(b===null&&(b={}),y?b.insertedLinkKeys=de.Fa():b.removedLinkKeys=de.Fa()),de.clear(),se.clear(),b},Me.rm=function(){var a=Ei.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},Me.gp=function(a){Ei.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)},Me.Rv=function(){var a=Ei.prototype.Rv.call(this),y=`,
"linkDataArray": `+lf(this,this.linkDataArray,!0);return a+y},Me.kv=function(a){Ei.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function O1(a,y){for(var b=new ur,E=0;E<a.linkDataArray.length;E++){var x=a.linkDataArray[E];F0(a,y,x,x,b)}return b}Me.Pv=function(a,y){this.linkKeyProperty===""&&kt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var b=Ei.prototype.Pv.call(this,a,y),E=this,x=new ur,z=new ur,ne=new ur,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===ka&&ne.add(pe.oldValue):E.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):pe.object instanceof Ei||E.lb(pe.object)||O1(E,pe.object).each(function(Se){z.add(Se)})))});var se=this.il;se.clear(),x.each(function(pe){se.add(E.Ac(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(E.Ac(pe)),y&&z.add(pe)}),a=b,0<se.count&&(a+=(y?this.Xv:this.Vv)+lf(this,se.Fa(),!0)),0<z.count&&(a+=this.iy+lf(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Vv:this.Xv)+lf(this,de.Fa(),!0)),de.clear(),se.clear(),a},Me.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)&&kt("applyIncrementalJson cannot change Model properties"),Ei.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var b=y.length,E=0;E<b;E++){var x=y[E],z=this.jh(x);z===null&&(z=this.Jo({}),this.Ks(z,x),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(b=y.length,E=0;E<b;E++)if(x=y[E],z=this.Ac(x),z=this.jh(z),z!==null){for(var ne in x)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(z,ne,x[ne]);_1(this,x,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)b=this.jh(a[y]),b!==null&&this.bm(b)},Io.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===sa){var b=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(b)){var x=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),x!==void 0&&this.wb.add(x,b),Pa(b,E,x);return}}else if(a.change===Ta){if(b=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,nn(a)&&typeof b=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[b]===a&&this.md.splice(b,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[b]!==a&&this.md.splice(b,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof b=="number"&&(y?(b=E.indexOf(a.newValue),0<=b&&E.splice(b,1)):0>E.indexOf(a.newValue)&&E.splice(b,0,a.newValue));return}}else if(a.change===ka){if(b=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,nn(a)&&typeof b=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[b]!==a&&this.md.splice(b,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[b]===a&&this.md.splice(b,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof b=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(b,0,a.newValue):(b=E.indexOf(a.newValue),0<=b&&E.splice(b,1)));return}}Ei.prototype.changeState.call(this,a,y)}},Me=Io.prototype,Me.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var b=this.hc(a);b===null&&(b=this.copyNodeData(y),Pa(b,this.nodeKeyProperty,a),this.xf(b))}return a}},Me.yx=function(a){return oc(this,a,!0)},Me.wv=function(a,y){xg(this,a,y,!0)},Me.Bx=function(a){return oc(this,a,!1)},Me.Bv=function(a,y){xg(this,a,y,!1)};function oc(a,y,b){if(y!==null&&(a=b?a.lf:a.mf,a!==""&&(a=rs(y,a),a!==void 0))){if(uf(a))return a;kt((b?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function xg(a,y,b,E){if(b===null&&(b=void 0),y!==null){var x=E?a.lf:a.mf;if(x!=="")if(b=a.Vl(b),a.Jc(y)){var z=rs(y,x);z!==b&&(id(a,z,y),Pa(y,x,b),a.hc(b)===null&&rd(a,b,y),Cs(a,E?"linkFromKey":"linkToKey",sa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Pa(y,x,b)}}Me.zx=function(a){return _0(this,a,!0)},Me.xv=function(a,y){wg(this,a,y,!0)},Me.Cx=function(a){return _0(this,a,!1)},Me.Cv=function(a,y){wg(this,a,y,!1)};function _0(a,y,b){return y===null||(a=b?a.ej:a.fj,a==="")?"":(y=rs(y,a),y===void 0?"":y)}function wg(a,y,b,E){if(y!==null){var x=E?a.ej:a.fj;if(x!=="")if(a.Jc(y)){var z=rs(y,x);z===void 0&&(z=""),z!==b&&(Pa(y,x,b),Cs(a,E?"linkFromPortId":"linkToPortId",sa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Pa(y,x,b)}}Me.Ef=function(a){if(a===null)return U0;var y=this.je;return y===""?U0:(a=rs(a,y),a===void 0?U0:a)},Me.Ls=function(a,y){if(a!==null){var b=this.je;if(b!=="")if(this.Jc(a)){var E=rs(a,b);if(E===void 0&&(E=U0),E!==y){if(Array.isArray(E))for(var x=E.length,z=0;z<x;z++)id(this,E[z],a);for(Pa(a,b,y),x=y.length,z=0;z<x;z++){var ne=y[z];this.hc(ne)===null&&rd(this,ne,a)}Cs(this,"linkLabelKeys",sa,b,a,E,y),typeof b=="string"&&this.La(a,b)}}else Pa(a,b,y)}},Me.Bu=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=rs(a,b);if(E===void 0)b=[],b.push(y),this.Ls(a,b);else if(Array.isArray(E)){var x=E.indexOf(y);0<=x||(x=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&rd(this,y,a),Cs(this,"linkLabelKeys",Ta,b,a,null,y,null,x)))}else kt(b+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Me.Qx=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=rs(a,b);if(Array.isArray(E)){var x=E.indexOf(y);0>x||(E.splice(x,1),this.Jc(a)&&(id(this,y,a),Cs(this,"linkLabelKeys",ka,b,a,y,null,x,null)))}else E!==void 0&&kt(b+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Me.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=rs(a,y),y!==void 0)){if(uf(y))return y;kt("Key value for link data "+a+" is not a number or a string: "+y)}}},Me.Ks=function(a,y){if(a!==null){var b=this.Jh;if(b!=="")if(this.Jc(a)){var E=rs(a,b);E!==y&&this.jh(y)===null&&(Pa(a,b,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Cs(this,"linkKey",sa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Pa(a,b,y)}},Me.jh=function(a){return a===null&&kt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&uf(a)?this.wb.I(a):null},Me.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var b=this.Ac(a);if(b===void 0||this.wb.contains(b)){var E=this.cl;if(E!==null&&(b=E(this,a),b!=null&&!this.wb.contains(b))){Pa(a,y,b);return}if(typeof b=="string"){for(E=2;this.wb.contains(b+E);)E++;Pa(a,y,b+E)}else if(b===void 0||typeof b=="number"){for(b=-this.wb.count-1;this.wb.contains(b);)b--;Pa(a,y,b)}}}}},Me.Jc=function(a){return a===null?!1:this.$f.contains(a)},Me.fi=function(a){a!==null&&(Pi(a),this.Jc(a)||F1(this,a,!0))};function F1(a,y,b){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&kt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,b&&(E=a.md.length,a.md.splice(E,0,y)),Cs(a,"linkDataArray",Ta,"linkDataArray",a,null,y,null,E),Py(a,y)}Me.Ey=function(a){if(Array.isArray(a))for(var y=a.length,b=0;b<y;b++)this.fi(a[b]);else for(a=a.iterator;a.next();)this.fi(a.value)},Me.bm=function(a){a!==null&&B1(this,a,!0)};function B1(a,y,b){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,b){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(Cs(a,"linkDataArray",ka,"linkDataArray",a,y,null,E,null),b=oc(a,y,!0),id(a,b,y),b=oc(a,y,!1),id(a,b,y),E=a.Ef(y),Array.isArray(E))for(var x=E.length,z=0;z<x;z++)b=E[z],id(a,b,y)}Me.lA=function(a){if(Array.isArray(a))for(var y=a.length,b=0;b<y;b++)this.bm(a[b]);else for(a=a.iterator;a.next();)this.bm(a.value)},Me.Zz=function(a){if(this.linkKeyProperty===""&&kt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Qn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var b=this.il;b.clear();for(var E=a.length,x=0;x<E;x++){var z=a[x],ne=this.Ac(z);if(ne!==void 0){b.add(ne);var ie=this.jh(ne);ie!==z&&(ie!==null?(this.Do(ie,z),_1(this,z,ie)):(z=this.cloneDeep(z),this.Ks(z,ne),this.fi(z)))}else ne=this.cloneDeep(z),this.fi(ne),b.add(this.Ac(ne))}for(a=y.iterator;a.next();)E=a.value,b.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),b.clear()}};function Py(a,y){var b=oc(a,y,!0);b=a.Vl(b),a.hc(b)===null&&rd(a,b,y),b=oc(a,y,!1),b=a.Vl(b),a.hc(b)===null&&rd(a,b,y);var E=a.Ef(y);if(Array.isArray(E))for(var x=E.length,z=0;z<x;z++)b=E[z],a.hc(b)===null&&rd(a,b,y)}Me.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):B0(this,a,!0),nn(a)&&(vi(a),this.lf!==""&&Pa(a,this.lf,void 0),this.mf!==""&&Pa(a,this.mf,void 0),this.je!==""&&Pa(a,this.je,[])),a},Me.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!rs(a,y)},Me.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=rs(a,y),y!==void 0)){if(uf(y))return y;kt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Me.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var b=this.Je;if(b!=="")if(this.lb(a)){var E=rs(a,b);E!==y&&(id(this,E,a),Pa(a,b,y),this.hc(y)===null&&rd(this,y,a),Cs(this,"nodeGroupKey",sa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Pa(a,b,y)}},Io.prototype.copyNodeData=function(a){return a===null?null:(a=Ei.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||rs(a,this.Je)===void 0||Pa(a,this.Je,void 0),a)},Io.prototype.setDataProperty=function(a,y,b){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,b);return}if(y===this.nodeCategoryProperty){this.jm(a,b);return}if(y===this.nodeGroupKeyProperty){this.mp(a,b);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){xg(this,a,b,!0);return}if(y===this.linkToKeyProperty){xg(this,a,b,!1);return}if(y===this.linkFromPortIdProperty){wg(this,a,b,!0);return}if(y===this.linkToPortIdProperty){wg(this,a,b,!1);return}if(y===this.linkKeyProperty){this.Ks(a,b);return}if(y===this.linkCategoryProperty){this.lp(a,b);return}if(y===this.linkLabelKeysProperty){this.Ls(a,b);return}}var E=rs(a,y);E!==b&&(Pa(a,y,b),this.Fs(a,y,E,b))},Me=Io.prototype,Me.Do=function(a,y){if(y){var b=this.lb(a),E=this.Jc(a),x;for(x in y)x==="__gohashid"||b&&x===this.nodeKeyProperty||b&&x===this.nodeIsGroupProperty&&rs(a,x)===y[x]||E&&x===this.linkKeyProperty||this.setDataProperty(a,x,y[x])}},Me.jp=function(a,y){Ei.prototype.jp.call(this,a,y);for(var b=this.kb.iterator;b.next();)this.qv(b.value,a,y);for(b=this.$f.iterator;b.next();){var E=b.value,x=a,z=y;if(oc(this,E,!0)===x){var ne=this.lf;Pa(E,ne,z),Cs(this,"linkFromKey",sa,ne,E,x,z),typeof ne=="string"&&this.La(E,ne)}if(oc(this,E,!1)===x&&(ne=this.mf,Pa(E,ne,z),Cs(this,"linkToKey",sa,ne,E,x,z),typeof ne=="string"&&this.La(E,ne)),ne=this.Ef(E),Array.isArray(ne))for(var ie=ne.length,se=this.je,de=0;de<ie;de++)ne[de]===x&&(ne[de]=z,Cs(this,"linkLabelKeys",Ta,se,E,x,z,de,de))}},Me.qv=function(a,y,b){if(this.lh(a)===y){var E=this.Je;Pa(a,E,b),Cs(this,"nodeGroupKey",sa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},Me.Lv=function(){Ei.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,b=0;b<y;b++)Py(this,a[b])},Me.fm=function(a){Ei.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Jr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var x=this.Je;Cs(this,"nodeGroupKey",sa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}else if(oc(this,E,!0)===a&&(x=this.lf,Cs(this,"linkFromKey",sa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)),oc(this,E,!1)===a&&(x=this.mf,Cs(this,"linkToKey",sa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)),x=this.Ef(E),Array.isArray(x))for(var z=x.length,ne=this.je,ie=0;ie<z;ie++)x[ie]===a&&(Cs(this,"linkLabelKeys",Ta,ne,E,a,a,ie,ie),b.push(E))}for(y=0;y<b.length;y++)id(this,a,b[y]);Hr(b)}},Me.em=function(a){Ei.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&rd(this,y,a)},Me.qp=function(a){Ei.prototype.qp.call(this,a);var y=this.lh(a);id(this,y,a)},Me.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=rs(a,y),y===void 0))return"";if(typeof y=="string")return y;kt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Io.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Io.prototype.lp=function(a,y){if(a!==null){var b=this.dj;if(b!=="")if(this.Jc(a)){var E=rs(a,b);E===void 0&&(E=""),E!==y&&(Pa(a,b,y),Cs(this,"linkCategory",sa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Pa(a,b,y)}},Io.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Me=Io.prototype,Me.lm=function(a,y){Ei.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function _1(a,y,b){a.lp(b,a.ps(y)),a.wv(b,a.yx(y)),a.Bv(b,a.Bx(y)),a.Ls(b,a.Ef(y)),a.xv(b,a.zx(y)),a.Cv(b,a.Cx(y))}Me.Wj=function(){return!0},Me.ri=function(){return!0},Me.xs=function(){return!0},Me.Xj=function(){return!0},un.Object.defineProperties(Io.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 b=a.length,E=0;E<b;E++){var x=a[E];nn(x)||kt("GraphLinksModel.linkDataArray must only contain Objects, not: "+x),Pi(x)}if(this.md=a,this.linkKeyProperty!==""){for(E=new rr,x=0;x<b;x++){var z=a[x],ne=this.Ac(z);ne===void 0||this.wb.I(ne)!==null?E.add(z):this.wb.add(ne,z)}for(E=E.iterator;E.next();)x=E.value,this.Bs(x),z=this.Ac(x),z!==void 0&&this.wb.add(z,x)}for(E=new ur,x=0;x<b;x++)E.add(a[x]);for(this.$f=E,Cs(this,"linkDataArray",sa,"linkDataArray",this,y,a),y=0;y<b;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 b=this.linkDataArray.length,E=0;E<b;E++){var x=this.linkDataArray[E],z=this.Ac(x);z===void 0&&(this.Bs(x),z=this.Ac(x)),z!==void 0&&this.wb.add(z,x)}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"}}}),Io.prototype.setCategoryForLinkData=Io.prototype.lp,Io.prototype.getCategoryForLinkData=Io.prototype.ps,Io.prototype.assignAllDataProperties=Io.prototype.Do,Io.prototype.setGroupKeyForNodeData=Io.prototype.mp,Io.prototype.getGroupKeyForNodeData=Io.prototype.lh,Io.prototype.isGroupForNodeData=Io.prototype.Yu,Io.prototype.copyLinkData=Io.prototype.Jo,Io.prototype.mergeLinkDataArray=Io.prototype.Zz,Io.prototype.removeLinkDataCollection=Io.prototype.lA,Io.prototype.removeLinkData=Io.prototype.bm,Io.prototype.addLinkDataCollection=Io.prototype.Ey,Io.prototype.addLinkData=Io.prototype.fi,Io.prototype.containsLinkData=Io.prototype.Jc,Io.prototype.makeLinkDataKeyUnique=Io.prototype.Bs,Io.prototype.findLinkDataForKey=Io.prototype.jh,Io.prototype.setKeyForLinkData=Io.prototype.Ks,Io.prototype.getKeyForLinkData=Io.prototype.Ac,Io.prototype.removeLabelKeyForLinkData=Io.prototype.Qx,Io.prototype.addLabelKeyForLinkData=Io.prototype.Bu,Io.prototype.setLabelKeysForLinkData=Io.prototype.Ls,Io.prototype.getLabelKeysForLinkData=Io.prototype.Ef,Io.prototype.setToPortIdForLinkData=Io.prototype.Cv,Io.prototype.getToPortIdForLinkData=Io.prototype.Cx,Io.prototype.setFromPortIdForLinkData=Io.prototype.xv,Io.prototype.getFromPortIdForLinkData=Io.prototype.zx,Io.prototype.setToKeyForLinkData=Io.prototype.Bv,Io.prototype.getToKeyForLinkData=Io.prototype.Bx,Io.prototype.setFromKeyForLinkData=Io.prototype.wv,Io.prototype.getFromKeyForLinkData=Io.prototype.yx,Io.prototype.clear=Io.prototype.clear;var U0=Object.freeze([]);Io.className="GraphLinksModel",_c.GraphLinksModel=Io,Ei.constructGraphLinksModel=Ei.constructGraphLinksModel=function(){return new Io},Ei.initDiagramModel=wy=function(){return new Io};function eu(a,y){Ei.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Qn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}hn(eu,Ei),eu.constructGraphLinksModel=Ei.constructGraphLinksModel,eu.prototype.cloneProtected=function(a){Ei.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Me=eu.prototype,Me.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 b=a.length,E=0;E<b;E++){var x=a[E];y+=" "+this.wa(x)+":"+hi(x)}}return y},Me.rm=function(){var a=Ei.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Me.gp=function(a){Ei.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Me.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&kt("applyIncrementalJson cannot change Model properties"),Ei.prototype.fp.call(this,a)},Me.Vl=function(a){return a},Me.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=rs(a,y),y!==void 0)){if(uf(y))return y;kt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Me.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var b=this.Ke;if(b!=="")if(y=this.Vl(y),this.lb(a)){var E=rs(a,b);E!==y&&(id(this,E,a),Pa(a,b,y),this.hc(y)===null&&rd(this,y,a),Cs(this,"nodeParentKey",sa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Pa(a,b,y)}},Me.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=rs(a,y),y===void 0)?"":typeof y=="string"?y:(kt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},eu.prototype.getLinkCategoryForData=function(a){return this.ss(a)},eu.prototype.Ms=function(a,y){if(a!==null){var b=this.nj;if(b!=="")if(this.lb(a)){var E=rs(a,b);E===void 0&&(E=""),E!==y&&(Pa(a,b,y),Cs(this,"parentLinkCategory",sa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Pa(a,b,y)}},eu.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},eu.prototype.copyNodeData=function(a){return a===null?null:(a=Ei.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||rs(a,this.Ke)===void 0||Pa(a,this.Ke,void 0),a)},eu.prototype.setDataProperty=function(a,y,b){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,b);return}if(y===this.nodeCategoryProperty){this.jm(a,b);return}if(y===this.nodeParentKeyProperty){this.qe(a,b);return}}var E=rs(a,y);E!==b&&(Pa(a,y,b),this.Fs(a,y,E,b))},Me=eu.prototype,Me.jp=function(a,y){Ei.prototype.jp.call(this,a,y);for(var b=this.kb.iterator;b.next();)this.qv(b.value,a,y)},Me.qv=function(a,y,b){if(this.mh(a)===y){var E=this.Ke;Pa(a,E,b),Cs(this,"nodeParentKey",sa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},Me.fm=function(a){Ei.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Jr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var x=this.Ke;Cs(this,"nodeParentKey",sa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}for(y=0;y<b.length;y++)id(this,a,b[y]);Hr(b)}},Me.em=function(a){Ei.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&rd(this,y,a)},Me.qp=function(a){Ei.prototype.qp.call(this,a);var y=this.mh(a);id(this,y,a)},Me.lm=function(a,y){Ei.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Me.Tl=function(){return!0},Me.xs=function(){return!0},un.Object.defineProperties(eu.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"}}}),eu.prototype.setParentLinkCategoryForNodeData=eu.prototype.Ms,eu.prototype.getParentLinkCategoryForNodeData=eu.prototype.ss,eu.prototype.setParentKeyForNodeData=eu.prototype.qe,eu.prototype.getParentKeyForNodeData=eu.prototype.mh,eu.className="TreeModel",_c.TreeModel=eu;function Oa(a){Na.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Uc,this.Ti=0,this.Zv=new rt,this.Jp=this.me=0,this.Xr=new Sm,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Uc,this.K=tu,this.nd=Pg,this.hd=vy,this.tf=6,this.Nn=Z0,a&&Object.assign(this,a)}hn(Oa,Na),Oa.prototype.cloneProtected=function(a){Na.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},Oa.prototype.qb=function(a){a.classType===Oa?a===V0||a===W0||a===G0||a===j0||a===Pg?this.sorting=a:a===Wf||a===Cg||a===tu||a===df?this.direction=a:a===Dh||a===cf||a===Uc||a===Hc?this.arrangement=a:(a===Rp||a===Z0)&&(this.nodeDiameterFormula=a):Na.prototype.qb.call(this,a)},Oa.prototype.createNetwork=function(){return new Tg(this)},Oa.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 rr;y.addAll(a.iterator),a=new rr;var b=new rr,E=this.sort(y),x,z,ne=this.Jp,ie=this.arrangement,se=this.nodeDiameterFormula,de=this.radius;(!isFinite(de)||0>=de)&&(de=NaN);var pe=this.aspectRatio;(!isFinite(pe)||0>=pe)&&(pe=1);var Se=this.startAngle;isFinite(Se)||(Se=0);var Ne=this.sweepAngle;if((!isFinite(Ne)||360<Ne||1>Ne)&&(Ne=360),y=this.spacing,isFinite(y)||(y=NaN),ie===Hc&&se===Rp?ie=Uc:ie===Hc&&se!==Rp&&(ie=this.arrangement),(this.direction===Wf||this.direction===Cg)&&this.sorting!==Pg){for(se=0;!(se>=E.length)&&(a.add(E.M(se)),!(se+1>=E.length));se+=2)b.add(E.M(se+1));this.direction===Wf?(this.arrangement===Hc&&a.reverse(),E=new rr,E.addAll(a),E.addAll(b)):(this.arrangement===Hc&&b.reverse(),E=new rr,E.addAll(b),E.addAll(a))}se=E.length;for(var Oe=z=x=0;Oe<E.length;Oe++){var He=Se+Ne*z*(this.direction===tu?1:-1)/se,Je=E.M(Oe).diameter;isNaN(Je)&&(Je=hf(E.M(Oe),He)),360>Ne&&(Oe===0||Oe===E.length-1)&&(Je/=2),x+=Je,z++}if(isNaN(de)||ie===Hc){if(isNaN(y)&&(y=6),ie!==Uc&&ie!==Hc){for(z=-1/0,ne=0;ne<se;ne++)Oe=E.M(ne),x=E.M(ne===se-1?0:ne+1),isNaN(Oe.diameter)&&hf(Oe,0),isNaN(x.diameter)&&hf(x,0),z=Math.max(z,(Oe.diameter+x.diameter)/2);ne=z+y,ie===Dh?de=(z+y)/(2*Math.PI/se):de=H0(this,ne*(360<=Ne?se:se-1),pe,Se*Math.PI/180,Ne*Math.PI/180)}else de=H0(this,x+(360<=Ne?se:se-1)*(ie!==Hc?y:1.6*y),pe,Se*Math.PI/180,Ne*Math.PI/180);z=de*pe}else if(z=de*pe,Oe=Ty(this,de,z,Se*Math.PI/180,Ne*Math.PI/180),isNaN(y))(ie===Uc||ie===Hc)&&(y=(Oe-x)/(360<=Ne?se:se-1));else if(ie===Uc||ie===Hc)Oe=(Oe-x)/(360<=Ne?se:se-1),Oe<y?(de=H0(this,x+y*(360<=Ne?se:se-1),pe,Se*Math.PI/180,Ne*Math.PI/180),z=de*pe):y=Oe;else{for(ne=-1/0,x=0;x<se;x++)He=E.M(x),Je=E.M(x===se-1?0:x+1),isNaN(He.diameter)&&hf(He,0),isNaN(Je.diameter)&&hf(Je,0),ne=Math.max(ne,(He.diameter+Je.diameter)/2);ne+=y,x=H0(this,ne*(360<=Ne?se:se-1),pe,Se*Math.PI/180,Ne*Math.PI/180),x>de?(de=x,z=de*pe):ne=Oe/(360<=Ne?se:se-1)}if(this.kw=ie,this.lc=de,this.Zm=pe,this.lw=Se,this.Wp=Ne,this.Ti=y,this.me=z,this.Jp=ne,y=E,E=this.kw,ie=this.lc,de=this.lw,pe=this.Wp,Se=this.Ti,Ne=this.me,se=this.Jp,this.direction!==Wf&&this.direction!==Cg||E!==Hc)if(this.direction===Wf||this.direction===Cg){switch(ne=0,E){case cf:ne=180*z0(this,ie,Ne,de,se)/Math.PI;break;case Uc:se=y=0,ne=a.first(),ne!==null&&(y=hf(ne,Math.PI/2)),ne=b.first(),ne!==null&&(se=hf(ne,Math.PI/2)),ne=180*z0(this,ie,Ne,de,Se+(y+se)/2)/Math.PI;break;case Dh:ne=pe/y.length}if(this.direction===Wf){switch(E){case cf:ym(this,a,de,df);break;case Uc:vm(this,a,de,df);break;case Dh:mm(this,a,pe/2,de,df)}switch(E){case cf:ym(this,b,de+ne,tu);break;case Uc:vm(this,b,de+ne,tu);break;case Dh:mm(this,b,pe/2,de+ne,tu)}}else{switch(E){case cf:ym(this,b,de,df);break;case Uc:vm(this,b,de,df);break;case Dh:mm(this,b,pe/2,de,df)}switch(E){case cf:ym(this,a,de+ne,tu);break;case Uc:vm(this,a,de+ne,tu);break;case Dh:mm(this,a,pe/2,de+ne,tu)}}}else switch(E){case cf:ym(this,y,de,this.direction);break;case Uc:vm(this,y,de,this.direction);break;case Dh:mm(this,y,pe,de,this.direction);break;case Hc:U1(this,y,pe,de,this.direction)}else U1(this,y,pe,de-pe/2,tu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function mm(a,y,b,E,x){var z=a.Wp,ne=a.lc;a=a.me,E=E*Math.PI/180,b=b*Math.PI/180;for(var ie=y.length,se=0;se<ie;se++){var de=E+(x===tu?se*b/(360<=z?ie:ie-1):-(se*b)/ie),pe=y.M(se),Se=ne*Math.tan(de)/a;Se=Math.sqrt((ne*ne+a*a*Se*Se)/(1+Se*Se)),pe.centerX=Se*Math.cos(de),pe.centerY=Se*Math.sin(de),pe.actualAngle=180*de/Math.PI}}function vm(a,y,b,E){var x=a.lc,z=a.me,ne=a.Ti;b=b*Math.PI/180;for(var ie=y.length,se=0;se<ie;se++){var de=y.M(se),pe=y.M(se===ie-1?0:se+1),Se=z*Math.sin(b);de.centerX=x*Math.cos(b),de.centerY=Se,de.actualAngle=180*b/Math.PI,isNaN(de.diameter)&&hf(de,0),isNaN(pe.diameter)&&hf(pe,0),de=z0(a,x,z,E===tu?b:-b,(de.diameter+pe.diameter)/2+ne),b+=E===tu?de:-de}}function ym(a,y,b,E){var x=a.lc,z=a.me,ne=a.Jp;b=b*Math.PI/180;for(var ie=y.length,se=0;se<ie;se++){var de=y.M(se);de.centerX=x*Math.cos(b),de.centerY=z*Math.sin(b),de.actualAngle=180*b/Math.PI,de=z0(a,x,z,E===tu?b:-b,ne),b+=E===tu?de:-de}}function U1(a,y,b,E,x){var z=a.Wp;if(a.mj=0,a.Xr=new Sm,360>b){for(z=E+(x===tu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,z1(a,y,b,E,x)}else H1(a,y,b,E,x);a.Xr.commit(y)}function H1(a,y,b,E,x){var z=a.lc,ne=a.Ti,ie=a.Zm,se=z*Math.cos(E*Math.PI/180),de=a.me*Math.sin(E*Math.PI/180),pe=y.Fa();if(pe.length===3)pe[0].centerX=z,pe[0].centerY=0,pe[1].centerX=pe[0].centerX-pe[0].width/2-pe[1].width/2-ne,pe[1].y=pe[0].y,pe[2].centerX=(pe[0].centerX+pe[1].centerX)/2,pe[2].y=pe[0].y-pe[2].height-ne;else if(pe.length===4)pe[0].centerX=z,pe[0].centerY=0,pe[2].centerX=-pe[0].centerX,pe[2].centerY=pe[0].centerY,pe[1].centerX=0,pe[1].y=Math.min(pe[0].y,pe[2].y)-pe[1].height-ne,pe[3].centerX=0,pe[3].y=Math.max(pe[0].y+pe[0].height+ne,pe[2].y+pe[2].height+ne);else{z=rt.alloc();for(var Se=0;Se<pe.length&&(pe[Se].centerX=se,pe[Se].centerY=de,!(Se>=pe.length-1));Se++)G1(a,se,de,pe,Se,x,z)||j1(a,se,de,pe,Se,x,z),se=z.x,de=z.y;if(rt.free(z),a.mj++,!(23<a.mj)){se=pe[0].centerX,de=pe[0].centerY,z=pe[pe.length-1].centerX,Se=pe[pe.length-1].centerY;var Ne=Math.abs(se-z)-((pe[0].width+pe[pe.length-1].width)/2+ne),Oe=Math.abs(de-Se)-((pe[0].height+pe[pe.length-1].height)/2+ne);ne=0,1>Math.abs(Oe)?Math.abs(se-z)<(pe[0].width+pe[pe.length-1].width)/2&&(ne=0):ne=0<Oe?Oe:1>Math.abs(Ne)?0:Ne,se=Math.abs(z)>Math.abs(Se)?0<z!=de>Se:0<Se!=se<z,(se=x===tu?se:!se)&&(ne=-Math.abs(ne),ne=Math.min(ne,-pe[pe.length-1].width),ne=Math.min(ne,-pe[pe.length-1].height)),a.Xr.compare(ne,pe),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>pe.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*ie,H1(a,y,b,E,x))}}}function z1(a,y,b,E,x){for(var z=a.lc,ne=a.me,ie=a.Zm,se=z*Math.cos(E*Math.PI/180),de=ne*Math.sin(E*Math.PI/180),pe=rt.alloc(),Se=y.Fa(),Ne=0;Ne<Se.length&&(Se[Ne].centerX=se,Se[Ne].centerY=de,!(Ne>=Se.length-1));Ne++)G1(a,se,de,Se,Ne,x,pe)||j1(a,se,de,Se,Ne,x,pe),se=pe.x,de=pe.y;if(rt.free(pe),a.mj++,!(23<a.mj)){if(se=Math.atan2(de,se),se=x===tu?a.gt-se:se-a.gt,se=Math.abs(se)<Math.abs(se-2*Math.PI)?se:se-2*Math.PI,z=se*(z+ne)/2,ne=a.Xr,Math.abs(z)<Math.abs(ne.Pl))for(ne.Pl=z,ne.mk=[],ne.tm=[],se=0;se<Se.length;se++)ne.mk[se]=Se[se].bounds.x,ne.tm[se]=Se[se].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*ie,z1(a,y,b,E,x))}}function G1(a,y,b,E,x,z,ne){var ie=a.lc,se=a.me,de=0;a=(E[x].width+E[x+1].width)/2+a.Ti;var pe=!1;if(0<=b!=(z===tu)){if(z=y+a,z>ie){if(z=y-a,z<-ie)return ne.x=z,ne.y=de,!1;pe=!0}}else if(z=y-a,z<-ie){if(z=y+a,z>ie)return ne.x=z,ne.y=de,!1;pe=!0}return de=Math.sqrt(1-Math.min(1,z*z/(ie*ie)))*se,0>b!==pe&&(de=-de),Math.abs(b-de)>(E[x].height+E[x+1].height)/2?(ne.x=z,ne.y=de,!1):(ne.x=z,ne.y=de,!0)}function j1(a,y,b,E,x,z,ne){var ie=a.lc,se=a.me,de=0;if(a=(E[x].height+E[x+1].height)/2+a.Ti,E=!1,0<=y!=(z===tu)){if(z=b-a,z<-se){if(z=b+a,z>se){ne.x=de,ne.y=z;return}E=!0}}else if(z=b+a,z>se){if(z=b-a,z<-se){ne.x=de,ne.y=z;return}E=!0}de=Math.sqrt(1-Math.min(1,z*z/(se*se)))*ie,0>y!==E&&(de=-de),ne.x=de,ne.y=z}Oa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Oa.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,b=this.actualCenter;a?b=new rt(0,0):(b.x=this.arrangementOrigin.x+this.lc,b.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var x=E.value;x.x+=b.x,x.y+=b.y,x.commit()}a&&(this.group.Va(),a=this.group.position.copy(),b=this.group.location.copy(),y=y.re(b.re(a)),this.group.move(y),this.Zv=y.re(a))},Oa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Ty(a,y,b,E,x){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&x!==void 0?x*y:2*Math.PI*y;a=y>b?Math.sqrt(y*y-b*b)/y:Math.sqrt(b*b-y*y)/b;for(var ne=0,ie=E!==void 0&&x!==void 0?x/(z+1):Math.PI/(2*(z+1)),se=0,de=0;de<=z;de++){E!==void 0&&x!==void 0?se=E+de*x/z:se=de*Math.PI/(2*z);var pe=Math.sin(se);ne+=Math.sqrt(1-a*a*pe*pe)*ie}return E!==void 0&&x!==void 0?(y>b?y:b)*ne:4*(y>b?y:b)*ne}function H0(a,y,b,E,x){return y/(E!==void 0&&x!==void 0?Ty(a,1,b,E,x):Ty(a,1,b))}function z0(a,y,b,E,x){if(.001>Math.abs(a.Zm-1))return x/y;var z=y>b?Math.sqrt(y*y-b*b)/y:Math.sqrt(b*b-y*y)/b,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>b&&(E+=Math.PI/2);for(var ie=0;;ie++){var se=Math.sin(E+ie*a);if(ne+=(y>b?y:b)*Math.sqrt(1-z*z*se*se)*a,ne>=x)return ie*a}}Oa.prototype.sort=function(a){switch(this.sorting){case G0:break;case j0:a.reverse();break;case V0:a.sort(this.comparer);break;case W0:a.sort(this.comparer),a.reverse();break;case Pg:return this.ak(xE(a));default:kt("Invalid sorting type.")}return a};function xE(a){for(var y=[],b=0;b<a.length;b++)y.push(0);b=new rr;for(var E=0;E<a.length;E++){var x=-1,z=-1;if(E===0)for(var ne=0;ne<a.length;ne++){var ie=a.M(ne).edgesCount;ie>x&&(x=ie,z=ne)}else for(ne=0;ne<a.length;ne++)ie=y[ne],ie>x&&(x=ie,z=ne);for(b.add(a.M(z)),y[z]=-1,z=a.M(z),ne=z.sourceEdges;ne.next();)x=a.indexOf(ne.value.fromVertex),0>x||0<=y[x]&&y[x]++;for(z=z.destinationEdges;z.next();)x=a.indexOf(z.value.toVertex),0>x||0<=y[x]&&y[x]++}return b}Oa.prototype.ak=function(a){for(var y=[],b=0;b<a.length;b++){var E=a.M(b);y[b]=[];for(var x,z=E.destinationEdges;z.next();)x=a.indexOf(z.value.toVertex),x!==b&&0>y[b].indexOf(x)&&y[b].push(x);for(E=E.sourceEdges;E.next();)x=a.indexOf(E.value.fromVertex),x!==b&&0>y[b].indexOf(x)&&y[b].push(x)}for(z=[],b=0;b<y.length;b++)z[b]=0;b=[];var ne=[],ie=[];E=[],x=new rr;for(var se=0,de=0;de<y.length;de++){var pe=y[de].length;if(pe===1)E.push(de);else if(pe===0)x.add(a.M(de));else{if(se===0)b.push(de);else{for(var Se=pe=1/0,Ne=-1,Oe=[],He=0;He<b.length;He++)0>y[b[He]].indexOf(b[He===b.length-1?0:He+1])&&Oe.push(He===b.length-1?0:He+1);if(Oe.length===0)for(He=0;He<b.length;He++)Oe.push(He);for(He=0;He<Oe.length;He++){for(var Je=Oe[He],xt=y[de],yt=0,Rt=0;Rt<ne.length;Rt++){var Bt=z[ne[Rt]],Gt=z[ie[Rt]];if(Bt<Gt){var $t=Bt;Bt=Gt}else $t=Gt;if($t<Je&&Je<=Bt)for(Gt=0;Gt<xt.length;Gt++){var In=xt[Gt];0>b.indexOf(In)||$t<z[In]&&z[In]<Bt||$t===z[In]||Bt===z[In]||yt++}else for(Gt=0;Gt<xt.length;Gt++)In=xt[Gt],0>b.indexOf(In)||$t<z[In]&&z[In]<Bt&&$t!==z[In]&&Bt!==z[In]&&yt++}for(xt=yt,Rt=yt=0;Rt<y[de].length;Rt++)$t=b.indexOf(y[de][Rt]),0<=$t&&($t=Math.abs(Je-($t>=Je?$t+1:$t)),yt+=$t<b.length+1-$t?$t:b.length+1-$t);for(Rt=0;Rt<ne.length;Rt++)$t=z[ne[Rt]],Bt=z[ie[Rt]],$t>=Je&&$t++,Bt>=Je&&Bt++,$t>Bt&&(Gt=Bt,Bt=$t,$t=Gt),Bt-$t<(b.length+2)/2==($t<Je&&Je<=Bt)&&yt++;(xt<pe||xt===pe&&yt<Se)&&(pe=xt,Se=yt,Ne=Je)}for(b.splice(Ne,0,de),pe=0;pe<b.length;pe++)z[b[pe]]=pe;for(pe=0;pe<y[de].length;pe++)Se=y[de][pe],0<=b.indexOf(Se)&&(ne.push(de),ie.push(Se))}se++}}for(ne=b.length;;){for(z=!0,ie=0;ie<E.length;ie++)if(se=E[ie],de=y[se][0],pe=b.indexOf(de),0<=pe){for(Ne=Se=0;Ne<y[de].length;Ne++)Oe=b.indexOf(y[de][Ne]),0>Oe||Oe===pe||(He=Oe>pe?Oe-pe:pe-Oe,Se+=Oe<pe!=He>ne-He?1:-1);b.splice(0>Se?pe:pe+1,0,se),E.splice(ie,1),ie--}else z=!1;if(z)break;b.push(E[0]),E.splice(0,1)}for(y=0;y<b.length;y++)x.add(a.M(b[y]));return x},un.Object.defineProperties(Oa.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!==Hc&&a!==Uc&&a!==cf&&a!==Dh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==tu&&a!==df&&a!==Wf&&a!==Cg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==G0&&a!==j0&&a!==V0&&!W0&&a!==Pg||(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!==Z0&&a!==Rp||(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 Uc=new Ln(Oa,"ConstantSpacing",0),cf=new Ln(Oa,"ConstantDistance",1),Dh=new Ln(Oa,"ConstantAngle",2),Hc=new Ln(Oa,"Packed",3),tu=new Ln(Oa,"Clockwise",4),df=new Ln(Oa,"Counterclockwise",5),Wf=new Ln(Oa,"BidirectionalLeft",6),Cg=new Ln(Oa,"BidirectionalRight",7),G0=new Ln(Oa,"Forwards",8),j0=new Ln(Oa,"Reverse",9),V0=new Ln(Oa,"Ascending",10),W0=new Ln(Oa,"Descending",11),Pg=new Ln(Oa,"Optimized",12),Z0=new Ln(Oa,"Pythagorean",13),Rp=new Ln(Oa,"Circular",14);Oa.className="CircularLayout",Oa.ConstantSpacing=Uc,Oa.ConstantDistance=cf,Oa.ConstantAngle=Dh,Oa.Packed=Hc,Oa.Clockwise=tu,Oa.Counterclockwise=df,Oa.BidirectionalLeft=Wf,Oa.BidirectionalRight=Cg,Oa.Forwards=G0,Oa.Reverse=j0,Oa.Ascending=V0,Oa.Descending=W0,Oa.Optimized=Pg,Oa.Pythagorean=Z0,Oa.Circular=Rp;function Sm(){this.Pl=-1/0,this.tm=this.mk=null}Sm.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},Sm.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var b=a.M(y);b.x=this.mk[y],b.y=this.tm[y]}},Sm.className="VertexArrangement";function Tg(a){va.call(this,a)}hn(Tg,va),Tg.prototype.createVertex=function(){return new bm(this)},Tg.prototype.createEdge=function(){return new K0(this)},Tg.className="CircularNetwork";function bm(a){ks.call(this,a),this.u=this.Si=NaN}hn(bm,ks);function hf(a,y){var b=a.network;if(b===null)return NaN;if(b=b.layout,b===null)return NaN;if(b.arrangement===Hc)if(b.nodeDiameterFormula===Rp)a.Si=Math.max(a.width,a.height);else{if(b=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),b===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/b,a.width/y)}else a.Si=b.nodeDiameterFormula===Rp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}un.Object.defineProperties(bm.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)}}}),bm.className="CircularVertex";function K0(a){zu.call(this,a)}hn(K0,zu),K0.className="CircularEdge";function yl(a){Na.call(this),this.ah=null,this.An=0,this.$d=new cn(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)}hn(yl,Na),yl.prototype.cloneProtected=function(a){Na.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},yl.prototype.createNetwork=function(){return new Mp(this)},yl.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 b=y.value;b.charge=this.electricalCharge(b),b.mass=this.gravitationalMass(b)}for(y=this.network.edges.iterator;y.next();)b=y.value,b.stiffness=this.springStiffness(b),b.length=this.springLength(b);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,b=y.Zx();for(var E=b.iterator;E.next();){this.network=E.value;for(var x=this.network.vertexes.iterator;x.next();){var z=x.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}V1(this,0,a)}this.network=y;var ne=E=b.iterator;E=this.arrangementSpacing;var ie=ne.count,se=!0;z=x=0;for(var de=Jr(),pe=0;pe<ie+y.vertexes.count+2;pe++)de[pe]=null;ie=0,ne.reset();for(var Se=An.alloc();ne.next();)if(pe=ne.value,this.computeBounds(pe,Se),se)se=!1,x=Se.x+Se.width/2,z=Se.y+Se.height/2,de[0]=new rt(Se.x+Se.width+E.width,Se.y),de[1]=new rt(Se.x,Se.y+Se.height+E.height),ie=2;else{var Ne=W1(de,ie,x,z,Se.width,Se.height,E),Oe=de[Ne],He=new rt(Oe.x+Se.width+E.width,Oe.y),Je=new rt(Oe.x,Oe.y+Se.height+E.height);for(Ne+1<ie&&de.splice(Ne+1,0,null),de[Ne]=He,de[Ne+1]=Je,ie++,Ne=Oe.x-Se.x,Oe=Oe.y-Se.y,pe=pe.vertexes.iterator;pe.next();)He=pe.value,He.centerX+=Ne,He.centerY+=Oe}for(An.free(Se),pe=y.vertexes.iterator;pe.next();)ne=pe.value,Ne=ne.bounds,2>ie?(x=Ne.x+Ne.width/2,z=Ne.y+Ne.height/2,de[0]=new rt(Ne.x+Ne.width+E.width,Ne.y),de[1]=new rt(Ne.x,Ne.y+Ne.height+E.height),ie=2):(se=W1(de,ie,x,z,Ne.width,Ne.height,E),Se=de[se],Oe=new rt(Se.x+Ne.width+E.width,Se.y),Ne=new rt(Se.x,Se.y+Ne.height+E.height),se+1<ie&&de.splice(se+1,0,null),de[se]=Oe,de[se+1]=Ne,ie++,ne.centerX=Se.x+ne.width/2,ne.centerY=Se.y+ne.height/2);for(Hr(de),E=b.iterator;E.next();){for(b=E.value,x=b.vertexes.iterator;x.next();)y.dh(x.value);for(b=b.edges.iterator;b.next();)y.Bo(b.value)}}K1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},yl.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,b=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(b)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},yl.prototype.computeBounds=function(a,y){var b=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;b?(b=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function V1(a,y,b){if(wE(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var x=CE(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,b*(y+1)/11),10));for(a.maxIterations+=z,V1(a,y+1,b),K1(a,z),PE(a,x),y=x.vertexes.Fa(),y.sort(function(ne,ie){return ne===null||ie===null||ne===ie?0:ie.Vd-ne.Vd}),b=0;b<y.length;b++)TE(a,y[b]);a.Zf=E}}function wE(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(b,E){return b===null||E===null||b===E?0:E.Vd-b.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function CE(a,y){for(var b=a.network,E=new Mp(a),x=0;x<a.ah.length;x++){var z=a.ah[x];if(1<z.Vd){E.dh(z);var ne=new Y1;ne.Rs=z.Vd,ne.Ss=z.width,ne.Qs=z.height,ne.Sv=z.focus.x,ne.Tv=z.focus.y,z.We===null&&(z.We=new rr),z.We.add(ne),z.sv=z.We.count-1}else break}for(z=b.edges.iterator;z.next();){var ie=z.value;x=ie.fromVertex,ne=ie.toVertex,x.network===E&&ne.network===E?E.Bo(ie):x.network===E?(ie=x.Hj,ie===null&&(ie=new rr,x.Hj=ie),ie.add(ne),x.Vd--,x.sh+=ne.sh):ne.network===E&&(ie=ne.Hj,ie===null&&(ie=new rr,ne.Hj=ie),ie.add(x),ne.Vd--,ne.sh+=x.sh)}for(x=E.edges.iterator;x.next();)z=x.value,z.length*=Math.max(1,an.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){x=y.value;var se=x.Hj;if(se!==null&&0<se.count&&(ne=x.We.M(x.We.count-1).Rs-x.Vd,!(0>=ne))){for(var de=ie=0,pe=se.count-ne;pe<se.count;pe++){var Se=se.M(pe),Ne=null;for(z=Se.edges.iterator;z.next();){var Oe=z.value;if(Oe.Ax(Se)===x){Ne=Oe;break}}Ne!==null&&(de+=Ne.length,ie+=Se.width*Se.height)}z=x.centerX,se=x.centerY,pe=x.width,Se=x.height,Ne=x.focus,Oe=pe*Se,1>Oe&&(Oe=1),ie=an.sqrt((ie+Oe+de*de*4/(ne*ne))/Oe),ne=(ie-1)*pe/2,ie=(ie-1)*Se/2,x.bounds=new An(z-Ne.x-ne,se-Ne.y-ie,pe+2*ne,Se+2*ie),x.focus=new rt(Ne.x+ne,Ne.y+ie)}}return a.network=E,b}function PE(a,y){for(var b=a.network.vertexes.iterator;b.next();){var E=b.value;if(E.network=y,E.We!==null){var x=E.We.M(E.sv);E.Vd=x.Rs;var z=x.Sv,ne=x.Tv;E.bounds=new An(E.centerX-z,E.centerY-ne,x.Ss,x.Qs),E.focus=new rt(z,ne),E.sv--}}for(b=a.network.edges.iterator;b.next();)b.value.network=y;a.network=y}function TE(a,y){var b=y.Hj;if(b!==null&&b.count!==0){var E=y.centerX,x=y.centerY,z=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),z=ne.Ss,ne=ne.Qs),z=an.sqrt(z*z+ne*ne)/2;for(var ie=!1,se=ne=0,de=0,pe=y.vertexes.iterator;pe.next();){var Se=pe.value;1>=Se.Vd?se++:(ie=!0,de++,ne+=Math.atan2(y.centerY-Se.centerY,y.centerX-Se.centerX))}if(se!==0){for(0<de&&(ne/=de),de=y=0,y=ie?2*Math.PI/(se+1):2*Math.PI/se,se%2===0&&(de=y/2),1<b.count&&b.sort(function(Oe,He){return Oe===null||He===null||Oe===He?0:He.width*He.height-Oe.width*Oe.height}),ie=se%2===0?0:1,b=b.iterator;b.next();)if(se=b.value,!(1<se.Vd||a.isFixed(se))){for(pe=null,Se=se.edges.iterator;Se.next();){pe=Se.value;break}Se=se.width;var Ne=se.height;Se=an.sqrt(Se*Se+Ne*Ne)/2,pe=z+pe.length+Se,Se=ne+(y*(ie/2>>1)+de)*(ie%2===0?1:-1),se.centerX=E+pe*Math.cos(Se),se.centerY=x+pe*Math.sin(Se),ie++}}}}function W1(a,y,b,E,x,z,ne){var ie=9e19,se=-1,de=0;e:for(;de<y;de++){var pe=a[de],Se=pe.x-b,Ne=pe.y-E;if(Se=Se*Se+Ne*Ne,Se<ie){for(Ne=de-1;0<=Ne;Ne--)if(a[Ne].y>pe.y&&a[Ne].x-pe.x<x+ne.width)continue e;for(Ne=de+1;Ne<y;Ne++)if(a[Ne].x>pe.x&&a[Ne].y-pe.y<z+ne.height)continue e;se=de,ie=Se}}return se}yl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},yl.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var b=y.value;if(b.category==="Comment"&&b.isVisible()){var E=this.network.ki(b);E===null&&(E=this.network.Bl(b)),E.charge=this.defaultCommentElectricalCharge,b=null;for(var x=E.destinationEdges;x.next();){var z=x.value;if(z.toVertex===a){b=z;break}}if(b===null){for(x=E.sourceEdges;x.next();)if(z=x.value,z.fromVertex===a){b=z;break}}b===null&&(b=this.network.Zj(a,E,null)),b.length=this.defaultCommentSpringLength}}};function Z1(a,y){var b=a.bounds,E=b.x;a=b.y;var x=b.width;b=b.height;var z=y.bounds,ne=z.x;y=z.y;var ie=z.width;return z=z.height,E+x<ne?a>y+z?(b=E+x-ne,a=a-y-z,an.sqrt(b*b+a*a)):a+b<y?(E=E+x-ne,a=a+b-y,an.sqrt(E*E+a*a)):ne-(E+x):E>ne+ie?a>y+z?(b=E-ne-ie,a=a-y-z,an.sqrt(b*b+a*a)):a+b<y?(E=E-ne-ie,a=a+b-y,an.sqrt(E*E+a*a)):E-(ne+ie):a>y+z?a-(y+z):a+b<y?y-(a+b):.1}function K1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,AE(a)););a.ah=null}function AE(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var b=y[0];b.forceX=0,b.forceY=0;for(var E=b.centerX,x=E,z=b=b.centerY,ne=1;ne<y.length;ne++){var ie=y[ne];ie.forceX=0,ie.forceY=0;var se=ie.centerX;ie=ie.centerY,E=Math.min(E,se),x=Math.max(x,se),b=Math.min(b,ie),z=Math.max(z,ie)}(x=x-E>z-b)?y.sort(function(Je,xt){return Je===null||xt===null||Je===xt?0:Je.centerX-xt.centerX}):y.sort(function(Je,xt){return Je===null||xt===null||Je===xt?0:Je.centerY-xt.centerY}),b=a.Zf;var de=E=ie=0;for(z=0;z<y.length;z++){ne=y[z],E=ne.bounds,ie=ne.focus,se=E.x+ie.x;var pe=E.y+ie.y;E=ne.charge*a.electricalFieldX(se,pe),de=ne.charge*a.electricalFieldY(se,pe),E+=ne.mass*a.gravitationalFieldX(se,pe),de+=ne.mass*a.gravitationalFieldY(se,pe),ne.forceX+=E,ne.forceY+=de;for(var Se=z+1;Se<y.length;Se++){var Ne=y[Se];if(Ne!==ne){E=Ne.bounds,ie=Ne.focus,de=E.x+ie.x;var Oe=E.y+ie.y;if(se-de>b||de-se>b){if(x)break}else if(pe-Oe>b||Oe-pe>b){if(!x)break}else{var He=Z1(ne,Ne);1>He?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Y0),He=E.random(),ie=E.random(),se>de?(E=Math.abs(Ne.bounds.right-ne.bounds.x),E=(1+E)*He):se<de?(E=Math.abs(Ne.bounds.x-ne.bounds.right),E=-(1+E)*He):(E=Math.max(Ne.width,ne.width),E=(1+E)*He-E/2),pe>Oe?(de=Math.abs(Ne.bounds.bottom-ne.bounds.y),de=(1+de)*ie):se<de?(de=Math.abs(Ne.bounds.y-ne.bounds.bottom),de=-(1+de)*ie):(de=Math.max(Ne.height,ne.height),de=(1+de)*ie-de/2)):(ie=-(ne.charge*Ne.charge)/(He*He),E=(de-se)/He*ie,de=(Oe-pe)/He*ie),ne.forceX+=E,ne.forceY+=de,Ne.forceX-=E,Ne.forceY-=de}}}}for(x=a.network.edges.iterator;x.next();)ie=x.value,b=ie.fromVertex,z=ie.toVertex,ne=b.bounds,se=b.focus,E=ne.x+se.x,ne=ne.y+se.y,pe=z.bounds,Se=z.focus,se=pe.x+Se.x,pe=pe.y+Se.y,Se=Z1(b,z),1>Se?(Se=a.randomNumberGenerator,Se===null&&(a.randomNumberGenerator=Se=new Y0),ie=Se.random(),Se=Se.random(),E=(E>se?1:-1)*(1+(z.width>b.width?z.width:b.width))*ie,de=(ne>pe?1:-1)*(1+(z.height>b.height?z.height:b.height))*Se):(ie=ie.stiffness*(Se-ie.length),E=(se-E)/Se*ie,de=(pe-ne)/Se*ie),b.forceX+=E,b.forceY+=de,z.forceX-=E,z.forceY-=de;for(x=E=0;x<y.length;x++)b=y[x],a.isFixed(b)?a.moveFixedVertex(b):E=Math.max(E,a.moveVertex(b)||0);return E>a.epsilonDistance*a.epsilonDistance}yl.prototype.moveVertex=function(a){var y=a.forceX,b=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),b<-E?b=-E:b>E&&(b=E),a.centerX+=y,a.centerY+=b,y*y+b*b},yl.prototype.moveFixedVertex=function(){},yl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},yl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ts,y.toSpot=ts)}},yl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var b=An.alloc();this.computeBounds(this.network,b),y=this.arrangementOrigin,a=y.x-b.x,y=y.y-b.y,An.free(b)}b=An.alloc();for(var E=this.network.vertexes.iterator;E.next();){var x=E.value;(a!==0||y!==0)&&(b.assign(x.bounds),b.x+=a,b.y+=y,x.bounds=b),x.commit()}An.free(b)},yl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},yl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},yl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},yl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},yl.prototype.electricalFieldX=function(){return 0},yl.prototype.electricalFieldY=function(){return 0},yl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},yl.prototype.gravitationalFieldX=function(){return 0},yl.prototype.gravitationalFieldY=function(){return 0},yl.prototype.isFixed=function(a){return a.isFixed},un.Object.defineProperties(yl.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"&&kt('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())}}}),yl.className="ForceDirectedLayout";function Y1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Y1.className="ForceDirectedSubnet";function Mp(a){va.call(this,a)}hn(Mp,va),Mp.prototype.createVertex=function(){return new Em(this)},Mp.prototype.createEdge=function(){return new xm(this)},Mp.className="ForceDirectedNetwork";function Em(a){ks.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}hn(Em,ks),un.Object.defineProperties(Em.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)}}}),Em.className="ForceDirectedVertex";function xm(a){zu.call(this,a),this.j=this.o=NaN}hn(xm,zu),un.Object.defineProperties(xm.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)}}}),xm.className="ForceDirectedEdge";function Y0(){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()}Y0.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},Y0.className="RandomNumberGenerator";function qo(a){Na.call(this),this.kc=this.ie=25,this.K=0,this.Dk=$0,this.Zk=ev,this.Qk=tv,this.bj=4,this.rk=nv,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 rt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}hn(qo,Na),qo.prototype.cloneProtected=function(a){Na.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},qo.prototype.qb=function(a){a.classType===qo?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:kt("Unknown enum value: "+a):Na.prototype.qb.call(this,a)},qo.prototype.createNetwork=function(){return new Ng(this)},qo.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!==Cm&&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===Cm&&this.removeCycles(),a=this.network;for(var y=[],b=a.edges.iterator;b.next();){var E=b.value;E.valid=!1,y.push(E)}for(b=0;b<y.length;b++){E=y[b];var x=E.fromVertex,z=E.toVertex;if(!(E.valid||(x.node===null&&x.data===null||z.node===null&&z.data===null)&&x.layer===z.layer)){var ne=0,ie=0,se=0,de=0;if(E.link!==null){if(ie=E.link,ie===null)continue;var pe=x.node;if(ne=z.node,pe===null||ne===null)continue;var Se=ie.fromNode;se=ie.toNode;for(var Ne=ie.fromPort;Ne!==null&&!Ne.Ed();)Ne=Ne.panel;for(ie=ie.toPort;ie!==null&&!ie.Ed();)ie=ie.panel;if(E.rev){de=Se;var Oe=Ne;Se=se,Ne=ie,se=de,ie=Oe}var He=x.focus;de=z.focus;var Je=E.rev?z.bounds:x.bounds;Oe=rt.alloc(),pe!==Se?Je.w()&&Se.isVisible()?Se.actualBounds.w()?(Ah(Se,Ne,uo,Oe),Oe.x+=Se.actualBounds.x-Je.x,Oe.y+=Se.actualBounds.y-Je.y):(Ah(Se,Ne,uo,Oe),Oe.w()||Oe.assign(He)):Oe.assign(He):Je.w()?(Ah(Se,Ne,uo,Oe),Oe.w()||Oe.assign(He)):Oe.assign(He),Se=E.rev?x.bounds:z.bounds,pe=rt.alloc(),ne!==se?Se.w()&&se.isVisible()?se.actualBounds.w()?(Ah(se,ie,uo,pe),pe.x+=se.actualBounds.x-Se.x,pe.y+=se.actualBounds.y-Se.y):(Ah(se,ie,uo,pe),pe.w()||pe.assign(de)):pe.assign(de):Se.w()?(Ah(se,ie,uo,pe),pe.w()||pe.assign(de)):pe.assign(de),this.K===90||this.K===270?(ne=Math.round((Oe.x-He.x)/this.kc),se=Oe.x,ie=Math.round((pe.x-de.x)/this.kc),de=pe.x):(ne=Math.round((Oe.y-He.y)/this.kc),se=Oe.y,ie=Math.round((pe.y-de.y)/this.kc),de=pe.y),rt.free(Oe),rt.free(pe),E.portFromColOffset=ne,E.portFromPos=se,E.portToColOffset=ie,E.portToPos=de}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Oe=x.layer,pe=z.layer,Se=0,Je=E.link,Je!==null){var xt=Je.fromPort,yt=Je.toPort;if(xt!==null&&yt!==null){var Rt=Je.fromNode;if(Ne=Je.toNode,Rt!==null&&Ne!==null){var Bt=q0(this,!0),Gt=q0(this,!1),$t=this.setsPortSpots?Bt:Je.computeSpot(!0,xt);He=this.setsPortSpots?Gt:Je.computeSpot(!1,yt);var In=Je.isOrthogonal;$t.$c()&&$t.Hf(Gt)&&He.$c()&&He.Hf(Bt)?Se=0:(Bt=Je.getLinkPoint(Rt,xt,$t,!0,In,Ne,yt,rt.alloc()),Gt=Je.getLinkDirection(Rt,xt,Bt,$t,!0,In,Ne,yt),rt.free(Bt),$t.ys()||Gt!==Nb(this,E,!0)?this.setsPortSpots&&Rt!==null&&Rt.ports.count===1&&E.rev&&(Se+=1):Se+=1,$t=Je.getLinkPoint(Ne,yt,He,!1,In,Rt,xt,rt.alloc()),Je=Je.getLinkDirection(Ne,yt,$t,He,!1,In,Rt,xt),rt.free($t),He.ys()||Je!==Nb(this,E,!1)?this.setsPortSpots&&Ne!==null&&Ne.ports.count===1&&E.rev&&(Se+=2):Se+=2)}}}if(Ne=Se,Se=Ne===1||Ne===3,(Ne=Ne===2||Ne===3)&&(He=a.createVertex(),He.node=null,He.Dj=1,He.layer=Oe,He.near=x,a.dh(He),x=a.Zj(x,He,E.link),x.valid=!1,x.rev=E.rev,x.portFromColOffset=ne,x.portToColOffset=0,x.portFromPos=se,x.portToPos=0,x=He),Je=1,Se&&Je--,Oe-pe>Je&&0<Oe){for(E.valid=!1,He=a.createVertex(),He.node=null,He.Dj=2,He.layer=Oe-1,a.dh(He),x=a.Zj(x,He,E.link),x.valid=!0,x.rev=E.rev,x.portFromColOffset=Ne?0:ne,x.portToColOffset=0,x.portFromPos=Ne?0:se,x.portToPos=0,x=He,Oe--;Oe-pe>Je&&0<Oe;)He=a.createVertex(),He.node=null,He.Dj=3,He.layer=Oe-1,a.dh(He),x=a.Zj(x,He,E.link),x.valid=!0,x.rev=E.rev,x.portFromColOffset=0,x.portToColOffset=0,x.portFromPos=0,x.portToPos=0,x=He,Oe--;x=a.Zj(He,z,E.link),x.valid=!Se,Se&&(He.near=z),x.rev=E.rev,x.portFromColOffset=0,x.portToColOffset=ie,x.portFromPos=0,x.portToPos=de}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,b=this.Md=this.Hn=0;b<=this.Ia;b++)a[b]>a[this.Md]&&(this.Iq=a[b]-1,this.Md=b),a[b]<a[this.Hn]&&(this.Hn=b);for(this.fl=[],b=0;b<a.length;b++)this.fl[b]=[];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=ff(this,a),b=0,E=this.tc[a],z=0;z<E;z++)x=y[z],b+=this.nodeMinColumnSpace(x,!0),x.column=b,b+=1,b+=this.nodeMinColumnSpace(x,!1);this.Ra=Math.max(this.Ra,b-1),pf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},qo.prototype.linkMinLength=function(){return 1};function Ay(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}qo.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},qo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var b=y?a.ev:a.dv;return b!==null?b:(b=this.K,b===90||b===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 bu(a){a.kj===null&&(a.kj=[]);for(var y=0,b=a.network.vertexes.iterator;b.next();){var E=b.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function vc(a,y){var b=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[b],b++,E.column=y[b],b++,E.index=y[b],b++}}function X1(a,y,b){var E=ff(a,y),x=a.tc[y];(a.Jn===null||a.Jn.length<x*x)&&(a.Jn=[]);for(var z=a.Jn,ne=0;ne<x;ne++){var ie=0,se=E[ne],de=se.near;if(de!==null&&de.layer===se.layer)if(se=de.index,se>ne)for(var pe=ne+1;pe<se;pe++){var Se=E[pe];Se.near===de&&Se.Dj===de.Dj||ie++}else for(pe=ne-1;pe>se;pe--)Se=E[pe],Se.near===de&&Se.Dj===de.Dj||ie++;var Ne;if(0<=b)for(se=E[ne].sourceEdgesArrayAccess,de=0;de<se.length;de++){var Oe=se[de];if(Oe.valid&&Oe.fromVertex.layer!==y)for(Se=Oe.fromVertex.index,pe=Oe.portToPos,Oe=Oe.portFromPos,Ne=de+1;Ne<se.length;Ne++){var He=se[Ne];if(He.valid&&He.fromVertex.layer!==y){var Je=He.fromVertex.index,xt=He.portToPos;He=He.portFromPos,pe<xt&&(Se>Je||Se===Je&&Oe>He)&&ie++,xt<pe&&(Je>Se||Je===Se&&He>Oe)&&ie++}}}if(0>=b){for(se=E[ne].destinationEdgesArrayAccess,de=0;de<se.length;de++)if(Oe=se[de],Oe.valid&&Oe.toVertex.layer!==y)for(Se=Oe.toVertex.index,pe=Oe.portToPos,Oe=Oe.portFromPos,Ne=de+1;Ne<se.length;Ne++)He=se[Ne],He.valid&&He.toVertex.layer!==y&&(Je=He.toVertex.index,xt=He.portToPos,He=He.portFromPos,Oe<He&&(Se>Je||Se===Je&&pe>xt)&&ie++,He<Oe&&(Je>Se||Je===Se&&xt>pe)&&ie++)}for(z[ne*x+ne]=ie,se=ne+1;se<x;se++){var yt=0,Rt=0;if(0<=b){ie=E[ne].sourceEdgesArrayAccess;var Bt=E[se].sourceEdgesArrayAccess;for(de=0;de<ie.length;de++)if(Oe=ie[de],Oe.valid&&Oe.fromVertex.layer!==y)for(Se=Oe.fromVertex.index,Oe=Oe.portFromPos,Ne=0;Ne<Bt.length;Ne++)He=Bt[Ne],He.valid&&He.fromVertex.layer!==y&&(Je=He.fromVertex.index,He=He.portFromPos,(Se<Je||Se===Je&&Oe<He)&&Rt++,(Je<Se||Je===Se&&He<Oe)&&yt++)}if(0>=b){for(ie=E[ne].destinationEdgesArrayAccess,Bt=E[se].destinationEdgesArrayAccess,de=0;de<ie.length;de++)if(Oe=ie[de],Oe.valid&&Oe.toVertex.layer!==y)for(Se=Oe.toVertex.index,pe=Oe.portToPos,Ne=0;Ne<Bt.length;Ne++)He=Bt[Ne],He.valid&&He.toVertex.layer!==y&&(Je=He.toVertex.index,xt=He.portToPos,(Se<Je||Se===Je&&pe<xt)&&Rt++,(Je<Se||Je===Se&&xt<pe)&&yt++)}z[ne*x+se]=yt,z[se*x+ne]=Rt}}return pf(a,y,E),z}qo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var b=X1(this,y,1),E=this.tc[y],x=0;x<E;x++)for(var z=x;z<E;z++)a+=b[x*E+z];return a};function X0(a){for(var y=0,b=0;b<=a.Ia;b++){for(var E=a,x=b,z=ff(E,x),ne=E.tc[x],ie=0,se=0;se<ne;se++){var de=z[se].destinationEdgesArrayAccess;if(de!==null)for(var pe=0;pe<de.length;pe++){var Se=de[pe];if(Se.valid&&Se.toVertex.layer!==x){var Ne=Se.fromVertex.column+Se.portFromColOffset,Oe=Se.toVertex.column+Se.portToColOffset;ie+=(Math.abs(Ne-Oe)+1)*Ay(Se)}}}pf(E,x,z),y+=ie}return y}qo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var b=y.value;a=Math.min(a,b.column-this.nodeMinColumnSpace(b,!0)),this.Ra=Math.max(this.Ra,b.column+this.nodeMinColumnSpace(b,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Ny(a,y,b){for(var E=ff(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var ie=E[ne],se=null;0>=b&&(se=ie.sourceEdgesArrayAccess);var de=null;0<=b&&(de=ie.destinationEdgesArrayAccess);var pe=0,Se=0,Ne=ie.near;if(Ne!==null&&Ne.layer===ie.layer&&(pe+=Ne.column-1,Se++),se!==null)for(Ne=0;Ne<se.length;Ne++){ie=se[Ne];var Oe=ie.fromVertex;ie.valid&&!ie.rev&&Oe.layer!==y&&(pe+=Oe.column,Se++)}if(de!==null)for(se=0;se<de.length;se++)ie=de[se],Ne=ie.toVertex,ie.valid&&!ie.rev&&Ne.layer!==y&&(pe+=Ne.column,Se++);z[ne]=Se===0?-1:pe/Se}return pf(a,y,E),z}function Q1(a,y,b){for(var E=ff(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var ie=E[ne],se=null;0>=b&&(se=ie.sourceEdgesArrayAccess);var de=null;0<=b&&(de=ie.destinationEdgesArrayAccess);var pe=0,Se=[],Ne=ie.near;if(Ne!==null&&Ne.layer===ie.layer&&(Se[pe]=Ne.column-1,pe++),ie=void 0,se!==null)for(Ne=0;Ne<se.length;Ne++){ie=se[Ne];var Oe=ie.fromVertex;ie.valid&&!ie.rev&&Oe.layer!==y&&(Se[pe]=Oe.column+ie.portFromColOffset,pe++)}if(de!==null)for(se=0;se<de.length;se++)ie=de[se],Ne=ie.toVertex,ie.valid&&!ie.rev&&Ne.layer!==y&&(Se[pe]=Ne.column+ie.portToColOffset,pe++);pe===0?z[ne]=-1:(Se.sort(function(He,Je){return He-Je}),de=pe>>1,z[ne]=pe&1?Se[de]:Se[de-1]+Se[de]>>1)}return pf(a,y,E),z}function wm(a,y,b,E,x,z){if(y.component===E){if(y.component=b,x)for(var ne=y.destinationEdges;ne.next();){var ie=ne.value,se=ie.toVertex,de=y.layer-se.layer;ie=a.linkMinLength(ie),de===ie&&wm(a,se,b,E,x,z)}if(z)for(ne=y.sourceEdges;ne.next();)ie=ne.value,se=ie.fromVertex,de=se.layer-y.layer,ie=a.linkMinLength(ie),de===ie&&wm(a,se,b,E,x,z)}}function Ly(a,y,b,E,x,z){if(y.component===E){if(y.component=b,x)for(var ne=y.destinationEdges;ne.next();)Ly(a,ne.value.toVertex,b,E,x,z);if(z)for(y=y.sourceEdges;y.next();)Ly(a,y.value.fromVertex,b,E,x,z)}}qo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Dy:a=this.network;var y=0,b=a.vertexes.count-1,E=[];E.length=b+1;for(var x=a.vertexes.iterator;x.next();)x.value.valid=!0;for(;NE(a)!==null;){for(x=J1(a);x!==null;)E[b]=x,b--,x.valid=!1,x=J1(a);for(x=q1(a);x!==null;)E[y]=x,y++,x.valid=!1,x=q1(a);x=null;for(var z=0,ne=this.network.vertexes.iterator;ne.next();){var ie=ne.value;if(ie.valid){for(var se=0,de=ie.destinationEdges;de.next();)de.value.toVertex.valid&&se++;de=0;for(var pe=ie.sourceEdges;pe.next();)pe.value.fromVertex.valid&&de++;(x===null||z<se-de)&&(x=ie,z=se-de)}}x!==null&&(E[y]=x,y++,x.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case $0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&ky(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&ky(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,b=y.finish,x=E.toVertex,z=x.finish,x.Ll<y.Ll&&b<z&&(this.network.gm(E),E.rev=!0));break;case Cm:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)b=y.value,x=E[b.layer],x===void 0?E[b.layer]=[b]:x.push(b);for(b=y=0;b<E.length;b++)if(x=E[b],!x||x.length===0)y++;else if(0<b)for(z=0;z<x.length;z++)x[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function NE(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var b=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){b=!1;break}if(b)return y}}return null}function q1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var b=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){b=!1;break}if(b)return y}}return null}function ky(a,y){y.Ll=a.Kn,a.Kn++;for(var b=y.destinationEdges;b.next();){var E=b.value,x=E.toVertex;x.Ll===-1&&(E.forest=!0,ky(a,x))}y.finish=a.Kn,a.Kn++}qo.prototype.assignLayers=function(){switch(this.Zk){case Ry:$1(this);break;case My:for(var a,y=this.network.vertexes.iterator;y.next();)a=Pb(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 ev:for($1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&Tb(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 b=y.value;b.layer-=a,this.Ia=Math.max(this.Ia,b.layer)}}};function $1(a){for(var y=a.network.vertexes.iterator;y.next();){var b=Sb(a,y.value);a.Ia=Math.max(b,a.Ia)}}function Sb(a,y){var b=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var x=E.value,z=x.toVertex;x=a.linkMinLength(x),b=Math.max(b,Sb(a,z)+x)}y.layer=b}else b=y.layer;return b}function Pb(a,y){var b=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var x=E.value,z=x.fromVertex;x=a.linkMinLength(x),b=Math.max(b,Pb(a,z)+x)}y.layer=b}else b=y.layer;return b}function Tb(a,y){if(!y.valid){y.valid=!0;for(var b=y.destinationEdges;b.next();)Tb(a,b.value.toVertex);for(b=a.network.vertexes.iterator;b.next();)b.value.component=-1;for(var E=y.sourceEdgesArrayAccess,x=E.length,z=0;z<x;z++){var ne=E[z],ie=ne.fromVertex,se=ne.toVertex;ne=a.linkMinLength(ne),ie.layer-se.layer>ne&&wm(a,ie,0,-1,!0,!1)}for(wm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ie=0,se=null,ne=a.network.vertexes.iterator;ne.next();){var de=ne.value;if(de.component===1){var pe=0,Se=!1,Ne=de.sourceEdgesArrayAccess;x=Ne.length;for(var Oe=0;Oe<x;Oe++){var He=Ne[Oe],Je=He.fromVertex;pe+=1,Je.component!==1&&(z+=1,Je=Je.layer-de.layer,He=a.linkMinLength(He),E=Math.min(E,Je-He))}for(Ne=de.destinationEdgesArrayAccess,x=Ne.length,Oe=0;Oe<x;Oe++)He=Ne[Oe].toVertex,--pe,He.component!==1?--z:Se=!0;(se===null||pe<ie)&&!Se&&(se=de,ie=pe)}}if(0<z){for(b.reset();b.next();)x=b.value,x.component===1&&(x.layer+=E);y.component=0}else se.component=0}for(b=a.network.vertexes.iterator;b.next();)b.value.component=-1;for(wm(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,x=1/0,z=0,ie=null,se=a.network.vertexes.iterator;se.next();)if(ne=se.value,ne.component===1){for(de=0,pe=!1,Ne=ne.sourceEdgesArrayAccess,Se=Ne.length,Oe=0;Oe<Se;Oe++)He=Ne[Oe].fromVertex,de+=1,He.component!==1?E+=1:pe=!0;for(Ne=ne.destinationEdgesArrayAccess,Se=Ne.length,Oe=0;Oe<Se;Oe++)He=Ne[Oe],Je=He.toVertex,--de,Je.component!==1&&(--E,Je=ne.layer-Je.layer,He=a.linkMinLength(He),x=Math.min(x,Je-He));(ie===null||de>z)&&!pe&&(ie=ne,z=de)}if(0>E){for(b.reset();b.next();)E=b.value,E.component===1&&(E.layer-=x);y.component=0}else ie.component=0}}}function Nb(a,y,b){return a.K===90?b&&!y.rev||!b&&y.rev?270:90:a.K===180?b&&!y.rev||!b&&y.rev?0:180:a.K===270?b&&!y.rev||!b&&y.rev?90:270:b&&!y.rev||!b&&y.rev?180:0}qo.prototype.initializeIndices=function(){switch(this.Qk){default:case Fy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,b=y.layer;y.index=this.tc[b],this.tc[b]++}break;case tv:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)b=a.value,b.layer===y&&b.index===-1&&Lb(this,b);break;case Oy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)b=a.value,b.layer===y&&b.index===-1&&Ib(this,b)}};function Lb(a,y){var b=y.layer;for(y.index=a.tc[b],a.tc[b]++,y=y.destinationEdgesArrayAccess,b=!0;b;){b=!1;for(var E=0;E<y.length-1;E++){var x=y[E],z=y[E+1];x.portFromColOffset>z.portFromColOffset&&(b=!0,y[E]=z,y[E+1]=x)}}for(b=0;b<y.length;b++)E=y[b],E.valid&&(E=E.toVertex,E.index===-1&&Lb(a,E))}function Ib(a,y){var b=y.layer;y.index=a.tc[b],a.tc[b]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,b=0;b<y.length-1;b++){var x=y[b],z=y[b+1];x.portToColOffset>z.portToColOffset&&(E=!0,y[b]=z,y[b+1]=x)}for(b=0;b<y.length;b++)E=y[b],E.valid&&(E=E.fromVertex,E.index===-1&&Ib(a,E))}qo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=bu(this),b,E;for(b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,1),Tc(this,E,1);var x=this.countCrossings();for(x<a&&(a=x,y=bu(this)),E=this.Ia;0<=E;E--)Q0(this,E,-1),Tc(this,E,-1);x=this.countCrossings(),x<a&&(a=x,y=bu(this))}for(vc(this,y),b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,0),Tc(this,E,0);for(x=this.countCrossings(),x<a&&(a=x,y=bu(this)),E=this.Ia;0<=E;E--)Q0(this,E,0),Tc(this,E,0);x=this.countCrossings(),x<a&&(a=x,y=bu(this))}vc(this,y);var z,ne,ie;switch(this.rk){case By:break;case _y:for(ie=a+1;(E=this.countCrossings())<ie;)for(ie=E,b=this.Ia;0<=b;b--)for(ne=0;ne<=b;ne++){for(z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,-1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,1)||z;for(x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,-1)||z;for(x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,0)||z;for(x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,0)||z;x>=a?vc(this,y):(a=x,y=bu(this))}break;default:case nv:for(b=this.Ia,ne=0,ie=a+1;(E=this.countCrossings())<ie;){for(ie=E,z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,-1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,1)||z;for(x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,-1)||z;for(x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,0)||z;for(x>=a?vc(this,y):(a=x,y=bu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,0)||z;x>=a?vc(this,y):(a=x,y=bu(this))}}vc(this,y)};function Q0(a,y,b){var E=ff(a,y),x=a.tc[y],z=Q1(a,y,b),ne=Ny(a,y,b);for(b=0;b<x;b++)ne[b]===-1&&(ne[b]=E[b].column),z[b]===-1&&(z[b]=E[b].column);for(var ie=!0,se;ie;)for(ie=!1,b=0;b<x-1;b++)(z[b+1]<z[b]||z[b+1]===z[b]&&ne[b+1]<ne[b])&&(ie=!0,se=z[b],z[b]=z[b+1],z[b+1]=se,se=ne[b],ne[b]=ne[b+1],ne[b+1]=se,se=E[b],E[b]=E[b+1],E[b+1]=se);for(b=z=0;b<x;b++)se=E[b],se.index=b,z+=a.nodeMinColumnSpace(se,!0),se.column=z,z+=1,z+=a.nodeMinColumnSpace(se,!1);pf(a,y,E)}function Tc(a,y,b){var E=ff(a,y),x=a.tc[y];b=X1(a,y,b);var z,ne=[];for(z=0;z<x;z++)ne[z]=-1;var ie=[];for(z=0;z<x;z++)ie[z]=-1;for(var se=!1,de=!0;de;)for(de=!1,z=0;z<x-1;z++){var pe=b[E[z].index*x+E[z+1].index],Se=b[E[z+1].index*x+E[z].index],Ne=0,Oe=0,He=E[z].column,Je=E[z+1].column,xt=a.nodeMinColumnSpace(E[z],!0),yt=a.nodeMinColumnSpace(E[z],!1),Rt=a.nodeMinColumnSpace(E[z+1],!0),Bt=a.nodeMinColumnSpace(E[z+1],!1);xt=He-xt+Rt,yt=Je-yt+Bt;var Gt=E[z].sourceEdges.iterator;for(Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.fromVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt<z&&(Ne+=2*(z-Rt),Oe+=2*(z+1-Rt)),Rt===z+1&&(Ne+=1),Rt>z+1&&(Ne+=4*(Rt-z),Oe+=4*(Rt-(z+1)))}for(Gt=E[z].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.toVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt===z+1&&(Oe+=1)}for(Gt=E[z+1].sourceEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.fromVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt<z&&(Ne+=2*(z+1-Rt),Oe+=2*(z-Rt)),Rt===z&&(Oe+=1),Rt>z+1&&(Ne+=4*(Rt-(z+1)),Oe+=4*(Rt-z))}for(Gt=E[z+1].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.toVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt===z&&(Ne+=1)}Rt=Bt=0,Gt=ne[E[z].index];var $t=ie[E[z].index],In=ne[E[z+1].index],qr=ie[E[z+1].index];Gt!==-1&&(Bt+=Math.abs(Gt-He),Rt+=Math.abs(Gt-yt)),$t!==-1&&(Bt+=Math.abs($t-He),Rt+=Math.abs($t-yt)),In!==-1&&(Bt+=Math.abs(In-Je),Rt+=Math.abs(In-xt)),qr!==-1&&(Bt+=Math.abs(qr-Je),Rt+=Math.abs(qr-xt)),(Oe<Ne-.5||Oe===Ne&&Se<pe-.5||Oe===Ne&&Se===pe&&Rt<Bt-.5)&&(de=se=!0,E[z].column=yt,E[z+1].column=xt,pe=E[z],E[z]=E[z+1],E[z+1]=pe)}for(z=0;z<x;z++)E[z].index=z;return pf(a,y,E),se}qo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&FE)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var b=[];for(y=0;y<=this.Ia;y++)b[y]=0;for(var E,x=this.network.vertexes.iterator;x.next();){var z=x.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),b[y]=Math.max(b[y],E+z)}for(x.reset();x.next();)z=x.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-b[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(b=!0;b;){for(b=!1,y=this.Md+1;y<=this.Ia;y++)b=Ag(this,y,1)||b;for(y=this.Md-1;0<=y;y--)b=Ag(this,y,-1)||b;b=Ag(this,this.Md,0)||b}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Iy(this,y,1);for(y=this.Md-1;0<=y;y--)Iy(this,y,-1);Iy(this,this.Md,0)}if(a&&(Rb(this,-1),Rb(this,1)),this.bg&2)for(b=!0;b;){for(b=!1,b=Ag(this,this.Md,0)||b,y=this.Md+1;y<=this.Ia;y++)b=Ag(this,y,0)||b;for(y=this.Md-1;0<=y;y--)b=Ag(this,y,0)||b}}else DE(this)};function Ag(a,y,b){for(var E=!1;LE(a,y,b);)E=!0;return E}function LE(a,y,b){var E,x=ff(a,y),z=a.tc[y],ne=Ny(a,y,-1);if(0<b)for(E=0;E<z;E++)ne[E]=-1;var ie=Ny(a,y,1);if(0>b)for(E=0;E<z;E++)ie[E]=-1;for(var se=!1,de=!0;de;)for(de=!1,E=0;E<z;E++){var pe=x[E].column,Se=a.nodeMinColumnSpace(x[E],!0),Ne=a.nodeMinColumnSpace(x[E],!1),Oe=0;0>E-1||pe-x[E-1].column-1>Se+a.nodeMinColumnSpace(x[E-1],!1)?Oe=pe-1:Oe=pe,Se=E+1>=z||x[E+1].column-pe-1>Ne+a.nodeMinColumnSpace(x[E+1],!0)?pe+1:pe;var He=Ne=0,Je=0;if(0>=b)for(var xt=x[E].sourceEdges.iterator;xt.next();){var yt=xt.value,Rt=yt.fromVertex;if(yt.valid&&Rt.layer!==y){var Bt=Ay(yt),Gt=yt.portFromColOffset;yt=yt.portToColOffset,Rt=Rt.column,Ne+=(Math.abs(pe+yt-(Rt+Gt))+1)*Bt,He+=(Math.abs(Oe+yt-(Rt+Gt))+1)*Bt,Je+=(Math.abs(Se+yt-(Rt+Gt))+1)*Bt}}if(0<=b)for(xt=x[E].destinationEdges.iterator;xt.next();)yt=xt.value,Rt=yt.toVertex,yt.valid&&Rt.layer!==y&&(Bt=Ay(yt),Gt=yt.portFromColOffset,yt=yt.portToColOffset,Rt=Rt.column,Ne+=(Math.abs(pe+Gt-(Rt+yt))+1)*Bt,He+=(Math.abs(Oe+Gt-(Rt+yt))+1)*Bt,Je+=(Math.abs(Se+Gt-(Rt+yt))+1)*Bt);yt=Gt=Bt=0,xt=ne[x[E].index],Rt=ie[x[E].index],xt!==-1&&(Bt+=Math.abs(xt-pe),Gt+=Math.abs(xt-Oe),yt+=Math.abs(xt-Se)),Rt!==-1&&(Bt+=Math.abs(Rt-pe),Gt+=Math.abs(Rt-Oe),yt+=Math.abs(Rt-Se)),He<Ne||He===Ne&&Gt<Bt?(de=se=!0,x[E].column=Oe):(Je<Ne||Je===Ne&&yt<Bt)&&(de=se=!0,x[E].column=Se)}return pf(a,y,x),a.normalize(),se}function Iy(a,y,b){var E=ff(a,y),x=a.tc[y],z=Q1(a,y,b),ne=[];for(b=0;b<x;b++)ne[b]=z[b];for(z=!0;z;)for(z=!1,b=0;b<x;b++){var ie=E[b].column,se=a.nodeMinColumnSpace(E[b],!0),de=a.nodeMinColumnSpace(E[b],!1),pe=0;if(ne[b]===-1)if(b===0&&b===x-1)pe=ie;else if(b===0){var Se=E[b+1].column;Se-ie===de+a.nodeMinColumnSpace(E[b+1],!0)?pe=ie-1:pe=ie}else b===x-1?(Se=E[b-1].column,pe=ie-Se===se+a.nodeMinColumnSpace(E[b-1],!1)?ie+1:ie):(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,pe=(se+de)/2|0);else b===0&&b===x-1?pe=ne[b]:b===0?(Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,pe=Math.min(ne[b],de)):b===x-1?(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,pe=Math.max(ne[b],se)):(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,se<ne[b]&&ne[b]<de?pe=ne[b]:se>=ne[b]?pe=se:de<=ne[b]&&(pe=de));pe!==ie&&(z=!0,E[b].column=pe)}pf(a,y,E),a.normalize()}function kE(a,y){for(var b=!0,E=a.network.vertexes.iterator;E.next();){var x=E.value,z=a.nodeMinColumnSpace(x,!0),ne=a.nodeMinColumnSpace(x,!1);if(x.column-z<=y&&x.column+ne>=y){b=!1;break}}if(a=!1,b)for(E.reset();E.next();)b=E.value,b.column>y&&(--b.column,a=!0);return a}function IE(a,y){var b=y+1,E,x=[],z=[];for(E=0;E<=a.Ia;E++)x[E]=!1,z[E]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){E=ne.value;var ie=E.column-a.nodeMinColumnSpace(E,!0),se=E.column+a.nodeMinColumnSpace(E,!1);ie<=y&&se>=y&&(x[E.layer]=!0),ie<=b&&se>=b&&(z[E.layer]=!0)}for(ie=!0,b=!1,E=0;E<=a.Ia;E++)ie=ie&&!(x[E]&&z[E]);if(ie)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,b=!0);return b}function Rb(a,y){for(var b=0;b<=a.Ra;b++)for(;kE(a,b););for(a.normalize(),b=0;b<a.Ra;b++)for(;IE(a,b););a.normalize();var E;if(0<y)for(b=0;b<=a.Ra;b++){var x=bu(a),z=X0(a);for(E=z+1;z<E;){E=z,Mb(a,b,1);var ne=X0(a);ne>z?vc(a,x):ne<z&&(z=ne,x=bu(a))}}if(0>y)for(b=a.Ra;0<=b;b--)for(x=bu(a),z=X0(a),E=z+1;z<E;)E=z,Mb(a,b,-1),ne=X0(a),ne>z?vc(a,x):ne<z&&(z=ne,x=bu(a));a.normalize()}function Mb(a,y,b){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<b)for(E.reset();E.next();){var x=E.value;x.column-a.nodeMinColumnSpace(x,!0)<=y&&(x.component=a.le)}if(0>b)for(E.reset();E.next();)x=E.value,x.column+a.nodeMinColumnSpace(x,!1)>=y&&(x.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(Ly(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(x=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)x[z]=-1;for(E.reset();E.next();){z=E.value;for(var ne=z.layer,ie=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),se=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ie<=se;ie++)x[ne*(a.Ra+1)+ie]=z.component}for(z=0;z<=a.Ia;z++){if(0<b)for(ne=0;ne<a.Ra;ne++)x[z*(a.Ra+1)+ne]!==-1&&x[z*(a.Ra+1)+ne+1]!==-1&&x[z*(a.Ra+1)+ne]!==x[z*(a.Ra+1)+ne+1]&&(y[x[z*(a.Ra+1)+ne]*a.le+x[z*(a.Ra+1)+ne+1]]=!0);if(0>b)for(ne=a.Ra;0<ne;ne--)x[z*(a.Ra+1)+ne]!==-1&&x[z*(a.Ra+1)+ne-1]!==-1&&x[z*(a.Ra+1)+ne]!==x[z*(a.Ra+1)+ne-1]&&(y[x[z*(a.Ra+1)+ne]*a.le+x[z*(a.Ra+1)+ne-1]]=!0)}for(x=[],z=0;z<a.le;z++)x[z]=!0;for(ne=[],ne.push(0);ne.length!==0;)if(se=ne[ne.length-1],ne.pop(),x[se])for(x[se]=!1,z=0;z<a.le;z++)y[se*a.le+z]&&ne.splice(0,0,z);if(0<b)for(E.reset();E.next();)a=E.value,x[a.component]&&--a.column;if(0>b)for(E.reset();E.next();)b=E.value,x[b.component]&&(b.column+=1)}function DE(a){for(var y=Jr(),b=a.fl.length,E=0;E<=b;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var x=E.value;y[b-x.layer][x.index]=x}b=new ur,RE(y,b);var z=null,ne=null,ie=null,se=null,de=(a.ve&1)!==0,pe=(a.ve&2)!==0,Se=(a.ve&4)!==0,Ne=(a.ve&8)!==0;for(de&&(a.verticalAlignment(y,b,!0),z=J0(a,y,!0,!1)),y.reverse(),Se&&(a.verticalAlignment(y,b,!1),ie=J0(a,y,!1,!1)),E=Pr(y),x=E.next();!x.done;x=E.next())x.value.reverse();Ne&&(a.verticalAlignment(y,b,!1),se=J0(a,y,!1,!0)),y.reverse(),pe&&(a.verticalAlignment(y,b,!0),ne=J0(a,y,!0,!0)),Hr(y),a.u(z,ne,ie,se),a.network.vertexes.each(function(Oe){var He=Jr();de&&He.push(z.get(Oe)),pe&&He.push(ne.get(Oe)),Se&&He.push(ie.get(Oe)),Ne&&He.push(se.get(Oe)),He.sort(function(xt,yt){return xt-yt});var Je=He.length;Je=(He[Math.floor((Je-1)/2)]+He[Math.ceil((Je-1)/2)])/2,Hr(He),Oe.zc=Je})}function RE(a,y){for(var b=a.length,E=1;E<b-1;E++)for(var x=0,z=0,ne=a[E],ie=a[E+1],se=0;z<ie.length;se++){var de=ie[se];e:{if(de.node===null){var pe=Uy(de);if(0<pe.length){pe=pe[0].node===null;break e}}pe=!1}var Se=pe;if(se===ie.length-1||Se){for(pe=ne.length-1,Se&&(pe=Uy(de)[0].index);z<=se;){if(de=ie[z],!de.bo){Se=[];for(var Ne=Pr(de.sourceEdgesArrayAccess),Oe=Ne.next();!Oe.done;Oe=Ne.next())Oe=Oe.value,Oe.valid&&Se.push(Oe);de.bo=Se}for(de=Pr(de.bo),Se=de.next();!Se.done;Se=de.next())Se=Se.value,Ne=Se.fromVertex.index,(Ne<x||Ne>pe)&&y.add(Se);z++}x=pe}}}qo.prototype.verticalAlignment=function(a,y,b){ME(a),a=Pr(a);for(var E=a.next();!E.done;E=a.next()){var x=-1;E=Pr(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ne=b?Uy(z):BE(z),ie=ne.length;if(0<ie){ne.sort(function(Se,Ne){return Se.vi-Ne.vi});var se=(ie-1)/2;for(ie=Math.floor(se),se=Math.ceil(se);ie<=se;ie++)if(z.align===z){var de=ne[ie],pe=void 0;pe=b?rv(de,z):rv(z,de),!y.contains(pe)&&x<de.vi&&(de.align=z,z.root=de.root,z.align=de.root,x=de.vi)}}}}};function ME(a){for(var y=0;y<a.length;y++)for(var b=a[y],E=0;E<b.length;E++){var x=b[E];x.root=x,x.align=x,x.Tz=y,x.vi=E}}function J0(a,y,b,E){for(var x=a.K===90||a.K===270,z=Pr(y),ne=z.next();!ne.done;ne=z.next()){var ie=Pr(ne.value);for(ne=ie.next();!ne.done;ne=ie.next())ne=ne.value,ne.sd=ne,ne.shift=1/0,ne.zc=NaN,ne.qg=0}for(ne=a.K===90||a.K===270,z=Pr(y),ie=z.next();!ie.done;ie=z.next()){ie=Pr(ie.value);for(var se=ie.next();!se.done;se=ie.next())if(se=se.value,se.root===se){for(var de=0,pe=se;pe.align!==se;){var Se=pe.align,Ne=ne?pe.width:pe.height,Oe=ne?Se.width:Se.height;if(b){var He=rv(pe,Se),Je=He.portFromPos,xt=He.portToPos;He.link!==null&&(pe.node&&pe.node!==He.link.fromNode&&(Je=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==He.link.toNode&&(xt=ne?Se.focusX:Se.focusY))}else He=rv(Se,pe),Je=He.portToPos,xt=He.portFromPos,He.link!==null&&(pe.node&&pe.node!==He.link.toNode&&(Je=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==He.link.fromNode&&(xt=ne?Se.focusX:Se.focusY));Ne=E?pe.qg+(Ne-Je)-(Oe-xt):pe.qg+Je-xt,Se.qg=Ne,de=Math.min(de,Ne),pe=pe.align}pe=se;do pe.qg=pe.qg-de,pe=pe.align;while(pe!==se)}}for(b=Pr(y),ne=b.next();!ne.done;ne=b.next())for(z=Pr(ne.value),ne=z.next();!ne.done;ne=z.next())ne=ne.value,ne.root===ne&&Ob(a,ne,y);for(b=0;b<y.length;b++)if(!(0>=y[b].length)&&(ne=y[b][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=b,ie=0;do{for(z=y[ne][ie];z.align!==z.root;)z=z.align,ne++,0<z.vi&&(ie=_b(z,y),ie.sd.shift=Math.min(ie.sd.shift,z.sd.shift+z.zc+z.qg-(ie.zc+ie.qg+(x?ie.width:ie.height)+a.columnSpacing)));ie=z.vi+1}while(ne<y.length&&ie<y[ne].length&&z.sd===y[ne][ie].sd)}for(a=new Rn,y=Pr(y),ne=y.next();!ne.done;ne=y.next())for(b=Pr(ne.value),ne=b.next();!ne.done;ne=b.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,z=x?ne.width:ne.height,a.add(ne,E?-ne.zc-z:ne.zc);return a}function Ob(a,y,b){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var x=_b(E,b),z=x.root;Ob(a,z,b),y.sd===y&&(y.sd=z.sd);var ne=a.K===90||a.K===270?x.width:x.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+x.qg+ne-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function _b(a,y){var b=a.Tz;return a=a.vi,1>a&&kt("Could not determine previous vertex in layer"),y[b][a-1]}qo.prototype.u=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];b=-1;for(var E=Jr(),x=Jr(),z=1/0,ne=0;4>ne;ne++)if(y[ne]){var ie=OE(this,y[ne],E,x,ne);ie<z&&(b=ne,z=ie)}for(z={},ne=0;4>ne;z={delta:z.delta},ne++)y[ne]&&(z.delta=ne===0||ne===2?E[b]-E[ne]:x[b]-x[ne],z.delta!==0&&y[ne].each(function(se){return function(de){de.value+=se.delta}}(z)));Hr(E),Hr(x)};function OE(a,y,b,E,x){if(!y||y.count===0)return b[x]=0,E[x]=0,1/0;var z=1/0,ne=-1/0;return y.each(function(ie){var se=ie.key;ie=ie.value,se=a.K===90||a.K===270?se.width:se.height,ie<z&&(z=ie),ie+se>ne&&(ne=ie+se)}),b[x]=z,E[x]=ne,ne-z}qo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=q0(this,!0),y=q0(this,!1),b=this.network.edges.iterator;b.next();){var E=b.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function q0(a,y){return a.K===270?y?Is:vs:a.K===90?y?vs:Is:a.K===180?y?js:hs:y?hs:js}qo.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,b=y.layer;this.he[b]=Math.max(this.he[b],this.nodeMinLayerSpace(y,!0)),this.Ld[b]=Math.max(this.Ld[b],this.nodeMinLayerSpace(y,!1))}y=0,b=this.ie;for(var E=0;E<=this.Ia;E++){var x=b;0>=this.he[E]+this.Ld[E]&&(x=0),0<E&&(y+=x/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=x/2),this.Ta[E]=y}for(b=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+b-this.Kd[E],this.Ta[E]=b-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+b-this.Kd[E],this.Ta[E]=b-this.Ta[E]);b=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ne=x=1/0,ie=-1/0;a.next();){var se=a.value,de=se.layer,pe=se.column|0;E?(ne=y.x+this.kc*pe,de=this.Kd[de]):(ne=this.Kd[de],de=y.y+this.kc*pe),se.centerX=ne,se.centerY=de,b&&isFinite(se.zc)&&(E?se.node?se.x=y.x+se.zc:se.centerX=y.x+se.zc:se.node?se.y=y.y+se.zc:se.centerY=y.y+se.zc),z=Math.min(se.x,z),x=Math.min(se.y,x),E?(ne=z,ie=Math.max(ie,se.bounds.right)):(ne=x,ie=Math.max(ie,se.bounds.bottom))}for(this.xw=ie-ne,z=y.x-z,y=y.y-x,this.Rf=new rt(b&&E?0:z,b&&!E?0:y),a.reset();a.next();)b=a.value,b.x+=z,b.y+=y,b.commit()},qo.prototype.Gu=function(){for(var a=0,y=this.ie,b=0;b<=this.Ia;b++)a+=this.he[b],a+=this.Ld[b];a+=this.Ia*y,y=[],b=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new An(0,0,b,Math.abs(this.Ta[0]))):y.push(new An(0,this.Ta[E-1],b,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new An(0,this.Ta[0],b,Math.abs(this.Ta[0]-a))):y.push(new An(0,this.Ta[E],b,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new An(0,0,Math.abs(this.Ta[0]),b)):y.push(new An(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),b)):E===0?y.push(new An(this.Ta[0],0,Math.abs(this.Ta[0]-a),b)):y.push(new An(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),b));this.commitLayers(y,this.Rf)},qo.prototype.commitLayers=function(){},qo.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 b=a.value;if(y=b.link,y!==null){y.uh();var E=y,x=E.fromNode,z=E.toNode,ne=E.fromPort,ie=E.toPort;if(x!==null){var se=x.findVisibleNode();se!==null&&se!==x&&(x=se,ne=se.port)}z!==null&&(se=z.findVisibleNode(),se!==null&&se!==z&&(z=se,ie=se.port));var de=y.computeSpot(!0,ne);se=y.computeSpot(!1,ie);var pe=b.fromVertex,Se=b.toVertex;if(b.valid)y.curve===ic&&y.pointsCount===4&&(pe.column===Se.column&&this.alignOption===0?(b=y.getLinkPoint(x,ne,de,!0,!1,z,ie),ie=y.getLinkPoint(z,ie,se,!1,!1,x,ne),b.w()||b.set(x.actualBounds.center),ie.w()||ie.set(z.actualBounds.center),y.Fj(),y.yf(b.x,b.y),y.yf((2*b.x+ie.x)/3,(2*b.y+ie.y)/3),y.yf((b.x+2*ie.x)/3,(b.y+2*ie.y)/3),y.yf(ie.x,ie.y)):(b=E=!1,ne!==null&&de===to&&(E=!0),ie!==null&&se===to&&(b=!0),(E||b)&&(se=null,E&&(se=y.getLinkPointFromPoint(x,ne,ne.ga(uo),y.i(3),!0),se.w()||se.set(x.actualBounds.center),y.L(0,se.x,se.y)),x=null,b&&(x=y.getLinkPointFromPoint(z,ie,ie.ga(uo),y.i(0),!1),x.w()||x.set(z.actualBounds.center),y.L(3,x.x,x.y)),se&&(z=y.i(2),y.L(1,(2*se.x+z.x)/3,(2*se.y+z.y)/3)),x&&(z=y.i(1),y.L(2,(2*x.x+z.x)/3,(2*x.y+z.y)/3))))),y.zf();else if(pe.layer===Se.layer)y.zf();else{var Ne=!1,Oe=!1,He=this.ie,Je=y.firstPickIndex+1;if(y.isOrthogonal){Oe=!0;var xt=y.pointsCount;4<xt&&y.points.removeRange(2,xt-3)}else if(y.curve===ic)Ne=!0,xt=y.pointsCount,4<xt&&y.points.removeRange(2,xt-3),xt===4&&(Je=2);else{xt=y.pointsCount;var yt=de===to,Rt=se===to;2<xt&&yt&&Rt?y.points.removeRange(1,xt-2):3<xt&&yt&&!Rt?y.points.removeRange(1,xt-3):3<xt&&!yt&&Rt?y.points.removeRange(2,xt-2):4<xt&&!yt&&!Rt&&y.points.removeRange(2,xt-3)}if(b.rev){for(;Se!==null&&pe!==Se;){var Bt=xt=null;for(yt=Se.sourceEdges.iterator;yt.next()&&(Rt=yt.value,Rt.link!==b.link||(xt=Rt.fromVertex,Bt=Rt.toVertex,xt.node!==null)););if(xt===null)break;if(xt!==pe){yt=y.i(Je-1).x,Rt=y.i(Je-1).y;var Gt=xt.centerX,$t=xt.centerY;if(Oe)this.K===180||this.K===0?Je===y.firstPickIndex+1?(y.m(Je++,yt,Rt),y.m(Je++,yt,$t)):(Bt!==null?Bt.centerY:Rt)!==$t&&(Bt=this.Ta[xt.layer-1]+this.Rf.x,y.m(Je++,Bt,Rt),y.m(Je++,Bt,$t)):Je===y.firstPickIndex+1?(y.m(Je++,yt,Rt),y.m(Je++,Gt,Rt)):(Bt!==null?Bt.centerX:yt)!==Gt&&(Bt=this.Ta[xt.layer-1]+this.Rf.y,y.m(Je++,yt,Bt),y.m(Je++,Gt,Bt));else if(Je===y.firstPickIndex+1){Bt=Math.max(10,this.he[Se.layer]);var In=Math.max(10,this.Ld[Se.layer]);if(Ne)this.K===180?Gt<=Se.bounds.x?(Se=Se.bounds.x,y.m(Je++,Se-Bt,$t),y.m(Je++,Se,$t),y.m(Je++,Se+In,$t)):(y.m(Je++,Gt-Bt,$t),y.m(Je++,Gt,$t),y.m(Je++,Gt+In,$t)):this.K===90?$t>=Se.bounds.bottom?(Se=Se.bounds.y+Se.bounds.height,y.m(Je++,Gt,Se+In),y.m(Je++,Gt,Se),y.m(Je++,Gt,Se-Bt)):(y.m(Je++,Gt,$t+In),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t-Bt)):this.K===270?$t<=Se.bounds.y?(Se=Se.bounds.y,y.m(Je++,Gt,Se-Bt),y.m(Je++,Gt,Se),y.m(Je++,Gt,Se+In)):(y.m(Je++,Gt,$t-Bt),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t+In)):this.K===0&&(Gt>=Se.bounds.right?(Se=Se.bounds.x+Se.bounds.width,y.m(Je++,Se+In,$t),y.m(Je++,Se,$t),y.m(Je++,Se-Bt,$t)):(y.m(Je++,Gt+In,$t),y.m(Je++,Gt,$t),y.m(Je++,Gt-Bt,$t)));else{y.m(Je++,yt,Rt);var qr=0;this.K===180||this.K===0?((this.K===180?Gt>=Se.bounds.right:Gt<=Se.bounds.x)&&(qr=(this.K===0?-Bt:In)/2),y.m(Je++,yt+qr,$t)):((this.K===270?$t>=Se.bounds.bottom:$t<=Se.bounds.y)&&(qr=(this.K===90?-Bt:In)/2),y.m(Je++,Gt,Rt+qr)),y.m(Je++,Gt,$t)}}else Bt=Math.max(10,this.he[xt.layer]),In=Math.max(10,this.Ld[xt.layer]),Ne?this.K===180?(y.m(Je++,Gt-Bt-He,$t),y.m(Je++,Math.min(Gt-Bt+He/2,Gt),$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Math.max(Gt+In-He/2,Gt),$t),y.m(Je++,Gt+In+He,$t)):this.K===90?(y.m(Je++,Gt,$t+In+He),y.m(Je++,Gt,Math.max($t+In-He/2,$t)),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,Math.min($t-Bt+He/2,$t)),y.m(Je++,Gt,$t-Bt-He)):this.K===270?(y.m(Je++,Gt,$t-Bt-He),y.m(Je++,Gt,Math.min($t-Bt+He/2,$t)),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,Math.max($t+In-He/2,$t)),y.m(Je++,Gt,$t+In+He)):(y.m(Je++,Gt+In+He,$t),y.m(Je++,Math.max(Gt+In-He/2,Gt),$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Math.min(Gt-Bt+He/2,Gt),$t),y.m(Je++,Gt-Bt-He,$t)):y.m(Je++,Gt,$t)}Se=xt}(ie===null||de!==to||Oe)&&(yt=y.i(Je-1).x,Rt=y.i(Je-1).y,Gt=y.i(Je).x,$t=y.i(Je).y,Oe?(He=this.Ld[pe.layer],this.K===180||this.K===0?(Oe=Rt,Oe>=pe.bounds.y&&Oe<=pe.bounds.bottom&&(this.K===180?Gt>=pe.bounds.x:Gt<=pe.bounds.right)&&(Se=pe.centerX+(this.K===180?-He:He),Oe<pe.bounds.y+pe.bounds.height/2?Oe=pe.bounds.y-this.kc/2:Oe=pe.bounds.bottom+this.kc/2,y.m(Je++,Se,Rt),y.m(Je++,Se,Oe)),y.m(Je++,Gt,Oe)):(Oe=yt,Oe>=pe.bounds.x&&Oe<=pe.bounds.right&&(this.K===270?$t>=pe.bounds.y:$t<=pe.bounds.bottom)&&(Se=pe.centerY+(this.K===270?-He:He),Oe<pe.bounds.x+pe.bounds.width/2?Oe=pe.bounds.x-this.kc/2:Oe=pe.bounds.right+this.kc/2,y.m(Je++,yt,Se),y.m(Je++,Oe,Se)),y.m(Je++,Oe,$t)),y.m(Je++,Gt,$t)):Ne?(Bt=Math.max(10,this.he[pe.layer]),In=Math.max(10,this.Ld[pe.layer]),this.K===180&&Gt>=pe.bounds.x?(Se=pe.bounds.x+pe.bounds.width,y.L(Je-2,Se,Rt),y.L(Je-1,Se+In,Rt)):this.K===90&&$t<=pe.bounds.bottom?(Se=pe.bounds.y,y.L(Je-2,yt,Se),y.L(Je-1,yt,Se-Bt)):this.K===270&&$t>=pe.bounds.y?(Se=pe.bounds.y+pe.bounds.height,y.L(Je-2,yt,Se),y.L(Je-1,yt,Se+In)):this.K===0&&Gt<=pe.bounds.right&&(Se=pe.bounds.x,y.L(Je-2,Se,Rt),y.L(Je-1,Se-Bt,Rt))):(Bt=Math.max(10,this.he[pe.layer]),In=Math.max(10,this.Ld[pe.layer]),Oe=0,this.K===180||this.K===0?((this.K===180?Gt<=pe.bounds.x:Gt>=pe.bounds.right)&&(Oe=(this.K===0?In:-Bt)/2),y.m(Je++,Gt+Oe,Rt)):((this.K===270?$t<=pe.bounds.y:$t>=pe.bounds.bottom)&&(Oe=(this.K===90?In:-Bt)/2),y.m(Je++,yt,$t+Oe)),y.m(Je++,Gt,$t)))}else{for(;pe!==null&&pe!==Se;){for(Bt=xt=null,pe=pe.destinationEdges.iterator;pe.next()&&(yt=pe.value,yt.link!==b.link||(xt=yt.toVertex,Bt=yt.fromVertex,Bt.node!==null&&(Bt=null),xt.node!==null)););if(xt===null)break;xt!==Se&&(yt=y.i(Je-1).x,Rt=y.i(Je-1).y,Gt=xt.centerX,$t=xt.centerY,Oe?this.K===180||this.K===0?(Bt!==null?Bt.centerY:Rt)!==$t&&(Bt=this.Ta[xt.layer]+this.Rf.x,Je===y.firstPickIndex+1&&(Bt=this.K===0?Math.max(Bt,yt):Math.min(Bt,yt)),y.m(Je++,Bt,Rt),y.m(Je++,Bt,$t)):(Bt!==null?Bt.centerX:yt)!==Gt&&(Bt=this.Ta[xt.layer]+this.Rf.y,Je===y.firstPickIndex+1&&(Bt=this.K===90?Math.max(Bt,Rt):Math.min(Bt,Rt)),y.m(Je++,yt,Bt),y.m(Je++,Gt,Bt)):(Bt=Math.max(10,this.he[xt.layer]),In=Math.max(10,this.Ld[xt.layer]),Ne?this.K===180?(y.m(Je++,Gt+In+He,$t),y.m(Je++,Math.max(Gt+In-He/2,Gt),$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Math.min(Gt-Bt+He/2,Gt),$t),y.m(Je++,Gt-Bt-He,$t)):this.K===90?(y.m(Je++,Gt,$t-Bt-He),y.m(Je++,Gt,Math.min($t-Bt+He/2,$t)),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,Math.max($t+In-He/2,$t)),y.m(Je++,Gt,$t+In+He)):this.K===270?(y.m(Je++,Gt,$t+In+He),y.m(Je++,Gt,Math.max($t+In-He/2,$t)),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,Math.min($t-Bt+He/2,$t)),y.m(Je++,Gt,$t-Bt-He)):(y.m(Je++,Gt-Bt-He,$t),y.m(Je++,Math.min(Gt-Bt+He/2,Gt),$t),y.m(Je++,Gt,$t),y.m(Je++,Gt,$t),y.m(Je++,Math.max(Gt+In-He/2,Gt),$t),y.m(Je++,Gt+In+He,$t)):this.K===180?(y.m(Je++,Gt+In,$t),y.m(Je++,Gt-Bt,$t)):this.K===90?(y.m(Je++,Gt,$t-Bt),y.m(Je++,Gt,$t+In)):this.K===270?(y.m(Je++,Gt,$t+In),y.m(Je++,Gt,$t-Bt)):(y.m(Je++,Gt-Bt,$t),y.m(Je++,Gt+In,$t)))),pe=xt}Oe&&(yt=y.i(Je-1).x,Rt=y.i(Je-1).y,Gt=y.i(Je).x,$t=y.i(Je).y,this.K===180||this.K===0?Rt!==$t&&(Bt=this.K===0?Math.min(Math.max((Gt+yt)/2,this.Ta[Se.layer]+this.Rf.x),Gt):Math.max(Math.min((Gt+yt)/2,this.Ta[Se.layer]+this.Rf.x),Gt),y.m(Je++,Bt,Rt),y.m(Je++,Bt,$t)):yt!==Gt&&(Bt=this.K===90?Math.min(Math.max(($t+Rt)/2,this.Ta[Se.layer]+this.Rf.y),$t):Math.max(Math.min(($t+Rt)/2,this.Ta[Se.layer]+this.Rf.y),$t),y.m(Je++,yt,Bt),y.m(Je++,Gt,Bt)))}E!==null&&Ne&&4<=y.pointsCount&&(ne!==null&&(ne=de===to?y.getLinkPointFromPoint(x,ne,ne.ga(uo),y.i(3),!0):y.i(0),de===to&&(de=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+de.x)/2,de.y),y.L(2,E.x,(de.y+E.y)/2)):(y.L(1,de.x,(ne.y+de.y)/2),y.L(2,(de.x+E.x)/2,E.y))),ne.w()||ne.set(x.actualBounds.center),y.L(0,ne.x,ne.y)),ie!==null&&(x=se===to?y.getLinkPointFromPoint(z,ie,ie.ga(uo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),se===to&&(ie=y.i(y.pointsCount-3),se=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(x.x+ie.x)/2,ie.y),y.L(y.pointsCount-2,se.x,(ie.y+se.y)/2)):(y.L(y.pointsCount-2,ie.x,(x.y+ie.y)/2),y.L(y.pointsCount-3,(ie.x+se.x)/2,se.y))),x.w()||x.set(z.actualBounds.center),y.L(y.pointsCount-1,x.x,x.y))),y.zf(),b.commit()}}}this.avoidOrthogonalOverlaps()},qo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new rr,y=this.network.edges.iterator;y.next();){var b=y.value.link;b!==null&&b.isOrthogonal&&!a.contains(b)&&a.add(b)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,b=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var x=2;x<E.pointsCount-3;x++){var z=E.i(x),ne=E.i(x+1);if(this.B(z.y,ne.y)&&!this.B(z.x,ne.x)){var ie=new gf;ie.layer=Math.floor(z.y/2);var se=E.i(0),de=E.i(E.pointsCount-1);if(ie.first=se.x*se.x+se.y,ie.jc=de.x*de.x+de.y,ie.rd=Math.min(z.x,ne.x),ie.Ic=Math.max(z.x,ne.x),ie.index=x,ie.link=E,x+2<E.pointsCount){se=E.i(x-1),de=E.i(x+2);var pe=0;se.y<z.y?pe=de.y<z.y?3:z.x<ne.x?2:1:se.y>z.y&&(pe=de.y>z.y?0:ne.x<z.x?2:1),ie.j=pe}b.push(ie)}}}if(1<b.length)for(b.sort(this.Vx),a=0;a<b.length;){for(z=b[a].layer,E=a+1;E<b.length&&b[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ne=b[z].Ic,x=a+1;x<E&&b[x].rd<ne;)ne=Math.max(ne,b[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(b,this.Js,z,z+ne),pe=1,ie=b[z].jc,se=z;se<x;se++)de=b[se],de.jc!==ie&&(pe++,ie=de.jc);this.zi(b,this.Ux,z,z+ne);var Se=1;for(ie=b[z].first,se=z;se<x;se++)de=b[se],de.first!==ie&&(Se++,ie=de.first);for(se=!0,de=Se,pe<Se?(se=!1,de=pe,ie=b[z].jc,this.zi(b,this.Js,z,z+ne)):ie=b[z].first,pe=0,Se=z;Se<x;Se++){var Ne=b[Se];(se?Ne.first:Ne.jc)!==ie&&(pe++,ie=se?Ne.first:Ne.jc);var Oe=Ne.link;z=Oe.i(Ne.index),ne=Oe.i(Ne.index+1);var He=this.linkSpacing*(pe-(de-1)/2);y++,Oe.uh(),Oe.L(Ne.index,z.x,z.y+He),Oe.L(Ne.index+1,ne.x,ne.y+He),Oe.zf()}}z=x}a=E}}else{for(y=0,b=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(x=2;x<E.pointsCount-3;x++)z=E.i(x),ne=E.i(x+1),this.B(z.x,ne.x)&&!this.B(z.y,ne.y)&&(ie=new gf,ie.layer=Math.floor(z.x/2),se=E.i(0),de=E.i(E.pointsCount-1),ie.first=se.x+se.y*se.y,ie.jc=de.x+de.y*de.y,ie.rd=Math.min(z.y,ne.y),ie.Ic=Math.max(z.y,ne.y),ie.index=x,ie.link=E,x+2<E.pointsCount&&(se=E.i(x-1),de=E.i(x+2),pe=0,se.x<z.x?pe=de.x<z.x?3:z.y<ne.y?2:1:se.x>z.x&&(pe=de.x>z.x?0:ne.y<z.y?2:1),ie.j=pe),b.push(ie));if(1<b.length)for(b.sort(this.Vx),a=0;a<b.length;){for(z=b[a].layer,E=a+1;E<b.length&&b[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ne=b[z].Ic,x=a+1;x<E&&b[x].rd<ne;)ne=Math.max(ne,b[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(b,this.Js,z,z+ne),pe=1,ie=b[z].jc,se=z;se<x;se++)de=b[se],de.jc!==ie&&(pe++,ie=de.jc);for(this.zi(b,this.Ux,z,z+ne),Se=1,ie=b[z].first,se=z;se<x;se++)de=b[se],de.first!==ie&&(Se++,ie=de.first);for(se=!0,de=Se,pe<Se?(se=!1,de=pe,ie=b[z].jc,this.zi(b,this.Js,z,z+ne)):ie=b[z].first,pe=0,Se=z;Se<x;Se++)Ne=b[Se],(se?Ne.first:Ne.jc)!==ie&&(pe++,ie=se?Ne.first:Ne.jc),Oe=Ne.link,z=Oe.i(Ne.index),ne=Oe.i(Ne.index+1),He=this.linkSpacing*(pe-(de-1)/2),y++,Oe.uh(),Oe.L(Ne.index,z.x+He,z.y),Oe.L(Ne.index+1,ne.x+He,ne.y),Oe.zf()}z=x}a=E}}}},Me=qo.prototype,Me.Vx=function(a,y){return a instanceof gf&&y instanceof gf&&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},Me.Ux=function(a,y){return a instanceof gf&&y instanceof gf&&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},Me.Js=function(a,y){return a instanceof gf&&y instanceof gf&&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},Me.B=function(a,y){return a-=y,-1<a&&1>a},Me.zi=function(a,y,b,E){var x=a.length,z=E-b;if(!(1>=z))if((0>b||b>=x-1)&&kt("not in range 0 <= from < length: "+b),z===2)E=a[b],x=a[b+1],0<y(E,x)&&(a[b]=x,a[b+1]=E);else if(b===0)if(E>=x)a.sort(y);else for(b=a.slice(0,E),b.sort(y),y=0;y<E;y++)a[y]=b[y];else if(E>=x)for(E=a.slice(b),E.sort(y),y=b;y<x;y++)a[y]=E[y-b];else for(x=a.slice(b,E),x.sort(y),y=b;y<E;y++)a[y]=x[y-b]};function ff(a,y){var b=a.tc[y];if(b>=a.He.length){for(var E=[],x=0;x<a.He.length;x++)E[x]=a.He[x];a.He=E}for(a.He[b]===void 0||a.He[b]===null?E=[]:(E=a.He[b],a.He[b]=null),a=a.fl[y],y=0;y<a.length;y++)b=a[y],E[b.index]=b;return E}function pf(a,y,b){a.He[a.tc[y]]=b}un.Object.defineProperties(qo.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()):kt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Dy&&a!==$0&&a!==Cm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==ev&&a!==Ry&&a!==My||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==tv&&a!==Oy&&a!==Fy||(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!==By&&a!==nv&&a!==_y||(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 $0=new Ln(qo,"CycleDepthFirst",0),Dy=new Ln(qo,"CycleGreedy",1),Cm=new Ln(qo,"CycleFromLayers",2),ev=new Ln(qo,"LayerOptimalLinkLength",0),Ry=new Ln(qo,"LayerLongestPathSink",1),My=new Ln(qo,"LayerLongestPathSource",2),tv=new Ln(qo,"InitDepthFirstOut",0),Oy=new Ln(qo,"InitDepthFirstIn",1),Fy=new Ln(qo,"InitNaive",2),By=new Ln(qo,"AggressiveNone",0),nv=new Ln(qo,"AggressiveLess",1),_y=new Ln(qo,"AggressiveMore",2),FE=8;qo.className="LayeredDigraphLayout",qo.CycleDepthFirst=$0,qo.CycleGreedy=Dy,qo.CycleFromLayers=Cm,qo.LayerOptimalLinkLength=ev,qo.LayerLongestPathSink=Ry,qo.LayerLongestPathSource=My,qo.InitDepthFirstOut=tv,qo.InitDepthFirstIn=Oy,qo.InitNaive=Fy,qo.AggressiveNone=By,qo.AggressiveLess=nv,qo.AggressiveMore=_y,qo.PackNone=0,qo.PackExpand=1,qo.PackStraighten=2,qo.PackMedian=4,qo.PackAll=15,qo.AlignNone=0,qo.AlignUpperLeft=1,qo.AlignUpperRight=2,qo.AlignLowerLeft=4,qo.AlignLowerRight=8,qo.AlignAll=15;function gf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}gf.className="SegInfo";function Ng(a){va.call(this,a)}hn(Ng,va),Ng.prototype.createVertex=function(){return new yc(this)},Ng.prototype.createEdge=function(){return new Pm(this)},Ng.className="LayeredDigraphNetwork";function yc(a){ks.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}hn(yc,ks);function Ub(a,y){return a.index-y.index}function rv(a,y){if(!a.$n){for(var b=[],E=Pr(a.destinationEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&b.push(x);a.$n=b}for(a=Pr(a.$n),b=a.next();!b.done;b=a.next())if(b=b.value,b.toVertex===y)return b;kt("Unable to find destination edge to given vertex")}function Uy(a){if(!a.co){for(var y=[],b=Pr(a.sourceEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(Ub),a.co=y}return a.co}function BE(a){if(!a.ao){for(var y=[],b=Pr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(Ub),a.ao=y}return a.ao}yc.prototype.Cl=function(a){ks.prototype.Cl.call(this,a),this.bo=this.co=null},yc.prototype.Kl=function(a){ks.prototype.Kl.call(this,a),this.bo=this.co=null},yc.prototype.zl=function(a){ks.prototype.zl.call(this,a),this.$n=this.ao=null},yc.prototype.Jl=function(a){ks.prototype.Jl.call(this,a),this.$n=this.ao=null},un.Object.defineProperties(yc.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)}}}),yc.prototype.deleteDestinationEdge=yc.prototype.Jl,yc.prototype.addDestinationEdge=yc.prototype.zl,yc.prototype.deleteSourceEdge=yc.prototype.Kl,yc.prototype.addSourceEdge=yc.prototype.Cl,yc.className="LayeredDigraphVertex";function Pm(a){zu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}hn(Pm,zu),un.Object.defineProperties(Pm.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)}}}),Pm.className="LayeredDigraphEdge";function fo(a){Na.call(this),this.Ub=new ur,this.Wn=sv,this.ud=Fd,this.vo=uv,this.Bq=Qy,this.$v=[],this.td=!0,this.Rb=cv,this.$d=new cn(10,10).freeze();var y=new _p(this);this.W=new Ac(y),this.Y=new Ac(y),this.ru=[],a&&Object.assign(this,a)}hn(fo,Na),fo.prototype.cloneProtected=function(a){Na.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)},fo.prototype.qb=function(a){a.classType===fo?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:kt("Unknown enum value: "+a):Na.prototype.qb.call(this,a)},fo.prototype.createNetwork=function(){return new _p(this)},fo.prototype.makeNetwork=function(a){function y(E){if(E instanceof ii)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Mr){var x=E.fromNode;return x===null||x.isLinkLabel||x.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var b=this.createNetwork();return a instanceof kn?(b.lg(a.nodes,!0,y),b.lg(a.links,!0,y)):a instanceof $i?b.lg(a.memberParts,!1,y):b.lg(a.iterator,!1,y),b},fo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==dv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof kn&&(y=a),this.path===sv&&y!==null?this.ud=y.isTreePathToChildren?Fd:Fp:this.ud=this.path===sv?Fd: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 ur,y=this.Ub.iterator;y.next();){var b=y.value;b instanceof ii?(b=this.network.ki(b),b!==null&&a.add(b)):b instanceof Ac&&a.add(b)}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,Hy(this,y));for(y=this.network.vertexes,a=null;a=_E(y),0<a.count;)y=Hb(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Hy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&Wb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&Zb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&Kb(this,y);if(this.Cu(),this.layerStyle===hv){for(a=[],y=this.network.vertexes.iterator;y.next();){b=y.value;var E=b.parent;E===null&&(E=b),E=E.angle===0||E.angle===180;var x=a[b.level];x===void 0&&(x=0),a[b.level]=Math.max(x,E?b.width:b.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();)b=y.value,E=b.parent,E===null&&(E=b),E.angle===0||E.angle===180?(E.angle===180&&(b.focusX+=a[b.level]-b.width),b.width=a[b.level]):(E.angle===270&&(b.focusY+=a[b.level]-b.height),b.height=a[b.level])}else if(this.layerStyle===Jy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,b=y.angle===0||y.angle===180,E=-1,x=0;x<y.children.length;x++){var z=y.children[x];E=Math.max(E,b?z.width:z.height)}if(0<=E)for(x=0;x<y.children.length;x++)z=y.children[x],b?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new ur,this.isValidLayout=!0};function _E(a){var y=new ur;for(a=a.iterator;a.next();){var b=a.value;b.initialized||y.add(b)}return y}fo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var b=y.value;switch(this.ud){case Fd:b.sourceEdges.count===0&&this.Ub.add(b);break;case Fp:b.destinationEdges.count===0&&this.Ub.add(b);break;default:kt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=Hb(this,a),a!==null&&this.Ub.add(a))};function Hb(a,y){var b=999999,E=null;for(y=y.iterator;y.next();){var x=y.value;switch(a.ud){case Fd:x.sourceEdges.count<b&&(b=x.sourceEdges.count,E=x);break;case Fp:x.destinationEdges.count<b&&(b=x.destinationEdges.count,E=x);break;default:kt("Unhandled path value "+a.ud.toString())}}return E}function Hy(a,y){if(y!==null){switch(a.ud){case Fd:if(0<y.destinationEdges.count){for(var b=new rr,E=y.destinationVertexes;E.next();){var x=E.value;Vb(a,y,x)&&b.add(x)}0<b.count&&(y.children=b.Fa())}break;case Fp:if(0<y.sourceEdges.count){for(b=new rr,E=y.sourceVertexes;E.next();)x=E.value,Vb(a,y,x)&&b.add(x);0<b.count&&(y.children=b.Fa())}break;default:kt("Unhandled path value"+a.ud.toString())}for(b=y.children,E=b.length,x=0;x<E;x++){var z=b[x];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Hy(a,b[y])}}function Vb(a,y,b){if(b.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==b;)E=E.parent;E=E===b}if(E||b.level>y.level)return!1;a.removeChild(b.parent,b)}return!0}fo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var b=a.children,E=0,x=0;x<b.length;x++)b[x]===y&&E++;if(0<E){E=Array(b.length-E);for(var z=x=0;z<b.length;z++)b[z]!==y&&(E[x++]=b[z]);a.children=E}}};function Wb(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Ud&&a.sortTreeVertexChildren(y);for(var b=0,E=y.childrenCount,x=0,z=y.children,ne=z.length,ie=0;ie<ne;ie++){var se=z[ie];Wb(a,se),b+=se.descendantCount+1,E=Math.max(E,se.maxChildrenCount),x=Math.max(x,se.maxGenerationCount)}y.descendantCount=b,y.maxChildrenCount=E,y.maxGenerationCount=0<E?x+1:0}}function UE(a,y){switch(a.vo){default:case uv:return y.parent!==null?y.parent:a.W;case Yy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Ky:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Zy:var b=!0;if(y.childrenCount===0)b=!1;else for(var E=y.children,x=E.length,z=0;z<x;z++)if(0<E[z].childrenCount){b=!1;break}return b&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}fo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(UE(this,a)),a.parent!==null&&a.parent.alignment===Ud){for(var y=a.angle,b=a.parent.children,E=0;E<b.length&&a!==b[E];)E++;E%2===0?E!==b.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 Zb(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var b=y.length,E=0;E<b;E++)Zb(a,y[E])}}fo.prototype.assignTreeVertexValues=function(){};function Kb(a,y){if(y!==null){y.alignment!==Ud&&a.sortTreeVertexChildren(y),y=y.children;for(var b=y.length,E=0;E<b;E++)Kb(a,y[E])}}fo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Lg:break;case Am:a.children.reverse();break;case Nm:a.children.sort(a.comparer);break;case Lm:a.children.sort(a.comparer),a.children.reverse();break;default:kt("Unhandled sorting value "+a.sorting.toString())}},fo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},fo.prototype.addComments=function(a){var y=a.angle,b=a.parent,E=0,x=!1;b!==null&&(E=b.angle,x=b.alignment,x=mf(x)),y=y===90||y===270,E=E===90||E===270,b=a.childrenCount===0;var z=0,ne=0,ie=0,se=a.commentSpacing;if(a.node!==null)for(var de=a.node.Mu();de.next();){var pe=de.value;pe.category==="Comment"&&pe.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(pe),pe.Va(),pe=pe.measuredBounds,y&&!b||!x&&!E&&b||x&&E&&b?(z=Math.max(z,pe.width),ne+=pe.height+Math.abs(ie)):(z+=pe.width+Math.abs(ie),ne=Math.max(ne,pe.height)),ie=se)}a.comments!==null&&(y&&!b||!x&&!E&&b||x&&E&&b?(z+=Math.abs(a.commentMargin),ne=Math.max(0,ne-a.height)):(ne+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),x=An.allocAt(0,0,a.bounds.width+z,a.bounds.height+ne),a.bounds=x,An.free(x))};function mf(a){return a===Rh||a===Ud||a===Mh||a===oh}function Tm(a){return a===Rh||a===Ud}function zy(a){var y=a.parent;if(y!==null){var b=y.alignment;if(mf(b)){if(Tm(b)){for(y=y.children,b=0;b<y.length&&a!==y[b];)b++;return b%2===0}if(b===Mh)return!0}}return!1}fo.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,b=a.parent,E=a.angle,x=0,z=!1;b!==null&&(x=b.angle,z=b.alignment,z=mf(z)),E=E===90||E===270,b=x===90||x===270;for(var ne=a.childrenCount===0,ie=zy(a),se=0,de=a.comments,pe=de.length,Se=rt.alloc(),Ne=0;Ne<pe;Ne++){var Oe=de[Ne],He=Oe.measuredBounds;if(E&&!ne||!z&&!b&&ne||z&&b&&ne){if(135<x&&!z||b&&ie)if(0<=a.commentMargin)for(Se.h(a.bounds.x-a.commentMargin-He.width,a.bounds.y+se),Oe.move(Se),Oe=Oe.Sd();Oe.next();){var Je=Oe.value;Je.fromSpot=js,Je.toSpot=hs}else for(Se.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+se),Oe.move(Se),Oe=Oe.Sd();Oe.next();)Je=Oe.value,Je.fromSpot=hs,Je.toSpot=js;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+se),Oe.move(Se),Oe=Oe.Sd();Oe.next();)Je=Oe.value,Je.fromSpot=hs,Je.toSpot=js;else for(Se.h(a.bounds.x+a.commentMargin-He.width,a.bounds.y+se),Oe.move(Se),Oe=Oe.Sd();Oe.next();)Je=Oe.value,Je.fromSpot=js,Je.toSpot=hs;se=0<=a.commentSpacing?se+(He.height+a.commentSpacing):se+(a.commentSpacing-He.height)}else{if(135<x&&!z||!b&&ie)if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y-a.commentMargin-He.height),Oe.move(Se),Oe=Oe.Sd();Oe.next();)Je=Oe.value,Je.fromSpot=Is,Je.toSpot=vs;else for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y-a.commentMargin),Oe.move(Se),Oe=Oe.Sd();Oe.next();)Je=Oe.value,Je.fromSpot=vs,Je.toSpot=Is;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y+a.commentMargin),Oe.move(Se),Oe=Oe.Sd();Oe.next();)Je=Oe.value,Je.fromSpot=vs,Je.toSpot=Is;else for(Se.h(a.bounds.x+se,a.bounds.y+a.commentMargin-He.height),Oe.move(Se),Oe=Oe.Sd();Oe.next();)Je=Oe.value,Je.fromSpot=Is,Je.toSpot=vs;se=0<=a.commentSpacing?se+(He.width+a.commentSpacing):se+(a.commentSpacing-He.width)}}if(rt.free(Se),y=se-a.commentSpacing-(E?y.height:y.width),this.ud===Fd)for(a=a.destinationEdges;a.next();)x=a.value.link,x===null||x.isAvoiding||(x.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)x=a.value.link,x===null||x.isAvoiding||(x.toEndSegmentLength=0<y?y:NaN)}},fo.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,b=y.length,E=0;E<b;E++)this.layoutTree(y[E]);switch(a.compaction){case lv:Yb(this,a);break;case km:if(a.alignment===Ud)Yb(this,a);else if(a.childrenCount===0)E=a.parent,b=!1,y=0,E!==null&&(y=E.angle,b=E.alignment,b=mf(b)),E=zy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||b)&&!E?a.la.h(0,0):y===180&&!b||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var x=zc(a);y=x===90||x===270;var z=0,ne=a.children,ie=ne.length;for(b=0;b<ie;b++)E=ne[b],z=Math.max(z,y?E.Da.width:E.Da.height);var se=a.alignment;E=se===Bd;var de=se===_d,pe=mf(se),Se=Math.max(0,a.breadthLimit);b=this.computeLayerSpacing(a);var Ne=a.nodeSpacing,Oe=this.computeNodeIndent(a),He=a.rowSpacing,Je=0;(E||de||a.hm||a.im&&a.maxGenerationCount===1)&&(Je=Math.max(0,a.rowIndent)),E=a.width;var xt=a.height,yt=0,Rt=0,Bt=0,Gt=null,$t=null,In=0,qr=0,yi=0,di=0,Dr=0,pr=0,qi=0,ji=0;if(pe&&!Tm(se)&&135<x&&ne.reverse(),Tm(se))if(1<ie)for(var Uo=0;Uo<ie;Uo++)Uo%2===0&&Uo!==ie-1&&(ji=Math.max(ji,y?ne[Uo].Da.width:ne[Uo].Da.height));else ie===1&&(ji=y?ne[0].Da.width:ne[0].Da.height);if(pe){switch(se){case Rh:Rt=135>x?Xb(this,a,ne,ji,yt,Rt):Qb(this,a,ne,ji,yt,Rt),ji=Rt.x,yt=Rt.width,Rt=Rt.height;break;case Mh:for(Gt=0;Gt<ie;Gt++)$t=ne[Gt],Se=$t.Da,Bt=pr===0?0:He,y?($t.S.h(z-Se.width,di+Bt),yt=Math.max(yt,Se.width),Rt=Math.max(Rt,di+Bt+Se.height),di+=Bt+Se.height):($t.S.h(yi+Bt,z-Se.height),yt=Math.max(yt,yi+Bt+Se.width),Rt=Math.max(Rt,Se.height),yi+=Bt+Se.width),pr++;break;case oh:for(Gt=0;Gt<ie;Gt++)$t=ne[Gt],z=$t.Da,Se=pr===0?0:He,y?($t.S.h(Ne/2+a.focus.x,di+Se),yt=Math.max(yt,z.width),Rt=Math.max(Rt,di+Se+z.height),di+=Se+z.height):($t.S.h(yi+Se,Ne/2+a.focus.y),yt=Math.max(yt,yi+Se+z.width),Rt=Math.max(Rt,z.height),yi+=Se+z.width),pr++}Gt=ku(this,2),$t=ku(this,2),y?(Gt[0].h(0,0),Gt[1].h(0,Rt),$t[0].h(yt,0)):(Gt[0].h(0,0),Gt[1].h(yt,0),$t[0].h(0,Rt)),$t[1].h(yt,Rt)}else for(Uo=0;Uo<ie;Uo++){var fa=ne[Uo],Bs=fa.Da;if(y){0<Se&&0<pr&&yi+Ne+Bs.width>Se&&(yi<z&&Zf(a,se,z-yi,0,qi,Uo-1),Dr++,pr=0,qi=Uo,Bt=Rt,yi=0,di=135<x?-Rt-He:Rt+He),ov(this,fa,0,di);var zs=0;if(pr===0)Gt=fa.Yo,$t=fa.kp,In=Bs.width,qr=Bs.height,(Gt===null||$t===null||x!==zc(fa))&&(Gt=ku(this,2),$t=ku(this,2),Gt[0].h(0,0),Gt[1].h(0,qr),$t[0].h(In,0),$t[1].h(In,qr));else{var Hl=Jr();qr=Jb(this,a,fa,Gt,$t,In,qr,Hl),zs=qr.x,Gt=Hl[0],$t=Hl[1],In=qr.width,qr=qr.height,Hr(Hl),yi<Bs.width&&0>zs&&(Op(a,-zs,0,qi,Uo-1),av(Gt,-zs,0),av($t,-zs,0),zs=0)}fa.S.h(zs,di),yt=Math.max(yt,In),Rt=Math.max(Rt,Bt+(Dr===0?0:He)+Bs.height),yi=In}else 0<Se&&0<pr&&di+Ne+Bs.height>Se&&(di<z&&Zf(a,se,0,z-di,qi,Uo-1),Dr++,pr=0,qi=Uo,Bt=yt,di=0,yi=135<x?-yt-He:yt+He),ov(this,fa,yi,0),zs=0,pr===0?(Gt=fa.Yo,$t=fa.kp,In=Bs.width,qr=Bs.height,(Gt===null||$t===null||x!==zc(fa))&&(Gt=ku(this,2),$t=ku(this,2),Gt[0].h(0,0),Gt[1].h(In,0),$t[0].h(0,qr),$t[1].h(In,qr))):(Hl=Jr(),qr=Jb(this,a,fa,Gt,$t,In,qr,Hl),zs=qr.x,Gt=Hl[0],$t=Hl[1],In=qr.width,qr=qr.height,Hr(Hl),di<Bs.height&&0>zs&&(Op(a,0,-zs,qi,Uo-1),av(Gt,0,-zs),av($t,0,-zs),zs=0)),fa.S.h(yi,zs),Rt=Math.max(Rt,qr),yt=Math.max(yt,Bt+(Dr===0?0:He)+Bs.width),di=qr;pr++}switch(0<Dr&&(y?(Rt+=Math.max(0,b),yi<yt&&Zf(a,se,yt-yi,0,qi,ie-1),0<Je&&(de||Op(a,Je,0,0,ie-1),yt+=Je)):(yt+=Math.max(0,b),di<Rt&&Zf(a,se,0,Rt-di,qi,ie-1),0<Je&&(de||Op(a,0,Je,0,ie-1),Rt+=Je))),Je=de=0,se){case kg:y?de+=yt/2-a.focus.x-Oe/2:Je+=Rt/2-a.focus.y-Oe/2;break;case Bp:0<Dr?y?de+=yt/2-a.focus.x-Oe/2:Je+=Rt/2-a.focus.y-Oe/2:y?(ji=ne[0].S.x+ne[0].la.x,de+=ji+(ne[ie-1].S.x+ne[ie-1].la.x+2*ne[ie-1].focus.x-ji)/2-a.focus.x-Oe/2):(ji=ne[0].S.y+ne[0].la.y,Je+=ji+(ne[ie-1].S.y+ne[ie-1].la.y+2*ne[ie-1].focus.y-ji)/2-a.focus.y-Oe/2);break;case Bd:y?(de-=Oe,yt+=Oe):(Je-=Oe,Rt+=Oe);break;case _d:y?(de+=yt-a.width+Oe,yt+=Oe):(Je+=Rt-a.height+Oe,Rt+=Oe);break;case Rh:y?1<ie?de+=ji+Ne/2-a.focus.x:de+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<ie?Je+=ji+Ne/2-a.focus.y:Je+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case Mh:y?de+=yt+Ne/2-a.focus.x:Je+=Rt+Ne/2-a.focus.y;break;case oh:break;default:Rt=this.customAlignment(a,de,Je,yt,Rt),de=Rt[0],Je=Rt[1],yt=Rt[2],Rt=Rt[3]}for(Oe=0;Oe<ie;Oe++)ji=ne[Oe],y?ji.S.h(ji.S.x+ji.la.x-de,ji.S.y+(135<x?(pe?-Rt:-ji.Da.height)+ji.la.y-b:xt+b+ji.la.y)):ji.S.h(ji.S.x+(135<x?(pe?-yt:-ji.Da.width)+ji.la.x-b:E+b+ji.la.x),ji.S.y+ji.la.y-Je);if(ie=ne=0,pe?y?(yt=Gy(a,yt,de),0>de&&(de=0),135<x&&(Je+=Rt+b),Rt+=xt+b,se===oh&&(ne+=Ne/2+a.focus.x),ie+=xt+b):(135<x&&(de+=yt+b),yt+=E+b,Rt=jy(a,Rt,Je),0>Je&&(Je=0),se===oh&&(ie+=Ne/2+a.focus.y),ne+=E+b):y?(a.comments===null?E>yt&&(yt=Vy(se,E-yt,0),ne=yt.x,ie=yt.y,yt=E,de=0):yt=Gy(a,yt,de),0>de&&(ne-=de,de=0),135<x&&(Je+=Rt+b),Rt=Math.max(Math.max(Rt,xt),Rt+xt+b),ie+=xt+b):(135<x&&(de+=yt+b),yt=Math.max(Math.max(yt,E),yt+E+b),a.comments===null?xt>Rt&&(Rt=Vy(se,0,xt-Rt),ne=Rt.x,ie=Rt.y,Rt=xt,Je=0):Rt=jy(a,Rt,Je),0>Je&&(ie-=Je,Je=0),ne+=E+b),0<Dr)x=ku(this,4),Dr=ku(this,4),y?(x[2].h(0,xt+b),x[3].h(x[2].x,Rt),Dr[2].h(yt,x[2].y),Dr[3].h(Dr[2].x,x[3].y)):(x[2].h(E+b,0),x[3].h(yt,x[2].y),Dr[2].h(x[2].x,Rt),Dr[3].h(x[3].x,Dr[2].y));else{for(x=ku(this,Gt.length+2),Dr=ku(this,$t.length+2),se=0;se<Gt.length;se++)pe=Gt[se],x[se+2].h(pe.x+ne,pe.y+ie);for(se=0;se<$t.length;se++)pe=$t[se],Dr[se+2].h(pe.x+ne,pe.y+ie)}y?(x[0].h(de,0),x[1].h(x[0].x,xt),x[2].y<x[1].y&&(x[2].x>x[0].x?x[2].assign(x[1]):x[1].assign(x[2])),x[3].y<x[2].y&&(x[3].x>x[0].x?x[3].assign(x[2]):x[2].assign(x[3])),Dr[0].h(de+E,0),Dr[1].h(Dr[0].x,xt),Dr[2].y<Dr[1].y&&(Dr[2].x<Dr[0].x?Dr[2].assign(Dr[1]):Dr[1].assign(Dr[2])),Dr[3].y<Dr[2].y&&(Dr[3].x<Dr[0].x?Dr[3].assign(Dr[2]):Dr[2].assign(Dr[3])),x[2].y-=b/2,Dr[2].y-=b/2):(x[0].h(0,Je),x[1].h(E,x[0].y),x[2].x<x[1].x&&(x[2].y>x[0].y?x[2].assign(x[1]):x[1].assign(x[2])),x[3].x<x[2].x&&(x[3].y>x[0].y?x[3].assign(x[2]):x[2].assign(x[3])),Dr[0].h(0,Je+xt),Dr[1].h(E,Dr[0].y),Dr[2].x<Dr[1].x&&(Dr[2].y<Dr[0].y?Dr[2].assign(Dr[1]):Dr[1].assign(Dr[2])),Dr[3].x<Dr[2].x&&(Dr[3].y<Dr[0].y?Dr[3].assign(Dr[2]):Dr[2].assign(Dr[3])),x[2].x-=b/2,Dr[2].x-=b/2),od(this,Gt),od(this,$t),a.Yo=x,a.kp=Dr,a.la.h(de,Je),a.Da.h(yt,Rt)}break;default:kt("Unhandled compaction value "+a.compaction.toString())}}};function Yb(a,y){if(y.childrenCount===0){var b=!1,E=0;y.parent!==null&&(E=y.parent.angle,b=y.parent.alignment,b=mf(b));var x=zy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||b)&&!x?y.la.h(0,0):E===180&&!b||(E===90||E===270)&&x?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=zc(y),b=E===90||E===270;var z=0;x=y.children;for(var ne=x.length,ie=0;ie<ne;ie++){var se=x[ie];z=Math.max(z,b?se.Da.width:se.Da.height)}var de=y.alignment,pe=de===Bd,Se=de===_d;ie=mf(de);var Ne=Math.max(0,y.breadthLimit);se=a.computeLayerSpacing(y);var Oe=y.nodeSpacing,He=a.computeNodeIndent(y),Je=pe||Se?0:He/2,xt=y.rowSpacing,yt=0;(pe||Se||y.hm||y.im&&y.maxGenerationCount===1)&&(yt=Math.max(0,y.rowIndent)),pe=y.width;var Rt=y.height,Bt=0,Gt=0,$t=0,In=0,qr=0,yi=0,di=0,Dr=0,pr=0,qi=0;if(ie&&!Tm(de)&&135<E&&x.reverse(),Tm(de))if(1<ne)for(var ji=0;ji<ne;ji++){var Uo=x[ji],fa=Uo.Da;ji%2===0&&ji!==ne-1?pr=Math.max(pr,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Uo)-Oe):ji%2!==0&&(qi=Math.max(qi,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Uo)-Oe))}else ne===1&&(pr=b?x[0].Da.width:x[0].Da.height);if(ie)switch(de){case Rh:case Ud:Gt=135>E?Xb(a,y,x,pr,Bt,Gt):Qb(a,y,x,pr,Bt,Gt),pr=Gt.x,Bt=Gt.width,Gt=Gt.height;break;case Mh:for(Ne=0;Ne<ne;Ne++)Je=x[Ne],$t=Je.Da,qi=di===0?0:xt,b?(Je.S.h(z-$t.width,qr+qi),Bt=Math.max(Bt,$t.width),Gt=Math.max(Gt,qr+qi+$t.height),qr+=qi+$t.height):(Je.S.h(In+qi,z-$t.height),Bt=Math.max(Bt,In+qi+$t.width),Gt=Math.max(Gt,$t.height),In+=qi+$t.width),di++;break;case oh:for(z=0;z<ne;z++)Ne=x[z],Je=Ne.Da,$t=di===0?0:xt,b?(Ne.S.h(Oe/2+y.focus.x,qr+$t),Bt=Math.max(Bt,Je.width),Gt=Math.max(Gt,qr+$t+Je.height),qr+=$t+Je.height):(Ne.S.h(In+$t,Oe/2+y.focus.y),Bt=Math.max(Bt,In+$t+Je.width),Gt=Math.max(Gt,Je.height),In+=$t+Je.width),di++}else for(qi=0;qi<ne;qi++)ji=x[qi],Uo=ji.Da,b?(0<Ne&&0<di&&In+Oe+Uo.width>Ne&&(In<z&&Zf(y,de,z-In,0,Dr,qi-1),yi++,di=0,Dr=qi,$t=Gt,In=0,qr=135<E?-Gt-xt:Gt+xt),fa=di===0?Je:Oe,ov(a,ji,0,qr),ji.S.h(In+fa,qr),Bt=Math.max(Bt,In+fa+Uo.width),Gt=Math.max(Gt,$t+(yi===0?0:xt)+Uo.height),In+=fa+Uo.width):(0<Ne&&0<di&&qr+Oe+Uo.height>Ne&&(qr<z&&Zf(y,de,0,z-qr,Dr,qi-1),yi++,di=0,Dr=qi,$t=Bt,qr=0,In=135<E?-Bt-xt:Bt+xt),fa=di===0?Je:Oe,ov(a,ji,In,0),ji.S.h(In,qr+fa),Gt=Math.max(Gt,qr+fa+Uo.height),Bt=Math.max(Bt,$t+(yi===0?0:xt)+Uo.width),qr+=fa+Uo.height),di++;switch(0<yi&&(b?(Gt+=Math.max(0,se),In<Bt&&Zf(y,de,Bt-In,0,Dr,ne-1),0<yt&&(Se||Op(y,yt,0,0,ne-1),Bt+=yt)):(Bt+=Math.max(0,se),qr<Gt&&Zf(y,de,0,Gt-qr,Dr,ne-1),0<yt&&(Se||Op(y,0,yt,0,ne-1),Gt+=yt))),yt=Se=0,de){case kg:b?Se+=Bt/2-y.focus.x-He/2:yt+=Gt/2-y.focus.y-He/2;break;case Bp:0<yi?b?Se+=Bt/2-y.focus.x-He/2:yt+=Gt/2-y.focus.y-He/2:b?(a=x[0].S.x+x[0].la.x,Se+=a+(x[ne-1].S.x+x[ne-1].la.x+2*x[ne-1].focus.x-a)/2-y.focus.x-He/2):(a=x[0].S.y+x[0].la.y,yt+=a+(x[ne-1].S.y+x[ne-1].la.y+2*x[ne-1].focus.y-a)/2-y.focus.y-He/2);break;case Bd:b?(Se-=He,Bt+=He):(yt-=He,Gt+=He);break;case _d:b?(Se+=Bt-y.width+He,Bt+=He):(yt+=Gt-y.height+He,Gt+=He);break;case Rh:case Ud:b?1<ne?Se+=pr+Oe/2-y.focus.x:Se+=x[0].focus.x-y.focus.x+x[0].la.x:1<ne?yt+=pr+Oe/2-y.focus.y:yt+=x[0].focus.y-y.focus.y+x[0].la.y;break;case Mh:b?Se+=Bt+Oe/2-y.focus.x:yt+=Gt+Oe/2-y.focus.y;break;case oh:break;default:a=a.customAlignment(y,Se,yt,Bt,Gt),Se=a[0],yt=a[1],Bt=a[2],Gt=a[3]}for(a=0;a<ne;a++)He=x[a],b?He.S.h(He.S.x+He.la.x-Se,He.S.y+(135<E?(ie?-Gt:-He.Da.height)+He.la.y-se:Rt+se+He.la.y)):He.S.h(He.S.x+(135<E?(ie?-Bt:-He.Da.width)+He.la.x-se:pe+se+He.la.x),He.S.y+He.la.y-yt);b?(Bt=Gy(y,Bt,Se),0>Se&&(Se=0),135<E&&(yt+=Gt+se),Gt=Math.max(Math.max(Gt,Rt),Gt+Rt+se)):(135<E&&(Se+=Bt+se),Bt=Math.max(Math.max(Bt,pe),Bt+pe+se),Gt=jy(y,Gt,yt),0>yt&&(yt=0)),y.la.h(Se,yt),y.Da.h(Bt,Gt)}}fo.prototype.customAlignment=function(a,y,b,E,x){return[y,b,E,x]};function Xb(a,y,b,E,x,z){var ne=b.length;if(ne===0)return new An(E,0,x,z);if(ne===1)return y=b[0],x=y.Da.width,z=y.Da.height,new An(E,0,x,z);for(var ie=y.nodeSpacing,se=y.rowSpacing,de=zc(y)===90,pe=0,Se=0,Ne=0,Oe=0;Oe<ne;Oe++)if(!(Oe%2!==0||1<ne&&Oe===ne-1)){var He=b[Oe],Je=He.Da,xt=pe===0?0:se;if(de){var yt=a.computeBusNodeSpacing(He)-ie;He.S.h(E-(Je.width+yt),Ne+xt),x=Math.max(x,Je.width+yt),z=Math.max(z,Ne+xt+Je.height),Ne+=xt+Je.height}else yt=a.computeBusNodeSpacing(He)-ie,He.S.h(Se+xt,E-(Je.height+yt)),z=Math.max(z,Je.height+yt),x=Math.max(x,Se+xt+Je.width),Se+=xt+Je.width;pe++}for(pe=0,He=Se,Oe=Ne,de?(Se=E+ie,Ne=0):(Se=0,Ne=E+ie),Je=0;Je<ne;Je++)if(Je%2!==0){xt=b[Je],yt=xt.Da;var Rt=pe===0?0:se;if(de){var Bt=a.computeBusNodeSpacing(xt)-ie;xt.S.h(Se+Bt,Ne+Rt),x=Math.max(x,Se+yt.width+Bt),z=Math.max(z,Ne+Rt+yt.height),Ne+=Rt+yt.height}else Bt=a.computeBusNodeSpacing(xt)-ie,xt.S.h(Se+Rt,Ne+Bt),x=Math.max(x,Se+Rt+yt.width),z=Math.max(z,Ne+yt.height+Bt),Se+=Rt+yt.width;pe++}return 1<ne&&ne%2===1&&(b=b[ne-1],ne=b.Da,a=a.computeBusLastRowSpacing(b,de?Math.max(Math.abs(Oe),Math.abs(Ne)):Math.max(Math.abs(He),Math.abs(Se))),de?(b.S.h(E+ie/2-b.focus.x-b.la.x,z+a),de=E+ie/2-b.focus.x-b.la.x,x=Math.max(x,de+ne.width),0>de&&(x-=de),z=Math.max(z,Math.max(Oe,Ne)+a+ne.height),0>b.S.x&&(E=iv(y,b.S.x,!1,E,ie))):(b.S.h(x+a,E+ie/2-b.focus.y-b.la.y),x=Math.max(x,Math.max(He,Se)+a+ne.width),Ne=E+ie/2-b.focus.y-b.la.y,z=Math.max(z,Ne+ne.height),0>Ne&&(z-=Ne),0>b.S.y&&(E=iv(y,b.S.y,!0,E,ie)))),new An(E,0,x,z)}function Qb(a,y,b,E,x,z){var ne=b.length;if(ne===0)return new An(E,0,x,z);if(ne===1)return b=b[0],x=b.Da.width,z=b.Da.height,new An(E,0,x,z);for(var ie=y.nodeSpacing,se=y.rowSpacing,de=zc(y)===270,pe=0,Se=0,Ne=0,Oe=0;Oe<ne;Oe++)if(!(Oe%2!==0||1<ne&&Oe===ne-1)){var He=b[Oe],Je=He.Da,xt=pe===0?0:se;if(de){var yt=a.computeBusNodeSpacing(He)-ie;Ne-=xt+Je.height,He.S.h(E-(Je.width+yt),Ne),x=Math.max(x,Je.width+yt),z=Math.max(z,Math.abs(Ne))}else yt=a.computeBusNodeSpacing(He)-ie,Se-=xt+Je.width,He.S.h(Se,E-(Je.height+yt)),z=Math.max(z,Je.height+yt),x=Math.max(x,Math.abs(Se));pe++}for(pe=0,He=Se,Oe=Ne,de?(Se=E+ie,Ne=0):(Se=0,Ne=E+ie),Je=0;Je<ne;Je++)if(Je%2!==0){xt=b[Je],yt=xt.Da;var Rt=pe===0?0:se;if(de){var Bt=a.computeBusNodeSpacing(xt)-ie;Ne-=Rt+yt.height,xt.S.h(Se+Bt,Ne),x=Math.max(x,Se+yt.width+Bt),z=Math.max(z,Math.abs(Ne))}else Bt=a.computeBusNodeSpacing(xt)-ie,Se-=Rt+yt.width,xt.S.h(Se,Ne+Bt),z=Math.max(z,Ne+yt.height+Bt),x=Math.max(x,Math.abs(Se));pe++}for(1<ne&&ne%2===1&&(se=b[ne-1],pe=se.Da,a=a.computeBusLastRowSpacing(se,de?Math.max(Math.abs(Oe),Math.abs(Ne)):Math.max(Math.abs(He),Math.abs(Se))),de?(se.S.h(E+ie/2-se.focus.x-se.la.x,-z-pe.height-a),Se=E+ie/2-se.focus.x-se.la.x,x=Math.max(x,Se+pe.width),0>Se&&(x-=Se),z=Math.max(z,Math.abs(Math.min(Oe,Ne))+a+pe.height),0>se.S.x&&(E=iv(y,se.S.x,!1,E,ie))):(se.S.h(-x-pe.width-a,E+ie/2-se.focus.y-se.la.y),x=Math.max(x,Math.abs(Math.min(He,Se))+a+pe.width),Ne=E+ie/2-se.focus.y-se.la.y,z=Math.max(z,Ne+pe.height),0>Ne&&(z-=Ne),0>se.S.y&&(E=iv(y,se.S.y,!0,E,ie)))),y=0;y<ne;y++)ie=b[y],de?ie.S.h(ie.S.x,ie.S.y+z):ie.S.h(ie.S.x+x,ie.S.y);return new An(E,0,x,z)}fo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},fo.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function iv(a,y,b,E,x){a=a.children;for(var z=a.length,ne=0;ne<z;ne++)b?a[ne].S.h(a[ne].S.x,a[ne].S.y-y):a[ne].S.h(a[ne].S.x-y,a[ne].S.y);return y=a[z-1],Math.max(E,b?y.la.y+y.focus.y-x/2:y.la.x+y.focus.x-x/2)}function Gy(a,y,b){switch(a.alignment){case Bp:case kg:return b+a.width>y&&(y=b+a.width),0>b&&(y-=b),y;case Bd:return a.width>y?a.width:y;case _d:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Rh:case Ud:return Math.max(a.width,Math.max(y,b+a.width)-Math.min(0,b));case Mh:return a.width-a.focus.x+a.nodeSpacing/2+y;case oh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function jy(a,y,b){switch(a.alignment){case Bp:case kg:return b+a.height>y&&(y=b+a.height),0>b&&(y-=b),y;case Bd:return a.height>y?a.height:y;case _d:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Rh:case Ud:return Math.max(a.height,Math.max(y,b+a.height)-Math.min(0,b));case Mh:return a.height-a.focus.y+a.nodeSpacing/2+y;case oh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Vy(a,y,b){switch(a){case kg:y/=2,b/=2;break;case Bp:y/=2,b/=2;break;case Bd:b=y=0;break;case _d:break;default:kt("Unhandled alignment value "+a.toString())}return new rt(y,b)}function Zf(a,y,b,E,x,z){y=Vy(y,b,E),Op(a,y.x,y.y,x,z)}function Op(a,y,b,E,x){if(y!==0||b!==0)for(a=a.children;E<=x;E++){var z=a[E].S;z.x+=y,z.y+=b}}function ov(a,y,b,E){var x=y.parent;switch(a.ud){case Fd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===x&&y.relativePoint.h(b,E);break;case Fp:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===x&&y.relativePoint.h(b,E);break;default:kt("Unhandled path value "+a.ud.toString())}}function av(a,y,b){for(var E=0;E<a.length;E++){var x=a[E];x.x+=y,x.y+=b}}function Jb(a,y,b,E,x,z,ne,ie){var se=zc(y),de=se===90||se===270,pe=y.nodeSpacing;y=E;var Se=x;E=z;var Ne=ne,Oe=b.Yo,He=b.kp;ne=b.Da;var Je=de?Math.max(Ne,ne.height):Math.max(E,ne.width);if((Oe===null||se!==zc(b))&&(Oe=ku(a,2),He=ku(a,2),de?(Oe[0].h(0,0),Oe[1].h(0,ne.height),He[0].h(ne.width,0),He[1].h(He[0].x,Oe[1].y)):(Oe[0].h(0,0),Oe[1].h(ne.width,0),He[0].h(0,ne.height),He[1].h(Oe[1].x,He[0].y))),de){if(Ne=9999999,!(Se===null||2>Se.length||Oe===null||2>Oe.length))for(x=b=0;b<Se.length&&x<Oe.length;){z=Se[b];var xt=Oe[x];se=xt.x,de=xt.y,se+=E;var yt=z;b+1<Se.length&&(yt=Se[b+1]);var Rt=xt;xt=Rt.x,Rt=Rt.y,x+1<Oe.length&&(Rt=Oe[x+1],xt=Rt.x,Rt=Rt.y,xt+=E);var Bt=Ne;z.y===de?Bt=se-z.x:z.y>de&&z.y<Rt?Bt=se+(z.y-de)/(Rt-de)*(xt-se)-z.x:de>z.y&&de<yt.y&&(Bt=se-(z.x+(de-z.y)/(yt.y-z.y)*(yt.x-z.x))),Bt<Ne&&(Ne=Bt),yt.y<=z.y?b++:Rt<=de?x++:(yt.y<=Rt&&b++,Rt<=yt.y&&x++)}if(Ne=E-Ne,Ne+=pe,b=Oe,x=Ne,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=ku(a,y.length+b.length),E=z=se=0;z<b.length&&b[z].y<y[0].y;)de=b[z++],pe[E++].h(de.x+x,de.y);for(;se<y.length;)de=y[se++],pe[E++].h(de.x,de.y);for(se=y[y.length-1].y;z<b.length&&b[z].y<=se;)z++;for(;z<b.length&&b[z].y>se;)de=b[z++],pe[E++].h(de.x+x,de.y);for(b=ku(a,E),se=0;se<E;se++)b[se].assign(pe[se]);od(a,pe),E=b}if(z=He,se=Ne,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=ku(a,Se.length+z.length),x=de=b=0;b<Se.length&&Se[b].y<z[0].y;)yt=Se[b++],pe[x++].h(yt.x,yt.y);for(;de<z.length;)yt=z[de++],pe[x++].h(yt.x+se,yt.y);for(z=z[z.length-1].y;b<Se.length&&Se[b].y<=z;)b++;for(;b<Se.length&&Se[b].y>z;)se=Se[b++],pe[x++].h(se.x,se.y);for(z=ku(a,x),b=0;b<x;b++)z[b].assign(pe[b]);od(a,pe),x=z}return z=Math.max(0,Ne)+ne.width,ne=Je,od(a,y),od(a,Oe),od(a,Se),od(a,He),ie[0]=E,ie[1]=x,new An(Ne,0,z,ne)}if(E=9999999,!(Se===null||2>Se.length||Oe===null||2>Oe.length))for(x=b=0;b<Se.length&&x<Oe.length;)z=Se[b],xt=Oe[x],se=xt.x,de=xt.y,de+=Ne,yt=z,b+1<Se.length&&(yt=Se[b+1]),Rt=xt,xt=Rt.x,Rt=Rt.y,x+1<Oe.length&&(Rt=Oe[x+1],xt=Rt.x,Rt=Rt.y,Rt+=Ne),Bt=E,z.x===se?Bt=de-z.y:z.x>se&&z.x<xt?Bt=de+(z.x-se)/(xt-se)*(Rt-de)-z.y:se>z.x&&se<yt.x&&(Bt=de-(z.y+(se-z.x)/(yt.x-z.x)*(yt.y-z.y))),Bt<E&&(E=Bt),yt.x<=z.x?b++:xt<=se?x++:(yt.x<=xt&&b++,xt<=yt.x&&x++);if(Ne-=E,Ne+=pe,b=Oe,x=Ne,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=ku(a,y.length+b.length),E=z=se=0;z<b.length&&b[z].x<y[0].x;)de=b[z++],pe[E++].h(de.x,de.y+x);for(;se<y.length;)de=y[se++],pe[E++].h(de.x,de.y);for(se=y[y.length-1].x;z<b.length&&b[z].x<=se;)z++;for(;z<b.length&&b[z].x>se;)de=b[z++],pe[E++].h(de.x,de.y+x);for(b=ku(a,E),se=0;se<E;se++)b[se].assign(pe[se]);od(a,pe),E=b}if(z=He,se=Ne,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=ku(a,Se.length+z.length),x=de=b=0;b<Se.length&&Se[b].x<z[0].x;)yt=Se[b++],pe[x++].h(yt.x,yt.y);for(;de<z.length;)yt=z[de++],pe[x++].h(yt.x,yt.y+se);for(z=z[z.length-1].x;b<Se.length&&Se[b].x<=z;)b++;for(;b<Se.length&&Se[b].x>z;)se=Se[b++],pe[x++].h(se.x,se.y);for(z=ku(a,x),b=0;b<x;b++)z[b].assign(pe[b]);od(a,pe),x=z}return z=Je,ne=Math.max(0,Ne)+ne.height,od(a,y),od(a,Oe),od(a,Se),od(a,He),ie[0]=E,ie[1]=x,new An(Ne,0,z,ne)}function ku(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var b=0;b<y;b++)a[b]=new rt;return a}function od(a,y){var b=y.length,E=a.ru[b];E===void 0&&(E=[],a.ru[b]=E),E.push(y)}fo.prototype.arrangeTrees=function(){if(this.Rb===dv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Ac){var b=y.node;if(b!==null){var E=b.position;b=E.x,E=E.y,isFinite(b)||(b=0),isFinite(E)||(E=0),Wy(this,y,b,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)b=y.value,b instanceof Ac&&a.push(b);switch(this.sorting){case Lg:break;case Am:a.reverse();break;case Nm:a.sort(this.comparer);break;case Lm:a.sort(this.comparer),a.reverse();break;default:kt("Unhandled sorting value "+this.sorting.toString())}for(b=this.arrangementOrigin,y=b.x,b=b.y,E=0;E<a.length;E++){var x=a[E];switch(Wy(this,x,y+x.la.x,b+x.la.y),this.Rb){case cv:b+=x.Da.height+this.$d.height;break;case Xy:y+=x.Da.width+this.$d.width;break;default:kt("Unhandled arrangement value "+this.Rb.toString())}}}};function Wy(a,y,b,E){if(y!==null){y.x=b,y.y=E,y=y.children;for(var x=y.length,z=0;z<x;z++){var ne=y[z];Wy(a,ne,b+ne.S.x,E+ne.S.y)}}}fo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},fo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},fo.prototype.Gu=function(){if(this.layerStyle===hv){for(var a=this.$v,y=[],b=null,E=this.network.vertexes.iterator;E.next();){var x=E.value;b===null?b=x.bounds.copy():b.ed(x.bounds);var z=y[x.level];z===void 0?z=this.computeLayerSpacing(x):z=Math.max(z,this.computeLayerSpacing(x)),y[x.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(b.Bc(this.nodeSpacing/2,this.layerSpacing),E=new rt(-this.nodeSpacing/2,-this.layerSpacing/2)):(b.Bc(this.layerSpacing,this.nodeSpacing/2),E=new rt(-this.layerSpacing/2,-this.nodeSpacing/2)),x=[],b=this.angle===90||this.angle===270?b.width:b.height,z=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)z+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var ie=a[ne]+y[ne];this.angle===270?(z-=ie,x.push(new An(0,z,b,ie))):this.angle===90?(x.push(new An(0,z,b,ie)),z+=ie):this.angle===180?(z-=ie,x.push(new An(z,0,ie,b))):(x.push(new An(z,0,ie,b)),z+=ie)}this.commitLayers(x,E)}},fo.prototype.commitLayers=function(){},fo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},fo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Ac&&$b(this,y)}};function $b(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var b=y.length,E=0;E<b;E++)$b(a,y[E])}}fo.prototype.setPortSpots=function(a){var y=a.alignment;if(mf(y)){var b=this.ud===Fd,E=zc(a);switch(E){case 0:var x=hs;break;case 90:x=vs;break;case 180:x=js;break;default:x=Is}var z=a.children,ne=z.length;switch(y){case Rh:case Ud:for(y=0;y<ne;y++){var ie=z[y];if(ie=(b?ie.sourceEdges:ie.destinationEdges).first(),ie!==null&&(ie=ie.link,ie!==null)){var se=E===90||E===270?js:Is;if(ne===1||y===ne-1&&ne%2===1)switch(E){case 0:se=js;break;case 90:se=Is;break;case 180:se=hs;break;default:se=vs}else y%2===0&&(se=E===90||E===270?hs:vs);b?(a.setsPortSpot&&(ie.fromSpot=x),a.setsChildPortSpot&&(ie.toSpot=se)):(a.setsPortSpot&&(ie.fromSpot=se),a.setsChildPortSpot&&(ie.toSpot=x))}}break;case Mh:for(E=E===90||E===270?hs:vs,z=b?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(b?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=E)):(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=x)));break;case oh:for(E=E===90||E===270?js:Is,z=b?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(b?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=E)):(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=x)))}}else if(b=zc(a),this.ud===Fd){for(x=a.destinationEdges;x.next();)if(E=x.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(b){case 0:E.fromSpot=hs;break;case 90:E.fromSpot=vs;break;case 180:E.fromSpot=js;break;default:E.fromSpot=Is}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.toSpot=js;break;case 90:E.toSpot=Is;break;case 180:E.toSpot=hs;break;default:E.toSpot=vs}else E.toSpot=a.childPortSpot}}else for(x=a.sourceEdges;x.next();)if(E=x.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(b){case 0:E.toSpot=hs;break;case 90:E.toSpot=vs;break;case 180:E.toSpot=js;break;default:E.toSpot=Is}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.fromSpot=js;break;case 90:E.fromSpot=Is;break;case 180:E.fromSpot=hs;break;default:E.fromSpot=vs}else E.fromSpot=a.childPortSpot}};function zc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}fo.prototype.computeLayerSpacing=function(a){var y=zc(a);y=y===90||y===270;var b=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);b-=y?a.height*E:a.width*E}return b<(y?-a.height:-a.width)&&(b=y?-a.height:-a.width),b},fo.prototype.computeNodeIndent=function(a){var y=zc(a),b=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);b+=y===90||y===270?a.width*E:a.height*E}return b=Math.max(0,b)},un.Object.defineProperties(fo.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!==uv&&a!==Ky&&a!==Zy&&a!==Yy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Qy&&a!==Jy&&a!==hv||(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!==cv&&a!==Xy&&a!==dv||(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!==Lg&&a!==Am&&a!==Nm&&!Lm||(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()):kt("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!==lv&&a!==km||(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!==Lg&&a!==Am&&a!==Nm&&!Lm||(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!==lv&&a!==km||(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 sv=new Ln(fo,"PathDefault",-1),Fd=new Ln(fo,"PathDestination",0),Fp=new Ln(fo,"PathSource",1),Lg=new Ln(fo,"SortingForwards",10),Am=new Ln(fo,"SortingReverse",11),Nm=new Ln(fo,"SortingAscending",12),Lm=new Ln(fo,"SortingDescending",13),kg=new Ln(fo,"AlignmentCenterSubtrees",20),Bp=new Ln(fo,"AlignmentCenterChildren",21),Bd=new Ln(fo,"AlignmentStart",22),_d=new Ln(fo,"AlignmentEnd",23),Rh=new Ln(fo,"AlignmentBus",24),Ud=new Ln(fo,"AlignmentBusBranching",25),Mh=new Ln(fo,"AlignmentTopLeftBus",26),oh=new Ln(fo,"AlignmentBottomRightBus",27),lv=new Ln(fo,"CompactionNone",30),km=new Ln(fo,"CompactionBlock",31),uv=new Ln(fo,"StyleLayered",40),Zy=new Ln(fo,"StyleLastParents",41),Ky=new Ln(fo,"StyleAlternating",42),Yy=new Ln(fo,"StyleRootOnly",43),cv=new Ln(fo,"ArrangementVertical",50),Xy=new Ln(fo,"ArrangementHorizontal",51),dv=new Ln(fo,"ArrangementFixedRoots",52),Qy=new Ln(fo,"LayerIndividual",60),Jy=new Ln(fo,"LayerSiblings",61),hv=new Ln(fo,"LayerUniform",62);fo.className="TreeLayout",fo.PathDefault=sv,fo.PathDestination=Fd,fo.PathSource=Fp,fo.SortingForwards=Lg,fo.SortingReverse=Am,fo.SortingAscending=Nm,fo.SortingDescending=Lm,fo.AlignmentCenterSubtrees=kg,fo.AlignmentCenterChildren=Bp,fo.AlignmentStart=Bd,fo.AlignmentEnd=_d,fo.AlignmentBus=Rh,fo.AlignmentBusBranching=Ud,fo.AlignmentTopLeftBus=Mh,fo.AlignmentBottomRightBus=oh,fo.CompactionNone=lv,fo.CompactionBlock=km,fo.StyleLayered=uv,fo.StyleLastParents=Zy,fo.StyleAlternating=Ky,fo.StyleRootOnly=Yy,fo.ArrangementVertical=cv,fo.ArrangementHorizontal=Xy,fo.ArrangementFixedRoots=dv,fo.LayerIndividual=Qy,fo.LayerSiblings=Jy,fo.LayerUniform=hv;function _p(a){va.call(this,a)}hn(_p,va),_p.prototype.createVertex=function(){return new Ac(this)},_p.prototype.createEdge=function(){return new Ig(this)},_p.className="TreeNetwork";function Ac(a){ks.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 rt(0,0),this.Da=new cn(0,0),this.la=new rt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Lg,this.hd=vy,this.Kb=0,this.Jb=Bp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=km,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ts,this.wr=!0,this.Dp=ts}hn(Ac,ks),Ac.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)},un.Object.defineProperties(Ac.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,b=0;b<y;b++);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,b=0;b<y;b++);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)}}}),Ac.className="TreeVertex";function Ig(a){zu.call(this,a),this.$t=new rt(0,0)}hn(Ig,zu),Ig.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,b=null,E=null;switch(y.ud){case Fd:b=this.fromVertex,E=this.toVertex;break;case Fp:b=this.toVertex,E=this.fromVertex;break;default:kt("Unhandled path value "+y.ud.toString())}if(b!==null&&E!==null){var x=this.$t;if(x.x!==0||x.y!==0||b.qA){E=b.bounds;var z=zc(b),ne=y.computeLayerSpacing(b),ie=b.rowSpacing;a.vg();var se=a.curve===ic,de=a.isOrthogonal,pe;if(a.uh(),de||se){for(pe=2;4<a.pointsCount;)a.pv(2);var Se=a.i(1),Ne=a.i(2)}else{for(pe=1;3<a.pointsCount;)a.pv(1);Se=a.i(0),Ne=a.i(a.pointsCount-1)}var Oe=a.i(a.pointsCount-1);z===0?(b.alignment===_d?(z=E.bottom+x.y,x.y===0&&Se.y>Oe.y+b.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(b))))):b.alignment===Bd?(z=E.top+x.y,x.y===0&&Se.y<Oe.y-b.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.top-b.la.y+x.y:E.y+E.height/2+x.y,se?(a.m(pe,Se.x,z),pe++,a.m(pe,E.right+ne,z),pe++,a.m(pe,E.right+ne+(x.x-ie)/3,z),pe++,a.m(pe,E.right+ne+2*(x.x-ie)/3,z),pe++,a.m(pe,E.right+ne+(x.x-ie),z),pe++,a.m(pe,Ne.x,z)):(de&&(a.m(pe,E.right+ne/2,Se.y),pe++),a.m(pe,E.right+ne/2,z),pe++,a.m(pe,E.right+ne+x.x-(de?ie/2:ie),z),pe++,de&&a.m(pe,a.i(pe-1).x,Ne.y))):z===90?(b.alignment===_d?(z=E.right+x.x,x.x===0&&Se.x>Oe.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Bd?(z=E.left+x.x,x.x===0&&Se.x<Oe.x-b.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.left-b.la.x+x.x:E.x+E.width/2+x.x,se?(a.m(pe,z,Se.y),pe++,a.m(pe,z,E.bottom+ne),pe++,a.m(pe,z,E.bottom+ne+(x.y-ie)/3),pe++,a.m(pe,z,E.bottom+ne+2*(x.y-ie)/3),pe++,a.m(pe,z,E.bottom+ne+(x.y-ie)),pe++,a.m(pe,z,Ne.y)):(de&&(a.m(pe,Se.x,E.bottom+ne/2),pe++),a.m(pe,z,E.bottom+ne/2),pe++,a.m(pe,z,E.bottom+ne+x.y-(de?ie/2:ie)),pe++,de&&a.m(pe,Ne.x,a.i(pe-1).y))):z===180?(b.alignment===_d?(z=E.bottom+x.y,x.y===0&&Se.y>Oe.y+b.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(b))))):b.alignment===Bd?(z=E.top+x.y,x.y===0&&Se.y<Oe.y-b.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.top-b.la.y+x.y:E.y+E.height/2+x.y,se?(a.m(pe,Se.x,z),pe++,a.m(pe,E.left-ne,z),pe++,a.m(pe,E.left-ne+(x.x+ie)/3,z),pe++,a.m(pe,E.left-ne+2*(x.x+ie)/3,z),pe++,a.m(pe,E.left-ne+(x.x+ie),z),pe++,a.m(pe,Ne.x,z)):(de&&(a.m(pe,E.left-ne/2,Se.y),pe++),a.m(pe,E.left-ne/2,z),pe++,a.m(pe,E.left-ne+x.x+(de?ie/2:ie),z),pe++,de&&a.m(pe,a.i(pe-1).x,Ne.y))):z===270?(b.alignment===_d?(z=E.right+x.x,x.x===0&&Se.x>Oe.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Bd?(z=E.left+x.x,x.x===0&&Se.x<Oe.x-b.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.left-b.la.x+x.x:E.x+E.width/2+x.x,se?(a.m(pe,z,Se.y),pe++,a.m(pe,z,E.top-ne),pe++,a.m(pe,z,E.top-ne+(x.y+ie)/3),pe++,a.m(pe,z,E.top-ne+2*(x.y+ie)/3),pe++,a.m(pe,z,E.top-ne+(x.y+ie)),pe++,a.m(pe,z,Ne.y)):(de&&(a.m(pe,Se.x,E.top-ne/2),pe++),a.m(pe,z,E.top-ne/2),pe++,a.m(pe,z,E.top-ne+x.y+(de?ie/2:ie)),pe++,de&&a.m(pe,Ne.x,a.i(pe-1).y))):kt("Invalid angle "+z),a.zf()}else x=E,a=this.link,E=this.network.layout,y=zc(b),y!==zc(x)&&(ne=E.computeLayerSpacing(b),ie=b.bounds,b=x.bounds,y===0&&b.left-ie.right<ne+1||y===90&&b.top-ie.bottom<ne+1||y===180&&ie.left-b.right<ne+1||y===270&&ie.top-b.bottom<ne+1||(a.vg(),b=a.curve===ic,x=a.isOrthogonal,E=mf(this.fromVertex.alignment),a.uh(),y===0?(y=ie.right+ne/2,b?a.pointsCount===4&&(b=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,b),a.m(3,y,b),a.m(4,y+20,b),a.L(5,a.i(5).x,b)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ie.bottom+ne/2,b?a.pointsCount===4&&(b=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,b,y-20),a.m(3,b,y),a.m(4,b,y+20),a.L(5,b,a.i(5).y)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ie.left-ne/2,b?a.pointsCount===4&&(b=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,b),a.m(3,y,b),a.m(4,y-20,b),a.L(5,a.i(5).x,b)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ie.top-ne/2,b?a.pointsCount===4&&(b=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,b,y+20),a.m(3,b,y),a.m(4,b,y-20),a.L(5,b,a.i(5).y)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},un.Object.defineProperties(Ig.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)}}}),Ig.className="TreeEdge",ta.prototype.initializeStandardTools=function(){this.gb("Action",new ir,this.mouseDownTools),this.gb("Relinking",new Al,this.mouseDownTools),this.gb("LinkReshaping",new Ye,this.mouseDownTools),this.gb("Rotating",new br,this.mouseDownTools),this.gb("Resizing",new Pn,this.mouseDownTools),this.gb("Linking",new il,this.mouseMoveTools),this.gb("Dragging",new la,this.mouseMoveTools),this.gb("DragSelecting",new Br,this.mouseMoveTools),this.gb("Panning",new dr,this.mouseMoveTools),this.gb("ContextMenu",new ea,this.mouseUpTools),this.gb("TextEditing",new bo,this.mouseUpTools),this.gb("ClickCreating",new Yr,this.mouseUpTools),this.gb("ClickSelecting",new wr,this.mouseUpTools)},md("Horizontal",new zm),md("Spot",new jm),md("Table",new Wm),md("Viewbox",new Ym),md("TableRow",new Zm),md("TableColumn",new Km),md("Graduated",new Zg),md("Grid",new Wg),Ff.add("GraphLinksModel",Hs),Ff.add("TreeModel",mc);var fv=sr.go,qy={get licenseKey(){return kn.licenseKey},set licenseKey(a){kn.licenseKey=a},get version(){return kn.version},Group:$i,EnumValue:Ln,List:rr,Set:ur,Map:Rn,Point:rt,Size:cn,Rect:An,Margin:Qi,Spot:_r,Geometry:Lr,PathFigure:Va,PathSegment:wo,InputEvent:As,DiagramEvent:Fu,ChangedEvent:ga,Model:Ei,GraphLinksModel:Io,TreeModel:eu,Binding:us,Transaction:Wa,UndoManager:$o,CommandHandler:Et,Tool:vo,DraggingTool:la,DraggingInfo:Jc,DraggingOptions:le,LinkingBaseTool:La,LinkingTool:il,RelinkingTool:Al,LinkReshapingTool:Ye,ResizingTool:Pn,RotatingTool:br,ClickSelectingTool:wr,ActionTool:ir,ClickCreatingTool:Yr,HTMLInfo:Co,ContextMenuTool:ea,DragSelectingTool:Br,PanningTool:dr,TextEditingTool:bo,ToolManager:ta,Animation:li,AnimationManager:qs,AnimationTrigger:Fl,Layer:Rs,Diagram:kn,Palette:ye,Overview:xe,Brush:Fo,GraphObject:tn,Panel:Nr,RowColumnDefinition:ws,Shape:ro,TextBlock:ma,Picture:yu,Part:ki,Adornment:_o,Node:ii,Link:Mr,Placeholder:Ql,Layout:Na,LayoutNetwork:va,LayoutVertex:ks,LayoutEdge:zu,GridLayout:tl,PanelLayout:Ls,CircularLayout:Oa,CircularNetwork:Tg,CircularVertex:bm,CircularEdge:K0,ForceDirectedLayout:yl,ForceDirectedNetwork:Mp,ForceDirectedVertex:Em,ForceDirectedEdge:xm,LayeredDigraphLayout:qo,LayeredDigraphNetwork:Ng,LayeredDigraphVertex:yc,LayeredDigraphEdge:Pm,TreeLayout:fo,TreeNetwork:_p,TreeVertex:Ac,TreeEdge:Ig};typeof fv=="object"&&fv.version&&Qr("WARNING: a `go` object on the root object is already defined. "+("Debug"in fv?"debug ":"")+"version: "+fv.version+", replaced with version: "+qy.version),kn.prototype.go=qy,sr.go=qy,typeof Ze.exports=="object"&&(Ze.exports=typeof ae.g!="undefined"?ae.g.go:self.go)}();var oe=typeof ae.g!="undefined"?ae.g.go:self.go;const Pe=typeof ae.g!="undefined"?ae.g.go:self.go,Ie=Pe.Group,ke=Pe.EnumValue,Ve=Pe.List,Te=Pe.Set,ze=Pe.Map,st=Pe.Point,Qe=Pe.Size,Ue=Pe.Rect,St=Pe.Margin,$e=Pe.Spot,Dt=Pe.Geometry,Fe=Pe.PathFigure,te=Pe.PathSegment,ee=Pe.InputEvent,he=Pe.DiagramEvent,ue=Pe.ChangedEvent,fe=Pe.Model,me=Pe.GraphLinksModel,be=Pe.TreeModel,Ae=Pe.Binding,De=Pe.Transaction,We=Pe.UndoManager,nt=Pe.CommandHandler,qe=Pe.Tool,ot=Pe.DraggingTool,mt=Pe.DraggingInfo,at=Pe.LinkingBaseTool,vt=Pe.LinkingTool,wt=Pe.RelinkingTool,At=Pe.LinkReshapingTool,Ht=Pe.ResizingTool,Qt=Pe.RotatingTool,Zt=Pe.ClickSelectingTool,ln=Pe.ActionTool,Nt=Pe.ClickCreatingTool,gt=Pe.HTMLInfo,ct=Pe.ContextMenuTool,Jt=Pe.DragSelectingTool,sn=Pe.PanningTool,It=Pe.TextEditingTool,wn=Pe.ToolManager,bn=Pe.Animation,_n=Pe.AnimationManager,Xt=Pe.AnimationTrigger,zn=Pe.Layer,Ot=Pe.Diagram,jn=Pe.Palette,cr=Pe.Overview,it=Pe.Brush,_e=Pe.GraphObject,Re=Pe.Panel,Xe=Pe.RowColumnDefinition,lt=Pe.Shape,Be=Pe.TextBlock,bt=Pe.TextBlockMetrics,Wt=Pe.Picture,yn=Pe.Part,On=Pe.Adornment,Pt=Pe.Node,Vt=Pe.Link,zt=Pe.Placeholder,pn=Pe.Layout,Tn=Pe.LayoutNetwork,gn=Pe.LayoutVertex,Mt=Pe.LayoutEdge,Un=Pe.GridLayout,Yt=Pe.PanelLayout,on=Pe.CircularLayout,mn=Pe.CircularNetwork,er=Pe.CircularVertex,Sn=Pe.CircularEdge,ht=Pe.ForceDirectedLayout,tr=Pe.ForceDirectedNetwork,lr=Pe.ForceDirectedVertex,qt=Pe.ForceDirectedEdge,yr=Pe.LayeredDigraphLayout,ri=Pe.LayeredDigraphNetwork,Or=Pe.LayeredDigraphVertex,Nn=Pe.LayeredDigraphEdge,ui=Pe.TreeLayout,$r=Pe.TreeNetwork,or=Pe.TreeVertex,Kr=Pe.TreeEdge,oi=Pe.version},46963:function(Ze){"use strict";Ze.exports=ae;var Ee=/[#.]/g;function ae(oe,Pe){for(var Ie=oe||"",ke=Pe||"div",Ve={},Te=0,ze,st,Qe;Te<Ie.length;)Ee.lastIndex=Te,Qe=Ee.exec(Ie),ze=Ie.slice(Te,Qe?Qe.index:Ie.length),ze&&(st?st==="#"?Ve.id=ze:Ve.className?Ve.className.push(ze):Ve.className=[ze]:ke=ze,Te+=ze.length),Qe&&(st=Qe[0],Te++);return{type:"element",tagName:ke,properties:Ve,children:[]}}},5641:function(Ze,Ee,ae){"use strict";var oe=ae(88914),Pe=ae(47178),Ie=ae(46963),ke=ae(92848).Q,Ve=ae(58951).Q;Ze.exports=ze;var Te={}.hasOwnProperty;function ze(te,ee,he){var ue=he?Fe(he):null;return fe;function fe(be,Ae){var De=Ie(be,ee),We=Array.prototype.slice.call(arguments,2),nt=De.tagName.toLowerCase(),qe;if(De.tagName=ue&&Te.call(ue,nt)?ue[nt]:nt,Ae&&st(Ae,De)&&(We.unshift(Ae),Ae=null),Ae)for(qe in Ae)me(De.properties,qe,Ae[qe]);return Ue(De.children,We),De.tagName==="template"&&(De.content={type:"root",children:De.children},De.children=[]),De}function me(be,Ae,De){var We,nt,qe;De==null||De!==De||(We=oe(te,Ae),nt=We.property,qe=De,typeof qe=="string"&&(We.spaceSeparated?qe=ke(qe):We.commaSeparated?qe=Ve(qe):We.commaOrSpaceSeparated&&(qe=ke(Ve(qe).join(" ")))),nt==="style"&&typeof De!="string"&&(qe=Dt(qe)),nt==="className"&&be.className&&(qe=be.className.concat(qe)),be[nt]=St(We,nt,qe))}}function st(te,ee){return typeof te=="string"||"length"in te||Qe(ee.tagName,te)}function Qe(te,ee){var he=ee.type;return te==="input"||!he||typeof he!="string"?!1:typeof ee.children=="object"&&"length"in ee.children?!0:(he=he.toLowerCase(),te==="button"?he!=="menu"&&he!=="submit"&&he!=="reset"&&he!=="button":"value"in ee)}function Ue(te,ee){var he,ue;if(typeof ee=="string"||typeof ee=="number"){te.push({type:"text",value:String(ee)});return}if(typeof ee=="object"&&"length"in ee){for(he=-1,ue=ee.length;++he<ue;)Ue(te,ee[he]);return}if(typeof ee!="object"||!("type"in ee))throw new Error("Expected node, nodes, or string, got `"+ee+"`");te.push(ee)}function St(te,ee,he){var ue,fe,me;if(typeof he!="object"||!("length"in he))return $e(te,ee,he);for(fe=he.length,ue=-1,me=[];++ue<fe;)me[ue]=$e(te,ee,he[ue]);return me}function $e(te,ee,he){var ue=he;return te.number||te.positiveNumber?!isNaN(ue)&&ue!==""&&(ue=Number(ue)):(te.boolean||te.overloadedBoolean)&&typeof ue=="string"&&(ue===""||Pe(he)===Pe(ee))&&(ue=!0),ue}function Dt(te){var ee=[],he;for(he in te)ee.push([he,te[he]].join(": "));return ee.join("; ")}function Fe(te){for(var ee=te.length,he=-1,ue={},fe;++he<ee;)fe=te[he],ue[fe.toLowerCase()]=fe;return ue}},82073:function(Ze,Ee,ae){"use strict";var oe=ae(18795),Pe=ae(5641),Ie=Pe(oe,"div");Ie.displayName="html",Ze.exports=Ie},43621:function(Ze,Ee,ae){"use strict";Ze.exports=ae(82073)},93193:function(Ze){var Ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ae=/\n/g,oe=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ie=/^:\s*/,ke=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ve=/^[;\s]*/,Te=/^\s+|\s+$/g,ze=`
`,st="/",Qe="*",Ue="",St="comment",$e="declaration";Ze.exports=function(Fe,te){if(typeof Fe!="string")throw new TypeError("First argument must be a string");if(!Fe)return[];te=te||{};var ee=1,he=1;function ue(at){var vt=at.match(ae);vt&&(ee+=vt.length);var wt=at.lastIndexOf(ze);he=~wt?at.length-wt:he+at.length}function fe(){var at={line:ee,column:he};return function(vt){return vt.position=new me(at),We(),vt}}function me(at){this.start=at,this.end={line:ee,column:he},this.source=te.source}me.prototype.content=Fe;var be=[];function Ae(at){var vt=new Error(te.source+":"+ee+":"+he+": "+at);if(vt.reason=at,vt.filename=te.source,vt.line=ee,vt.column=he,vt.source=Fe,te.silent)be.push(vt);else throw vt}function De(at){var vt=at.exec(Fe);if(vt){var wt=vt[0];return ue(wt),Fe=Fe.slice(wt.length),vt}}function We(){De(oe)}function nt(at){var vt;for(at=at||[];vt=qe();)vt!==!1&&at.push(vt);return at}function qe(){var at=fe();if(!(st!=Fe.charAt(0)||Qe!=Fe.charAt(1))){for(var vt=2;Ue!=Fe.charAt(vt)&&(Qe!=Fe.charAt(vt)||st!=Fe.charAt(vt+1));)++vt;if(vt+=2,Ue===Fe.charAt(vt-1))return Ae("End of comment missing");var wt=Fe.slice(2,vt-2);return he+=2,ue(wt),Fe=Fe.slice(vt),he+=2,at({type:St,comment:wt})}}function ot(){var at=fe(),vt=De(Pe);if(vt){if(qe(),!De(Ie))return Ae("property missing ':'");var wt=De(ke),At=at({type:$e,property:Dt(vt[0].replace(Ee,Ue)),value:wt?Dt(wt[0].replace(Ee,Ue)):Ue});return De(Ve),At}}function mt(){var at=[];nt(at);for(var vt;vt=ot();)vt!==!1&&(at.push(vt),nt(at));return at}return We(),mt()};function Dt(Fe){return Fe?Fe.replace(Te,Ue):Ue}},91241:function(Ze){"use strict";Ze.exports=Ee;function Ee(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=97&&oe<=122||oe>=65&&oe<=90}},21127:function(Ze,Ee,ae){"use strict";var oe=ae(91241),Pe=ae(22347);Ze.exports=Ie;function Ie(ke){return oe(ke)||Pe(ke)}},22347:function(Ze){"use strict";Ze.exports=Ee;function Ee(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=48&&oe<=57}},65207:function(Ze){"use strict";Ze.exports=Ee;function Ee(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=97&&oe<=102||oe>=65&&oe<=70||oe>=48&&oe<=57}},24334:function(Ze,Ee,ae){var oe,Pe;(function(Ie,ke){Ze.exports=ke(Ie)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(Ie){"use strict";Ie=Ie||{};var ke=Ie.Base64,Ve="2.6.4",Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=function(wt){for(var At={},Ht=0,Qt=wt.length;Ht<Qt;Ht++)At[wt.charAt(Ht)]=Ht;return At}(Te),st=String.fromCharCode,Qe=function(wt){if(wt.length<2){var At=wt.charCodeAt(0);return At<128?wt:At<2048?st(192|At>>>6)+st(128|At&63):st(224|At>>>12&15)+st(128|At>>>6&63)+st(128|At&63)}else{var At=65536+(wt.charCodeAt(0)-55296)*1024+(wt.charCodeAt(1)-56320);return st(240|At>>>18&7)+st(128|At>>>12&63)+st(128|At>>>6&63)+st(128|At&63)}},Ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,St=function(wt){return wt.replace(Ue,Qe)},$e=function(wt){var At=[0,2,1][wt.length%3],Ht=wt.charCodeAt(0)<<16|(wt.length>1?wt.charCodeAt(1):0)<<8|(wt.length>2?wt.charCodeAt(2):0),Qt=[Te.charAt(Ht>>>18),Te.charAt(Ht>>>12&63),At>=2?"=":Te.charAt(Ht>>>6&63),At>=1?"=":Te.charAt(Ht&63)];return Qt.join("")},Dt=Ie.btoa&&typeof Ie.btoa=="function"?function(wt){return Ie.btoa(wt)}:function(wt){if(wt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return wt.replace(/[\s\S]{1,3}/g,$e)},Fe=function(wt){return Dt(St(String(wt)))},te=function(wt){return wt.replace(/[+\/]/g,function(At){return At=="+"?"-":"_"}).replace(/=/g,"")},ee=function(wt,At){return At?te(Fe(wt)):Fe(wt)},he=function(wt){return ee(wt,!0)},ue;Ie.Uint8Array&&(ue=function(wt,At){for(var Ht="",Qt=0,Zt=wt.length;Qt<Zt;Qt+=3){var ln=wt[Qt],Nt=wt[Qt+1],gt=wt[Qt+2],ct=ln<<16|Nt<<8|gt;Ht+=Te.charAt(ct>>>18)+Te.charAt(ct>>>12&63)+(typeof Nt!="undefined"?Te.charAt(ct>>>6&63):"=")+(typeof gt!="undefined"?Te.charAt(ct&63):"=")}return At?te(Ht):Ht});var fe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(wt){switch(wt.length){case 4:var At=(7&wt.charCodeAt(0))<<18|(63&wt.charCodeAt(1))<<12|(63&wt.charCodeAt(2))<<6|63&wt.charCodeAt(3),Ht=At-65536;return st((Ht>>>10)+55296)+st((Ht&1023)+56320);case 3:return st((15&wt.charCodeAt(0))<<12|(63&wt.charCodeAt(1))<<6|63&wt.charCodeAt(2));default:return st((31&wt.charCodeAt(0))<<6|63&wt.charCodeAt(1))}},be=function(wt){return wt.replace(fe,me)},Ae=function(wt){var At=wt.length,Ht=At%4,Qt=(At>0?ze[wt.charAt(0)]<<18:0)|(At>1?ze[wt.charAt(1)]<<12:0)|(At>2?ze[wt.charAt(2)]<<6:0)|(At>3?ze[wt.charAt(3)]:0),Zt=[st(Qt>>>16),st(Qt>>>8&255),st(Qt&255)];return Zt.length-=[0,0,2,1][Ht],Zt.join("")},De=Ie.atob&&typeof Ie.atob=="function"?function(wt){return Ie.atob(wt)}:function(wt){return wt.replace(/\S{1,4}/g,Ae)},We=function(wt){return De(String(wt).replace(/[^A-Za-z0-9\+\/]/g,""))},nt=function(wt){return be(De(wt))},qe=function(wt){return String(wt).replace(/[-_]/g,function(At){return At=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ot=function(wt){return nt(qe(wt))},mt;Ie.Uint8Array&&(mt=function(wt){return Uint8Array.from(We(qe(wt)),function(At){return At.charCodeAt(0)})});var at=function(){var wt=Ie.Base64;return Ie.Base64=ke,wt};if(Ie.Base64={VERSION:Ve,atob:We,btoa:Dt,fromBase64:ot,toBase64:ee,utob:St,encode:ee,encodeURI:he,btou:be,decode:ot,noConflict:at,fromUint8Array:ue,toUint8Array:mt},typeof Object.defineProperty=="function"){var vt=function(wt){return{value:wt,enumerable:!1,writable:!0,configurable:!0}};Ie.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",vt(function(){return ot(this)})),Object.defineProperty(String.prototype,"toBase64",vt(function(wt){return ee(this,wt)})),Object.defineProperty(String.prototype,"toBase64URI",vt(function(){return ee(this,!0)}))}}return Ie.Meteor&&(Base64=Ie.Base64),Ze.exports?Ze.exports.Base64=Ie.Base64:(oe=[],Pe=function(){return Ie.Base64}.apply(Ee,oe),Pe!==void 0&&(Ze.exports=Pe)),{Base64:Ie.Base64}})},2859:function(Ze,Ee,ae){"use strict";ae.d(Ee,{hP:function(){return cr}});var oe=function(it,_e){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Re,Xe){Re.__proto__=Xe}||function(Re,Xe){for(var lt in Xe)Object.prototype.hasOwnProperty.call(Xe,lt)&&(Re[lt]=Xe[lt])})(it,_e)};function Pe(it,_e){function Re(){this.constructor=it}oe(it,_e),it.prototype=_e===null?Object.create(_e):(Re.prototype=_e.prototype,new Re)}function Ie(it,_e,Re,Xe){return new(Re||(Re=Promise))(function(lt,Be){function bt(On){try{yn(Xe.next(On))}catch(Pt){Be(Pt)}}function Wt(On){try{yn(Xe.throw(On))}catch(Pt){Be(Pt)}}function yn(On){var Pt;On.done?lt(On.value):(Pt=On.value,Pt instanceof Re?Pt:new Re(function(Vt){Vt(Pt)})).then(bt,Wt)}yn((Xe=Xe.apply(it,_e||[])).next())})}function ke(it,_e){var Re,Xe,lt,Be,bt={label:0,sent:function(){if(1&lt[0])throw lt[1];return lt[1]},trys:[],ops:[]};return Be={next:Wt(0),throw:Wt(1),return:Wt(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function Wt(yn){return function(On){return function(Pt){if(Re)throw new TypeError("Generator is already executing.");for(;bt;)try{if(Re=1,Xe&&(lt=2&Pt[0]?Xe.return:Pt[0]?Xe.throw||((lt=Xe.return)&&lt.call(Xe),0):Xe.next)&&!(lt=lt.call(Xe,Pt[1])).done)return lt;switch(Xe=0,lt&&(Pt=[2&Pt[0],lt.value]),Pt[0]){case 0:case 1:lt=Pt;break;case 4:return bt.label++,{value:Pt[1],done:!1};case 5:bt.label++,Xe=Pt[1],Pt=[0];continue;case 7:Pt=bt.ops.pop(),bt.trys.pop();continue;default:if(lt=bt.trys,!((lt=lt.length>0&&lt[lt.length-1])||Pt[0]!==6&&Pt[0]!==2)){bt=0;continue}if(Pt[0]===3&&(!lt||Pt[1]>lt[0]&&Pt[1]<lt[3])){bt.label=Pt[1];break}if(Pt[0]===6&&bt.label<lt[1]){bt.label=lt[1],lt=Pt;break}if(lt&&bt.label<lt[2]){bt.label=lt[2],bt.ops.push(Pt);break}lt[2]&&bt.ops.pop(),bt.trys.pop();continue}Pt=_e.call(it,bt)}catch(Vt){Pt=[6,Vt],Xe=0}finally{Re=lt=0}if(5&Pt[0])throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}([yn,On])}}}function Ve(){for(var it=0,_e=0,Re=arguments.length;_e<Re;_e++)it+=arguments[_e].length;var Xe=Array(it),lt=0;for(_e=0;_e<Re;_e++)for(var Be=arguments[_e],bt=0,Wt=Be.length;bt<Wt;bt++,lt++)Xe[lt]=Be[bt];return Xe}var Te=function(){function it(){}return it.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},it.setAttributes=function(_e,Re){for(var Xe=0,lt=Re;Xe<lt.length;Xe++){var Be=lt[Xe],bt=Be[0],Wt=Be[1];_e.setAttribute(bt,Wt)}},it.createRect=function(_e,Re,Xe){var lt=document.createElementNS("http://www.w3.org/2000/svg","rect");return lt.setAttribute("width",_e.toString()),lt.setAttribute("height",Re.toString()),Xe&&it.setAttributes(lt,Xe),lt},it.createLine=function(_e,Re,Xe,lt,Be){var bt=document.createElementNS("http://www.w3.org/2000/svg","line");return bt.setAttribute("x1",_e.toString()),bt.setAttribute("y1",Re.toString()),bt.setAttribute("x2",Xe.toString()),bt.setAttribute("y2",lt.toString()),Be&&it.setAttributes(bt,Be),bt},it.createPolygon=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Xe.setAttribute("points",_e),Re&&it.setAttributes(Xe,Re),Xe},it.createCircle=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Xe.setAttribute("cx",(_e/2).toString()),Xe.setAttribute("cy",(_e/2).toString()),Xe.setAttribute("r",_e.toString()),Re&&it.setAttributes(Xe,Re),Xe},it.createEllipse=function(_e,Re,Xe){var lt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return lt.setAttribute("cx",(_e/2).toString()),lt.setAttribute("cy",(Re/2).toString()),lt.setAttribute("rx",(_e/2).toString()),lt.setAttribute("ry",(Re/2).toString()),Xe&&it.setAttributes(lt,Xe),lt},it.createGroup=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","g");return _e&&it.setAttributes(Re,_e),Re},it.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},it.createMarker=function(_e,Re,Xe,lt,Be,bt,Wt){var yn=document.createElementNS("http://www.w3.org/2000/svg","marker");return it.setAttributes(yn,[["id",_e],["orient",Re],["markerWidth",Xe.toString()],["markerHeight",lt.toString()],["refX",Be.toString()],["refY",bt.toString()]]),yn.appendChild(Wt),yn},it.createText=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","text");return Re.setAttribute("x","0"),Re.setAttribute("y","0"),_e&&it.setAttributes(Re,_e),Re},it.createTSpan=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Xe.textContent=_e,Re&&it.setAttributes(Xe,Re),Xe},it.createImage=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","image");return _e&&it.setAttributes(Re,_e),Re},it.createPoint=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Xe.x=_e,Xe.y=Re,Xe},it.createPath=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","path");return Xe.setAttribute("d",_e),Re&&it.setAttributes(Xe,Re),Xe},it}(),ze=function(){function it(){}return it.addKey=function(_e){it.key=_e},Object.defineProperty(it,"isLicensed",{get:function(){return!!it.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(it.key)},enumerable:!1,configurable:!0}),it}(),st=function(){function it(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return it.prototype.rasterize=function(_e,Re,Xe){var lt=this;return new Promise(function(Be){var bt=Xe!==void 0?Xe:document.createElement("canvas");_e===null&&(lt.markersOnly=!0,lt.naturalSize=!1);var Wt=document.createElementNS("http://www.w3.org/2000/svg","svg");Wt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Wt.setAttribute("width",Re.width.baseVal.valueAsString),Wt.setAttribute("height",Re.height.baseVal.valueAsString),Wt.setAttribute("viewBox","0 0 "+Re.viewBox.baseVal.width.toString()+" "+Re.viewBox.baseVal.height.toString()),Wt.innerHTML=Re.innerHTML,lt.naturalSize===!0?(Wt.width.baseVal.value=_e.naturalWidth,Wt.height.baseVal.value=_e.naturalHeight):lt.width!==void 0&&lt.height!==void 0&&(Wt.width.baseVal.value=lt.width,Wt.height.baseVal.value=lt.height),bt.width=Wt.width.baseVal.value,bt.height=Wt.height.baseVal.value;var yn=Wt.outerHTML,On=bt.getContext("2d");lt.markersOnly!==!0&&On.drawImage(_e,0,0,bt.width,bt.height);var Pt=window.URL,Vt=new Image(bt.width,bt.height);Vt.setAttribute("crossOrigin","anonymous");var zt=new Blob([yn],{type:"image/svg+xml"}),pn=Pt.createObjectURL(zt);Vt.onload=function(){On.drawImage(Vt,0,0),Pt.revokeObjectURL(pn);var Tn=bt.toDataURL(lt.imageType,lt.imageQuality);Be(Tn)},Vt.src=pn})},it}(),Qe=function(){},Ue=function(){function it(_e){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+_e+"_"}return Object.defineProperty(it.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(it.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(it.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),it.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},it.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)},it.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 St("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new St("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new St("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new $e("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new $e("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},it.prototype.removeStyleSheet=function(){var _e;this.styleSheet&&(((_e=this.styleSheetRoot)!==null&&_e!==void 0?_e:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},it}(),St=function(it,_e){this.selector=it,this.style=_e},$e=function(it,_e){this.localName=it,this.style=_e},Dt=function(){function it(_e,Re,Xe,lt,Be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=_e,this.displayMode=Re,this.markerItems=Xe,this.uiStyleSettings=lt,this.styles=Be,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return it.prototype.show=function(_e){var Re=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 Xe=document.createElement("div");Xe.className=this.toolbarBlockStyleClass.name,Xe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Xe),this.addActionButton(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Xe,'<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(Be){var bt=document.createElement("div");bt.className=""+Re.toolbarButtonStyleClass.name,bt.setAttribute("data-type-name",Be.typeName),bt.innerHTML=Be.icon,bt.addEventListener("click",function(){Re.markerToolbarButtonClicked(bt,Be)}),Re.buttons.push(bt),Re.markerButtons.push(bt)}),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 lt=document.createElement("div");lt.className=this.toolbarBlockStyleClass.name,lt.style.whiteSpace="nowrap",lt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(lt),this.addActionButton(lt,'<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(lt,'<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()},it.prototype.addButtonClickListener=function(_e){this.buttonClickListeners.push(_e)},it.prototype.removeButtonClickListener=function(_e){this.buttonClickListeners.indexOf(_e)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(_e),1)},it.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},it.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 Re=0;Re<this.markerButtons.length;Re++)Re<_e||Re===_e&&this.markerButtons.length-1===_e?this.markerButtonBlock.appendChild(this.markerButtons[Re]):(Re===_e&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Re]))}},it.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")},it.prototype.resetButtonStyles=function(){var _e=this;this.buttons.forEach(function(Re){Re.className=Re.className.replace(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name,"").trim(),Re.className=Re.className.replace(_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:_e.toolbarActiveButtonStyleColorsClass.name,"").trim(),Re.className+=" "+(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name)})},it.prototype.addActionButton=function(_e,Re,Xe){var lt=this,Be=document.createElement("div");switch(Be.className=""+this.toolbarButtonStyleClass.name,Be.innerHTML=Re,Be.setAttribute("data-action",Xe),Be.addEventListener("click",function(){lt.actionToolbarButtonClicked(Be,Xe)}),Xe){case"select":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Be.style.fill=this.uiStyleSettings.closeButtonColor}_e.appendChild(Be),this.buttons.push(Be)},it.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new $e("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new $e("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new $e("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new $e("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new $e("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var _e=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new $e("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 $e("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new St("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new St("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},it.prototype.markerToolbarButtonClicked=function(_e,Re){this.setActiveButton(_e),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("marker",Re)}),this.markerButtonOverflowBlock.style.display="none"},it.prototype.actionToolbarButtonClicked=function(_e,Re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("action",Re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},it.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)},it.prototype.setActiveMarkerButton=function(_e){var Re=this.markerButtons.find(function(Xe){return Xe.getAttribute("data-type-name")===_e});Re&&this.setActiveButton(Re)},it.prototype.setCurrentMarker=function(_e){var Re=this;this.currentMarker=_e,this.buttons.filter(function(Xe){return/delete|notes/.test(Xe.getAttribute("data-action"))}).forEach(function(Xe){Re.currentMarker===void 0?(Xe.style.fillOpacity="0.4",Xe.style.pointerEvents="none"):(Xe.style.fillOpacity="1",Xe.style.pointerEvents="all")})},it}(),Fe=function(){function it(_e,Re,Xe,lt){this.panels=[],this.panelButtons=[],this.markerjsContainer=_e,this.displayMode=Re,this.uiStyleSettings=Xe,this.styles=lt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return it.prototype.addStyles=function(){var _e;this.toolboxStyleClass=this.styles.addClass(new $e("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new $e("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new $e("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new $e("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new $e("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new $e("toolbox-panel-row_colors",`
background-color: `+((_e=this.uiStyleSettings.toolboxBackgroundColor)!==null&&_e!==void 0?_e:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new $e("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Re)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Re)+`px;
padding: `+Re+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new St("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new St("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},it.prototype.show=function(_e){var Re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=_e,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},it.prototype.setPanelButtons=function(_e){var Re,Xe,lt=this;this.panels=_e,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Xe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Xe!==void 0?Xe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Be){var bt;Be.uiStyleSettings=lt.uiStyleSettings;var Wt=document.createElement("div");Wt.className=lt.toolboxButtonStyleClass.name+" "+((bt=lt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&bt!==void 0?bt:lt.toolboxButtonStyleColorsClass.name),Wt.innerHTML=Be.icon,Wt.title=Be.title,Wt.addEventListener("click",function(){lt.panelButtonClick(Be)}),lt.panelButtons.push(Wt),lt.buttonRow.appendChild(Wt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},it.prototype.panelButtonClick=function(_e){var Re=this,Xe=-1;if(_e!==this.activePanel){Xe=this.panels.indexOf(_e),this.panelRow.innerHTML="";var lt=_e.getUi();lt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(lt),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(){Re.displayMode==="inline"?Re.panelRow.style.display="none":Re.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Be,bt){var Wt,yn;Be.className=Re.toolboxButtonStyleClass.name+" "+(bt===Xe?""+((Wt=Re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Wt!==void 0?Wt:Re.toolboxActiveButtonStyleColorsClass.name):""+((yn=Re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&yn!==void 0?yn:Re.toolboxButtonStyleColorsClass.name))})},it}(),te=function(it,_e){this.title=it,this.icon=_e},ee=function(it){function _e(Re,Xe,lt,Be){var bt=it.call(this,Re,Be||'<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 bt.colors=[],bt.addTransparent=!1,bt.colorBoxes=[],bt.colors=Xe,bt.currentColor=lt,bt.setCurrentColor=bt.setCurrentColor.bind(bt),bt.getColorBox=bt.getColorBox.bind(bt),bt}return Pe(_e,it),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.whiteSpace="nowrap",this.colors.forEach(function(lt){var Be=Re.getColorBox(lt);Xe.appendChild(Be),Re.colorBoxes.push(Be)}),Xe},_e.prototype.getColorBox=function(Re){var Xe=this,lt=this.uiStyleSettings.toolbarHeight/4,Be=this.uiStyleSettings.toolbarHeight-lt,bt=document.createElement("div");bt.style.display="inline-block",bt.style.boxSizing="content-box",bt.style.width=Be-2+"px",bt.style.height=Be-2+"px",bt.style.padding="1px",bt.style.marginRight="2px",bt.style.marginBottom="2px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.borderRadius=(Be+2)/2+"px",bt.style.borderColor=Re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){Xe.setCurrentColor(Re,bt)});var Wt=document.createElement("div");return Wt.style.display="inline-block",Wt.style.width=Be-2+"px",Wt.style.height=Be-2+"px",Wt.style.backgroundColor=Re,Wt.style.borderRadius=Be/2+"px",Re==="transparent"&&(Wt.style.fill=this.uiStyleSettings.toolboxAccentColor,Wt.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>`),bt.appendChild(Wt),bt},_e.prototype.setCurrentColor=function(Re,Xe){var lt=this;this.currentColor=Re,this.colorBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Re)},_e}(te),he=function(){function it(_e,Re,Xe){this._state="new",this._isSelected=!1,this._container=_e,this._overlayContainer=Re,this.globalSettings=Xe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(it.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),it.prototype.ownsTarget=function(_e){return!1},Object.defineProperty(it.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),it.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},it.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},it.prototype.pointerDown=function(_e,Re){},it.prototype.dblClick=function(_e,Re){},it.prototype.manipulate=function(_e){},it.prototype.pointerUp=function(_e){this.stateChanged()},it.prototype.dispose=function(){},it.prototype.addMarkerVisualToContainer=function(_e){this.container.childNodes.length>0?this.container.insertBefore(_e,this.container.childNodes[0]):this.container.appendChild(_e)},it.prototype.getState=function(){return{typeName:it.typeName,state:this.state,notes:this.notes}},it.prototype.restoreState=function(_e){this._state=_e.state,this.notes=_e.notes},it.prototype.scale=function(_e,Re){},it.prototype.colorChanged=function(_e){this.onColorChanged&&this.onColorChanged(_e),this.stateChanged()},it.prototype.fillColorChanged=function(_e){this.onFillColorChanged&&this.onFillColorChanged(_e),this.stateChanged()},it.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)}},it.typeName="MarkerBase",it}(),ue=function(){function it(){this.findGripByVisual=this.findGripByVisual.bind(this)}return it.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},it}(),fe=function(){function it(){this.GRIP_SIZE=10,this.visual=Te.createGroup(),this.visual.appendChild(Te.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Te.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return it.prototype.ownsTarget=function(_e){return _e===this.visual||_e===this.visual.childNodes[0]||_e===this.visual.childNodes[1]},it}(),me=function(){function it(){}return it.toITransformMatrix=function(_e){return{a:_e.a,b:_e.b,c:_e.c,d:_e.d,e:_e.e,f:_e.f}},it.toSVGMatrix=function(_e,Re){return _e.a=Re.a,_e.b=Re.b,_e.c=Re.c,_e.d=Re.d,_e.e=Re.e,_e.f=Re.f,_e},it}(),be=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.left=0,Be.top=0,Be.width=0,Be.height=0,Be.defaultSize={x:50,y:20},Be.offsetX=0,Be.offsetY=0,Be.rotationAngle=0,Be.CB_DISTANCE=10,Be._suppressMarkerCreateEvent=!1,Be.container.transform.baseVal.appendItem(Te.createTransform()),Be.setupControlBox(),Be}return Pe(_e,it),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(Re){this._visual=Re;var Xe=Te.createTransform();this._visual.transform.baseVal.appendItem(Xe)},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(Re){return!!it.prototype.ownsTarget.call(this,Re)||!!(this.controlGrips.findGripByVisual(Re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Re))},_e.prototype.pointerDown=function(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.state==="new"&&(this.left=Re.x,this.top=Re.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var lt=this.unrotatePoint(Re);if(this.manipulationStartX=lt.x,this.manipulationStartY=lt.y,this.offsetX=lt.x-this.left,this.offsetY=lt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Xe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Xe)){this.activeGrip=this.rotatorGrip;var Be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Be.x-this.width/2,this.top=Be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var bt=this.container.transform.baseVal.getItem(0);bt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(bt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},_e.prototype.pointerUp=function(Re){var Xe=this.state;it.prototype.pointerUp.call(this,Re),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Re),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},_e.prototype.moveVisual=function(Re){this.visual.style.transform="translate("+Re.x+"px, "+Re.y+"px)"},_e.prototype.manipulate=function(Re){var Xe=this.unrotatePoint(Re);this.state==="creating"?this.resize(Re):this.state==="move"?(this.left=this.manipulationStartLeft+(Xe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Xe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Xe):this.state==="rotate"&&this.rotate(Re)},_e.prototype.resize=function(Re){var Xe=this.manipulationStartLeft,lt=this.manipulationStartWidth,Be=this.manipulationStartTop,bt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Xe=this.manipulationStartLeft+Re.x-this.manipulationStartX,lt=this.manipulationStartWidth+this.manipulationStartLeft-Xe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:lt=this.manipulationStartWidth+Re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Be=this.manipulationStartTop+Re.y-this.manipulationStartY,bt=this.manipulationStartHeight+this.manipulationStartTop-Be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:bt=this.manipulationStartHeight+Re.y-this.manipulationStartY}lt>=0?(this.left=Xe,this.width=lt):(this.left=Xe+lt,this.width=-lt),bt>=0?(this.top=Be,this.height=bt):(this.top=Be+bt,this.height=-bt),this.setSize()},_e.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},_e.prototype.rotate=function(Re){if(Math.abs(Re.x-this.centerX)>.1){var Xe=Math.sign(Re.x-this.centerX);this.rotationAngle=180*Math.atan((Re.y-this.centerY)/(Re.x-this.centerX))/Math.PI+90*Xe,this.applyRotation()}},_e.prototype.applyRotation=function(){var Re=this.container.transform.baseVal.getItem(0);Re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Re,0)},_e.prototype.rotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Xe=this.container.getCTM(),lt=Te.createPoint(Re.x,Re.y);return{x:(lt=lt.matrixTransform(Xe)).x,y:lt.y}},_e.prototype.unrotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Xe=this.container.getCTM();Xe=Xe.inverse();var lt=Te.createPoint(Re.x,Re.y);return{x:(lt=lt.matrixTransform(Xe)).x,y:lt.y}},_e.prototype.select=function(){it.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){it.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Te.createGroup();var Re=Te.createTransform();Re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Re),this.container.appendChild(this.controlBox),this.controlRect=Te.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=Te.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 ue,this.addControlGrips(),this.controlBox.style.display="none"},_e.prototype.adjustControlBox=function(){var Re=this.controlBox.transform.baseVal.getItem(0);Re.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Re,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 Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},_e.prototype.positionGrips=function(){var Re=this.controlGrips.topLeft.GRIP_SIZE,Xe=-Re/2,lt=Xe,Be=(this.width+this.CB_DISTANCE)/2-Re/2,bt=(this.height+this.CB_DISTANCE)/2-Re/2,Wt=this.height+this.CB_DISTANCE-Re/2,yn=this.width+this.CB_DISTANCE-Re/2;this.positionGrip(this.controlGrips.topLeft.visual,Xe,lt),this.positionGrip(this.controlGrips.topCenter.visual,Be,lt),this.positionGrip(this.controlGrips.topRight.visual,yn,lt),this.positionGrip(this.controlGrips.centerLeft.visual,Xe,bt),this.positionGrip(this.controlGrips.centerRight.visual,yn,bt),this.positionGrip(this.controlGrips.bottomLeft.visual,Xe,Wt),this.positionGrip(this.controlGrips.bottomCenter.visual,Be,Wt),this.positionGrip(this.controlGrips.bottomRight.visual,yn,Wt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Be,lt-3*this.CB_DISTANCE)},_e.prototype.positionGrip=function(Re,Xe,lt){var Be=Re.transform.baseVal.getItem(0);Be.setTranslate(Xe,lt),Re.transform.baseVal.replaceItem(Be,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:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},it.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){it.prototype.restoreState.call(this,Re);var Xe=Re;this.left=Xe.left,this.top=Xe.top,this.width=Xe.width,this.height=Xe.height,this.rotationAngle=Xe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Xe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Xe.containerTransformMatrix))},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe);var lt=this.rotatePoint({x:this.left,y:this.top}),Be=this.unrotatePoint({x:lt.x*Re,y:lt.y*Xe});this.left=Be.x,this.top=Be.y,this.width=this.width*Re,this.height=this.height*Xe,this.adjustControlBox()},_e}(he),Ae=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},_e.prototype.createVisual=function(){this.visual=Te.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(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){it.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){it.prototype.resize.call(this,Re),this.setSize()},_e.prototype.setSize=function(){it.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},_e.prototype.pointerUp=function(Re){it.prototype.pointerUp.call(this,Re),this.setSize()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.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},it.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){var Xe=Re;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),it.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe),this.setSize()},_e.title="Rectangle marker",_e}(be),De=function(it){function _e(Re,Xe,lt,Be){var bt=it.call(this,Re,Be||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return bt.widths=[],bt.widthBoxes=[],bt.widths=Xe,bt.currentWidth=lt,bt.setCurrentWidth=bt.setCurrentWidth.bind(bt),bt}return Pe(_e,it),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.widths.forEach(function(lt){var Be=document.createElement("div");Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=lt===Re.currentWidth?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentWidth(lt,Be)}),Xe.appendChild(Be);var bt=document.createElement("div");bt.innerText=lt.toString(),bt.style.marginRight="5px",Be.appendChild(bt);var Wt=document.createElement("div");Wt.style.minHeight="20px",Wt.style.flexGrow="2",Wt.style.display="flex",Wt.style.alignItems="center";var yn=document.createElement("hr");yn.style.minWidth="20px",yn.style.border="0px",yn.style.borderTop=lt+"px solid "+Re.uiStyleSettings.toolboxColor,yn.style.flexGrow="2",Wt.appendChild(yn),Be.appendChild(Wt),Re.widthBoxes.push(Be)}),Xe},_e.prototype.setCurrentWidth=function(Re,Xe){var lt=this;this.currentWidth=Re,this.widthBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},_e}(te),We=function(it){function _e(Re,Xe,lt,Be){var bt=it.call(this,Re,Be||'<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 bt.styles=[],bt.styleBoxes=[],bt.styles=Xe,bt.currentStyle=lt,bt.setCurrentStyle=bt.setCurrentStyle.bind(bt),bt}return Pe(_e,it),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.styles.forEach(function(lt){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Re.styles.length-5+"%",Be.style.borderColor=lt===Re.currentStyle?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentStyle(lt,Be)}),Xe.appendChild(Be);var bt=document.createElement("div");bt.style.minHeight="20px",bt.style.flexGrow="2",bt.style.overflow="hidden";var Wt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(lt!==""?'stroke-dasharray="'+lt+'"':"")+` />
</svg>`;bt.innerHTML=Wt,Be.appendChild(bt),Re.styleBoxes.push(Be)}),Xe},_e.prototype.setCurrentStyle=function(Re,Xe){var lt=this;this.currentStyle=Re,this.styleBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},_e}(te),nt=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.strokeColor=lt.defaultColor,Be.strokeWidth=lt.defaultStrokeWidth,Be.strokeDasharray=lt.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",lt.defaultColorSet,lt.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new De("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,it),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=it.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="FrameMarker",_e.title="Frame marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',_e}(Ae),qe=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"},ot=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.x1=0,Be.y1=0,Be.x2=0,Be.y2=0,Be.defaultLength=50,Be.manipulationStartX=0,Be.manipulationStartY=0,Be.manipulationStartX1=0,Be.manipulationStartY1=0,Be.manipulationStartX2=0,Be.manipulationStartY2=0,Be.setupControlBox(),Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!!it.prototype.ownsTarget.call(this,Re)||!(!this.grip1.ownsTarget(Re)&&!this.grip2.ownsTarget(Re))},_e.prototype.pointerDown=function(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.manipulationStartX=Re.x,this.manipulationStartY=Re.y,this.state==="new"&&(this.x1=Re.x,this.y1=Re.y,this.x2=Re.x,this.y2=Re.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(Xe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Xe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},_e.prototype.pointerUp=function(Re){var Xe=this.state;it.prototype.pointerUp.call(this,Re),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(Re),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},_e.prototype.adjustVisual=function(){},_e.prototype.manipulate=function(Re){this.state==="creating"?this.resize(Re):this.state==="move"?(this.x1=this.manipulationStartX1+Re.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Re.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Re.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Re.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Re)},_e.prototype.resize=function(Re){switch(this.activeGrip){case this.grip1:this.x1=Re.x,this.y1=Re.y;break;case this.grip2:case void 0:this.x2=Re.x,this.y2=Re.y}this.adjustVisual(),this.adjustControlBox()},_e.prototype.select=function(){it.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){it.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Te.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 Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},_e.prototype.positionGrips=function(){var Re=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Re/2,this.y1-Re/2),this.positionGrip(this.grip2.visual,this.x2-Re/2,this.y2-Re/2)},_e.prototype.positionGrip=function(Re,Xe,lt){var Be=Re.transform.baseVal.getItem(0);Be.setTranslate(Xe,lt),Re.transform.baseVal.replaceItem(Be,0)},_e.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},it.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){it.prototype.restoreState.call(this,Re);var Xe=Re;this.x1=Xe.x1,this.y1=Xe.y1,this.x2=Xe.x2,this.y2=Xe.y2},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe),this.x1=this.x1*Re,this.y1=this.y1*Xe,this.x2=this.x2*Re,this.y2=this.y2*Xe,this.adjustVisual(),this.adjustControlBox()},_e}(he),mt=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.strokeColor=lt.defaultColor,Be.strokeWidth=lt.defaultStrokeWidth,Be.strokeDasharray=lt.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",lt.defaultColorSet,lt.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new De("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorLine&&Re!==this.visibleLine)},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorLine=Te.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Te.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(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),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()),Te.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,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 Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},it.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){it.prototype.restoreState.call(this,Re);var Xe=Re;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.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}(ot),at=function(it){function _e(Re,Xe,lt,Be){var bt=it.call(this,Re,Be||'<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 bt.fonts=[],bt.fontBoxes=[],bt.fonts=Xe,bt.currentFont=lt,bt.setCurrentFont=bt.setCurrentFont.bind(bt),bt}return Pe(_e,it),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.fonts.forEach(function(lt){var Be=document.createElement("div");Be.style.display="inline-block",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Re.fonts.length-5+"%",Be.style.borderColor=lt===Re.currentFont?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentFont(lt,Be)}),Xe.appendChild(Be);var bt=document.createElement("div");bt.style.display="flex",bt.style.minHeight="20px",bt.style.flexGrow="2",bt.style.fontFamily=lt,bt.style.overflow="hidden";var Wt=document.createElement("div");Wt.style.whiteSpace="nowrap",Wt.style.overflow="hidden",Wt.style.textOverflow="ellipsis",Wt.innerHTML="The quick brown fox jumps over the lazy dog",bt.appendChild(Wt),Be.appendChild(bt),Re.fontBoxes.push(Be)}),Xe},_e.prototype.setCurrentFont=function(Re,Xe){var lt=this;this.currentFont=Re,this.fontBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},_e}(te),vt=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.color="transparent",Be.padding=5,Be.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Be.text=Be.DEFAULT_TEXT,Be.isMoved=!1,Be.color=lt.defaultColor,Be.fontFamily=lt.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setColor=Be.setColor.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.renderText=Be.renderText.bind(Be),Be.sizeText=Be.sizeText.bind(Be),Be.textEditDivClicked=Be.textEditDivClicked.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.setSize=Be.setSize.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.colorPanel=new ee("Color",lt.defaultColorSet,lt.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.fontFamilyPanel=new at("Font",lt.defaultFontFamilies,lt.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){if(it.prototype.ownsTarget.call(this,Re)||Re===this.visual||Re===this.textElement||Re===this.bgRectangle)return!0;var Xe=!1;return this.textElement.childNodes.forEach(function(lt){lt===Re&&(Xe=!0)}),Xe},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.bgRectangle=Te.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Te.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},_e.prototype.pointerDown=function(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.renderText=function(){var Re=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(Xe){Re.textElement.appendChild(Te.createTSpan(Xe.trim()===""?" ":Xe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},_e.prototype.getTextScale=function(){var Re=this.textElement.getBBox(),Xe=1;if(Re.width>0&&Re.height>0){var lt=(1*this.width-this.width*this.padding*2/100)/Re.width,Be=(1*this.height-this.height*this.padding*2/100)/Re.height;Xe=Math.min(lt,Be)}return Xe},_e.prototype.getTextPosition=function(Re){var Xe=this.textElement.getBBox(),lt=0,Be=0;return Xe.width>0&&Xe.height>0&&(lt=(this.width-Xe.width*Re)/2,Be=this.height/2-Xe.height*Re/2),{x:lt,y:Be}},_e.prototype.sizeText=function(){var Re=this.textElement.getBBox(),Xe=this.getTextScale(),lt=this.getTextPosition(Xe);lt.y-=Re.y*Xe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+lt.x+"px, "+lt.y+"px) scale("+Xe+", "+Xe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(lt.x,lt.y),this.textElement.transform.baseVal.getItem(1).setScale(Xe,Xe))},_e.prototype.manipulate=function(Re){it.prototype.manipulate.call(this,Re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Re.x-this.pointerDownPoint.x)>5||Math.abs(Re.y-this.pointerDownPoint.y)>5)},_e.prototype.resize=function(Re){it.prototype.resize.call(this,Re),this.isMoved=!0,this.setSize(),this.sizeText()},_e.prototype.setSize=function(){it.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},_e.prototype.pointerUp=function(Re){var Xe=this.state;Xe==="creating"&&(this._suppressMarkerCreateEvent=!0),it.prototype.pointerUp.call(this,Re),this.setSize(),(Xe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},_e.prototype.showTextEditor=function(){var Re=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(Xe){Xe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Xe=Number.parseFloat(Re.textEditor.style.fontSize);Re.textEditor.clientWidth>=Number.parseInt(Re.textEditor.style.maxWidth)&&Xe>.9;)Xe-=.1,Re.textEditor.style.fontSize=Math.max(Xe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Xe){if(Xe.clipboardData){var lt=Xe.clipboardData.getData("text"),Be=window.getSelection();if(!Be.rangeCount)return!1;Be.deleteFromDocument(),Be.getRangeAt(0).insertNode(document.createTextNode(lt)),Xe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Re.textEditDivClicked(Re.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 Re=this.getTextScale(),Xe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),lt=this.textElement.getBBox(),Be={x:lt.width*Re,y:lt.height*Re};Xe.x-=Be.x/2,Xe.y-=Be.y/2,this.textEditor.style.top=Xe.y+"px",this.textEditor.style.left=Xe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Xe.x+"px",this.textEditor.style.fontSize=Math.max(16*Re,12)+"px",this.textElement.style.display="none"}},_e.prototype.textEditDivClicked=function(Re){this.text=Re.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},_e.prototype.select=function(){it.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},_e.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),it.prototype.deselect.call(this)},_e.prototype.dblClick=function(Re,Xe){it.prototype.dblClick.call(this,Re,Xe),this.showTextEditor()},_e.prototype.setColor=function(Re){this.textElement&&Te.setAttributes(this.textElement,[["fill",Re]]),this.color=Re,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Re)},_e.prototype.setFont=function(Re){this.textElement&&Te.setAttributes(this.textElement,[["font-family",Re]]),this.fontFamily=Re,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 Re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},it.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.color=Xe.color,this.fontFamily=Xe.fontFamily,this.padding=Xe.padding,this.text=Xe.text,this.createVisual(),it.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe),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}(be),wt=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.color="transparent",Be.lineWidth=3,Be.drawing=!1,Be.pixelRatio=1,Be.color=lt.defaultColor,Be.lineWidth=lt.defaultStrokeWidth,Be.pixelRatio=lt.freehandPixelRatio,Be.setColor=Be.setColor.bind(Be),Be.addCanvas=Be.addCanvas.bind(Be),Be.finishCreation=Be.finishCreation.bind(Be),Be.setLineWidth=Be.setLineWidth.bind(Be),Be.colorPanel=new ee("Color",lt.defaultColorSet,lt.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.lineWidthPanel=new De("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Be.lineWidthPanel.onWidthChanged=Be.setLineWidth,Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.drawingImage)},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.drawingImage=Te.createImage(),this.visual.appendChild(this.drawingImage);var Re=Te.createTransform();this.visual.transform.baseVal.appendItem(Re),this.addMarkerVisualToContainer(this.visual)},_e.prototype.pointerDown=function(Re,Xe){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(Re.x,Re.y),this.drawing=!0):it.prototype.pointerDown.call(this,Re,Xe)},_e.prototype.manipulate=function(Re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Re.x,Re.y),this.canvasContext.stroke()):it.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){it.prototype.resize.call(this,Re),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},_e.prototype.pointerUp=function(Re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):it.prototype.pointerUp.call(this,Re)},_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(),it.prototype.select.call(this)},_e.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),it.prototype.deselect.call(this)},_e.prototype.finishCreation=function(){for(var Re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Xe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],lt=Xe[0],Be=Xe[1],bt=Xe[2],Wt=Xe[3],yn=!1,On=0;On<this.canvasElement.height;On++)for(var Pt=0;Pt<this.canvasElement.width;Pt++)Re.data[On*this.canvasElement.width*4+4*Pt+3]>0&&(yn=!0,On<Be&&(Be=On),Pt<lt&&(lt=Pt),On>Wt&&(Wt=On),Pt>bt&&(bt=Pt));if(yn){this.left=lt/this.pixelRatio,this.top=Be/this.pixelRatio,this.width=(bt-lt)/this.pixelRatio,this.height=(Wt-Be)/this.pixelRatio;var Vt=document.createElement("canvas");Vt.width=bt-lt,Vt.height=Wt-Be,Vt.getContext("2d").putImageData(this.canvasContext.getImageData(lt,Be,bt-lt,Wt-Be),0,0),this.drawingImgUrl=Vt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},_e.prototype.setDrawingImage=function(){Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},_e.prototype.setColor=function(Re){this.color=Re,this.colorChanged(Re)},_e.prototype.setLineWidth=function(Re){this.lineWidth=Re},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 Re=Object.assign({drawingImgUrl:this.drawingImgUrl},it.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){this.createVisual(),it.prototype.restoreState.call(this,Re),this.drawingImgUrl=Re.drawingImgUrl,this.setDrawingImage()},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe),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}(be),At=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,lt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Be.typeBoxes=[],Be.currentType=Xe,Be.setCurrentType=Be.setCurrentType.bind(Be),Be}return Pe(_e,it),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2";for(var lt=function(Wt){var yn="both";switch(Wt){case 0:yn="both";break;case 1:yn="start";break;case 2:yn="end";break;case 3:yn="none"}var On=document.createElement("div");if(On.style.display="flex",On.style.flexGrow="2",On.style.alignItems="center",On.style.justifyContent="space-between",On.style.padding="5px",On.style.borderWidth="2px",On.style.borderStyle="solid",On.style.borderColor=yn===Be.currentType?Be.uiStyleSettings.toolboxAccentColor:"transparent",On.addEventListener("click",function(){Re.setCurrentType(yn,On)}),Xe.appendChild(On),yn==="both"||yn==="start"){var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.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="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Pt.style.marginLeft="5px",On.appendChild(Pt)}var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.style.flexGrow="2";var zt=document.createElement("hr");if(zt.style.minWidth="20px",zt.style.border="0px",zt.style.borderTop="3px solid "+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee"),zt.style.flexGrow="2",Vt.appendChild(zt),On.appendChild(Vt),yn==="both"||yn==="end"){var pn=document.createElement("div");pn.style.display="flex",pn.style.alignItems="center",pn.style.minHeight="20px",pn.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="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,pn.style.marginRight="5px",On.appendChild(pn)}Be.typeBoxes.push(On)},Be=this,bt=0;bt<4;bt++)lt(bt);return Xe},_e.prototype.setCurrentType=function(Re,Xe){var lt=this;this.currentType=Re,this.typeBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?lt.uiStyleSettings!==void 0?lt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},_e}(te),Ht=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.arrowType="end",Be.arrowBaseHeight=10,Be.arrowBaseWidth=10,Be.getArrowPoints=Be.getArrowPoints.bind(Be),Be.setArrowType=Be.setArrowType.bind(Be),Be.arrowTypePanel=new At("Arrow type","end"),Be.arrowTypePanel.onArrowTypeChanged=Be.setArrowType,Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.arrow1&&Re!==this.arrow2)},_e.prototype.getArrowPoints=function(Re,Xe){var lt=this.arrowBaseWidth+2*this.strokeWidth,Be=this.arrowBaseHeight+2*this.strokeWidth;return Re-lt/2+","+(Xe+Be/2)+" "+Re+","+(Xe-Be/2)+" "+(Re+lt/2)+","+(Xe+Be/2)},_e.prototype.createTips=function(){this.arrow1=Te.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Te.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow2)},_e.prototype.pointerDown=function(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.state==="creating"&&this.createTips()},_e.prototype.adjustVisual=function(){if(it.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",Te.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Te.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Re=0;Math.abs(this.x1-this.x2)>.1&&(Re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Xe=this.arrow1.transform.baseVal.getItem(0);Xe.setRotate(Re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Xe,0);var lt=this.arrow2.transform.baseVal.getItem(0);lt.setRotate(Re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(lt,0)}},_e.prototype.setArrowType=function(Re){this.arrowType=Re,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 Re=Object.assign({arrowType:this.arrowType},it.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){it.prototype.restoreState.call(this,Re);var Xe=Re;this.arrowType=Xe.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}(mt),Qt=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.fillColor=lt.defaultFillColor,Be.strokeWidth=0,Be.fillPanel=new ee("Color",lt.defaultColorSet,lt.defaultFillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be}return Pe(_e,it),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=it.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="CoverMarker",_e.title="Cover marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',_e}(Ae),Zt=function(it){function _e(Re,Xe,lt,Be){var bt=it.call(this,Re,Be||'<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 bt.opacities=[],bt.opacityBoxes=[],bt.opacities=Xe,bt.currentOpacity=lt,bt.setCurrentOpacity=bt.setCurrentOpacity.bind(bt),bt}return Pe(_e,it),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",Xe.style.justifyContent="space-between",this.opacities.forEach(function(lt){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="center",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=lt===Re.currentOpacity?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentOpacity(lt,Be)}),Xe.appendChild(Be);var bt=document.createElement("div");bt.innerText=100*lt+"%",Be.appendChild(bt),Re.opacityBoxes.push(Be)}),Xe},_e.prototype.setCurrentOpacity=function(Re,Xe){var lt=this;this.currentOpacity=Re,this.opacityBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},_e}(te),ln=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.setOpacity=Be.setOpacity.bind(Be),Be.fillColor=lt.defaultHighlightColor,Be.strokeWidth=0,Be.opacity=lt.defaultHighlightOpacity,Be.fillPanel=new ee("Color",lt.defaultColorSet,Be.fillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be.opacityPanel=new Zt("Opacity",lt.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return Pe(_e,it),_e.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.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 Re=it.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_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}(Qt),Nt='<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>',gt='<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>',ct=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.bgColor="transparent",Be.tipPosition={x:0,y:0},Be.tipBase1Position={x:0,y:0},Be.tipBase2Position={x:0,y:0},Be.tipMoving=!1,Be.color=lt.defaultStrokeColor,Be.bgColor=lt.defaultFillColor,Be.fontFamily=lt.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setBgColor=Be.setBgColor.bind(Be),Be.getTipPoints=Be.getTipPoints.bind(Be),Be.positionTip=Be.positionTip.bind(Be),Be.setTipPoints=Be.setTipPoints.bind(Be),Be.colorPanel=new ee("Text color",lt.defaultColorSet,Be.color,Nt),Be.colorPanel.onColorChanged=Be.setColor,Be.bgColorPanel=new ee("Fill color",lt.defaultColorSet,Be.bgColor,gt),Be.bgColorPanel.onColorChanged=Be.setBgColor,Be.fontFamilyPanel=new at("Font",lt.defaultFontFamilies,lt.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.tipGrip=new fe,Be.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),Be.controlBox.appendChild(Be.tipGrip.visual),Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return it.prototype.ownsTarget.call(this,Re)||this.tipGrip.ownsTarget(Re)||this.tip===Re},_e.prototype.createTip=function(){Te.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Te.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},_e.prototype.pointerDown=function(Re,Xe){this.state==="new"&&it.prototype.pointerDown.call(this,Re,Xe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Xe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):it.prototype.pointerDown.call(this,Re,Xe)},_e.prototype.pointerUp=function(Re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,it.prototype.pointerUp.call(this,Re);else{var Xe=this.state==="creating";it.prototype.pointerUp.call(this,Re),this.setTipPoints(Xe),this.positionTip()}},_e.prototype.manipulate=function(Re){if(this.tipMoving){var Xe=this.unrotatePoint(Re);this.tipPosition={x:Xe.x-this.manipulationStartLeft,y:Xe.y-this.manipulationStartTop},this.positionTip()}else it.prototype.manipulate.call(this,Re)},_e.prototype.setBgColor=function(Re){this.bgRectangle&&this.tip&&(Te.setAttributes(this.bgRectangle,[["fill",Re]]),Te.setAttributes(this.tip,[["fill",Re]])),this.bgColor=Re,this.fillColorChanged(Re)},_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(Re){Re===void 0&&(Re=!1);var Xe=Math.min(this.height/2,15),lt=this.height/5;Re&&(this.tipPosition={x:Xe+lt/2,y:this.height+20});var Be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(lt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:0},this.tipBase2Position={x:Xe+lt,y:0}):(this.tipBase1Position={x:0,y:Xe},this.tipBase2Position={x:0,y:Xe+lt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(lt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-lt,y:0},this.tipBase2Position={x:this.width-Xe,y:0}):(this.tipBase1Position={x:this.width,y:Xe},this.tipBase2Position={x:this.width,y:Xe+lt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(lt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-lt,y:this.height},this.tipBase2Position={x:this.width-Xe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Xe-lt},this.tipBase2Position={x:this.width,y:this.height-Xe}):Be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(lt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:this.height},this.tipBase2Position={x:Xe+lt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Xe},this.tipBase2Position={x:0,y:this.height-Xe-lt})},_e.prototype.resize=function(Re){it.prototype.resize.call(this,Re),this.positionTip()},_e.prototype.positionTip=function(){Te.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Re=this.tipGrip.visual.transform.baseVal.getItem(0);Re.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Re,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(),it.prototype.select.call(this)},_e.prototype.getState=function(){var Re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},it.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.bgColor=Xe.bgColor,this.tipPosition=Xe.tipPosition,it.prototype.restoreState.call(this,Re),this.createTip(),this.setTipPoints()},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe),this.tipPosition={x:this.tipPosition.x*Re,y:this.tipPosition.y*Xe},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}(vt),Jt=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.strokeColor=lt.defaultColor,Be.strokeWidth=lt.defaultStrokeWidth,Be.strokeDasharray=lt.defaultStrokeDasharray,Be.fillColor=lt.defaultFillColor,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.setOpacity=Be.setOpacity.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.strokePanel=new ee("Line color",Ve(lt.defaultColorSet,["transparent"]),lt.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new ee("Fill color",Ve(lt.defaultColorSet,["transparent"]),Be.fillColor,gt),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new De("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.opacityPanel=new Zt("Opacity",lt.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},_e.prototype.createVisual=function(){this.visual=Te.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(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){it.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){it.prototype.resize.call(this,Re),this.setSize()},_e.prototype.setSize=function(){it.prototype.setSize.call(this),Te.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(Re){it.prototype.pointerUp.call(this,Re),this.setSize()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},_e.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.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 Re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},it.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),it.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe),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}(be),sn=function(it){function _e(Re,Xe,lt){return it.call(this,Re,Xe,lt)||this}return Pe(_e,it),Object.defineProperty(_e.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.tip1&&Re!==this.tip2)},_e.prototype.createTips=function(){this.tip1=Te.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(Te.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Te.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(Te.createTransform()),this.visual.appendChild(this.tip2)},_e.prototype.pointerDown=function(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.state==="creating"&&this.createTips()},_e.prototype.adjustVisual=function(){if(it.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Te.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()]]),Te.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 Re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Xe=this.tip1.transform.baseVal.getItem(0);Xe.setRotate(Re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Xe,0);var lt=this.tip2.transform.baseVal.getItem(0);lt.setRotate(Re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(lt,0)}},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=it.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){it.prototype.restoreState.call(this,Re),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}(mt),It=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.strokePanel.colors=lt.defaultColorSet,Be.fillColor="transparent",Be}return Pe(_e,it),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=it.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_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}(Jt),wn=function(){function it(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(it.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),it.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))},it.prototype.replaceLastUndoStep=function(_e){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=_e)},it.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},it.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}},it.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},it}(),bn=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.curveX=0,Be.curveY=0,Be.manipulationStartCurveX=0,Be.manipulationStartCurveY=0,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.positionGrips=Be.positionGrips.bind(Be),Be.addControlGrips=Be.addControlGrips.bind(Be),Be.adjustVisual=Be.adjustVisual.bind(Be),Be.setupControlBox=Be.setupControlBox.bind(Be),Be.resize=Be.resize.bind(Be),Be.strokeColor=lt.defaultColor,Be.strokeWidth=lt.defaultStrokeWidth,Be.strokeDasharray=lt.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",lt.defaultColorSet,lt.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new De("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorCurve&&Re!==this.visibleCurve&&!this.curveGrip.ownsTarget(Re))},_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=Te.createGroup(),this.selectorCurve=Te.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Te.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(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Re.x,this.curveY=Re.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Xe)&&(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()),Te.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},_e.prototype.setupControlBox=function(){it.prototype.setupControlBox.call(this),this.curveControlLine1=Te.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Te.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,it.prototype.addControlGrips.call(this)},_e.prototype.positionGrips=function(){it.prototype.positionGrips.call(this);var Re=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Re/2,this.curveY-Re/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(Re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Re.y-this.manipulationStartY),it.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){this.activeGrip===this.curveGrip&&(this.curveX=Re.x,this.curveY=Re.y),it.prototype.resize.call(this,Re),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(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.adjustVisual()},_e.prototype.scale=function(Re,Xe){this.curveX=this.curveX*Re,this.curveY=this.curveY*Xe,it.prototype.scale.call(this,Re,Xe)},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},it.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){it.prototype.restoreState.call(this,Re);var Xe=Re;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.curveX=Xe.curveX,this.curveY=Xe.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}(ot),_n=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,Xe,lt)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.textColor="transparent",Be.fontSize="1rem",Be.isMoved=!1,Be.captionText="Caption",Be.PADDING=5,Be.captionBoxWidth=0,Be.captionBoxHeight=0,Be.strokeColor=lt.defaultColor,Be.strokeWidth=lt.defaultStrokeWidth,Be.strokeDasharray=lt.defaultStrokeDasharray,Be.fillColor=lt.defaultFillColor,Be.textColor=lt.defaultStrokeColor,Be.fontFamily=lt.defaultFontFamily,Be.fontSize=lt.defaultCaptionFontSize,Be.captionText=lt.defaultCaptionText,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.sizeCaption=Be.sizeCaption.bind(Be),Be.setCaptionText=Be.setCaptionText.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.finishTextEditing=Be.finishTextEditing.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.setTextColor=Be.setTextColor.bind(Be),Be.strokePanel=new ee("Line color",Ve(lt.defaultColorSet,["transparent"]),Be.strokeColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new ee("Fill color",Ve(lt.defaultColorSet,["transparent"]),Be.fillColor,gt),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new De("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.fontFamilyPanel=new at("Font",lt.defaultFontFamilies,lt.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.textColorPanel=new ee("Text color",lt.defaultColorSet,Be.textColor,Nt),Be.textColorPanel.onColorChanged=Be.setTextColor,Be}return Pe(_e,it),_e.prototype.ownsTarget=function(Re){return!(!it.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.frame&&Re!==this.captionBg&&Re!==this.captionElement)},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Te.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Te.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=Te.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(Re){this.captionText=Re,this.captionElement.textContent=this.captionText,this.sizeCaption()},_e.prototype.pointerDown=function(Re,Xe){it.prototype.pointerDown.call(this,Re,Xe),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){it.prototype.manipulate.call(this,Re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Re.x-this.pointerDownPoint.x)>5||Math.abs(Re.y-this.pointerDownPoint.y)>5)},_e.prototype.resize=function(Re){it.prototype.resize.call(this,Re),this.setSize()},_e.prototype.sizeCaption=function(){var Re=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Re.width+2*this.PADDING,this.captionBoxHeight=Re.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Te.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')"]]),Te.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 Re=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(Xe){Xe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Xe){Xe.key==="Enter"&&Re.finishTextEditing(Re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Re.finishTextEditing(Re.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Re.finishTextEditing(Re.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(Re){this.setCaptionText(Re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},_e.prototype.setFont=function(Re){this.captionElement&&Te.setAttributes(this.captionElement,[["font-family",Re]]),this.fontFamily=Re,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},_e.prototype.setTextColor=function(Re){this.captionElement&&Te.setAttributes(this.captionElement,[["fill",Re]]),this.textColor=Re,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},_e.prototype.setSize=function(){it.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},_e.prototype.pointerUp=function(Re){it.prototype.pointerUp.call(this,Re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},_e.prototype.dblClick=function(Re,Xe){it.prototype.dblClick.call(this,Re,Xe),this.showTextEditor()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.frame&&Te.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 Re=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},it.prototype.getState.call(this));return Re.typeName=this.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.textColor=Xe.textColor,this.fontFamily=Xe.fontFamily,this.captionText=Xe.captionText,this.fontSize=Xe.fontSize,this.createVisual(),it.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){it.prototype.scale.call(this,Re,Xe),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}(be),Xt=function(){function it(_e,Re){Re===void 0&&(Re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=_e,this.cancelable=Re}return Object.defineProperty(it.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),it.prototype.preventDefault=function(){this._defaultPrevented=!0},it}(),zn=function(it){function _e(Re,Xe,lt){var Be=it.call(this,Re,!1)||this;return Be.dataUrl=Xe,Be.state=lt,Be}return Pe(_e,it),_e}(Xt),Ot=function(it){function _e(Re,Xe,lt){lt===void 0&&(lt=!1);var Be=it.call(this,Re,lt)||this;return Be.marker=Xe,Be}return Pe(_e,it),_e}(Xt),jn=function(){function it(){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 it.prototype.addEventListener=function(_e,Re){this[_e].push(Re)},it.prototype.removeEventListener=function(_e,Re){var Xe=this[_e].indexOf(Re);Xe>-1&&this[_e].splice(Xe,1)},it}(),cr=function(){function it(_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 qe,this._isOpen=!1,this.undoRedoManager=new wn,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 jn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=it.instanceCounter++,this.styles=new Ue(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(it.prototype,"ALL_MARKER_TYPES",{get:function(){return[nt,wt,Ht,vt,It,Jt,ln,ct,sn,Qt,mt,bn,_n]},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[nt,wt,Ht,vt,Jt,ln,ct]},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"BASIC_MARKER_TYPES",{get:function(){return[nt,wt,Ht,vt,ln]},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(_e){var Re=this;this._availableMarkerTypes.splice(0),_e.forEach(function(Xe){if(typeof Xe=="string"){var lt=Re.ALL_MARKER_TYPES.find(function(Be){return Be.typeName===Xe});lt!==void 0&&Re._availableMarkerTypes.push(lt)}else Re._availableMarkerTypes.push(Xe)})},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(it.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(it.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),it.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ze.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},it.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(Re){return Re(new Xt(_e))})},it.prototype.render=function(){return Ie(this,void 0,void 0,function(){var _e;return ke(this,function(Re){switch(Re.label){case 0:return this.setCurrentMarker(),(_e=new st).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 Re.sent(),[4,_e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Re.sent()]}})})},it.prototype.close=function(_e){var Re=this;if(_e===void 0&&(_e=!1),this.isOpen){var Xe=!1;_e||this.eventListeners.beforeclose.forEach(function(lt){var Be=new Xt(Re,!0);lt(Be),Be.defaultPrevented&&(Xe=!0)}),Xe||(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(lt){return lt(new Xt(Re))}),this.detachEvents(),this._isOpen=!1)}},it.prototype.addMarkersToToolbar=function(){for(var _e,Re=[],Xe=0;Xe<arguments.length;Xe++)Re[Xe]=arguments[Xe];(_e=this._availableMarkerTypes).push.apply(_e,Re)},it.prototype.addRenderEventListener=function(_e){this.addEventListener("render",function(Re){_e(Re.dataUrl,Re.state)})},it.prototype.removeRenderEventListener=function(_e){},it.prototype.addCloseEventListener=function(_e){this.addEventListener("close",function(){_e()})},it.prototype.removeCloseEventListener=function(_e){},it.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))},it.prototype.onPopupTargetResize=function(){var _e=1*this.target.clientWidth/this.target.clientHeight,Re=this.editorCanvas.clientWidth/_e>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*_e:this.editorCanvas.clientWidth,Xe=Re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/_e;this.resize(Re,Xe)},it.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},it.prototype.resize=function(_e,Re){this._isResizing=!0;var Xe=_e/this.imageWidth,lt=Re/this.imageHeight;this.imageWidth=Math.round(_e),this.imageHeight=Math.round(Re),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(Xe,lt),this._isResizing=!1},it.prototype.scaleMarkers=function(_e,Re){var Xe,lt=this;this._currentMarker&&this._currentMarker instanceof vt?this._currentMarker.scale(_e,Re):(Xe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Be){Be!==lt._currentMarker&&Be.scale(_e,Re)}),Xe!==void 0&&this.setCurrentMarker(Xe)},it.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"},it.prototype.setTopLeft=function(){var _e=this.editingTarget.getBoundingClientRect(),Re=this.editorCanvas.getBoundingClientRect();this.left=_e.left-Re.left,this.top=_e.top-Re.top},it.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)},it.prototype.addDefs=function(){for(var _e,Re=[],Xe=0;Xe<arguments.length;Xe++)Re[Xe]=arguments[Xe];this.defs=Te.createDefs(),this.addDefsToImage(),(_e=this.defs).append.apply(_e,Re)},it.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},it.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)},it.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},it.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},it.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)},it.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},it.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)},it.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()},it.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")},it.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"},it.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},it.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 Dt(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 Fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},it.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},it.prototype.removeMarker=function(_e){this.markerImage.removeChild(_e.container),this.markers.indexOf(_e)>-1&&this.markers.splice(this.markers.indexOf(_e),1),_e.dispose()},it.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())},it.prototype.toolbarButtonClicked=function(_e,Re){if(_e==="marker"&&Re!==void 0)this.createNewMarker(Re);else if(_e==="action")switch(Re){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()}},it.prototype.deleteSelectedMarker=function(){var _e=this;if(this._currentMarker!==void 0){var Re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(lt){var Be=new Ot(_e,_e._currentMarker,!0);lt(Be),Be.defaultPrevented&&(Re=!0)}),!Re){var Xe=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(lt){return lt(new Ot(_e,Xe))})}}},it.prototype.clear=function(){var _e=this,Re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(bt){var Wt=new Ot(_e,void 0,!0);bt(Wt),Wt.defaultPrevented&&(Re=!0)}),!Re)){this.setCurrentMarker();for(var Xe=function(bt){var Wt=lt.markers[bt];lt.setCurrentMarker(lt.markers[bt]),lt._currentMarker.dispose(),lt.markerImage.removeChild(lt._currentMarker.container),lt.markers.splice(lt.markers.indexOf(lt._currentMarker),1),lt.eventListeners.markerdelete.forEach(function(yn){return yn(new Ot(_e,Wt))})},lt=this,Be=this.markers.length-1;Be>=0;Be--)Xe(Be);this.addUndoStep()}},Object.defineProperty(it.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),it.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))},it.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)},it.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},it.prototype.addUndoStep=function(){var _e=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Re=this.getState(),Xe=this.undoRedoManager.getLastUndoStep();if(!Xe||Xe.width===Re.width&&Xe.height===Re.height){var lt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Re),lt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Be){return Be(new Xt(_e))})}else this.undoRedoManager.replaceLastUndoStep(Re),this.eventListeners.statechange.forEach(function(Be){return Be(new Xt(_e))})}},it.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},it.prototype.undoStep=function(){var _e=this,Re=this.undoRedoManager.undo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Xt(_e))}))},it.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},it.prototype.redoStep=function(){var _e=this,Re=this.undoRedoManager.redo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Xt(_e))}))},it.prototype.stepZoom=function(){var _e=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=_e<this.zoomSteps.length-1?this.zoomSteps[_e+1]:this.zoomSteps[0]},it.prototype.panTo=function(_e){this.contentDiv.scrollBy({left:this.prevPanPoint.x-_e.x,top:this.prevPanPoint.y-_e.y}),this.prevPanPoint=_e},it.prototype.startRenderAndClose=function(){return Ie(this,void 0,void 0,function(){var _e,Re,Xe=this;return ke(this,function(lt){switch(lt.label){case 0:return[4,this.render()];case 1:return _e=lt.sent(),Re=this.getState(),this.eventListeners.render.forEach(function(Be){return Be(new zn(Xe,_e,Re))}),this.close(!0),[2]}})})},it.prototype.getState=function(_e){_e===!0&&this.setCurrentMarker();var Re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Xe){return Re.markers.push(Xe.getState())}),Re},it.prototype.restoreState=function(_e){var Re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);_e.markers.forEach(function(Xe){var lt=Re._availableMarkerTypes.find(function(bt){return bt.typeName===Xe.typeName});if(lt!==void 0){var Be=Re.addNewMarker(lt);Be.restoreState(Xe),Re.markers.push(Be)}}),_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(Xe){return Xe(new Xt(Re))})},it.prototype.addNewMarker=function(_e){var Re=Te.createGroup();return this.markerImage.appendChild(Re),new _e(Re,this.overlayContainer,this.settings)},it.prototype.createNewMarker=function(_e){var Re,Xe=this;(Re=typeof _e=="string"?this._availableMarkerTypes.find(function(lt){return lt.typeName===_e}):_e)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Re),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(Re.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(lt){return lt(new Ot(Xe,Xe._currentMarker))}))},it.prototype.markerCreated=function(_e){var Re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(_e),this.setCurrentMarker(_e),_e instanceof wt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(wt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Xe){return Xe(new Ot(Re,Re._currentMarker))})},it.prototype.colorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=_e,this.settings.defaultStrokeColor=_e)},it.prototype.fillColorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=_e)},it.prototype.markerStateChanged=function(_e){var Re=this;this.eventListeners.markerchange.forEach(function(Xe){return Xe(new Ot(Re,_e))})},it.prototype.setCurrentMarker=function(_e){var Re=this;this._currentMarker!==_e&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Xe){return Xe(new Ot(Re,Re._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(Xe){return Xe(new Ot(Re,Re._currentMarker))}))},it.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 Re=this.markers.find(function(Xe){return Xe.ownsTarget(_e.target)});Re!==void 0?(this.setCurrentMarker(Re),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))},it.prototype.onDblClick=function(_e){if(this._isFocused||this.focus(),this.mode==="select"){var Re=this.markers.find(function(Xe){return Xe.ownsTarget(_e.target)});Re!==void 0&&Re!==this._currentMarker&&this.setCurrentMarker(Re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(_e.clientX,_e.clientY),_e.target):this.setCurrentMarker()}},it.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}))},it.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()},it.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},it.prototype.onKeyUp=function(_e){this._currentMarker===void 0||this.notesArea!==void 0||_e.key!=="Delete"&&_e.key!=="Backspace"||this.deleteSelectedMarker()},it.prototype.clientToLocalCoordinates=function(_e,Re){var Xe=this.markerImage.getBoundingClientRect();return{x:(_e-Xe.left)/this.zoomLevel,y:(Re-Xe.top)/this.zoomLevel}},it.prototype.onWindowResize=function(){this.positionUI()},it.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()},it.prototype.addLicenseKey=function(_e){ze.addKey(_e)},it.prototype.addEventListener=function(_e,Re){this.eventListeners.addEventListener(_e,Re)},it.prototype.removeEventListener=function(_e,Re){this.eventListeners.removeEventListener(_e,Re)},it.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(it.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),it.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(Re){return Re(new Xt(_e))}))},it.prototype.blur=function(){var _e=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Re){return Re(new Xt(_e))}))},it.instanceCounter=0,it}()},67842:function(Ze){"use strict";var Ee,ae=59;Ze.exports=oe;function oe(Pe){var Ie="&"+Pe+";",ke;return Ee=Ee||document.createElement("i"),Ee.innerHTML=Ie,ke=Ee.textContent,ke.charCodeAt(ke.length-1)===ae&&Pe!=="semi"||ke===Ie?!1:ke}},12256:function(Ze,Ee,ae){"use strict";var oe=ae(47854),Pe=ae(80501),Ie=ae(22347),ke=ae(65207),Ve=ae(21127),Te=ae(67842);Ze.exports=ln;var ze={}.hasOwnProperty,st=String.fromCharCode,Qe=Function.prototype,Ue={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},St=9,$e=10,Dt=12,Fe=32,te=38,ee=59,he=60,ue=61,fe=35,me=88,be=120,Ae=65533,De="named",We="hexadecimal",nt="decimal",qe={};qe[We]=16,qe[nt]=10;var ot={};ot[De]=Ve,ot[nt]=Ie,ot[We]=ke;var mt=1,at=2,vt=3,wt=4,At=5,Ht=6,Qt=7,Zt={};Zt[mt]="Named character references must be terminated by a semicolon",Zt[at]="Numeric character references must be terminated by a semicolon",Zt[vt]="Named character references cannot be empty",Zt[wt]="Numeric character references cannot be empty",Zt[At]="Named character references must be known",Zt[Ht]="Numeric character references cannot be disallowed",Zt[Qt]="Numeric character references cannot be outside the permissible Unicode range";function ln(Jt,sn){var It={},wn,bn;sn||(sn={});for(bn in Ue)wn=sn[bn],It[bn]=wn==null?Ue[bn]:wn;return(It.position.indent||It.position.start)&&(It.indent=It.position.indent||[],It.position=It.position.start),Nt(Jt,It)}function Nt(Jt,sn){var It=sn.additional,wn=sn.nonTerminated,bn=sn.text,_n=sn.reference,Xt=sn.warning,zn=sn.textContext,Ot=sn.referenceContext,jn=sn.warningContext,cr=sn.position,it=sn.indent||[],_e=Jt.length,Re=0,Xe=-1,lt=cr.column||1,Be=cr.line||1,bt="",Wt=[],yn,On,Pt,Vt,zt,pn,Tn,gn,Mt,Un,Yt,on,mn,er,Sn,ht,tr,lr,qt;for(typeof It=="string"&&(It=It.charCodeAt(0)),ht=yr(),gn=Xt?ri:Qe,Re--,_e++;++Re<_e;)if(zt===$e&&(lt=it[Xe]||1),zt=Jt.charCodeAt(Re),zt===te){if(Tn=Jt.charCodeAt(Re+1),Tn===St||Tn===$e||Tn===Dt||Tn===Fe||Tn===te||Tn===he||Tn!==Tn||It&&Tn===It){bt+=st(zt),lt++;continue}for(mn=Re+1,on=mn,qt=mn,Tn===fe?(qt=++on,Tn=Jt.charCodeAt(qt),Tn===me||Tn===be?(er=We,qt=++on):er=nt):er=De,yn="",Yt="",Vt="",Sn=ot[er],qt--;++qt<_e&&(Tn=Jt.charCodeAt(qt),!!Sn(Tn));)Vt+=st(Tn),er===De&&ze.call(oe,Vt)&&(yn=Vt,Yt=oe[Vt]);Pt=Jt.charCodeAt(qt)===ee,Pt&&(qt++,On=er===De?Te(Vt):!1,On&&(yn=Vt,Yt=On)),lr=1+qt-mn,!Pt&&!wn||(Vt?er===De?(Pt&&!Yt?gn(At,1):(yn!==Vt&&(qt=on+yn.length,lr=1+qt-on,Pt=!1),Pt||(Mt=yn?mt:vt,sn.attribute?(Tn=Jt.charCodeAt(qt),Tn===ue?(gn(Mt,lr),Yt=null):Ve(Tn)?Yt=null:gn(Mt,lr)):gn(Mt,lr))),pn=Yt):(Pt||gn(at,lr),pn=parseInt(Vt,qe[er]),gt(pn)?(gn(Qt,lr),pn=st(Ae)):pn in Pe?(gn(Ht,lr),pn=Pe[pn]):(Un="",ct(pn)&&gn(Ht,lr),pn>65535&&(pn-=65536,Un+=st(pn>>>10|55296),pn=56320|pn&1023),pn=Un+st(pn))):er!==De&&gn(wt,lr)),pn?(Or(),ht=yr(),Re=qt-1,lt+=qt-mn+1,Wt.push(pn),tr=yr(),tr.offset++,_n&&_n.call(Ot,pn,{start:ht,end:tr},Jt.slice(mn-1,qt)),ht=tr):(Vt=Jt.slice(mn-1,qt),bt+=Vt,lt+=Vt.length,Re=qt-1)}else zt===10&&(Be++,Xe++,lt=0),zt===zt?(bt+=st(zt),lt++):Or();return Wt.join("");function yr(){return{line:Be,column:lt,offset:Re+(cr.offset||0)}}function ri(Nn,ui){var $r=yr();$r.column+=ui,$r.offset+=ui,Xt.call(jn,Zt[Nn],$r,Nn)}function Or(){bt&&(Wt.push(bt),bn&&bn.call(zn,bt,{start:ht,end:yr()}),bt="")}}function gt(Jt){return Jt>=55296&&Jt<=57343||Jt>1114111}function ct(Jt){return Jt>=1&&Jt<=8||Jt===11||Jt>=13&&Jt<=31||Jt>=127&&Jt<=159||Jt>=64976&&Jt<=65007||(Jt&65535)===65535||(Jt&65535)===65534}},68398:function(Ze,Ee,ae){var oe=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Pe=function(Ie){var ke=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Ve=0,Te={},ze={manual:Ie.Prism&&Ie.Prism.manual,disableWorkerMessageHandler:Ie.Prism&&Ie.Prism.disableWorkerMessageHandler,util:{encode:function ue(fe){return fe instanceof st?new st(fe.type,ue(fe.content),fe.alias):Array.isArray(fe)?fe.map(ue):fe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(ue){return Object.prototype.toString.call(ue).slice(8,-1)},objId:function(ue){return ue.__id||Object.defineProperty(ue,"__id",{value:++Ve}),ue.__id},clone:function ue(fe,me){me=me||{};var be,Ae;switch(ze.util.type(fe)){case"Object":if(Ae=ze.util.objId(fe),me[Ae])return me[Ae];be={},me[Ae]=be;for(var De in fe)fe.hasOwnProperty(De)&&(be[De]=ue(fe[De],me));return be;case"Array":return Ae=ze.util.objId(fe),me[Ae]?me[Ae]:(be=[],me[Ae]=be,fe.forEach(function(We,nt){be[nt]=ue(We,me)}),be);default:return fe}},getLanguage:function(ue){for(;ue;){var fe=ke.exec(ue.className);if(fe)return fe[1].toLowerCase();ue=ue.parentElement}return"none"},setLanguage:function(ue,fe){ue.className=ue.className.replace(RegExp(ke,"gi"),""),ue.classList.add("language-"+fe)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(be){var ue=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(be.stack)||[])[1];if(ue){var fe=document.getElementsByTagName("script");for(var me in fe)if(fe[me].src==ue)return fe[me]}return null}},isActive:function(ue,fe,me){for(var be="no-"+fe;ue;){var Ae=ue.classList;if(Ae.contains(fe))return!0;if(Ae.contains(be))return!1;ue=ue.parentElement}return!!me}},languages:{plain:Te,plaintext:Te,text:Te,txt:Te,extend:function(ue,fe){var me=ze.util.clone(ze.languages[ue]);for(var be in fe)me[be]=fe[be];return me},insertBefore:function(ue,fe,me,be){be=be||ze.languages;var Ae=be[ue],De={};for(var We in Ae)if(Ae.hasOwnProperty(We)){if(We==fe)for(var nt in me)me.hasOwnProperty(nt)&&(De[nt]=me[nt]);me.hasOwnProperty(We)||(De[We]=Ae[We])}var qe=be[ue];return be[ue]=De,ze.languages.DFS(ze.languages,function(ot,mt){mt===qe&&ot!=ue&&(this[ot]=De)}),De},DFS:function ue(fe,me,be,Ae){Ae=Ae||{};var De=ze.util.objId;for(var We in fe)if(fe.hasOwnProperty(We)){me.call(fe,We,fe[We],be||We);var nt=fe[We],qe=ze.util.type(nt);qe==="Object"&&!Ae[De(nt)]?(Ae[De(nt)]=!0,ue(nt,me,null,Ae)):qe==="Array"&&!Ae[De(nt)]&&(Ae[De(nt)]=!0,ue(nt,me,We,Ae))}}},plugins:{},highlightAll:function(ue,fe){ze.highlightAllUnder(document,ue,fe)},highlightAllUnder:function(ue,fe,me){var be={callback:me,container:ue,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};ze.hooks.run("before-highlightall",be),be.elements=Array.prototype.slice.apply(be.container.querySelectorAll(be.selector)),ze.hooks.run("before-all-elements-highlight",be);for(var Ae=0,De;De=be.elements[Ae++];)ze.highlightElement(De,fe===!0,be.callback)},highlightElement:function(ue,fe,me){var be=ze.util.getLanguage(ue),Ae=ze.languages[be];ze.util.setLanguage(ue,be);var De=ue.parentElement;De&&De.nodeName.toLowerCase()==="pre"&&ze.util.setLanguage(De,be);var We=ue.textContent,nt={element:ue,language:be,grammar:Ae,code:We};function qe(mt){nt.highlightedCode=mt,ze.hooks.run("before-insert",nt),nt.element.innerHTML=nt.highlightedCode,ze.hooks.run("after-highlight",nt),ze.hooks.run("complete",nt),me&&me.call(nt.element)}if(ze.hooks.run("before-sanity-check",nt),De=nt.element.parentElement,De&&De.nodeName.toLowerCase()==="pre"&&!De.hasAttribute("tabindex")&&De.setAttribute("tabindex","0"),!nt.code){ze.hooks.run("complete",nt),me&&me.call(nt.element);return}if(ze.hooks.run("before-highlight",nt),!nt.grammar){qe(ze.util.encode(nt.code));return}if(fe&&Ie.Worker){var ot=new Worker(ze.filename);ot.onmessage=function(mt){qe(mt.data)},ot.postMessage(JSON.stringify({language:nt.language,code:nt.code,immediateClose:!0}))}else qe(ze.highlight(nt.code,nt.grammar,nt.language))},highlight:function(ue,fe,me){var be={code:ue,grammar:fe,language:me};if(ze.hooks.run("before-tokenize",be),!be.grammar)throw new Error('The language "'+be.language+'" has no grammar.');return be.tokens=ze.tokenize(be.code,be.grammar),ze.hooks.run("after-tokenize",be),st.stringify(ze.util.encode(be.tokens),be.language)},tokenize:function(ue,fe){var me=fe.rest;if(me){for(var be in me)fe[be]=me[be];delete fe.rest}var Ae=new St;return $e(Ae,Ae.head,ue),Ue(ue,Ae,fe,Ae.head,0),Fe(Ae)},hooks:{all:{},add:function(ue,fe){var me=ze.hooks.all;me[ue]=me[ue]||[],me[ue].push(fe)},run:function(ue,fe){var me=ze.hooks.all[ue];if(!(!me||!me.length))for(var be=0,Ae;Ae=me[be++];)Ae(fe)}},Token:st};Ie.Prism=ze;function st(ue,fe,me,be){this.type=ue,this.content=fe,this.alias=me,this.length=(be||"").length|0}st.stringify=function ue(fe,me){if(typeof fe=="string")return fe;if(Array.isArray(fe)){var be="";return fe.forEach(function(qe){be+=ue(qe,me)}),be}var Ae={type:fe.type,content:ue(fe.content,me),tag:"span",classes:["token",fe.type],attributes:{},language:me},De=fe.alias;De&&(Array.isArray(De)?Array.prototype.push.apply(Ae.classes,De):Ae.classes.push(De)),ze.hooks.run("wrap",Ae);var We="";for(var nt in Ae.attributes)We+=" "+nt+'="'+(Ae.attributes[nt]||"").replace(/"/g,"&quot;")+'"';return"<"+Ae.tag+' class="'+Ae.classes.join(" ")+'"'+We+">"+Ae.content+"</"+Ae.tag+">"};function Qe(ue,fe,me,be){ue.lastIndex=fe;var Ae=ue.exec(me);if(Ae&&be&&Ae[1]){var De=Ae[1].length;Ae.index+=De,Ae[0]=Ae[0].slice(De)}return Ae}function Ue(ue,fe,me,be,Ae,De){for(var We in me)if(!(!me.hasOwnProperty(We)||!me[We])){var nt=me[We];nt=Array.isArray(nt)?nt:[nt];for(var qe=0;qe<nt.length;++qe){if(De&&De.cause==We+","+qe)return;var ot=nt[qe],mt=ot.inside,at=!!ot.lookbehind,vt=!!ot.greedy,wt=ot.alias;if(vt&&!ot.pattern.global){var At=ot.pattern.toString().match(/[imsuy]*$/)[0];ot.pattern=RegExp(ot.pattern.source,At+"g")}for(var Ht=ot.pattern||ot,Qt=be.next,Zt=Ae;Qt!==fe.tail&&!(De&&Zt>=De.reach);Zt+=Qt.value.length,Qt=Qt.next){var ln=Qt.value;if(fe.length>ue.length)return;if(!(ln instanceof st)){var Nt=1,gt;if(vt){if(gt=Qe(Ht,Zt,ue,at),!gt||gt.index>=ue.length)break;var It=gt.index,ct=gt.index+gt[0].length,Jt=Zt;for(Jt+=Qt.value.length;It>=Jt;)Qt=Qt.next,Jt+=Qt.value.length;if(Jt-=Qt.value.length,Zt=Jt,Qt.value instanceof st)continue;for(var sn=Qt;sn!==fe.tail&&(Jt<ct||typeof sn.value=="string");sn=sn.next)Nt++,Jt+=sn.value.length;Nt--,ln=ue.slice(Zt,Jt),gt.index-=Zt}else if(gt=Qe(Ht,0,ln,at),!gt)continue;var It=gt.index,wn=gt[0],bn=ln.slice(0,It),_n=ln.slice(It+wn.length),Xt=Zt+ln.length;De&&Xt>De.reach&&(De.reach=Xt);var zn=Qt.prev;bn&&(zn=$e(fe,zn,bn),Zt+=bn.length),Dt(fe,zn,Nt);var Ot=new st(We,mt?ze.tokenize(wn,mt):wn,wt,wn);if(Qt=$e(fe,zn,Ot),_n&&$e(fe,Qt,_n),Nt>1){var jn={cause:We+","+qe,reach:Xt};Ue(ue,fe,me,Qt.prev,Zt,jn),De&&jn.reach>De.reach&&(De.reach=jn.reach)}}}}}}function St(){var ue={value:null,prev:null,next:null},fe={value:null,prev:ue,next:null};ue.next=fe,this.head=ue,this.tail=fe,this.length=0}function $e(ue,fe,me){var be=fe.next,Ae={value:me,prev:fe,next:be};return fe.next=Ae,be.prev=Ae,ue.length++,Ae}function Dt(ue,fe,me){for(var be=fe.next,Ae=0;Ae<me&&be!==ue.tail;Ae++)be=be.next;fe.next=be,be.prev=fe,ue.length-=Ae}function Fe(ue){for(var fe=[],me=ue.head.next;me!==ue.tail;)fe.push(me.value),me=me.next;return fe}if(!Ie.document)return Ie.addEventListener&&(ze.disableWorkerMessageHandler||Ie.addEventListener("message",function(ue){var fe=JSON.parse(ue.data),me=fe.language,be=fe.code,Ae=fe.immediateClose;Ie.postMessage(ze.highlight(be,ze.languages[me],me)),Ae&&Ie.close()},!1)),ze;var te=ze.util.currentScript();te&&(ze.filename=te.src,te.hasAttribute("data-manual")&&(ze.manual=!0));function ee(){ze.manual||ze.highlightAll()}if(!ze.manual){var he=document.readyState;he==="loading"||he==="interactive"&&te&&te.defer?document.addEventListener("DOMContentLoaded",ee):window.requestAnimationFrame?window.requestAnimationFrame(ee):window.setTimeout(ee,16)}return ze}(oe);Ze.exports&&(Ze.exports=Pe),typeof ae.g!="undefined"&&(ae.g.Prism=Pe)},88914:function(Ze,Ee,ae){"use strict";var oe=ae(47178),Pe=ae(19095),Ie=ae(1969),ke="data";Ze.exports=st;var Ve=/^data[-\w.:]+$/i,Te=/-[a-z]/g,ze=/[A-Z]/g;function st(Dt,Fe){var te=oe(Fe),ee=Fe,he=Ie;return te in Dt.normal?Dt.property[Dt.normal[te]]:(te.length>4&&te.slice(0,4)===ke&&Ve.test(Fe)&&(Fe.charAt(4)==="-"?ee=Qe(Fe):Fe=Ue(Fe),he=Pe),new he(ee,Fe))}function Qe(Dt){var Fe=Dt.slice(5).replace(Te,$e);return ke+Fe.charAt(0).toUpperCase()+Fe.slice(1)}function Ue(Dt){var Fe=Dt.slice(4);return Te.test(Fe)?Dt:(Fe=Fe.replace(ze,St),Fe.charAt(0)!=="-"&&(Fe="-"+Fe),ke+Fe)}function St(Dt){return"-"+Dt.toLowerCase()}function $e(Dt){return Dt.charAt(1).toUpperCase()}},18795:function(Ze,Ee,ae){"use strict";var oe=ae(83576),Pe=ae(8179),Ie=ae(59780),ke=ae(68244),Ve=ae(20019),Te=ae(38567);Ze.exports=oe([Ie,Pe,ke,Ve,Te])},20019:function(Ze,Ee,ae){"use strict";var oe=ae(70167),Pe=ae(79318),Ie=oe.booleanish,ke=oe.number,Ve=oe.spaceSeparated;Ze.exports=Pe({transform:Te,properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:Ve,ariaCurrent:null,ariaDescribedBy:Ve,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:Ve,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:Ve,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ve,ariaLevel:ke,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:Ve,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:Ve,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Ie,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null}});function Te(ze,st){return st==="role"?st:"aria-"+st.slice(4).toLowerCase()}},38567:function(Ze,Ee,ae){"use strict";var oe=ae(70167),Pe=ae(79318),Ie=ae(85804),ke=oe.boolean,Ve=oe.overloadedBoolean,Te=oe.booleanish,ze=oe.number,st=oe.spaceSeparated,Qe=oe.commaSeparated;Ze.exports=Pe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ie,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qe,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:st,autoFocus:ke,autoPlay:ke,capture:ke,charSet:null,checked:ke,cite:null,className:st,cols:ze,colSpan:null,content:null,contentEditable:Te,controls:ke,controlsList:st,coords:ze|Qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:Ve,draggable:Te,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:st,height:ze,hidden:ke,high:ze,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:Qe,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:st,itemRef:st,itemScope:ke,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:ze,manifest:null,max:null,maxLength:ze,media:null,method:null,min:null,minLength:ze,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,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:ke,optimum:ze,pattern:null,ping:st,placeholder:null,playsInline:ke,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:st,required:ke,reversed:ke,rows:ze,rowSpan:ze,sandbox:st,scope:null,scoped:ke,seamless:ke,selected:ke,shape:null,size:ze,sizes:null,slot:null,span:ze,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:Qe,start:ze,step:null,style:null,tabIndex:ze,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:Te,width:ze,wrap:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:ze,borderColor:null,bottomMargin:ze,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:ze,leftMargin:ze,link:null,longDesc:null,lowSrc:null,marginHeight:ze,marginWidth:ze,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:ze,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:ze,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ze,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:ze,security:null,unselectable:null}})},85804:function(Ze,Ee,ae){"use strict";var oe=ae(56432);Ze.exports=Pe;function Pe(Ie,ke){return oe(Ie,ke.toLowerCase())}},56432:function(Ze){"use strict";Ze.exports=Ee;function Ee(ae,oe){return oe in ae?ae[oe]:oe}},79318:function(Ze,Ee,ae){"use strict";var oe=ae(47178),Pe=ae(44347),Ie=ae(19095);Ze.exports=ke;function ke(Ve){var Te=Ve.space,ze=Ve.mustUseProperty||[],st=Ve.attributes||{},Qe=Ve.properties,Ue=Ve.transform,St={},$e={},Dt,Fe;for(Dt in Qe)Fe=new Ie(Dt,Ue(st,Dt),Qe[Dt],Te),ze.indexOf(Dt)!==-1&&(Fe.mustUseProperty=!0),St[Dt]=Fe,$e[oe(Dt)]=Dt,$e[oe(Fe.attribute)]=Dt;return new Pe(St,$e,Te)}},19095:function(Ze,Ee,ae){"use strict";var oe=ae(1969),Pe=ae(70167);Ze.exports=Ve,Ve.prototype=new oe,Ve.prototype.defined=!0;var Ie=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],ke=Ie.length;function Ve(ze,st,Qe,Ue){var St=-1,$e;for(Te(this,"space",Ue),oe.call(this,ze,st);++St<ke;)$e=Ie[St],Te(this,$e,(Qe&Pe[$e])===Pe[$e])}function Te(ze,st,Qe){Qe&&(ze[st]=Qe)}},1969:function(Ze){"use strict";Ze.exports=ae;var Ee=ae.prototype;Ee.space=null,Ee.attribute=null,Ee.property=null,Ee.boolean=!1,Ee.booleanish=!1,Ee.overloadedBoolean=!1,Ee.number=!1,Ee.commaSeparated=!1,Ee.spaceSeparated=!1,Ee.commaOrSpaceSeparated=!1,Ee.mustUseProperty=!1,Ee.defined=!1;function ae(oe,Pe){this.property=oe,this.attribute=Pe}},83576:function(Ze,Ee,ae){"use strict";var oe=ae(97270),Pe=ae(44347);Ze.exports=Ie;function Ie(ke){for(var Ve=ke.length,Te=[],ze=[],st=-1,Qe,Ue;++st<Ve;)Qe=ke[st],Te.push(Qe.property),ze.push(Qe.normal),Ue=Qe.space;return new Pe(oe.apply(null,Te),oe.apply(null,ze),Ue)}},44347:function(Ze){"use strict";Ze.exports=ae;var Ee=ae.prototype;Ee.space=null,Ee.normal={},Ee.property={};function ae(oe,Pe,Ie){this.property=oe,this.normal=Pe,Ie&&(this.space=Ie)}},70167:function(Ze,Ee){"use strict";var ae=0;Ee.boolean=oe(),Ee.booleanish=oe(),Ee.overloadedBoolean=oe(),Ee.number=oe(),Ee.spaceSeparated=oe(),Ee.commaSeparated=oe(),Ee.commaOrSpaceSeparated=oe();function oe(){return Math.pow(2,++ae)}},8179:function(Ze,Ee,ae){"use strict";var oe=ae(79318);Ze.exports=oe({space:"xlink",transform:Pe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Pe(Ie,ke){return"xlink:"+ke.slice(5).toLowerCase()}},59780:function(Ze,Ee,ae){"use strict";var oe=ae(79318);Ze.exports=oe({space:"xml",transform:Pe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pe(Ie,ke){return"xml:"+ke.slice(3).toLowerCase()}},68244:function(Ze,Ee,ae){"use strict";var oe=ae(79318),Pe=ae(85804);Ze.exports=oe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pe,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Ze){"use strict";Ze.exports=Ee;function Ee(ae){return ae.toLowerCase()}},63727:function(Ze,Ee,ae){"use strict";ae.d(Ee,{s:function(){return Pt},default:function(){return Un}});var oe=ae(72308),Pe=ae(77321),Ie=ae(80702),ke=ae(52487),Ve=ae(74416),Te=ae(45560),ze=ae(69582),st=ae(6089),Qe=ae(18929),Ue=ae(59301),St=Ue.createContext({}),$e=St,Dt=ae(62853),Fe=ae(49618),te="__rc_cascader_search_mark__",ee=function(on,mn,er){var Sn=er.label,ht=Sn===void 0?"":Sn;return mn.some(function(tr){return String(tr[ht]).toLowerCase().includes(on.toLowerCase())})},he=function(on,mn,er,Sn){return mn.map(function(ht){return ht[Sn.label]}).join(" / ")},ue=function(on,mn,er,Sn,ht,tr){var lr=ht.filter,qt=lr===void 0?ee:lr,yr=ht.render,ri=yr===void 0?he:yr,Or=ht.limit,Nn=Or===void 0?50:Or,ui=ht.sort;return Ue.useMemo(function(){var $r=[];if(!on)return[];function or(Kr,oi){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Kr.forEach(function(kr){if(!(!ui&&Nn!==!1&&Nn>0&&$r.length>=Nn)){var Pr=[].concat((0,Ie.Z)(oi),[kr]),ei=kr[er.children],Ii=Me||kr.disabled;if((!ei||ei.length===0||tr)&&qt(on,Pr,{label:er.label})){var Di;$r.push((0,Pe.Z)((0,Pe.Z)({},kr),{},(Di={disabled:Ii},(0,Fe.Z)(Di,er.label,ri(on,Pr,Sn,er)),(0,Fe.Z)(Di,te,Pr),(0,Fe.Z)(Di,er.children,void 0),Di)))}ei&&or(kr[er.children],Pr,Ii)}})}return or(mn,[]),ui&&$r.sort(function(Kr,oi){return ui(Kr[te],oi[te],on,er)}),Nn!==!1&&Nn>0?$r.slice(0,Nn):$r},[on,mn,er,Sn,ri,tr,qt,ui,Nn])},fe=ue,me="__RC_CASCADER_SPLIT__",be="SHOW_PARENT",Ae="SHOW_CHILD";function De(Yt){return Yt.join(me)}function We(Yt){return Yt.map(De)}function nt(Yt){return Yt.split(me)}function qe(Yt){var on=Yt||{},mn=on.label,er=on.value,Sn=on.children,ht=er||"value";return{label:mn||"label",value:ht,key:ht,children:Sn||"children"}}function ot(Yt,on){var mn,er;return(mn=Yt.isLeaf)!==null&&mn!==void 0?mn:!((er=Yt[on.children])!==null&&er!==void 0&&er.length)}function mt(Yt){var on=Yt.parentElement;if(on){var mn=Yt.offsetTop-on.offsetTop;mn-on.scrollTop<0?on.scrollTo({top:mn}):mn+Yt.offsetHeight-on.scrollTop>on.offsetHeight&&on.scrollTo({top:mn+Yt.offsetHeight-on.offsetHeight})}}function at(Yt,on){return Yt.map(function(mn){var er;return(er=mn[te])===null||er===void 0?void 0:er.map(function(Sn){return Sn[on.value]})})}function vt(Yt){return Array.isArray(Yt)&&Array.isArray(Yt[0])}function wt(Yt){return Yt?vt(Yt)?Yt:(Yt.length===0?[]:[Yt]).map(function(on){return Array.isArray(on)?on:[on]}):[]}function At(Yt,on,mn){var er=new Set(Yt),Sn=on();return Yt.filter(function(ht){var tr=Sn[ht],lr=tr?tr.parent:null,qt=tr?tr.children:null;return tr&&tr.node.disabled?!0:mn===Ae?!(qt&&qt.some(function(yr){return yr.key&&er.has(yr.key)})):!(lr&&!lr.node.disabled&&er.has(lr.key))})}function Ht(Yt,on,mn){for(var er=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Sn=on,ht=[],tr=function(){var yr,ri,Or,Nn=Yt[lr],ui=(yr=Sn)===null||yr===void 0?void 0:yr.findIndex(function(or){var Kr=or[mn.value];return er?String(Kr)===String(Nn):Kr===Nn}),$r=ui!==-1?(ri=Sn)===null||ri===void 0?void 0:ri[ui]:null;ht.push({value:(Or=$r==null?void 0:$r[mn.value])!==null&&Or!==void 0?Or:Nn,index:ui,option:$r}),Sn=$r==null?void 0:$r[mn.children]},lr=0;lr<Yt.length;lr+=1)tr();return ht}var Qt=function(Yt,on,mn,er,Sn){return Ue.useMemo(function(){var ht=Sn||function(tr){var lr=er?tr.slice(-1):tr,qt=" / ";return lr.every(function(yr){return["string","number"].includes((0,Dt.Z)(yr))})?lr.join(qt):lr.reduce(function(yr,ri,Or){var Nn=Ue.isValidElement(ri)?Ue.cloneElement(ri,{key:Or}):ri;return Or===0?[Nn]:[].concat((0,Ie.Z)(yr),[qt,Nn])},[])};return Yt.map(function(tr){var lr,qt=Ht(tr,on,mn),yr=ht(qt.map(function(Or){var Nn,ui=Or.option,$r=Or.value;return(Nn=ui==null?void 0:ui[mn.label])!==null&&Nn!==void 0?Nn:$r}),qt.map(function(Or){var Nn=Or.option;return Nn})),ri=De(tr);return{label:yr,value:ri,key:ri,valueCells:tr,disabled:(lr=qt[qt.length-1])===null||lr===void 0||(lr=lr.option)===null||lr===void 0?void 0:lr.disabled}})},[Yt,on,mn,Sn,er])};function Zt(Yt,on){return Ue.useCallback(function(mn){var er=[],Sn=[];return mn.forEach(function(ht){var tr=Ht(ht,Yt,on);tr.every(function(lr){return lr.option})?Sn.push(ht):er.push(ht)}),[Sn,er]},[Yt,on])}var ln=ae(34061),Nt=function(Yt,on){var mn=Ue.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),er=Ue.useCallback(function(){return mn.current.options!==Yt&&(mn.current.options=Yt,mn.current.info=(0,ln.I8)(Yt,{fieldNames:on,initWrapper:function(ht){return(0,Pe.Z)((0,Pe.Z)({},ht),{},{pathKeyEntities:{}})},processEntity:function(ht,tr){var lr=ht.nodes.map(function(qt){return qt[on.value]}).join(me);tr.pathKeyEntities[lr]=ht,ht.key=lr}})),mn.current.info.pathKeyEntities},[on,Yt]);return er};function gt(Yt,on){var mn=Ue.useMemo(function(){return on||[]},[on]),er=Nt(mn,Yt),Sn=Ue.useCallback(function(ht){var tr=er();return ht.map(function(lr){var qt=tr[lr].nodes;return qt.map(function(yr){return yr[Yt.value]})})},[er,Yt]);return[mn,er,Sn]}var ct=ae(48736);function Jt(Yt){return Ue.useMemo(function(){if(!Yt)return[!1,{}];var on={matchInputWidth:!0,limit:50};return Yt&&(0,Dt.Z)(Yt)==="object"&&(on=(0,Pe.Z)((0,Pe.Z)({},on),Yt)),on.limit<=0&&(on.limit=!1),[!0,on]},[Yt])}var sn=ae(34643);function It(Yt,on,mn,er,Sn,ht,tr,lr){return function(qt){if(!Yt)on(qt);else{var yr=De(qt),ri=We(mn),Or=We(er),Nn=ri.includes(yr),ui=Sn.some(function(Ii){return De(Ii)===yr}),$r=mn,or=Sn;if(ui&&!Nn)or=Sn.filter(function(Ii){return De(Ii)!==yr});else{var Kr=Nn?ri.filter(function(Ii){return Ii!==yr}):[].concat((0,Ie.Z)(ri),[yr]),oi=ht(),Me;if(Nn){var kr=(0,sn.S)(Kr,{checked:!1,halfCheckedKeys:Or},oi);Me=kr.checkedKeys}else{var Pr=(0,sn.S)(Kr,!0,oi);Me=Pr.checkedKeys}var ei=At(Me,ht,lr);$r=tr(ei)}on([].concat((0,Ie.Z)(or),(0,Ie.Z)($r)))}}}function wn(Yt,on,mn,er,Sn){return Ue.useMemo(function(){var ht=Sn(on),tr=(0,ke.Z)(ht,2),lr=tr[0],qt=tr[1];if(!Yt||!on.length)return[lr,[],qt];var yr=We(lr),ri=mn(),Or=(0,sn.S)(yr,!0,ri),Nn=Or.checkedKeys,ui=Or.halfCheckedKeys;return[er(Nn),er(ui),qt]},[Yt,on,mn,er,Sn])}var bn=ae(92310),_n=ae.n(bn),Xt=Ue.memo(function(Yt){var on=Yt.children;return on},function(Yt,on){return!on.open}),zn=Xt;function Ot(Yt){var on,mn=Yt.prefixCls,er=Yt.checked,Sn=Yt.halfChecked,ht=Yt.disabled,tr=Yt.onClick,lr=Yt.disableCheckbox,qt=Ue.useContext($e),yr=qt.checkable,ri=typeof yr!="boolean"?yr:null;return Ue.createElement("span",{className:_n()("".concat(mn),(on={},(0,Fe.Z)(on,"".concat(mn,"-checked"),er),(0,Fe.Z)(on,"".concat(mn,"-indeterminate"),!er&&Sn),(0,Fe.Z)(on,"".concat(mn,"-disabled"),ht||lr),on)),onClick:tr},ri)}var jn="__cascader_fix_label__";function cr(Yt){var on=Yt.prefixCls,mn=Yt.multiple,er=Yt.options,Sn=Yt.activeValue,ht=Yt.prevValuePath,tr=Yt.onToggleOpen,lr=Yt.onSelect,qt=Yt.onActive,yr=Yt.checkedSet,ri=Yt.halfCheckedSet,Or=Yt.loadingKeys,Nn=Yt.isSelectable,ui=Yt.disabled,$r="".concat(on,"-menu"),or="".concat(on,"-menu-item"),Kr=Ue.useContext($e),oi=Kr.fieldNames,Me=Kr.changeOnSelect,kr=Kr.expandTrigger,Pr=Kr.expandIcon,ei=Kr.loadingIcon,Ii=Kr.dropdownMenuColumnStyle,Di=Kr.optionRender,Ti=kr==="hover",Vr=function(hn){return ui||hn},Fr=Ue.useMemo(function(){return er.map(function(dn){var hn,un=dn.disabled,Ur=dn.disableCheckbox,Tr=dn[te],Zr=(hn=dn[jn])!==null&&hn!==void 0?hn:dn[oi.label],sr=dn[oi.value],Rr=ot(dn,oi),Cn=Tr?Tr.map(function(vr){return vr[oi.value]}):[].concat((0,Ie.Z)(ht),[sr]),fn=De(Cn),Wr=Or.includes(fn),kt=yr.has(fn),Gn=ri.has(fn);return{disabled:un,label:Zr,value:sr,isLeaf:Rr,isLoading:Wr,checked:kt,halfChecked:Gn,option:dn,disableCheckbox:Ur,fullPath:Cn,fullPathKey:fn}})},[er,yr,oi,ri,Or,ht]);return Ue.createElement("ul",{className:$r,role:"menu"},Fr.map(function(dn){var hn,un=dn.disabled,Ur=dn.label,Tr=dn.value,Zr=dn.isLeaf,sr=dn.isLoading,Rr=dn.checked,Cn=dn.halfChecked,fn=dn.option,Wr=dn.fullPath,kt=dn.fullPathKey,Gn=dn.disableCheckbox,vr=function(){if(!Vr(un)){var Dn=(0,Ie.Z)(Wr);Ti&&Zr&&Dn.pop(),qt(Dn)}},Qr=function(){Nn(fn)&&!Vr(un)&&lr(Wr,Zr)},nn;return typeof fn.title=="string"?nn=fn.title:typeof Ur=="string"&&(nn=Ur),Ue.createElement("li",{key:kt,className:_n()(or,(hn={},(0,Fe.Z)(hn,"".concat(or,"-expand"),!Zr),(0,Fe.Z)(hn,"".concat(or,"-active"),Sn===Tr||Sn===kt),(0,Fe.Z)(hn,"".concat(or,"-disabled"),Vr(un)),(0,Fe.Z)(hn,"".concat(or,"-loading"),sr),hn)),style:Ii,role:"menuitemcheckbox",title:nn,"aria-checked":Rr,"data-path-key":kt,onClick:function(){vr(),!Gn&&(!mn||Zr)&&Qr()},onDoubleClick:function(){Me&&tr(!1)},onMouseEnter:function(){Ti&&vr()},onMouseDown:function(Dn){Dn.preventDefault()}},mn&&Ue.createElement(Ot,{prefixCls:"".concat(on,"-checkbox"),checked:Rr,halfChecked:Cn,disabled:Vr(un)||Gn,disableCheckbox:Gn,onClick:function(Dn){Gn||(Dn.stopPropagation(),Qr())}}),Ue.createElement("div",{className:"".concat(or,"-content")},Di?Di(fn):Ur),!sr&&Pr&&!Zr&&Ue.createElement("div",{className:"".concat(or,"-expand-icon")},Pr),sr&&ei&&Ue.createElement("div",{className:"".concat(or,"-loading-icon")},ei))}))}var it=function(on,mn){var er=Ue.useContext($e),Sn=er.values,ht=Sn[0],tr=Ue.useState([]),lr=(0,ke.Z)(tr,2),qt=lr[0],yr=lr[1];return Ue.useEffect(function(){on||yr(ht||[])},[mn,ht]),[qt,yr]},_e=it,Re=ae(10228),Xe=function(Yt,on,mn,er,Sn,ht,tr){var lr=tr.direction,qt=tr.searchValue,yr=tr.toggleOpen,ri=tr.open,Or=lr==="rtl",Nn=Ue.useMemo(function(){for(var Ii=-1,Di=on,Ti=[],Vr=[],Fr=er.length,dn=at(on,mn),hn=function(sr){var Rr=Di.findIndex(function(Cn,fn){return(dn[fn]?De(dn[fn]):Cn[mn.value])===er[sr]});if(Rr===-1)return 1;Ii=Rr,Ti.push(Ii),Vr.push(er[sr]),Di=Di[Ii][mn.children]},un=0;un<Fr&&Di&&!hn(un);un+=1);for(var Ur=on,Tr=0;Tr<Ti.length-1;Tr+=1)Ur=Ur[Ti[Tr]][mn.children];return[Vr,Ii,Ur,dn]},[er,mn,on]),ui=(0,ke.Z)(Nn,4),$r=ui[0],or=ui[1],Kr=ui[2],oi=ui[3],Me=function(Di){Sn(Di)},kr=function(Di){var Ti=Kr.length,Vr=or;Vr===-1&&Di<0&&(Vr=Ti);for(var Fr=0;Fr<Ti;Fr+=1){Vr=(Vr+Di+Ti)%Ti;var dn=Kr[Vr];if(dn&&!dn.disabled){var hn=$r.slice(0,-1).concat(oi[Vr]?De(oi[Vr]):dn[mn.value]);Me(hn);return}}},Pr=function(){if($r.length>1){var Di=$r.slice(0,-1);Me(Di)}else yr(!1)},ei=function(){var Di,Ti=((Di=Kr[or])===null||Di===void 0?void 0:Di[mn.children])||[],Vr=Ti.find(function(dn){return!dn.disabled});if(Vr){var Fr=[].concat((0,Ie.Z)($r),[Vr[mn.value]]);Me(Fr)}};Ue.useImperativeHandle(Yt,function(){return{onKeyDown:function(Di){var Ti=Di.which;switch(Ti){case Re.Z.UP:case Re.Z.DOWN:{var Vr=0;Ti===Re.Z.UP?Vr=-1:Ti===Re.Z.DOWN&&(Vr=1),Vr!==0&&kr(Vr);break}case Re.Z.LEFT:{if(qt)break;Or?ei():Pr();break}case Re.Z.RIGHT:{if(qt)break;Or?Pr():ei();break}case Re.Z.BACKSPACE:{qt||Pr();break}case Re.Z.ENTER:{if($r.length){var Fr=Kr[or],dn=(Fr==null?void 0:Fr[te])||[];dn.length?ht(dn.map(function(hn){return hn[mn.value]}),dn[dn.length-1]):ht($r,Kr[or])}break}case Re.Z.ESC:yr(!1),ri&&Di.stopPropagation()}},onKeyUp:function(){}}})},lt=Ue.forwardRef(function(Yt,on){var mn,er,Sn,ht=Yt.prefixCls,tr=Yt.multiple,lr=Yt.searchValue,qt=Yt.toggleOpen,yr=Yt.notFoundContent,ri=Yt.direction,Or=Yt.open,Nn=Yt.disabled,ui=Ue.useRef(null),$r=ri==="rtl",or=Ue.useContext($e),Kr=or.options,oi=or.values,Me=or.halfValues,kr=or.fieldNames,Pr=or.changeOnSelect,ei=or.onSelect,Ii=or.searchOptions,Di=or.dropdownPrefixCls,Ti=or.loadData,Vr=or.expandTrigger,Fr=Di||ht,dn=Ue.useState([]),hn=(0,ke.Z)(dn,2),un=hn[0],Ur=hn[1],Tr=function(hi){if(!(!Ti||lr)){var ti=Ht(hi,Kr,kr),Si=ti.map(function(xi){var zi=xi.option;return zi}),nr=Si[Si.length-1];if(nr&&!ot(nr,kr)){var vn=De(hi);Ur(function(xi){return[].concat((0,Ie.Z)(xi),[vn])}),Ti(Si)}}};Ue.useEffect(function(){un.length&&un.forEach(function(Jn){var hi=nt(Jn),ti=Ht(hi,Kr,kr,!0).map(function(nr){var vn=nr.option;return vn}),Si=ti[ti.length-1];(!Si||Si[kr.children]||ot(Si,kr))&&Ur(function(nr){return nr.filter(function(vn){return vn!==Jn})})})},[Kr,un,kr]);var Zr=Ue.useMemo(function(){return new Set(We(oi))},[oi]),sr=Ue.useMemo(function(){return new Set(We(Me))},[Me]),Rr=_e(tr,Or),Cn=(0,ke.Z)(Rr,2),fn=Cn[0],Wr=Cn[1],kt=function(hi){Wr(hi),Tr(hi)},Gn=function(hi){if(Nn)return!1;var ti=hi.disabled,Si=ot(hi,kr);return!ti&&(Si||Pr||tr)},vr=function(hi,ti){var Si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ei(hi),!tr&&(ti||Pr&&(Vr==="hover"||Si))&&qt(!1)},Qr=Ue.useMemo(function(){return lr?Ii:Kr},[lr,Ii,Kr]),nn=Ue.useMemo(function(){for(var Jn=[{options:Qr}],hi=Qr,ti=at(hi,kr),Si=function(){var xi=fn[nr],zi=hi.find(function(Xr,fi){return(ti[fi]?De(ti[fi]):Xr[kr.value])===xi}),Ln=zi==null?void 0:zi[kr.children];if(!(Ln!=null&&Ln.length))return 1;hi=Ln,Jn.push({options:Ln})},nr=0;nr<fn.length&&!Si();nr+=1);return Jn},[Qr,fn,kr]),Qn=function(hi,ti){Gn(ti)&&vr(hi,ot(ti,kr),!0)};Xe(on,Qr,kr,fn,kt,Qn,{direction:ri,searchValue:lr,toggleOpen:qt,open:Or}),Ue.useEffect(function(){if(!lr)for(var Jn=0;Jn<fn.length;Jn+=1){var hi,ti=fn.slice(0,Jn+1),Si=De(ti),nr=(hi=ui.current)===null||hi===void 0?void 0:hi.querySelector('li[data-path-key="'.concat(Si.replace(/\\{0,2}"/g,'\\"'),'"]'));nr&&mt(nr)}},[fn,lr]);var Dn=!((mn=nn[0])!==null&&mn!==void 0&&(mn=mn.options)!==null&&mn!==void 0&&mn.length),xn=[(er={},(0,Fe.Z)(er,kr.value,"__EMPTY__"),(0,Fe.Z)(er,jn,yr),(0,Fe.Z)(er,"disabled",!0),er)],Ge=(0,Pe.Z)((0,Pe.Z)({},Yt),{},{multiple:!Dn&&tr,onSelect:vr,onActive:kt,onToggleOpen:qt,checkedSet:Zr,halfCheckedSet:sr,loadingKeys:un,isSelectable:Gn}),Jr=Dn?[{options:xn}]:nn,Hr=Jr.map(function(Jn,hi){var ti=fn.slice(0,hi),Si=fn[hi];return Ue.createElement(cr,(0,oe.Z)({key:hi},Ge,{prefixCls:Fr,options:Jn.options,prevValuePath:ti,activeValue:Si}))});return Ue.createElement(zn,{open:Or},Ue.createElement("div",{className:_n()("".concat(Fr,"-menus"),(Sn={},(0,Fe.Z)(Sn,"".concat(Fr,"-menu-empty"),Dn),(0,Fe.Z)(Sn,"".concat(Fr,"-rtl"),$r),Sn)),ref:ui},Hr))}),Be=lt,bt=Ue.forwardRef(function(Yt,on){var mn=(0,Te.lk)();return Ue.createElement(Be,(0,oe.Z)({},Yt,mn,{ref:on}))}),Wt=bt,yn=ae(70425);function On(){}function Pt(Yt){var on,mn=Yt,er=mn.prefixCls,Sn=er===void 0?"rc-cascader":er,ht=mn.style,tr=mn.className,lr=mn.options,qt=mn.checkable,yr=mn.defaultValue,ri=mn.value,Or=mn.fieldNames,Nn=mn.changeOnSelect,ui=mn.onChange,$r=mn.showCheckedStrategy,or=mn.loadData,Kr=mn.expandTrigger,oi=mn.expandIcon,Me=oi===void 0?">":oi,kr=mn.loadingIcon,Pr=mn.direction,ei=mn.notFoundContent,Ii=ei===void 0?"Not Found":ei,Di=mn.disabled,Ti=!!qt,Vr=(0,yn.C8)(yr,{value:ri,postState:wt}),Fr=(0,ke.Z)(Vr,2),dn=Fr[0],hn=Fr[1],un=Ue.useMemo(function(){return qe(Or)},[JSON.stringify(Or)]),Ur=gt(un,lr),Tr=(0,ke.Z)(Ur,3),Zr=Tr[0],sr=Tr[1],Rr=Tr[2],Cn=Zt(Zr,un),fn=wn(Ti,dn,sr,Rr,Cn),Wr=(0,ke.Z)(fn,3),kt=Wr[0],Gn=Wr[1],vr=Wr[2],Qr=(0,yn.zX)(function(Jr){if(hn(Jr),ui){var Hr=wt(Jr),Jn=Hr.map(function(Si){return Ht(Si,Zr,un).map(function(nr){return nr.option})}),hi=Ti?Hr:Hr[0],ti=Ti?Jn:Jn[0];ui(hi,ti)}}),nn=It(Ti,Qr,kt,Gn,vr,sr,Rr,$r),Qn=(0,yn.zX)(function(Jr){nn(Jr)}),Dn=Ue.useMemo(function(){return{options:Zr,fieldNames:un,values:kt,halfValues:Gn,changeOnSelect:Nn,onSelect:Qn,checkable:qt,searchOptions:[],dropdownPrefixCls:void 0,loadData:or,expandTrigger:Kr,expandIcon:Me,loadingIcon:kr,dropdownMenuColumnStyle:void 0}},[Zr,un,kt,Gn,Nn,Qn,qt,or,Kr,Me,kr]),xn="".concat(Sn,"-panel"),Ge=!Zr.length;return Ue.createElement($e.Provider,{value:Dn},Ue.createElement("div",{className:_n()(xn,(on={},(0,Fe.Z)(on,"".concat(xn,"-rtl"),Pr==="rtl"),(0,Fe.Z)(on,"".concat(xn,"-empty"),Ge),on),tr),style:ht},Ge?Ii:Ue.createElement(Be,{prefixCls:Sn,searchValue:"",multiple:Ti,toggleOpen:On,open:!0,direction:Pr,disabled:Di})))}function Vt(Yt){var on=Yt.onPopupVisibleChange,mn=Yt.popupVisible,er=Yt.popupClassName,Sn=Yt.popupPlacement;warning(!on,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(mn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(er===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Sn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function zt(Yt,on){if(Yt){var mn=function er(Sn){for(var ht=0;ht<Sn.length;ht++){var tr=Sn[ht];if(tr[on==null?void 0:on.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(tr[on==null?void 0:on.children])&&er(tr[on==null?void 0:on.children]))return!0}};mn(Yt)}}var pn=null,Tn=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],gn=Ue.forwardRef(function(Yt,on){var mn=Yt.id,er=Yt.prefixCls,Sn=er===void 0?"rc-cascader":er,ht=Yt.fieldNames,tr=Yt.defaultValue,lr=Yt.value,qt=Yt.changeOnSelect,yr=Yt.onChange,ri=Yt.displayRender,Or=Yt.checkable,Nn=Yt.autoClearSearchValue,ui=Nn===void 0?!0:Nn,$r=Yt.searchValue,or=Yt.onSearch,Kr=Yt.showSearch,oi=Yt.expandTrigger,Me=Yt.options,kr=Yt.dropdownPrefixCls,Pr=Yt.loadData,ei=Yt.popupVisible,Ii=Yt.open,Di=Yt.popupClassName,Ti=Yt.dropdownClassName,Vr=Yt.dropdownMenuColumnStyle,Fr=Yt.dropdownStyle,dn=Yt.popupPlacement,hn=Yt.placement,un=Yt.onDropdownVisibleChange,Ur=Yt.onPopupVisibleChange,Tr=Yt.expandIcon,Zr=Tr===void 0?">":Tr,sr=Yt.loadingIcon,Rr=Yt.children,Cn=Yt.dropdownMatchSelectWidth,fn=Cn===void 0?!1:Cn,Wr=Yt.showCheckedStrategy,kt=Wr===void 0?be:Wr,Gn=Yt.optionRender,vr=(0,Ve.Z)(Yt,Tn),Qr=(0,ze.ZP)(mn),nn=!!Or,Qn=(0,Qe.Z)(tr,{value:lr,postState:wt}),Dn=(0,ke.Z)(Qn,2),xn=Dn[0],Ge=Dn[1],Jr=Ue.useMemo(function(){return qe(ht)},[JSON.stringify(ht)]),Hr=gt(Jr,Me),Jn=(0,ke.Z)(Hr,3),hi=Jn[0],ti=Jn[1],Si=Jn[2],nr=(0,Qe.Z)("",{value:$r,postState:function(zr){return zr||""}}),vn=(0,ke.Z)(nr,2),xi=vn[0],zi=vn[1],Ln=function(zr,ni){zi(zr),ni.source!=="blur"&&or&&or(zr)},Xr=Jt(Kr),fi=(0,ke.Z)(Xr,2),wi=fi[0],ai=fi[1],Ni=fe(xi,hi,Jr,kr||Sn,ai,qt||nn),Xi=Zt(hi,Jr),Vi=wn(nn,xn,ti,Si,Xi),Bi=(0,ke.Z)(Vi,3),Hi=Bi[0],rr=Bi[1],_i=Bi[2],ur=Ue.useMemo(function(){var Sr=We(Hi),zr=At(Sr,ti,kt);return[].concat((0,Ie.Z)(_i),(0,Ie.Z)(Si(zr)))},[Hi,ti,Si,_i,kt]),vi=Qt(ur,hi,Jr,nn,ri),Pi=(0,st.Z)(function(Sr){if(Ge(Sr),yr){var zr=wt(Sr),ni=zr.map(function(ft){return Ht(ft,hi,Jr).map(function(En){return En.option})}),pi=nn?zr:zr[0],Er=nn?ni:ni[0];yr(pi,Er)}}),Mi=It(nn,Pi,Hi,rr,_i,ti,Si,kt),po=(0,st.Z)(function(Sr){(!nn||ui)&&zi(""),Mi(Sr)}),Oo=function(zr,ni){if(ni.type==="clear"){Pi([]);return}var pi=ni.values[0],Er=pi.valueCells;po(Er)},mo=Ii!==void 0?Ii:ei,xo=Ti||Di,Fn=hn||dn,fr=function(zr){un==null||un(zr),Ur==null||Ur(zr)},Rn=Ue.useMemo(function(){return{options:hi,fieldNames:Jr,values:Hi,halfValues:rr,changeOnSelect:qt,onSelect:po,checkable:Or,searchOptions:Ni,dropdownPrefixCls:kr,loadData:Pr,expandTrigger:oi,expandIcon:Zr,loadingIcon:sr,dropdownMenuColumnStyle:Vr,optionRender:Gn}},[hi,Jr,Hi,rr,qt,po,Or,Ni,kr,Pr,oi,Zr,sr,Vr,Gn]),rt=!(xi?Ni:hi).length,jr=xi&&ai.matchInputWidth||rt?{}:{minWidth:"auto"};return Ue.createElement($e.Provider,{value:Rn},Ue.createElement(Te.Ac,(0,oe.Z)({},vr,{ref:on,id:Qr,prefixCls:Sn,autoClearSearchValue:ui,dropdownMatchSelectWidth:fn,dropdownStyle:(0,Pe.Z)((0,Pe.Z)({},jr),Fr),displayValues:vi,onDisplayValuesChange:Oo,mode:nn?"multiple":void 0,searchValue:xi,onSearch:Ln,showSearch:wi,OptionList:Wt,emptyOptions:rt,open:mo,dropdownClassName:xo,placement:Fn,onDropdownVisibleChange:fr,getRawInputElement:function(){return Rr}})))});gn.SHOW_PARENT=be,gn.SHOW_CHILD=Ae,gn.Panel=Pt;var Mt=gn,Un=Mt},98535:function(Ze,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{Panel:function(){return wt},default:function(){return vt}});var oe=ae(72308),Pe=ae(80702),Ie=ae(52487),ke=ae(62853),Ve=ae(92310),Te=ae.n(Ve),ze=ae(18929),st=ae(48736),Qe=ae(59301),Ue=ae(74416),St=ae(11592),$e=ae(77321),Dt=ae(49618),Fe=ae(77900),te=ae(10228),ee=Qe.forwardRef(function(At,Ht){var Qt=At.prefixCls,Zt=At.forceRender,ln=At.className,Nt=At.style,gt=At.children,ct=At.isActive,Jt=At.role,sn=At.classNames,It=At.styles,wn=Qe.useState(ct||Zt),bn=(0,Ie.Z)(wn,2),_n=bn[0],Xt=bn[1];return Qe.useEffect(function(){(Zt||ct)&&Xt(!0)},[Zt,ct]),_n?Qe.createElement("div",{ref:Ht,className:Te()("".concat(Qt,"-content"),(0,Dt.Z)((0,Dt.Z)({},"".concat(Qt,"-content-active"),ct),"".concat(Qt,"-content-inactive"),!ct),ln),style:Nt,role:Jt},Qe.createElement("div",{className:Te()("".concat(Qt,"-content-box"),sn==null?void 0:sn.body),style:It==null?void 0:It.body},gt)):null});ee.displayName="PanelContent";var he=ee,ue=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],fe=Qe.forwardRef(function(At,Ht){var Qt=At.showArrow,Zt=Qt===void 0?!0:Qt,ln=At.headerClass,Nt=At.isActive,gt=At.onItemClick,ct=At.forceRender,Jt=At.className,sn=At.classNames,It=sn===void 0?{}:sn,wn=At.styles,bn=wn===void 0?{}:wn,_n=At.prefixCls,Xt=At.collapsible,zn=At.accordion,Ot=At.panelKey,jn=At.extra,cr=At.header,it=At.expandIcon,_e=At.openMotion,Re=At.destroyInactivePanel,Xe=At.children,lt=(0,Ue.Z)(At,ue),Be=Xt==="disabled",bt=jn!=null&&typeof jn!="boolean",Wt=(0,Dt.Z)((0,Dt.Z)((0,Dt.Z)({onClick:function(){gt==null||gt(Ot)},onKeyDown:function(Tn){(Tn.key==="Enter"||Tn.keyCode===te.Z.ENTER||Tn.which===te.Z.ENTER)&&(gt==null||gt(Ot))},role:zn?"tab":"button"},"aria-expanded",Nt),"aria-disabled",Be),"tabIndex",Be?-1:0),yn=typeof it=="function"?it(At):Qe.createElement("i",{className:"arrow"}),On=yn&&Qe.createElement("div",(0,oe.Z)({className:"".concat(_n,"-expand-icon")},["header","icon"].includes(Xt)?Wt:{}),yn),Pt=Te()("".concat(_n,"-item"),(0,Dt.Z)((0,Dt.Z)({},"".concat(_n,"-item-active"),Nt),"".concat(_n,"-item-disabled"),Be),Jt),Vt=Te()(ln,"".concat(_n,"-header"),(0,Dt.Z)({},"".concat(_n,"-collapsible-").concat(Xt),!!Xt),It.header),zt=(0,$e.Z)({className:Vt,style:bn.header},["header","icon"].includes(Xt)?{}:Wt);return Qe.createElement("div",(0,oe.Z)({},lt,{ref:Ht,className:Pt}),Qe.createElement("div",zt,Zt&&On,Qe.createElement("span",(0,oe.Z)({className:"".concat(_n,"-header-text")},Xt==="header"?Wt:{}),cr),bt&&Qe.createElement("div",{className:"".concat(_n,"-extra")},jn)),Qe.createElement(Fe.default,(0,oe.Z)({visible:Nt,leavedClassName:"".concat(_n,"-content-hidden")},_e,{forceRender:ct,removeOnLeave:Re}),function(pn,Tn){var gn=pn.className,Mt=pn.style;return Qe.createElement(he,{ref:Tn,prefixCls:_n,className:gn,classNames:It,style:Mt,styles:bn,isActive:Nt,forceRender:ct,role:zn?"tabpanel":void 0},Xe)}))}),me=fe,be=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ae=function(Ht,Qt){var Zt=Qt.prefixCls,ln=Qt.accordion,Nt=Qt.collapsible,gt=Qt.destroyInactivePanel,ct=Qt.onItemClick,Jt=Qt.activeKey,sn=Qt.openMotion,It=Qt.expandIcon;return Ht.map(function(wn,bn){var _n=wn.children,Xt=wn.label,zn=wn.key,Ot=wn.collapsible,jn=wn.onItemClick,cr=wn.destroyInactivePanel,it=(0,Ue.Z)(wn,be),_e=String(zn!=null?zn:bn),Re=Ot!=null?Ot:Nt,Xe=cr!=null?cr:gt,lt=function(Wt){Re!=="disabled"&&(ct(Wt),jn==null||jn(Wt))},Be=!1;return ln?Be=Jt[0]===_e:Be=Jt.indexOf(_e)>-1,Qe.createElement(me,(0,oe.Z)({},it,{prefixCls:Zt,key:_e,panelKey:_e,isActive:Be,accordion:ln,openMotion:sn,expandIcon:It,header:Xt,collapsible:Re,onItemClick:lt,destroyInactivePanel:Xe}),_n)})},De=function(Ht,Qt,Zt){if(!Ht)return null;var ln=Zt.prefixCls,Nt=Zt.accordion,gt=Zt.collapsible,ct=Zt.destroyInactivePanel,Jt=Zt.onItemClick,sn=Zt.activeKey,It=Zt.openMotion,wn=Zt.expandIcon,bn=Ht.key||String(Qt),_n=Ht.props,Xt=_n.header,zn=_n.headerClass,Ot=_n.destroyInactivePanel,jn=_n.collapsible,cr=_n.onItemClick,it=!1;Nt?it=sn[0]===bn:it=sn.indexOf(bn)>-1;var _e=jn!=null?jn:gt,Re=function(Be){_e!=="disabled"&&(Jt(Be),cr==null||cr(Be))},Xe={key:bn,panelKey:bn,header:Xt,headerClass:zn,isActive:it,prefixCls:ln,destroyInactivePanel:Ot!=null?Ot:ct,openMotion:It,accordion:Nt,children:Ht.props.children,onItemClick:Re,expandIcon:wn,collapsible:_e};return typeof Ht.type=="string"?Ht:(Object.keys(Xe).forEach(function(lt){typeof Xe[lt]=="undefined"&&delete Xe[lt]}),Qe.cloneElement(Ht,Xe))};function We(At,Ht,Qt){return Array.isArray(At)?Ae(At,Qt):(0,St.Z)(Ht).map(function(Zt,ln){return De(Zt,ln,Qt)})}var nt=We,qe=ae(26112);function ot(At){var Ht=At;if(!Array.isArray(Ht)){var Qt=(0,ke.Z)(Ht);Ht=Qt==="number"||Qt==="string"?[Ht]:[]}return Ht.map(function(Zt){return String(Zt)})}var mt=Qe.forwardRef(function(At,Ht){var Qt=At.prefixCls,Zt=Qt===void 0?"rc-collapse":Qt,ln=At.destroyInactivePanel,Nt=ln===void 0?!1:ln,gt=At.style,ct=At.accordion,Jt=At.className,sn=At.children,It=At.collapsible,wn=At.openMotion,bn=At.expandIcon,_n=At.activeKey,Xt=At.defaultActiveKey,zn=At.onChange,Ot=At.items,jn=Te()(Zt,Jt),cr=(0,ze.Z)([],{value:_n,onChange:function(bt){return zn==null?void 0:zn(bt)},defaultValue:Xt,postState:ot}),it=(0,Ie.Z)(cr,2),_e=it[0],Re=it[1],Xe=function(bt){return Re(function(){if(ct)return _e[0]===bt?[]:[bt];var Wt=_e.indexOf(bt),yn=Wt>-1;return yn?_e.filter(function(On){return On!==bt}):[].concat((0,Pe.Z)(_e),[bt])})};(0,st.ZP)(!sn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var lt=nt(Ot,sn,{prefixCls:Zt,accordion:ct,openMotion:wn,expandIcon:bn,collapsible:It,destroyInactivePanel:Nt,onItemClick:Xe,activeKey:_e});return Qe.createElement("div",(0,oe.Z)({ref:Ht,className:jn,style:gt,role:ct?"tablist":void 0},(0,qe.Z)(At,{aria:!0,data:!0})),lt)}),at=Object.assign(mt,{Panel:me}),vt=at,wt=at.Panel},66042:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return vt}});var oe=ae(77321),Pe=ae(52487),Ie=ae(43403),ke=ae(34280),Ve=ae(59301),Te=Ve.createContext(null),ze=Ve.createContext({}),st=Te,Qe=ae(49618),Ue=ae(72308),St=ae(92310),$e=ae.n(St),Dt=ae(77900),Fe=ae(10228),te=ae(26112),ee=ae(74416),he=ae(8654),ue=["prefixCls","className","containerRef"],fe=function(At){var Ht=At.prefixCls,Qt=At.className,Zt=At.containerRef,ln=(0,ee.Z)(At,ue),Nt=Ve.useContext(ze),gt=Nt.panel,ct=(0,he.x1)(gt,Zt);return Ve.createElement("div",(0,Ue.Z)({className:$e()("".concat(Ht,"-content"),Qt),role:"dialog",ref:ct},(0,te.Z)(At,{aria:!0}),{"aria-modal":"true"},ln))},me=fe,be=ae(48736);function Ae(wt){return typeof wt=="string"&&String(Number(wt))===wt?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(wt)):wt}function De(wt){warning(!("wrapperClassName"in wt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!wt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var We={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function nt(wt,At){var Ht,Qt,Zt,ln=wt.prefixCls,Nt=wt.open,gt=wt.placement,ct=wt.inline,Jt=wt.push,sn=wt.forceRender,It=wt.autoFocus,wn=wt.keyboard,bn=wt.classNames,_n=wt.rootClassName,Xt=wt.rootStyle,zn=wt.zIndex,Ot=wt.className,jn=wt.id,cr=wt.style,it=wt.motion,_e=wt.width,Re=wt.height,Xe=wt.children,lt=wt.mask,Be=wt.maskClosable,bt=wt.maskMotion,Wt=wt.maskClassName,yn=wt.maskStyle,On=wt.afterOpenChange,Pt=wt.onClose,Vt=wt.onMouseEnter,zt=wt.onMouseOver,pn=wt.onMouseLeave,Tn=wt.onClick,gn=wt.onKeyDown,Mt=wt.onKeyUp,Un=wt.styles,Yt=wt.drawerRender,on=Ve.useRef(),mn=Ve.useRef(),er=Ve.useRef();Ve.useImperativeHandle(At,function(){return on.current});var Sn=function(Pr){var ei=Pr.keyCode,Ii=Pr.shiftKey;switch(ei){case Fe.Z.TAB:{if(ei===Fe.Z.TAB){if(!Ii&&document.activeElement===er.current){var Di;(Di=mn.current)===null||Di===void 0||Di.focus({preventScroll:!0})}else if(Ii&&document.activeElement===mn.current){var Ti;(Ti=er.current)===null||Ti===void 0||Ti.focus({preventScroll:!0})}}break}case Fe.Z.ESC:{Pt&&wn&&(Pr.stopPropagation(),Pt(Pr));break}}};Ve.useEffect(function(){if(Nt&&It){var kr;(kr=on.current)===null||kr===void 0||kr.focus({preventScroll:!0})}},[Nt]);var ht=Ve.useState(!1),tr=(0,Pe.Z)(ht,2),lr=tr[0],qt=tr[1],yr=Ve.useContext(st),ri;typeof Jt=="boolean"?ri=Jt?{}:{distance:0}:ri=Jt||{};var Or=(Ht=(Qt=(Zt=ri)===null||Zt===void 0?void 0:Zt.distance)!==null&&Qt!==void 0?Qt:yr==null?void 0:yr.pushDistance)!==null&&Ht!==void 0?Ht:180,Nn=Ve.useMemo(function(){return{pushDistance:Or,push:function(){qt(!0)},pull:function(){qt(!1)}}},[Or]);Ve.useEffect(function(){if(Nt){var kr;yr==null||(kr=yr.push)===null||kr===void 0||kr.call(yr)}else{var Pr;yr==null||(Pr=yr.pull)===null||Pr===void 0||Pr.call(yr)}},[Nt]),Ve.useEffect(function(){return function(){var kr;yr==null||(kr=yr.pull)===null||kr===void 0||kr.call(yr)}},[]);var ui=lt&&Ve.createElement(Dt.default,(0,Ue.Z)({key:"mask"},bt,{visible:Nt}),function(kr,Pr){var ei=kr.className,Ii=kr.style;return Ve.createElement("div",{className:$e()("".concat(ln,"-mask"),ei,bn==null?void 0:bn.mask,Wt),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Ii),yn),Un==null?void 0:Un.mask),onClick:Be&&Nt?Pt:void 0,ref:Pr})}),$r=typeof it=="function"?it(gt):it,or={};if(lr&&Or)switch(gt){case"top":or.transform="translateY(".concat(Or,"px)");break;case"bottom":or.transform="translateY(".concat(-Or,"px)");break;case"left":or.transform="translateX(".concat(Or,"px)");break;default:or.transform="translateX(".concat(-Or,"px)");break}gt==="left"||gt==="right"?or.width=Ae(_e):or.height=Ae(Re);var Kr={onMouseEnter:Vt,onMouseOver:zt,onMouseLeave:pn,onClick:Tn,onKeyDown:gn,onKeyUp:Mt},oi=Ve.createElement(Dt.default,(0,Ue.Z)({key:"panel"},$r,{visible:Nt,forceRender:sn,onVisibleChanged:function(Pr){On==null||On(Pr)},removeOnLeave:!1,leavedClassName:"".concat(ln,"-content-wrapper-hidden")}),function(kr,Pr){var ei=kr.className,Ii=kr.style,Di=Ve.createElement(me,(0,Ue.Z)({id:jn,containerRef:Pr,prefixCls:ln,className:$e()(Ot,bn==null?void 0:bn.content),style:(0,oe.Z)((0,oe.Z)({},cr),Un==null?void 0:Un.content)},(0,te.Z)(wt,{aria:!0}),Kr),Xe);return Ve.createElement("div",(0,Ue.Z)({className:$e()("".concat(ln,"-content-wrapper"),bn==null?void 0:bn.wrapper,ei),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},or),Ii),Un==null?void 0:Un.wrapper)},(0,te.Z)(wt,{data:!0})),Yt?Yt(Di):Di)}),Me=(0,oe.Z)({},Xt);return zn&&(Me.zIndex=zn),Ve.createElement(st.Provider,{value:Nn},Ve.createElement("div",{className:$e()(ln,"".concat(ln,"-").concat(gt),_n,(0,Qe.Z)((0,Qe.Z)({},"".concat(ln,"-open"),Nt),"".concat(ln,"-inline"),ct)),style:Me,tabIndex:-1,ref:on,onKeyDown:Sn},ui,Ve.createElement("div",{tabIndex:0,ref:mn,style:We,"aria-hidden":"true","data-sentinel":"start"}),oi,Ve.createElement("div",{tabIndex:0,ref:er,style:We,"aria-hidden":"true","data-sentinel":"end"})))}var qe=Ve.forwardRef(nt),ot=qe,mt=function(At){var Ht=At.open,Qt=Ht===void 0?!1:Ht,Zt=At.prefixCls,ln=Zt===void 0?"rc-drawer":Zt,Nt=At.placement,gt=Nt===void 0?"right":Nt,ct=At.autoFocus,Jt=ct===void 0?!0:ct,sn=At.keyboard,It=sn===void 0?!0:sn,wn=At.width,bn=wn===void 0?378:wn,_n=At.mask,Xt=_n===void 0?!0:_n,zn=At.maskClosable,Ot=zn===void 0?!0:zn,jn=At.getContainer,cr=At.forceRender,it=At.afterOpenChange,_e=At.destroyOnClose,Re=At.onMouseEnter,Xe=At.onMouseOver,lt=At.onMouseLeave,Be=At.onClick,bt=At.onKeyDown,Wt=At.onKeyUp,yn=At.panelRef,On=Ve.useState(!1),Pt=(0,Pe.Z)(On,2),Vt=Pt[0],zt=Pt[1],pn=Ve.useState(!1),Tn=(0,Pe.Z)(pn,2),gn=Tn[0],Mt=Tn[1];(0,ke.Z)(function(){Mt(!0)},[]);var Un=gn?Qt:!1,Yt=Ve.useRef(),on=Ve.useRef();(0,ke.Z)(function(){Un&&(on.current=document.activeElement)},[Un]);var mn=function(lr){var qt;if(zt(lr),it==null||it(lr),!lr&&on.current&&!((qt=Yt.current)!==null&&qt!==void 0&&qt.contains(on.current))){var yr;(yr=on.current)===null||yr===void 0||yr.focus({preventScroll:!0})}},er=Ve.useMemo(function(){return{panel:yn}},[yn]);if(!cr&&!Vt&&!Un&&_e)return null;var Sn={onMouseEnter:Re,onMouseOver:Xe,onMouseLeave:lt,onClick:Be,onKeyDown:bt,onKeyUp:Wt},ht=(0,oe.Z)((0,oe.Z)({},At),{},{open:Un,prefixCls:ln,placement:gt,autoFocus:Jt,keyboard:It,width:bn,mask:Xt,maskClosable:Ot,inline:jn===!1,afterOpenChange:mn,ref:Yt},Sn);return Ve.createElement(ze.Provider,{value:er},Ve.createElement(Ie.Z,{open:Un||cr||Vt,autoDestroy:!1,getContainer:jn,autoLock:Xt&&(Un||Vt)},Ve.createElement(ot,ht)))},at=mt,vt=at},91574:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Tn}});var oe=ae(72308),Pe=ae(77321),Ie=ae(49618),ke=ae(52487),Ve=ae(62853),Te=ae(74416),ze=ae(92310),st=ae.n(ze),Qe=/margin|padding|width|height|max|min|offset/,Ue={left:!0,top:!0},St={cssFloat:1,styleFloat:1,float:1};function $e(gn){return gn.nodeType===1?gn.ownerDocument.defaultView.getComputedStyle(gn,null):{}}function Dt(gn,Mt,Un){if(Mt=Mt.toLowerCase(),Un==="auto"){if(Mt==="height")return gn.offsetHeight;if(Mt==="width")return gn.offsetWidth}return Mt in Ue||(Ue[Mt]=Qe.test(Mt)),Ue[Mt]?parseFloat(Un)||0:Un}function Fe(gn,Mt){var Un=arguments.length,Yt=$e(gn);return Mt=St[Mt]?"cssFloat"in gn.style?"cssFloat":"styleFloat":Mt,Un===1?Yt:Dt(gn,Mt,Yt[Mt]||gn.style[Mt])}function te(gn,Mt,Un){var Yt=arguments.length;if(Mt=St[Mt]?"cssFloat"in gn.style?"cssFloat":"styleFloat":Mt,Yt===3)return typeof Un=="number"&&Qe.test(Mt)&&(Un="".concat(Un,"px")),gn.style[Mt]=Un,Un;for(var on in Mt)Mt.hasOwnProperty(on)&&te(gn,on,Mt[on]);return $e(gn)}function ee(gn){return gn===document.body?document.documentElement.clientWidth:gn.offsetWidth}function he(gn){return gn===document.body?window.innerHeight||document.documentElement.clientHeight:gn.offsetHeight}function ue(){var gn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Mt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:gn,height:Mt}}function fe(){var gn=document.documentElement.clientWidth,Mt=window.innerHeight||document.documentElement.clientHeight;return{width:gn,height:Mt}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(gn){var Mt=gn.getBoundingClientRect(),Un=document.documentElement;return{left:Mt.left+(window.pageXOffset||Un.scrollLeft)-(Un.clientLeft||document.body.clientLeft||0),top:Mt.top+(window.pageYOffset||Un.scrollTop)-(Un.clientTop||document.body.clientTop||0)}}var Ae=ae(18929),De=ae(59301),We=ae(55311),nt=ae(8224),qe=ae(10228),ot=ae(43403),mt=ae(77900),at=De.createContext(null),vt=function(Mt){var Un=Mt.visible,Yt=Mt.maskTransitionName,on=Mt.getContainer,mn=Mt.prefixCls,er=Mt.rootClassName,Sn=Mt.icons,ht=Mt.countRender,tr=Mt.showSwitch,lr=Mt.showProgress,qt=Mt.current,yr=Mt.transform,ri=Mt.count,Or=Mt.scale,Nn=Mt.minScale,ui=Mt.maxScale,$r=Mt.closeIcon,or=Mt.onActive,Kr=Mt.onClose,oi=Mt.onZoomIn,Me=Mt.onZoomOut,kr=Mt.onRotateRight,Pr=Mt.onRotateLeft,ei=Mt.onFlipX,Ii=Mt.onFlipY,Di=Mt.onReset,Ti=Mt.toolbarRender,Vr=Mt.zIndex,Fr=Mt.image,dn=(0,De.useContext)(at),hn=Sn.rotateLeft,un=Sn.rotateRight,Ur=Sn.zoomIn,Tr=Sn.zoomOut,Zr=Sn.close,sr=Sn.left,Rr=Sn.right,Cn=Sn.flipX,fn=Sn.flipY,Wr="".concat(mn,"-operations-operation");De.useEffect(function(){var Jn=function(ti){ti.keyCode===qe.Z.ESC&&Kr()};return Un&&window.addEventListener("keydown",Jn),function(){window.removeEventListener("keydown",Jn)}},[Un]);var kt=function(hi,ti){hi.preventDefault(),hi.stopPropagation(),or(ti)},Gn=De.useCallback(function(Jn){var hi=Jn.type,ti=Jn.disabled,Si=Jn.onClick,nr=Jn.icon;return De.createElement("div",{key:hi,className:st()(Wr,"".concat(mn,"-operations-operation-").concat(hi),(0,Ie.Z)({},"".concat(mn,"-operations-operation-disabled"),!!ti)),onClick:Si},nr)},[Wr,mn]),vr=tr?Gn({icon:sr,onClick:function(hi){return kt(hi,-1)},type:"prev",disabled:qt===0}):void 0,Qr=tr?Gn({icon:Rr,onClick:function(hi){return kt(hi,1)},type:"next",disabled:qt===ri-1}):void 0,nn=Gn({icon:fn,onClick:Ii,type:"flipY"}),Qn=Gn({icon:Cn,onClick:ei,type:"flipX"}),Dn=Gn({icon:hn,onClick:Pr,type:"rotateLeft"}),xn=Gn({icon:un,onClick:kr,type:"rotateRight"}),Ge=Gn({icon:Tr,onClick:Me,type:"zoomOut",disabled:Or<=Nn}),Jr=Gn({icon:Ur,onClick:oi,type:"zoomIn",disabled:Or===ui}),Hr=De.createElement("div",{className:"".concat(mn,"-operations")},nn,Qn,Dn,xn,Ge,Jr);return De.createElement(mt.default,{visible:Un,motionName:Yt},function(Jn){var hi=Jn.className,ti=Jn.style;return De.createElement(ot.Z,{open:!0,getContainer:on!=null?on:document.body},De.createElement("div",{className:st()("".concat(mn,"-operations-wrapper"),hi,er),style:(0,Pe.Z)((0,Pe.Z)({},ti),{},{zIndex:Vr})},$r===null?null:De.createElement("button",{className:"".concat(mn,"-close"),onClick:Kr},$r||Zr),tr&&De.createElement(De.Fragment,null,De.createElement("div",{className:st()("".concat(mn,"-switch-left"),(0,Ie.Z)({},"".concat(mn,"-switch-left-disabled"),qt===0)),onClick:function(nr){return kt(nr,-1)}},sr),De.createElement("div",{className:st()("".concat(mn,"-switch-right"),(0,Ie.Z)({},"".concat(mn,"-switch-right-disabled"),qt===ri-1)),onClick:function(nr){return kt(nr,1)}},Rr)),De.createElement("div",{className:"".concat(mn,"-footer")},lr&&De.createElement("div",{className:"".concat(mn,"-progress")},ht?ht(qt+1,ri):"".concat(qt+1," / ").concat(ri)),Ti?Ti(Hr,(0,Pe.Z)((0,Pe.Z)({icons:{prevIcon:vr,nextIcon:Qr,flipYIcon:nn,flipXIcon:Qn,rotateLeftIcon:Dn,rotateRightIcon:xn,zoomOutIcon:Ge,zoomInIcon:Jr},actions:{onActive:or,onFlipY:Ii,onFlipX:ei,onRotateLeft:Pr,onRotateRight:kr,onZoomOut:Me,onZoomIn:oi,onReset:Di,onClose:Kr},transform:yr},dn?{current:qt,total:ri}:{}),{},{image:Fr})):Hr)))})},wt=vt,At=ae(13697),Ht=ae(16089),Qt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Zt(gn,Mt,Un,Yt){var on=(0,De.useRef)(null),mn=(0,De.useRef)([]),er=(0,De.useState)(Qt),Sn=(0,ke.Z)(er,2),ht=Sn[0],tr=Sn[1],lr=function(Or){tr(Qt),(0,At.Z)(Qt,ht)||Yt==null||Yt({transform:Qt,action:Or})},qt=function(Or,Nn){on.current===null&&(mn.current=[],on.current=(0,Ht.Z)(function(){tr(function(ui){var $r=ui;return mn.current.forEach(function(or){$r=(0,Pe.Z)((0,Pe.Z)({},$r),or)}),on.current=null,Yt==null||Yt({transform:$r,action:Nn}),$r})})),mn.current.push((0,Pe.Z)((0,Pe.Z)({},ht),Or))},yr=function(Or,Nn,ui,$r,or){var Kr=gn.current,oi=Kr.width,Me=Kr.height,kr=Kr.offsetWidth,Pr=Kr.offsetHeight,ei=Kr.offsetLeft,Ii=Kr.offsetTop,Di=Or,Ti=ht.scale*Or;Ti>Un?(Ti=Un,Di=Un/ht.scale):Ti<Mt&&(Ti=or?Ti:Mt,Di=Ti/ht.scale);var Vr=ui!=null?ui:innerWidth/2,Fr=$r!=null?$r:innerHeight/2,dn=Di-1,hn=dn*oi*.5,un=dn*Me*.5,Ur=dn*(Vr-ht.x-ei),Tr=dn*(Fr-ht.y-Ii),Zr=ht.x-(Ur-hn),sr=ht.y-(Tr-un);if(Or<1&&Ti===1){var Rr=kr*Ti,Cn=Pr*Ti,fn=fe(),Wr=fn.width,kt=fn.height;Rr<=Wr&&Cn<=kt&&(Zr=0,sr=0)}qt({x:Zr,y:sr,scale:Ti},Nn)};return{transform:ht,resetTransform:lr,updateTransform:qt,dispatchZoomChange:yr}}var ln=ae(48736);function Nt(gn,Mt,Un,Yt){var on=Mt+Un,mn=(Un-Yt)/2;if(Un>Yt){if(Mt>0)return(0,Ie.Z)({},gn,mn);if(Mt<0&&on<Yt)return(0,Ie.Z)({},gn,-mn)}else if(Mt<0||on>Yt)return(0,Ie.Z)({},gn,Mt<0?mn:-mn);return{}}function gt(gn,Mt,Un,Yt){var on=fe(),mn=on.width,er=on.height,Sn=null;return gn<=mn&&Mt<=er?Sn={x:0,y:0}:(gn>mn||Mt>er)&&(Sn=(0,Pe.Z)((0,Pe.Z)({},Nt("x",Un,gn,mn)),Nt("y",Yt,Mt,er))),Sn}var ct=1,Jt=1;function sn(gn,Mt,Un,Yt,on,mn,er){var Sn=on.rotate,ht=on.scale,tr=on.x,lr=on.y,qt=(0,De.useState)(!1),yr=(0,ke.Z)(qt,2),ri=yr[0],Or=yr[1],Nn=(0,De.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),ui=function(Me){!Mt||Me.button!==0||(Me.preventDefault(),Me.stopPropagation(),Nn.current={diffX:Me.pageX-tr,diffY:Me.pageY-lr,transformX:tr,transformY:lr},Or(!0))},$r=function(Me){Un&&ri&&mn({x:Me.pageX-Nn.current.diffX,y:Me.pageY-Nn.current.diffY},"move")},or=function(){if(Un&&ri){Or(!1);var Me=Nn.current,kr=Me.transformX,Pr=Me.transformY,ei=tr!==kr&&lr!==Pr;if(!ei)return;var Ii=gn.current.offsetWidth*ht,Di=gn.current.offsetHeight*ht,Ti=gn.current.getBoundingClientRect(),Vr=Ti.left,Fr=Ti.top,dn=Sn%180!==0,hn=gt(dn?Di:Ii,dn?Ii:Di,Vr,Fr);hn&&mn((0,Pe.Z)({},hn),"dragRebound")}},Kr=function(Me){if(!(!Un||Me.deltaY==0)){var kr=Math.abs(Me.deltaY/100),Pr=Math.min(kr,Jt),ei=ct+Pr*Yt;Me.deltaY>0&&(ei=ct/ei),er(ei,"wheel",Me.clientX,Me.clientY)}};return(0,De.useEffect)(function(){var oi,Me,kr,Pr;if(Mt){kr=(0,nt.Z)(window,"mouseup",or,!1),Pr=(0,nt.Z)(window,"mousemove",$r,!1);try{window.top!==window.self&&(oi=(0,nt.Z)(window.top,"mouseup",or,!1),Me=(0,nt.Z)(window.top,"mousemove",$r,!1))}catch(ei){(0,ln.Kp)(!1,"[rc-image] ".concat(ei))}}return function(){var ei,Ii,Di,Ti;(ei=kr)===null||ei===void 0||ei.remove(),(Ii=Pr)===null||Ii===void 0||Ii.remove(),(Di=oi)===null||Di===void 0||Di.remove(),(Ti=Me)===null||Ti===void 0||Ti.remove()}},[Un,ri,tr,lr,Sn,Mt]),{isMoving:ri,onMouseDown:ui,onMouseMove:$r,onMouseUp:or,onWheel:Kr}}function It(gn){return new Promise(function(Mt){if(!gn){Mt(!1);return}var Un=document.createElement("img");Un.onerror=function(){return Mt(!1)},Un.onload=function(){return Mt(!0)},Un.src=gn})}function wn(gn){var Mt=gn.src,Un=gn.isCustomPlaceholder,Yt=gn.fallback,on=(0,De.useState)(Un?"loading":"normal"),mn=(0,ke.Z)(on,2),er=mn[0],Sn=mn[1],ht=(0,De.useRef)(!1),tr=er==="error";(0,De.useEffect)(function(){var ri=!0;return It(Mt).then(function(Or){!Or&&ri&&Sn("error")}),function(){ri=!1}},[Mt]),(0,De.useEffect)(function(){Un&&!ht.current?Sn("loading"):tr&&Sn("normal")},[Mt]);var lr=function(){Sn("normal")},qt=function(Or){ht.current=!1,er==="loading"&&Or!==null&&Or!==void 0&&Or.complete&&(Or.naturalWidth||Or.naturalHeight)&&(ht.current=!0,lr())},yr=tr&&Yt?{src:Yt}:{onLoad:lr,src:Mt};return[qt,yr,er]}function bn(gn,Mt){var Un=gn.x-Mt.x,Yt=gn.y-Mt.y;return Math.hypot(Un,Yt)}function _n(gn,Mt,Un,Yt){var on=bn(gn,Un),mn=bn(Mt,Yt);if(on===0&&mn===0)return[gn.x,gn.y];var er=on/(on+mn),Sn=gn.x+er*(Mt.x-gn.x),ht=gn.y+er*(Mt.y-gn.y);return[Sn,ht]}function Xt(gn,Mt,Un,Yt,on,mn,er){var Sn=on.rotate,ht=on.scale,tr=on.x,lr=on.y,qt=(0,De.useState)(!1),yr=(0,ke.Z)(qt,2),ri=yr[0],Or=yr[1],Nn=(0,De.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),ui=function(Me){Nn.current=(0,Pe.Z)((0,Pe.Z)({},Nn.current),Me)},$r=function(Me){if(Mt){Me.stopPropagation(),Or(!0);var kr=Me.touches,Pr=kr===void 0?[]:kr;Pr.length>1?ui({point1:{x:Pr[0].clientX,y:Pr[0].clientY},point2:{x:Pr[1].clientX,y:Pr[1].clientY},eventType:"touchZoom"}):ui({point1:{x:Pr[0].clientX-tr,y:Pr[0].clientY-lr},eventType:"move"})}},or=function(Me){var kr=Me.touches,Pr=kr===void 0?[]:kr,ei=Nn.current,Ii=ei.point1,Di=ei.point2,Ti=ei.eventType;if(Pr.length>1&&Ti==="touchZoom"){var Vr={x:Pr[0].clientX,y:Pr[0].clientY},Fr={x:Pr[1].clientX,y:Pr[1].clientY},dn=_n(Ii,Di,Vr,Fr),hn=(0,ke.Z)(dn,2),un=hn[0],Ur=hn[1],Tr=bn(Vr,Fr)/bn(Ii,Di);er(Tr,"touchZoom",un,Ur,!0),ui({point1:Vr,point2:Fr,eventType:"touchZoom"})}else Ti==="move"&&(mn({x:Pr[0].clientX-Ii.x,y:Pr[0].clientY-Ii.y},"move"),ui({eventType:"move"}))},Kr=function(){if(Un){if(ri&&Or(!1),ui({eventType:"none"}),Yt>ht)return mn({x:0,y:0,scale:Yt},"touchZoom");var Me=gn.current.offsetWidth*ht,kr=gn.current.offsetHeight*ht,Pr=gn.current.getBoundingClientRect(),ei=Pr.left,Ii=Pr.top,Di=Sn%180!==0,Ti=gt(Di?kr:Me,Di?Me:kr,ei,Ii);Ti&&mn((0,Pe.Z)({},Ti),"dragRebound")}};return(0,De.useEffect)(function(){var oi;return Un&&Mt&&(oi=(0,nt.Z)(window,"touchmove",function(Me){return Me.preventDefault()},{passive:!1})),function(){var Me;(Me=oi)===null||Me===void 0||Me.remove()}},[Un,Mt]),{isTouching:ri,onTouchStart:$r,onTouchMove:or,onTouchEnd:Kr}}var zn=["fallback","src","imgRef"],Ot=["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"],jn=function(Mt){var Un=Mt.fallback,Yt=Mt.src,on=Mt.imgRef,mn=(0,Te.Z)(Mt,zn),er=wn({src:Yt,fallback:Un}),Sn=(0,ke.Z)(er,2),ht=Sn[0],tr=Sn[1];return De.createElement("img",(0,oe.Z)({ref:function(qt){on.current=qt,ht(qt)}},mn,tr))},cr=function(Mt){var Un=Mt.prefixCls,Yt=Mt.src,on=Mt.alt,mn=Mt.imageInfo,er=Mt.fallback,Sn=Mt.movable,ht=Sn===void 0?!0:Sn,tr=Mt.onClose,lr=Mt.visible,qt=Mt.icons,yr=qt===void 0?{}:qt,ri=Mt.rootClassName,Or=Mt.closeIcon,Nn=Mt.getContainer,ui=Mt.current,$r=ui===void 0?0:ui,or=Mt.count,Kr=or===void 0?1:or,oi=Mt.countRender,Me=Mt.scaleStep,kr=Me===void 0?.5:Me,Pr=Mt.minScale,ei=Pr===void 0?1:Pr,Ii=Mt.maxScale,Di=Ii===void 0?50:Ii,Ti=Mt.transitionName,Vr=Ti===void 0?"zoom":Ti,Fr=Mt.maskTransitionName,dn=Fr===void 0?"fade":Fr,hn=Mt.imageRender,un=Mt.imgCommonProps,Ur=Mt.toolbarRender,Tr=Mt.onTransform,Zr=Mt.onChange,sr=(0,Te.Z)(Mt,Ot),Rr=(0,De.useRef)(),Cn=(0,De.useContext)(at),fn=Cn&&Kr>1,Wr=Cn&&Kr>=1,kt=(0,De.useState)(!0),Gn=(0,ke.Z)(kt,2),vr=Gn[0],Qr=Gn[1],nn=Zt(Rr,ei,Di,Tr),Qn=nn.transform,Dn=nn.resetTransform,xn=nn.updateTransform,Ge=nn.dispatchZoomChange,Jr=sn(Rr,ht,lr,kr,Qn,xn,Ge),Hr=Jr.isMoving,Jn=Jr.onMouseDown,hi=Jr.onWheel,ti=Xt(Rr,ht,lr,ei,Qn,xn,Ge),Si=ti.isTouching,nr=ti.onTouchStart,vn=ti.onTouchMove,xi=ti.onTouchEnd,zi=Qn.rotate,Ln=Qn.scale,Xr=st()((0,Ie.Z)({},"".concat(Un,"-moving"),Hr));(0,De.useEffect)(function(){vr||Qr(!0)},[vr]);var fi=function(){Dn("close")},wi=function(){Ge(ct+kr,"zoomIn")},ai=function(){Ge(ct/(ct+kr),"zoomOut")},Ni=function(){xn({rotate:zi+90},"rotateRight")},Xi=function(){xn({rotate:zi-90},"rotateLeft")},Vi=function(){xn({flipX:!Qn.flipX},"flipX")},Bi=function(){xn({flipY:!Qn.flipY},"flipY")},Hi=function(){Dn("reset")},rr=function(po){var Oo=$r+po;!Number.isInteger(Oo)||Oo<0||Oo>Kr-1||(Qr(!1),Dn(po<0?"prev":"next"),Zr==null||Zr(Oo,$r))},_i=function(po){!lr||!fn||(po.keyCode===qe.Z.LEFT?rr(-1):po.keyCode===qe.Z.RIGHT&&rr(1))},ur=function(po){lr&&(Ln!==1?xn({x:0,y:0,scale:1},"doubleClick"):Ge(ct+kr,"doubleClick",po.clientX,po.clientY))};(0,De.useEffect)(function(){var Mi=(0,nt.Z)(window,"keydown",_i,!1);return function(){Mi.remove()}},[lr,fn,$r]);var vi=De.createElement(jn,(0,oe.Z)({},un,{width:Mt.width,height:Mt.height,imgRef:Rr,className:"".concat(Un,"-img"),alt:on,style:{transform:"translate3d(".concat(Qn.x,"px, ").concat(Qn.y,"px, 0) scale3d(").concat(Qn.flipX?"-":"").concat(Ln,", ").concat(Qn.flipY?"-":"").concat(Ln,", 1) rotate(").concat(zi,"deg)"),transitionDuration:(!vr||Si)&&"0s"},fallback:er,src:Yt,onWheel:hi,onMouseDown:Jn,onDoubleClick:ur,onTouchStart:nr,onTouchMove:vn,onTouchEnd:xi,onTouchCancel:xi})),Pi=(0,Pe.Z)({url:Yt,alt:on},mn);return De.createElement(De.Fragment,null,De.createElement(We.Z,(0,oe.Z)({transitionName:Vr,maskTransitionName:dn,closable:!1,keyboard:!0,prefixCls:Un,onClose:tr,visible:lr,classNames:{wrapper:Xr},rootClassName:ri,getContainer:Nn},sr,{afterClose:fi}),De.createElement("div",{className:"".concat(Un,"-img-wrapper")},hn?hn(vi,(0,Pe.Z)({transform:Qn,image:Pi},Cn?{current:$r}:{})):vi)),De.createElement(wt,{visible:lr,transform:Qn,maskTransitionName:dn,closeIcon:Or,getContainer:Nn,prefixCls:Un,rootClassName:ri,icons:yr,countRender:oi,showSwitch:fn,showProgress:Wr,current:$r,count:Kr,scale:Ln,minScale:ei,maxScale:Di,toolbarRender:Ur,onActive:rr,onZoomIn:wi,onZoomOut:ai,onRotateRight:Ni,onRotateLeft:Xi,onFlipX:Vi,onFlipY:Bi,onClose:tr,onReset:Hi,zIndex:sr.zIndex!==void 0?sr.zIndex+1:void 0,image:Pi}))},it=cr,_e=ae(80702),Re=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Xe(gn){var Mt=De.useState({}),Un=(0,ke.Z)(Mt,2),Yt=Un[0],on=Un[1],mn=De.useCallback(function(Sn,ht){return on(function(tr){return(0,Pe.Z)((0,Pe.Z)({},tr),{},(0,Ie.Z)({},Sn,ht))}),function(){on(function(tr){var lr=(0,Pe.Z)({},tr);return delete lr[Sn],lr})}},[]),er=De.useMemo(function(){return gn?gn.map(function(Sn){if(typeof Sn=="string")return{data:{src:Sn}};var ht={};return Object.keys(Sn).forEach(function(tr){["src"].concat((0,_e.Z)(Re)).includes(tr)&&(ht[tr]=Sn[tr])}),{data:ht}}):Object.keys(Yt).reduce(function(Sn,ht){var tr=Yt[ht],lr=tr.canPreview,qt=tr.data;return lr&&Sn.push({data:qt,id:ht}),Sn},[])},[gn,Yt]);return[er,mn,!!gn]}var lt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],bt=function(Mt){var Un,Yt=Mt.previewPrefixCls,on=Yt===void 0?"rc-image-preview":Yt,mn=Mt.children,er=Mt.icons,Sn=er===void 0?{}:er,ht=Mt.items,tr=Mt.preview,lr=Mt.fallback,qt=(0,Ve.Z)(tr)==="object"?tr:{},yr=qt.visible,ri=qt.onVisibleChange,Or=qt.getContainer,Nn=qt.current,ui=qt.movable,$r=qt.minScale,or=qt.maxScale,Kr=qt.countRender,oi=qt.closeIcon,Me=qt.onChange,kr=qt.onTransform,Pr=qt.toolbarRender,ei=qt.imageRender,Ii=(0,Te.Z)(qt,lt),Di=Xe(ht),Ti=(0,ke.Z)(Di,3),Vr=Ti[0],Fr=Ti[1],dn=Ti[2],hn=(0,Ae.Z)(0,{value:Nn}),un=(0,ke.Z)(hn,2),Ur=un[0],Tr=un[1],Zr=(0,De.useState)(!1),sr=(0,ke.Z)(Zr,2),Rr=sr[0],Cn=sr[1],fn=((Un=Vr[Ur])===null||Un===void 0?void 0:Un.data)||{},Wr=fn.src,kt=(0,Te.Z)(fn,Be),Gn=(0,Ae.Z)(!!yr,{value:yr,onChange:function(Si,nr){ri==null||ri(Si,nr,Ur)}}),vr=(0,ke.Z)(Gn,2),Qr=vr[0],nn=vr[1],Qn=(0,De.useState)(null),Dn=(0,ke.Z)(Qn,2),xn=Dn[0],Ge=Dn[1],Jr=De.useCallback(function(ti,Si,nr,vn){var xi=dn?Vr.findIndex(function(zi){return zi.data.src===Si}):Vr.findIndex(function(zi){return zi.id===ti});Tr(xi<0?0:xi),nn(!0),Ge({x:nr,y:vn}),Cn(!0)},[Vr,dn]);De.useEffect(function(){Qr?Rr||Tr(0):Cn(!1)},[Qr]);var Hr=function(Si,nr){Tr(Si),Me==null||Me(Si,nr)},Jn=function(){nn(!1),Ge(null)},hi=De.useMemo(function(){return{register:Fr,onPreview:Jr}},[Fr,Jr]);return De.createElement(at.Provider,{value:hi},mn,De.createElement(it,(0,oe.Z)({"aria-hidden":!Qr,movable:ui,visible:Qr,prefixCls:on,closeIcon:oi,onClose:Jn,mousePosition:xn,imgCommonProps:kt,src:Wr,fallback:lr,icons:Sn,minScale:$r,maxScale:or,getContainer:Or,current:Ur,count:Vr.length,countRender:Kr,onTransform:kr,toolbarRender:Pr,imageRender:ei,onChange:Hr},Ii)))},Wt=bt,yn=0;function On(gn,Mt){var Un=De.useState(function(){return yn+=1,String(yn)}),Yt=(0,ke.Z)(Un,1),on=Yt[0],mn=De.useContext(at),er={data:Mt,canPreview:gn};return De.useEffect(function(){if(mn)return mn.register(on,er)},[]),De.useEffect(function(){mn&&mn.register(on,er)},[gn,Mt]),on}var Pt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Vt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],zt=function(Mt){var Un=Mt.src,Yt=Mt.alt,on=Mt.onPreviewClose,mn=Mt.prefixCls,er=mn===void 0?"rc-image":mn,Sn=Mt.previewPrefixCls,ht=Sn===void 0?"".concat(er,"-preview"):Sn,tr=Mt.placeholder,lr=Mt.fallback,qt=Mt.width,yr=Mt.height,ri=Mt.style,Or=Mt.preview,Nn=Or===void 0?!0:Or,ui=Mt.className,$r=Mt.onClick,or=Mt.onError,Kr=Mt.wrapperClassName,oi=Mt.wrapperStyle,Me=Mt.rootClassName,kr=(0,Te.Z)(Mt,Pt),Pr=tr&&tr!==!0,ei=(0,Ve.Z)(Nn)==="object"?Nn:{},Ii=ei.src,Di=ei.visible,Ti=Di===void 0?void 0:Di,Vr=ei.onVisibleChange,Fr=Vr===void 0?on:Vr,dn=ei.getContainer,hn=dn===void 0?void 0:dn,un=ei.mask,Ur=ei.maskClassName,Tr=ei.movable,Zr=ei.icons,sr=ei.scaleStep,Rr=ei.minScale,Cn=ei.maxScale,fn=ei.imageRender,Wr=ei.toolbarRender,kt=(0,Te.Z)(ei,Vt),Gn=Ii!=null?Ii:Un,vr=(0,Ae.Z)(!!Ti,{value:Ti,onChange:Fr}),Qr=(0,ke.Z)(vr,2),nn=Qr[0],Qn=Qr[1],Dn=wn({src:Un,isCustomPlaceholder:Pr,fallback:lr}),xn=(0,ke.Z)(Dn,3),Ge=xn[0],Jr=xn[1],Hr=xn[2],Jn=(0,De.useState)(null),hi=(0,ke.Z)(Jn,2),ti=hi[0],Si=hi[1],nr=(0,De.useContext)(at),vn=!!Nn,xi=function(){Qn(!1),Si(null)},zi=st()(er,Kr,Me,(0,Ie.Z)({},"".concat(er,"-error"),Hr==="error")),Ln=(0,De.useMemo)(function(){var ai={};return Re.forEach(function(Ni){Mt[Ni]!==void 0&&(ai[Ni]=Mt[Ni])}),ai},Re.map(function(ai){return Mt[ai]})),Xr=(0,De.useMemo)(function(){return(0,Pe.Z)((0,Pe.Z)({},Ln),{},{src:Gn})},[Gn,Ln]),fi=On(vn,Xr),wi=function(Ni){var Xi=be(Ni.target),Vi=Xi.left,Bi=Xi.top;nr?nr.onPreview(fi,Gn,Vi,Bi):(Si({x:Vi,y:Bi}),Qn(!0)),$r==null||$r(Ni)};return De.createElement(De.Fragment,null,De.createElement("div",(0,oe.Z)({},kr,{className:zi,onClick:vn?wi:$r,style:(0,Pe.Z)({width:qt,height:yr},oi)}),De.createElement("img",(0,oe.Z)({},Ln,{className:st()("".concat(er,"-img"),(0,Ie.Z)({},"".concat(er,"-img-placeholder"),tr===!0),ui),style:(0,Pe.Z)({height:yr},ri),ref:Ge},Jr,{width:qt,height:yr,onError:or})),Hr==="loading"&&De.createElement("div",{"aria-hidden":"true",className:"".concat(er,"-placeholder")},tr),un&&vn&&De.createElement("div",{className:st()("".concat(er,"-mask"),Ur),style:{display:(ri==null?void 0:ri.display)==="none"?"none":void 0}},un)),!nr&&vn&&De.createElement(it,(0,oe.Z)({"aria-hidden":!nn,visible:nn,prefixCls:ht,onClose:xi,mousePosition:ti,src:Gn,alt:Yt,imageInfo:{width:qt,height:yr},fallback:lr,getContainer:hn,icons:Zr,movable:Tr,scaleStep:sr,minScale:Rr,maxScale:Cn,rootClassName:Me,imageRender:fn,imgCommonProps:Ln,toolbarRender:Wr},kt)))};zt.PreviewGroup=Wt;var pn=zt,Tn=pn},23425:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return We}});var oe=ae(49618),Pe=ae(72308),Ie=ae(62853),ke=ae(77321),Ve=ae(52487),Te=ae(92310),ze=ae.n(Te),st=ae(18929),Qe=ae(10228),Ue=ae(26112),St=ae(48736),$e=ae(59301),Dt=ae(17119),Fe=[10,20,50,100],te=function(qe){var ot=qe.pageSizeOptions,mt=ot===void 0?Fe:ot,at=qe.locale,vt=qe.changeSize,wt=qe.pageSize,At=qe.goButton,Ht=qe.quickGo,Qt=qe.rootPrefixCls,Zt=qe.disabled,ln=qe.buildOptionText,Nt=qe.showSizeChanger,gt=qe.sizeChangerRender,ct=$e.useState(""),Jt=(0,Ve.Z)(ct,2),sn=Jt[0],It=Jt[1],wn=function(){return!sn||Number.isNaN(sn)?void 0:Number(sn)},bn=typeof ln=="function"?ln:function(Re){return"".concat(Re," ").concat(at.items_per_page)},_n=function(Xe){It(Xe.target.value)},Xt=function(Xe){At||sn===""||(It(""),!(Xe.relatedTarget&&(Xe.relatedTarget.className.indexOf("".concat(Qt,"-item-link"))>=0||Xe.relatedTarget.className.indexOf("".concat(Qt,"-item"))>=0))&&(Ht==null||Ht(wn())))},zn=function(Xe){sn!==""&&(Xe.keyCode===Qe.Z.ENTER||Xe.type==="click")&&(It(""),Ht==null||Ht(wn()))},Ot=function(){return mt.some(function(Xe){return Xe.toString()===wt.toString()})?mt:mt.concat([wt]).sort(function(Xe,lt){var Be=Number.isNaN(Number(Xe))?0:Number(Xe),bt=Number.isNaN(Number(lt))?0:Number(lt);return Be-bt})},jn="".concat(Qt,"-options");if(!Nt&&!Ht)return null;var cr=null,it=null,_e=null;return Nt&&gt&&(cr=gt({disabled:Zt,size:wt,onSizeChange:function(Xe){vt==null||vt(Number(Xe))},"aria-label":at.page_size,className:"".concat(jn,"-size-changer"),options:Ot().map(function(Re){return{label:bn(Re),value:Re}})})),Ht&&(At&&(_e=typeof At=="boolean"?$e.createElement("button",{type:"button",onClick:zn,onKeyUp:zn,disabled:Zt,className:"".concat(jn,"-quick-jumper-button")},at.jump_to_confirm):$e.createElement("span",{onClick:zn,onKeyUp:zn},At)),it=$e.createElement("div",{className:"".concat(jn,"-quick-jumper")},at.jump_to,$e.createElement("input",{disabled:Zt,type:"text",value:sn,onChange:_n,onKeyUp:zn,onBlur:Xt,"aria-label":at.page}),at.page,_e)),$e.createElement("li",{className:jn},cr,it)},ee=te,he=function(qe){var ot=qe.rootPrefixCls,mt=qe.page,at=qe.active,vt=qe.className,wt=qe.showTitle,At=qe.onClick,Ht=qe.onKeyPress,Qt=qe.itemRender,Zt="".concat(ot,"-item"),ln=ze()(Zt,"".concat(Zt,"-").concat(mt),(0,oe.Z)((0,oe.Z)({},"".concat(Zt,"-active"),at),"".concat(Zt,"-disabled"),!mt),vt),Nt=function(){At(mt)},gt=function(sn){Ht(sn,At,mt)},ct=Qt(mt,"page",$e.createElement("a",{rel:"nofollow"},mt));return ct?$e.createElement("li",{title:wt?String(mt):null,className:ln,onClick:Nt,onKeyDown:gt,tabIndex:0},ct):null},ue=he,fe=function(qe,ot,mt){return mt};function me(){}function be(nt){var qe=Number(nt);return typeof qe=="number"&&!Number.isNaN(qe)&&isFinite(qe)&&Math.floor(qe)===qe}function Ae(nt,qe,ot){var mt=typeof nt=="undefined"?qe:nt;return Math.floor((ot-1)/mt)+1}var De=function(qe){var ot=qe.prefixCls,mt=ot===void 0?"rc-pagination":ot,at=qe.selectPrefixCls,vt=at===void 0?"rc-select":at,wt=qe.className,At=qe.current,Ht=qe.defaultCurrent,Qt=Ht===void 0?1:Ht,Zt=qe.total,ln=Zt===void 0?0:Zt,Nt=qe.pageSize,gt=qe.defaultPageSize,ct=gt===void 0?10:gt,Jt=qe.onChange,sn=Jt===void 0?me:Jt,It=qe.hideOnSinglePage,wn=qe.align,bn=qe.showPrevNextJumpers,_n=bn===void 0?!0:bn,Xt=qe.showQuickJumper,zn=qe.showLessItems,Ot=qe.showTitle,jn=Ot===void 0?!0:Ot,cr=qe.onShowSizeChange,it=cr===void 0?me:cr,_e=qe.locale,Re=_e===void 0?Dt.Z:_e,Xe=qe.style,lt=qe.totalBoundaryShowSizeChanger,Be=lt===void 0?50:lt,bt=qe.disabled,Wt=qe.simple,yn=qe.showTotal,On=qe.showSizeChanger,Pt=On===void 0?ln>Be:On,Vt=qe.sizeChangerRender,zt=qe.pageSizeOptions,pn=qe.itemRender,Tn=pn===void 0?fe:pn,gn=qe.jumpPrevIcon,Mt=qe.jumpNextIcon,Un=qe.prevIcon,Yt=qe.nextIcon,on=$e.useRef(null),mn=(0,st.Z)(10,{value:Nt,defaultValue:ct}),er=(0,Ve.Z)(mn,2),Sn=er[0],ht=er[1],tr=(0,st.Z)(1,{value:At,defaultValue:Qt,postState:function(Pi){return Math.max(1,Math.min(Pi,Ae(void 0,Sn,ln)))}}),lr=(0,Ve.Z)(tr,2),qt=lr[0],yr=lr[1],ri=$e.useState(qt),Or=(0,Ve.Z)(ri,2),Nn=Or[0],ui=Or[1];(0,$e.useEffect)(function(){ui(qt)},[qt]);var $r=sn!==me,or="current"in qe,Kr=Math.max(1,qt-(zn?3:5)),oi=Math.min(Ae(void 0,Sn,ln),qt+(zn?3:5));function Me(vi,Pi){var Mi=vi||$e.createElement("button",{type:"button","aria-label":Pi,className:"".concat(mt,"-item-link")});return typeof vi=="function"&&(Mi=$e.createElement(vi,(0,ke.Z)({},qe))),Mi}function kr(vi){var Pi=vi.target.value,Mi=Ae(void 0,Sn,ln),po;return Pi===""?po=Pi:Number.isNaN(Number(Pi))?po=Nn:Pi>=Mi?po=Mi:po=Number(Pi),po}function Pr(vi){return be(vi)&&vi!==qt&&be(ln)&&ln>0}var ei=ln>Sn?Xt:!1;function Ii(vi){(vi.keyCode===Qe.Z.UP||vi.keyCode===Qe.Z.DOWN)&&vi.preventDefault()}function Di(vi){var Pi=kr(vi);switch(Pi!==Nn&&ui(Pi),vi.keyCode){case Qe.Z.ENTER:Fr(Pi);break;case Qe.Z.UP:Fr(Pi-1);break;case Qe.Z.DOWN:Fr(Pi+1);break;default:break}}function Ti(vi){Fr(kr(vi))}function Vr(vi){var Pi=Ae(vi,Sn,ln),Mi=qt>Pi&&Pi!==0?Pi:qt;ht(vi),ui(Mi),it==null||it(qt,vi),yr(Mi),sn==null||sn(Mi,vi)}function Fr(vi){if(Pr(vi)&&!bt){var Pi=Ae(void 0,Sn,ln),Mi=vi;return vi>Pi?Mi=Pi:vi<1&&(Mi=1),Mi!==Nn&&ui(Mi),yr(Mi),sn==null||sn(Mi,Sn),Mi}return qt}var dn=qt>1,hn=qt<Ae(void 0,Sn,ln);function un(){dn&&Fr(qt-1)}function Ur(){hn&&Fr(qt+1)}function Tr(){Fr(Kr)}function Zr(){Fr(oi)}function sr(vi,Pi){if(vi.key==="Enter"||vi.charCode===Qe.Z.ENTER||vi.keyCode===Qe.Z.ENTER){for(var Mi=arguments.length,po=new Array(Mi>2?Mi-2:0),Oo=2;Oo<Mi;Oo++)po[Oo-2]=arguments[Oo];Pi.apply(void 0,po)}}function Rr(vi){sr(vi,un)}function Cn(vi){sr(vi,Ur)}function fn(vi){sr(vi,Tr)}function Wr(vi){sr(vi,Zr)}function kt(vi){var Pi=Tn(vi,"prev",Me(Un,"prev page"));return $e.isValidElement(Pi)?$e.cloneElement(Pi,{disabled:!dn}):Pi}function Gn(vi){var Pi=Tn(vi,"next",Me(Yt,"next page"));return $e.isValidElement(Pi)?$e.cloneElement(Pi,{disabled:!hn}):Pi}function vr(vi){(vi.type==="click"||vi.keyCode===Qe.Z.ENTER)&&Fr(Nn)}var Qr=null,nn=(0,Ue.Z)(qe,{aria:!0,data:!0}),Qn=yn&&$e.createElement("li",{className:"".concat(mt,"-total-text")},yn(ln,[ln===0?0:(qt-1)*Sn+1,qt*Sn>ln?ln:qt*Sn])),Dn=null,xn=Ae(void 0,Sn,ln);if(It&&ln<=Sn)return null;var Ge=[],Jr={rootPrefixCls:mt,onClick:Fr,onKeyPress:sr,showTitle:jn,itemRender:Tn,page:-1},Hr=qt-1>0?qt-1:0,Jn=qt+1<xn?qt+1:xn,hi=Xt&&Xt.goButton,ti=(0,Ie.Z)(Wt)==="object"?Wt.readOnly:!Wt,Si=hi,nr=null;Wt&&(hi&&(typeof hi=="boolean"?Si=$e.createElement("button",{type:"button",onClick:vr,onKeyUp:vr},Re.jump_to_confirm):Si=$e.createElement("span",{onClick:vr,onKeyUp:vr},hi),Si=$e.createElement("li",{title:jn?"".concat(Re.jump_to).concat(qt,"/").concat(xn):null,className:"".concat(mt,"-simple-pager")},Si)),nr=$e.createElement("li",{title:jn?"".concat(qt,"/").concat(xn):null,className:"".concat(mt,"-simple-pager")},ti?Nn:$e.createElement("input",{type:"text","aria-label":Re.jump_to,value:Nn,disabled:bt,onKeyDown:Ii,onKeyUp:Di,onChange:Di,onBlur:Ti,size:3}),$e.createElement("span",{className:"".concat(mt,"-slash")},"/"),xn));var vn=zn?1:2;if(xn<=3+vn*2){xn||Ge.push($e.createElement(ue,(0,Pe.Z)({},Jr,{key:"noPager",page:1,className:"".concat(mt,"-item-disabled")})));for(var xi=1;xi<=xn;xi+=1)Ge.push($e.createElement(ue,(0,Pe.Z)({},Jr,{key:xi,page:xi,active:qt===xi})))}else{var zi=zn?Re.prev_3:Re.prev_5,Ln=zn?Re.next_3:Re.next_5,Xr=Tn(Kr,"jump-prev",Me(gn,"prev page")),fi=Tn(oi,"jump-next",Me(Mt,"next page"));_n&&(Qr=Xr?$e.createElement("li",{title:jn?zi:null,key:"prev",onClick:Tr,tabIndex:0,onKeyDown:fn,className:ze()("".concat(mt,"-jump-prev"),(0,oe.Z)({},"".concat(mt,"-jump-prev-custom-icon"),!!gn))},Xr):null,Dn=fi?$e.createElement("li",{title:jn?Ln:null,key:"next",onClick:Zr,tabIndex:0,onKeyDown:Wr,className:ze()("".concat(mt,"-jump-next"),(0,oe.Z)({},"".concat(mt,"-jump-next-custom-icon"),!!Mt))},fi):null);var wi=Math.max(1,qt-vn),ai=Math.min(qt+vn,xn);qt-1<=vn&&(ai=1+vn*2),xn-qt<=vn&&(wi=xn-vn*2);for(var Ni=wi;Ni<=ai;Ni+=1)Ge.push($e.createElement(ue,(0,Pe.Z)({},Jr,{key:Ni,page:Ni,active:qt===Ni})));if(qt-1>=vn*2&&qt!==3&&(Ge[0]=$e.cloneElement(Ge[0],{className:ze()("".concat(mt,"-item-after-jump-prev"),Ge[0].props.className)}),Ge.unshift(Qr)),xn-qt>=vn*2&&qt!==xn-2){var Xi=Ge[Ge.length-1];Ge[Ge.length-1]=$e.cloneElement(Xi,{className:ze()("".concat(mt,"-item-before-jump-next"),Xi.props.className)}),Ge.push(Dn)}wi!==1&&Ge.unshift($e.createElement(ue,(0,Pe.Z)({},Jr,{key:1,page:1}))),ai!==xn&&Ge.push($e.createElement(ue,(0,Pe.Z)({},Jr,{key:xn,page:xn})))}var Vi=kt(Hr);if(Vi){var Bi=!dn||!xn;Vi=$e.createElement("li",{title:jn?Re.prev_page:null,onClick:un,tabIndex:Bi?null:0,onKeyDown:Rr,className:ze()("".concat(mt,"-prev"),(0,oe.Z)({},"".concat(mt,"-disabled"),Bi)),"aria-disabled":Bi},Vi)}var Hi=Gn(Jn);if(Hi){var rr,_i;Wt?(rr=!hn,_i=dn?0:null):(rr=!hn||!xn,_i=rr?null:0),Hi=$e.createElement("li",{title:jn?Re.next_page:null,onClick:Ur,tabIndex:_i,onKeyDown:Cn,className:ze()("".concat(mt,"-next"),(0,oe.Z)({},"".concat(mt,"-disabled"),rr)),"aria-disabled":rr},Hi)}var ur=ze()(mt,wt,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(mt,"-start"),wn==="start"),"".concat(mt,"-center"),wn==="center"),"".concat(mt,"-end"),wn==="end"),"".concat(mt,"-simple"),Wt),"".concat(mt,"-disabled"),bt));return $e.createElement("ul",(0,Pe.Z)({className:ur,style:Xe,ref:on},nn),Qn,Vi,Wt?nr:Ge,Hi,$e.createElement(ee,{locale:Re,rootPrefixCls:mt,disabled:bt,selectPrefixCls:vt,changeSize:Vr,pageSize:Sn,pageSizeOptions:zt,quickGo:ei?Fr:null,goButton:Si,showSizeChanger:Pt,sizeChangerRender:Vt}))},We=De},25930:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Cd:function(){return mt}});var oe=ae(72308),Pe=ae(77321),Ie=ae(74416),ke=ae(59301),Ve=ae(92310),Te=ae.n(Ve),ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},st=function(){var wt=(0,ke.useRef)([]),At=(0,ke.useRef)(null);return(0,ke.useEffect)(function(){var Ht=Date.now(),Qt=!1;wt.current.forEach(function(Zt){if(Zt){Qt=!0;var ln=Zt.style;ln.transitionDuration=".3s, .3s, .3s, .06s",At.current&&Ht-At.current<100&&(ln.transitionDuration="0s, 0s")}}),Qt&&(At.current=Date.now())}),wt.current},Qe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ue=function(wt){var At=(0,Pe.Z)((0,Pe.Z)({},ze),wt),Ht=At.className,Qt=At.percent,Zt=At.prefixCls,ln=At.strokeColor,Nt=At.strokeLinecap,gt=At.strokeWidth,ct=At.style,Jt=At.trailColor,sn=At.trailWidth,It=At.transition,wn=(0,Ie.Z)(At,Qe);delete wn.gapPosition;var bn=Array.isArray(Qt)?Qt:[Qt],_n=Array.isArray(ln)?ln:[ln],Xt=st(),zn=gt/2,Ot=100-gt/2,jn="M ".concat(Nt==="round"?zn:0,",").concat(zn,`
L `).concat(Nt==="round"?Ot:100,",").concat(zn),cr="0 0 100 ".concat(gt),it=0;return ke.createElement("svg",(0,oe.Z)({className:Te()("".concat(Zt,"-line"),Ht),viewBox:cr,preserveAspectRatio:"none",style:ct},wn),ke.createElement("path",{className:"".concat(Zt,"-line-trail"),d:jn,strokeLinecap:Nt,stroke:Jt,strokeWidth:sn||gt,fillOpacity:"0"}),bn.map(function(_e,Re){var Xe=1;switch(Nt){case"round":Xe=1-gt/100;break;case"square":Xe=1-gt/2/100;break;default:Xe=1;break}var lt={strokeDasharray:"".concat(_e*Xe,"px, 100px"),strokeDashoffset:"-".concat(it,"px"),transition:It||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Be=_n[Re]||_n[_n.length-1];return it+=_e,ke.createElement("path",{key:Re,className:"".concat(Zt,"-line-path"),d:jn,strokeLinecap:Nt,stroke:Be,strokeWidth:gt,fillOpacity:"0",ref:function(Wt){Xt[Re]=Wt},style:lt})}))},St=Ue,$e=ae(62853),Dt=ae(52487),Fe=ae(47273),te=0,ee=(0,Fe.Z)();function he(){var vt;return ee?(vt=te,te+=1):vt="TEST_OR_SSR",vt}var ue=function(vt){var wt=ke.useState(),At=(0,Dt.Z)(wt,2),Ht=At[0],Qt=At[1];return ke.useEffect(function(){Qt("rc_progress_".concat(he()))},[]),vt||Ht},fe=function(wt){var At=wt.bg,Ht=wt.children;return ke.createElement("div",{style:{width:"100%",height:"100%",background:At}},Ht)};function me(vt,wt){return Object.keys(vt).map(function(At){var Ht=parseFloat(At),Qt="".concat(Math.floor(Ht*wt),"%");return"".concat(vt[At]," ").concat(Qt)})}var be=ke.forwardRef(function(vt,wt){var At=vt.prefixCls,Ht=vt.color,Qt=vt.gradientId,Zt=vt.radius,ln=vt.style,Nt=vt.ptg,gt=vt.strokeLinecap,ct=vt.strokeWidth,Jt=vt.size,sn=vt.gapDegree,It=Ht&&(0,$e.Z)(Ht)==="object",wn=It?"#FFF":void 0,bn=Jt/2,_n=ke.createElement("circle",{className:"".concat(At,"-circle-path"),r:Zt,cx:bn,cy:bn,stroke:wn,strokeLinecap:gt,strokeWidth:ct,opacity:Nt===0?0:1,style:ln,ref:wt});if(!It)return _n;var Xt="".concat(Qt,"-conic"),zn=sn?"".concat(180+sn/2,"deg"):"0deg",Ot=me(Ht,(360-sn)/360),jn=me(Ht,1),cr="conic-gradient(from ".concat(zn,", ").concat(Ot.join(", "),")"),it="linear-gradient(to ".concat(sn?"bottom":"top",", ").concat(jn.join(", "),")");return ke.createElement(ke.Fragment,null,ke.createElement("mask",{id:Xt},_n),ke.createElement("foreignObject",{x:0,y:0,width:Jt,height:Jt,mask:"url(#".concat(Xt,")")},ke.createElement(fe,{bg:it},ke.createElement(fe,{bg:cr}))))}),Ae=be,De=100,We=function(wt,At,Ht,Qt,Zt,ln,Nt,gt,ct,Jt){var sn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,It=Ht/100*360*((360-ln)/360),wn=ln===0?0:{bottom:0,top:180,left:90,right:-90}[Nt],bn=(100-Qt)/100*At;ct==="round"&&Qt!==100&&(bn+=Jt/2,bn>=At&&(bn=At-.01));var _n=De/2;return{stroke:typeof gt=="string"?gt:void 0,strokeDasharray:"".concat(At,"px ").concat(wt),strokeDashoffset:bn+sn,transform:"rotate(".concat(Zt+It+wn,"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}},nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qe(vt){var wt=vt!=null?vt:[];return Array.isArray(wt)?wt:[wt]}var ot=function(wt){var At=(0,Pe.Z)((0,Pe.Z)({},ze),wt),Ht=At.id,Qt=At.prefixCls,Zt=At.steps,ln=At.strokeWidth,Nt=At.trailWidth,gt=At.gapDegree,ct=gt===void 0?0:gt,Jt=At.gapPosition,sn=At.trailColor,It=At.strokeLinecap,wn=At.style,bn=At.className,_n=At.strokeColor,Xt=At.percent,zn=(0,Ie.Z)(At,nt),Ot=De/2,jn=ue(Ht),cr="".concat(jn,"-gradient"),it=Ot-ln/2,_e=Math.PI*2*it,Re=ct>0?90+ct/2:-90,Xe=_e*((360-ct)/360),lt=(0,$e.Z)(Zt)==="object"?Zt:{count:Zt,gap:2},Be=lt.count,bt=lt.gap,Wt=qe(Xt),yn=qe(_n),On=yn.find(function(Mt){return Mt&&(0,$e.Z)(Mt)==="object"}),Pt=On&&(0,$e.Z)(On)==="object",Vt=Pt?"butt":It,zt=We(_e,Xe,0,100,Re,ct,Jt,sn,Vt,ln),pn=st(),Tn=function(){var Un=0;return Wt.map(function(Yt,on){var mn=yn[on]||yn[yn.length-1],er=We(_e,Xe,Un,Yt,Re,ct,Jt,mn,Vt,ln);return Un+=Yt,ke.createElement(Ae,{key:on,color:mn,ptg:Yt,radius:it,prefixCls:Qt,gradientId:cr,style:er,strokeLinecap:Vt,strokeWidth:ln,gapDegree:ct,ref:function(ht){pn[on]=ht},size:De})}).reverse()},gn=function(){var Un=Math.round(Be*(Wt[0]/100)),Yt=100/Be,on=0;return new Array(Be).fill(null).map(function(mn,er){var Sn=er<=Un-1?yn[0]:sn,ht=Sn&&(0,$e.Z)(Sn)==="object"?"url(#".concat(cr,")"):void 0,tr=We(_e,Xe,on,Yt,Re,ct,Jt,Sn,"butt",ln,bt);return on+=(Xe-tr.strokeDashoffset+bt)*100/Xe,ke.createElement("circle",{key:er,className:"".concat(Qt,"-circle-path"),r:it,cx:Ot,cy:Ot,stroke:ht,strokeWidth:ln,opacity:1,style:tr,ref:function(qt){pn[er]=qt}})})};return ke.createElement("svg",(0,oe.Z)({className:Te()("".concat(Qt,"-circle"),bn),viewBox:"0 0 ".concat(De," ").concat(De),style:wn,id:Ht,role:"presentation"},zn),!Be&&ke.createElement("circle",{className:"".concat(Qt,"-circle-trail"),r:it,cx:Ot,cy:Ot,stroke:sn,strokeLinecap:Vt,strokeWidth:Nt||ln,style:zt}),Be?gn():Tn())},mt=ot,at={Line:St,Circle:mt}},738:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(72308),Pe=ae(49618),Ie=ae(52487),ke=ae(74416),Ve=ae(92310),Te=ae.n(Ve),ze=ae(18929),st=ae(10228),Qe=ae(26112),Ue=ae(59301);function St(be,Ae){var De=be.disabled,We=be.prefixCls,nt=be.character,qe=be.characterRender,ot=be.index,mt=be.count,at=be.value,vt=be.allowHalf,wt=be.focused,At=be.onHover,Ht=be.onClick,Qt=function(It){At(It,ot)},Zt=function(It){Ht(It,ot)},ln=function(It){It.keyCode===st.Z.ENTER&&Ht(It,ot)},Nt=ot+1,gt=new Set([We]);at===0&&ot===0&&wt?gt.add("".concat(We,"-focused")):vt&&at+.5>=Nt&&at<Nt?(gt.add("".concat(We,"-half")),gt.add("".concat(We,"-active")),wt&&gt.add("".concat(We,"-focused"))):(Nt<=at?gt.add("".concat(We,"-full")):gt.add("".concat(We,"-zero")),Nt===at&&wt&&gt.add("".concat(We,"-focused")));var ct=typeof nt=="function"?nt(be):nt,Jt=Ue.createElement("li",{className:Te()(Array.from(gt)),ref:Ae},Ue.createElement("div",{onClick:De?null:Zt,onKeyDown:De?null:ln,onMouseMove:De?null:Qt,role:"radio","aria-checked":at>ot?"true":"false","aria-posinset":ot+1,"aria-setsize":mt,tabIndex:De?-1:0},Ue.createElement("div",{className:"".concat(We,"-first")},ct),Ue.createElement("div",{className:"".concat(We,"-second")},ct)));return qe&&(Jt=qe(Jt,be)),Jt}var $e=Ue.forwardRef(St);function Dt(){var be=Ue.useRef({});function Ae(We){return be.current[We]}function De(We){return function(nt){be.current[We]=nt}}return[Ae,De]}function Fe(be){var Ae=be.pageXOffset,De="scrollLeft";if(typeof Ae!="number"){var We=be.document;Ae=We.documentElement[De],typeof Ae!="number"&&(Ae=We.body[De])}return Ae}function te(be){var Ae,De,We=be.ownerDocument,nt=We.body,qe=We&&We.documentElement,ot=be.getBoundingClientRect();return Ae=ot.left,De=ot.top,Ae-=qe.clientLeft||nt.clientLeft||0,De-=qe.clientTop||nt.clientTop||0,{left:Ae,top:De}}function ee(be){var Ae=te(be),De=be.ownerDocument,We=De.defaultView||De.parentWindow;return Ae.left+=Fe(We),Ae.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ue(be,Ae){var De=be.prefixCls,We=De===void 0?"rc-rate":De,nt=be.className,qe=be.defaultValue,ot=be.value,mt=be.count,at=mt===void 0?5:mt,vt=be.allowHalf,wt=vt===void 0?!1:vt,At=be.allowClear,Ht=At===void 0?!0:At,Qt=be.keyboard,Zt=Qt===void 0?!0:Qt,ln=be.character,Nt=ln===void 0?"\u2605":ln,gt=be.characterRender,ct=be.disabled,Jt=be.direction,sn=Jt===void 0?"ltr":Jt,It=be.tabIndex,wn=It===void 0?0:It,bn=be.autoFocus,_n=be.onHoverChange,Xt=be.onChange,zn=be.onFocus,Ot=be.onBlur,jn=be.onKeyDown,cr=be.onMouseLeave,it=(0,ke.Z)(be,he),_e=Dt(),Re=(0,Ie.Z)(_e,2),Xe=Re[0],lt=Re[1],Be=Ue.useRef(null),bt=function(){if(!ct){var Kr;(Kr=Be.current)===null||Kr===void 0||Kr.focus()}};Ue.useImperativeHandle(Ae,function(){return{focus:bt,blur:function(){if(!ct){var Kr;(Kr=Be.current)===null||Kr===void 0||Kr.blur()}}}});var Wt=(0,ze.Z)(qe||0,{value:ot}),yn=(0,Ie.Z)(Wt,2),On=yn[0],Pt=yn[1],Vt=(0,ze.Z)(null),zt=(0,Ie.Z)(Vt,2),pn=zt[0],Tn=zt[1],gn=function(Kr,oi){var Me=sn==="rtl",kr=Kr+1;if(wt){var Pr=Xe(Kr),ei=ee(Pr),Ii=Pr.clientWidth;(Me&&oi-ei>Ii/2||!Me&&oi-ei<Ii/2)&&(kr-=.5)}return kr},Mt=function(Kr){Pt(Kr),Xt==null||Xt(Kr)},Un=Ue.useState(!1),Yt=(0,Ie.Z)(Un,2),on=Yt[0],mn=Yt[1],er=function(){mn(!0),zn==null||zn()},Sn=function(){mn(!1),Ot==null||Ot()},ht=Ue.useState(null),tr=(0,Ie.Z)(ht,2),lr=tr[0],qt=tr[1],yr=function(Kr,oi){var Me=gn(oi,Kr.pageX);Me!==pn&&(qt(Me),Tn(null)),_n==null||_n(Me)},ri=function(Kr){ct||(qt(null),Tn(null),_n==null||_n(void 0)),Kr&&(cr==null||cr(Kr))},Or=function(Kr,oi){var Me=gn(oi,Kr.pageX),kr=!1;Ht&&(kr=Me===On),ri(),Mt(kr?0:Me),Tn(kr?Me:null)},Nn=function(Kr){var oi=Kr.keyCode,Me=sn==="rtl",kr=wt?.5:1;Zt&&(oi===st.Z.RIGHT&&On<at&&!Me?(Mt(On+kr),Kr.preventDefault()):oi===st.Z.LEFT&&On>0&&!Me||oi===st.Z.RIGHT&&On>0&&Me?(Mt(On-kr),Kr.preventDefault()):oi===st.Z.LEFT&&On<at&&Me&&(Mt(On+kr),Kr.preventDefault())),jn==null||jn(Kr)};Ue.useEffect(function(){bn&&!ct&&bt()},[]);var ui=new Array(at).fill(0).map(function(or,Kr){return Ue.createElement($e,{ref:lt(Kr),index:Kr,count:at,disabled:ct,prefixCls:"".concat(We,"-star"),allowHalf:wt,value:lr===null?On:lr,onClick:Or,onHover:yr,key:or||Kr,character:Nt,characterRender:gt,focused:on})}),$r=Te()(We,nt,(0,Pe.Z)((0,Pe.Z)({},"".concat(We,"-disabled"),ct),"".concat(We,"-rtl"),sn==="rtl"));return Ue.createElement("ul",(0,oe.Z)({className:$r,onMouseLeave:ri,tabIndex:ct?-1:wn,onFocus:ct?null:er,onBlur:ct?null:Sn,onKeyDown:ct?null:Nn,ref:Be},(0,Qe.Z)(it,{aria:!0,data:!0,attr:!0})),ui)}var fe=Ue.forwardRef(ue),me=fe},69582:function(Ze,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return ze}});var oe=ae(52487),Pe=ae(59301),Ie=ae(47273),ke=0,Ve=(0,Ie.Z)();function Te(){var st;return Ve?(st=ke,ke+=1):st="TEST_OR_SSR",st}function ze(st){var Qe=Pe.useState(),Ue=(0,oe.Z)(Qe,2),St=Ue[0],$e=Ue[1];return Pe.useEffect(function(){$e("rc_select_".concat(Te()))},[]),st||St}},45560:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Ac:function(){return Un},Xo:function(){return on},Wx:function(){return er},ZP:function(){return Rr},lk:function(){return me}});var oe=ae(72308),Pe=ae(80702),Ie=ae(49618),ke=ae(77321),Ve=ae(52487),Te=ae(74416),ze=ae(62853),st=ae(18929),Qe=ae(48736),Ue=ae(59301),St=ae(92310),$e=ae.n(St),Dt=ae(34280),Fe=ae(49658),te=ae(8654),ee=function(fn){var Wr=fn.className,kt=fn.customizeIcon,Gn=fn.customizeIconProps,vr=fn.children,Qr=fn.onMouseDown,nn=fn.onClick,Qn=typeof kt=="function"?kt(Gn):kt;return Ue.createElement("span",{className:Wr,onMouseDown:function(xn){xn.preventDefault(),Qr==null||Qr(xn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:nn,"aria-hidden":!0},Qn!==void 0?Qn:Ue.createElement("span",{className:$e()(Wr.split(/\s+/).map(function(Dn){return"".concat(Dn,"-icon")}))},vr))},he=ee,ue=function(fn,Wr,kt,Gn,vr){var Qr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,nn=arguments.length>6?arguments[6]:void 0,Qn=arguments.length>7?arguments[7]:void 0,Dn=Ue.useMemo(function(){if((0,ze.Z)(Gn)==="object")return Gn.clearIcon;if(vr)return vr},[Gn,vr]),xn=Ue.useMemo(function(){return!!(!Qr&&Gn&&(kt.length||nn)&&!(Qn==="combobox"&&nn===""))},[Gn,Qr,kt.length,nn,Qn]);return{allowClear:xn,clearIcon:Ue.createElement(he,{className:"".concat(fn,"-clear"),onMouseDown:Wr,customizeIcon:Dn},"\xD7")}},fe=Ue.createContext(null);function me(){return Ue.useContext(fe)}function be(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,fn=Ue.useState(!1),Wr=(0,Ve.Z)(fn,2),kt=Wr[0],Gn=Wr[1],vr=Ue.useRef(null),Qr=function(){window.clearTimeout(vr.current)};Ue.useEffect(function(){return Qr},[]);var nn=function(Dn,xn){Qr(),vr.current=window.setTimeout(function(){Gn(Dn),xn&&xn()},Cn)};return[kt,nn,Qr]}function Ae(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,fn=Ue.useRef(null),Wr=Ue.useRef(null);Ue.useEffect(function(){return function(){window.clearTimeout(Wr.current)}},[]);function kt(Gn){(Gn||fn.current===null)&&(fn.current=Gn),window.clearTimeout(Wr.current),Wr.current=window.setTimeout(function(){fn.current=null},Cn)}return[function(){return fn.current},kt]}function De(Cn,fn,Wr,kt){var Gn=Ue.useRef(null);Gn.current={open:fn,triggerOpen:Wr,customizedTrigger:kt},Ue.useEffect(function(){function vr(Qr){var nn;if(!((nn=Gn.current)!==null&&nn!==void 0&&nn.customizedTrigger)){var Qn=Qr.target;Qn.shadowRoot&&Qr.composed&&(Qn=Qr.composedPath()[0]||Qn),Gn.current.open&&Cn().filter(function(Dn){return Dn}).every(function(Dn){return!Dn.contains(Qn)&&Dn!==Qn})&&Gn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",vr),function(){return window.removeEventListener("mousedown",vr)}},[])}var We=ae(10228);function nt(Cn){return Cn&&![We.Z.ESC,We.Z.SHIFT,We.Z.BACKSPACE,We.Z.TAB,We.Z.WIN_KEY,We.Z.ALT,We.Z.META,We.Z.WIN_KEY_RIGHT,We.Z.CTRL,We.Z.SEMICOLON,We.Z.EQUALS,We.Z.CAPS_LOCK,We.Z.CONTEXT_MENU,We.Z.F1,We.Z.F2,We.Z.F3,We.Z.F4,We.Z.F5,We.Z.F6,We.Z.F7,We.Z.F8,We.Z.F9,We.Z.F10,We.Z.F11,We.Z.F12].includes(Cn)}var qe=ae(26112),ot=ae(11780),mt=function(fn,Wr){var kt,Gn=fn.prefixCls,vr=fn.id,Qr=fn.inputElement,nn=fn.disabled,Qn=fn.tabIndex,Dn=fn.autoFocus,xn=fn.autoComplete,Ge=fn.editable,Jr=fn.activeDescendantId,Hr=fn.value,Jn=fn.maxLength,hi=fn.onKeyDown,ti=fn.onMouseDown,Si=fn.onChange,nr=fn.onPaste,vn=fn.onCompositionStart,xi=fn.onCompositionEnd,zi=fn.onBlur,Ln=fn.open,Xr=fn.attrs,fi=Qr||Ue.createElement("input",null),wi=fi,ai=wi.ref,Ni=wi.props,Xi=Ni.onKeyDown,Vi=Ni.onChange,Bi=Ni.onMouseDown,Hi=Ni.onCompositionStart,rr=Ni.onCompositionEnd,_i=Ni.onBlur,ur=Ni.style;return(0,Qe.Kp)(!("maxLength"in fi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),fi=Ue.cloneElement(fi,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},Ni),{},{id:vr,ref:(0,te.sQ)(Wr,ai),disabled:nn,tabIndex:Qn,autoComplete:xn||"off",autoFocus:Dn,className:$e()("".concat(Gn,"-selection-search-input"),(kt=fi)===null||kt===void 0||(kt=kt.props)===null||kt===void 0?void 0:kt.className),role:"combobox","aria-expanded":Ln||!1,"aria-haspopup":"listbox","aria-owns":"".concat(vr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(vr,"_list"),"aria-activedescendant":Ln?Jr:void 0},Xr),{},{value:Ge?Hr:"",maxLength:Jn,readOnly:!Ge,unselectable:Ge?null:"on",style:(0,ke.Z)((0,ke.Z)({},ur),{},{opacity:Ge?null:0}),onKeyDown:function(Pi){hi(Pi),Xi&&Xi(Pi)},onMouseDown:function(Pi){ti(Pi),Bi&&Bi(Pi)},onChange:function(Pi){Si(Pi),Vi&&Vi(Pi)},onCompositionStart:function(Pi){vn(Pi),Hi&&Hi(Pi)},onCompositionEnd:function(Pi){xi(Pi),rr&&rr(Pi)},onPaste:nr,onBlur:function(Pi){zi(Pi),_i&&_i(Pi)}})),fi},at=Ue.forwardRef(mt),vt=at;function wt(Cn){return Array.isArray(Cn)?Cn:Cn!==void 0?[Cn]:[]}var At=typeof window!="undefined"&&window.document&&window.document.documentElement,Ht=At;function Qt(Cn){return Cn!=null}function Zt(Cn){return!Cn&&Cn!==0}function ln(Cn){return["string","number"].includes((0,ze.Z)(Cn))}function Nt(Cn){var fn=void 0;return Cn&&(ln(Cn.title)?fn=Cn.title.toString():ln(Cn.label)&&(fn=Cn.label.toString())),fn}function gt(Cn,fn){Ht?Ue.useLayoutEffect(Cn,fn):Ue.useEffect(Cn,fn)}function ct(Cn){var fn;return(fn=Cn.key)!==null&&fn!==void 0?fn:Cn.value}var Jt=function(fn){fn.preventDefault(),fn.stopPropagation()},sn=function(fn){var Wr=fn.id,kt=fn.prefixCls,Gn=fn.values,vr=fn.open,Qr=fn.searchValue,nn=fn.autoClearSearchValue,Qn=fn.inputRef,Dn=fn.placeholder,xn=fn.disabled,Ge=fn.mode,Jr=fn.showSearch,Hr=fn.autoFocus,Jn=fn.autoComplete,hi=fn.activeDescendantId,ti=fn.tabIndex,Si=fn.removeIcon,nr=fn.maxTagCount,vn=fn.maxTagTextLength,xi=fn.maxTagPlaceholder,zi=xi===void 0?function(pi){return"+ ".concat(pi.length," ...")}:xi,Ln=fn.tagRender,Xr=fn.onToggleOpen,fi=fn.onRemove,wi=fn.onInputChange,ai=fn.onInputPaste,Ni=fn.onInputKeyDown,Xi=fn.onInputMouseDown,Vi=fn.onInputCompositionStart,Bi=fn.onInputCompositionEnd,Hi=fn.onInputBlur,rr=Ue.useRef(null),_i=(0,Ue.useState)(0),ur=(0,Ve.Z)(_i,2),vi=ur[0],Pi=ur[1],Mi=(0,Ue.useState)(!1),po=(0,Ve.Z)(Mi,2),Oo=po[0],mo=po[1],xo="".concat(kt,"-selection"),Fn=vr||Ge==="multiple"&&nn===!1||Ge==="tags"?Qr:"",fr=Ge==="tags"||Ge==="multiple"&&nn===!1||Jr&&(vr||Oo);gt(function(){Pi(rr.current.scrollWidth)},[Fn]);var Rn=function(Er,ft,En,Mn,Xn){return Ue.createElement("span",{title:Nt(Er),className:$e()("".concat(xo,"-item"),(0,Ie.Z)({},"".concat(xo,"-item-disabled"),En))},Ue.createElement("span",{className:"".concat(xo,"-item-content")},ft),Mn&&Ue.createElement(he,{className:"".concat(xo,"-item-remove"),onMouseDown:Jt,onClick:Xn,customizeIcon:Si},"\xD7"))},rt=function(Er,ft,En,Mn,Xn,Hn){var hr=function(cn){Jt(cn),Xr(!vr)};return Ue.createElement("span",{onMouseDown:hr},Ln({label:ft,value:Er,disabled:En,closable:Mn,onClose:Xn,isMaxTag:!!Hn}))},jr=function(Er){var ft=Er.disabled,En=Er.label,Mn=Er.value,Xn=!xn&&!ft,Hn=En;if(typeof vn=="number"&&(typeof En=="string"||typeof En=="number")){var hr=String(Hn);hr.length>vn&&(Hn="".concat(hr.slice(0,vn),"..."))}var $n=function(Kn){Kn&&Kn.stopPropagation(),fi(Er)};return typeof Ln=="function"?rt(Mn,Hn,ft,Xn,$n):Rn(Er,Hn,ft,Xn,$n)},Sr=function(Er){if(!Gn.length)return null;var ft=typeof zi=="function"?zi(Er):zi;return typeof Ln=="function"?rt(void 0,ft,!1,!1,void 0,!0):Rn({title:ft},ft,!1)},zr=Ue.createElement("div",{className:"".concat(xo,"-search"),style:{width:vi},onFocus:function(){mo(!0)},onBlur:function(){mo(!1)}},Ue.createElement(vt,{ref:Qn,open:vr,prefixCls:kt,id:Wr,inputElement:null,disabled:xn,autoFocus:Hr,autoComplete:Jn,editable:fr,activeDescendantId:hi,value:Fn,onKeyDown:Ni,onMouseDown:Xi,onChange:wi,onPaste:ai,onCompositionStart:Vi,onCompositionEnd:Bi,onBlur:Hi,tabIndex:ti,attrs:(0,qe.Z)(fn,!0)}),Ue.createElement("span",{ref:rr,className:"".concat(xo,"-search-mirror"),"aria-hidden":!0},Fn,"\xA0")),ni=Ue.createElement(ot.Z,{prefixCls:"".concat(xo,"-overflow"),data:Gn,renderItem:jr,renderRest:Sr,suffix:zr,itemKey:ct,maxCount:nr});return Ue.createElement("span",{className:"".concat(xo,"-wrap")},ni,!Gn.length&&!Fn&&Ue.createElement("span",{className:"".concat(xo,"-placeholder")},Dn))},It=sn,wn=function(fn){var Wr=fn.inputElement,kt=fn.prefixCls,Gn=fn.id,vr=fn.inputRef,Qr=fn.disabled,nn=fn.autoFocus,Qn=fn.autoComplete,Dn=fn.activeDescendantId,xn=fn.mode,Ge=fn.open,Jr=fn.values,Hr=fn.placeholder,Jn=fn.tabIndex,hi=fn.showSearch,ti=fn.searchValue,Si=fn.activeValue,nr=fn.maxLength,vn=fn.onInputKeyDown,xi=fn.onInputMouseDown,zi=fn.onInputChange,Ln=fn.onInputPaste,Xr=fn.onInputCompositionStart,fi=fn.onInputCompositionEnd,wi=fn.onInputBlur,ai=fn.title,Ni=Ue.useState(!1),Xi=(0,Ve.Z)(Ni,2),Vi=Xi[0],Bi=Xi[1],Hi=xn==="combobox",rr=Hi||hi,_i=Jr[0],ur=ti||"";Hi&&Si&&!Vi&&(ur=Si),Ue.useEffect(function(){Hi&&Bi(!1)},[Hi,Si]);var vi=xn!=="combobox"&&!Ge&&!hi?!1:!!ur,Pi=ai===void 0?Nt(_i):ai,Mi=Ue.useMemo(function(){return _i?null:Ue.createElement("span",{className:"".concat(kt,"-selection-placeholder"),style:vi?{visibility:"hidden"}:void 0},Hr)},[_i,vi,Hr,kt]);return Ue.createElement("span",{className:"".concat(kt,"-selection-wrap")},Ue.createElement("span",{className:"".concat(kt,"-selection-search")},Ue.createElement(vt,{ref:vr,prefixCls:kt,id:Gn,open:Ge,inputElement:Wr,disabled:Qr,autoFocus:nn,autoComplete:Qn,editable:rr,activeDescendantId:Dn,value:ur,onKeyDown:vn,onMouseDown:xi,onChange:function(Oo){Bi(!0),zi(Oo)},onPaste:Ln,onCompositionStart:Xr,onCompositionEnd:fi,onBlur:wi,tabIndex:Jn,attrs:(0,qe.Z)(fn,!0),maxLength:Hi?nr:void 0})),!Hi&&_i?Ue.createElement("span",{className:"".concat(kt,"-selection-item"),title:Pi,style:vi?{visibility:"hidden"}:void 0},_i.label):null,Mi)},bn=wn,_n=function(fn,Wr){var kt=(0,Ue.useRef)(null),Gn=(0,Ue.useRef)(!1),vr=fn.prefixCls,Qr=fn.open,nn=fn.mode,Qn=fn.showSearch,Dn=fn.tokenWithEnter,xn=fn.disabled,Ge=fn.prefix,Jr=fn.autoClearSearchValue,Hr=fn.onSearch,Jn=fn.onSearchSubmit,hi=fn.onToggleOpen,ti=fn.onInputKeyDown,Si=fn.onInputBlur,nr=fn.domRef;Ue.useImperativeHandle(Wr,function(){return{focus:function(Pi){kt.current.focus(Pi)},blur:function(){kt.current.blur()}}});var vn=Ae(0),xi=(0,Ve.Z)(vn,2),zi=xi[0],Ln=xi[1],Xr=function(Pi){var Mi=Pi.which,po=kt.current instanceof HTMLTextAreaElement;!po&&Qr&&(Mi===We.Z.UP||Mi===We.Z.DOWN)&&Pi.preventDefault(),ti&&ti(Pi),Mi===We.Z.ENTER&&nn==="tags"&&!Gn.current&&!Qr&&(Jn==null||Jn(Pi.target.value)),!(po&&!Qr&&~[We.Z.UP,We.Z.DOWN,We.Z.LEFT,We.Z.RIGHT].indexOf(Mi))&&nt(Mi)&&hi(!0)},fi=function(){Ln(!0)},wi=(0,Ue.useRef)(null),ai=function(Pi){Hr(Pi,!0,Gn.current)!==!1&&hi(!0)},Ni=function(){Gn.current=!0},Xi=function(Pi){Gn.current=!1,nn!=="combobox"&&ai(Pi.target.value)},Vi=function(Pi){var Mi=Pi.target.value;if(Dn&&wi.current&&/[\r\n]/.test(wi.current)){var po=wi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Mi=Mi.replace(po,wi.current)}wi.current=null,ai(Mi)},Bi=function(Pi){var Mi=Pi.clipboardData,po=Mi==null?void 0:Mi.getData("text");wi.current=po||""},Hi=function(Pi){var Mi=Pi.target;if(Mi!==kt.current){var po=document.body.style.msTouchAction!==void 0;po?setTimeout(function(){kt.current.focus()}):kt.current.focus()}},rr=function(Pi){var Mi=zi();Pi.target!==kt.current&&!Mi&&!(nn==="combobox"&&xn)&&Pi.preventDefault(),(nn!=="combobox"&&(!Qn||!Mi)||!Qr)&&(Qr&&Jr!==!1&&Hr("",!0,!1),hi())},_i={inputRef:kt,onInputKeyDown:Xr,onInputMouseDown:fi,onInputChange:Vi,onInputPaste:Bi,onInputCompositionStart:Ni,onInputCompositionEnd:Xi,onInputBlur:Si},ur=nn==="multiple"||nn==="tags"?Ue.createElement(It,(0,oe.Z)({},fn,_i)):Ue.createElement(bn,(0,oe.Z)({},fn,_i));return Ue.createElement("div",{ref:nr,className:"".concat(vr,"-selector"),onClick:Hi,onMouseDown:rr},Ge&&Ue.createElement("div",{className:"".concat(vr,"-prefix")},Ge),ur)},Xt=Ue.forwardRef(_n),zn=Xt,Ot=ae(65352),jn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],cr=function(fn){var Wr=fn===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Wr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Wr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Wr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Wr,adjustY:1},htmlRegion:"scroll"}}},it=function(fn,Wr){var kt=fn.prefixCls,Gn=fn.disabled,vr=fn.visible,Qr=fn.children,nn=fn.popupElement,Qn=fn.animation,Dn=fn.transitionName,xn=fn.dropdownStyle,Ge=fn.dropdownClassName,Jr=fn.direction,Hr=Jr===void 0?"ltr":Jr,Jn=fn.placement,hi=fn.builtinPlacements,ti=fn.dropdownMatchSelectWidth,Si=fn.dropdownRender,nr=fn.dropdownAlign,vn=fn.getPopupContainer,xi=fn.empty,zi=fn.getTriggerDOMNode,Ln=fn.onPopupVisibleChange,Xr=fn.onPopupMouseEnter,fi=(0,Te.Z)(fn,jn),wi="".concat(kt,"-dropdown"),ai=nn;Si&&(ai=Si(nn));var Ni=Ue.useMemo(function(){return hi||cr(ti)},[hi,ti]),Xi=Qn?"".concat(wi,"-").concat(Qn):Dn,Vi=typeof ti=="number",Bi=Ue.useMemo(function(){return Vi?null:ti===!1?"minWidth":"width"},[ti,Vi]),Hi=xn;Vi&&(Hi=(0,ke.Z)((0,ke.Z)({},Hi),{},{width:ti}));var rr=Ue.useRef(null);return Ue.useImperativeHandle(Wr,function(){return{getPopupElement:function(){var ur;return(ur=rr.current)===null||ur===void 0?void 0:ur.popupElement}}}),Ue.createElement(Ot.Z,(0,oe.Z)({},fi,{showAction:Ln?["click"]:[],hideAction:Ln?["click"]:[],popupPlacement:Jn||(Hr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ni,prefixCls:wi,popupTransitionName:Xi,popup:Ue.createElement("div",{onMouseEnter:Xr},ai),ref:rr,stretch:Bi,popupAlign:nr,popupVisible:vr,getPopupContainer:vn,popupClassName:$e()(Ge,(0,Ie.Z)({},"".concat(wi,"-empty"),xi)),popupStyle:Hi,getTriggerDOMNode:zi,onPopupVisibleChange:Ln}),Qr)},_e=Ue.forwardRef(it),Re=_e,Xe=ae(68413);function lt(Cn,fn){var Wr=Cn.key,kt;return"value"in Cn&&(kt=Cn.value),Wr!=null?Wr:kt!==void 0?kt:"rc-index-key-".concat(fn)}function Be(Cn){return typeof Cn!="undefined"&&!Number.isNaN(Cn)}function bt(Cn,fn){var Wr=Cn||{},kt=Wr.label,Gn=Wr.value,vr=Wr.options,Qr=Wr.groupLabel,nn=kt||(fn?"children":"label");return{label:nn,value:Gn||"value",options:vr||"options",groupLabel:Qr||nn}}function Wt(Cn){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wr=fn.fieldNames,kt=fn.childrenAsData,Gn=[],vr=bt(Wr,!1),Qr=vr.label,nn=vr.value,Qn=vr.options,Dn=vr.groupLabel;function xn(Ge,Jr){Array.isArray(Ge)&&Ge.forEach(function(Hr){if(Jr||!(Qn in Hr)){var Jn=Hr[nn];Gn.push({key:lt(Hr,Gn.length),groupOption:Jr,data:Hr,label:Hr[Qr],value:Jn})}else{var hi=Hr[Dn];hi===void 0&&kt&&(hi=Hr.label),Gn.push({key:lt(Hr,Gn.length),group:!0,data:Hr,label:hi}),xn(Hr[Qn],!0)}})}return xn(Cn,!1),Gn}function yn(Cn){var fn=(0,ke.Z)({},Cn);return"props"in fn||Object.defineProperty(fn,"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`."),fn}}),fn}var On=function(fn,Wr,kt){if(!Wr||!Wr.length)return null;var Gn=!1,vr=function nn(Qn,Dn){var xn=(0,Xe.Z)(Dn),Ge=xn[0],Jr=xn.slice(1);if(!Ge)return[Qn];var Hr=Qn.split(Ge);return Gn=Gn||Hr.length>1,Hr.reduce(function(Jn,hi){return[].concat((0,Pe.Z)(Jn),(0,Pe.Z)(nn(hi,Jr)))},[]).filter(Boolean)},Qr=vr(fn,Wr);return Gn?typeof kt!="undefined"?Qr.slice(0,kt):Qr:null},Pt=Ue.createContext(null),Vt=Pt;function zt(Cn){var fn=Cn.visible,Wr=Cn.values;if(!fn)return null;var kt=50;return Ue.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Wr.slice(0,kt).map(function(Gn){var vr=Gn.label,Qr=Gn.value;return["number","string"].includes((0,ze.Z)(vr))?vr:Qr}).join(", ")),Wr.length>kt?", ...":null)}var pn=["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"],Tn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],gn=function(fn){return fn==="tags"||fn==="multiple"},Mt=Ue.forwardRef(function(Cn,fn){var Wr,kt=Cn.id,Gn=Cn.prefixCls,vr=Cn.className,Qr=Cn.showSearch,nn=Cn.tagRender,Qn=Cn.direction,Dn=Cn.omitDomProps,xn=Cn.displayValues,Ge=Cn.onDisplayValuesChange,Jr=Cn.emptyOptions,Hr=Cn.notFoundContent,Jn=Hr===void 0?"Not Found":Hr,hi=Cn.onClear,ti=Cn.mode,Si=Cn.disabled,nr=Cn.loading,vn=Cn.getInputElement,xi=Cn.getRawInputElement,zi=Cn.open,Ln=Cn.defaultOpen,Xr=Cn.onDropdownVisibleChange,fi=Cn.activeValue,wi=Cn.onActiveValueChange,ai=Cn.activeDescendantId,Ni=Cn.searchValue,Xi=Cn.autoClearSearchValue,Vi=Cn.onSearch,Bi=Cn.onSearchSplit,Hi=Cn.tokenSeparators,rr=Cn.allowClear,_i=Cn.prefix,ur=Cn.suffixIcon,vi=Cn.clearIcon,Pi=Cn.OptionList,Mi=Cn.animation,po=Cn.transitionName,Oo=Cn.dropdownStyle,mo=Cn.dropdownClassName,xo=Cn.dropdownMatchSelectWidth,Fn=Cn.dropdownRender,fr=Cn.dropdownAlign,Rn=Cn.placement,rt=Cn.builtinPlacements,jr=Cn.getPopupContainer,Sr=Cn.showAction,zr=Sr===void 0?[]:Sr,ni=Cn.onFocus,pi=Cn.onBlur,Er=Cn.onKeyUp,ft=Cn.onKeyDown,En=Cn.onMouseDown,Mn=(0,Te.Z)(Cn,pn),Xn=gn(ti),Hn=(Qr!==void 0?Qr:Xn)||ti==="combobox",hr=(0,ke.Z)({},Mn);Tn.forEach(function(Sa){delete hr[Sa]}),Dn==null||Dn.forEach(function(Sa){delete hr[Sa]});var $n=Ue.useState(!1),cn=(0,Ve.Z)($n,2),Kn=cn[0],Gr=cn[1];Ue.useEffect(function(){Gr((0,Fe.Z)())},[]);var Li=Ue.useRef(null),mi=Ue.useRef(null),gi=Ue.useRef(null),Ri=Ue.useRef(null),Oi=Ue.useRef(null),lo=Ue.useRef(!1),So=be(),na=(0,Ve.Z)(So,3),An=na[0],so=na[1],Do=na[2];Ue.useImperativeHandle(fn,function(){var Sa,Ho;return{focus:(Sa=Ri.current)===null||Sa===void 0?void 0:Sa.focus,blur:(Ho=Ri.current)===null||Ho===void 0?void 0:Ho.blur,scrollTo:function(ys){var $a;return($a=Oi.current)===null||$a===void 0?void 0:$a.scrollTo(ys)},nativeElement:Li.current||mi.current}});var Wi=Ue.useMemo(function(){var Sa;if(ti!=="combobox")return Ni;var Ho=(Sa=xn[0])===null||Sa===void 0?void 0:Sa.value;return typeof Ho=="string"||typeof Ho=="number"?String(Ho):""},[Ni,ti,xn]),ho=ti==="combobox"&&typeof vn=="function"&&vn()||null,Ki=typeof xi=="function"&&xi(),da=(0,te.x1)(mi,Ki==null||(Wr=Ki.props)===null||Wr===void 0?void 0:Wr.ref),Vn=Ue.useState(!1),Mo=(0,Ve.Z)(Vn,2),ia=Mo[0],Ps=Mo[1];(0,Dt.Z)(function(){Ps(!0)},[]);var Fa=(0,st.Z)(!1,{defaultValue:Ln,value:zi}),Gs=(0,Ve.Z)(Fa,2),gs=Gs[0],Qi=Gs[1],ca=ia?gs:!1,Ba=!Jn&&Jr;(Si||Ba&&ca&&ti==="combobox")&&(ca=!1);var is=Ba?!1:ca,To=Ue.useCallback(function(Sa){var Ho=Sa!==void 0?Sa:!ca;Si||(Qi(Ho),ca!==Ho&&(Xr==null||Xr(Ho)))},[Si,ca,Qi,Xr]),Ao=Ue.useMemo(function(){return(Hi||[]).some(function(Sa){return[`
`,`\r
`].includes(Sa)})},[Hi]),_r=Ue.useContext(Vt)||{},to=_r.maxCount,No=_r.rawValues,ba=function(Ho,Yo,ys){if(!(Xn&&Be(to)&&(No==null?void 0:No.size)>=to)){var $a=!0,za=Ho;wi==null||wi(null);var Ui=On(Ho,Hi,Be(to)?to-No.size:void 0),Sl=ys?null:Ui;return ti!=="combobox"&&Sl&&(za="",Bi==null||Bi(Sl),To(!1),$a=!1),Vi&&Wi!==za&&Vi(za,{source:Yo?"typing":"effect"}),$a}},os=function(Ho){!Ho||!Ho.trim()||Vi(Ho,{source:"submit"})};Ue.useEffect(function(){!ca&&!Xn&&ti!=="combobox"&&ba("",!1,!1)},[ca]),Ue.useEffect(function(){gs&&Si&&Qi(!1),Si&&!lo.current&&so(!1)},[Si]);var ms=Ae(),uo=(0,Ve.Z)(ms,2),_a=uo[0],qa=uo[1],pa=Ue.useRef(!1),ra=function(Ho){var Yo=_a(),ys=Ho.key,$a=ys==="Enter";if($a&&(ti!=="combobox"&&Ho.preventDefault(),ca||To(!0)),qa(!!Wi),ys==="Backspace"&&!Yo&&Xn&&!Wi&&xn.length){for(var za=(0,Pe.Z)(xn),Ui=null,Sl=za.length-1;Sl>=0;Sl-=1){var an=za[Sl];if(!an.disabled){za.splice(Sl,1),Ui=an;break}}Ui&&Ge(za,{type:"remove",values:[Ui]})}for(var Lr=arguments.length,Eu=new Array(Lr>1?Lr-1:0),Yu=1;Yu<Lr;Yu++)Eu[Yu-1]=arguments[Yu];if(ca&&(!$a||!pa.current)){var fs;$a&&(pa.current=!0),(fs=Oi.current)===null||fs===void 0||fs.onKeyDown.apply(fs,[Ho].concat(Eu))}ft==null||ft.apply(void 0,[Ho].concat(Eu))},Ca=function(Ho){for(var Yo=arguments.length,ys=new Array(Yo>1?Yo-1:0),$a=1;$a<Yo;$a++)ys[$a-1]=arguments[$a];if(ca){var za;(za=Oi.current)===null||za===void 0||za.onKeyUp.apply(za,[Ho].concat(ys))}Ho.key==="Enter"&&(pa.current=!1),Er==null||Er.apply(void 0,[Ho].concat(ys))},Ys=function(Ho){var Yo=xn.filter(function(ys){return ys!==Ho});Ge(Yo,{type:"remove",values:[Ho]})},oa=function(){pa.current=!1},as=Ue.useRef(!1),Il=function(){so(!0),Si||(ni&&!as.current&&ni.apply(void 0,arguments),zr.includes("focus")&&To(!0)),as.current=!0},iu=function(){lo.current=!0,so(!1,function(){as.current=!1,lo.current=!1,To(!1)}),!Si&&(Wi&&(ti==="tags"?Vi(Wi,{source:"submit"}):ti==="multiple"&&Vi("",{source:"blur"})),pi&&pi.apply(void 0,arguments))},Ua=[];Ue.useEffect(function(){return function(){Ua.forEach(function(Sa){return clearTimeout(Sa)}),Ua.splice(0,Ua.length)}},[]);var jl=function(Ho){var Yo,ys=Ho.target,$a=(Yo=gi.current)===null||Yo===void 0?void 0:Yo.getPopupElement();if($a&&$a.contains(ys)){var za=setTimeout(function(){var Lr=Ua.indexOf(za);if(Lr!==-1&&Ua.splice(Lr,1),Do(),!Kn&&!$a.contains(document.activeElement)){var Eu;(Eu=Ri.current)===null||Eu===void 0||Eu.focus()}});Ua.push(za)}for(var Ui=arguments.length,Sl=new Array(Ui>1?Ui-1:0),an=1;an<Ui;an++)Sl[an-1]=arguments[an];En==null||En.apply(void 0,[Ho].concat(Sl))},sc=Ue.useState({}),ou=(0,Ve.Z)(sc,2),ss=ou[1];function cl(){ss({})}var au;Ki&&(au=function(Ho){To(Ho)}),De(function(){var Sa;return[Li.current,(Sa=gi.current)===null||Sa===void 0?void 0:Sa.getPopupElement()]},is,To,!!Ki);var Vl=Ue.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},Cn),{},{notFoundContent:Jn,open:ca,triggerOpen:is,id:kt,showSearch:Hn,multiple:Xn,toggleOpen:To})},[Cn,Jn,is,ca,kt,Hn,Xn,To]),Zu=!!ur||nr,ts;Zu&&(ts=Ue.createElement(he,{className:$e()("".concat(Gn,"-arrow"),(0,Ie.Z)({},"".concat(Gn,"-arrow-loading"),nr)),customizeIcon:ur,customizeIconProps:{loading:nr,searchValue:Wi,open:ca,focused:An,showSearch:Hn}}));var lc=function(){var Ho;hi==null||hi(),(Ho=Ri.current)===null||Ho===void 0||Ho.focus(),Ge([],{type:"clear",values:xn}),ba("",!1,!1)},bc=ue(Gn,lc,xn,rr,vi,Si,Wi,ti),Ou=bc.allowClear,Ku=bc.clearIcon,Is=Ue.createElement(Pi,{ref:Oi}),js=$e()(Gn,vr,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Gn,"-focused"),An),"".concat(Gn,"-multiple"),Xn),"".concat(Gn,"-single"),!Xn),"".concat(Gn,"-allow-clear"),rr),"".concat(Gn,"-show-arrow"),Zu),"".concat(Gn,"-disabled"),Si),"".concat(Gn,"-loading"),nr),"".concat(Gn,"-open"),ca),"".concat(Gn,"-customize-input"),ho),"".concat(Gn,"-show-search"),Hn)),hs=Ue.createElement(Re,{ref:gi,disabled:Si,prefixCls:Gn,visible:is,popupElement:Is,animation:Mi,transitionName:po,dropdownStyle:Oo,dropdownClassName:mo,direction:Qn,dropdownMatchSelectWidth:xo,dropdownRender:Fn,dropdownAlign:fr,placement:Rn,builtinPlacements:rt,getPopupContainer:jr,empty:Jr,getTriggerDOMNode:function(Ho){return mi.current||Ho},onPopupVisibleChange:au,onPopupMouseEnter:cl},Ki?Ue.cloneElement(Ki,{ref:da}):Ue.createElement(zn,(0,oe.Z)({},Cn,{domRef:mi,prefixCls:Gn,inputElement:ho,ref:Ri,id:kt,prefix:_i,showSearch:Hn,autoClearSearchValue:Xi,mode:ti,activeDescendantId:ai,tagRender:nn,values:xn,open:ca,onToggleOpen:To,activeValue:fi,searchValue:Wi,onSearch:ba,onSearchSubmit:os,onRemove:Ys,tokenWithEnter:Ao,onInputBlur:oa}))),vs;return Ki?vs=hs:vs=Ue.createElement("div",(0,oe.Z)({className:js},hr,{ref:Li,onMouseDown:jl,onKeyDown:ra,onKeyUp:Ca,onFocus:Il,onBlur:iu}),Ue.createElement(zt,{visible:An&&!ca,values:xn}),hs,ts,Ou&&Ku),Ue.createElement(fe.Provider,{value:Vl},vs)}),Un=Mt,Yt=function(){return null};Yt.isSelectOptGroup=!0;var on=Yt,mn=function(){return null};mn.isSelectOption=!0;var er=mn,Sn=ae(80547),ht=ae(2738),tr=ae(45680);function lr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qt=["disabled","title","children","style","className"];function yr(Cn){return typeof Cn=="string"||typeof Cn=="number"}var ri=function(fn,Wr){var kt=me(),Gn=kt.prefixCls,vr=kt.id,Qr=kt.open,nn=kt.multiple,Qn=kt.mode,Dn=kt.searchValue,xn=kt.toggleOpen,Ge=kt.notFoundContent,Jr=kt.onPopupScroll,Hr=Ue.useContext(Vt),Jn=Hr.maxCount,hi=Hr.flattenOptions,ti=Hr.onActiveValue,Si=Hr.defaultActiveFirstOption,nr=Hr.onSelect,vn=Hr.menuItemSelectedIcon,xi=Hr.rawValues,zi=Hr.fieldNames,Ln=Hr.virtual,Xr=Hr.direction,fi=Hr.listHeight,wi=Hr.listItemHeight,ai=Hr.optionRender,Ni="".concat(Gn,"-item"),Xi=(0,Sn.Z)(function(){return hi},[Qr,hi],function(Sr,zr){return zr[0]&&Sr[1]!==zr[1]}),Vi=Ue.useRef(null),Bi=Ue.useMemo(function(){return nn&&Be(Jn)&&(xi==null?void 0:xi.size)>=Jn},[nn,Jn,xi==null?void 0:xi.size]),Hi=function(zr){zr.preventDefault()},rr=function(zr){var ni;(ni=Vi.current)===null||ni===void 0||ni.scrollTo(typeof zr=="number"?{index:zr}:zr)},_i=Ue.useCallback(function(Sr){return Qn==="combobox"?!1:xi.has(Sr)},[Qn,(0,Pe.Z)(xi).toString(),xi.size]),ur=function(zr){for(var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pi=Xi.length,Er=0;Er<pi;Er+=1){var ft=(zr+Er*ni+pi)%pi,En=Xi[ft]||{},Mn=En.group,Xn=En.data;if(!Mn&&!(Xn!=null&&Xn.disabled)&&(_i(Xn.value)||!Bi))return ft}return-1},vi=Ue.useState(function(){return ur(0)}),Pi=(0,Ve.Z)(vi,2),Mi=Pi[0],po=Pi[1],Oo=function(zr){var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;po(zr);var pi={source:ni?"keyboard":"mouse"},Er=Xi[zr];if(!Er){ti(null,-1,pi);return}ti(Er.value,zr,pi)};(0,Ue.useEffect)(function(){Oo(Si!==!1?ur(0):-1)},[Xi.length,Dn]);var mo=Ue.useCallback(function(Sr){return Qn==="combobox"?String(Sr).toLowerCase()===Dn.toLowerCase():xi.has(Sr)},[Qn,Dn,(0,Pe.Z)(xi).toString(),xi.size]);(0,Ue.useEffect)(function(){var Sr=setTimeout(function(){if(!nn&&Qr&&xi.size===1){var ni=Array.from(xi)[0],pi=Xi.findIndex(function(Er){var ft=Er.data;return ft.value===ni});pi!==-1&&(Oo(pi),rr(pi))}});if(Qr){var zr;(zr=Vi.current)===null||zr===void 0||zr.scrollTo(void 0)}return function(){return clearTimeout(Sr)}},[Qr,Dn]);var xo=function(zr){zr!==void 0&&nr(zr,{selected:!xi.has(zr)}),nn||xn(!1)};if(Ue.useImperativeHandle(Wr,function(){return{onKeyDown:function(zr){var ni=zr.which,pi=zr.ctrlKey;switch(ni){case We.Z.N:case We.Z.P:case We.Z.UP:case We.Z.DOWN:{var Er=0;if(ni===We.Z.UP?Er=-1:ni===We.Z.DOWN?Er=1:lr()&&pi&&(ni===We.Z.N?Er=1:ni===We.Z.P&&(Er=-1)),Er!==0){var ft=ur(Mi+Er,Er);rr(ft),Oo(ft,!0)}break}case We.Z.TAB:case We.Z.ENTER:{var En,Mn=Xi[Mi];Mn&&!(Mn!=null&&(En=Mn.data)!==null&&En!==void 0&&En.disabled)&&!Bi?xo(Mn.value):xo(void 0),Qr&&zr.preventDefault();break}case We.Z.ESC:xn(!1),Qr&&zr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(zr){rr(zr)}}}),Xi.length===0)return Ue.createElement("div",{role:"listbox",id:"".concat(vr,"_list"),className:"".concat(Ni,"-empty"),onMouseDown:Hi},Ge);var Fn=Object.keys(zi).map(function(Sr){return zi[Sr]}),fr=function(zr){return zr.label};function Rn(Sr,zr){var ni=Sr.group;return{role:ni?"presentation":"option",id:"".concat(vr,"_list_").concat(zr)}}var rt=function(zr){var ni=Xi[zr];if(!ni)return null;var pi=ni.data||{},Er=pi.value,ft=ni.group,En=(0,qe.Z)(pi,!0),Mn=fr(ni);return ni?Ue.createElement("div",(0,oe.Z)({"aria-label":typeof Mn=="string"&&!ft?Mn:null},En,{key:zr},Rn(ni,zr),{"aria-selected":mo(Er)}),Er):null},jr={role:"listbox",id:"".concat(vr,"_list")};return Ue.createElement(Ue.Fragment,null,Ln&&Ue.createElement("div",(0,oe.Z)({},jr,{style:{height:0,width:0,overflow:"hidden"}}),rt(Mi-1),rt(Mi),rt(Mi+1)),Ue.createElement(tr.Z,{itemKey:"key",ref:Vi,data:Xi,height:fi,itemHeight:wi,fullHeight:!1,onMouseDown:Hi,onScroll:Jr,virtual:Ln,direction:Xr,innerProps:Ln?null:jr},function(Sr,zr){var ni=Sr.group,pi=Sr.groupOption,Er=Sr.data,ft=Sr.label,En=Sr.value,Mn=Er.key;if(ni){var Xn,Hn=(Xn=Er.title)!==null&&Xn!==void 0?Xn:yr(ft)?ft.toString():void 0;return Ue.createElement("div",{className:$e()(Ni,"".concat(Ni,"-group"),Er.className),title:Hn},ft!==void 0?ft:Mn)}var hr=Er.disabled,$n=Er.title,cn=Er.children,Kn=Er.style,Gr=Er.className,Li=(0,Te.Z)(Er,qt),mi=(0,ht.Z)(Li,Fn),gi=_i(En),Ri=hr||!gi&&Bi,Oi="".concat(Ni,"-option"),lo=$e()(Ni,Oi,Gr,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Oi,"-grouped"),pi),"".concat(Oi,"-active"),Mi===zr&&!Ri),"".concat(Oi,"-disabled"),Ri),"".concat(Oi,"-selected"),gi)),So=fr(Sr),na=!vn||typeof vn=="function"||gi,An=typeof So=="number"?So:So||En,so=yr(An)?An.toString():void 0;return $n!==void 0&&(so=$n),Ue.createElement("div",(0,oe.Z)({},(0,qe.Z)(mi),Ln?{}:Rn(Sr,zr),{"aria-selected":mo(En),className:lo,title:so,onMouseMove:function(){Mi===zr||Ri||Oo(zr)},onClick:function(){Ri||xo(En)},style:Kn}),Ue.createElement("div",{className:"".concat(Oi,"-content")},typeof ai=="function"?ai(Sr,{index:zr}):An),Ue.isValidElement(vn)||gi,na&&Ue.createElement(he,{className:"".concat(Ni,"-option-state"),customizeIcon:vn,customizeIconProps:{value:En,disabled:Ri,isSelected:gi}},gi?"\u2713":null))}))},Or=Ue.forwardRef(ri),Nn=Or,ui=function(Cn,fn){var Wr=Ue.useRef({values:new Map,options:new Map}),kt=Ue.useMemo(function(){var vr=Wr.current,Qr=vr.values,nn=vr.options,Qn=Cn.map(function(Ge){if(Ge.label===void 0){var Jr;return(0,ke.Z)((0,ke.Z)({},Ge),{},{label:(Jr=Qr.get(Ge.value))===null||Jr===void 0?void 0:Jr.label})}return Ge}),Dn=new Map,xn=new Map;return Qn.forEach(function(Ge){Dn.set(Ge.value,Ge),xn.set(Ge.value,fn.get(Ge.value)||nn.get(Ge.value))}),Wr.current.values=Dn,Wr.current.options=xn,Qn},[Cn,fn]),Gn=Ue.useCallback(function(vr){return fn.get(vr)||Wr.current.options.get(vr)},[fn]);return[kt,Gn]};function $r(Cn,fn){return wt(Cn).join("").toUpperCase().includes(fn)}var or=function(Cn,fn,Wr,kt,Gn){return Ue.useMemo(function(){if(!Wr||kt===!1)return Cn;var vr=fn.options,Qr=fn.label,nn=fn.value,Qn=[],Dn=typeof kt=="function",xn=Wr.toUpperCase(),Ge=Dn?kt:function(Hr,Jn){return Gn?$r(Jn[Gn],xn):Jn[vr]?$r(Jn[Qr!=="children"?Qr:"label"],xn):$r(Jn[nn],xn)},Jr=Dn?function(Hr){return yn(Hr)}:function(Hr){return Hr};return Cn.forEach(function(Hr){if(Hr[vr]){var Jn=Ge(Wr,Jr(Hr));if(Jn)Qn.push(Hr);else{var hi=Hr[vr].filter(function(ti){return Ge(Wr,Jr(ti))});hi.length&&Qn.push((0,ke.Z)((0,ke.Z)({},Hr),{},(0,Ie.Z)({},vr,hi)))}return}Ge(Wr,Jr(Hr))&&Qn.push(Hr)}),Qn},[Cn,kt,Gn,Wr,fn])},Kr=ae(69582),oi=ae(11592),Me=["children","value"],kr=["children"];function Pr(Cn){var fn=Cn,Wr=fn.key,kt=fn.props,Gn=kt.children,vr=kt.value,Qr=(0,Te.Z)(kt,Me);return(0,ke.Z)({key:Wr,value:vr!==void 0?vr:Wr,children:Gn},Qr)}function ei(Cn){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,oi.Z)(Cn).map(function(Wr,kt){if(!Ue.isValidElement(Wr)||!Wr.type)return null;var Gn=Wr,vr=Gn.type.isSelectOptGroup,Qr=Gn.key,nn=Gn.props,Qn=nn.children,Dn=(0,Te.Z)(nn,kr);return fn||!vr?Pr(Wr):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(Qr===null?kt:Qr,"__"),label:Qr},Dn),{},{options:ei(Qn)})}).filter(function(Wr){return Wr})}var Ii=function(fn,Wr,kt,Gn,vr){return Ue.useMemo(function(){var Qr=fn,nn=!fn;nn&&(Qr=ei(Wr));var Qn=new Map,Dn=new Map,xn=function(Hr,Jn,hi){hi&&typeof hi=="string"&&Hr.set(Jn[hi],Jn)},Ge=function Jr(Hr){for(var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hi=0;hi<Hr.length;hi+=1){var ti=Hr[hi];!ti[kt.options]||Jn?(Qn.set(ti[kt.value],ti),xn(Dn,ti,kt.label),xn(Dn,ti,Gn),xn(Dn,ti,vr)):Jr(ti[kt.options],!0)}};return Ge(Qr),{options:Qr,valueOptions:Qn,labelOptions:Dn}},[fn,Wr,kt,Gn,vr])},Di=Ii;function Ti(Cn){var fn=Ue.useRef();fn.current=Cn;var Wr=Ue.useCallback(function(){return fn.current.apply(fn,arguments)},[]);return Wr}function Vr(Cn){var fn=Cn.mode,Wr=Cn.options,kt=Cn.children,Gn=Cn.backfill,vr=Cn.allowClear,Qr=Cn.placeholder,nn=Cn.getInputElement,Qn=Cn.showSearch,Dn=Cn.onSearch,xn=Cn.defaultOpen,Ge=Cn.autoFocus,Jr=Cn.labelInValue,Hr=Cn.value,Jn=Cn.inputValue,hi=Cn.optionLabelProp,ti=isMultiple(fn),Si=Qn!==void 0?Qn:ti||fn==="combobox",nr=Wr||convertChildrenToData(kt);if(warning(fn!=="tags"||nr.every(function(Ln){return!Ln.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),fn==="tags"||fn==="combobox"){var vn=nr.some(function(Ln){return Ln.options?Ln.options.some(function(Xr){return typeof("value"in Xr?Xr.value:Xr.key)=="number"}):typeof("value"in Ln?Ln.value:Ln.key)=="number"});warning(!vn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(fn!=="combobox"||!hi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(fn==="combobox"||!Gn,"`backfill` only works with `combobox` mode."),warning(fn==="combobox"||!nn,"`getInputElement` only work with `combobox` mode."),noteOnce(fn!=="combobox"||!nn||!vr||!Qr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Dn&&!Si&&fn!=="combobox"&&fn!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!xn||Ge,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Hr!=null){var xi=toArray(Hr);warning(!Jr||xi.every(function(Ln){return _typeof(Ln)==="object"&&("key"in Ln||"value"in Ln)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ti||Array.isArray(Hr),"`value` should be array when `mode` is `multiple` or `tags`")}if(kt){var zi=null;toNodeArray(kt).some(function(Ln){if(!React.isValidElement(Ln)||!Ln.type)return!1;var Xr=Ln,fi=Xr.type;if(fi.isSelectOption)return!1;if(fi.isSelectOptGroup){var wi=toNodeArray(Ln.props.children).every(function(ai){return!React.isValidElement(ai)||!Ln.type||ai.type.isSelectOption?!0:(zi=ai.type,!1)});return!wi}return zi=fi,!0}),zi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zi.displayName||zi.name||zi,"`.")),warning(Jn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Fr(Cn,fn){if(Cn){var Wr=function kt(Gn){for(var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qr=0;Qr<Gn.length;Qr++){var nn=Gn[Qr];if(nn[fn==null?void 0:fn.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!vr&&Array.isArray(nn[fn==null?void 0:fn.options])&&kt(nn[fn==null?void 0:fn.options],!0))break}};Wr(Cn)}}var dn=null,hn=["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"],un=["inputValue"];function Ur(Cn){return!Cn||(0,ze.Z)(Cn)!=="object"}var Tr=Ue.forwardRef(function(Cn,fn){var Wr=Cn.id,kt=Cn.mode,Gn=Cn.prefixCls,vr=Gn===void 0?"rc-select":Gn,Qr=Cn.backfill,nn=Cn.fieldNames,Qn=Cn.inputValue,Dn=Cn.searchValue,xn=Cn.onSearch,Ge=Cn.autoClearSearchValue,Jr=Ge===void 0?!0:Ge,Hr=Cn.onSelect,Jn=Cn.onDeselect,hi=Cn.dropdownMatchSelectWidth,ti=hi===void 0?!0:hi,Si=Cn.filterOption,nr=Cn.filterSort,vn=Cn.optionFilterProp,xi=Cn.optionLabelProp,zi=Cn.options,Ln=Cn.optionRender,Xr=Cn.children,fi=Cn.defaultActiveFirstOption,wi=Cn.menuItemSelectedIcon,ai=Cn.virtual,Ni=Cn.direction,Xi=Cn.listHeight,Vi=Xi===void 0?200:Xi,Bi=Cn.listItemHeight,Hi=Bi===void 0?20:Bi,rr=Cn.labelRender,_i=Cn.value,ur=Cn.defaultValue,vi=Cn.labelInValue,Pi=Cn.onChange,Mi=Cn.maxCount,po=(0,Te.Z)(Cn,hn),Oo=(0,Kr.ZP)(Wr),mo=gn(kt),xo=!!(!zi&&Xr),Fn=Ue.useMemo(function(){return Si===void 0&&kt==="combobox"?!1:Si},[Si,kt]),fr=Ue.useMemo(function(){return bt(nn,xo)},[JSON.stringify(nn),xo]),Rn=(0,st.Z)("",{value:Dn!==void 0?Dn:Qn,postState:function(Ao){return Ao||""}}),rt=(0,Ve.Z)(Rn,2),jr=rt[0],Sr=rt[1],zr=Di(zi,Xr,fr,vn,xi),ni=zr.valueOptions,pi=zr.labelOptions,Er=zr.options,ft=Ue.useCallback(function(To){var Ao=wt(To);return Ao.map(function(_r){var to,No,ba,os,ms;if(Ur(_r))to=_r;else{var uo;ba=_r.key,No=_r.label,to=(uo=_r.value)!==null&&uo!==void 0?uo:ba}var _a=ni.get(to);if(_a){var qa;if(No===void 0&&(No=_a==null?void 0:_a[xi||fr.label]),ba===void 0&&(ba=(qa=_a==null?void 0:_a.key)!==null&&qa!==void 0?qa:to),os=_a==null?void 0:_a.disabled,ms=_a==null?void 0:_a.title,0)var pa}return{label:No,value:to,key:ba,disabled:os,title:ms}})},[fr,xi,ni]),En=(0,st.Z)(ur,{value:_i}),Mn=(0,Ve.Z)(En,2),Xn=Mn[0],Hn=Mn[1],hr=Ue.useMemo(function(){var To,Ao=mo&&Xn===null?[]:Xn,_r=ft(Ao);return kt==="combobox"&&Zt((To=_r[0])===null||To===void 0?void 0:To.value)?[]:_r},[Xn,ft,kt,mo]),$n=ui(hr,ni),cn=(0,Ve.Z)($n,2),Kn=cn[0],Gr=cn[1],Li=Ue.useMemo(function(){if(!kt&&Kn.length===1){var To=Kn[0];if(To.value===null&&(To.label===null||To.label===void 0))return[]}return Kn.map(function(Ao){var _r;return(0,ke.Z)((0,ke.Z)({},Ao),{},{label:(_r=typeof rr=="function"?rr(Ao):Ao.label)!==null&&_r!==void 0?_r:Ao.value})})},[kt,Kn,rr]),mi=Ue.useMemo(function(){return new Set(Kn.map(function(To){return To.value}))},[Kn]);Ue.useEffect(function(){if(kt==="combobox"){var To,Ao=(To=Kn[0])===null||To===void 0?void 0:To.value;Sr(Qt(Ao)?String(Ao):"")}},[Kn]);var gi=Ti(function(To,Ao){var _r=Ao!=null?Ao:To;return(0,Ie.Z)((0,Ie.Z)({},fr.value,To),fr.label,_r)}),Ri=Ue.useMemo(function(){if(kt!=="tags")return Er;var To=(0,Pe.Z)(Er),Ao=function(to){return ni.has(to)};return(0,Pe.Z)(Kn).sort(function(_r,to){return _r.value<to.value?-1:1}).forEach(function(_r){var to=_r.value;Ao(to)||To.push(gi(to,_r.label))}),To},[gi,Er,ni,Kn,kt]),Oi=or(Ri,fr,jr,Fn,vn),lo=Ue.useMemo(function(){return kt!=="tags"||!jr||Oi.some(function(To){return To[vn||"value"]===jr})||Oi.some(function(To){return To[fr.value]===jr})?Oi:[gi(jr)].concat((0,Pe.Z)(Oi))},[gi,vn,kt,Oi,jr,fr]),So=function To(Ao){var _r=(0,Pe.Z)(Ao).sort(function(to,No){return nr(to,No,{searchValue:jr})});return _r.map(function(to){return Array.isArray(to.options)?(0,ke.Z)((0,ke.Z)({},to),{},{options:to.options.length>0?To(to.options):to.options}):to})},na=Ue.useMemo(function(){return nr?So(lo):lo},[lo,nr,jr]),An=Ue.useMemo(function(){return Wt(na,{fieldNames:fr,childrenAsData:xo})},[na,fr,xo]),so=function(Ao){var _r=ft(Ao);if(Hn(_r),Pi&&(_r.length!==Kn.length||_r.some(function(ba,os){var ms;return((ms=Kn[os])===null||ms===void 0?void 0:ms.value)!==(ba==null?void 0:ba.value)}))){var to=vi?_r:_r.map(function(ba){return ba.value}),No=_r.map(function(ba){return yn(Gr(ba.value))});Pi(mo?to:to[0],mo?No:No[0])}},Do=Ue.useState(null),Wi=(0,Ve.Z)(Do,2),ho=Wi[0],Ki=Wi[1],da=Ue.useState(0),Vn=(0,Ve.Z)(da,2),Mo=Vn[0],ia=Vn[1],Ps=fi!==void 0?fi:kt!=="combobox",Fa=Ue.useCallback(function(To,Ao){var _r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},to=_r.source,No=to===void 0?"keyboard":to;ia(Ao),Qr&&kt==="combobox"&&To!==null&&No==="keyboard"&&Ki(String(To))},[Qr,kt]),Gs=function(Ao,_r,to){var No=function(){var Ys,oa=Gr(Ao);return[vi?{label:oa==null?void 0:oa[fr.label],value:Ao,key:(Ys=oa==null?void 0:oa.key)!==null&&Ys!==void 0?Ys:Ao}:Ao,yn(oa)]};if(_r&&Hr){var ba=No(),os=(0,Ve.Z)(ba,2),ms=os[0],uo=os[1];Hr(ms,uo)}else if(!_r&&Jn&&to!=="clear"){var _a=No(),qa=(0,Ve.Z)(_a,2),pa=qa[0],ra=qa[1];Jn(pa,ra)}},gs=Ti(function(To,Ao){var _r,to=mo?Ao.selected:!0;to?_r=mo?[].concat((0,Pe.Z)(Kn),[To]):[To]:_r=Kn.filter(function(No){return No.value!==To}),so(_r),Gs(To,to),kt==="combobox"?Ki(""):(!gn||Jr)&&(Sr(""),Ki(""))}),Qi=function(Ao,_r){so(Ao);var to=_r.type,No=_r.values;(to==="remove"||to==="clear")&&No.forEach(function(ba){Gs(ba.value,!1,to)})},ca=function(Ao,_r){if(Sr(Ao),Ki(null),_r.source==="submit"){var to=(Ao||"").trim();if(to){var No=Array.from(new Set([].concat((0,Pe.Z)(mi),[to])));so(No),Gs(to,!0),Sr("")}return}_r.source!=="blur"&&(kt==="combobox"&&so(Ao),xn==null||xn(Ao))},Ba=function(Ao){var _r=Ao;kt!=="tags"&&(_r=Ao.map(function(No){var ba=pi.get(No);return ba==null?void 0:ba.value}).filter(function(No){return No!==void 0}));var to=Array.from(new Set([].concat((0,Pe.Z)(mi),(0,Pe.Z)(_r))));so(to),to.forEach(function(No){Gs(No,!0)})},is=Ue.useMemo(function(){var To=ai!==!1&&ti!==!1;return(0,ke.Z)((0,ke.Z)({},zr),{},{flattenOptions:An,onActiveValue:Fa,defaultActiveFirstOption:Ps,onSelect:gs,menuItemSelectedIcon:wi,rawValues:mi,fieldNames:fr,virtual:To,direction:Ni,listHeight:Vi,listItemHeight:Hi,childrenAsData:xo,maxCount:Mi,optionRender:Ln})},[Mi,zr,An,Fa,Ps,gs,wi,mi,fr,ai,ti,Ni,Vi,Hi,xo,Ln]);return Ue.createElement(Vt.Provider,{value:is},Ue.createElement(Un,(0,oe.Z)({},po,{id:Oo,prefixCls:vr,ref:fn,omitDomProps:un,mode:kt,displayValues:Li,onDisplayValuesChange:Qi,direction:Ni,searchValue:jr,onSearch:ca,autoClearSearchValue:Jr,onSearchSplit:Ba,dropdownMatchSelectWidth:ti,OptionList:Nn,emptyOptions:!An.length,activeValue:ho,activeDescendantId:"".concat(Oo,"_list_").concat(Mo)})))}),Zr=Tr;Zr.Option=er,Zr.OptGroup=on;var sr=Zr,Rr=sr},63158:function(Ze,Ee,ae){"use strict";var oe=ae(72308),Pe=ae(49618),Ie=ae(52487),ke=ae(74416),Ve=ae(59301),Te=ae(92310),ze=ae.n(Te),st=ae(18929),Qe=ae(10228),Ue=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],St=Ve.forwardRef(function($e,Dt){var Fe,te=$e.prefixCls,ee=te===void 0?"rc-switch":te,he=$e.className,ue=$e.checked,fe=$e.defaultChecked,me=$e.disabled,be=$e.loadingIcon,Ae=$e.checkedChildren,De=$e.unCheckedChildren,We=$e.onClick,nt=$e.onChange,qe=$e.onKeyDown,ot=(0,ke.Z)($e,Ue),mt=(0,st.Z)(!1,{value:ue,defaultValue:fe}),at=(0,Ie.Z)(mt,2),vt=at[0],wt=at[1];function At(ln,Nt){var gt=vt;return me||(gt=ln,wt(gt),nt==null||nt(gt,Nt)),gt}function Ht(ln){ln.which===Qe.Z.LEFT?At(!1,ln):ln.which===Qe.Z.RIGHT&&At(!0,ln),qe==null||qe(ln)}function Qt(ln){var Nt=At(!vt,ln);We==null||We(Nt,ln)}var Zt=ze()(ee,he,(Fe={},(0,Pe.Z)(Fe,"".concat(ee,"-checked"),vt),(0,Pe.Z)(Fe,"".concat(ee,"-disabled"),me),Fe));return Ve.createElement("button",(0,oe.Z)({},ot,{type:"button",role:"switch","aria-checked":vt,disabled:me,className:Zt,ref:Dt,onKeyDown:Ht,onClick:Qt}),be,Ve.createElement("span",{className:"".concat(ee,"-inner")},Ve.createElement("span",{className:"".concat(ee,"-inner-checked")},Ae),Ve.createElement("span",{className:"".concat(ee,"-inner-unchecked")},De)))});St.displayName="Switch",Ee.Z=St},67204:function(Ze,Ee,ae){"use strict";ae.d(Ee,{R:function(){return Pe},w:function(){return oe}});var oe={},Pe="rc-table-internal-hook"},78612:function(Ze,Ee,ae){"use strict";ae.d(Ee,{L:function(){return ee},Z:function(){return be}});var oe=ae(52487),Pe=ae(49618),Ie=ae(80702),ke=ae(62853),Ve=ae(77321),Te=ae(74416),ze=ae(11592),st=ae(48736),Qe=ae(59301),Ue=ae(67204),St=ae(90494);function $e(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof De=="number"?De:De.endsWith("%")?Ae*parseFloat(De)/100:null}function Dt(Ae,De,We){return Qe.useMemo(function(){if(De&&De>0){var nt=0,qe=0;Ae.forEach(function(Qt){var Zt=$e(De,Qt.width);Zt?nt+=Zt:qe+=1});var ot=Math.max(De,We),mt=Math.max(ot-nt,qe),at=qe,vt=mt/qe,wt=0,At=Ae.map(function(Qt){var Zt=(0,Ve.Z)({},Qt),ln=$e(De,Zt.width);if(ln)Zt.width=ln;else{var Nt=Math.floor(vt);Zt.width=at===1?mt:Nt,mt-=Nt,at-=1}return wt+=Zt.width,Zt});if(wt<ot){var Ht=ot/wt;mt=ot,At.forEach(function(Qt,Zt){var ln=Math.floor(Qt.width*Ht);Qt.width=Zt===At.length-1?mt:ln,mt-=ln})}return[At,Math.max(wt,ot)]}return[Ae,De]},[Ae,De,We])}var Fe=["children"],te=["fixed"];function ee(Ae){return(0,ze.Z)(Ae).filter(function(De){return Qe.isValidElement(De)}).map(function(De){var We=De.key,nt=De.props,qe=nt.children,ot=(0,Te.Z)(nt,Fe),mt=(0,Ve.Z)({key:We},ot);return qe&&(mt.children=ee(qe)),mt})}function he(Ae){return Ae.filter(function(De){return De&&(0,ke.Z)(De)==="object"&&!De.hidden}).map(function(De){var We=De.children;return We&&We.length>0?(0,Ve.Z)((0,Ve.Z)({},De),{},{children:he(We)}):De})}function ue(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.filter(function(We){return We&&(0,ke.Z)(We)==="object"}).reduce(function(We,nt,qe){var ot=nt.fixed,mt=ot===!0?"left":ot,at="".concat(De,"-").concat(qe),vt=nt.children;return vt&&vt.length>0?[].concat((0,Ie.Z)(We),(0,Ie.Z)(ue(vt,at).map(function(wt){return(0,Ve.Z)({fixed:mt},wt)}))):[].concat((0,Ie.Z)(We),[(0,Ve.Z)((0,Ve.Z)({key:at},nt),{},{fixed:mt})])},[])}function fe(Ae){return Ae.map(function(De){var We=De.fixed,nt=(0,Te.Z)(De,te),qe=We;return We==="left"?qe="right":We==="right"&&(qe="left"),(0,Ve.Z)({fixed:qe},nt)})}function me(Ae,De){var We=Ae.prefixCls,nt=Ae.columns,qe=Ae.children,ot=Ae.expandable,mt=Ae.expandedKeys,at=Ae.columnTitle,vt=Ae.getRowKey,wt=Ae.onTriggerExpand,At=Ae.expandIcon,Ht=Ae.rowExpandable,Qt=Ae.expandIconColumnIndex,Zt=Ae.direction,ln=Ae.expandRowByClick,Nt=Ae.columnWidth,gt=Ae.fixed,ct=Ae.scrollWidth,Jt=Ae.clientWidth,sn=Qe.useMemo(function(){var cr=nt||ee(qe)||[];return he(cr.slice())},[nt,qe]),It=Qe.useMemo(function(){if(ot){var cr=sn.slice();if(!cr.includes(Ue.w)){var it=Qt||0;it>=0&&(it||gt==="left"||!gt)&&cr.splice(it,0,Ue.w),gt==="right"&&cr.splice(sn.length,0,Ue.w)}var _e=cr.indexOf(Ue.w);cr=cr.filter(function(Be,bt){return Be!==Ue.w||bt===_e});var Re=sn[_e],Xe;gt?Xe=gt:Xe=Re?Re.fixed:null;var lt=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},St.v,{className:"".concat(We,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",at),"fixed",Xe),"className","".concat(We,"-row-expand-icon-cell")),"width",Nt),"render",function(bt,Wt,yn){var On=vt(Wt,yn),Pt=mt.has(On),Vt=Ht?Ht(Wt):!0,zt=At({prefixCls:We,expanded:Pt,expandable:Vt,record:Wt,onExpand:wt});return ln?Qe.createElement("span",{onClick:function(Tn){return Tn.stopPropagation()}},zt):zt});return cr.map(function(Be){return Be===Ue.w?lt:Be})}return sn.filter(function(Be){return Be!==Ue.w})},[ot,sn,vt,mt,At,Zt]),wn=Qe.useMemo(function(){var cr=It;return De&&(cr=De(cr)),cr.length||(cr=[{render:function(){return null}}]),cr},[De,It,Zt]),bn=Qe.useMemo(function(){return Zt==="rtl"?fe(ue(wn)):ue(wn)},[wn,Zt,ct]),_n=Qe.useMemo(function(){for(var cr=-1,it=bn.length-1;it>=0;it-=1){var _e=bn[it].fixed;if(_e==="left"||_e===!0){cr=it;break}}if(cr>=0)for(var Re=0;Re<=cr;Re+=1){var Xe=bn[Re].fixed;if(Xe!=="left"&&Xe!==!0)return!0}var lt=bn.findIndex(function(Wt){var yn=Wt.fixed;return yn==="right"});if(lt>=0)for(var Be=lt;Be<bn.length;Be+=1){var bt=bn[Be].fixed;if(bt!=="right")return!0}return!1},[bn]),Xt=Dt(bn,ct,Jt),zn=(0,oe.Z)(Xt,2),Ot=zn[0],jn=zn[1];return[wn,Ot,jn,_n]}var be=me},16596:function(Ze,Ee,ae){"use strict";ae.d(Ee,{w2:function(){return oe.w},vP:function(){return Nn.v},RQ:function(){return oe.R},ER:function(){return On},Q$:function(){return xi},TN:function(){return Oo}});var oe=ae(67204),Pe=ae(52487),Ie=ae(6089),ke=ae(34280),Ve=ae(13697),Te=ae(59301),ze=ae(4676);function st(Fn){var fr=Te.createContext(void 0),Rn=function(jr){var Sr=jr.value,zr=jr.children,ni=Te.useRef(Sr);ni.current=Sr;var pi=Te.useState(function(){return{getValue:function(){return ni.current},listeners:new Set}}),Er=(0,Pe.Z)(pi,1),ft=Er[0];return(0,ke.Z)(function(){(0,ze.unstable_batchedUpdates)(function(){ft.listeners.forEach(function(En){En(Sr)})})},[Sr]),Te.createElement(fr.Provider,{value:ft},zr)};return{Context:fr,Provider:Rn,defaultValue:Fn}}function Qe(Fn,fr){var Rn=(0,Ie.Z)(typeof fr=="function"?fr:function(En){if(fr===void 0)return En;if(!Array.isArray(fr))return En[fr];var Mn={};return fr.forEach(function(Xn){Mn[Xn]=En[Xn]}),Mn}),rt=Te.useContext(Fn==null?void 0:Fn.Context),jr=rt||{},Sr=jr.listeners,zr=jr.getValue,ni=Te.useRef();ni.current=Rn(rt?zr():Fn==null?void 0:Fn.defaultValue);var pi=Te.useState({}),Er=(0,Pe.Z)(pi,2),ft=Er[1];return(0,ke.Z)(function(){if(!rt)return;function En(Mn){var Xn=Rn(Mn);(0,Ve.Z)(ni.current,Xn,!0)||ft({})}return Sr.add(En),function(){Sr.delete(En)}},[rt]),ni.current}var Ue=ae(72308),St=ae(8654);function $e(){var Fn=Te.createContext(null);function fr(){return Te.useContext(Fn)}function Rn(jr,Sr){var zr=(0,St.Yr)(jr),ni=function(Er,ft){var En=zr?{ref:ft}:{},Mn=Te.useRef(0),Xn=Te.useRef(Er),Hn=fr();return Hn!==null?Te.createElement(jr,(0,Ue.Z)({},Er,En)):((!Sr||Sr(Xn.current,Er))&&(Mn.current+=1),Xn.current=Er,Te.createElement(Fn.Provider,{value:Mn.current},Te.createElement(jr,(0,Ue.Z)({},Er,En))))};return zr?Te.forwardRef(ni):ni}function rt(jr,Sr){var zr=(0,St.Yr)(jr),ni=function(Er,ft){var En=zr?{ref:ft}:{};return fr(),Te.createElement(jr,(0,Ue.Z)({},Er,En))};return zr?Te.memo(Te.forwardRef(ni),Sr):Te.memo(ni,Sr)}return{makeImmutable:Rn,responseImmutable:rt,useImmutableMark:fr}}var Dt=$e(),Fe=Dt.makeImmutable,te=Dt.responseImmutable,ee=Dt.useImmutableMark,he=$e(),ue=he.makeImmutable,fe=he.responseImmutable,me=he.useImmutableMark,be=st(),Ae=be;function De(Fn,fr){var Rn=React.useRef(0);Rn.current+=1;var rt=React.useRef(Fn),jr=[];Object.keys(Fn||{}).map(function(zr){var ni;(Fn==null?void 0:Fn[zr])!==((ni=rt.current)===null||ni===void 0?void 0:ni[zr])&&jr.push(zr)}),rt.current=Fn;var Sr=React.useRef([]);return jr.length&&(Sr.current=jr),React.useDebugValue(Rn.current),React.useDebugValue(Sr.current.join(", ")),fr&&console.log("".concat(fr,":"),Rn.current,Sr.current),Rn.current}var We=null,nt=null,qe=ae(62853),ot=ae(77321),mt=ae(49618),at=ae(92310),vt=ae.n(at),wt=ae(80547),At=ae(97938),Ht=ae(48736),Qt=Te.createContext({renderWithProps:!1}),Zt=Qt,ln="RC_TABLE_KEY";function Nt(Fn){return Fn==null?[]:Array.isArray(Fn)?Fn:[Fn]}function gt(Fn){var fr=[],Rn={};return Fn.forEach(function(rt){for(var jr=rt||{},Sr=jr.key,zr=jr.dataIndex,ni=Sr||Nt(zr).join("-")||ln;Rn[ni];)ni="".concat(ni,"_next");Rn[ni]=!0,fr.push(ni)}),fr}function ct(Fn){return Fn!=null}function Jt(Fn){return typeof Fn=="number"&&!Number.isNaN(Fn)}function sn(Fn){return Fn&&(0,qe.Z)(Fn)==="object"&&!Array.isArray(Fn)&&!Te.isValidElement(Fn)}function It(Fn,fr,Rn,rt,jr,Sr){var zr=Te.useContext(Zt),ni=me(),pi=(0,wt.Z)(function(){if(ct(rt))return[rt];var Er=fr==null||fr===""?[]:Array.isArray(fr)?fr:[fr],ft=(0,At.Z)(Fn,Er),En=ft,Mn=void 0;if(jr){var Xn=jr(ft,Fn,Rn);sn(Xn)?(En=Xn.children,Mn=Xn.props,zr.renderWithProps=!0):En=Xn}return[En,Mn]},[ni,Fn,rt,fr,jr,Rn],function(Er,ft){if(Sr){var En=(0,Pe.Z)(Er,2),Mn=En[1],Xn=(0,Pe.Z)(ft,2),Hn=Xn[1];return Sr(Hn,Mn)}return zr.renderWithProps?!0:!(0,Ve.Z)(Er,ft,!0)});return pi}function wn(Fn,fr,Rn,rt){var jr=Fn+fr-1;return Fn<=rt&&jr>=Rn}function bn(Fn,fr){return Qe(Ae,function(Rn){var rt=wn(Fn,fr||1,Rn.hoverStartRow,Rn.hoverEndRow);return[rt,Rn.onHover]})}var _n=ae(70425),Xt=function(fr){var Rn=fr.ellipsis,rt=fr.rowType,jr=fr.children,Sr,zr=Rn===!0?{showTitle:!0}:Rn;return zr&&(zr.showTitle||rt==="header")&&(typeof jr=="string"||typeof jr=="number"?Sr=jr.toString():Te.isValidElement(jr)&&typeof jr.props.children=="string"&&(Sr=jr.props.children)),Sr};function zn(Fn){var fr,Rn,rt,jr,Sr,zr,ni,pi,Er=Fn.component,ft=Fn.children,En=Fn.ellipsis,Mn=Fn.scope,Xn=Fn.prefixCls,Hn=Fn.className,hr=Fn.align,$n=Fn.record,cn=Fn.render,Kn=Fn.dataIndex,Gr=Fn.renderIndex,Li=Fn.shouldCellUpdate,mi=Fn.index,gi=Fn.rowType,Ri=Fn.colSpan,Oi=Fn.rowSpan,lo=Fn.fixLeft,So=Fn.fixRight,na=Fn.firstFixLeft,An=Fn.lastFixLeft,so=Fn.firstFixRight,Do=Fn.lastFixRight,Wi=Fn.appendNode,ho=Fn.additionalProps,Ki=ho===void 0?{}:ho,da=Fn.isSticky,Vn="".concat(Xn,"-cell"),Mo=Qe(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ia=Mo.supportSticky,Ps=Mo.allColumnsFixedLeft,Fa=Mo.rowHoverable,Gs=It($n,Kn,Gr,ft,cn,Li),gs=(0,Pe.Z)(Gs,2),Qi=gs[0],ca=gs[1],Ba={},is=typeof lo=="number"&&ia,To=typeof So=="number"&&ia;is&&(Ba.position="sticky",Ba.left=lo),To&&(Ba.position="sticky",Ba.right=So);var Ao=(fr=(Rn=(rt=ca==null?void 0:ca.colSpan)!==null&&rt!==void 0?rt:Ki.colSpan)!==null&&Rn!==void 0?Rn:Ri)!==null&&fr!==void 0?fr:1,_r=(jr=(Sr=(zr=ca==null?void 0:ca.rowSpan)!==null&&zr!==void 0?zr:Ki.rowSpan)!==null&&Sr!==void 0?Sr:Oi)!==null&&jr!==void 0?jr:1,to=bn(mi,_r),No=(0,Pe.Z)(to,2),ba=No[0],os=No[1],ms=(0,_n.zX)(function(Ys){var oa;$n&&os(mi,mi+_r-1),Ki==null||(oa=Ki.onMouseEnter)===null||oa===void 0||oa.call(Ki,Ys)}),uo=(0,_n.zX)(function(Ys){var oa;$n&&os(-1,-1),Ki==null||(oa=Ki.onMouseLeave)===null||oa===void 0||oa.call(Ki,Ys)});if(Ao===0||_r===0)return null;var _a=(ni=Ki.title)!==null&&ni!==void 0?ni:Xt({rowType:gi,ellipsis:En,children:Qi}),qa=vt()(Vn,Hn,(pi={},(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)(pi,"".concat(Vn,"-fix-left"),is&&ia),"".concat(Vn,"-fix-left-first"),na&&ia),"".concat(Vn,"-fix-left-last"),An&&ia),"".concat(Vn,"-fix-left-all"),An&&Ps&&ia),"".concat(Vn,"-fix-right"),To&&ia),"".concat(Vn,"-fix-right-first"),so&&ia),"".concat(Vn,"-fix-right-last"),Do&&ia),"".concat(Vn,"-ellipsis"),En),"".concat(Vn,"-with-append"),Wi),"".concat(Vn,"-fix-sticky"),(is||To)&&da&&ia),(0,mt.Z)(pi,"".concat(Vn,"-row-hover"),!ca&&ba)),Ki.className,ca==null?void 0:ca.className),pa={};hr&&(pa.textAlign=hr);var ra=(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({},ca==null?void 0:ca.style),Ba),pa),Ki.style),Ca=Qi;return(0,qe.Z)(Ca)==="object"&&!Array.isArray(Ca)&&!Te.isValidElement(Ca)&&(Ca=null),En&&(An||so)&&(Ca=Te.createElement("span",{className:"".concat(Vn,"-content")},Ca)),Te.createElement(Er,(0,Ue.Z)({},ca,Ki,{className:qa,style:ra,title:_a,scope:Mn,onMouseEnter:Fa?ms:void 0,onMouseLeave:Fa?uo:void 0,colSpan:Ao!==1?Ao:null,rowSpan:_r!==1?_r:null}),Wi,Ca)}var Ot=Te.memo(zn);function jn(Fn,fr,Rn,rt,jr){var Sr=Rn[Fn]||{},zr=Rn[fr]||{},ni,pi;Sr.fixed==="left"?ni=rt.left[jr==="rtl"?fr:Fn]:zr.fixed==="right"&&(pi=rt.right[jr==="rtl"?Fn:fr]);var Er=!1,ft=!1,En=!1,Mn=!1,Xn=Rn[fr+1],Hn=Rn[Fn-1],hr=Xn&&!Xn.fixed||Hn&&!Hn.fixed||Rn.every(function(Li){return Li.fixed==="left"});if(jr==="rtl"){if(ni!==void 0){var $n=Hn&&Hn.fixed==="left";Mn=!$n&&hr}else if(pi!==void 0){var cn=Xn&&Xn.fixed==="right";En=!cn&&hr}}else if(ni!==void 0){var Kn=Xn&&Xn.fixed==="left";Er=!Kn&&hr}else if(pi!==void 0){var Gr=Hn&&Hn.fixed==="right";ft=!Gr&&hr}return{fixLeft:ni,fixRight:pi,lastFixLeft:Er,firstFixRight:ft,lastFixRight:En,firstFixLeft:Mn,isSticky:rt.isSticky}}var cr=Te.createContext({}),it=cr;function _e(Fn){var fr=Fn.className,Rn=Fn.index,rt=Fn.children,jr=Fn.colSpan,Sr=jr===void 0?1:jr,zr=Fn.rowSpan,ni=Fn.align,pi=Qe(Ae,["prefixCls","direction"]),Er=pi.prefixCls,ft=pi.direction,En=Te.useContext(it),Mn=En.scrollColumnIndex,Xn=En.stickyOffsets,Hn=En.flattenColumns,hr=Rn+Sr-1,$n=hr+1===Mn?Sr+1:Sr,cn=jn(Rn,Rn+$n-1,Hn,Xn,ft);return Te.createElement(Ot,(0,Ue.Z)({className:fr,index:Rn,component:"td",prefixCls:Er,record:null,dataIndex:null,align:ni,colSpan:$n,rowSpan:zr,render:function(){return rt}},cn))}var Re=ae(74416),Xe=["children"];function lt(Fn){var fr=Fn.children,Rn=(0,Re.Z)(Fn,Xe);return Te.createElement("tr",Rn,fr)}function Be(Fn){var fr=Fn.children;return fr}Be.Row=lt,Be.Cell=_e;var bt=Be;function Wt(Fn){var fr=Fn.children,Rn=Fn.stickyOffsets,rt=Fn.flattenColumns,jr=Qe(Ae,"prefixCls"),Sr=rt.length-1,zr=rt[Sr],ni=Te.useMemo(function(){return{stickyOffsets:Rn,flattenColumns:rt,scrollColumnIndex:zr!=null&&zr.scrollbar?Sr:null}},[zr,rt,Sr,Rn]);return Te.createElement(it.Provider,{value:ni},Te.createElement("tfoot",{className:"".concat(jr,"-summary")},fr))}var yn=fe(Wt),On=bt,Pt=ae(29301),Vt=ae(29194),zt=ae(24514),pn=ae(75152),Tn=ae(26112);function gn(Fn,fr,Rn,rt,jr,Sr,zr){Fn.push({record:fr,indent:Rn,index:zr});var ni=Sr(fr),pi=jr==null?void 0:jr.has(ni);if(fr&&Array.isArray(fr[rt])&&pi)for(var Er=0;Er<fr[rt].length;Er+=1)gn(Fn,fr[rt][Er],Rn+1,rt,jr,Sr,Er)}function Mt(Fn,fr,Rn,rt){var jr=Te.useMemo(function(){if(Rn!=null&&Rn.size){for(var Sr=[],zr=0;zr<(Fn==null?void 0:Fn.length);zr+=1){var ni=Fn[zr];gn(Sr,ni,0,fr,Rn,rt,zr)}return Sr}return Fn==null?void 0:Fn.map(function(pi,Er){return{record:pi,indent:0,index:Er}})},[Fn,fr,Rn,rt]);return jr}function Un(Fn,fr,Rn,rt){var jr=Qe(Ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Sr=jr.flattenColumns,zr=jr.expandableType,ni=jr.expandedKeys,pi=jr.childrenColumnName,Er=jr.onTriggerExpand,ft=jr.rowExpandable,En=jr.onRow,Mn=jr.expandRowByClick,Xn=jr.rowClassName,Hn=zr==="nest",hr=zr==="row"&&(!ft||ft(Fn)),$n=hr||Hn,cn=ni&&ni.has(fr),Kn=pi&&Fn&&Fn[pi],Gr=(0,_n.zX)(Er),Li=En==null?void 0:En(Fn,Rn),mi=Li==null?void 0:Li.onClick,gi=function(So){Mn&&$n&&Er(Fn,So);for(var na=arguments.length,An=new Array(na>1?na-1:0),so=1;so<na;so++)An[so-1]=arguments[so];mi==null||mi.apply(void 0,[So].concat(An))},Ri;typeof Xn=="string"?Ri=Xn:typeof Xn=="function"&&(Ri=Xn(Fn,Rn,rt));var Oi=gt(Sr);return(0,ot.Z)((0,ot.Z)({},jr),{},{columnsKey:Oi,nestExpandable:Hn,expanded:cn,hasNestChildren:Kn,record:Fn,onTriggerExpand:Gr,rowSupportExpand:hr,expandable:$n,rowProps:(0,ot.Z)((0,ot.Z)({},Li),{},{className:vt()(Ri,Li==null?void 0:Li.className),onClick:gi})})}function Yt(Fn){var fr=Fn.prefixCls,Rn=Fn.children,rt=Fn.component,jr=Fn.cellComponent,Sr=Fn.className,zr=Fn.expanded,ni=Fn.colSpan,pi=Fn.isEmpty,Er=Qe(Ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ft=Er.scrollbarSize,En=Er.fixHeader,Mn=Er.fixColumn,Xn=Er.componentWidth,Hn=Er.horizonScroll,hr=Rn;return(pi?Hn&&Xn:Mn)&&(hr=Te.createElement("div",{style:{width:Xn-(En&&!pi?ft:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(fr,"-expanded-row-fixed")},hr)),Te.createElement(rt,{className:Sr,style:{display:zr?null:"none"}},Te.createElement(Ot,{component:jr,prefixCls:fr,colSpan:ni},hr))}var on=Yt;function mn(Fn){var fr=Fn.prefixCls,Rn=Fn.record,rt=Fn.onExpand,jr=Fn.expanded,Sr=Fn.expandable,zr="".concat(fr,"-row-expand-icon");if(!Sr)return Te.createElement("span",{className:vt()(zr,"".concat(fr,"-row-spaced"))});var ni=function(Er){rt(Rn,Er),Er.stopPropagation()};return Te.createElement("span",{className:vt()(zr,(0,mt.Z)((0,mt.Z)({},"".concat(fr,"-row-expanded"),jr),"".concat(fr,"-row-collapsed"),!jr)),onClick:ni})}function er(Fn,fr,Rn){var rt=[];function jr(Sr){(Sr||[]).forEach(function(zr,ni){rt.push(fr(zr,ni)),jr(zr[Rn])})}return jr(Fn),rt}function Sn(Fn,fr,Rn,rt){return typeof Fn=="string"?Fn:typeof Fn=="function"?Fn(fr,Rn,rt):""}function ht(Fn,fr,Rn,rt,jr){var Sr=Fn.record,zr=Fn.prefixCls,ni=Fn.columnsKey,pi=Fn.fixedInfoList,Er=Fn.expandIconColumnIndex,ft=Fn.nestExpandable,En=Fn.indentSize,Mn=Fn.expandIcon,Xn=Fn.expanded,Hn=Fn.hasNestChildren,hr=Fn.onTriggerExpand,$n=ni[Rn],cn=pi[Rn],Kn;Rn===(Er||0)&&ft&&(Kn=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(En*rt,"px")},className:"".concat(zr,"-row-indent indent-level-").concat(rt)}),Mn({prefixCls:zr,expanded:Xn,expandable:Hn,record:Sr,onExpand:hr})));var Gr;return fr.onCell&&(Gr=fr.onCell(Sr,jr)),{key:$n,fixedInfo:cn,appendCellNode:Kn,additionalCellProps:Gr||{}}}function tr(Fn){var fr=Fn.className,Rn=Fn.style,rt=Fn.record,jr=Fn.index,Sr=Fn.renderIndex,zr=Fn.rowKey,ni=Fn.indent,pi=ni===void 0?0:ni,Er=Fn.rowComponent,ft=Fn.cellComponent,En=Fn.scopeCellComponent,Mn=Un(rt,zr,jr,pi),Xn=Mn.prefixCls,Hn=Mn.flattenColumns,hr=Mn.expandedRowClassName,$n=Mn.expandedRowRender,cn=Mn.rowProps,Kn=Mn.expanded,Gr=Mn.rowSupportExpand,Li=Te.useRef(!1);Li.current||(Li.current=Kn);var mi=Sn(hr,rt,jr,pi),gi=Te.createElement(Er,(0,Ue.Z)({},cn,{"data-row-key":zr,className:vt()(fr,"".concat(Xn,"-row"),"".concat(Xn,"-row-level-").concat(pi),cn==null?void 0:cn.className,(0,mt.Z)({},mi,pi>=1)),style:(0,ot.Z)((0,ot.Z)({},Rn),cn==null?void 0:cn.style)}),Hn.map(function(lo,So){var na=lo.render,An=lo.dataIndex,so=lo.className,Do=ht(Mn,lo,So,pi,jr),Wi=Do.key,ho=Do.fixedInfo,Ki=Do.appendCellNode,da=Do.additionalCellProps;return Te.createElement(Ot,(0,Ue.Z)({className:so,ellipsis:lo.ellipsis,align:lo.align,scope:lo.rowScope,component:lo.rowScope?En:ft,prefixCls:Xn,key:Wi,record:rt,index:jr,renderIndex:Sr,dataIndex:An,render:na,shouldCellUpdate:lo.shouldCellUpdate},ho,{appendNode:Ki,additionalProps:da}))})),Ri;if(Gr&&(Li.current||Kn)){var Oi=$n(rt,jr,pi+1,Kn);Ri=Te.createElement(on,{expanded:Kn,className:vt()("".concat(Xn,"-expanded-row"),"".concat(Xn,"-expanded-row-level-").concat(pi+1),mi),prefixCls:Xn,component:Er,cellComponent:ft,colSpan:Hn.length,isEmpty:!1},Oi)}return Te.createElement(Te.Fragment,null,gi,Ri)}var lr=fe(tr);function qt(Fn){var fr=Fn.columnKey,Rn=Fn.onColumnResize,rt=Te.useRef();return Te.useEffect(function(){rt.current&&Rn(fr,rt.current.offsetWidth)},[]),Te.createElement(Pt.Z,{data:fr},Te.createElement("td",{ref:rt,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function yr(Fn){var fr=Fn.prefixCls,Rn=Fn.columnsKey,rt=Fn.onColumnResize;return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(fr,"-measure-row"),style:{height:0,fontSize:0}},Te.createElement(Pt.Z.Collection,{onBatchResize:function(Sr){Sr.forEach(function(zr){var ni=zr.data,pi=zr.size;rt(ni,pi.offsetWidth)})}},Rn.map(function(jr){return Te.createElement(qt,{key:jr,columnKey:jr,onColumnResize:rt})})))}function ri(Fn){var fr=Fn.data,Rn=Fn.measureColumnWidth,rt=Qe(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),jr=rt.prefixCls,Sr=rt.getComponent,zr=rt.onColumnResize,ni=rt.flattenColumns,pi=rt.getRowKey,Er=rt.expandedKeys,ft=rt.childrenColumnName,En=rt.emptyNode,Mn=Mt(fr,ft,Er,pi),Xn=Te.useRef({renderWithProps:!1}),Hn=Sr(["body","wrapper"],"tbody"),hr=Sr(["body","row"],"tr"),$n=Sr(["body","cell"],"td"),cn=Sr(["body","cell"],"th"),Kn;fr.length?Kn=Mn.map(function(Li,mi){var gi=Li.record,Ri=Li.indent,Oi=Li.index,lo=pi(gi,mi);return Te.createElement(lr,{key:lo,rowKey:lo,record:gi,index:mi,renderIndex:Oi,rowComponent:hr,cellComponent:$n,scopeCellComponent:cn,indent:Ri})}):Kn=Te.createElement(on,{expanded:!0,className:"".concat(jr,"-placeholder"),prefixCls:jr,component:hr,cellComponent:$n,colSpan:ni.length,isEmpty:!0},En);var Gr=gt(ni);return Te.createElement(Zt.Provider,{value:Xn.current},Te.createElement(Hn,{className:"".concat(jr,"-tbody")},Rn&&Te.createElement(yr,{prefixCls:jr,columnsKey:Gr,onColumnResize:zr}),Kn))}var Or=fe(ri),Nn=ae(90494),ui=["columnType"];function $r(Fn){for(var fr=Fn.colWidths,Rn=Fn.columns,rt=Fn.columCount,jr=Qe(Ae,["tableLayout"]),Sr=jr.tableLayout,zr=[],ni=rt||Rn.length,pi=!1,Er=ni-1;Er>=0;Er-=1){var ft=fr[Er],En=Rn&&Rn[Er],Mn=void 0,Xn=void 0;if(En&&(Mn=En[Nn.v],Sr==="auto"&&(Xn=En.minWidth)),ft||Xn||Mn||pi){var Hn=Mn||{},hr=Hn.columnType,$n=(0,Re.Z)(Hn,ui);zr.unshift(Te.createElement("col",(0,Ue.Z)({key:Er,style:{width:ft,minWidth:Xn}},$n))),pi=!0}}return Te.createElement("colgroup",null,zr)}var or=$r,Kr=ae(80702),oi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Me(Fn,fr){return(0,Te.useMemo)(function(){for(var Rn=[],rt=0;rt<fr;rt+=1){var jr=Fn[rt];if(jr!==void 0)Rn[rt]=jr;else return null}return Rn},[Fn.join("_"),fr])}var kr=Te.forwardRef(function(Fn,fr){var Rn=Fn.className,rt=Fn.noData,jr=Fn.columns,Sr=Fn.flattenColumns,zr=Fn.colWidths,ni=Fn.columCount,pi=Fn.stickyOffsets,Er=Fn.direction,ft=Fn.fixHeader,En=Fn.stickyTopOffset,Mn=Fn.stickyBottomOffset,Xn=Fn.stickyClassName,Hn=Fn.onScroll,hr=Fn.maxContentScroll,$n=Fn.children,cn=(0,Re.Z)(Fn,oi),Kn=Qe(Ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),Gr=Kn.prefixCls,Li=Kn.scrollbarSize,mi=Kn.isSticky,gi=Kn.getComponent,Ri=gi(["header","table"],"table"),Oi=mi&&!ft?0:Li,lo=Te.useRef(null),So=Te.useCallback(function(da){(0,St.mH)(fr,da),(0,St.mH)(lo,da)},[]);Te.useEffect(function(){var da;function Vn(Mo){var ia=Mo,Ps=ia.currentTarget,Fa=ia.deltaX;Fa&&(Hn({currentTarget:Ps,scrollLeft:Ps.scrollLeft+Fa}),Mo.preventDefault())}return(da=lo.current)===null||da===void 0||da.addEventListener("wheel",Vn,{passive:!1}),function(){var Mo;(Mo=lo.current)===null||Mo===void 0||Mo.removeEventListener("wheel",Vn)}},[]);var na=Te.useMemo(function(){return Sr.every(function(da){return da.width})},[Sr]),An=Sr[Sr.length-1],so={fixed:An?An.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Gr,"-cell-scrollbar")}}},Do=(0,Te.useMemo)(function(){return Oi?[].concat((0,Kr.Z)(jr),[so]):jr},[Oi,jr]),Wi=(0,Te.useMemo)(function(){return Oi?[].concat((0,Kr.Z)(Sr),[so]):Sr},[Oi,Sr]),ho=(0,Te.useMemo)(function(){var da=pi.right,Vn=pi.left;return(0,ot.Z)((0,ot.Z)({},pi),{},{left:Er==="rtl"?[].concat((0,Kr.Z)(Vn.map(function(Mo){return Mo+Oi})),[0]):Vn,right:Er==="rtl"?da:[].concat((0,Kr.Z)(da.map(function(Mo){return Mo+Oi})),[0]),isSticky:mi})},[Oi,pi,mi]),Ki=Me(zr,ni);return Te.createElement("div",{style:(0,ot.Z)({overflow:"hidden"},mi?{top:En,bottom:Mn}:{}),ref:So,className:vt()(Rn,(0,mt.Z)({},Xn,!!Xn))},Te.createElement(Ri,{style:{tableLayout:"fixed",visibility:rt||Ki?null:"hidden"}},(!rt||!hr||na)&&Te.createElement(or,{colWidths:Ki?[].concat((0,Kr.Z)(Ki),[Oi]):[],columCount:ni+1,columns:Wi}),$n((0,ot.Z)((0,ot.Z)({},cn),{},{stickyOffsets:ho,columns:Do,flattenColumns:Wi}))))}),Pr=Te.memo(kr),ei=function(fr){var Rn=fr.cells,rt=fr.stickyOffsets,jr=fr.flattenColumns,Sr=fr.rowComponent,zr=fr.cellComponent,ni=fr.onHeaderRow,pi=fr.index,Er=Qe(Ae,["prefixCls","direction"]),ft=Er.prefixCls,En=Er.direction,Mn;ni&&(Mn=ni(Rn.map(function(Hn){return Hn.column}),pi));var Xn=gt(Rn.map(function(Hn){return Hn.column}));return Te.createElement(Sr,Mn,Rn.map(function(Hn,hr){var $n=Hn.column,cn=jn(Hn.colStart,Hn.colEnd,jr,rt,En),Kn;return $n&&$n.onHeaderCell&&(Kn=Hn.column.onHeaderCell($n)),Te.createElement(Ot,(0,Ue.Z)({},Hn,{scope:$n.title?Hn.colSpan>1?"colgroup":"col":null,ellipsis:$n.ellipsis,align:$n.align,component:zr,prefixCls:ft,key:Xn[hr]},cn,{additionalProps:Kn,rowType:"header"}))}))},Ii=ei;function Di(Fn){var fr=[];function Rn(zr,ni){var pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;fr[pi]=fr[pi]||[];var Er=ni,ft=zr.filter(Boolean).map(function(En){var Mn={key:En.key,className:En.className||"",children:En.title,column:En,colStart:Er},Xn=1,Hn=En.children;return Hn&&Hn.length>0&&(Xn=Rn(Hn,Er,pi+1).reduce(function(hr,$n){return hr+$n},0),Mn.hasSubColumns=!0),"colSpan"in En&&(Xn=En.colSpan),"rowSpan"in En&&(Mn.rowSpan=En.rowSpan),Mn.colSpan=Xn,Mn.colEnd=Mn.colStart+Xn-1,fr[pi].push(Mn),Er+=Xn,Xn});return ft}Rn(Fn,0);for(var rt=fr.length,jr=function(ni){fr[ni].forEach(function(pi){!("rowSpan"in pi)&&!pi.hasSubColumns&&(pi.rowSpan=rt-ni)})},Sr=0;Sr<rt;Sr+=1)jr(Sr);return fr}var Ti=function(fr){var Rn=fr.stickyOffsets,rt=fr.columns,jr=fr.flattenColumns,Sr=fr.onHeaderRow,zr=Qe(Ae,["prefixCls","getComponent"]),ni=zr.prefixCls,pi=zr.getComponent,Er=Te.useMemo(function(){return Di(rt)},[rt]),ft=pi(["header","wrapper"],"thead"),En=pi(["header","row"],"tr"),Mn=pi(["header","cell"],"th");return Te.createElement(ft,{className:"".concat(ni,"-thead")},Er.map(function(Xn,Hn){var hr=Te.createElement(Ii,{key:Hn,flattenColumns:jr,cells:Xn,stickyOffsets:Rn,rowComponent:En,cellComponent:Mn,onHeaderRow:Sr,index:Hn});return hr}))},Vr=fe(Ti),Fr=ae(78612);function dn(Fn,fr,Rn){var rt=(0,Nn.g)(Fn),jr=rt.expandIcon,Sr=rt.expandedRowKeys,zr=rt.defaultExpandedRowKeys,ni=rt.defaultExpandAllRows,pi=rt.expandedRowRender,Er=rt.onExpand,ft=rt.onExpandedRowsChange,En=rt.childrenColumnName,Mn=jr||mn,Xn=En||"children",Hn=Te.useMemo(function(){return pi?"row":Fn.expandable&&Fn.internalHooks===oe.R&&Fn.expandable.__PARENT_RENDER_ICON__||fr.some(function(mi){return mi&&(0,qe.Z)(mi)==="object"&&mi[Xn]})?"nest":!1},[!!pi,fr]),hr=Te.useState(function(){return zr||(ni?er(fr,Rn,Xn):[])}),$n=(0,Pe.Z)(hr,2),cn=$n[0],Kn=$n[1],Gr=Te.useMemo(function(){return new Set(Sr||cn||[])},[Sr,cn]),Li=Te.useCallback(function(mi){var gi=Rn(mi,fr.indexOf(mi)),Ri,Oi=Gr.has(gi);Oi?(Gr.delete(gi),Ri=(0,Kr.Z)(Gr)):Ri=[].concat((0,Kr.Z)(Gr),[gi]),Kn(Ri),Er&&Er(!Oi,mi),ft&&ft(Ri)},[Rn,Gr,fr,Er,ft]);return[rt,Hn,Gr,Mn,Xn,Li]}function hn(Fn,fr,Rn){var rt=Fn.map(function(jr,Sr){return jn(Sr,Sr,Fn,fr,Rn)});return(0,wt.Z)(function(){return rt},[rt],function(jr,Sr){return!(0,Ve.Z)(jr,Sr)})}function un(Fn){var fr=(0,Te.useRef)(Fn),Rn=(0,Te.useState)({}),rt=(0,Pe.Z)(Rn,2),jr=rt[1],Sr=(0,Te.useRef)(null),zr=(0,Te.useRef)([]);function ni(pi){zr.current.push(pi);var Er=Promise.resolve();Sr.current=Er,Er.then(function(){if(Sr.current===Er){var ft=zr.current,En=fr.current;zr.current=[],ft.forEach(function(Mn){fr.current=Mn(fr.current)}),Sr.current=null,En!==fr.current&&jr({})}})}return(0,Te.useEffect)(function(){return function(){Sr.current=null}},[]),[fr.current,ni]}function Ur(Fn){var fr=(0,Te.useRef)(Fn||null),Rn=(0,Te.useRef)();function rt(){window.clearTimeout(Rn.current)}function jr(zr){fr.current=zr,rt(),Rn.current=window.setTimeout(function(){fr.current=null,Rn.current=void 0},100)}function Sr(){return fr.current}return(0,Te.useEffect)(function(){return rt},[]),[jr,Sr]}function Tr(){var Fn=Te.useState(-1),fr=(0,Pe.Z)(Fn,2),Rn=fr[0],rt=fr[1],jr=Te.useState(-1),Sr=(0,Pe.Z)(jr,2),zr=Sr[0],ni=Sr[1],pi=Te.useCallback(function(Er,ft){rt(Er),ni(ft)},[]);return[Rn,zr,pi]}var Zr=ae(47273),sr=(0,Zr.Z)()?window:null;function Rr(Fn,fr){var Rn=(0,qe.Z)(Fn)==="object"?Fn:{},rt=Rn.offsetHeader,jr=rt===void 0?0:rt,Sr=Rn.offsetSummary,zr=Sr===void 0?0:Sr,ni=Rn.offsetScroll,pi=ni===void 0?0:ni,Er=Rn.getContainer,ft=Er===void 0?function(){return sr}:Er,En=ft()||sr,Mn=!!Fn;return Te.useMemo(function(){return{isSticky:Mn,stickyClassName:Mn?"".concat(fr,"-sticky-holder"):"",offsetHeader:jr,offsetSummary:zr,offsetScroll:pi,container:En}},[Mn,pi,jr,zr,fr,En])}function Cn(Fn,fr,Rn){var rt=(0,Te.useMemo)(function(){var jr=fr.length,Sr=function(Er,ft,En){for(var Mn=[],Xn=0,Hn=Er;Hn!==ft;Hn+=En)Mn.push(Xn),fr[Hn].fixed&&(Xn+=Fn[Hn]||0);return Mn},zr=Sr(0,jr,1),ni=Sr(jr-1,-1,-1).reverse();return Rn==="rtl"?{left:ni,right:zr}:{left:zr,right:ni}},[Fn,fr,Rn]);return rt}var fn=Cn;function Wr(Fn){var fr=Fn.className,Rn=Fn.children;return Te.createElement("div",{className:fr},Rn)}var kt=Wr,Gn=ae(8224),vr=ae(16089),Qr=ae(76846);function nn(Fn){var fr=(0,Qr.bn)(Fn),Rn=fr.getBoundingClientRect(),rt=document.documentElement;return{left:Rn.left+(window.pageXOffset||rt.scrollLeft)-(rt.clientLeft||document.body.clientLeft||0),top:Rn.top+(window.pageYOffset||rt.scrollTop)-(rt.clientTop||document.body.clientTop||0)}}var Qn=function(fr,Rn){var rt,jr,Sr=fr.scrollBodyRef,zr=fr.onScroll,ni=fr.offsetScroll,pi=fr.container,Er=fr.direction,ft=Qe(Ae,"prefixCls"),En=((rt=Sr.current)===null||rt===void 0?void 0:rt.scrollWidth)||0,Mn=((jr=Sr.current)===null||jr===void 0?void 0:jr.clientWidth)||0,Xn=En&&Mn*(Mn/En),Hn=Te.useRef(),hr=un({scrollLeft:0,isHiddenScrollBar:!0}),$n=(0,Pe.Z)(hr,2),cn=$n[0],Kn=$n[1],Gr=Te.useRef({delta:0,x:0}),Li=Te.useState(!1),mi=(0,Pe.Z)(Li,2),gi=mi[0],Ri=mi[1],Oi=Te.useRef(null);Te.useEffect(function(){return function(){vr.Z.cancel(Oi.current)}},[]);var lo=function(){Ri(!1)},So=function(Wi){Wi.persist(),Gr.current.delta=Wi.pageX-cn.scrollLeft,Gr.current.x=0,Ri(!0),Wi.preventDefault()},na=function(Wi){var ho,Ki=Wi||((ho=window)===null||ho===void 0?void 0:ho.event),da=Ki.buttons;if(!gi||da===0){gi&&Ri(!1);return}var Vn=Gr.current.x+Wi.pageX-Gr.current.x-Gr.current.delta,Mo=Er==="rtl";Vn=Math.max(Mo?Xn-Mn:0,Math.min(Mo?0:Mn-Xn,Vn));var ia=!Mo||Math.abs(Vn)+Math.abs(Xn)<Mn;ia&&(zr({scrollLeft:Vn/Mn*(En+2)}),Gr.current.x=Wi.pageX)},An=function(){vr.Z.cancel(Oi.current),Oi.current=(0,vr.Z)(function(){if(Sr.current){var Wi=nn(Sr.current).top,ho=Wi+Sr.current.offsetHeight,Ki=pi===window?document.documentElement.scrollTop+window.innerHeight:nn(pi).top+pi.clientHeight;ho-(0,pn.Z)()<=Ki||Wi>=Ki-ni?Kn(function(da){return(0,ot.Z)((0,ot.Z)({},da),{},{isHiddenScrollBar:!0})}):Kn(function(da){return(0,ot.Z)((0,ot.Z)({},da),{},{isHiddenScrollBar:!1})})}})},so=function(Wi){Kn(function(ho){return(0,ot.Z)((0,ot.Z)({},ho),{},{scrollLeft:Wi/En*Mn||0})})};return Te.useImperativeHandle(Rn,function(){return{setScrollLeft:so,checkScrollBarVisible:An}}),Te.useEffect(function(){var Do=(0,Gn.Z)(document.body,"mouseup",lo,!1),Wi=(0,Gn.Z)(document.body,"mousemove",na,!1);return An(),function(){Do.remove(),Wi.remove()}},[Xn,gi]),Te.useEffect(function(){if(Sr.current){for(var Do=[],Wi=(0,Qr.bn)(Sr.current);Wi;)Do.push(Wi),Wi=Wi.parentElement;return Do.forEach(function(ho){return ho.addEventListener("scroll",An,!1)}),window.addEventListener("resize",An,!1),window.addEventListener("scroll",An,!1),pi.addEventListener("scroll",An,!1),function(){Do.forEach(function(ho){return ho.removeEventListener("scroll",An)}),window.removeEventListener("resize",An),window.removeEventListener("scroll",An),pi.removeEventListener("scroll",An)}}},[pi]),Te.useEffect(function(){cn.isHiddenScrollBar||Kn(function(Do){var Wi=Sr.current;return Wi?(0,ot.Z)((0,ot.Z)({},Do),{},{scrollLeft:Wi.scrollLeft/Wi.scrollWidth*Wi.clientWidth}):Do})},[cn.isHiddenScrollBar]),En<=Mn||!Xn||cn.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,pn.Z)(),width:Mn,bottom:ni},className:"".concat(ft,"-sticky-scroll")},Te.createElement("div",{onMouseDown:So,ref:Hn,className:vt()("".concat(ft,"-sticky-scroll-bar"),(0,mt.Z)({},"".concat(ft,"-sticky-scroll-bar-active"),gi)),style:{width:"".concat(Xn,"px"),transform:"translate3d(".concat(cn.scrollLeft,"px, 0, 0)")}}))},Dn=Te.forwardRef(Qn);function xn(Fn){return null}var Ge=xn;function Jr(Fn){return null}var Hr=Jr,Jn="rc-table",hi=[],ti={};function Si(){return"No Data"}function nr(Fn,fr){var Rn=(0,ot.Z)({rowKey:"key",prefixCls:Jn,emptyText:Si},Fn),rt=Rn.prefixCls,jr=Rn.className,Sr=Rn.rowClassName,zr=Rn.style,ni=Rn.data,pi=Rn.rowKey,Er=Rn.scroll,ft=Rn.tableLayout,En=Rn.direction,Mn=Rn.title,Xn=Rn.footer,Hn=Rn.summary,hr=Rn.caption,$n=Rn.id,cn=Rn.showHeader,Kn=Rn.components,Gr=Rn.emptyText,Li=Rn.onRow,mi=Rn.onHeaderRow,gi=Rn.onScroll,Ri=Rn.internalHooks,Oi=Rn.transformColumns,lo=Rn.internalRefs,So=Rn.tailor,na=Rn.getContainerWidth,An=Rn.sticky,so=Rn.rowHoverable,Do=so===void 0?!0:so,Wi=ni||hi,ho=!!Wi.length,Ki=Ri===oe.R,da=Te.useCallback(function(jo,ha){return(0,At.Z)(Kn,jo)||ha},[Kn]),Vn=Te.useMemo(function(){return typeof pi=="function"?pi:function(jo){var ha=jo&&jo[pi];return ha}},[pi]),Mo=da(["body"]),ia=Tr(),Ps=(0,Pe.Z)(ia,3),Fa=Ps[0],Gs=Ps[1],gs=Ps[2],Qi=dn(Rn,Wi,Vn),ca=(0,Pe.Z)(Qi,6),Ba=ca[0],is=ca[1],To=ca[2],Ao=ca[3],_r=ca[4],to=ca[5],No=Er==null?void 0:Er.x,ba=Te.useState(0),os=(0,Pe.Z)(ba,2),ms=os[0],uo=os[1],_a=(0,Fr.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({},Rn),Ba),{},{expandable:!!Ba.expandedRowRender,columnTitle:Ba.columnTitle,expandedKeys:To,getRowKey:Vn,onTriggerExpand:to,expandIcon:Ao,expandIconColumnIndex:Ba.expandIconColumnIndex,direction:En,scrollWidth:Ki&&So&&typeof No=="number"?No:null,clientWidth:ms}),Ki?Oi:null),qa=(0,Pe.Z)(_a,4),pa=qa[0],ra=qa[1],Ca=qa[2],Ys=qa[3],oa=Ca!=null?Ca:No,as=Te.useMemo(function(){return{columns:pa,flattenColumns:ra}},[pa,ra]),Il=Te.useRef(),iu=Te.useRef(),Ua=Te.useRef(),jl=Te.useRef();Te.useImperativeHandle(fr,function(){return{nativeElement:Il.current,scrollTo:function(ha){var Ga;if(Ua.current instanceof HTMLElement){var Ns=ha.index,Ss=ha.top,Rl=ha.key;if(Jt(Ss)){var Pl;(Pl=Ua.current)===null||Pl===void 0||Pl.scrollTo({top:Ss})}else{var Ml,Tl=Rl!=null?Rl:Vn(Wi[Ns]);(Ml=Ua.current.querySelector('[data-row-key="'.concat(Tl,'"]')))===null||Ml===void 0||Ml.scrollIntoView()}}else(Ga=Ua.current)!==null&&Ga!==void 0&&Ga.scrollTo&&Ua.current.scrollTo(ha)}}});var sc=Te.useRef(),ou=Te.useState(!1),ss=(0,Pe.Z)(ou,2),cl=ss[0],au=ss[1],Vl=Te.useState(!1),Zu=(0,Pe.Z)(Vl,2),ts=Zu[0],lc=Zu[1],bc=un(new Map),Ou=(0,Pe.Z)(bc,2),Ku=Ou[0],Is=Ou[1],js=gt(ra),hs=js.map(function(jo){return Ku.get(jo)}),vs=Te.useMemo(function(){return hs},[hs.join("_")]),Sa=fn(vs,ra,En),Ho=Er&&ct(Er.y),Yo=Er&&ct(oa)||!!Ba.fixed,ys=Yo&&ra.some(function(jo){var ha=jo.fixed;return ha}),$a=Te.useRef(),za=Rr(An,rt),Ui=za.isSticky,Sl=za.offsetHeader,an=za.offsetSummary,Lr=za.offsetScroll,Eu=za.stickyClassName,Yu=za.container,fs=Te.useMemo(function(){return Hn==null?void 0:Hn(Wi)},[Hn,Wi]),Vs=(Ho||Ui)&&Te.isValidElement(fs)&&fs.type===bt&&fs.props.fixed,Dl,Xu,uc;Ho&&(Xu={overflowY:ho?"scroll":"auto",maxHeight:Er.y}),Yo&&(Dl={overflowX:"auto"},Ho||(Xu={overflowY:"hidden"}),uc={width:oa===!0?"auto":oa,minWidth:"100%"});var Va=Te.useCallback(function(jo,ha){(0,Vt.Z)(Il.current)&&Is(function(Ga){if(Ga.get(jo)!==ha){var Ns=new Map(Ga);return Ns.set(jo,ha),Ns}return Ga})},[]),wo=Ur(null),Ts=(0,Pe.Z)(wo,2),Ws=Ts[0],aa=Ts[1];function Wo(jo,ha){ha&&(typeof ha=="function"?ha(jo):ha.scrollLeft!==jo&&(ha.scrollLeft=jo,ha.scrollLeft!==jo&&setTimeout(function(){ha.scrollLeft=jo},0)))}var Ka=(0,Ie.Z)(function(jo){var ha=jo.currentTarget,Ga=jo.scrollLeft,Ns=En==="rtl",Ss=typeof Ga=="number"?Ga:ha.scrollLeft,Rl=ha||ti;if(!aa()||aa()===Rl){var Pl;Ws(Rl),Wo(Ss,iu.current),Wo(Ss,Ua.current),Wo(Ss,sc.current),Wo(Ss,(Pl=$a.current)===null||Pl===void 0?void 0:Pl.setScrollLeft)}var Ml=ha||iu.current;if(Ml){var Tl=Ki&&So&&typeof oa=="number"?oa:Ml.scrollWidth,uu=Ml.clientWidth;if(Tl===uu){au(!1),lc(!1);return}Ns?(au(-Ss<Tl-uu),lc(-Ss>0)):(au(Ss>0),lc(Ss<Tl-uu))}}),dl=(0,Ie.Z)(function(jo){Ka(jo),gi==null||gi(jo)}),Ia=function(){if(Yo&&Ua.current){var ha;Ka({currentTarget:(0,Qr.bn)(Ua.current),scrollLeft:(ha=Ua.current)===null||ha===void 0?void 0:ha.scrollLeft})}else au(!1),lc(!1)},bl=function(ha){var Ga,Ns=ha.width;(Ga=$a.current)===null||Ga===void 0||Ga.checkScrollBarVisible();var Ss=Il.current?Il.current.offsetWidth:Ns;Ki&&na&&Il.current&&(Ss=na(Il.current,Ss)||Ss),Ss!==ms&&(Ia(),uo(Ss))},As=Te.useRef(!1);Te.useEffect(function(){As.current&&Ia()},[Yo,ni,pa.length]),Te.useEffect(function(){As.current=!0},[]);var Fu=Te.useState(0),ga=(0,Pe.Z)(Fu,2),Ds=ga[0],sa=ga[1],Ta=Te.useState(!0),ka=(0,Pe.Z)(Ta,2),Wa=ka[0],$o=ka[1];Te.useEffect(function(){(!So||!Ki)&&(Ua.current instanceof Element?sa((0,pn.o)(Ua.current).width):sa((0,pn.o)(jl.current).width)),$o((0,zt.G)("position","sticky"))},[]),Te.useEffect(function(){Ki&&lo&&(lo.body.current=Ua.current)});var cc=Te.useCallback(function(jo){return Te.createElement(Te.Fragment,null,Te.createElement(Vr,jo),Vs==="top"&&Te.createElement(yn,jo,fs))},[Vs,fs]),vo=Te.useCallback(function(jo){return Te.createElement(yn,jo,fs)},[fs]),dd=da(["table"],"table"),ta=Te.useMemo(function(){return ft||(ys?oa==="max-content"?"auto":"fixed":Ho||Ui||ra.some(function(jo){var ha=jo.ellipsis;return ha})?"fixed":"auto")},[Ho,ys,ra,ft,Ui]),Vc,xu={colWidths:vs,columCount:ra.length,stickyOffsets:Sa,onHeaderRow:mi,fixHeader:Ho,scroll:Er},su=Te.useMemo(function(){return ho?null:typeof Gr=="function"?Gr():Gr},[ho,Gr]),Wc=Te.createElement(Or,{data:Wi,measureColumnWidth:Ho||Yo||Ui}),Ec=Te.createElement(or,{colWidths:ra.map(function(jo){var ha=jo.width;return ha}),columns:ra}),lu=hr!=null?Te.createElement("caption",{className:"".concat(rt,"-caption")},hr):void 0,Wl=(0,Tn.Z)(Rn,{data:!0}),la=(0,Tn.Z)(Rn,{aria:!0});if(Ho||Ui){var Xs;typeof Mo=="function"?(Xs=Mo(Wi,{scrollbarSize:Ds,ref:Ua,onScroll:Ka}),xu.colWidths=ra.map(function(jo,ha){var Ga=jo.width,Ns=ha===ra.length-1?Ga-Ds:Ga;return typeof Ns=="number"&&!Number.isNaN(Ns)?Ns:0})):Xs=Te.createElement("div",{style:(0,ot.Z)((0,ot.Z)({},Dl),Xu),onScroll:dl,ref:Ua,className:vt()("".concat(rt,"-body"))},Te.createElement(dd,(0,Ue.Z)({style:(0,ot.Z)((0,ot.Z)({},uc),{},{tableLayout:ta})},la),lu,Ec,Wc,!Vs&&fs&&Te.createElement(yn,{stickyOffsets:Sa,flattenColumns:ra},fs)));var Bu=(0,ot.Z)((0,ot.Z)((0,ot.Z)({noData:!Wi.length,maxContentScroll:Yo&&oa==="max-content"},xu),as),{},{direction:En,stickyClassName:Eu,onScroll:Ka});Vc=Te.createElement(Te.Fragment,null,cn!==!1&&Te.createElement(Pr,(0,Ue.Z)({},Bu,{stickyTopOffset:Sl,className:"".concat(rt,"-header"),ref:iu}),cc),Xs,Vs&&Vs!=="top"&&Te.createElement(Pr,(0,Ue.Z)({},Bu,{stickyBottomOffset:an,className:"".concat(rt,"-summary"),ref:sc}),vo),Ui&&Ua.current&&Ua.current instanceof Element&&Te.createElement(Dn,{ref:$a,offsetScroll:Lr,scrollBodyRef:Ua,onScroll:Ka,container:Yu,direction:En}))}else Vc=Te.createElement("div",{style:(0,ot.Z)((0,ot.Z)({},Dl),Xu),className:vt()("".concat(rt,"-content")),onScroll:Ka,ref:Ua},Te.createElement(dd,(0,Ue.Z)({style:(0,ot.Z)((0,ot.Z)({},uc),{},{tableLayout:ta})},la),lu,Ec,cn!==!1&&Te.createElement(Vr,(0,Ue.Z)({},xu,as)),Wc,fs&&Te.createElement(yn,{stickyOffsets:Sa,flattenColumns:ra},fs)));var hl=Te.createElement("div",(0,Ue.Z)({className:vt()(rt,jr,(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)({},"".concat(rt,"-rtl"),En==="rtl"),"".concat(rt,"-ping-left"),cl),"".concat(rt,"-ping-right"),ts),"".concat(rt,"-layout-fixed"),ft==="fixed"),"".concat(rt,"-fixed-header"),Ho),"".concat(rt,"-fixed-column"),ys),"".concat(rt,"-fixed-column-gapped"),ys&&Ys),"".concat(rt,"-scroll-horizontal"),Yo),"".concat(rt,"-has-fix-left"),ra[0]&&ra[0].fixed),"".concat(rt,"-has-fix-right"),ra[ra.length-1]&&ra[ra.length-1].fixed==="right")),style:zr,id:$n,ref:Il},Wl),Mn&&Te.createElement(kt,{className:"".concat(rt,"-title")},Mn(Wi)),Te.createElement("div",{ref:jl,className:"".concat(rt,"-container")},Vc),Xn&&Te.createElement(kt,{className:"".concat(rt,"-footer")},Xn(Wi)));Yo&&(hl=Te.createElement(Pt.Z,{onResize:bl},hl));var Zl=hn(ra,Sa,En),rl=Te.useMemo(function(){return{scrollX:oa,prefixCls:rt,getComponent:da,scrollbarSize:Ds,direction:En,fixedInfoList:Zl,isSticky:Ui,supportSticky:Wa,componentWidth:ms,fixHeader:Ho,fixColumn:ys,horizonScroll:Yo,tableLayout:ta,rowClassName:Sr,expandedRowClassName:Ba.expandedRowClassName,expandIcon:Ao,expandableType:is,expandRowByClick:Ba.expandRowByClick,expandedRowRender:Ba.expandedRowRender,onTriggerExpand:to,expandIconColumnIndex:Ba.expandIconColumnIndex,indentSize:Ba.indentSize,allColumnsFixedLeft:ra.every(function(jo){return jo.fixed==="left"}),emptyNode:su,columns:pa,flattenColumns:ra,onColumnResize:Va,hoverStartRow:Fa,hoverEndRow:Gs,onHover:gs,rowExpandable:Ba.rowExpandable,onRow:Li,getRowKey:Vn,expandedKeys:To,childrenColumnName:_r,rowHoverable:Do}},[oa,rt,da,Ds,En,Zl,Ui,Wa,ms,Ho,ys,Yo,ta,Sr,Ba.expandedRowClassName,Ao,is,Ba.expandRowByClick,Ba.expandedRowRender,to,Ba.expandIconColumnIndex,Ba.indentSize,su,pa,ra,Va,Fa,Gs,gs,Ba.rowExpandable,Li,Vn,To,_r,Do]);return Te.createElement(Ae.Provider,{value:rl},hl)}var vn=Te.forwardRef(nr);function xi(Fn){return ue(vn,Fn)}var zi=xi();zi.EXPAND_COLUMN=oe.w,zi.INTERNAL_HOOKS=oe.R,zi.Column=Ge,zi.ColumnGroup=Hr,zi.Summary=On;var Ln=zi,Xr=ae(45680),fi=st(null),wi=st(null);function ai(Fn,fr,Rn){var rt=fr||1;return Rn[Fn+rt]-(Rn[Fn]||0)}function Ni(Fn){var fr=Fn.rowInfo,Rn=Fn.column,rt=Fn.colIndex,jr=Fn.indent,Sr=Fn.index,zr=Fn.component,ni=Fn.renderIndex,pi=Fn.record,Er=Fn.style,ft=Fn.className,En=Fn.inverse,Mn=Fn.getHeight,Xn=Rn.render,Hn=Rn.dataIndex,hr=Rn.className,$n=Rn.width,cn=Qe(wi,["columnsOffset"]),Kn=cn.columnsOffset,Gr=ht(fr,Rn,rt,jr,Sr),Li=Gr.key,mi=Gr.fixedInfo,gi=Gr.appendCellNode,Ri=Gr.additionalCellProps,Oi=Ri.style,lo=Ri.colSpan,So=lo===void 0?1:lo,na=Ri.rowSpan,An=na===void 0?1:na,so=rt-1,Do=ai(so,So,Kn),Wi=So>1?$n-Do:0,ho=(0,ot.Z)((0,ot.Z)((0,ot.Z)({},Oi),Er),{},{flex:"0 0 ".concat(Do,"px"),width:"".concat(Do,"px"),marginRight:Wi,pointerEvents:"auto"}),Ki=Te.useMemo(function(){return En?An<=1:So===0||An===0||An>1},[An,So,En]);Ki?ho.visibility="hidden":En&&(ho.height=Mn==null?void 0:Mn(An));var da=Ki?function(){return null}:Xn,Vn={};return(An===0||So===0)&&(Vn.rowSpan=1,Vn.colSpan=1),Te.createElement(Ot,(0,Ue.Z)({className:vt()(hr,ft),ellipsis:Rn.ellipsis,align:Rn.align,scope:Rn.rowScope,component:zr,prefixCls:fr.prefixCls,key:Li,record:pi,index:Sr,renderIndex:ni,dataIndex:Hn,render:da,shouldCellUpdate:Rn.shouldCellUpdate},mi,{appendNode:gi,additionalProps:(0,ot.Z)((0,ot.Z)({},Ri),{},{style:ho},Vn)}))}var Xi=Ni,Vi=["data","index","className","rowKey","style","extra","getHeight"],Bi=Te.forwardRef(function(Fn,fr){var Rn=Fn.data,rt=Fn.index,jr=Fn.className,Sr=Fn.rowKey,zr=Fn.style,ni=Fn.extra,pi=Fn.getHeight,Er=(0,Re.Z)(Fn,Vi),ft=Rn.record,En=Rn.indent,Mn=Rn.index,Xn=Qe(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Hn=Xn.scrollX,hr=Xn.flattenColumns,$n=Xn.prefixCls,cn=Xn.fixColumn,Kn=Xn.componentWidth,Gr=Qe(fi,["getComponent"]),Li=Gr.getComponent,mi=Un(ft,Sr,rt,En),gi=Li(["body","row"],"div"),Ri=Li(["body","cell"],"div"),Oi=mi.rowSupportExpand,lo=mi.expanded,So=mi.rowProps,na=mi.expandedRowRender,An=mi.expandedRowClassName,so;if(Oi&&lo){var Do=na(ft,rt,En+1,lo),Wi=Sn(An,ft,rt,En),ho={};cn&&(ho={style:(0,mt.Z)({},"--virtual-width","".concat(Kn,"px"))});var Ki="".concat($n,"-expanded-row-cell");so=Te.createElement(gi,{className:vt()("".concat($n,"-expanded-row"),"".concat($n,"-expanded-row-level-").concat(En+1),Wi)},Te.createElement(Ot,{component:Ri,prefixCls:$n,className:vt()(Ki,(0,mt.Z)({},"".concat(Ki,"-fixed"),cn)),additionalProps:ho},Do))}var da=(0,ot.Z)((0,ot.Z)({},zr),{},{width:Hn});ni&&(da.position="absolute",da.pointerEvents="none");var Vn=Te.createElement(gi,(0,Ue.Z)({},So,Er,{"data-row-key":Sr,ref:Oi?null:fr,className:vt()(jr,"".concat($n,"-row"),So==null?void 0:So.className,(0,mt.Z)({},"".concat($n,"-row-extra"),ni)),style:(0,ot.Z)((0,ot.Z)({},da),So==null?void 0:So.style)}),hr.map(function(Mo,ia){return Te.createElement(Xi,{key:ia,component:Ri,rowInfo:mi,column:Mo,colIndex:ia,indent:En,index:rt,renderIndex:Mn,record:ft,inverse:ni,getHeight:pi})}));return Oi?Te.createElement("div",{ref:fr},Vn,so):Vn}),Hi=fe(Bi),rr=Hi,_i=Te.forwardRef(function(Fn,fr){var Rn=Fn.data,rt=Fn.onScroll,jr=Qe(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Sr=jr.flattenColumns,zr=jr.onColumnResize,ni=jr.getRowKey,pi=jr.expandedKeys,Er=jr.prefixCls,ft=jr.childrenColumnName,En=jr.scrollX,Mn=jr.direction,Xn=Qe(fi),Hn=Xn.sticky,hr=Xn.scrollY,$n=Xn.listItemHeight,cn=Xn.getComponent,Kn=Xn.onScroll,Gr=Te.useRef(),Li=Mt(Rn,ft,pi,ni),mi=Te.useMemo(function(){var so=0;return Sr.map(function(Do){var Wi=Do.width,ho=Do.key;return so+=Wi,[ho,Wi,so]})},[Sr]),gi=Te.useMemo(function(){return mi.map(function(so){return so[2]})},[mi]);Te.useEffect(function(){mi.forEach(function(so){var Do=(0,Pe.Z)(so,2),Wi=Do[0],ho=Do[1];zr(Wi,ho)})},[mi]),Te.useImperativeHandle(fr,function(){var so,Do={scrollTo:function(ho){var Ki;(Ki=Gr.current)===null||Ki===void 0||Ki.scrollTo(ho)},nativeElement:(so=Gr.current)===null||so===void 0?void 0:so.nativeElement};return Object.defineProperty(Do,"scrollLeft",{get:function(){var ho;return((ho=Gr.current)===null||ho===void 0?void 0:ho.getScrollInfo().x)||0},set:function(ho){var Ki;(Ki=Gr.current)===null||Ki===void 0||Ki.scrollTo({left:ho})}}),Do});var Ri=function(Do,Wi){var ho,Ki=(ho=Li[Wi])===null||ho===void 0?void 0:ho.record,da=Do.onCell;if(da){var Vn,Mo=da(Ki,Wi);return(Vn=Mo==null?void 0:Mo.rowSpan)!==null&&Vn!==void 0?Vn:1}return 1},Oi=function(Do){var Wi=Do.start,ho=Do.end,Ki=Do.getSize,da=Do.offsetY;if(ho<0)return null;for(var Vn=Sr.filter(function(Ao){return Ri(Ao,Wi)===0}),Mo=Wi,ia=function(_r){if(Vn=Vn.filter(function(to){return Ri(to,_r)===0}),!Vn.length)return Mo=_r,1},Ps=Wi;Ps>=0&&!ia(Ps);Ps-=1);for(var Fa=Sr.filter(function(Ao){return Ri(Ao,ho)!==1}),Gs=ho,gs=function(_r){if(Fa=Fa.filter(function(to){return Ri(to,_r)!==1}),!Fa.length)return Gs=Math.max(_r-1,ho),1},Qi=ho;Qi<Li.length&&!gs(Qi);Qi+=1);for(var ca=[],Ba=function(_r){var to=Li[_r];if(!to)return 1;Sr.some(function(No){return Ri(No,_r)>1})&&ca.push(_r)},is=Mo;is<=Gs;is+=1)Ba(is);var To=ca.map(function(Ao){var _r=Li[Ao],to=ni(_r.record,Ao),No=function(ms){var uo=Ao+ms-1,_a=ni(Li[uo].record,uo),qa=Ki(to,_a);return qa.bottom-qa.top},ba=Ki(to);return Te.createElement(rr,{key:Ao,data:_r,rowKey:to,index:Ao,style:{top:-da+ba.top},extra:!0,getHeight:No})});return To},lo=Te.useMemo(function(){return{columnsOffset:gi}},[gi]),So="".concat(Er,"-tbody"),na=cn(["body","wrapper"]),An={};return Hn&&(An.position="sticky",An.bottom=0,(0,qe.Z)(Hn)==="object"&&Hn.offsetScroll&&(An.bottom=Hn.offsetScroll)),Te.createElement(wi.Provider,{value:lo},Te.createElement(Xr.Z,{fullHeight:!1,ref:Gr,prefixCls:"".concat(So,"-virtual"),styles:{horizontalScrollBar:An},className:So,height:hr,itemHeight:$n||24,data:Li,itemKey:function(Do){return ni(Do.record)},component:na,scrollWidth:En,direction:Mn,onVirtualScroll:function(Do){var Wi,ho=Do.x;rt({currentTarget:(Wi=Gr.current)===null||Wi===void 0?void 0:Wi.nativeElement,scrollLeft:ho})},onScroll:Kn,extraRender:Oi},function(so,Do,Wi){var ho=ni(so.record,Do);return Te.createElement(rr,{data:so,rowKey:ho,index:Do,style:Wi.style})}))}),ur=fe(_i),vi=ur,Pi=function(fr,Rn){var rt=Rn.ref,jr=Rn.onScroll;return Te.createElement(vi,{ref:rt,data:fr,onScroll:jr})};function Mi(Fn,fr){var Rn=Fn.data,rt=Fn.columns,jr=Fn.scroll,Sr=Fn.sticky,zr=Fn.prefixCls,ni=zr===void 0?Jn:zr,pi=Fn.className,Er=Fn.listItemHeight,ft=Fn.components,En=Fn.onScroll,Mn=jr||{},Xn=Mn.x,Hn=Mn.y;typeof Xn!="number"&&(Xn=1),typeof Hn!="number"&&(Hn=500);var hr=(0,_n.zX)(function(Kn,Gr){return(0,At.Z)(ft,Kn)||Gr}),$n=(0,_n.zX)(En),cn=Te.useMemo(function(){return{sticky:Sr,scrollY:Hn,listItemHeight:Er,getComponent:hr,onScroll:$n}},[Sr,Hn,Er,hr,$n]);return Te.createElement(fi.Provider,{value:cn},Te.createElement(Ln,(0,Ue.Z)({},Fn,{className:vt()(pi,"".concat(ni,"-virtual")),scroll:(0,ot.Z)((0,ot.Z)({},jr),{},{x:Xn}),components:(0,ot.Z)((0,ot.Z)({},ft),{},{body:Rn!=null&&Rn.length?Pi:void 0}),columns:rt,internalHooks:oe.R,tailor:!0,ref:fr})))}var po=Te.forwardRef(Mi);function Oo(Fn){return ue(po,Fn)}var mo=Oo(),xo=null},90494:function(Ze,Ee,ae){"use strict";ae.d(Ee,{g:function(){return Te},v:function(){return Ve}});var oe=ae(77321),Pe=ae(74416),Ie=ae(48736),ke=["expandable"],Ve="RC_TABLE_INTERNAL_COL_DEFINE";function Te(ze){var st=ze.expandable,Qe=(0,Pe.Z)(ze,ke),Ue;return"expandable"in ze?Ue=(0,oe.Z)((0,oe.Z)({},Qe),st):Ue=Qe,Ue.showExpandColumn===!1&&(Ue.expandIconColumnIndex=-1),Ue}},22711:function(Ze,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{ResizableTextArea:function(){return at},default:function(){return Ht}});var oe=ae(72308),Pe=ae(49618),Ie=ae(77321),ke=ae(80702),Ve=ae(52487),Te=ae(74416),ze=ae(92310),st=ae.n(ze),Qe=ae(36901),Ue=ae(66003),St=ae(30292),$e=ae(18929),Dt=ae(59301),Fe=ae(62853),te=ae(29301),ee=ae(34280),he=ae(16089),ue=`
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;
`,fe=["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"],me={},be;function Ae(Qt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=Qt.getAttribute("id")||Qt.getAttribute("data-reactid")||Qt.getAttribute("name");if(Zt&&me[ln])return me[ln];var Nt=window.getComputedStyle(Qt),gt=Nt.getPropertyValue("box-sizing")||Nt.getPropertyValue("-moz-box-sizing")||Nt.getPropertyValue("-webkit-box-sizing"),ct=parseFloat(Nt.getPropertyValue("padding-bottom"))+parseFloat(Nt.getPropertyValue("padding-top")),Jt=parseFloat(Nt.getPropertyValue("border-bottom-width"))+parseFloat(Nt.getPropertyValue("border-top-width")),sn=fe.map(function(wn){return"".concat(wn,":").concat(Nt.getPropertyValue(wn))}).join(";"),It={sizingStyle:sn,paddingSize:ct,borderSize:Jt,boxSizing:gt};return Zt&&ln&&(me[ln]=It),It}function De(Qt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),Qt.getAttribute("wrap")?be.setAttribute("wrap",Qt.getAttribute("wrap")):be.removeAttribute("wrap");var gt=Ae(Qt,Zt),ct=gt.paddingSize,Jt=gt.borderSize,sn=gt.boxSizing,It=gt.sizingStyle;be.setAttribute("style","".concat(It,";").concat(ue)),be.value=Qt.value||Qt.placeholder||"";var wn=void 0,bn=void 0,_n,Xt=be.scrollHeight;if(sn==="border-box"?Xt+=Jt:sn==="content-box"&&(Xt-=ct),ln!==null||Nt!==null){be.value=" ";var zn=be.scrollHeight-ct;ln!==null&&(wn=zn*ln,sn==="border-box"&&(wn=wn+ct+Jt),Xt=Math.max(wn,Xt)),Nt!==null&&(bn=zn*Nt,sn==="border-box"&&(bn=bn+ct+Jt),_n=Xt>bn?"":"hidden",Xt=Math.min(bn,Xt))}var Ot={height:Xt,overflowY:_n,resize:"none"};return wn&&(Ot.minHeight=wn),bn&&(Ot.maxHeight=bn),Ot}var We=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],nt=0,qe=1,ot=2,mt=Dt.forwardRef(function(Qt,Zt){var ln=Qt,Nt=ln.prefixCls,gt=ln.defaultValue,ct=ln.value,Jt=ln.autoSize,sn=ln.onResize,It=ln.className,wn=ln.style,bn=ln.disabled,_n=ln.onChange,Xt=ln.onInternalAutoSize,zn=(0,Te.Z)(ln,We),Ot=(0,$e.Z)(gt,{value:ct,postState:function(tr){return tr!=null?tr:""}}),jn=(0,Ve.Z)(Ot,2),cr=jn[0],it=jn[1],_e=function(tr){it(tr.target.value),_n==null||_n(tr)},Re=Dt.useRef();Dt.useImperativeHandle(Zt,function(){return{textArea:Re.current}});var Xe=Dt.useMemo(function(){return Jt&&(0,Fe.Z)(Jt)==="object"?[Jt.minRows,Jt.maxRows]:[]},[Jt]),lt=(0,Ve.Z)(Xe,2),Be=lt[0],bt=lt[1],Wt=!!Jt,yn=function(){try{if(document.activeElement===Re.current){var tr=Re.current,lr=tr.selectionStart,qt=tr.selectionEnd,yr=tr.scrollTop;Re.current.setSelectionRange(lr,qt),Re.current.scrollTop=yr}}catch(ri){}},On=Dt.useState(ot),Pt=(0,Ve.Z)(On,2),Vt=Pt[0],zt=Pt[1],pn=Dt.useState(),Tn=(0,Ve.Z)(pn,2),gn=Tn[0],Mt=Tn[1],Un=function(){zt(nt)};(0,ee.Z)(function(){Wt&&Un()},[ct,Be,bt,Wt]),(0,ee.Z)(function(){if(Vt===nt)zt(qe);else if(Vt===qe){var ht=De(Re.current,!1,Be,bt);zt(ot),Mt(ht)}else yn()},[Vt]);var Yt=Dt.useRef(),on=function(){he.Z.cancel(Yt.current)},mn=function(tr){Vt===ot&&(sn==null||sn(tr),Jt&&(on(),Yt.current=(0,he.Z)(function(){Un()})))};Dt.useEffect(function(){return on},[]);var er=Wt?gn:null,Sn=(0,Ie.Z)((0,Ie.Z)({},wn),er);return(Vt===nt||Vt===qe)&&(Sn.overflowY="hidden",Sn.overflowX="hidden"),Dt.createElement(te.Z,{onResize:mn,disabled:!(Jt||sn)},Dt.createElement("textarea",(0,oe.Z)({},zn,{ref:Re,style:Sn,className:st()(Nt,It,(0,Pe.Z)({},"".concat(Nt,"-disabled"),bn)),disabled:bn,value:cr,onChange:_e})))}),at=mt,vt=["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"],wt=Dt.forwardRef(function(Qt,Zt){var ln,Nt=Qt.defaultValue,gt=Qt.value,ct=Qt.onFocus,Jt=Qt.onBlur,sn=Qt.onChange,It=Qt.allowClear,wn=Qt.maxLength,bn=Qt.onCompositionStart,_n=Qt.onCompositionEnd,Xt=Qt.suffix,zn=Qt.prefixCls,Ot=zn===void 0?"rc-textarea":zn,jn=Qt.showCount,cr=Qt.count,it=Qt.className,_e=Qt.style,Re=Qt.disabled,Xe=Qt.hidden,lt=Qt.classNames,Be=Qt.styles,bt=Qt.onResize,Wt=Qt.onClear,yn=Qt.onPressEnter,On=Qt.readOnly,Pt=Qt.autoSize,Vt=Qt.onKeyDown,zt=(0,Te.Z)(Qt,vt),pn=(0,$e.Z)(Nt,{value:gt,defaultValue:Nt}),Tn=(0,Ve.Z)(pn,2),gn=Tn[0],Mt=Tn[1],Un=gn==null?"":String(gn),Yt=Dt.useState(!1),on=(0,Ve.Z)(Yt,2),mn=on[0],er=on[1],Sn=Dt.useRef(!1),ht=Dt.useState(null),tr=(0,Ve.Z)(ht,2),lr=tr[0],qt=tr[1],yr=(0,Dt.useRef)(null),ri=(0,Dt.useRef)(null),Or=function(){var Cn;return(Cn=ri.current)===null||Cn===void 0?void 0:Cn.textArea},Nn=function(){Or().focus()};(0,Dt.useImperativeHandle)(Zt,function(){var Rr;return{resizableTextArea:ri.current,focus:Nn,blur:function(){Or().blur()},nativeElement:((Rr=yr.current)===null||Rr===void 0?void 0:Rr.nativeElement)||Or()}}),(0,Dt.useEffect)(function(){er(function(Rr){return!Re&&Rr})},[Re]);var ui=Dt.useState(null),$r=(0,Ve.Z)(ui,2),or=$r[0],Kr=$r[1];Dt.useEffect(function(){if(or){var Rr;(Rr=Or()).setSelectionRange.apply(Rr,(0,ke.Z)(or))}},[or]);var oi=(0,Ue.Z)(cr,jn),Me=(ln=oi.max)!==null&&ln!==void 0?ln:wn,kr=Number(Me)>0,Pr=oi.strategy(Un),ei=!!Me&&Pr>Me,Ii=function(Cn,fn){var Wr=fn;!Sn.current&&oi.exceedFormatter&&oi.max&&oi.strategy(fn)>oi.max&&(Wr=oi.exceedFormatter(fn,{max:oi.max}),fn!==Wr&&Kr([Or().selectionStart||0,Or().selectionEnd||0])),Mt(Wr),(0,St.rJ)(Cn.currentTarget,Cn,sn,Wr)},Di=function(Cn){Sn.current=!0,bn==null||bn(Cn)},Ti=function(Cn){Sn.current=!1,Ii(Cn,Cn.currentTarget.value),_n==null||_n(Cn)},Vr=function(Cn){Ii(Cn,Cn.target.value)},Fr=function(Cn){Cn.key==="Enter"&&yn&&yn(Cn),Vt==null||Vt(Cn)},dn=function(Cn){er(!0),ct==null||ct(Cn)},hn=function(Cn){er(!1),Jt==null||Jt(Cn)},un=function(Cn){Mt(""),Nn(),(0,St.rJ)(Or(),Cn,sn)},Ur=Xt,Tr;oi.show&&(oi.showFormatter?Tr=oi.showFormatter({value:Un,count:Pr,maxLength:Me}):Tr="".concat(Pr).concat(kr?" / ".concat(Me):""),Ur=Dt.createElement(Dt.Fragment,null,Ur,Dt.createElement("span",{className:st()("".concat(Ot,"-data-count"),lt==null?void 0:lt.count),style:Be==null?void 0:Be.count},Tr)));var Zr=function(Cn){var fn;bt==null||bt(Cn),(fn=Or())!==null&&fn!==void 0&&fn.style.height&&qt(!0)},sr=!Pt&&!jn&&!It;return Dt.createElement(Qe.BaseInput,{ref:yr,value:Un,allowClear:It,handleReset:un,suffix:Ur,prefixCls:Ot,classNames:(0,Ie.Z)((0,Ie.Z)({},lt),{},{affixWrapper:st()(lt==null?void 0:lt.affixWrapper,(0,Pe.Z)((0,Pe.Z)({},"".concat(Ot,"-show-count"),jn),"".concat(Ot,"-textarea-allow-clear"),It))}),disabled:Re,focused:mn,className:st()(it,ei&&"".concat(Ot,"-out-of-range")),style:(0,Ie.Z)((0,Ie.Z)({},_e),lr&&!sr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Tr=="string"?Tr:void 0}},hidden:Xe,readOnly:On,onClear:Wt},Dt.createElement(at,(0,oe.Z)({},zt,{autoSize:Pt,maxLength:wn,onKeyDown:Fr,onChange:Vr,onFocus:dn,onBlur:hn,onCompositionStart:Di,onCompositionEnd:Ti,className:st()(lt==null?void 0:lt.textarea),style:(0,Ie.Z)((0,Ie.Z)({},Be==null?void 0:Be.textarea),{},{resize:_e==null?void 0:_e.resize}),disabled:Re,prefixCls:Ot,onResize:Zr,ref:ri,readOnly:On})))}),At=wt,Ht=At},9940:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Qw:function(){return jn},FJ:function(){return it},hT:function(){return cr},OF:function(){return be},ZP:function(){return On}});var oe=ae(72308),Pe=ae(80702),Ie=ae(77321),ke=ae(52487),Ve=ae(74416),Te=ae(62853),ze=ae(45560),st=ae(69582),Qe=ae(34643),Ue=ae(18929),St=ae(48736),$e=ae(59301),Dt=function(Pt){var Vt=$e.useRef({valueLabels:new Map});return $e.useMemo(function(){var zt=Vt.current.valueLabels,pn=new Map,Tn=Pt.map(function(gn){var Mt=gn.value,Un=gn.label,Yt=Un!=null?Un:zt.get(Mt);return pn.set(Mt,Yt),(0,Ie.Z)((0,Ie.Z)({},gn),{},{label:Yt})});return Vt.current.valueLabels=pn,[Tn]},[Pt])},Fe=function(Vt,zt,pn,Tn){return $e.useMemo(function(){var gn=function(ht){return ht.map(function(tr){var lr=tr.value;return lr})},Mt=gn(Vt),Un=gn(zt),Yt=Mt.filter(function(Sn){return!Tn[Sn]}),on=Mt,mn=Un;if(pn){var er=(0,Qe.S)(Mt,!0,Tn);on=er.checkedKeys,mn=er.halfCheckedKeys}return[Array.from(new Set([].concat((0,Pe.Z)(Yt),(0,Pe.Z)(on)))),mn]},[Vt,zt,pn,Tn])},te=Fe,ee=ae(34061),he=function(Pt,Vt){return $e.useMemo(function(){var zt=(0,ee.I8)(Pt,{fieldNames:Vt,initWrapper:function(Tn){return(0,Ie.Z)((0,Ie.Z)({},Tn),{},{valueEntities:new Map})},processEntity:function(Tn,gn){var Mt=Tn.node[Vt.value];if(0)var Un;gn.valueEntities.set(Mt,Tn)}});return zt},[Pt,Vt])},ue=ae(49618),fe=ae(11592),me=function(){return null},be=me,Ae=["children","value"];function De(Pt){return(0,fe.Z)(Pt).map(function(Vt){if(!$e.isValidElement(Vt)||!Vt.type)return null;var zt=Vt,pn=zt.key,Tn=zt.props,gn=Tn.children,Mt=Tn.value,Un=(0,Ve.Z)(Tn,Ae),Yt=(0,Ie.Z)({key:pn,value:Mt},Un),on=De(gn);return on.length&&(Yt.children=on),Yt}).filter(function(Vt){return Vt})}function We(Pt){if(!Pt)return Pt;var Vt=(0,Ie.Z)({},Pt);return"props"in Vt||Object.defineProperty(Vt,"props",{get:function(){return(0,St.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Vt}}),Vt}function nt(Pt,Vt,zt,pn,Tn,gn){var Mt=null,Un=null;function Yt(){function on(mn){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return mn.map(function(ht,tr){var lr="".concat(er,"-").concat(tr),qt=ht[gn.value],yr=zt.includes(qt),ri=on(ht[gn.children]||[],lr,yr),Or=$e.createElement(be,ht,ri.map(function(ui){return ui.node}));if(Vt===qt&&(Mt=Or),yr){var Nn={pos:lr,node:Or,children:ri};return Sn||Un.push(Nn),Nn}return null}).filter(function(ht){return ht})}Un||(Un=[],on(pn),Un.sort(function(mn,er){var Sn=mn.node.props.value,ht=er.node.props.value,tr=zt.indexOf(Sn),lr=zt.indexOf(ht);return tr-lr}))}Object.defineProperty(Pt,"triggerNode",{get:function(){return(0,St.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Yt(),Mt}}),Object.defineProperty(Pt,"allCheckedNodes",{get:function(){return(0,St.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Yt(),Tn?Un:Un.map(function(mn){var er=mn.node;return er})}})}var qe=function(Vt,zt,pn){var Tn=pn.fieldNames,gn=pn.treeNodeFilterProp,Mt=pn.filterTreeNode,Un=Tn.children;return $e.useMemo(function(){if(!zt||Mt===!1)return Vt;var Yt=typeof Mt=="function"?Mt:function(mn,er){return String(er[gn]).toUpperCase().includes(zt.toUpperCase())},on=function mn(er){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return er.reduce(function(ht,tr){var lr=tr[Un],qt=Sn||Yt(zt,We(tr)),yr=mn(lr||[],qt);return(qt||yr.length)&&ht.push((0,Ie.Z)((0,Ie.Z)({},tr),{},(0,ue.Z)({isLeaf:void 0},Un,yr))),ht},[])};return on(Vt)},[Vt,zt,Un,gn,Mt])},ot=qe;function mt(Pt){var Vt=$e.useRef();Vt.current=Pt;var zt=$e.useCallback(function(){return Vt.current.apply(Vt,arguments)},[]);return zt}function at(Pt,Vt){var zt=Vt.id,pn=Vt.pId,Tn=Vt.rootPId,gn=new Map,Mt=[];return Pt.forEach(function(Un){var Yt=Un[zt],on=(0,Ie.Z)((0,Ie.Z)({},Un),{},{key:Un.key||Yt});gn.set(Yt,on)}),gn.forEach(function(Un){var Yt=Un[pn],on=gn.get(Yt);on?(on.children=on.children||[],on.children.push(Un)):(Yt===Tn||Tn===null)&&Mt.push(Un)}),Mt}function vt(Pt,Vt,zt){return $e.useMemo(function(){if(Pt){if(zt){var pn=(0,Ie.Z)({id:"id",pId:"pId",rootPId:null},(0,Te.Z)(zt)==="object"?zt:{});return at(Pt,pn)}return Pt}return De(Vt)},[Vt,zt,Pt])}var wt=$e.createContext(null),At=wt,Ht=ae(2826),Qt=ae(15018),Zt=ae(10228),ln=ae(80547),Nt=$e.createContext(null),gt=Nt,ct=function(Vt){return Array.isArray(Vt)?Vt:Vt!==void 0?[Vt]:[]},Jt=function(Vt){var zt=Vt||{},pn=zt.label,Tn=zt.value,gn=zt.children;return{_title:pn?[pn]:["title","label"],value:Tn||"value",key:Tn||"value",children:gn||"children"}},sn=function(Vt){return!Vt||Vt.disabled||Vt.disableCheckbox||Vt.checkable===!1},It=function(Vt,zt){var pn=[],Tn=function gn(Mt){Mt.forEach(function(Un){var Yt=Un[zt.children];Yt&&(pn.push(Un[zt.value]),gn(Yt))})};return Tn(Vt),pn},wn=function(Vt){return Vt==null},bn=ae(70425),_n={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Xt=function(Vt,zt){var pn=(0,ze.lk)(),Tn=pn.prefixCls,gn=pn.multiple,Mt=pn.searchValue,Un=pn.toggleOpen,Yt=pn.open,on=pn.notFoundContent,mn=$e.useContext(gt),er=mn.virtual,Sn=mn.listHeight,ht=mn.listItemHeight,tr=mn.listItemScrollOffset,lr=mn.treeData,qt=mn.fieldNames,yr=mn.onSelect,ri=mn.dropdownMatchSelectWidth,Or=mn.treeExpandAction,Nn=mn.treeTitleRender,ui=mn.onPopupScroll,$r=mn.leftMaxCount,or=mn.leafCountOnly,Kr=mn.valueEntities,oi=$e.useContext(At),Me=oi.checkable,kr=oi.checkedKeys,Pr=oi.halfCheckedKeys,ei=oi.treeExpandedKeys,Ii=oi.treeDefaultExpandAll,Di=oi.treeDefaultExpandedKeys,Ti=oi.onTreeExpand,Vr=oi.treeIcon,Fr=oi.showTreeIcon,dn=oi.switcherIcon,hn=oi.treeLine,un=oi.treeNodeFilterProp,Ur=oi.loadData,Tr=oi.treeLoadedKeys,Zr=oi.treeMotion,sr=oi.onTreeLoad,Rr=oi.keyEntities,Cn=$e.useRef(),fn=(0,ln.Z)(function(){return lr},[Yt,lr],function(rr,_i){return _i[0]&&rr[1]!==_i[1]}),Wr=$e.useMemo(function(){return Me?{checked:kr,halfChecked:Pr}:null},[Me,kr,Pr]);$e.useEffect(function(){if(Yt&&!gn&&kr.length){var rr;(rr=Cn.current)===null||rr===void 0||rr.scrollTo({key:kr[0]})}},[Yt]);var kt=function(_i){_i.preventDefault()},Gn=function(_i,ur){var vi=ur.node;Me&&sn(vi)||(yr(vi.key,{selected:!kr.includes(vi.key)}),gn||Un(!1))},vr=$e.useState(Di),Qr=(0,ke.Z)(vr,2),nn=Qr[0],Qn=Qr[1],Dn=$e.useState(null),xn=(0,ke.Z)(Dn,2),Ge=xn[0],Jr=xn[1],Hr=$e.useMemo(function(){return ei?(0,Pe.Z)(ei):Mt?Ge:nn},[nn,Ge,ei,Mt]),Jn=function(_i){Qn(_i),Jr(_i),Ti&&Ti(_i)},hi=String(Mt).toLowerCase(),ti=function(_i){return hi?String(_i[un]).toLowerCase().includes(hi):!1};$e.useEffect(function(){Mt&&Jr(It(lr,qt))},[Mt]);var Si=$e.useState(function(){return new Map}),nr=(0,ke.Z)(Si,2),vn=nr[0],xi=nr[1];$e.useEffect(function(){$r&&xi(new Map)},[$r]);function zi(rr){var _i=rr[qt.value];if(!vn.has(_i)){var ur=Kr.get(_i),vi=(ur.children||[]).length===0;if(vi)vn.set(_i,!1);else{var Pi=ur.children.filter(function(po){return!po.node.disabled&&!po.node.disableCheckbox&&!kr.includes(po.node[qt.value])}),Mi=Pi.length;vn.set(_i,Mi>$r)}}return vn.get(_i)}var Ln=(0,bn.zX)(function(rr){var _i=rr[qt.value];return kr.includes(_i)||$r===null?!1:$r<=0?!0:or&&$r?zi(rr):!1}),Xr=function rr(_i){var ur=(0,Ht.Z)(_i),vi;try{for(ur.s();!(vi=ur.n()).done;){var Pi=vi.value;if(!(Pi.disabled||Pi.selectable===!1)){if(Mt){if(ti(Pi))return Pi}else return Pi;if(Pi[qt.children]){var Mi=rr(Pi[qt.children]);if(Mi)return Mi}}}}catch(po){ur.e(po)}finally{ur.f()}return null},fi=$e.useState(null),wi=(0,ke.Z)(fi,2),ai=wi[0],Ni=wi[1],Xi=Rr[ai];$e.useEffect(function(){if(Yt){var rr=null,_i=function(){var vi=Xr(fn);return vi?vi[qt.value]:null};!gn&&kr.length&&!Mt?rr=kr[0]:rr=_i(),Ni(rr)}},[Yt,Mt]),$e.useImperativeHandle(zt,function(){var rr;return{scrollTo:(rr=Cn.current)===null||rr===void 0?void 0:rr.scrollTo,onKeyDown:function(ur){var vi,Pi=ur.which;switch(Pi){case Zt.Z.UP:case Zt.Z.DOWN:case Zt.Z.LEFT:case Zt.Z.RIGHT:(vi=Cn.current)===null||vi===void 0||vi.onKeyDown(ur);break;case Zt.Z.ENTER:{if(Xi){var Mi=Ln(Xi.node),po=(Xi==null?void 0:Xi.node)||{},Oo=po.selectable,mo=po.value,xo=po.disabled;Oo!==!1&&!xo&&!Mi&&Gn(null,{node:{key:ai},selected:!kr.includes(mo)})}break}case Zt.Z.ESC:Un(!1)}},onKeyUp:function(){}}});var Vi=(0,ln.Z)(function(){return!Mt},[Mt,ei||nn],function(rr,_i){var ur=(0,ke.Z)(rr,1),vi=ur[0],Pi=(0,ke.Z)(_i,2),Mi=Pi[0],po=Pi[1];return vi!==Mi&&!!(Mi||po)}),Bi=Vi?Ur:null;if(fn.length===0)return $e.createElement("div",{role:"listbox",className:"".concat(Tn,"-empty"),onMouseDown:kt},on);var Hi={fieldNames:qt};return Tr&&(Hi.loadedKeys=Tr),Hr&&(Hi.expandedKeys=Hr),$e.createElement("div",{onMouseDown:kt},Xi&&Yt&&$e.createElement("span",{style:_n,"aria-live":"assertive"},Xi.node.value),$e.createElement(Qt.y6.Provider,{value:{nodeDisabled:Ln}},$e.createElement(Qt.ZP,(0,oe.Z)({ref:Cn,focusable:!1,prefixCls:"".concat(Tn,"-tree"),treeData:fn,height:Sn,itemHeight:ht,itemScrollOffset:tr,virtual:er!==!1&&ri!==!1,multiple:gn,icon:Vr,showIcon:Fr,switcherIcon:dn,showLine:hn,loadData:Bi,motion:Zr,activeKey:ai,checkable:Me,checkStrictly:!0,checkedKeys:Wr,selectedKeys:Me?[]:kr,defaultExpandAll:Ii,titleRender:Nn},Hi,{onActiveChange:Ni,onSelect:Gn,onCheck:Gn,onExpand:Jn,onLoad:sr,filterTreeNode:ti,expandAction:Or,onScroll:ui}))))},zn=$e.forwardRef(Xt),Ot=zn,jn="SHOW_ALL",cr="SHOW_PARENT",it="SHOW_CHILD";function _e(Pt,Vt,zt,pn){var Tn=new Set(Pt);return Vt===it?Pt.filter(function(gn){var Mt=zt[gn];return!Mt||!Mt.children||!Mt.children.some(function(Un){var Yt=Un.node;return Tn.has(Yt[pn.value])})||!Mt.children.every(function(Un){var Yt=Un.node;return sn(Yt)||Tn.has(Yt[pn.value])})}):Vt===cr?Pt.filter(function(gn){var Mt=zt[gn],Un=Mt?Mt.parent:null;return!Un||sn(Un.node)||!Tn.has(Un.key)}):Pt}function Re(Pt){var Vt=Pt.searchPlaceholder,zt=Pt.treeCheckStrictly,pn=Pt.treeCheckable,Tn=Pt.labelInValue,gn=Pt.value,Mt=Pt.multiple,Un=Pt.showCheckedStrategy,Yt=Pt.maxCount;warning(!Vt,"`searchPlaceholder` has been removed."),zt&&Tn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Tn||zt)&&warning(toArray(gn).every(function(on){return on&&_typeof(on)==="object"&&"value"in on}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),zt||Mt||pn?warning(!gn||Array.isArray(gn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(gn),"`value` should not be array when `TreeSelect` is single mode."),Yt&&(Un==="SHOW_ALL"&&!zt||Un==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Xe=null,lt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Be(Pt){return!Pt||(0,Te.Z)(Pt)!=="object"}var bt=$e.forwardRef(function(Pt,Vt){var zt=Pt.id,pn=Pt.prefixCls,Tn=pn===void 0?"rc-tree-select":pn,gn=Pt.value,Mt=Pt.defaultValue,Un=Pt.onChange,Yt=Pt.onSelect,on=Pt.onDeselect,mn=Pt.searchValue,er=Pt.inputValue,Sn=Pt.onSearch,ht=Pt.autoClearSearchValue,tr=ht===void 0?!0:ht,lr=Pt.filterTreeNode,qt=Pt.treeNodeFilterProp,yr=qt===void 0?"value":qt,ri=Pt.showCheckedStrategy,Or=Pt.treeNodeLabelProp,Nn=Pt.multiple,ui=Pt.treeCheckable,$r=Pt.treeCheckStrictly,or=Pt.labelInValue,Kr=Pt.maxCount,oi=Pt.fieldNames,Me=Pt.treeDataSimpleMode,kr=Pt.treeData,Pr=Pt.children,ei=Pt.loadData,Ii=Pt.treeLoadedKeys,Di=Pt.onTreeLoad,Ti=Pt.treeDefaultExpandAll,Vr=Pt.treeExpandedKeys,Fr=Pt.treeDefaultExpandedKeys,dn=Pt.onTreeExpand,hn=Pt.treeExpandAction,un=Pt.virtual,Ur=Pt.listHeight,Tr=Ur===void 0?200:Ur,Zr=Pt.listItemHeight,sr=Zr===void 0?20:Zr,Rr=Pt.listItemScrollOffset,Cn=Rr===void 0?0:Rr,fn=Pt.onDropdownVisibleChange,Wr=Pt.dropdownMatchSelectWidth,kt=Wr===void 0?!0:Wr,Gn=Pt.treeLine,vr=Pt.treeIcon,Qr=Pt.showTreeIcon,nn=Pt.switcherIcon,Qn=Pt.treeMotion,Dn=Pt.treeTitleRender,xn=Pt.onPopupScroll,Ge=(0,Ve.Z)(Pt,lt),Jr=(0,st.ZP)(zt),Hr=ui&&!$r,Jn=ui||$r,hi=$r||or,ti=Jn||Nn,Si=(0,Ue.Z)(Mt,{value:gn}),nr=(0,ke.Z)(Si,2),vn=nr[0],xi=nr[1],zi=$e.useMemo(function(){return ui?ri||it:jn},[ri,ui]),Ln=$e.useMemo(function(){return Jt(oi)},[JSON.stringify(oi)]),Xr=(0,Ue.Z)("",{value:mn!==void 0?mn:er,postState:function(cn){return cn||""}}),fi=(0,ke.Z)(Xr,2),wi=fi[0],ai=fi[1],Ni=function(cn){ai(cn),Sn==null||Sn(cn)},Xi=vt(kr,Pr,Me),Vi=he(Xi,Ln),Bi=Vi.keyEntities,Hi=Vi.valueEntities,rr=$e.useCallback(function($n){var cn=[],Kn=[];return $n.forEach(function(Gr){Hi.has(Gr)?Kn.push(Gr):cn.push(Gr)}),{missingRawValues:cn,existRawValues:Kn}},[Hi]),_i=ot(Xi,wi,{fieldNames:Ln,treeNodeFilterProp:yr,filterTreeNode:lr}),ur=$e.useCallback(function($n){if($n){if(Or)return $n[Or];for(var cn=Ln._title,Kn=0;Kn<cn.length;Kn+=1){var Gr=$n[cn[Kn]];if(Gr!==void 0)return Gr}}},[Ln,Or]),vi=$e.useCallback(function($n){var cn=ct($n);return cn.map(function(Kn){return Be(Kn)?{value:Kn}:Kn})},[]),Pi=$e.useCallback(function($n){var cn=vi($n);return cn.map(function(Kn){var Gr=Kn.label,Li=Kn.value,mi=Kn.halfChecked,gi,Ri=Hi.get(Li);if(Ri){var Oi;Gr=Dn?Dn(Ri.node):(Oi=Gr)!==null&&Oi!==void 0?Oi:ur(Ri.node),gi=Ri.node.disabled}else if(Gr===void 0){var lo=vi(vn).find(function(So){return So.value===Li});Gr=lo.label}return{label:Gr,value:Li,halfChecked:mi,disabled:gi}})},[Hi,ur,vi,vn]),Mi=$e.useMemo(function(){return vi(vn===null?[]:vn)},[vi,vn]),po=$e.useMemo(function(){var $n=[],cn=[];return Mi.forEach(function(Kn){Kn.halfChecked?cn.push(Kn):$n.push(Kn)}),[$n,cn]},[Mi]),Oo=(0,ke.Z)(po,2),mo=Oo[0],xo=Oo[1],Fn=$e.useMemo(function(){return mo.map(function($n){return $n.value})},[mo]),fr=te(mo,xo,Hr,Bi),Rn=(0,ke.Z)(fr,2),rt=Rn[0],jr=Rn[1],Sr=$e.useMemo(function(){var $n=_e(rt,zi,Bi,Ln),cn=$n.map(function(mi){var gi,Ri;return(gi=(Ri=Bi[mi])===null||Ri===void 0||(Ri=Ri.node)===null||Ri===void 0?void 0:Ri[Ln.value])!==null&&gi!==void 0?gi:mi}),Kn=cn.map(function(mi){var gi=mo.find(function(Oi){return Oi.value===mi}),Ri=or?gi==null?void 0:gi.label:Dn==null?void 0:Dn(gi);return{value:mi,label:Ri}}),Gr=Pi(Kn),Li=Gr[0];return!ti&&Li&&wn(Li.value)&&wn(Li.label)?[]:Gr.map(function(mi){var gi;return(0,Ie.Z)((0,Ie.Z)({},mi),{},{label:(gi=mi.label)!==null&&gi!==void 0?gi:mi.value})})},[Ln,ti,rt,mo,Pi,zi,Bi]),zr=Dt(Sr),ni=(0,ke.Z)(zr,1),pi=ni[0],Er=$e.useMemo(function(){return ti&&(zi==="SHOW_CHILD"||$r||!ui)?Kr:null},[Kr,ti,$r,zi,ui]),ft=mt(function($n,cn,Kn){var Gr=_e($n,zi,Bi,Ln);if(!(Er&&Gr.length>Er)){var Li=Pi($n);if(xi(Li),tr&&ai(""),Un){var mi=$n;Hr&&(mi=Gr.map(function(Wi){var ho=Hi.get(Wi);return ho?ho.node[Ln.value]:Wi}));var gi=cn||{triggerValue:void 0,selected:void 0},Ri=gi.triggerValue,Oi=gi.selected,lo=mi;if($r){var So=xo.filter(function(Wi){return!mi.includes(Wi.value)});lo=[].concat((0,Pe.Z)(lo),(0,Pe.Z)(So))}var na=Pi(lo),An={preValue:mo,triggerValue:Ri},so=!0;($r||Kn==="selection"&&!Oi)&&(so=!1),nt(An,Ri,$n,Xi,so,Ln),Jn?An.checked=Oi:An.selected=Oi;var Do=hi?na:na.map(function(Wi){return Wi.value});Un(ti?Do:Do[0],hi?null:na.map(function(Wi){return Wi.label}),An)}}}),En=$e.useCallback(function($n,cn){var Kn,Gr=cn.selected,Li=cn.source,mi=Bi[$n],gi=mi==null?void 0:mi.node,Ri=(Kn=gi==null?void 0:gi[Ln.value])!==null&&Kn!==void 0?Kn:$n;if(!ti)ft([Ri],{selected:!0,triggerValue:Ri},"option");else{var Oi=Gr?[].concat((0,Pe.Z)(Fn),[Ri]):rt.filter(function(ho){return ho!==Ri});if(Hr){var lo=rr(Oi),So=lo.missingRawValues,na=lo.existRawValues,An=na.map(function(ho){return Hi.get(ho).key}),so;if(Gr){var Do=(0,Qe.S)(An,!0,Bi);so=Do.checkedKeys}else{var Wi=(0,Qe.S)(An,{checked:!1,halfCheckedKeys:jr},Bi);so=Wi.checkedKeys}Oi=[].concat((0,Pe.Z)(So),(0,Pe.Z)(so.map(function(ho){return Bi[ho].node[Ln.value]})))}ft(Oi,{selected:Gr,triggerValue:Ri},Li||"option")}Gr||!ti?Yt==null||Yt(Ri,We(gi)):on==null||on(Ri,We(gi))},[rr,Hi,Bi,Ln,ti,Fn,ft,Hr,Yt,on,rt,jr,Kr]),Mn=$e.useCallback(function($n){if(fn){var cn={};Object.defineProperty(cn,"documentClickClose",{get:function(){return(0,St.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),fn($n,cn)}},[fn]),Xn=mt(function($n,cn){var Kn=$n.map(function(Gr){return Gr.value});if(cn.type==="clear"){ft(Kn,{},"selection");return}cn.values.length&&En(cn.values[0].value,{selected:!1,source:"selection"})}),Hn=$e.useMemo(function(){return{virtual:un,dropdownMatchSelectWidth:kt,listHeight:Tr,listItemHeight:sr,listItemScrollOffset:Cn,treeData:_i,fieldNames:Ln,onSelect:En,treeExpandAction:hn,treeTitleRender:Dn,onPopupScroll:xn,leftMaxCount:Kr===void 0?null:Kr-pi.length,leafCountOnly:zi==="SHOW_CHILD"&&!$r&&!!ui,valueEntities:Hi}},[un,kt,Tr,sr,Cn,_i,Ln,En,hn,Dn,xn,Kr,pi.length,zi,$r,ui,Hi]),hr=$e.useMemo(function(){return{checkable:Jn,loadData:ei,treeLoadedKeys:Ii,onTreeLoad:Di,checkedKeys:rt,halfCheckedKeys:jr,treeDefaultExpandAll:Ti,treeExpandedKeys:Vr,treeDefaultExpandedKeys:Fr,onTreeExpand:dn,treeIcon:vr,treeMotion:Qn,showTreeIcon:Qr,switcherIcon:nn,treeLine:Gn,treeNodeFilterProp:yr,keyEntities:Bi}},[Jn,ei,Ii,Di,rt,jr,Ti,Vr,Fr,dn,vr,Qn,Qr,nn,Gn,yr,Bi]);return $e.createElement(gt.Provider,{value:Hn},$e.createElement(At.Provider,{value:hr},$e.createElement(ze.Ac,(0,oe.Z)({ref:Vt},Ge,{id:Jr,prefixCls:Tn,mode:ti?"multiple":void 0,displayValues:pi,onDisplayValuesChange:Xn,searchValue:wi,onSearch:Ni,OptionList:Ot,emptyOptions:!Xi.length,onDropdownVisibleChange:Mn,dropdownMatchSelectWidth:kt}))))}),Wt=bt;Wt.TreeNode=be,Wt.SHOW_ALL=jn,Wt.SHOW_PARENT=cr,Wt.SHOW_CHILD=it;var yn=Wt,On=yn},639:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(72308),Pe=ae(49618),Ie=ae(77321),ke=ae(52487),Ve=ae(74416),Te=ae(59301),ze=ae(92310),st=ae.n(ze),Qe=ae(26112),Ue=ae(30699),St=function(Ae){for(var De=Ae.prefixCls,We=Ae.level,nt=Ae.isStart,qe=Ae.isEnd,ot="".concat(De,"-indent-unit"),mt=[],at=0;at<We;at+=1)mt.push(Te.createElement("span",{key:at,className:st()(ot,(0,Pe.Z)((0,Pe.Z)({},"".concat(ot,"-start"),nt[at]),"".concat(ot,"-end"),qe[at]))}));return Te.createElement("span",{"aria-hidden":"true",className:"".concat(De,"-indent")},mt)},$e=Te.memo(St),Dt=ae(65065),Fe=ae(34061),te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ee="open",he="close",ue="---",fe=function(Ae){var De,We,nt,qe=Ae.eventKey,ot=Ae.className,mt=Ae.style,at=Ae.dragOver,vt=Ae.dragOverGapTop,wt=Ae.dragOverGapBottom,At=Ae.isLeaf,Ht=Ae.isStart,Qt=Ae.isEnd,Zt=Ae.expanded,ln=Ae.selected,Nt=Ae.checked,gt=Ae.halfChecked,ct=Ae.loading,Jt=Ae.domRef,sn=Ae.active,It=Ae.data,wn=Ae.onMouseMove,bn=Ae.selectable,_n=(0,Ve.Z)(Ae,te),Xt=Te.useContext(Ue.k),zn=Te.useContext(Ue.y),Ot=Te.useRef(null),jn=Te.useState(!1),cr=(0,ke.Z)(jn,2),it=cr[0],_e=cr[1],Re=!!(Xt.disabled||Ae.disabled||(De=zn.nodeDisabled)!==null&&De!==void 0&&De.call(zn,It)),Xe=Te.useMemo(function(){return!Xt.checkable||Ae.checkable===!1?!1:Xt.checkable},[Xt.checkable,Ae.checkable]),lt=function(Pr){Re||Xt.onNodeSelect(Pr,(0,Fe.F)(Ae))},Be=function(Pr){Re||!Xe||Ae.disableCheckbox||Xt.onNodeCheck(Pr,(0,Fe.F)(Ae),!Nt)},bt=Te.useMemo(function(){return typeof bn=="boolean"?bn:Xt.selectable},[bn,Xt.selectable]),Wt=function(Pr){Xt.onNodeClick(Pr,(0,Fe.F)(Ae)),bt?lt(Pr):Be(Pr)},yn=function(Pr){Xt.onNodeDoubleClick(Pr,(0,Fe.F)(Ae))},On=function(Pr){Xt.onNodeMouseEnter(Pr,(0,Fe.F)(Ae))},Pt=function(Pr){Xt.onNodeMouseLeave(Pr,(0,Fe.F)(Ae))},Vt=function(Pr){Xt.onNodeContextMenu(Pr,(0,Fe.F)(Ae))},zt=Te.useMemo(function(){return!!(Xt.draggable&&(!Xt.draggable.nodeDraggable||Xt.draggable.nodeDraggable(It)))},[Xt.draggable,It]),pn=function(Pr){Pr.stopPropagation(),_e(!0),Xt.onNodeDragStart(Pr,Ae);try{Pr.dataTransfer.setData("text/plain","")}catch(ei){}},Tn=function(Pr){Pr.preventDefault(),Pr.stopPropagation(),Xt.onNodeDragEnter(Pr,Ae)},gn=function(Pr){Pr.preventDefault(),Pr.stopPropagation(),Xt.onNodeDragOver(Pr,Ae)},Mt=function(Pr){Pr.stopPropagation(),Xt.onNodeDragLeave(Pr,Ae)},Un=function(Pr){Pr.stopPropagation(),_e(!1),Xt.onNodeDragEnd(Pr,Ae)},Yt=function(Pr){Pr.preventDefault(),Pr.stopPropagation(),_e(!1),Xt.onNodeDrop(Pr,Ae)},on=function(Pr){ct||Xt.onNodeExpand(Pr,(0,Fe.F)(Ae))},mn=Te.useMemo(function(){var kr=(0,Dt.Z)(Xt.keyEntities,qe)||{},Pr=kr.children;return!!(Pr||[]).length},[Xt.keyEntities,qe]),er=Te.useMemo(function(){return At===!1?!1:At||!Xt.loadData&&!mn||Xt.loadData&&Ae.loaded&&!mn},[At,Xt.loadData,mn,Ae.loaded]);Te.useEffect(function(){ct||typeof Xt.loadData=="function"&&Zt&&!er&&!Ae.loaded&&Xt.onNodeLoad((0,Fe.F)(Ae))},[ct,Xt.loadData,Xt.onNodeLoad,Zt,er,Ae]);var Sn=Te.useMemo(function(){var kr;return(kr=Xt.draggable)!==null&&kr!==void 0&&kr.icon?Te.createElement("span",{className:"".concat(Xt.prefixCls,"-draggable-icon")},Xt.draggable.icon):null},[Xt.draggable]),ht=function(Pr){var ei=Ae.switcherIcon||Xt.switcherIcon;return typeof ei=="function"?ei((0,Ie.Z)((0,Ie.Z)({},Ae),{},{isLeaf:Pr})):ei},tr=function(){if(er){var Pr=ht(!0);return Pr!==!1?Te.createElement("span",{className:st()("".concat(Xt.prefixCls,"-switcher"),"".concat(Xt.prefixCls,"-switcher-noop"))},Pr):null}var ei=ht(!1);return ei!==!1?Te.createElement("span",{onClick:on,className:st()("".concat(Xt.prefixCls,"-switcher"),"".concat(Xt.prefixCls,"-switcher_").concat(Zt?ee:he))},ei):null},lr=Te.useMemo(function(){if(!Xe)return null;var kr=typeof Xe!="boolean"?Xe:null;return Te.createElement("span",{className:st()("".concat(Xt.prefixCls,"-checkbox"),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Xt.prefixCls,"-checkbox-checked"),Nt),"".concat(Xt.prefixCls,"-checkbox-indeterminate"),!Nt&&gt),"".concat(Xt.prefixCls,"-checkbox-disabled"),Re||Ae.disableCheckbox)),onClick:Be,role:"checkbox","aria-checked":gt?"mixed":Nt,"aria-disabled":Re||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},kr)},[Xe,Nt,gt,Re,Ae.disableCheckbox,Ae.title]),qt=Te.useMemo(function(){return er?null:Zt?ee:he},[er,Zt]),yr=Te.useMemo(function(){return Te.createElement("span",{className:st()("".concat(Xt.prefixCls,"-iconEle"),"".concat(Xt.prefixCls,"-icon__").concat(qt||"docu"),(0,Pe.Z)({},"".concat(Xt.prefixCls,"-icon_loading"),ct))})},[Xt.prefixCls,qt,ct]),ri=Te.useMemo(function(){var kr=!!Xt.draggable,Pr=!Ae.disabled&&kr&&Xt.dragOverNodeKey===qe;return Pr?Xt.dropIndicatorRender({dropPosition:Xt.dropPosition,dropLevelOffset:Xt.dropLevelOffset,indent:Xt.indent,prefixCls:Xt.prefixCls,direction:Xt.direction}):null},[Xt.dropPosition,Xt.dropLevelOffset,Xt.indent,Xt.prefixCls,Xt.direction,Xt.draggable,Xt.dragOverNodeKey,Xt.dropIndicatorRender]),Or=Te.useMemo(function(){var kr=Ae.title,Pr=kr===void 0?ue:kr,ei="".concat(Xt.prefixCls,"-node-content-wrapper"),Ii;if(Xt.showIcon){var Di=Ae.icon||Xt.icon;Ii=Di?Te.createElement("span",{className:st()("".concat(Xt.prefixCls,"-iconEle"),"".concat(Xt.prefixCls,"-icon__customize"))},typeof Di=="function"?Di(Ae):Di):yr}else Xt.loadData&&ct&&(Ii=yr);var Ti;return typeof Pr=="function"?Ti=Pr(It):Xt.titleRender?Ti=Xt.titleRender(It):Ti=Pr,Te.createElement("span",{ref:Ot,title:typeof Pr=="string"?Pr:"",className:st()(ei,"".concat(ei,"-").concat(qt||"normal"),(0,Pe.Z)({},"".concat(Xt.prefixCls,"-node-selected"),!Re&&(ln||it))),onMouseEnter:On,onMouseLeave:Pt,onContextMenu:Vt,onClick:Wt,onDoubleClick:yn},Ii,Te.createElement("span",{className:"".concat(Xt.prefixCls,"-title")},Ti),ri)},[Xt.prefixCls,Xt.showIcon,Ae,Xt.icon,yr,Xt.titleRender,It,qt,On,Pt,Vt,Wt,yn]),Nn=(0,Qe.Z)(_n,{aria:!0,data:!0}),ui=(0,Dt.Z)(Xt.keyEntities,qe)||{},$r=ui.level,or=Qt[Qt.length-1],Kr=!Re&&zt,oi=Xt.draggingNodeKey===qe,Me=bn!==void 0?{"aria-selected":!!bn}:void 0;return Te.createElement("div",(0,oe.Z)({ref:Jt,role:"treeitem","aria-expanded":At?void 0:Zt,className:st()(ot,"".concat(Xt.prefixCls,"-treenode"),(nt={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(nt,"".concat(Xt.prefixCls,"-treenode-disabled"),Re),"".concat(Xt.prefixCls,"-treenode-switcher-").concat(Zt?"open":"close"),!At),"".concat(Xt.prefixCls,"-treenode-checkbox-checked"),Nt),"".concat(Xt.prefixCls,"-treenode-checkbox-indeterminate"),gt),"".concat(Xt.prefixCls,"-treenode-selected"),ln),"".concat(Xt.prefixCls,"-treenode-loading"),ct),"".concat(Xt.prefixCls,"-treenode-active"),sn),"".concat(Xt.prefixCls,"-treenode-leaf-last"),or),"".concat(Xt.prefixCls,"-treenode-draggable"),zt),"dragging",oi),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(nt,"drop-target",Xt.dropTargetKey===qe),"drop-container",Xt.dropContainerKey===qe),"drag-over",!Re&&at),"drag-over-gap-top",!Re&&vt),"drag-over-gap-bottom",!Re&&wt),"filter-node",(We=Xt.filterTreeNode)===null||We===void 0?void 0:We.call(Xt,(0,Fe.F)(Ae))),"".concat(Xt.prefixCls,"-treenode-leaf"),er))),style:mt,draggable:Kr,onDragStart:Kr?pn:void 0,onDragEnter:zt?Tn:void 0,onDragOver:zt?gn:void 0,onDragLeave:zt?Mt:void 0,onDrop:zt?Yt:void 0,onDragEnd:zt?Un:void 0,onMouseMove:wn},Me,Nn),Te.createElement($e,{prefixCls:Xt.prefixCls,level:$r,isStart:Ht,isEnd:Qt}),Sn,tr(),lr,Or)};fe.isTreeNode=1;var me=fe},30699:function(Ze,Ee,ae){"use strict";ae.d(Ee,{k:function(){return Pe},y:function(){return Ie}});var oe=ae(59301),Pe=oe.createContext(null),Ie=oe.createContext({})},15018:function(Ze,Ee,ae){"use strict";ae.d(Ee,{OF:function(){return qe.Z},y6:function(){return he.y},ZP:function(){return Re}});var oe=ae(72308),Pe=ae(62853),Ie=ae(77321),ke=ae(80702),Ve=ae(96949),Te=ae(55090),ze=ae(80237),st=ae(77205),Qe=ae(38793),Ue=ae(49618),St=ae(92310),$e=ae.n(St),Dt=ae(10228),Fe=ae(26112),te=ae(48736),ee=ae(59301),he=ae(30699),ue=function(lt){var Be=lt.dropPosition,bt=lt.dropLevelOffset,Wt=lt.indent,yn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Be){case-1:yn.top=0,yn.left=-bt*Wt;break;case 1:yn.bottom=0,yn.left=-bt*Wt;break;case 0:yn.bottom=0,yn.left=Wt;break}return ee.createElement("div",{style:yn})},fe=ue;function me(Xe){if(Xe==null)throw new TypeError("Cannot destructure "+Xe)}var be=ae(52487),Ae=ae(74416),De=ae(34280),We=ae(45680),nt=ae(77900),qe=ae(639);function ot(Xe,lt){var Be=ee.useState(!1),bt=(0,be.Z)(Be,2),Wt=bt[0],yn=bt[1];(0,De.Z)(function(){if(Wt)return Xe(),function(){lt()}},[Wt]),(0,De.Z)(function(){return yn(!0),function(){yn(!1)}},[])}var mt=ot,at=ae(34061),vt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],wt=ee.forwardRef(function(Xe,lt){var Be=Xe.className,bt=Xe.style,Wt=Xe.motion,yn=Xe.motionNodes,On=Xe.motionType,Pt=Xe.onMotionStart,Vt=Xe.onMotionEnd,zt=Xe.active,pn=Xe.treeNodeRequiredProps,Tn=(0,Ae.Z)(Xe,vt),gn=ee.useState(!0),Mt=(0,be.Z)(gn,2),Un=Mt[0],Yt=Mt[1],on=ee.useContext(he.k),mn=on.prefixCls,er=yn&&On!=="hide";(0,De.Z)(function(){yn&&er!==Un&&Yt(er)},[yn]);var Sn=function(){yn&&Pt()},ht=ee.useRef(!1),tr=function(){yn&&!ht.current&&(ht.current=!0,Vt())};mt(Sn,tr);var lr=function(yr){er===yr&&tr()};return yn?ee.createElement(nt.default,(0,oe.Z)({ref:lt,visible:Un},Wt,{motionAppear:On==="show",onVisibleChanged:lr}),function(qt,yr){var ri=qt.className,Or=qt.style;return ee.createElement("div",{ref:yr,className:$e()("".concat(mn,"-treenode-motion"),ri),style:Or},yn.map(function(Nn){var ui=Object.assign({},(me(Nn.data),Nn.data)),$r=Nn.title,or=Nn.key,Kr=Nn.isStart,oi=Nn.isEnd;delete ui.children;var Me=(0,at.H8)(or,pn);return ee.createElement(qe.Z,(0,oe.Z)({},ui,Me,{title:$r,active:zt,data:Nn.data,key:or,isStart:Kr,isEnd:oi}))}))}):ee.createElement(qe.Z,(0,oe.Z)({domRef:lt,className:Be,style:bt},Tn,{active:zt}))}),At=wt;function Ht(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Be=Xe.length,bt=lt.length;if(Math.abs(Be-bt)!==1)return{add:!1,key:null};function Wt(yn,On){var Pt=new Map;yn.forEach(function(zt){Pt.set(zt,!0)});var Vt=On.filter(function(zt){return!Pt.has(zt)});return Vt.length===1?Vt[0]:null}return Be<bt?{add:!0,key:Wt(Xe,lt)}:{add:!1,key:Wt(lt,Xe)}}function Qt(Xe,lt,Be){var bt=Xe.findIndex(function(Pt){return Pt.key===Be}),Wt=Xe[bt+1],yn=lt.findIndex(function(Pt){return Pt.key===Be});if(Wt){var On=lt.findIndex(function(Pt){return Pt.key===Wt.key});return lt.slice(yn+1,On)}return lt.slice(yn+1)}var Zt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ln={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Nt=function(){},gt="RC_TREE_MOTION_".concat(Math.random()),ct={key:gt},Jt={key:gt,level:0,index:0,pos:"0",node:ct,nodes:[ct]},sn={parent:null,children:[],pos:Jt.pos,data:ct,title:null,key:gt,isStart:[],isEnd:[]};function It(Xe,lt,Be,bt){return lt===!1||!Be?Xe:Xe.slice(0,Math.ceil(Be/bt)+1)}function wn(Xe){var lt=Xe.key,Be=Xe.pos;return(0,at.km)(lt,Be)}function bn(Xe){for(var lt=String(Xe.data.key),Be=Xe;Be.parent;)Be=Be.parent,lt="".concat(Be.data.key," > ").concat(lt);return lt}var _n=ee.forwardRef(function(Xe,lt){var Be=Xe.prefixCls,bt=Xe.data,Wt=Xe.selectable,yn=Xe.checkable,On=Xe.expandedKeys,Pt=Xe.selectedKeys,Vt=Xe.checkedKeys,zt=Xe.loadedKeys,pn=Xe.loadingKeys,Tn=Xe.halfCheckedKeys,gn=Xe.keyEntities,Mt=Xe.disabled,Un=Xe.dragging,Yt=Xe.dragOverNodeKey,on=Xe.dropPosition,mn=Xe.motion,er=Xe.height,Sn=Xe.itemHeight,ht=Xe.virtual,tr=Xe.scrollWidth,lr=Xe.focusable,qt=Xe.activeItem,yr=Xe.focused,ri=Xe.tabIndex,Or=Xe.onKeyDown,Nn=Xe.onFocus,ui=Xe.onBlur,$r=Xe.onActiveChange,or=Xe.onListChangeStart,Kr=Xe.onListChangeEnd,oi=(0,Ae.Z)(Xe,Zt),Me=ee.useRef(null),kr=ee.useRef(null);ee.useImperativeHandle(lt,function(){return{scrollTo:function(xn){Me.current.scrollTo(xn)},getIndentWidth:function(){return kr.current.offsetWidth}}});var Pr=ee.useState(On),ei=(0,be.Z)(Pr,2),Ii=ei[0],Di=ei[1],Ti=ee.useState(bt),Vr=(0,be.Z)(Ti,2),Fr=Vr[0],dn=Vr[1],hn=ee.useState(bt),un=(0,be.Z)(hn,2),Ur=un[0],Tr=un[1],Zr=ee.useState([]),sr=(0,be.Z)(Zr,2),Rr=sr[0],Cn=sr[1],fn=ee.useState(null),Wr=(0,be.Z)(fn,2),kt=Wr[0],Gn=Wr[1],vr=ee.useRef(bt);vr.current=bt;function Qr(){var Dn=vr.current;dn(Dn),Tr(Dn),Cn([]),Gn(null),Kr()}(0,De.Z)(function(){Di(On);var Dn=Ht(Ii,On);if(Dn.key!==null)if(Dn.add){var xn=Fr.findIndex(function(ti){var Si=ti.key;return Si===Dn.key}),Ge=It(Qt(Fr,bt,Dn.key),ht,er,Sn),Jr=Fr.slice();Jr.splice(xn+1,0,sn),Tr(Jr),Cn(Ge),Gn("show")}else{var Hr=bt.findIndex(function(ti){var Si=ti.key;return Si===Dn.key}),Jn=It(Qt(bt,Fr,Dn.key),ht,er,Sn),hi=bt.slice();hi.splice(Hr+1,0,sn),Tr(hi),Cn(Jn),Gn("hide")}else Fr!==bt&&(dn(bt),Tr(bt))},[On,bt]),ee.useEffect(function(){Un||Qr()},[Un]);var nn=mn?Ur:bt,Qn={expandedKeys:On,selectedKeys:Pt,loadedKeys:zt,loadingKeys:pn,checkedKeys:Vt,halfCheckedKeys:Tn,dragOverNodeKey:Yt,dropPosition:on,keyEntities:gn};return ee.createElement(ee.Fragment,null,yr&&qt&&ee.createElement("span",{style:ln,"aria-live":"assertive"},bn(qt)),ee.createElement("div",null,ee.createElement("input",{style:ln,disabled:lr===!1||Mt,tabIndex:lr!==!1?ri:null,onKeyDown:Or,onFocus:Nn,onBlur:ui,value:"",onChange:Nt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Be,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Be,"-indent")},ee.createElement("div",{ref:kr,className:"".concat(Be,"-indent-unit")}))),ee.createElement(We.Z,(0,oe.Z)({},oi,{data:nn,itemKey:wn,height:er,fullHeight:!1,virtual:ht,itemHeight:Sn,scrollWidth:tr,prefixCls:"".concat(Be,"-list"),ref:Me,role:"tree",onVisibleChange:function(xn){xn.every(function(Ge){return wn(Ge)!==gt})&&Qr()}}),function(Dn){var xn=Dn.pos,Ge=Object.assign({},(me(Dn.data),Dn.data)),Jr=Dn.title,Hr=Dn.key,Jn=Dn.isStart,hi=Dn.isEnd,ti=(0,at.km)(Hr,xn);delete Ge.key,delete Ge.children;var Si=(0,at.H8)(ti,Qn);return ee.createElement(At,(0,oe.Z)({},Ge,Si,{title:Jr,active:!!qt&&Hr===qt.key,pos:xn,data:Dn.data,isStart:Jn,isEnd:hi,motion:mn,motionNodes:Hr===gt?Rr:null,motionType:kt,onMotionStart:or,onMotionEnd:Qr,treeNodeRequiredProps:Qn,onMouseMove:function(){$r(null)}}))}))}),Xt=_n,zn=ae(82661),Ot=ae(34643),jn=ae(65065),cr=10,it=function(Xe){(0,st.Z)(Be,Xe);var lt=(0,Qe.Z)(Be);function Be(){var bt;(0,Ve.Z)(this,Be);for(var Wt=arguments.length,yn=new Array(Wt),On=0;On<Wt;On++)yn[On]=arguments[On];return bt=lt.call.apply(lt,[this].concat(yn)),(0,Ue.Z)((0,ze.Z)(bt),"destroyed",!1),(0,Ue.Z)((0,ze.Z)(bt),"delayedDragEnterLogic",void 0),(0,Ue.Z)((0,ze.Z)(bt),"loadingRetryTimes",{}),(0,Ue.Z)((0,ze.Z)(bt),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,at.w$)()}),(0,Ue.Z)((0,ze.Z)(bt),"dragStartMousePosition",null),(0,Ue.Z)((0,ze.Z)(bt),"dragNodeProps",null),(0,Ue.Z)((0,ze.Z)(bt),"currentMouseOverDroppableNodeKey",null),(0,Ue.Z)((0,ze.Z)(bt),"listRef",ee.createRef()),(0,Ue.Z)((0,ze.Z)(bt),"onNodeDragStart",function(Pt,Vt){var zt=bt.state,pn=zt.expandedKeys,Tn=zt.keyEntities,gn=bt.props.onDragStart,Mt=Vt.eventKey;bt.dragNodeProps=Vt,bt.dragStartMousePosition={x:Pt.clientX,y:Pt.clientY};var Un=(0,zn._5)(pn,Mt);bt.setState({draggingNodeKey:Mt,dragChildrenKeys:(0,zn.wA)(Mt,Tn),indent:bt.listRef.current.getIndentWidth()}),bt.setExpandedKeys(Un),window.addEventListener("dragend",bt.onWindowDragEnd),gn==null||gn({event:Pt,node:(0,at.F)(Vt)})}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeDragEnter",function(Pt,Vt){var zt=bt.state,pn=zt.expandedKeys,Tn=zt.keyEntities,gn=zt.dragChildrenKeys,Mt=zt.flattenNodes,Un=zt.indent,Yt=bt.props,on=Yt.onDragEnter,mn=Yt.onExpand,er=Yt.allowDrop,Sn=Yt.direction,ht=Vt.pos,tr=Vt.eventKey;if(bt.currentMouseOverDroppableNodeKey!==tr&&(bt.currentMouseOverDroppableNodeKey=tr),!bt.dragNodeProps){bt.resetDragState();return}var lr=(0,zn.OM)(Pt,bt.dragNodeProps,Vt,Un,bt.dragStartMousePosition,er,Mt,Tn,pn,Sn),qt=lr.dropPosition,yr=lr.dropLevelOffset,ri=lr.dropTargetKey,Or=lr.dropContainerKey,Nn=lr.dropTargetPos,ui=lr.dropAllowed,$r=lr.dragOverNodeKey;if(gn.includes(ri)||!ui){bt.resetDragState();return}if(bt.delayedDragEnterLogic||(bt.delayedDragEnterLogic={}),Object.keys(bt.delayedDragEnterLogic).forEach(function(or){clearTimeout(bt.delayedDragEnterLogic[or])}),bt.dragNodeProps.eventKey!==Vt.eventKey&&(Pt.persist(),bt.delayedDragEnterLogic[ht]=window.setTimeout(function(){if(bt.state.draggingNodeKey!==null){var or=(0,ke.Z)(pn),Kr=(0,jn.Z)(Tn,Vt.eventKey);Kr&&(Kr.children||[]).length&&(or=(0,zn.L0)(pn,Vt.eventKey)),bt.props.hasOwnProperty("expandedKeys")||bt.setExpandedKeys(or),mn==null||mn(or,{node:(0,at.F)(Vt),expanded:!0,nativeEvent:Pt.nativeEvent})}},800)),bt.dragNodeProps.eventKey===ri&&yr===0){bt.resetDragState();return}bt.setState({dragOverNodeKey:$r,dropPosition:qt,dropLevelOffset:yr,dropTargetKey:ri,dropContainerKey:Or,dropTargetPos:Nn,dropAllowed:ui}),on==null||on({event:Pt,node:(0,at.F)(Vt),expandedKeys:pn})}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeDragOver",function(Pt,Vt){var zt=bt.state,pn=zt.dragChildrenKeys,Tn=zt.flattenNodes,gn=zt.keyEntities,Mt=zt.expandedKeys,Un=zt.indent,Yt=bt.props,on=Yt.onDragOver,mn=Yt.allowDrop,er=Yt.direction;if(bt.dragNodeProps){var Sn=(0,zn.OM)(Pt,bt.dragNodeProps,Vt,Un,bt.dragStartMousePosition,mn,Tn,gn,Mt,er),ht=Sn.dropPosition,tr=Sn.dropLevelOffset,lr=Sn.dropTargetKey,qt=Sn.dropContainerKey,yr=Sn.dropTargetPos,ri=Sn.dropAllowed,Or=Sn.dragOverNodeKey;pn.includes(lr)||!ri||(bt.dragNodeProps.eventKey===lr&&tr===0?bt.state.dropPosition===null&&bt.state.dropLevelOffset===null&&bt.state.dropTargetKey===null&&bt.state.dropContainerKey===null&&bt.state.dropTargetPos===null&&bt.state.dropAllowed===!1&&bt.state.dragOverNodeKey===null||bt.resetDragState():ht===bt.state.dropPosition&&tr===bt.state.dropLevelOffset&&lr===bt.state.dropTargetKey&&qt===bt.state.dropContainerKey&&yr===bt.state.dropTargetPos&&ri===bt.state.dropAllowed&&Or===bt.state.dragOverNodeKey||bt.setState({dropPosition:ht,dropLevelOffset:tr,dropTargetKey:lr,dropContainerKey:qt,dropTargetPos:yr,dropAllowed:ri,dragOverNodeKey:Or}),on==null||on({event:Pt,node:(0,at.F)(Vt)}))}}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeDragLeave",function(Pt,Vt){bt.currentMouseOverDroppableNodeKey===Vt.eventKey&&!Pt.currentTarget.contains(Pt.relatedTarget)&&(bt.resetDragState(),bt.currentMouseOverDroppableNodeKey=null);var zt=bt.props.onDragLeave;zt==null||zt({event:Pt,node:(0,at.F)(Vt)})}),(0,Ue.Z)((0,ze.Z)(bt),"onWindowDragEnd",function(Pt){bt.onNodeDragEnd(Pt,null,!0),window.removeEventListener("dragend",bt.onWindowDragEnd)}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeDragEnd",function(Pt,Vt){var zt=bt.props.onDragEnd;bt.setState({dragOverNodeKey:null}),bt.cleanDragState(),zt==null||zt({event:Pt,node:(0,at.F)(Vt)}),bt.dragNodeProps=null,window.removeEventListener("dragend",bt.onWindowDragEnd)}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeDrop",function(Pt,Vt){var zt,pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Tn=bt.state,gn=Tn.dragChildrenKeys,Mt=Tn.dropPosition,Un=Tn.dropTargetKey,Yt=Tn.dropTargetPos,on=Tn.dropAllowed;if(on){var mn=bt.props.onDrop;if(bt.setState({dragOverNodeKey:null}),bt.cleanDragState(),Un!==null){var er=(0,Ie.Z)((0,Ie.Z)({},(0,at.H8)(Un,bt.getTreeNodeRequiredProps())),{},{active:((zt=bt.getActiveItem())===null||zt===void 0?void 0:zt.key)===Un,data:(0,jn.Z)(bt.state.keyEntities,Un).node}),Sn=gn.includes(Un);(0,te.ZP)(!Sn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ht=(0,zn.yx)(Yt),tr={event:Pt,node:(0,at.F)(er),dragNode:bt.dragNodeProps?(0,at.F)(bt.dragNodeProps):null,dragNodesKeys:[bt.dragNodeProps.eventKey].concat(gn),dropToGap:Mt!==0,dropPosition:Mt+Number(ht[ht.length-1])};pn||mn==null||mn(tr),bt.dragNodeProps=null}}}),(0,Ue.Z)((0,ze.Z)(bt),"cleanDragState",function(){var Pt=bt.state.draggingNodeKey;Pt!==null&&bt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),bt.dragStartMousePosition=null,bt.currentMouseOverDroppableNodeKey=null}),(0,Ue.Z)((0,ze.Z)(bt),"triggerExpandActionExpand",function(Pt,Vt){var zt=bt.state,pn=zt.expandedKeys,Tn=zt.flattenNodes,gn=Vt.expanded,Mt=Vt.key,Un=Vt.isLeaf;if(!(Un||Pt.shiftKey||Pt.metaKey||Pt.ctrlKey)){var Yt=Tn.filter(function(mn){return mn.key===Mt})[0],on=(0,at.F)((0,Ie.Z)((0,Ie.Z)({},(0,at.H8)(Mt,bt.getTreeNodeRequiredProps())),{},{data:Yt.data}));bt.setExpandedKeys(gn?(0,zn._5)(pn,Mt):(0,zn.L0)(pn,Mt)),bt.onNodeExpand(Pt,on)}}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeClick",function(Pt,Vt){var zt=bt.props,pn=zt.onClick,Tn=zt.expandAction;Tn==="click"&&bt.triggerExpandActionExpand(Pt,Vt),pn==null||pn(Pt,Vt)}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeDoubleClick",function(Pt,Vt){var zt=bt.props,pn=zt.onDoubleClick,Tn=zt.expandAction;Tn==="doubleClick"&&bt.triggerExpandActionExpand(Pt,Vt),pn==null||pn(Pt,Vt)}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeSelect",function(Pt,Vt){var zt=bt.state.selectedKeys,pn=bt.state,Tn=pn.keyEntities,gn=pn.fieldNames,Mt=bt.props,Un=Mt.onSelect,Yt=Mt.multiple,on=Vt.selected,mn=Vt[gn.key],er=!on;er?Yt?zt=(0,zn.L0)(zt,mn):zt=[mn]:zt=(0,zn._5)(zt,mn);var Sn=zt.map(function(ht){var tr=(0,jn.Z)(Tn,ht);return tr?tr.node:null}).filter(Boolean);bt.setUncontrolledState({selectedKeys:zt}),Un==null||Un(zt,{event:"select",selected:er,node:Vt,selectedNodes:Sn,nativeEvent:Pt.nativeEvent})}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeCheck",function(Pt,Vt,zt){var pn=bt.state,Tn=pn.keyEntities,gn=pn.checkedKeys,Mt=pn.halfCheckedKeys,Un=bt.props,Yt=Un.checkStrictly,on=Un.onCheck,mn=Vt.key,er,Sn={event:"check",node:Vt,checked:zt,nativeEvent:Pt.nativeEvent};if(Yt){var ht=zt?(0,zn.L0)(gn,mn):(0,zn._5)(gn,mn),tr=(0,zn._5)(Mt,mn);er={checked:ht,halfChecked:tr},Sn.checkedNodes=ht.map(function(Nn){return(0,jn.Z)(Tn,Nn)}).filter(Boolean).map(function(Nn){return Nn.node}),bt.setUncontrolledState({checkedKeys:ht})}else{var lr=(0,Ot.S)([].concat((0,ke.Z)(gn),[mn]),!0,Tn),qt=lr.checkedKeys,yr=lr.halfCheckedKeys;if(!zt){var ri=new Set(qt);ri.delete(mn);var Or=(0,Ot.S)(Array.from(ri),{checked:!1,halfCheckedKeys:yr},Tn);qt=Or.checkedKeys,yr=Or.halfCheckedKeys}er=qt,Sn.checkedNodes=[],Sn.checkedNodesPositions=[],Sn.halfCheckedKeys=yr,qt.forEach(function(Nn){var ui=(0,jn.Z)(Tn,Nn);if(ui){var $r=ui.node,or=ui.pos;Sn.checkedNodes.push($r),Sn.checkedNodesPositions.push({node:$r,pos:or})}}),bt.setUncontrolledState({checkedKeys:qt},!1,{halfCheckedKeys:yr})}on==null||on(er,Sn)}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeLoad",function(Pt){var Vt,zt=Pt.key,pn=bt.state.keyEntities,Tn=(0,jn.Z)(pn,zt);if(!(Tn!=null&&(Vt=Tn.children)!==null&&Vt!==void 0&&Vt.length)){var gn=new Promise(function(Mt,Un){bt.setState(function(Yt){var on=Yt.loadedKeys,mn=on===void 0?[]:on,er=Yt.loadingKeys,Sn=er===void 0?[]:er,ht=bt.props,tr=ht.loadData,lr=ht.onLoad;if(!tr||mn.includes(zt)||Sn.includes(zt))return null;var qt=tr(Pt);return qt.then(function(){var yr=bt.state.loadedKeys,ri=(0,zn.L0)(yr,zt);lr==null||lr(ri,{event:"load",node:Pt}),bt.setUncontrolledState({loadedKeys:ri}),bt.setState(function(Or){return{loadingKeys:(0,zn._5)(Or.loadingKeys,zt)}}),Mt()}).catch(function(yr){if(bt.setState(function(Or){return{loadingKeys:(0,zn._5)(Or.loadingKeys,zt)}}),bt.loadingRetryTimes[zt]=(bt.loadingRetryTimes[zt]||0)+1,bt.loadingRetryTimes[zt]>=cr){var ri=bt.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),bt.setUncontrolledState({loadedKeys:(0,zn.L0)(ri,zt)}),Mt()}Un(yr)}),{loadingKeys:(0,zn.L0)(Sn,zt)}})});return gn.catch(function(){}),gn}}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeMouseEnter",function(Pt,Vt){var zt=bt.props.onMouseEnter;zt==null||zt({event:Pt,node:Vt})}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeMouseLeave",function(Pt,Vt){var zt=bt.props.onMouseLeave;zt==null||zt({event:Pt,node:Vt})}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeContextMenu",function(Pt,Vt){var zt=bt.props.onRightClick;zt&&(Pt.preventDefault(),zt({event:Pt,node:Vt}))}),(0,Ue.Z)((0,ze.Z)(bt),"onFocus",function(){var Pt=bt.props.onFocus;bt.setState({focused:!0});for(var Vt=arguments.length,zt=new Array(Vt),pn=0;pn<Vt;pn++)zt[pn]=arguments[pn];Pt==null||Pt.apply(void 0,zt)}),(0,Ue.Z)((0,ze.Z)(bt),"onBlur",function(){var Pt=bt.props.onBlur;bt.setState({focused:!1}),bt.onActiveChange(null);for(var Vt=arguments.length,zt=new Array(Vt),pn=0;pn<Vt;pn++)zt[pn]=arguments[pn];Pt==null||Pt.apply(void 0,zt)}),(0,Ue.Z)((0,ze.Z)(bt),"getTreeNodeRequiredProps",function(){var Pt=bt.state,Vt=Pt.expandedKeys,zt=Pt.selectedKeys,pn=Pt.loadedKeys,Tn=Pt.loadingKeys,gn=Pt.checkedKeys,Mt=Pt.halfCheckedKeys,Un=Pt.dragOverNodeKey,Yt=Pt.dropPosition,on=Pt.keyEntities;return{expandedKeys:Vt||[],selectedKeys:zt||[],loadedKeys:pn||[],loadingKeys:Tn||[],checkedKeys:gn||[],halfCheckedKeys:Mt||[],dragOverNodeKey:Un,dropPosition:Yt,keyEntities:on}}),(0,Ue.Z)((0,ze.Z)(bt),"setExpandedKeys",function(Pt){var Vt=bt.state,zt=Vt.treeData,pn=Vt.fieldNames,Tn=(0,at.oH)(zt,Pt,pn);bt.setUncontrolledState({expandedKeys:Pt,flattenNodes:Tn},!0)}),(0,Ue.Z)((0,ze.Z)(bt),"onNodeExpand",function(Pt,Vt){var zt=bt.state.expandedKeys,pn=bt.state,Tn=pn.listChanging,gn=pn.fieldNames,Mt=bt.props,Un=Mt.onExpand,Yt=Mt.loadData,on=Vt.expanded,mn=Vt[gn.key];if(!Tn){var er=zt.includes(mn),Sn=!on;if((0,te.ZP)(on&&er||!on&&!er,"Expand state not sync with index check"),zt=Sn?(0,zn.L0)(zt,mn):(0,zn._5)(zt,mn),bt.setExpandedKeys(zt),Un==null||Un(zt,{node:Vt,expanded:Sn,nativeEvent:Pt.nativeEvent}),Sn&&Yt){var ht=bt.onNodeLoad(Vt);ht&&ht.then(function(){var tr=(0,at.oH)(bt.state.treeData,zt,gn);bt.setUncontrolledState({flattenNodes:tr})}).catch(function(){var tr=bt.state.expandedKeys,lr=(0,zn._5)(tr,mn);bt.setExpandedKeys(lr)})}}}),(0,Ue.Z)((0,ze.Z)(bt),"onListChangeStart",function(){bt.setUncontrolledState({listChanging:!0})}),(0,Ue.Z)((0,ze.Z)(bt),"onListChangeEnd",function(){setTimeout(function(){bt.setUncontrolledState({listChanging:!1})})}),(0,Ue.Z)((0,ze.Z)(bt),"onActiveChange",function(Pt){var Vt=bt.state.activeKey,zt=bt.props,pn=zt.onActiveChange,Tn=zt.itemScrollOffset,gn=Tn===void 0?0:Tn;Vt!==Pt&&(bt.setState({activeKey:Pt}),Pt!==null&&bt.scrollTo({key:Pt,offset:gn}),pn==null||pn(Pt))}),(0,Ue.Z)((0,ze.Z)(bt),"getActiveItem",function(){var Pt=bt.state,Vt=Pt.activeKey,zt=Pt.flattenNodes;return Vt===null?null:zt.find(function(pn){var Tn=pn.key;return Tn===Vt})||null}),(0,Ue.Z)((0,ze.Z)(bt),"offsetActiveKey",function(Pt){var Vt=bt.state,zt=Vt.flattenNodes,pn=Vt.activeKey,Tn=zt.findIndex(function(Un){var Yt=Un.key;return Yt===pn});Tn===-1&&Pt<0&&(Tn=zt.length),Tn=(Tn+Pt+zt.length)%zt.length;var gn=zt[Tn];if(gn){var Mt=gn.key;bt.onActiveChange(Mt)}else bt.onActiveChange(null)}),(0,Ue.Z)((0,ze.Z)(bt),"onKeyDown",function(Pt){var Vt=bt.state,zt=Vt.activeKey,pn=Vt.expandedKeys,Tn=Vt.checkedKeys,gn=Vt.fieldNames,Mt=bt.props,Un=Mt.onKeyDown,Yt=Mt.checkable,on=Mt.selectable;switch(Pt.which){case Dt.Z.UP:{bt.offsetActiveKey(-1),Pt.preventDefault();break}case Dt.Z.DOWN:{bt.offsetActiveKey(1),Pt.preventDefault();break}}var mn=bt.getActiveItem();if(mn&&mn.data){var er=bt.getTreeNodeRequiredProps(),Sn=mn.data.isLeaf===!1||!!(mn.data[gn.children]||[]).length,ht=(0,at.F)((0,Ie.Z)((0,Ie.Z)({},(0,at.H8)(zt,er)),{},{data:mn.data,active:!0}));switch(Pt.which){case Dt.Z.LEFT:{Sn&&pn.includes(zt)?bt.onNodeExpand({},ht):mn.parent&&bt.onActiveChange(mn.parent.key),Pt.preventDefault();break}case Dt.Z.RIGHT:{Sn&&!pn.includes(zt)?bt.onNodeExpand({},ht):mn.children&&mn.children.length&&bt.onActiveChange(mn.children[0].key),Pt.preventDefault();break}case Dt.Z.ENTER:case Dt.Z.SPACE:{Yt&&!ht.disabled&&ht.checkable!==!1&&!ht.disableCheckbox?bt.onNodeCheck({},ht,!Tn.includes(zt)):!Yt&&on&&!ht.disabled&&ht.selectable!==!1&&bt.onNodeSelect({},ht);break}}}Un==null||Un(Pt)}),(0,Ue.Z)((0,ze.Z)(bt),"setUncontrolledState",function(Pt){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!bt.destroyed){var pn=!1,Tn=!0,gn={};Object.keys(Pt).forEach(function(Mt){if(bt.props.hasOwnProperty(Mt)){Tn=!1;return}pn=!0,gn[Mt]=Pt[Mt]}),pn&&(!Vt||Tn)&&bt.setState((0,Ie.Z)((0,Ie.Z)({},gn),zt))}}),(0,Ue.Z)((0,ze.Z)(bt),"scrollTo",function(Pt){bt.listRef.current.scrollTo(Pt)}),bt}return(0,Te.Z)(Be,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Wt=this.props,yn=Wt.activeKey,On=Wt.itemScrollOffset,Pt=On===void 0?0:On;yn!==void 0&&yn!==this.state.activeKey&&(this.setState({activeKey:yn}),yn!==null&&this.scrollTo({key:yn,offset:Pt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Wt=this.state,yn=Wt.focused,On=Wt.flattenNodes,Pt=Wt.keyEntities,Vt=Wt.draggingNodeKey,zt=Wt.activeKey,pn=Wt.dropLevelOffset,Tn=Wt.dropContainerKey,gn=Wt.dropTargetKey,Mt=Wt.dropPosition,Un=Wt.dragOverNodeKey,Yt=Wt.indent,on=this.props,mn=on.prefixCls,er=on.className,Sn=on.style,ht=on.showLine,tr=on.focusable,lr=on.tabIndex,qt=lr===void 0?0:lr,yr=on.selectable,ri=on.showIcon,Or=on.icon,Nn=on.switcherIcon,ui=on.draggable,$r=on.checkable,or=on.checkStrictly,Kr=on.disabled,oi=on.motion,Me=on.loadData,kr=on.filterTreeNode,Pr=on.height,ei=on.itemHeight,Ii=on.scrollWidth,Di=on.virtual,Ti=on.titleRender,Vr=on.dropIndicatorRender,Fr=on.onContextMenu,dn=on.onScroll,hn=on.direction,un=on.rootClassName,Ur=on.rootStyle,Tr=(0,Fe.Z)(this.props,{aria:!0,data:!0}),Zr;ui&&((0,Pe.Z)(ui)==="object"?Zr=ui:typeof ui=="function"?Zr={nodeDraggable:ui}:Zr={});var sr={prefixCls:mn,selectable:yr,showIcon:ri,icon:Or,switcherIcon:Nn,draggable:Zr,draggingNodeKey:Vt,checkable:$r,checkStrictly:or,disabled:Kr,keyEntities:Pt,dropLevelOffset:pn,dropContainerKey:Tn,dropTargetKey:gn,dropPosition:Mt,dragOverNodeKey:Un,indent:Yt,direction:hn,dropIndicatorRender:Vr,loadData:Me,filterTreeNode:kr,titleRender:Ti,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ee.createElement(he.k.Provider,{value:sr},ee.createElement("div",{className:$e()(mn,er,un,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(mn,"-show-line"),ht),"".concat(mn,"-focused"),yn),"".concat(mn,"-active-focused"),zt!==null)),style:Ur},ee.createElement(Xt,(0,oe.Z)({ref:this.listRef,prefixCls:mn,style:Sn,data:On,disabled:Kr,selectable:yr,checkable:!!$r,motion:oi,dragging:Vt!==null,height:Pr,itemHeight:ei,virtual:Di,focusable:tr,focused:yn,tabIndex:qt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Fr,onScroll:dn,scrollWidth:Ii},this.getTreeNodeRequiredProps(),Tr))))}}],[{key:"getDerivedStateFromProps",value:function(Wt,yn){var On=yn.prevProps,Pt={prevProps:Wt};function Vt(qt){return!On&&Wt.hasOwnProperty(qt)||On&&On[qt]!==Wt[qt]}var zt,pn=yn.fieldNames;if(Vt("fieldNames")&&(pn=(0,at.w$)(Wt.fieldNames),Pt.fieldNames=pn),Vt("treeData")?zt=Wt.treeData:Vt("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),zt=(0,at.zn)(Wt.children)),zt){Pt.treeData=zt;var Tn=(0,at.I8)(zt,{fieldNames:pn});Pt.keyEntities=(0,Ie.Z)((0,Ue.Z)({},gt,Jt),Tn.keyEntities)}var gn=Pt.keyEntities||yn.keyEntities;if(Vt("expandedKeys")||On&&Vt("autoExpandParent"))Pt.expandedKeys=Wt.autoExpandParent||!On&&Wt.defaultExpandParent?(0,zn.r7)(Wt.expandedKeys,gn):Wt.expandedKeys;else if(!On&&Wt.defaultExpandAll){var Mt=(0,Ie.Z)({},gn);delete Mt[gt];var Un=[];Object.keys(Mt).forEach(function(qt){var yr=Mt[qt];yr.children&&yr.children.length&&Un.push(yr.key)}),Pt.expandedKeys=Un}else!On&&Wt.defaultExpandedKeys&&(Pt.expandedKeys=Wt.autoExpandParent||Wt.defaultExpandParent?(0,zn.r7)(Wt.defaultExpandedKeys,gn):Wt.defaultExpandedKeys);if(Pt.expandedKeys||delete Pt.expandedKeys,zt||Pt.expandedKeys){var Yt=(0,at.oH)(zt||yn.treeData,Pt.expandedKeys||yn.expandedKeys,pn);Pt.flattenNodes=Yt}if(Wt.selectable&&(Vt("selectedKeys")?Pt.selectedKeys=(0,zn.BT)(Wt.selectedKeys,Wt):!On&&Wt.defaultSelectedKeys&&(Pt.selectedKeys=(0,zn.BT)(Wt.defaultSelectedKeys,Wt))),Wt.checkable){var on;if(Vt("checkedKeys")?on=(0,zn.E6)(Wt.checkedKeys)||{}:!On&&Wt.defaultCheckedKeys?on=(0,zn.E6)(Wt.defaultCheckedKeys)||{}:zt&&(on=(0,zn.E6)(Wt.checkedKeys)||{checkedKeys:yn.checkedKeys,halfCheckedKeys:yn.halfCheckedKeys}),on){var mn=on,er=mn.checkedKeys,Sn=er===void 0?[]:er,ht=mn.halfCheckedKeys,tr=ht===void 0?[]:ht;if(!Wt.checkStrictly){var lr=(0,Ot.S)(Sn,!0,gn);Sn=lr.checkedKeys,tr=lr.halfCheckedKeys}Pt.checkedKeys=Sn,Pt.halfCheckedKeys=tr}}return Vt("loadedKeys")&&(Pt.loadedKeys=Wt.loadedKeys),Pt}}]),Be}(ee.Component);(0,Ue.Z)(it,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:fe,allowDrop:function(){return!0},expandAction:!1}),(0,Ue.Z)(it,"TreeNode",qe.Z);var _e=it,Re=_e},82661:function(Ze,Ee,ae){"use strict";ae.d(Ee,{BT:function(){return ee},E6:function(){return fe},L0:function(){return Ue},OM:function(){return te},_5:function(){return Qe},r7:function(){return me},wA:function(){return $e},yx:function(){return St}});var oe=ae(80702),Pe=ae(62853),Ie=ae(48736),ke=ae(59301),Ve=ae(639),Te=ae(65065),ze=ae(34061),st=null;function Qe(be,Ae){if(!be)return[];var De=be.slice(),We=De.indexOf(Ae);return We>=0&&De.splice(We,1),De}function Ue(be,Ae){var De=(be||[]).slice();return De.indexOf(Ae)===-1&&De.push(Ae),De}function St(be){return be.split("-")}function $e(be,Ae){var De=[],We=(0,Te.Z)(Ae,be);function nt(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];qe.forEach(function(ot){var mt=ot.key,at=ot.children;De.push(mt),nt(at)})}return nt(We.children),De}function Dt(be){if(be.parent){var Ae=St(be.pos);return Number(Ae[Ae.length-1])===be.parent.children.length-1}return!1}function Fe(be){var Ae=St(be.pos);return Number(Ae[Ae.length-1])===0}function te(be,Ae,De,We,nt,qe,ot,mt,at,vt){var wt,At=be.clientX,Ht=be.clientY,Qt=be.target.getBoundingClientRect(),Zt=Qt.top,ln=Qt.height,Nt=(vt==="rtl"?-1:1)*(((nt==null?void 0:nt.x)||0)-At),gt=(Nt-12)/We,ct=at.filter(function(Re){var Xe;return(Xe=mt[Re])===null||Xe===void 0||(Xe=Xe.children)===null||Xe===void 0?void 0:Xe.length}),Jt=(0,Te.Z)(mt,De.eventKey);if(Ht<Zt+ln/2){var sn=ot.findIndex(function(Re){return Re.key===Jt.key}),It=sn<=0?0:sn-1,wn=ot[It].key;Jt=(0,Te.Z)(mt,wn)}var bn=Jt.key,_n=Jt,Xt=Jt.key,zn=0,Ot=0;if(!ct.includes(bn))for(var jn=0;jn<gt&&Dt(Jt);jn+=1)Jt=Jt.parent,Ot+=1;var cr=Ae.data,it=Jt.node,_e=!0;return Fe(Jt)&&Jt.level===0&&Ht<Zt+ln/2&&qe({dragNode:cr,dropNode:it,dropPosition:-1})&&Jt.key===De.eventKey?zn=-1:(_n.children||[]).length&&ct.includes(Xt)?qe({dragNode:cr,dropNode:it,dropPosition:0})?zn=0:_e=!1:Ot===0?gt>-1.5?qe({dragNode:cr,dropNode:it,dropPosition:1})?zn=1:_e=!1:qe({dragNode:cr,dropNode:it,dropPosition:0})?zn=0:qe({dragNode:cr,dropNode:it,dropPosition:1})?zn=1:_e=!1:qe({dragNode:cr,dropNode:it,dropPosition:1})?zn=1:_e=!1,{dropPosition:zn,dropLevelOffset:Ot,dropTargetKey:Jt.key,dropTargetPos:Jt.pos,dragOverNodeKey:Xt,dropContainerKey:zn===0?null:((wt=Jt.parent)===null||wt===void 0?void 0:wt.key)||null,dropAllowed:_e}}function ee(be,Ae){if(be){var De=Ae.multiple;return De?be.slice():be.length?[be[0]]:be}}var he=function(Ae){return Ae};function ue(be,Ae){if(!be)return[];var De=Ae||{},We=De.processProps,nt=We===void 0?he:We,qe=Array.isArray(be)?be:[be];return qe.map(function(ot){var mt=ot.children,at=_objectWithoutProperties(ot,st),vt=ue(mt,Ae);return React.createElement(TreeNode,_extends({key:at.key},nt(at)),vt)})}function fe(be){if(!be)return null;var Ae;if(Array.isArray(be))Ae={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Pe.Z)(be)==="object")Ae={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,Ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function me(be,Ae){var De=new Set;function We(nt){if(!De.has(nt)){var qe=(0,Te.Z)(Ae,nt);if(qe){De.add(nt);var ot=qe.parent,mt=qe.node;mt.disabled||ot&&We(ot.key)}}}return(be||[]).forEach(function(nt){We(nt)}),(0,oe.Z)(De)}},34643:function(Ze,Ee,ae){"use strict";ae.d(Ee,{S:function(){return ze}});var oe=ae(48736),Pe=ae(65065);function Ie(st,Qe){var Ue=new Set;return st.forEach(function(St){Qe.has(St)||Ue.add(St)}),Ue}function ke(st){var Qe=st||{},Ue=Qe.disabled,St=Qe.disableCheckbox,$e=Qe.checkable;return!!(Ue||St)||$e===!1}function Ve(st,Qe,Ue,St){for(var $e=new Set(st),Dt=new Set,Fe=0;Fe<=Ue;Fe+=1){var te=Qe.get(Fe)||new Set;te.forEach(function(fe){var me=fe.key,be=fe.node,Ae=fe.children,De=Ae===void 0?[]:Ae;$e.has(me)&&!St(be)&&De.filter(function(We){return!St(We.node)}).forEach(function(We){$e.add(We.key)})})}for(var ee=new Set,he=Ue;he>=0;he-=1){var ue=Qe.get(he)||new Set;ue.forEach(function(fe){var me=fe.parent,be=fe.node;if(!(St(be)||!fe.parent||ee.has(fe.parent.key))){if(St(fe.parent.node)){ee.add(me.key);return}var Ae=!0,De=!1;(me.children||[]).filter(function(We){return!St(We.node)}).forEach(function(We){var nt=We.key,qe=$e.has(nt);Ae&&!qe&&(Ae=!1),!De&&(qe||Dt.has(nt))&&(De=!0)}),Ae&&$e.add(me.key),De&&Dt.add(me.key),ee.add(me.key)}})}return{checkedKeys:Array.from($e),halfCheckedKeys:Array.from(Ie(Dt,$e))}}function Te(st,Qe,Ue,St,$e){for(var Dt=new Set(st),Fe=new Set(Qe),te=0;te<=St;te+=1){var ee=Ue.get(te)||new Set;ee.forEach(function(me){var be=me.key,Ae=me.node,De=me.children,We=De===void 0?[]:De;!Dt.has(be)&&!Fe.has(be)&&!$e(Ae)&&We.filter(function(nt){return!$e(nt.node)}).forEach(function(nt){Dt.delete(nt.key)})})}Fe=new Set;for(var he=new Set,ue=St;ue>=0;ue-=1){var fe=Ue.get(ue)||new Set;fe.forEach(function(me){var be=me.parent,Ae=me.node;if(!($e(Ae)||!me.parent||he.has(me.parent.key))){if($e(me.parent.node)){he.add(be.key);return}var De=!0,We=!1;(be.children||[]).filter(function(nt){return!$e(nt.node)}).forEach(function(nt){var qe=nt.key,ot=Dt.has(qe);De&&!ot&&(De=!1),!We&&(ot||Fe.has(qe))&&(We=!0)}),De||Dt.delete(be.key),We&&Fe.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(Dt),halfCheckedKeys:Array.from(Ie(Fe,Dt))}}function ze(st,Qe,Ue,St){var $e=[],Dt;St?Dt=St:Dt=ke;var Fe=new Set(st.filter(function(ue){var fe=!!(0,Pe.Z)(Ue,ue);return fe||$e.push(ue),fe})),te=new Map,ee=0;Object.keys(Ue).forEach(function(ue){var fe=Ue[ue],me=fe.level,be=te.get(me);be||(be=new Set,te.set(me,be)),be.add(fe),ee=Math.max(ee,me)}),(0,oe.ZP)(!$e.length,"Tree missing follow keys: ".concat($e.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var he;return Qe===!0?he=Ve(Fe,te,ee,Dt):he=Te(Fe,Qe.halfCheckedKeys,te,ee,Dt),he}},65065:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return oe}});function oe(Pe,Ie){return Pe[Ie]}},34061:function(Ze,Ee,ae){"use strict";ae.d(Ee,{F:function(){return me},H8:function(){return fe},I8:function(){return ue},km:function(){return $e},oH:function(){return ee},w$:function(){return Dt},zn:function(){return te}});var oe=ae(62853),Pe=ae(80702),Ie=ae(77321),ke=ae(74416),Ve=ae(11592),Te=ae(2738),ze=ae(48736),st=ae(65065),Qe=["children"];function Ue(be,Ae){return"".concat(be,"-").concat(Ae)}function St(be){return be&&be.type&&be.type.isTreeNode}function $e(be,Ae){return be!=null?be:Ae}function Dt(be){var Ae=be||{},De=Ae.title,We=Ae._title,nt=Ae.key,qe=Ae.children,ot=De||"title";return{title:ot,_title:We||[ot],key:nt||"key",children:qe||"children"}}function Fe(be,Ae){var De=new Map;function We(nt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(nt||[]).forEach(function(ot){var mt=ot[Ae.key],at=ot[Ae.children];warning(mt!=null,"Tree node must have a certain key: [".concat(qe).concat(mt,"]"));var vt=String(mt);warning(!De.has(vt)||mt===null||mt===void 0,"Same 'key' exist in the Tree: ".concat(vt)),De.set(vt,!0),We(at,"".concat(qe).concat(vt," > "))})}We(be)}function te(be){function Ae(De){var We=(0,Ve.Z)(De);return We.map(function(nt){if(!St(nt))return(0,ze.ZP)(!nt,"Tree/TreeNode can only accept TreeNode as children."),null;var qe=nt.key,ot=nt.props,mt=ot.children,at=(0,ke.Z)(ot,Qe),vt=(0,Ie.Z)({key:qe},at),wt=Ae(mt);return wt.length&&(vt.children=wt),vt}).filter(function(nt){return nt})}return Ae(be)}function ee(be,Ae,De){var We=Dt(De),nt=We._title,qe=We.key,ot=We.children,mt=new Set(Ae===!0?[]:Ae),at=[];function vt(wt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return wt.map(function(Ht,Qt){for(var Zt=Ue(At?At.pos:"0",Qt),ln=$e(Ht[qe],Zt),Nt,gt=0;gt<nt.length;gt+=1){var ct=nt[gt];if(Ht[ct]!==void 0){Nt=Ht[ct];break}}var Jt=Object.assign((0,Te.Z)(Ht,[].concat((0,Pe.Z)(nt),[qe,ot])),{title:Nt,key:ln,parent:At,pos:Zt,children:null,data:Ht,isStart:[].concat((0,Pe.Z)(At?At.isStart:[]),[Qt===0]),isEnd:[].concat((0,Pe.Z)(At?At.isEnd:[]),[Qt===wt.length-1])});return at.push(Jt),Ae===!0||mt.has(ln)?Jt.children=vt(Ht[ot]||[],Jt):Jt.children=[],Jt})}return vt(be),at}function he(be,Ae,De){var We={};(0,oe.Z)(De)==="object"?We=De:We={externalGetKey:De},We=We||{};var nt=We,qe=nt.childrenPropName,ot=nt.externalGetKey,mt=nt.fieldNames,at=Dt(mt),vt=at.key,wt=at.children,At=qe||wt,Ht;ot?typeof ot=="string"?Ht=function(ln){return ln[ot]}:typeof ot=="function"&&(Ht=function(ln){return ot(ln)}):Ht=function(ln,Nt){return $e(ln[vt],Nt)};function Qt(Zt,ln,Nt,gt){var ct=Zt?Zt[At]:be,Jt=Zt?Ue(Nt.pos,ln):"0",sn=Zt?[].concat((0,Pe.Z)(gt),[Zt]):[];if(Zt){var It=Ht(Zt,Jt),wn={node:Zt,index:ln,pos:Jt,key:It,parentPos:Nt.node?Nt.pos:null,level:Nt.level+1,nodes:sn};Ae(wn)}ct&&ct.forEach(function(bn,_n){Qt(bn,_n,{node:Zt,pos:Jt,level:Nt?Nt.level+1:-1},sn)})}Qt(null)}function ue(be){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=Ae.initWrapper,We=Ae.processEntity,nt=Ae.onProcessFinished,qe=Ae.externalGetKey,ot=Ae.childrenPropName,mt=Ae.fieldNames,at=arguments.length>2?arguments[2]:void 0,vt=qe||at,wt={},At={},Ht={posEntities:wt,keyEntities:At};return De&&(Ht=De(Ht)||Ht),he(be,function(Qt){var Zt=Qt.node,ln=Qt.index,Nt=Qt.pos,gt=Qt.key,ct=Qt.parentPos,Jt=Qt.level,sn=Qt.nodes,It={node:Zt,nodes:sn,index:ln,key:gt,pos:Nt,level:Jt},wn=$e(gt,Nt);wt[Nt]=It,At[wn]=It,It.parent=wt[ct],It.parent&&(It.parent.children=It.parent.children||[],It.parent.children.push(It)),We&&We(It,Ht)},{externalGetKey:vt,childrenPropName:ot,fieldNames:mt}),nt&&nt(Ht),Ht}function fe(be,Ae){var De=Ae.expandedKeys,We=Ae.selectedKeys,nt=Ae.loadedKeys,qe=Ae.loadingKeys,ot=Ae.checkedKeys,mt=Ae.halfCheckedKeys,at=Ae.dragOverNodeKey,vt=Ae.dropPosition,wt=Ae.keyEntities,At=(0,st.Z)(wt,be),Ht={eventKey:be,expanded:De.indexOf(be)!==-1,selected:We.indexOf(be)!==-1,loaded:nt.indexOf(be)!==-1,loading:qe.indexOf(be)!==-1,checked:ot.indexOf(be)!==-1,halfChecked:mt.indexOf(be)!==-1,pos:String(At?At.pos:""),dragOver:at===be&&vt===0,dragOverGapTop:at===be&&vt===-1,dragOverGapBottom:at===be&&vt===1};return Ht}function me(be){var Ae=be.data,De=be.expanded,We=be.selected,nt=be.checked,qe=be.loaded,ot=be.loading,mt=be.halfChecked,at=be.dragOver,vt=be.dragOverGapTop,wt=be.dragOverGapBottom,At=be.pos,Ht=be.active,Qt=be.eventKey,Zt=(0,Ie.Z)((0,Ie.Z)({},Ae),{},{expanded:De,selected:We,checked:nt,loaded:qe,loading:ot,halfChecked:mt,dragOver:at,dragOverGapTop:vt,dragOverGapBottom:wt,pos:At,active:Ht,key:Qt});return"props"in Zt||Object.defineProperty(Zt,"props",{get:function(){return(0,ze.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Zt}},90472:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Qt}});var oe=ae(72308),Pe=ae(96949),Ie=ae(55090),ke=ae(80237),Ve=ae(77205),Te=ae(38793),ze=ae(49618),st=ae(59301),Qe=ae(77321),Ue=ae(74416),St=ae(62853),$e=ae(65736),Dt=ae(72633),Fe=ae(80702),te=ae(92310),ee=ae.n(te),he=ae(26112),ue=ae(48736),fe=function(Zt,ln){if(Zt&&ln){var Nt=Array.isArray(ln)?ln:ln.split(","),gt=Zt.name||"",ct=Zt.type||"",Jt=ct.replace(/\/.*$/,"");return Nt.some(function(sn){var It=sn.trim();if(/^\*(\/\*)?$/.test(sn))return!0;if(It.charAt(0)==="."){var wn=gt.toLowerCase(),bn=It.toLowerCase(),_n=[bn];return(bn===".jpg"||bn===".jpeg")&&(_n=[".jpg",".jpeg"]),_n.some(function(Xt){return wn.endsWith(Xt)})}return/\/\*$/.test(It)?Jt===It.replace(/\/.*$/,""):ct===It?!0:/^\w+$/.test(It)?((0,ue.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(It,"'.Skip for check.")),!0):!1})}return!0};function me(Zt,ln){var Nt="cannot ".concat(Zt.method," ").concat(Zt.action," ").concat(ln.status,"'"),gt=new Error(Nt);return gt.status=ln.status,gt.method=Zt.method,gt.url=Zt.action,gt}function be(Zt){var ln=Zt.responseText||Zt.response;if(!ln)return ln;try{return JSON.parse(ln)}catch(Nt){return ln}}function Ae(Zt){var ln=new XMLHttpRequest;Zt.onProgress&&ln.upload&&(ln.upload.onprogress=function(Jt){Jt.total>0&&(Jt.percent=Jt.loaded/Jt.total*100),Zt.onProgress(Jt)});var Nt=new FormData;Zt.data&&Object.keys(Zt.data).forEach(function(ct){var Jt=Zt.data[ct];if(Array.isArray(Jt)){Jt.forEach(function(sn){Nt.append("".concat(ct,"[]"),sn)});return}Nt.append(ct,Jt)}),Zt.file instanceof Blob?Nt.append(Zt.filename,Zt.file,Zt.file.name):Nt.append(Zt.filename,Zt.file),ln.onerror=function(Jt){Zt.onError(Jt)},ln.onload=function(){return ln.status<200||ln.status>=300?Zt.onError(me(Zt,ln),be(ln)):Zt.onSuccess(be(ln),ln)},ln.open(Zt.method,Zt.action,!0),Zt.withCredentials&&"withCredentials"in ln&&(ln.withCredentials=!0);var gt=Zt.headers||{};return gt["X-Requested-With"]!==null&&ln.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(gt).forEach(function(ct){gt[ct]!==null&&ln.setRequestHeader(ct,gt[ct])}),ln.send(Nt),{abort:function(){ln.abort()}}}var De=function(){var Zt=(0,Dt.Z)((0,$e.Z)().mark(function ln(Nt,gt){var ct,Jt,sn,It,wn,bn,_n,Xt;return(0,$e.Z)().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:bn=function(){return bn=(0,Dt.Z)((0,$e.Z)().mark(function cr(it){return(0,$e.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",new Promise(function(Xe){it.file(function(lt){gt(lt)?(it.fullPath&&!lt.webkitRelativePath&&(Object.defineProperties(lt,{webkitRelativePath:{writable:!0}}),lt.webkitRelativePath=it.fullPath.replace(/^\//,""),Object.defineProperties(lt,{webkitRelativePath:{writable:!1}})),Xe(lt)):Xe(null)})}));case 1:case"end":return Re.stop()}},cr)})),bn.apply(this,arguments)},wn=function(cr){return bn.apply(this,arguments)},It=function(){return It=(0,Dt.Z)((0,$e.Z)().mark(function cr(it){var _e,Re,Xe,lt,Be;return(0,$e.Z)().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:_e=it.createReader(),Re=[];case 2:return Wt.next=5,new Promise(function(yn){_e.readEntries(yn,function(){return yn([])})});case 5:if(Xe=Wt.sent,lt=Xe.length,lt){Wt.next=9;break}return Wt.abrupt("break",12);case 9:for(Be=0;Be<lt;Be++)Re.push(Xe[Be]);Wt.next=2;break;case 12:return Wt.abrupt("return",Re);case 13:case"end":return Wt.stop()}},cr)})),It.apply(this,arguments)},sn=function(cr){return It.apply(this,arguments)},ct=[],Jt=[],Nt.forEach(function(jn){return Jt.push(jn.webkitGetAsEntry())}),_n=function(){var jn=(0,Dt.Z)((0,$e.Z)().mark(function cr(it,_e){var Re,Xe;return(0,$e.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(it){Be.next=2;break}return Be.abrupt("return");case 2:if(it.path=_e||"",!it.isFile){Be.next=10;break}return Be.next=6,wn(it);case 6:Re=Be.sent,Re&&ct.push(Re),Be.next=15;break;case 10:if(!it.isDirectory){Be.next=15;break}return Be.next=13,sn(it);case 13:Xe=Be.sent,Jt.push.apply(Jt,(0,Fe.Z)(Xe));case 15:case"end":return Be.stop()}},cr)}));return function(it,_e){return jn.apply(this,arguments)}}(),Xt=0;case 9:if(!(Xt<Jt.length)){Ot.next=15;break}return Ot.next=12,_n(Jt[Xt]);case 12:Xt++,Ot.next=9;break;case 15:return Ot.abrupt("return",ct);case 16:case"end":return Ot.stop()}},ln)}));return function(Nt,gt){return Zt.apply(this,arguments)}}(),We=De,nt=+new Date,qe=0;function ot(){return"rc-upload-".concat(nt,"-").concat(++qe)}var mt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],at=function(Zt){(0,Ve.Z)(Nt,Zt);var ln=(0,Te.Z)(Nt);function Nt(){var gt;(0,Pe.Z)(this,Nt);for(var ct=arguments.length,Jt=new Array(ct),sn=0;sn<ct;sn++)Jt[sn]=arguments[sn];return gt=ln.call.apply(ln,[this].concat(Jt)),(0,ze.Z)((0,ke.Z)(gt),"state",{uid:ot()}),(0,ze.Z)((0,ke.Z)(gt),"reqs",{}),(0,ze.Z)((0,ke.Z)(gt),"fileInput",void 0),(0,ze.Z)((0,ke.Z)(gt),"_isMounted",void 0),(0,ze.Z)((0,ke.Z)(gt),"onChange",function(It){var wn=gt.props,bn=wn.accept,_n=wn.directory,Xt=It.target.files,zn=(0,Fe.Z)(Xt).filter(function(Ot){return!_n||fe(Ot,bn)});gt.uploadFiles(zn),gt.reset()}),(0,ze.Z)((0,ke.Z)(gt),"onClick",function(It){var wn=gt.fileInput;if(wn){var bn=It.target,_n=gt.props.onClick;if(bn&&bn.tagName==="BUTTON"){var Xt=wn.parentNode;Xt.focus(),bn.blur()}wn.click(),_n&&_n(It)}}),(0,ze.Z)((0,ke.Z)(gt),"onKeyDown",function(It){It.key==="Enter"&&gt.onClick(It)}),(0,ze.Z)((0,ke.Z)(gt),"onFileDrop",function(){var It=(0,Dt.Z)((0,$e.Z)().mark(function wn(bn){var _n,Xt,zn;return(0,$e.Z)().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(_n=gt.props.multiple,bn.preventDefault(),bn.type!=="dragover"){jn.next=4;break}return jn.abrupt("return");case 4:if(!gt.props.directory){jn.next=11;break}return jn.next=7,We(Array.prototype.slice.call(bn.dataTransfer.items),function(cr){return fe(cr,gt.props.accept)});case 7:Xt=jn.sent,gt.uploadFiles(Xt),jn.next=14;break;case 11:zn=(0,Fe.Z)(bn.dataTransfer.files).filter(function(cr){return fe(cr,gt.props.accept)}),_n===!1&&(zn=zn.slice(0,1)),gt.uploadFiles(zn);case 14:case"end":return jn.stop()}},wn)}));return function(wn){return It.apply(this,arguments)}}()),(0,ze.Z)((0,ke.Z)(gt),"uploadFiles",function(It){var wn=(0,Fe.Z)(It),bn=wn.map(function(_n){return _n.uid=ot(),gt.processFile(_n,wn)});Promise.all(bn).then(function(_n){var Xt=gt.props.onBatchStart;Xt==null||Xt(_n.map(function(zn){var Ot=zn.origin,jn=zn.parsedFile;return{file:Ot,parsedFile:jn}})),_n.filter(function(zn){return zn.parsedFile!==null}).forEach(function(zn){gt.post(zn)})})}),(0,ze.Z)((0,ke.Z)(gt),"processFile",function(){var It=(0,Dt.Z)((0,$e.Z)().mark(function wn(bn,_n){var Xt,zn,Ot,jn,cr,it,_e,Re,Xe;return(0,$e.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Xt=gt.props.beforeUpload,zn=bn,!Xt){Be.next=14;break}return Be.prev=3,Be.next=6,Xt(bn,_n);case 6:zn=Be.sent,Be.next=12;break;case 9:Be.prev=9,Be.t0=Be.catch(3),zn=!1;case 12:if(zn!==!1){Be.next=14;break}return Be.abrupt("return",{origin:bn,parsedFile:null,action:null,data:null});case 14:if(Ot=gt.props.action,typeof Ot!="function"){Be.next=21;break}return Be.next=18,Ot(bn);case 18:jn=Be.sent,Be.next=22;break;case 21:jn=Ot;case 22:if(cr=gt.props.data,typeof cr!="function"){Be.next=29;break}return Be.next=26,cr(bn);case 26:it=Be.sent,Be.next=30;break;case 29:it=cr;case 30:return _e=((0,St.Z)(zn)==="object"||typeof zn=="string")&&zn?zn:bn,_e instanceof File?Re=_e:Re=new File([_e],bn.name,{type:bn.type}),Xe=Re,Xe.uid=bn.uid,Be.abrupt("return",{origin:bn,data:it,parsedFile:Xe,action:jn});case 35:case"end":return Be.stop()}},wn,null,[[3,9]])}));return function(wn,bn){return It.apply(this,arguments)}}()),(0,ze.Z)((0,ke.Z)(gt),"saveFileInput",function(It){gt.fileInput=It}),gt}return(0,Ie.Z)(Nt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ct){var Jt=this,sn=ct.data,It=ct.origin,wn=ct.action,bn=ct.parsedFile;if(this._isMounted){var _n=this.props,Xt=_n.onStart,zn=_n.customRequest,Ot=_n.name,jn=_n.headers,cr=_n.withCredentials,it=_n.method,_e=It.uid,Re=zn||Ae,Xe={action:wn,filename:Ot,data:sn,file:bn,headers:jn,withCredentials:cr,method:it||"post",onProgress:function(Be){var bt=Jt.props.onProgress;bt==null||bt(Be,bn)},onSuccess:function(Be,bt){var Wt=Jt.props.onSuccess;Wt==null||Wt(Be,bn,bt),delete Jt.reqs[_e]},onError:function(Be,bt){var Wt=Jt.props.onError;Wt==null||Wt(Be,bt,bn),delete Jt.reqs[_e]}};Xt(It),this.reqs[_e]=Re(Xe)}}},{key:"reset",value:function(){this.setState({uid:ot()})}},{key:"abort",value:function(ct){var Jt=this.reqs;if(ct){var sn=ct.uid?ct.uid:ct;Jt[sn]&&Jt[sn].abort&&Jt[sn].abort(),delete Jt[sn]}else Object.keys(Jt).forEach(function(It){Jt[It]&&Jt[It].abort&&Jt[It].abort(),delete Jt[It]})}},{key:"render",value:function(){var ct=this.props,Jt=ct.component,sn=ct.prefixCls,It=ct.className,wn=ct.classNames,bn=wn===void 0?{}:wn,_n=ct.disabled,Xt=ct.id,zn=ct.name,Ot=ct.style,jn=ct.styles,cr=jn===void 0?{}:jn,it=ct.multiple,_e=ct.accept,Re=ct.capture,Xe=ct.children,lt=ct.directory,Be=ct.openFileDialogOnClick,bt=ct.onMouseEnter,Wt=ct.onMouseLeave,yn=ct.hasControlInside,On=(0,Ue.Z)(ct,mt),Pt=ee()((0,ze.Z)((0,ze.Z)((0,ze.Z)({},sn,!0),"".concat(sn,"-disabled"),_n),It,It)),Vt=lt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},zt=_n?{}:{onClick:Be?this.onClick:function(){},onKeyDown:Be?this.onKeyDown:function(){},onMouseEnter:bt,onMouseLeave:Wt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:yn?void 0:"0"};return st.createElement(Jt,(0,oe.Z)({},zt,{className:Pt,role:yn?void 0:"button",style:Ot}),st.createElement("input",(0,oe.Z)({},(0,he.Z)(On,{aria:!0,data:!0}),{id:Xt,name:zn,disabled:_n,type:"file",ref:this.saveFileInput,onClick:function(Tn){return Tn.stopPropagation()},key:this.state.uid,style:(0,Qe.Z)({display:"none"},cr.input),className:bn.input,accept:_e},Vt,{multiple:it,onChange:this.onChange},Re!=null?{capture:Re}:{})),Xe)}}]),Nt}(st.Component),vt=at;function wt(){}var At=function(Zt){(0,Ve.Z)(Nt,Zt);var ln=(0,Te.Z)(Nt);function Nt(){var gt;(0,Pe.Z)(this,Nt);for(var ct=arguments.length,Jt=new Array(ct),sn=0;sn<ct;sn++)Jt[sn]=arguments[sn];return gt=ln.call.apply(ln,[this].concat(Jt)),(0,ze.Z)((0,ke.Z)(gt),"uploader",void 0),(0,ze.Z)((0,ke.Z)(gt),"saveUploader",function(It){gt.uploader=It}),gt}return(0,Ie.Z)(Nt,[{key:"abort",value:function(ct){this.uploader.abort(ct)}},{key:"render",value:function(){return st.createElement(vt,(0,oe.Z)({},this.props,{ref:this.saveUploader}))}}]),Nt}(st.Component);(0,ze.Z)(At,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:wt,onError:wt,onSuccess:wt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ht=At,Qt=Ht},8224:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(4676);function Pe(Ie,ke,Ve,Te){var ze=oe.unstable_batchedUpdates?function(Qe){oe.unstable_batchedUpdates(Ve,Qe)}:Ve;return Ie!=null&&Ie.addEventListener&&Ie.addEventListener(ke,ze,Te),{remove:function(){Ie!=null&&Ie.removeEventListener&&Ie.removeEventListener(ke,ze,Te)}}}},24514:function(Ze,Ee,ae){"use strict";ae.d(Ee,{G:function(){return ke}});var oe=ae(47273),Pe=function(Te){if((0,oe.Z)()&&window.document.documentElement){var ze=Array.isArray(Te)?Te:[Te],st=window.document.documentElement;return ze.some(function(Qe){return Qe in st.style})}return!1},Ie=function(Te,ze){if(!Pe(Te))return!1;var st=document.createElement("div"),Qe=st.style[Te];return st.style[Te]=ze,st.style[Te]!==Qe};function ke(Ve,Te){return!Array.isArray(Ve)&&Te!==void 0?Ie(Ve,Te):Pe(Ve)}},45680:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return cr}});var oe=ae(72308),Pe=ae(62853),Ie=ae(77321),ke=ae(49618),Ve=ae(52487),Te=ae(74416),ze=ae(92310),st=ae.n(ze),Qe=ae(29301),Ue=ae(70425),St=ae(34280),$e=ae(59301),Dt=ae(4676),Fe=$e.forwardRef(function(it,_e){var Re=it.height,Xe=it.offsetY,lt=it.offsetX,Be=it.children,bt=it.prefixCls,Wt=it.onInnerResize,yn=it.innerProps,On=it.rtl,Pt=it.extra,Vt={},zt={display:"flex",flexDirection:"column"};return Xe!==void 0&&(Vt={height:Re,position:"relative",overflow:"hidden"},zt=(0,Ie.Z)((0,Ie.Z)({},zt),{},(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({transform:"translateY(".concat(Xe,"px)")},On?"marginRight":"marginLeft",-lt),"position","absolute"),"left",0),"right",0),"top",0))),$e.createElement("div",{style:Vt},$e.createElement(Qe.Z,{onResize:function(Tn){var gn=Tn.offsetHeight;gn&&Wt&&Wt()}},$e.createElement("div",(0,oe.Z)({style:zt,className:st()((0,ke.Z)({},"".concat(bt,"-holder-inner"),bt)),ref:_e},yn),Be,Pt)))});Fe.displayName="Filler";var te=Fe;function ee(it){var _e=it.children,Re=it.setRef,Xe=$e.useCallback(function(lt){Re(lt)},[]);return $e.cloneElement(_e,{ref:Xe})}function he(it,_e,Re,Xe,lt,Be,bt,Wt){var yn=Wt.getKey;return it.slice(_e,Re+1).map(function(On,Pt){var Vt=_e+Pt,zt=bt(On,Vt,{style:{width:Xe},offsetX:lt}),pn=yn(On);return $e.createElement(ee,{key:pn,setRef:function(gn){return Be(On,gn)}},zt)})}function ue(it,_e,Re,Xe){var lt=Re-it,Be=_e-Re,bt=Math.min(lt,Be)*2;if(Xe<=bt){var Wt=Math.floor(Xe/2);return Xe%2?Re+Wt+1:Re-Wt}return lt>Be?Re-(Xe-Be):Re+(Xe-lt)}function fe(it,_e,Re){var Xe=it.length,lt=_e.length,Be,bt;if(Xe===0&&lt===0)return null;Xe<lt?(Be=it,bt=_e):(Be=_e,bt=it);var Wt={__EMPTY_ITEM__:!0};function yn(Tn){return Tn!==void 0?Re(Tn):Wt}for(var On=null,Pt=Math.abs(Xe-lt)!==1,Vt=0;Vt<bt.length;Vt+=1){var zt=yn(Be[Vt]),pn=yn(bt[Vt]);if(zt!==pn){On=Vt,Pt=Pt||zt!==yn(bt[Vt+1]);break}}return On===null?null:{index:On,multiple:Pt}}function me(it,_e,Re){var Xe=$e.useState(it),lt=(0,Ve.Z)(Xe,2),Be=lt[0],bt=lt[1],Wt=$e.useState(null),yn=(0,Ve.Z)(Wt,2),On=yn[0],Pt=yn[1];return $e.useEffect(function(){var Vt=fe(Be||[],it||[],_e);(Vt==null?void 0:Vt.index)!==void 0&&(Re==null||Re(Vt.index),Pt(it[Vt.index])),bt(it)},[it]),[On]}var be=ae(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),De=Ae,We=function(it,_e,Re,Xe){var lt=(0,$e.useRef)(!1),Be=(0,$e.useRef)(null);function bt(){clearTimeout(Be.current),lt.current=!0,Be.current=setTimeout(function(){lt.current=!1},50)}var Wt=(0,$e.useRef)({top:it,bottom:_e,left:Re,right:Xe});return Wt.current.top=it,Wt.current.bottom=_e,Wt.current.left=Re,Wt.current.right=Xe,function(yn,On){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Vt=yn?On<0&&Wt.current.left||On>0&&Wt.current.right:On<0&&Wt.current.top||On>0&&Wt.current.bottom;return Pt&&Vt?(clearTimeout(Be.current),lt.current=!1):(!Vt||lt.current)&&bt(),!lt.current&&Vt}};function nt(it,_e,Re,Xe,lt,Be,bt){var Wt=(0,$e.useRef)(0),yn=(0,$e.useRef)(null),On=(0,$e.useRef)(null),Pt=(0,$e.useRef)(!1),Vt=We(_e,Re,Xe,lt);function zt(Yt,on){if(be.Z.cancel(yn.current),!Vt(!1,on)){var mn=Yt;if(!mn._virtualHandled)mn._virtualHandled=!0;else return;Wt.current+=on,On.current=on,De||mn.preventDefault(),yn.current=(0,be.Z)(function(){var er=Pt.current?10:1;bt(Wt.current*er,!1),Wt.current=0})}}function pn(Yt,on){bt(on,!0),De||Yt.preventDefault()}var Tn=(0,$e.useRef)(null),gn=(0,$e.useRef)(null);function Mt(Yt){if(it){be.Z.cancel(gn.current),gn.current=(0,be.Z)(function(){Tn.current=null},2);var on=Yt.deltaX,mn=Yt.deltaY,er=Yt.shiftKey,Sn=on,ht=mn;(Tn.current==="sx"||!Tn.current&&er&&mn&&!on)&&(Sn=mn,ht=0,Tn.current="sx");var tr=Math.abs(Sn),lr=Math.abs(ht);Tn.current===null&&(Tn.current=Be&&tr>lr?"x":"y"),Tn.current==="y"?zt(Yt,ht):pn(Yt,Sn)}}function Un(Yt){it&&(Pt.current=Yt.detail===On.current)}return[Mt,Un]}function qe(it,_e,Re,Xe){var lt=$e.useMemo(function(){return[new Map,[]]},[it,Re.id,Xe]),Be=(0,Ve.Z)(lt,2),bt=Be[0],Wt=Be[1],yn=function(Pt){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt,zt=bt.get(Pt),pn=bt.get(Vt);if(zt===void 0||pn===void 0)for(var Tn=it.length,gn=Wt.length;gn<Tn;gn+=1){var Mt,Un=it[gn],Yt=_e(Un);bt.set(Yt,gn);var on=(Mt=Re.get(Yt))!==null&&Mt!==void 0?Mt:Xe;if(Wt[gn]=(Wt[gn-1]||0)+on,Yt===Pt&&(zt=gn),Yt===Vt&&(pn=gn),zt!==void 0&&pn!==void 0)break}return{top:Wt[zt-1]||0,bottom:Wt[pn]}};return yn}var ot=ae(96949),mt=ae(55090),at=function(){function it(){(0,ot.Z)(this,it),(0,ke.Z)(this,"maps",void 0),(0,ke.Z)(this,"id",0),(0,ke.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,mt.Z)(it,[{key:"set",value:function(Re,Xe){this.maps[Re]=Xe,this.id+=1,this.diffKeys.add(Re)}},{key:"get",value:function(Re){return this.maps[Re]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),it}(),vt=at;function wt(it){var _e=parseFloat(it);return isNaN(_e)?0:_e}function At(it,_e,Re){var Xe=$e.useState(0),lt=(0,Ve.Z)(Xe,2),Be=lt[0],bt=lt[1],Wt=(0,$e.useRef)(new Map),yn=(0,$e.useRef)(new vt),On=(0,$e.useRef)(0);function Pt(){On.current+=1}function Vt(){var pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Pt();var Tn=function(){var Un=!1;Wt.current.forEach(function(Yt,on){if(Yt&&Yt.offsetParent){var mn=Yt.offsetHeight,er=getComputedStyle(Yt),Sn=er.marginTop,ht=er.marginBottom,tr=wt(Sn),lr=wt(ht),qt=mn+tr+lr;yn.current.get(on)!==qt&&(yn.current.set(on,qt),Un=!0)}}),Un&&bt(function(Yt){return Yt+1})};if(pn)Tn();else{On.current+=1;var gn=On.current;Promise.resolve().then(function(){gn===On.current&&Tn()})}}function zt(pn,Tn){var gn=it(pn),Mt=Wt.current.get(gn);Tn?(Wt.current.set(gn,Tn),Vt()):Wt.current.delete(gn),!Mt!=!Tn&&(Tn?_e==null||_e(pn):Re==null||Re(pn))}return(0,$e.useEffect)(function(){return Pt},[]),[zt,Vt,yn.current,Be]}var Ht=14/15;function Qt(it,_e,Re){var Xe=(0,$e.useRef)(!1),lt=(0,$e.useRef)(0),Be=(0,$e.useRef)(0),bt=(0,$e.useRef)(null),Wt=(0,$e.useRef)(null),yn,On=function(pn){if(Xe.current){var Tn=Math.ceil(pn.touches[0].pageX),gn=Math.ceil(pn.touches[0].pageY),Mt=lt.current-Tn,Un=Be.current-gn,Yt=Math.abs(Mt)>Math.abs(Un);Yt?lt.current=Tn:Be.current=gn;var on=Re(Yt,Yt?Mt:Un,!1,pn);on&&pn.preventDefault(),clearInterval(Wt.current),on&&(Wt.current=setInterval(function(){Yt?Mt*=Ht:Un*=Ht;var mn=Math.floor(Yt?Mt:Un);(!Re(Yt,mn,!0)||Math.abs(mn)<=.1)&&clearInterval(Wt.current)},16))}},Pt=function(){Xe.current=!1,yn()},Vt=function(pn){yn(),pn.touches.length===1&&!Xe.current&&(Xe.current=!0,lt.current=Math.ceil(pn.touches[0].pageX),Be.current=Math.ceil(pn.touches[0].pageY),bt.current=pn.target,bt.current.addEventListener("touchmove",On,{passive:!1}),bt.current.addEventListener("touchend",Pt,{passive:!0}))};yn=function(){bt.current&&(bt.current.removeEventListener("touchmove",On),bt.current.removeEventListener("touchend",Pt))},(0,St.Z)(function(){return it&&_e.current.addEventListener("touchstart",Vt,{passive:!0}),function(){var zt;(zt=_e.current)===null||zt===void 0||zt.removeEventListener("touchstart",Vt),yn(),clearInterval(Wt.current)}},[it])}function Zt(it){return Math.floor(Math.pow(it,.5))}function ln(it,_e){var Re="touches"in it?it.touches[0]:it;return Re[_e?"pageX":"pageY"]-window[_e?"scrollX":"scrollY"]}function Nt(it,_e,Re){$e.useEffect(function(){var Xe=_e.current;if(it&&Xe){var lt=!1,Be,bt,Wt=function(){be.Z.cancel(Be)},yn=function zt(){Wt(),Be=(0,be.Z)(function(){Re(bt),zt()})},On=function(pn){if(!(pn.target.draggable||pn.button!==0)){var Tn=pn;Tn._virtualHandled||(Tn._virtualHandled=!0,lt=!0)}},Pt=function(){lt=!1,Wt()},Vt=function(pn){if(lt){var Tn=ln(pn,!1),gn=Xe.getBoundingClientRect(),Mt=gn.top,Un=gn.bottom;if(Tn<=Mt){var Yt=Mt-Tn;bt=-Zt(Yt),yn()}else if(Tn>=Un){var on=Tn-Un;bt=Zt(on),yn()}else Wt()}};return Xe.addEventListener("mousedown",On),Xe.ownerDocument.addEventListener("mouseup",Pt),Xe.ownerDocument.addEventListener("mousemove",Vt),function(){Xe.removeEventListener("mousedown",On),Xe.ownerDocument.removeEventListener("mouseup",Pt),Xe.ownerDocument.removeEventListener("mousemove",Vt),Wt()}}},[it])}var gt=10;function ct(it,_e,Re,Xe,lt,Be,bt,Wt){var yn=$e.useRef(),On=$e.useState(null),Pt=(0,Ve.Z)(On,2),Vt=Pt[0],zt=Pt[1];return(0,St.Z)(function(){if(Vt&&Vt.times<gt){if(!it.current){zt(function(oi){return(0,Ie.Z)({},oi)});return}Be();var pn=Vt.targetAlign,Tn=Vt.originAlign,gn=Vt.index,Mt=Vt.offset,Un=it.current.clientHeight,Yt=!1,on=pn,mn=null;if(Un){for(var er=pn||Tn,Sn=0,ht=0,tr=0,lr=Math.min(_e.length-1,gn),qt=0;qt<=lr;qt+=1){var yr=lt(_e[qt]);ht=Sn;var ri=Re.get(yr);tr=ht+(ri===void 0?Xe:ri),Sn=tr}for(var Or=er==="top"?Mt:Un-Mt,Nn=lr;Nn>=0;Nn-=1){var ui=lt(_e[Nn]),$r=Re.get(ui);if($r===void 0){Yt=!0;break}if(Or-=$r,Or<=0)break}switch(er){case"top":mn=ht-Mt;break;case"bottom":mn=tr-Un+Mt;break;default:{var or=it.current.scrollTop,Kr=or+Un;ht<or?on="top":tr>Kr&&(on="bottom")}}mn!==null&&bt(mn),mn!==Vt.lastTop&&(Yt=!0)}Yt&&zt((0,Ie.Z)((0,Ie.Z)({},Vt),{},{times:Vt.times+1,targetAlign:on,lastTop:mn}))}},[Vt,it.current]),function(pn){if(pn==null){Wt();return}if(be.Z.cancel(yn.current),typeof pn=="number")bt(pn);else if(pn&&(0,Pe.Z)(pn)==="object"){var Tn,gn=pn.align;"index"in pn?Tn=pn.index:Tn=_e.findIndex(function(Yt){return lt(Yt)===pn.key});var Mt=pn.offset,Un=Mt===void 0?0:Mt;zt({times:0,index:Tn,offset:Un,originAlign:gn})}}}var Jt=$e.forwardRef(function(it,_e){var Re=it.prefixCls,Xe=it.rtl,lt=it.scrollOffset,Be=it.scrollRange,bt=it.onStartMove,Wt=it.onStopMove,yn=it.onScroll,On=it.horizontal,Pt=it.spinSize,Vt=it.containerSize,zt=it.style,pn=it.thumbStyle,Tn=it.showScrollBar,gn=$e.useState(!1),Mt=(0,Ve.Z)(gn,2),Un=Mt[0],Yt=Mt[1],on=$e.useState(null),mn=(0,Ve.Z)(on,2),er=mn[0],Sn=mn[1],ht=$e.useState(null),tr=(0,Ve.Z)(ht,2),lr=tr[0],qt=tr[1],yr=!Xe,ri=$e.useRef(),Or=$e.useRef(),Nn=$e.useState(Tn),ui=(0,Ve.Z)(Nn,2),$r=ui[0],or=ui[1],Kr=$e.useRef(),oi=function(){Tn===!0||Tn===!1||(clearTimeout(Kr.current),or(!0),Kr.current=setTimeout(function(){or(!1)},3e3))},Me=Be-Vt||0,kr=Vt-Pt||0,Pr=$e.useMemo(function(){if(lt===0||Me===0)return 0;var un=lt/Me;return un*kr},[lt,Me,kr]),ei=function(Ur){Ur.stopPropagation(),Ur.preventDefault()},Ii=$e.useRef({top:Pr,dragging:Un,pageY:er,startTop:lr});Ii.current={top:Pr,dragging:Un,pageY:er,startTop:lr};var Di=function(Ur){Yt(!0),Sn(ln(Ur,On)),qt(Ii.current.top),bt(),Ur.stopPropagation(),Ur.preventDefault()};$e.useEffect(function(){var un=function(sr){sr.preventDefault()},Ur=ri.current,Tr=Or.current;return Ur.addEventListener("touchstart",un,{passive:!1}),Tr.addEventListener("touchstart",Di,{passive:!1}),function(){Ur.removeEventListener("touchstart",un),Tr.removeEventListener("touchstart",Di)}},[]);var Ti=$e.useRef();Ti.current=Me;var Vr=$e.useRef();Vr.current=kr,$e.useEffect(function(){if(Un){var un,Ur=function(sr){var Rr=Ii.current,Cn=Rr.dragging,fn=Rr.pageY,Wr=Rr.startTop;be.Z.cancel(un);var kt=ri.current.getBoundingClientRect(),Gn=Vt/(On?kt.width:kt.height);if(Cn){var vr=(ln(sr,On)-fn)*Gn,Qr=Wr;!yr&&On?Qr-=vr:Qr+=vr;var nn=Ti.current,Qn=Vr.current,Dn=Qn?Qr/Qn:0,xn=Math.ceil(Dn*nn);xn=Math.max(xn,0),xn=Math.min(xn,nn),un=(0,be.Z)(function(){yn(xn,On)})}},Tr=function(){Yt(!1),Wt()};return window.addEventListener("mousemove",Ur,{passive:!0}),window.addEventListener("touchmove",Ur,{passive:!0}),window.addEventListener("mouseup",Tr,{passive:!0}),window.addEventListener("touchend",Tr,{passive:!0}),function(){window.removeEventListener("mousemove",Ur),window.removeEventListener("touchmove",Ur),window.removeEventListener("mouseup",Tr),window.removeEventListener("touchend",Tr),be.Z.cancel(un)}}},[Un]),$e.useEffect(function(){return oi(),function(){clearTimeout(Kr.current)}},[lt]),$e.useImperativeHandle(_e,function(){return{delayHidden:oi}});var Fr="".concat(Re,"-scrollbar"),dn={position:"absolute",visibility:$r?null:"hidden"},hn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return On?(dn.height=8,dn.left=0,dn.right=0,dn.bottom=0,hn.height="100%",hn.width=Pt,yr?hn.left=Pr:hn.right=Pr):(dn.width=8,dn.top=0,dn.bottom=0,yr?dn.right=0:dn.left=0,hn.width="100%",hn.height=Pt,hn.top=Pr),$e.createElement("div",{ref:ri,className:st()(Fr,(0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(Fr,"-horizontal"),On),"".concat(Fr,"-vertical"),!On),"".concat(Fr,"-visible"),$r)),style:(0,Ie.Z)((0,Ie.Z)({},dn),zt),onMouseDown:ei,onMouseMove:oi},$e.createElement("div",{ref:Or,className:st()("".concat(Fr,"-thumb"),(0,ke.Z)({},"".concat(Fr,"-thumb-moving"),Un)),style:(0,Ie.Z)((0,Ie.Z)({},hn),pn),onMouseDown:Di}))}),sn=Jt,It=20;function wn(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Re=it/_e*it;return isNaN(Re)&&(Re=0),Re=Math.max(Re,It),Math.floor(Re)}var bn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_n=[],Xt={overflowY:"auto",overflowAnchor:"none"};function zn(it,_e){var Re=it.prefixCls,Xe=Re===void 0?"rc-virtual-list":Re,lt=it.className,Be=it.height,bt=it.itemHeight,Wt=it.fullHeight,yn=Wt===void 0?!0:Wt,On=it.style,Pt=it.data,Vt=it.children,zt=it.itemKey,pn=it.virtual,Tn=it.direction,gn=it.scrollWidth,Mt=it.component,Un=Mt===void 0?"div":Mt,Yt=it.onScroll,on=it.onVirtualScroll,mn=it.onVisibleChange,er=it.innerProps,Sn=it.extraRender,ht=it.styles,tr=it.showScrollBar,lr=tr===void 0?"optional":tr,qt=(0,Te.Z)(it,bn),yr=$e.useCallback(function(Er){return typeof zt=="function"?zt(Er):Er==null?void 0:Er[zt]},[zt]),ri=At(yr,null,null),Or=(0,Ve.Z)(ri,4),Nn=Or[0],ui=Or[1],$r=Or[2],or=Or[3],Kr=!!(pn!==!1&&Be&&bt),oi=$e.useMemo(function(){return Object.values($r.maps).reduce(function(Er,ft){return Er+ft},0)},[$r.id,$r.maps]),Me=Kr&&Pt&&(Math.max(bt*Pt.length,oi)>Be||!!gn),kr=Tn==="rtl",Pr=st()(Xe,(0,ke.Z)({},"".concat(Xe,"-rtl"),kr),lt),ei=Pt||_n,Ii=(0,$e.useRef)(),Di=(0,$e.useRef)(),Ti=(0,$e.useRef)(),Vr=(0,$e.useState)(0),Fr=(0,Ve.Z)(Vr,2),dn=Fr[0],hn=Fr[1],un=(0,$e.useState)(0),Ur=(0,Ve.Z)(un,2),Tr=Ur[0],Zr=Ur[1],sr=(0,$e.useState)(!1),Rr=(0,Ve.Z)(sr,2),Cn=Rr[0],fn=Rr[1],Wr=function(){fn(!0)},kt=function(){fn(!1)},Gn={getKey:yr};function vr(Er){hn(function(ft){var En;typeof Er=="function"?En=Er(ft):En=Er;var Mn=Ni(En);return Ii.current.scrollTop=Mn,Mn})}var Qr=(0,$e.useRef)({start:0,end:ei.length}),nn=(0,$e.useRef)(),Qn=me(ei,yr),Dn=(0,Ve.Z)(Qn,1),xn=Dn[0];nn.current=xn;var Ge=$e.useMemo(function(){if(!Kr)return{scrollHeight:void 0,start:0,end:ei.length-1,offset:void 0};if(!Me){var Er;return{scrollHeight:((Er=Di.current)===null||Er===void 0?void 0:Er.offsetHeight)||0,start:0,end:ei.length-1,offset:void 0}}for(var ft=0,En,Mn,Xn,Hn=ei.length,hr=0;hr<Hn;hr+=1){var $n=ei[hr],cn=yr($n),Kn=$r.get(cn),Gr=ft+(Kn===void 0?bt:Kn);Gr>=dn&&En===void 0&&(En=hr,Mn=ft),Gr>dn+Be&&Xn===void 0&&(Xn=hr),ft=Gr}return En===void 0&&(En=0,Mn=0,Xn=Math.ceil(Be/bt)),Xn===void 0&&(Xn=ei.length-1),Xn=Math.min(Xn+1,ei.length-1),{scrollHeight:ft,start:En,end:Xn,offset:Mn}},[Me,Kr,dn,ei,or,Be]),Jr=Ge.scrollHeight,Hr=Ge.start,Jn=Ge.end,hi=Ge.offset;Qr.current.start=Hr,Qr.current.end=Jn,$e.useLayoutEffect(function(){var Er=$r.getRecord();if(Er.size===1){var ft=Array.from(Er)[0],En=ei[Hr];if(En){var Mn=yr(En);if(Mn===ft){var Xn=$r.get(ft),Hn=Xn-bt;vr(function(hr){return hr+Hn})}}}$r.resetRecord()},[Jr]);var ti=$e.useState({width:0,height:Be}),Si=(0,Ve.Z)(ti,2),nr=Si[0],vn=Si[1],xi=function(ft){vn({width:ft.offsetWidth,height:ft.offsetHeight})},zi=(0,$e.useRef)(),Ln=(0,$e.useRef)(),Xr=$e.useMemo(function(){return wn(nr.width,gn)},[nr.width,gn]),fi=$e.useMemo(function(){return wn(nr.height,Jr)},[nr.height,Jr]),wi=Jr-Be,ai=(0,$e.useRef)(wi);ai.current=wi;function Ni(Er){var ft=Er;return Number.isNaN(ai.current)||(ft=Math.min(ft,ai.current)),ft=Math.max(ft,0),ft}var Xi=dn<=0,Vi=dn>=wi,Bi=Tr<=0,Hi=Tr>=gn,rr=We(Xi,Vi,Bi,Hi),_i=function(){return{x:kr?-Tr:Tr,y:dn}},ur=(0,$e.useRef)(_i()),vi=(0,Ue.zX)(function(Er){if(on){var ft=(0,Ie.Z)((0,Ie.Z)({},_i()),Er);(ur.current.x!==ft.x||ur.current.y!==ft.y)&&(on(ft),ur.current=ft)}});function Pi(Er,ft){var En=Er;ft?((0,Dt.flushSync)(function(){Zr(En)}),vi()):vr(En)}function Mi(Er){var ft=Er.currentTarget.scrollTop;ft!==dn&&vr(ft),Yt==null||Yt(Er),vi()}var po=function(ft){var En=ft,Mn=gn?gn-nr.width:0;return En=Math.max(En,0),En=Math.min(En,Mn),En},Oo=(0,Ue.zX)(function(Er,ft){ft?((0,Dt.flushSync)(function(){Zr(function(En){var Mn=En+(kr?-Er:Er);return po(Mn)})}),vi()):vr(function(En){var Mn=En+Er;return Mn})}),mo=nt(Kr,Xi,Vi,Bi,Hi,!!gn,Oo),xo=(0,Ve.Z)(mo,2),Fn=xo[0],fr=xo[1];Qt(Kr,Ii,function(Er,ft,En,Mn){var Xn=Mn;return rr(Er,ft,En)?!1:!Xn||!Xn._virtualHandled?(Xn&&(Xn._virtualHandled=!0),Fn({preventDefault:function(){},deltaX:Er?ft:0,deltaY:Er?0:ft}),!0):!1}),Nt(Me,Ii,function(Er){vr(function(ft){return ft+Er})}),(0,St.Z)(function(){function Er(En){var Mn=Xi&&En.detail<0,Xn=Vi&&En.detail>0;Kr&&!Mn&&!Xn&&En.preventDefault()}var ft=Ii.current;return ft.addEventListener("wheel",Fn,{passive:!1}),ft.addEventListener("DOMMouseScroll",fr,{passive:!0}),ft.addEventListener("MozMousePixelScroll",Er,{passive:!1}),function(){ft.removeEventListener("wheel",Fn),ft.removeEventListener("DOMMouseScroll",fr),ft.removeEventListener("MozMousePixelScroll",Er)}},[Kr,Xi,Vi]),(0,St.Z)(function(){if(gn){var Er=po(Tr);Zr(Er),vi({x:Er})}},[nr.width,gn]);var Rn=function(){var ft,En;(ft=zi.current)===null||ft===void 0||ft.delayHidden(),(En=Ln.current)===null||En===void 0||En.delayHidden()},rt=ct(Ii,ei,$r,bt,yr,function(){return ui(!0)},vr,Rn);$e.useImperativeHandle(_e,function(){return{nativeElement:Ti.current,getScrollInfo:_i,scrollTo:function(ft){function En(Mn){return Mn&&(0,Pe.Z)(Mn)==="object"&&("left"in Mn||"top"in Mn)}En(ft)?(ft.left!==void 0&&Zr(po(ft.left)),rt(ft.top)):rt(ft)}}}),(0,St.Z)(function(){if(mn){var Er=ei.slice(Hr,Jn+1);mn(Er,ei)}},[Hr,Jn,ei]);var jr=qe(ei,yr,$r,bt),Sr=Sn==null?void 0:Sn({start:Hr,end:Jn,virtual:Me,offsetX:Tr,offsetY:hi,rtl:kr,getSize:jr}),zr=he(ei,Hr,Jn,gn,Tr,Nn,Vt,Gn),ni=null;Be&&(ni=(0,Ie.Z)((0,ke.Z)({},yn?"height":"maxHeight",Be),Xt),Kr&&(ni.overflowY="hidden",gn&&(ni.overflowX="hidden"),Cn&&(ni.pointerEvents="none")));var pi={};return kr&&(pi.dir="rtl"),$e.createElement("div",(0,oe.Z)({ref:Ti,style:(0,Ie.Z)((0,Ie.Z)({},On),{},{position:"relative"}),className:Pr},pi,qt),$e.createElement(Qe.Z,{onResize:xi},$e.createElement(Un,{className:"".concat(Xe,"-holder"),style:ni,ref:Ii,onScroll:Mi,onMouseEnter:Rn},$e.createElement(te,{prefixCls:Xe,height:Jr,offsetX:Tr,offsetY:hi,scrollWidth:gn,onInnerResize:ui,ref:Di,innerProps:er,rtl:kr,extra:Sr},zr))),Me&&Jr>Be&&$e.createElement(sn,{ref:zi,prefixCls:Xe,scrollOffset:dn,scrollRange:Jr,rtl:kr,onScroll:Pi,onStartMove:Wr,onStopMove:kt,spinSize:fi,containerSize:nr.height,style:ht==null?void 0:ht.verticalScrollBar,thumbStyle:ht==null?void 0:ht.verticalScrollBarThumb,showScrollBar:lr}),Me&&gn>nr.width&&$e.createElement(sn,{ref:Ln,prefixCls:Xe,scrollOffset:Tr,scrollRange:gn,rtl:kr,onScroll:Pi,onStartMove:Wr,onStopMove:kt,spinSize:Xr,containerSize:nr.width,horizontal:!0,style:ht==null?void 0:ht.horizontalScrollBar,thumbStyle:ht==null?void 0:ht.horizontalScrollBarThumb,showScrollBar:lr}))}var Ot=$e.forwardRef(zn);Ot.displayName="List";var jn=Ot,cr=jn},12921:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z5:function(){return vp},_l:function(){return Bl},bK:function(){return tc}});var oe=ae(59301),Pe=ae(60039);function Ie(we,Le){we.prototype=Object.create(Le.prototype),we.prototype.constructor=we,(0,Pe.Z)(we,Le)}var ke=ae(72308),Ve=ae(59781),Te=oe.createContext(null),ze=null;function st(we){we()}var Qe=st,Ue=function(Le){return Qe=Le},St=function(){return Qe};function $e(){var we=St(),Le=null,je=null;return{clear:function(){Le=null,je=null},notify:function(){we(function(){for(var Lt=Le;Lt;)Lt.callback(),Lt=Lt.next})},get:function(){for(var Lt=[],Tt=Le;Tt;)Lt.push(Tt),Tt=Tt.next;return Lt},subscribe:function(Lt){var Tt=!0,Ut=je={callback:Lt,next:null,prev:je};return Ut.prev?Ut.prev.next=Ut:Le=Ut,function(){!Tt||Le===null||(Tt=!1,Ut.next?Ut.next.prev=Ut.prev:je=Ut.prev,Ut.prev?Ut.prev.next=Ut.next:Le=Ut.next)}}}}var Dt={notify:function(){},get:function(){return[]}};function Fe(we,Le){var je,ut=Dt;function Lt(Zn){return Bn(),ut.subscribe(Zn)}function Tt(){ut.notify()}function Ut(){qn.onStateChange&&qn.onStateChange()}function Kt(){return!!je}function Bn(){je||(je=Le?Le.addNestedSub(Ut):we.subscribe(Ut),ut=$e())}function ar(){je&&(je(),je=void 0,ut.clear(),ut=Dt)}var qn={addNestedSub:Lt,notifyNestedSubs:Tt,handleChangeWrapper:Ut,isSubscribed:Kt,trySubscribe:Bn,tryUnsubscribe:ar,getListeners:function(){return ut}};return qn}var te=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect;function ee(we){var Le=we.store,je=we.context,ut=we.children,Lt=(0,oe.useMemo)(function(){var Kt=Fe(Le);return{store:Le,subscription:Kt}},[Le]),Tt=(0,oe.useMemo)(function(){return Le.getState()},[Le]);te(function(){var Kt=Lt.subscription;return Kt.onStateChange=Kt.notifyNestedSubs,Kt.trySubscribe(),Tt!==Le.getState()&&Kt.notifyNestedSubs(),function(){Kt.tryUnsubscribe(),Kt.onStateChange=null}},[Lt,Tt]);var Ut=je||Te;return oe.createElement(Ut.Provider,{value:Lt},ut)}var he=ee,ue=ae(87488),fe=ae(94266),me=ae.n(fe),be=ae(53410),Ae=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],De=["reactReduxForwardedRef"],We=[],nt=[null,null],qe=function(Le){try{return JSON.stringify(Le)}catch(je){return String(Le)}};function ot(we,Le){var je=we[1];return[Le.payload,je+1]}function mt(we,Le,je){te(function(){return we.apply(void 0,Le)},je)}function at(we,Le,je,ut,Lt,Tt,Ut){we.current=ut,Le.current=Lt,je.current=!1,Tt.current&&(Tt.current=null,Ut())}function vt(we,Le,je,ut,Lt,Tt,Ut,Kt,Bn,ar){if(we){var qn=!1,Zn=null,Wn=function(){if(!qn){var Gi=Le.getState(),Yi,no;try{Yi=ut(Gi,Lt.current)}catch(co){no=co,Zn=co}no||(Zn=null),Yi===Tt.current?Ut.current||Bn():(Tt.current=Yi,Kt.current=Yi,Ut.current=!0,ar({type:"STORE_UPDATED",payload:{error:no}}))}};je.onStateChange=Wn,je.trySubscribe(),Wn();var gr=function(){if(qn=!0,je.tryUnsubscribe(),je.onStateChange=null,Zn)throw Zn};return gr}}var wt=function(){return[null,0]};function At(we,Le){Le===void 0&&(Le={});var je=Le,ut=je.getDisplayName,Lt=ut===void 0?function(Ea){return"ConnectAdvanced("+Ea+")"}:ut,Tt=je.methodName,Ut=Tt===void 0?"connectAdvanced":Tt,Kt=je.renderCountProp,Bn=Kt===void 0?void 0:Kt,ar=je.shouldHandleStateChanges,qn=ar===void 0?!0:ar,Zn=je.storeKey,Wn=Zn===void 0?"store":Zn,gr=je.withRef,si=gr===void 0?!1:gr,Gi=je.forwardRef,Yi=Gi===void 0?!1:Gi,no=je.context,co=no===void 0?Te:no,ko=(0,ue.Z)(je,Ae);if(0)var Eo;var Go=co;return function(Ha){var vl=Ha.displayName||Ha.name||"Component",Ma=Lt(vl),ll=(0,ke.Z)({},ko,{getDisplayName:Lt,methodName:Ut,renderCountProp:Bn,shouldHandleStateChanges:qn,storeKey:Wn,displayName:Ma,wrappedComponentName:vl,WrappedComponent:Ha}),mu=ko.pure;function Nu(Ks){return we(Ks.dispatch,ll)}var qc=mu?oe.useMemo:function(Ks){return Ks()};function fc(Ks){var gd=(0,oe.useMemo)(function(){var el=Ks.reactReduxForwardedRef,Cc=(0,ue.Z)(Ks,De);return[Ks.context,el,Cc]},[Ks]),ul=gd[0],$c=gd[1],$h=gd[2],ed=(0,oe.useMemo)(function(){return ul&&ul.Consumer&&(0,be.isContextConsumer)(oe.createElement(ul.Consumer,null))?ul:Go},[ul,Go]),Fo=(0,oe.useContext)(ed),wh=!!Ks.store&&!!Ks.store.getState&&!!Ks.store.dispatch,Cp=!!Fo&&!!Fo.store,td=wh?Ks.store:Fo.store,Id=(0,oe.useMemo)(function(){return Nu(td)},[td]),th=(0,oe.useMemo)(function(){if(!qn)return nt;var el=Fe(td,wh?null:Fo.subscription),Cc=el.notifyNestedSubs.bind(el);return[el,Cc]},[td,wh,Fo]),rc=th[0],Bf=th[1],_f=(0,oe.useMemo)(function(){return wh?Fo:(0,ke.Z)({},Fo,{subscription:rc})},[wh,Fo,rc]),og=(0,oe.useReducer)(ot,We,wt),Vg=og[0],Pp=Vg[0],ef=og[1];if(Pp&&Pp.error)throw Pp.error;var ag=(0,oe.useRef)(),Tp=(0,oe.useRef)($h),tf=(0,oe.useRef)(),nf=(0,oe.useRef)(!1),Ap=qc(function(){return tf.current&&$h===Tp.current?tf.current:Id(td.getState(),$h)},[td,Pp,$h]);mt(at,[Tp,ag,nf,$h,Ap,tf,Bf]),mt(vt,[qn,td,rc,Id,Tp,ag,nf,tf,Bf,ef],[td,rc,Id]);var ua=(0,oe.useMemo)(function(){return oe.createElement(Ha,(0,ke.Z)({},Ap,{ref:$c}))},[$c,Ha,Ap]),Lu=(0,oe.useMemo)(function(){return qn?oe.createElement(ed.Provider,{value:_f},ua):ua},[ed,ua,_f]);return Lu}var nc=mu?oe.memo(fc):fc;if(nc.WrappedComponent=Ha,nc.displayName=fc.displayName=Ma,Yi){var Ul=oe.forwardRef(function(gd,ul){return oe.createElement(nc,(0,ke.Z)({},gd,{reactReduxForwardedRef:ul}))});return Ul.displayName=Ma,Ul.WrappedComponent=Ha,me()(Ul,Ha)}return me()(nc,Ha)}}function Ht(we,Le){return we===Le?we!==0||Le!==0||1/we===1/Le:we!==we&&Le!==Le}function Qt(we,Le){if(Ht(we,Le))return!0;if(typeof we!="object"||we===null||typeof Le!="object"||Le===null)return!1;var je=Object.keys(we),ut=Object.keys(Le);if(je.length!==ut.length)return!1;for(var Lt=0;Lt<je.length;Lt++)if(!Object.prototype.hasOwnProperty.call(Le,je[Lt])||!Ht(we[je[Lt]],Le[je[Lt]]))return!1;return!0}function Zt(we,Le){var je={},ut=function(Ut){var Kt=we[Ut];typeof Kt=="function"&&(je[Ut]=function(){return Le(Kt.apply(void 0,arguments))})};for(var Lt in we)ut(Lt);return je}function ln(we){return function(je,ut){var Lt=we(je,ut);function Tt(){return Lt}return Tt.dependsOnOwnProps=!1,Tt}}function Nt(we){return we.dependsOnOwnProps!==null&&we.dependsOnOwnProps!==void 0?!!we.dependsOnOwnProps:we.length!==1}function gt(we,Le){return function(ut,Lt){var Tt=Lt.displayName,Ut=function(Bn,ar){return Ut.dependsOnOwnProps?Ut.mapToProps(Bn,ar):Ut.mapToProps(Bn)};return Ut.dependsOnOwnProps=!0,Ut.mapToProps=function(Bn,ar){Ut.mapToProps=we,Ut.dependsOnOwnProps=Nt(we);var qn=Ut(Bn,ar);return typeof qn=="function"&&(Ut.mapToProps=qn,Ut.dependsOnOwnProps=Nt(qn),qn=Ut(Bn,ar)),qn},Ut}}function ct(we){return typeof we=="function"?gt(we,"mapDispatchToProps"):void 0}function Jt(we){return we?void 0:ln(function(Le){return{dispatch:Le}})}function sn(we){return we&&typeof we=="object"?ln(function(Le){return Zt(we,Le)}):void 0}var It=[ct,Jt,sn];function wn(we){return typeof we=="function"?gt(we,"mapStateToProps"):void 0}function bn(we){return we?void 0:ln(function(){return{}})}var _n=[wn,bn];function Xt(we,Le,je){return(0,ke.Z)({},je,we,Le)}function zn(we){return function(je,ut){var Lt=ut.displayName,Tt=ut.pure,Ut=ut.areMergedPropsEqual,Kt=!1,Bn;return function(qn,Zn,Wn){var gr=we(qn,Zn,Wn);return Kt?(!Tt||!Ut(gr,Bn))&&(Bn=gr):(Kt=!0,Bn=gr),Bn}}}function Ot(we){return typeof we=="function"?zn(we):void 0}function jn(we){return we?void 0:function(){return Xt}}var cr=[Ot,jn],it=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function _e(we,Le,je,ut){return function(Tt,Ut){return je(we(Tt,Ut),Le(ut,Ut),Ut)}}function Re(we,Le,je,ut,Lt){var Tt=Lt.areStatesEqual,Ut=Lt.areOwnPropsEqual,Kt=Lt.areStatePropsEqual,Bn=!1,ar,qn,Zn,Wn,gr;function si(ko,Eo){return ar=ko,qn=Eo,Zn=we(ar,qn),Wn=Le(ut,qn),gr=je(Zn,Wn,qn),Bn=!0,gr}function Gi(){return Zn=we(ar,qn),Le.dependsOnOwnProps&&(Wn=Le(ut,qn)),gr=je(Zn,Wn,qn),gr}function Yi(){return we.dependsOnOwnProps&&(Zn=we(ar,qn)),Le.dependsOnOwnProps&&(Wn=Le(ut,qn)),gr=je(Zn,Wn,qn),gr}function no(){var ko=we(ar,qn),Eo=!Kt(ko,Zn);return Zn=ko,Eo&&(gr=je(Zn,Wn,qn)),gr}function co(ko,Eo){var Go=!Ut(Eo,qn),Ea=!Tt(ko,ar,Eo,qn);return ar=ko,qn=Eo,Go&&Ea?Gi():Go?Yi():Ea?no():gr}return function(Eo,Go){return Bn?co(Eo,Go):si(Eo,Go)}}function Xe(we,Le){var je=Le.initMapStateToProps,ut=Le.initMapDispatchToProps,Lt=Le.initMergeProps,Tt=(0,ue.Z)(Le,it),Ut=je(we,Tt),Kt=ut(we,Tt),Bn=Lt(we,Tt),ar=Tt.pure?Re:_e;return ar(Ut,Kt,Bn,we,Tt)}var lt=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Be(we,Le,je){for(var ut=Le.length-1;ut>=0;ut--){var Lt=Le[ut](we);if(Lt)return Lt}return function(Tt,Ut){throw new Error("Invalid value of type "+typeof we+" for "+je+" argument when connecting component "+Ut.wrappedComponentName+".")}}function bt(we,Le){return we===Le}function Wt(we){var Le=we===void 0?{}:we,je=Le.connectHOC,ut=je===void 0?At:je,Lt=Le.mapStateToPropsFactories,Tt=Lt===void 0?_n:Lt,Ut=Le.mapDispatchToPropsFactories,Kt=Ut===void 0?It:Ut,Bn=Le.mergePropsFactories,ar=Bn===void 0?cr:Bn,qn=Le.selectorFactory,Zn=qn===void 0?Xe:qn;return function(gr,si,Gi,Yi){Yi===void 0&&(Yi={});var no=Yi,co=no.pure,ko=co===void 0?!0:co,Eo=no.areStatesEqual,Go=Eo===void 0?bt:Eo,Ea=no.areOwnPropsEqual,Ha=Ea===void 0?Qt:Ea,vl=no.areStatePropsEqual,Ma=vl===void 0?Qt:vl,ll=no.areMergedPropsEqual,mu=ll===void 0?Qt:ll,Nu=(0,ue.Z)(no,lt),qc=Be(gr,Tt,"mapStateToProps"),fc=Be(si,Kt,"mapDispatchToProps"),nc=Be(Gi,ar,"mergeProps");return ut(Zn,(0,ke.Z)({methodName:"connect",getDisplayName:function(Ks){return"Connect("+Ks+")"},shouldHandleStateChanges:!!gr,initMapStateToProps:qc,initMapDispatchToProps:fc,initMergeProps:nc,pure:ko,areStatesEqual:Go,areOwnPropsEqual:Ha,areStatePropsEqual:Ma,areMergedPropsEqual:mu},Nu))}}var yn=Wt();function On(){var we=useContext(ReactReduxContext);return we}function Pt(we){we===void 0&&(we=ReactReduxContext);var Le=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(){var ut=Le(),Lt=ut.store;return Lt}}var Vt=null;function zt(we){we===void 0&&(we=ReactReduxContext);var Le=we===ReactReduxContext?useDefaultStore:createStoreHook(we);return function(){var ut=Le();return ut.dispatch}}var pn=null,Tn=function(Le,je){return Le===je};function gn(we,Le,je,ut){var Lt=useReducer(function(si){return si+1},0),Tt=Lt[1],Ut=useMemo(function(){return createSubscription(je,ut)},[je,ut]),Kt=useRef(),Bn=useRef(),ar=useRef(),qn=useRef(),Zn=je.getState(),Wn;try{if(we!==Bn.current||Zn!==ar.current||Kt.current){var gr=we(Zn);qn.current===void 0||!Le(gr,qn.current)?Wn=gr:Wn=qn.current}else Wn=qn.current}catch(si){throw Kt.current&&(si.message+=`
The error may be correlated with this previous error:
`+Kt.current.stack+`
`),si}return useIsomorphicLayoutEffect(function(){Bn.current=we,ar.current=Zn,qn.current=Wn,Kt.current=void 0}),useIsomorphicLayoutEffect(function(){function si(){try{var Gi=je.getState();if(Gi===ar.current)return;var Yi=Bn.current(Gi);if(Le(Yi,qn.current))return;qn.current=Yi,ar.current=Gi}catch(no){Kt.current=no}Tt()}return Ut.onStateChange=si,Ut.trySubscribe(),si(),function(){return Ut.tryUnsubscribe()}},[je,Ut]),Wn}function Mt(we){we===void 0&&(we=ReactReduxContext);var Le=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(ut,Lt){Lt===void 0&&(Lt=Tn);var Tt=Le(),Ut=Tt.store,Kt=Tt.subscription,Bn=gn(ut,Lt,Ut,Kt);return useDebugValue(Bn),Bn}}var Un=null,Yt=ae(4676);Ue(Yt.unstable_batchedUpdates);function on(we,Le){if(we.length!==Le.length)return!1;for(var je=0;je<we.length;je++)if(we[je]!==Le[je])return!1;return!0}function mn(we,Le){var je=(0,oe.useState)(function(){return{inputs:Le,result:we()}})[0],ut=(0,oe.useRef)(!0),Lt=(0,oe.useRef)(je),Tt=ut.current||!!(Le&&Lt.current.inputs&&on(Le,Lt.current.inputs)),Ut=Tt?Lt.current:{inputs:Le,result:we()};return(0,oe.useEffect)(function(){ut.current=!1,Lt.current=Ut},[Ut]),Ut.result}function er(we,Le){return mn(function(){return we},Le)}var Sn=mn,ht=er,tr=!0,lr="Invariant failed";function qt(we,Le){if(!we){if(tr)throw new Error(lr);var je=typeof Le=="function"?Le():Le,ut=je?"".concat(lr,": ").concat(je):lr;throw new Error(ut)}}var yr=function(Le){var je=Le.top,ut=Le.right,Lt=Le.bottom,Tt=Le.left,Ut=ut-Tt,Kt=Lt-je,Bn={top:je,right:ut,bottom:Lt,left:Tt,width:Ut,height:Kt,x:Tt,y:je,center:{x:(ut+Tt)/2,y:(Lt+je)/2}};return Bn},ri=function(Le,je){return{top:Le.top-je.top,left:Le.left-je.left,bottom:Le.bottom+je.bottom,right:Le.right+je.right}},Or=function(Le,je){return{top:Le.top+je.top,left:Le.left+je.left,bottom:Le.bottom-je.bottom,right:Le.right-je.right}},Nn=function(Le,je){return{top:Le.top+je.y,left:Le.left+je.x,bottom:Le.bottom+je.y,right:Le.right+je.x}},ui={top:0,right:0,bottom:0,left:0},$r=function(Le){var je=Le.borderBox,ut=Le.margin,Lt=ut===void 0?ui:ut,Tt=Le.border,Ut=Tt===void 0?ui:Tt,Kt=Le.padding,Bn=Kt===void 0?ui:Kt,ar=yr(ri(je,Lt)),qn=yr(Or(je,Ut)),Zn=yr(Or(qn,Bn));return{marginBox:ar,borderBox:yr(je),paddingBox:qn,contentBox:Zn,margin:Lt,border:Ut,padding:Bn}},or=function(Le){var je=Le.slice(0,-2),ut=Le.slice(-2);if(ut!=="px")return 0;var Lt=Number(je);return isNaN(Lt)&&qt(!1),Lt},Kr=function(){return{x:window.pageXOffset,y:window.pageYOffset}},oi=function(Le,je){var ut=Le.borderBox,Lt=Le.border,Tt=Le.margin,Ut=Le.padding,Kt=Nn(ut,je);return $r({borderBox:Kt,border:Lt,margin:Tt,padding:Ut})},Me=function(Le,je){return je===void 0&&(je=Kr()),oi(Le,je)},kr=function(Le,je){var ut={top:or(je.marginTop),right:or(je.marginRight),bottom:or(je.marginBottom),left:or(je.marginLeft)},Lt={top:or(je.paddingTop),right:or(je.paddingRight),bottom:or(je.paddingBottom),left:or(je.paddingLeft)},Tt={top:or(je.borderTopWidth),right:or(je.borderRightWidth),bottom:or(je.borderBottomWidth),left:or(je.borderLeftWidth)};return $r({borderBox:Le,margin:ut,padding:Lt,border:Tt})},Pr=function(Le){var je=Le.getBoundingClientRect(),ut=window.getComputedStyle(Le);return kr(je,ut)},ei=Number.isNaN||function(Le){return typeof Le=="number"&&Le!==Le};function Ii(we,Le){return!!(we===Le||ei(we)&&ei(Le))}function Di(we,Le){if(we.length!==Le.length)return!1;for(var je=0;je<we.length;je++)if(!Ii(we[je],Le[je]))return!1;return!0}function Ti(we,Le){Le===void 0&&(Le=Di);var je,ut=[],Lt,Tt=!1;function Ut(){for(var Kt=[],Bn=0;Bn<arguments.length;Bn++)Kt[Bn]=arguments[Bn];return Tt&&je===this&&Le(Kt,ut)||(Lt=we.apply(this,Kt),Tt=!0,je=this,ut=Kt),Lt}return Ut}var Vr=Ti,Fr=function(Le){var je=[],ut=null,Lt=function(){for(var Ut=arguments.length,Kt=new Array(Ut),Bn=0;Bn<Ut;Bn++)Kt[Bn]=arguments[Bn];je=Kt,!ut&&(ut=requestAnimationFrame(function(){ut=null,Le.apply(void 0,je)}))};return Lt.cancel=function(){ut&&(cancelAnimationFrame(ut),ut=null)},Lt},dn=Fr,hn=!0,un=/[ \t]{2,}/g,Ur=/^[ \t]*/gm,Tr=function(Le){return Le.replace(un," ").replace(Ur,"").trim()},Zr=function(Le){return Tr(`
%creact-beautiful-dnd
%c`+Tr(Le)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},sr=function(Le){return[Zr(Le),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Rr="__react-beautiful-dnd-disable-dev-warnings";function Cn(we,Le){var je;hn||typeof window!="undefined"&&window[Rr]||(je=console)[we].apply(je,sr(Le))}var fn=Cn.bind(null,"warn"),Wr=Cn.bind(null,"error");function kt(){}function Gn(we,Le){return(0,ke.Z)({},we,{},Le)}function vr(we,Le,je){var ut=Le.map(function(Lt){var Tt=Gn(je,Lt.options);return we.addEventListener(Lt.eventName,Lt.fn,Tt),function(){we.removeEventListener(Lt.eventName,Lt.fn,Tt)}});return function(){ut.forEach(function(Tt){Tt()})}}var Qr=!0,nn="Invariant failed";function Qn(we){this.message=we}Qn.prototype.toString=function(){return this.message};function Dn(we,Le){if(!we)throw Qr?new Qn(nn):new Qn(nn+": "+(Le||""))}var xn=function(we){Ie(Le,we);function Le(){for(var ut,Lt=arguments.length,Tt=new Array(Lt),Ut=0;Ut<Lt;Ut++)Tt[Ut]=arguments[Ut];return ut=we.call.apply(we,[this].concat(Tt))||this,ut.callbacks=null,ut.unbind=kt,ut.onWindowError=function(Kt){var Bn=ut.getCallbacks();Bn.isDragging()&&Bn.tryAbort();var ar=Kt.error;ar instanceof Qn&&Kt.preventDefault()},ut.getCallbacks=function(){if(!ut.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ut.callbacks},ut.setCallbacks=function(Kt){ut.callbacks=Kt},ut}var je=Le.prototype;return je.componentDidMount=function(){this.unbind=vr(window,[{eventName:"error",fn:this.onWindowError}])},je.componentWillUnmount=function(){this.unbind()},je.componentDidCatch=function(Lt){if(Lt instanceof Qn){this.setState({});return}throw Lt},je.render=function(){return this.props.children(this.setCallbacks)},Le}(oe.Component),Ge=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,Jr=function(Le){return Le+1},Hr=function(Le){return`
You have lifted an item in position `+Jr(Le.source.index)+`
`},Jn=function(Le,je){var ut=Le.droppableId===je.droppableId,Lt=Jr(Le.index),Tt=Jr(je.index);return ut?`
You have moved the item from position `+Lt+`
to position `+Tt+`
`:`
You have moved the item from position `+Lt+`
in list `+Le.droppableId+`
to list `+je.droppableId+`
in position `+Tt+`
`},hi=function(Le,je,ut){var Lt=je.droppableId===ut.droppableId;return Lt?`
The item `+Le+`
has been combined with `+ut.draggableId:`
The item `+Le+`
in list `+je.droppableId+`
has been combined with `+ut.draggableId+`
in list `+ut.droppableId+`
`},ti=function(Le){var je=Le.destination;if(je)return Jn(Le.source,je);var ut=Le.combine;return ut?hi(Le.draggableId,Le.source,ut):"You are over an area that cannot be dropped on"},Si=function(Le){return`
The item has returned to its starting position
of `+Jr(Le.index)+`
`},nr=function(Le){if(Le.reason==="CANCEL")return`
Movement cancelled.
`+Si(Le.source)+`
`;var je=Le.destination,ut=Le.combine;return je?`
You have dropped the item.
`+Jn(Le.source,je)+`
`:ut?`
You have dropped the item.
`+hi(Le.draggableId,Le.source,ut)+`
`:`
The item has been dropped while not over a drop area.
`+Si(Le.source)+`
`},vn={dragHandleUsageInstructions:Ge,onDragStart:Hr,onDragUpdate:ti,onDragEnd:nr},xi={x:0,y:0},zi=function(Le,je){return{x:Le.x+je.x,y:Le.y+je.y}},Ln=function(Le,je){return{x:Le.x-je.x,y:Le.y-je.y}},Xr=function(Le,je){return Le.x===je.x&&Le.y===je.y},fi=function(Le){return{x:Le.x!==0?-Le.x:0,y:Le.y!==0?-Le.y:0}},wi=function(Le,je,ut){var Lt;return ut===void 0&&(ut=0),Lt={},Lt[Le]=je,Lt[Le==="x"?"y":"x"]=ut,Lt},ai=function(Le,je){return Math.sqrt(Math.pow(je.x-Le.x,2)+Math.pow(je.y-Le.y,2))},Ni=function(Le,je){return Math.min.apply(Math,je.map(function(ut){return ai(Le,ut)}))},Xi=function(Le){return function(je){return{x:Le(je.x),y:Le(je.y)}}},Vi=function(we,Le){var je=yr({top:Math.max(Le.top,we.top),right:Math.min(Le.right,we.right),bottom:Math.min(Le.bottom,we.bottom),left:Math.max(Le.left,we.left)});return je.width<=0||je.height<=0?null:je},Bi=function(Le,je){return{top:Le.top+je.y,left:Le.left+je.x,bottom:Le.bottom+je.y,right:Le.right+je.x}},Hi=function(Le){return[{x:Le.left,y:Le.top},{x:Le.right,y:Le.top},{x:Le.left,y:Le.bottom},{x:Le.right,y:Le.bottom}]},rr={top:0,right:0,bottom:0,left:0},_i=function(Le,je){return je?Bi(Le,je.scroll.diff.displacement):Le},ur=function(Le,je,ut){if(ut&&ut.increasedBy){var Lt;return(0,ke.Z)({},Le,(Lt={},Lt[je.end]=Le[je.end]+ut.increasedBy[je.line],Lt))}return Le},vi=function(Le,je){return je&&je.shouldClipSubject?Vi(je.pageMarginBox,Le):yr(Le)},Pi=function(we){var Le=we.page,je=we.withPlaceholder,ut=we.axis,Lt=we.frame,Tt=_i(Le.marginBox,Lt),Ut=ur(Tt,ut,je),Kt=vi(Ut,Lt);return{page:Le,withPlaceholder:je,active:Kt}},Mi=function(we,Le){we.frame||Dn(!1);var je=we.frame,ut=Ln(Le,je.scroll.initial),Lt=fi(ut),Tt=(0,ke.Z)({},je,{scroll:{initial:je.scroll.initial,current:Le,diff:{value:ut,displacement:Lt},max:je.scroll.max}}),Ut=Pi({page:we.subject.page,withPlaceholder:we.subject.withPlaceholder,axis:we.axis,frame:Tt}),Kt=(0,ke.Z)({},we,{frame:Tt,subject:Ut});return Kt};function po(we){return Number.isInteger?Number.isInteger(we):typeof we=="number"&&isFinite(we)&&Math.floor(we)===we}function Oo(we){return Object.values?Object.values(we):Object.keys(we).map(function(Le){return we[Le]})}function mo(we,Le){if(we.findIndex)return we.findIndex(Le);for(var je=0;je<we.length;je++)if(Le(we[je]))return je;return-1}function xo(we,Le){if(we.find)return we.find(Le);var je=mo(we,Le);if(je!==-1)return we[je]}function Fn(we){return Array.prototype.slice.call(we)}var fr=Vr(function(we){return we.reduce(function(Le,je){return Le[je.descriptor.id]=je,Le},{})}),Rn=Vr(function(we){return we.reduce(function(Le,je){return Le[je.descriptor.id]=je,Le},{})}),rt=Vr(function(we){return Oo(we)}),jr=Vr(function(we){return Oo(we)}),Sr=Vr(function(we,Le){var je=jr(Le).filter(function(ut){return we===ut.descriptor.droppableId}).sort(function(ut,Lt){return ut.descriptor.index-Lt.descriptor.index});return je});function zr(we){return we.at&&we.at.type==="REORDER"?we.at.destination:null}function ni(we){return we.at&&we.at.type==="COMBINE"?we.at.combine:null}var pi=Vr(function(we,Le){return Le.filter(function(je){return je.descriptor.id!==we.descriptor.id})}),Er=function(we){var Le=we.isMovingForward,je=we.draggable,ut=we.destination,Lt=we.insideDestination,Tt=we.previousImpact;if(!ut.isCombineEnabled)return null;var Ut=zr(Tt);if(!Ut)return null;function Kt(Gi){var Yi={type:"COMBINE",combine:{draggableId:Gi,droppableId:ut.descriptor.id}};return(0,ke.Z)({},Tt,{at:Yi})}var Bn=Tt.displaced.all,ar=Bn.length?Bn[0]:null;if(Le)return ar?Kt(ar):null;var qn=pi(je,Lt);if(!ar){if(!qn.length)return null;var Zn=qn[qn.length-1];return Kt(Zn.descriptor.id)}var Wn=mo(qn,function(Gi){return Gi.descriptor.id===ar});Wn===-1&&Dn(!1);var gr=Wn-1;if(gr<0)return null;var si=qn[gr];return Kt(si.descriptor.id)},ft=function(we,Le){return we.descriptor.droppableId===Le.descriptor.id},En={point:xi,value:0},Mn={invisible:{},visible:{},all:[]},Xn={displaced:Mn,displacedBy:En,at:null},Hn=function(we,Le){return function(je){return we<=je&&je<=Le}},hr=function(we){var Le=Hn(we.top,we.bottom),je=Hn(we.left,we.right);return function(ut){var Lt=Le(ut.top)&&Le(ut.bottom)&&je(ut.left)&&je(ut.right);if(Lt)return!0;var Tt=Le(ut.top)||Le(ut.bottom),Ut=je(ut.left)||je(ut.right),Kt=Tt&&Ut;if(Kt)return!0;var Bn=ut.top<we.top&&ut.bottom>we.bottom,ar=ut.left<we.left&&ut.right>we.right,qn=Bn&&ar;if(qn)return!0;var Zn=Bn&&Ut||ar&&Tt;return Zn}},$n=function(we){var Le=Hn(we.top,we.bottom),je=Hn(we.left,we.right);return function(ut){var Lt=Le(ut.top)&&Le(ut.bottom)&&je(ut.left)&&je(ut.right);return Lt}},cn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Kn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Gr=function(we){return function(Le){var je=Hn(Le.top,Le.bottom),ut=Hn(Le.left,Le.right);return function(Lt){return we===cn?je(Lt.top)&&je(Lt.bottom):ut(Lt.left)&&ut(Lt.right)}}},Li=function(Le,je){var ut=je.frame?je.frame.scroll.diff.displacement:xi;return Bi(Le,ut)},mi=function(Le,je,ut){return je.subject.active?ut(je.subject.active)(Le):!1},gi=function(Le,je,ut){return ut(je)(Le)},Ri=function(Le){var je=Le.target,ut=Le.destination,Lt=Le.viewport,Tt=Le.withDroppableDisplacement,Ut=Le.isVisibleThroughFrameFn,Kt=Tt?Li(je,ut):je;return mi(Kt,ut,Ut)&&gi(Kt,Lt,Ut)},Oi=function(Le){return Ri((0,ke.Z)({},Le,{isVisibleThroughFrameFn:hr}))},lo=function(Le){return Ri((0,ke.Z)({},Le,{isVisibleThroughFrameFn:$n}))},So=function(Le){return Ri((0,ke.Z)({},Le,{isVisibleThroughFrameFn:Gr(Le.destination.axis)}))},na=function(Le,je,ut){if(typeof ut=="boolean")return ut;if(!je)return!0;var Lt=je.invisible,Tt=je.visible;if(Lt[Le])return!1;var Ut=Tt[Le];return Ut?Ut.shouldAnimate:!0};function An(we,Le){var je=we.page.marginBox,ut={top:Le.point.y,right:0,bottom:0,left:Le.point.x};return yr(ri(je,ut))}function so(we){var Le=we.afterDragging,je=we.destination,ut=we.displacedBy,Lt=we.viewport,Tt=we.forceShouldAnimate,Ut=we.last;return Le.reduce(function(Bn,ar){var qn=An(ar,ut),Zn=ar.descriptor.id;Bn.all.push(Zn);var Wn=Oi({target:qn,destination:je,viewport:Lt,withDroppableDisplacement:!0});if(!Wn)return Bn.invisible[ar.descriptor.id]=!0,Bn;var gr=na(Zn,Ut,Tt),si={draggableId:Zn,shouldAnimate:gr};return Bn.visible[Zn]=si,Bn},{all:[],visible:{},invisible:{}})}function Do(we,Le){if(!we.length)return 0;var je=we[we.length-1].descriptor.index;return Le.inHomeList?je:je+1}function Wi(we){var Le=we.insideDestination,je=we.inHomeList,ut=we.displacedBy,Lt=we.destination,Tt=Do(Le,{inHomeList:je});return{displaced:Mn,displacedBy:ut,at:{type:"REORDER",destination:{droppableId:Lt.descriptor.id,index:Tt}}}}function ho(we){var Le=we.draggable,je=we.insideDestination,ut=we.destination,Lt=we.viewport,Tt=we.displacedBy,Ut=we.last,Kt=we.index,Bn=we.forceShouldAnimate,ar=ft(Le,ut);if(Kt==null)return Wi({insideDestination:je,inHomeList:ar,displacedBy:Tt,destination:ut});var qn=xo(je,function(Gi){return Gi.descriptor.index===Kt});if(!qn)return Wi({insideDestination:je,inHomeList:ar,displacedBy:Tt,destination:ut});var Zn=pi(Le,je),Wn=je.indexOf(qn),gr=Zn.slice(Wn),si=so({afterDragging:gr,destination:ut,displacedBy:Tt,last:Ut,viewport:Lt.frame,forceShouldAnimate:Bn});return{displaced:si,displacedBy:Tt,at:{type:"REORDER",destination:{droppableId:ut.descriptor.id,index:Kt}}}}function Ki(we,Le){return!!Le.effected[we]}var da=function(we){var Le=we.isMovingForward,je=we.destination,ut=we.draggables,Lt=we.combine,Tt=we.afterCritical;if(!je.isCombineEnabled)return null;var Ut=Lt.draggableId,Kt=ut[Ut],Bn=Kt.descriptor.index,ar=Ki(Ut,Tt);return ar?Le?Bn:Bn-1:Le?Bn+1:Bn},Vn=function(we){var Le=we.isMovingForward,je=we.isInHomeList,ut=we.insideDestination,Lt=we.location;if(!ut.length)return null;var Tt=Lt.index,Ut=Le?Tt+1:Tt-1,Kt=ut[0].descriptor.index,Bn=ut[ut.length-1].descriptor.index,ar=je?Bn:Bn+1;return Ut<Kt||Ut>ar?null:Ut},Mo=function(we){var Le=we.isMovingForward,je=we.isInHomeList,ut=we.draggable,Lt=we.draggables,Tt=we.destination,Ut=we.insideDestination,Kt=we.previousImpact,Bn=we.viewport,ar=we.afterCritical,qn=Kt.at;if(qn||Dn(!1),qn.type==="REORDER"){var Zn=Vn({isMovingForward:Le,isInHomeList:je,location:qn.destination,insideDestination:Ut});return Zn==null?null:ho({draggable:ut,insideDestination:Ut,destination:Tt,viewport:Bn,last:Kt.displaced,displacedBy:Kt.displacedBy,index:Zn})}var Wn=da({isMovingForward:Le,destination:Tt,displaced:Kt.displaced,draggables:Lt,combine:qn.combine,afterCritical:ar});return Wn==null?null:ho({draggable:ut,insideDestination:Ut,destination:Tt,viewport:Bn,last:Kt.displaced,displacedBy:Kt.displacedBy,index:Wn})},ia=function(we){var Le=we.displaced,je=we.afterCritical,ut=we.combineWith,Lt=we.displacedBy,Tt=!!(Le.visible[ut]||Le.invisible[ut]);return Ki(ut,je)?Tt?xi:fi(Lt.point):Tt?Lt.point:xi},Ps=function(we){var Le=we.afterCritical,je=we.impact,ut=we.draggables,Lt=ni(je);Lt||Dn(!1);var Tt=Lt.draggableId,Ut=ut[Tt].page.borderBox.center,Kt=ia({displaced:je.displaced,afterCritical:Le,combineWith:Tt,displacedBy:je.displacedBy});return zi(Ut,Kt)},Fa=function(Le,je){return je.margin[Le.start]+je.borderBox[Le.size]/2},Gs=function(Le,je){return je.margin[Le.end]+je.borderBox[Le.size]/2},gs=function(Le,je,ut){return je[Le.crossAxisStart]+ut.margin[Le.crossAxisStart]+ut.borderBox[Le.crossAxisSize]/2},Qi=function(Le){var je=Le.axis,ut=Le.moveRelativeTo,Lt=Le.isMoving;return wi(je.line,ut.marginBox[je.end]+Fa(je,Lt),gs(je,ut.marginBox,Lt))},ca=function(Le){var je=Le.axis,ut=Le.moveRelativeTo,Lt=Le.isMoving;return wi(je.line,ut.marginBox[je.start]-Gs(je,Lt),gs(je,ut.marginBox,Lt))},Ba=function(Le){var je=Le.axis,ut=Le.moveInto,Lt=Le.isMoving;return wi(je.line,ut.contentBox[je.start]+Fa(je,Lt),gs(je,ut.contentBox,Lt))},is=function(we){var Le=we.impact,je=we.draggable,ut=we.draggables,Lt=we.droppable,Tt=we.afterCritical,Ut=Sr(Lt.descriptor.id,ut),Kt=je.page,Bn=Lt.axis;if(!Ut.length)return Ba({axis:Bn,moveInto:Lt.page,isMoving:Kt});var ar=Le.displaced,qn=Le.displacedBy,Zn=ar.all[0];if(Zn){var Wn=ut[Zn];if(Ki(Zn,Tt))return ca({axis:Bn,moveRelativeTo:Wn.page,isMoving:Kt});var gr=oi(Wn.page,qn.point);return ca({axis:Bn,moveRelativeTo:gr,isMoving:Kt})}var si=Ut[Ut.length-1];if(si.descriptor.id===je.descriptor.id)return Kt.borderBox.center;if(Ki(si.descriptor.id,Tt)){var Gi=oi(si.page,fi(Tt.displacedBy.point));return Qi({axis:Bn,moveRelativeTo:Gi,isMoving:Kt})}return Qi({axis:Bn,moveRelativeTo:si.page,isMoving:Kt})},To=function(we,Le){var je=we.frame;return je?zi(Le,je.scroll.diff.displacement):Le},Ao=function(Le){var je=Le.impact,ut=Le.draggable,Lt=Le.droppable,Tt=Le.draggables,Ut=Le.afterCritical,Kt=ut.page.borderBox.center,Bn=je.at;return!Lt||!Bn?Kt:Bn.type==="REORDER"?is({impact:je,draggable:ut,draggables:Tt,droppable:Lt,afterCritical:Ut}):Ps({impact:je,draggables:Tt,afterCritical:Ut})},_r=function(we){var Le=Ao(we),je=we.droppable,ut=je?To(je,Le):Le;return ut},to=function(we,Le){var je=Ln(Le,we.scroll.initial),ut=fi(je),Lt=yr({top:Le.y,bottom:Le.y+we.frame.height,left:Le.x,right:Le.x+we.frame.width}),Tt={frame:Lt,scroll:{initial:we.scroll.initial,max:we.scroll.max,current:Le,diff:{value:je,displacement:ut}}};return Tt};function No(we,Le){return we.map(function(je){return Le[je]})}function ba(we,Le){for(var je=0;je<Le.length;je++){var ut=Le[je].visible[we];if(ut)return ut}return null}var os=function(we){var Le=we.impact,je=we.viewport,ut=we.destination,Lt=we.draggables,Tt=we.maxScrollChange,Ut=to(je,zi(je.scroll.current,Tt)),Kt=ut.frame?Mi(ut,zi(ut.frame.scroll.current,Tt)):ut,Bn=Le.displaced,ar=so({afterDragging:No(Bn.all,Lt),destination:ut,displacedBy:Le.displacedBy,viewport:Ut.frame,last:Bn,forceShouldAnimate:!1}),qn=so({afterDragging:No(Bn.all,Lt),destination:Kt,displacedBy:Le.displacedBy,viewport:je.frame,last:Bn,forceShouldAnimate:!1}),Zn={},Wn={},gr=[Bn,ar,qn];Bn.all.forEach(function(Gi){var Yi=ba(Gi,gr);if(Yi){Wn[Gi]=Yi;return}Zn[Gi]=!0});var si=(0,ke.Z)({},Le,{displaced:{all:Bn.all,invisible:Zn,visible:Wn}});return si},ms=function(we,Le){return zi(we.scroll.diff.displacement,Le)},uo=function(we){var Le=we.pageBorderBoxCenter,je=we.draggable,ut=we.viewport,Lt=ms(ut,Le),Tt=Ln(Lt,je.page.borderBox.center);return zi(je.client.borderBox.center,Tt)},_a=function(we){var Le=we.draggable,je=we.destination,ut=we.newPageBorderBoxCenter,Lt=we.viewport,Tt=we.withDroppableDisplacement,Ut=we.onlyOnMainAxis,Kt=Ut===void 0?!1:Ut,Bn=Ln(ut,Le.page.borderBox.center),ar=Bi(Le.page.borderBox,Bn),qn={target:ar,destination:je,withDroppableDisplacement:Tt,viewport:Lt};return Kt?So(qn):lo(qn)},qa=function(we){var Le=we.isMovingForward,je=we.draggable,ut=we.destination,Lt=we.draggables,Tt=we.previousImpact,Ut=we.viewport,Kt=we.previousPageBorderBoxCenter,Bn=we.previousClientSelection,ar=we.afterCritical;if(!ut.isEnabled)return null;var qn=Sr(ut.descriptor.id,Lt),Zn=ft(je,ut),Wn=Er({isMovingForward:Le,draggable:je,destination:ut,insideDestination:qn,previousImpact:Tt})||Mo({isMovingForward:Le,isInHomeList:Zn,draggable:je,draggables:Lt,destination:ut,insideDestination:qn,previousImpact:Tt,viewport:Ut,afterCritical:ar});if(!Wn)return null;var gr=_r({impact:Wn,draggable:je,droppable:ut,draggables:Lt,afterCritical:ar}),si=_a({draggable:je,destination:ut,newPageBorderBoxCenter:gr,viewport:Ut.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(si){var Gi=uo({pageBorderBoxCenter:gr,draggable:je,viewport:Ut});return{clientSelection:Gi,impact:Wn,scrollJumpRequest:null}}var Yi=Ln(gr,Kt),no=os({impact:Wn,viewport:Ut,destination:ut,draggables:Lt,maxScrollChange:Yi});return{clientSelection:Bn,impact:no,scrollJumpRequest:Yi}},pa=function(Le){var je=Le.subject.active;return je||Dn(!1),je},ra=function(we){var Le=we.isMovingForward,je=we.pageBorderBoxCenter,ut=we.source,Lt=we.droppables,Tt=we.viewport,Ut=ut.subject.active;if(!Ut)return null;var Kt=ut.axis,Bn=Hn(Ut[Kt.start],Ut[Kt.end]),ar=rt(Lt).filter(function(Zn){return Zn!==ut}).filter(function(Zn){return Zn.isEnabled}).filter(function(Zn){return!!Zn.subject.active}).filter(function(Zn){return hr(Tt.frame)(pa(Zn))}).filter(function(Zn){var Wn=pa(Zn);return Le?Ut[Kt.crossAxisEnd]<Wn[Kt.crossAxisEnd]:Wn[Kt.crossAxisStart]<Ut[Kt.crossAxisStart]}).filter(function(Zn){var Wn=pa(Zn),gr=Hn(Wn[Kt.start],Wn[Kt.end]);return Bn(Wn[Kt.start])||Bn(Wn[Kt.end])||gr(Ut[Kt.start])||gr(Ut[Kt.end])}).sort(function(Zn,Wn){var gr=pa(Zn)[Kt.crossAxisStart],si=pa(Wn)[Kt.crossAxisStart];return Le?gr-si:si-gr}).filter(function(Zn,Wn,gr){return pa(Zn)[Kt.crossAxisStart]===pa(gr[0])[Kt.crossAxisStart]});if(!ar.length)return null;if(ar.length===1)return ar[0];var qn=ar.filter(function(Zn){var Wn=Hn(pa(Zn)[Kt.start],pa(Zn)[Kt.end]);return Wn(je[Kt.line])});return qn.length===1?qn[0]:qn.length>1?qn.sort(function(Zn,Wn){return pa(Zn)[Kt.start]-pa(Wn)[Kt.start]})[0]:ar.sort(function(Zn,Wn){var gr=Ni(je,Hi(pa(Zn))),si=Ni(je,Hi(pa(Wn)));return gr!==si?gr-si:pa(Zn)[Kt.start]-pa(Wn)[Kt.start]})[0]},Ca=function(Le,je){var ut=Le.page.borderBox.center;return Ki(Le.descriptor.id,je)?Ln(ut,je.displacedBy.point):ut},Ys=function(Le,je){var ut=Le.page.borderBox;return Ki(Le.descriptor.id,je)?Bi(ut,fi(je.displacedBy.point)):ut},oa=function(we){var Le=we.pageBorderBoxCenter,je=we.viewport,ut=we.destination,Lt=we.insideDestination,Tt=we.afterCritical,Ut=Lt.filter(function(Kt){return lo({target:Ys(Kt,Tt),destination:ut,viewport:je.frame,withDroppableDisplacement:!0})}).sort(function(Kt,Bn){var ar=ai(Le,To(ut,Ca(Kt,Tt))),qn=ai(Le,To(ut,Ca(Bn,Tt)));return ar<qn?-1:qn<ar?1:Kt.descriptor.index-Bn.descriptor.index});return Ut[0]||null},as=Vr(function(Le,je){var ut=je[Le.line];return{value:ut,point:wi(Le.line,ut)}}),Il=function(Le,je,ut){var Lt=Le.axis;if(Le.descriptor.mode==="virtual")return wi(Lt.line,je[Lt.line]);var Tt=Le.subject.page.contentBox[Lt.size],Ut=Sr(Le.descriptor.id,ut),Kt=Ut.reduce(function(qn,Zn){return qn+Zn.client.marginBox[Lt.size]},0),Bn=Kt+je[Lt.line],ar=Bn-Tt;return ar<=0?null:wi(Lt.line,ar)},iu=function(Le,je){return(0,ke.Z)({},Le,{scroll:(0,ke.Z)({},Le.scroll,{max:je})})},Ua=function(Le,je,ut){var Lt=Le.frame;ft(je,Le)&&Dn(!1),Le.subject.withPlaceholder&&Dn(!1);var Tt=as(Le.axis,je.displaceBy).point,Ut=Il(Le,Tt,ut),Kt={placeholderSize:Tt,increasedBy:Ut,oldFrameMaxScroll:Le.frame?Le.frame.scroll.max:null};if(!Lt){var Bn=Pi({page:Le.subject.page,withPlaceholder:Kt,axis:Le.axis,frame:Le.frame});return(0,ke.Z)({},Le,{subject:Bn})}var ar=Ut?zi(Lt.scroll.max,Ut):Lt.scroll.max,qn=iu(Lt,ar),Zn=Pi({page:Le.subject.page,withPlaceholder:Kt,axis:Le.axis,frame:qn});return(0,ke.Z)({},Le,{subject:Zn,frame:qn})},jl=function(Le){var je=Le.subject.withPlaceholder;je||Dn(!1);var ut=Le.frame;if(!ut){var Lt=Pi({page:Le.subject.page,axis:Le.axis,frame:null,withPlaceholder:null});return(0,ke.Z)({},Le,{subject:Lt})}var Tt=je.oldFrameMaxScroll;Tt||Dn(!1);var Ut=iu(ut,Tt),Kt=Pi({page:Le.subject.page,axis:Le.axis,frame:Ut,withPlaceholder:null});return(0,ke.Z)({},Le,{subject:Kt,frame:Ut})},sc=function(we){var Le=we.previousPageBorderBoxCenter,je=we.moveRelativeTo,ut=we.insideDestination,Lt=we.draggable,Tt=we.draggables,Ut=we.destination,Kt=we.viewport,Bn=we.afterCritical;if(!je){if(ut.length)return null;var ar={displaced:Mn,displacedBy:En,at:{type:"REORDER",destination:{droppableId:Ut.descriptor.id,index:0}}},qn=_r({impact:ar,draggable:Lt,droppable:Ut,draggables:Tt,afterCritical:Bn}),Zn=ft(Lt,Ut)?Ut:Ua(Ut,Lt,Tt),Wn=_a({draggable:Lt,destination:Zn,newPageBorderBoxCenter:qn,viewport:Kt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Wn?ar:null}var gr=Le[Ut.axis.line]<=je.page.borderBox.center[Ut.axis.line],si=function(){var Yi=je.descriptor.index;return je.descriptor.id===Lt.descriptor.id||gr?Yi:Yi+1}(),Gi=as(Ut.axis,Lt.displaceBy);return ho({draggable:Lt,insideDestination:ut,destination:Ut,viewport:Kt,displacedBy:Gi,last:Mn,index:si})},ou=function(we){var Le=we.isMovingForward,je=we.previousPageBorderBoxCenter,ut=we.draggable,Lt=we.isOver,Tt=we.draggables,Ut=we.droppables,Kt=we.viewport,Bn=we.afterCritical,ar=ra({isMovingForward:Le,pageBorderBoxCenter:je,source:Lt,droppables:Ut,viewport:Kt});if(!ar)return null;var qn=Sr(ar.descriptor.id,Tt),Zn=oa({pageBorderBoxCenter:je,viewport:Kt,destination:ar,insideDestination:qn,afterCritical:Bn}),Wn=sc({previousPageBorderBoxCenter:je,destination:ar,draggable:ut,draggables:Tt,moveRelativeTo:Zn,insideDestination:qn,viewport:Kt,afterCritical:Bn});if(!Wn)return null;var gr=_r({impact:Wn,draggable:ut,droppable:ar,draggables:Tt,afterCritical:Bn}),si=uo({pageBorderBoxCenter:gr,draggable:ut,viewport:Kt});return{clientSelection:si,impact:Wn,scrollJumpRequest:null}},ss=function(we){var Le=we.at;return Le?Le.type==="REORDER"?Le.destination.droppableId:Le.combine.droppableId:null},cl=function(Le,je){var ut=ss(Le);return ut?je[ut]:null},au=function(we){var Le=we.state,je=we.type,ut=cl(Le.impact,Le.dimensions.droppables),Lt=!!ut,Tt=Le.dimensions.droppables[Le.critical.droppable.id],Ut=ut||Tt,Kt=Ut.axis.direction,Bn=Kt==="vertical"&&(je==="MOVE_UP"||je==="MOVE_DOWN")||Kt==="horizontal"&&(je==="MOVE_LEFT"||je==="MOVE_RIGHT");if(Bn&&!Lt)return null;var ar=je==="MOVE_DOWN"||je==="MOVE_RIGHT",qn=Le.dimensions.draggables[Le.critical.draggable.id],Zn=Le.current.page.borderBoxCenter,Wn=Le.dimensions,gr=Wn.draggables,si=Wn.droppables;return Bn?qa({isMovingForward:ar,previousPageBorderBoxCenter:Zn,draggable:qn,destination:Ut,draggables:gr,viewport:Le.viewport,previousClientSelection:Le.current.client.selection,previousImpact:Le.impact,afterCritical:Le.afterCritical}):ou({isMovingForward:ar,previousPageBorderBoxCenter:Zn,draggable:qn,isOver:Ut,draggables:gr,droppables:si,viewport:Le.viewport,afterCritical:Le.afterCritical})};function Vl(we){return we.phase==="DRAGGING"||we.phase==="COLLECTING"}function Zu(we){var Le=Hn(we.top,we.bottom),je=Hn(we.left,we.right);return function(Lt){return Le(Lt.y)&&je(Lt.x)}}function ts(we,Le){return we.left<Le.right&&we.right>Le.left&&we.top<Le.bottom&&we.bottom>Le.top}function lc(we){var Le=we.pageBorderBox,je=we.draggable,ut=we.candidates,Lt=je.page.borderBox.center,Tt=ut.map(function(Ut){var Kt=Ut.axis,Bn=wi(Ut.axis.line,Le.center[Kt.line],Ut.page.borderBox.center[Kt.crossAxisLine]);return{id:Ut.descriptor.id,distance:ai(Lt,Bn)}}).sort(function(Ut,Kt){return Kt.distance-Ut.distance});return Tt[0]?Tt[0].id:null}function bc(we){var Le=we.pageBorderBox,je=we.draggable,ut=we.droppables,Lt=rt(ut).filter(function(Tt){if(!Tt.isEnabled)return!1;var Ut=Tt.subject.active;if(!Ut||!ts(Le,Ut))return!1;if(Zu(Ut)(Le.center))return!0;var Kt=Tt.axis,Bn=Ut.center[Kt.crossAxisLine],ar=Le[Kt.crossAxisStart],qn=Le[Kt.crossAxisEnd],Zn=Hn(Ut[Kt.crossAxisStart],Ut[Kt.crossAxisEnd]),Wn=Zn(ar),gr=Zn(qn);return!Wn&&!gr?!0:Wn?ar<Bn:qn>Bn});return Lt.length?Lt.length===1?Lt[0].descriptor.id:lc({pageBorderBox:Le,draggable:je,candidates:Lt}):null}var Ou=function(Le,je){return yr(Bi(Le,je))},Ku=function(we,Le){var je=we.frame;return je?Ou(Le,je.scroll.diff.value):Le};function Is(we){var Le=we.displaced,je=we.id;return!!(Le.visible[je]||Le.invisible[je])}function js(we){var Le=we.draggable,je=we.closest,ut=we.inHomeList;return je?ut&&je.descriptor.index>Le.descriptor.index?je.descriptor.index-1:je.descriptor.index:null}var hs=function(we){var Le=we.pageBorderBoxWithDroppableScroll,je=we.draggable,ut=we.destination,Lt=we.insideDestination,Tt=we.last,Ut=we.viewport,Kt=we.afterCritical,Bn=ut.axis,ar=as(ut.axis,je.displaceBy),qn=ar.value,Zn=Le[Bn.start],Wn=Le[Bn.end],gr=pi(je,Lt),si=xo(gr,function(Yi){var no=Yi.descriptor.id,co=Yi.page.borderBox.center[Bn.line],ko=Ki(no,Kt),Eo=Is({displaced:Tt,id:no});return ko?Eo?Wn<=co:Zn<co-qn:Eo?Wn<=co+qn:Zn<co}),Gi=js({draggable:je,closest:si,inHomeList:ft(je,ut)});return ho({draggable:je,insideDestination:Lt,destination:ut,viewport:Ut,last:Tt,displacedBy:ar,index:Gi})},vs=4,Sa=function(we){var Le=we.draggable,je=we.pageBorderBoxWithDroppableScroll,ut=we.previousImpact,Lt=we.destination,Tt=we.insideDestination,Ut=we.afterCritical;if(!Lt.isCombineEnabled)return null;var Kt=Lt.axis,Bn=as(Lt.axis,Le.displaceBy),ar=Bn.value,qn=je[Kt.start],Zn=je[Kt.end],Wn=pi(Le,Tt),gr=xo(Wn,function(Gi){var Yi=Gi.descriptor.id,no=Gi.page.borderBox,co=no[Kt.size],ko=co/vs,Eo=Ki(Yi,Ut),Go=Is({displaced:ut.displaced,id:Yi});return Eo?Go?Zn>no[Kt.start]+ko&&Zn<no[Kt.end]-ko:qn>no[Kt.start]-ar+ko&&qn<no[Kt.end]-ar-ko:Go?Zn>no[Kt.start]+ar+ko&&Zn<no[Kt.end]+ar-ko:qn>no[Kt.start]+ko&&qn<no[Kt.end]-ko});if(!gr)return null;var si={displacedBy:Bn,displaced:ut.displaced,at:{type:"COMBINE",combine:{draggableId:gr.descriptor.id,droppableId:Lt.descriptor.id}}};return si},Ho=function(we){var Le=we.pageOffset,je=we.draggable,ut=we.draggables,Lt=we.droppables,Tt=we.previousImpact,Ut=we.viewport,Kt=we.afterCritical,Bn=Ou(je.page.borderBox,Le),ar=bc({pageBorderBox:Bn,draggable:je,droppables:Lt});if(!ar)return Xn;var qn=Lt[ar],Zn=Sr(qn.descriptor.id,ut),Wn=Ku(qn,Bn);return Sa({pageBorderBoxWithDroppableScroll:Wn,draggable:je,previousImpact:Tt,destination:qn,insideDestination:Zn,afterCritical:Kt})||hs({pageBorderBoxWithDroppableScroll:Wn,draggable:je,destination:qn,insideDestination:Zn,last:Tt.displaced,viewport:Ut,afterCritical:Kt})},Yo=function(we,Le){var je;return(0,ke.Z)({},we,(je={},je[Le.descriptor.id]=Le,je))},ys=function(Le){var je=Le.previousImpact,ut=Le.impact,Lt=Le.droppables,Tt=ss(je),Ut=ss(ut);if(!Tt||Tt===Ut)return Lt;var Kt=Lt[Tt];if(!Kt.subject.withPlaceholder)return Lt;var Bn=jl(Kt);return Yo(Lt,Bn)},$a=function(we){var Le=we.draggable,je=we.draggables,ut=we.droppables,Lt=we.previousImpact,Tt=we.impact,Ut=ys({previousImpact:Lt,impact:Tt,droppables:ut}),Kt=ss(Tt);if(!Kt)return Ut;var Bn=ut[Kt];if(ft(Le,Bn)||Bn.subject.withPlaceholder)return Ut;var ar=Ua(Bn,Le,je);return Yo(Ut,ar)},za=function(we){var Le=we.state,je=we.clientSelection,ut=we.dimensions,Lt=we.viewport,Tt=we.impact,Ut=we.scrollJumpRequest,Kt=Lt||Le.viewport,Bn=ut||Le.dimensions,ar=je||Le.current.client.selection,qn=Ln(ar,Le.initial.client.selection),Zn={offset:qn,selection:ar,borderBoxCenter:zi(Le.initial.client.borderBoxCenter,qn)},Wn={selection:zi(Zn.selection,Kt.scroll.current),borderBoxCenter:zi(Zn.borderBoxCenter,Kt.scroll.current),offset:zi(Zn.offset,Kt.scroll.diff.value)},gr={client:Zn,page:Wn};if(Le.phase==="COLLECTING")return(0,ke.Z)({phase:"COLLECTING"},Le,{dimensions:Bn,viewport:Kt,current:gr});var si=Bn.draggables[Le.critical.draggable.id],Gi=Tt||Ho({pageOffset:Wn.offset,draggable:si,draggables:Bn.draggables,droppables:Bn.droppables,previousImpact:Le.impact,viewport:Kt,afterCritical:Le.afterCritical}),Yi=$a({draggable:si,impact:Gi,previousImpact:Le.impact,draggables:Bn.draggables,droppables:Bn.droppables}),no=(0,ke.Z)({},Le,{current:gr,dimensions:{draggables:Bn.draggables,droppables:Yi},impact:Gi,viewport:Kt,scrollJumpRequest:Ut||null,forceShouldAnimate:Ut?!1:null});return no};function Ui(we,Le){return we.map(function(je){return Le[je]})}var Sl=function(we){var Le=we.impact,je=we.viewport,ut=we.draggables,Lt=we.destination,Tt=we.forceShouldAnimate,Ut=Le.displaced,Kt=Ui(Ut.all,ut),Bn=so({afterDragging:Kt,destination:Lt,displacedBy:Le.displacedBy,viewport:je.frame,forceShouldAnimate:Tt,last:Ut});return(0,ke.Z)({},Le,{displaced:Bn})},an=function(we){var Le=we.impact,je=we.draggable,ut=we.droppable,Lt=we.draggables,Tt=we.viewport,Ut=we.afterCritical,Kt=_r({impact:Le,draggable:je,draggables:Lt,droppable:ut,afterCritical:Ut});return uo({pageBorderBoxCenter:Kt,draggable:je,viewport:Tt})},Lr=function(we){var Le=we.state,je=we.dimensions,ut=we.viewport;Le.movementMode!=="SNAP"&&Dn(!1);var Lt=Le.impact,Tt=ut||Le.viewport,Ut=je||Le.dimensions,Kt=Ut.draggables,Bn=Ut.droppables,ar=Kt[Le.critical.draggable.id],qn=ss(Lt);qn||Dn(!1);var Zn=Bn[qn],Wn=Sl({impact:Lt,viewport:Tt,destination:Zn,draggables:Kt}),gr=an({impact:Wn,draggable:ar,droppable:Zn,draggables:Kt,viewport:Tt,afterCritical:Le.afterCritical});return za({impact:Wn,clientSelection:gr,state:Le,dimensions:Ut,viewport:Tt})},Eu=function(we){return{index:we.index,droppableId:we.droppableId}},Yu=function(we){var Le=we.draggable,je=we.home,ut=we.draggables,Lt=we.viewport,Tt=as(je.axis,Le.displaceBy),Ut=Sr(je.descriptor.id,ut),Kt=Ut.indexOf(Le);Kt===-1&&Dn(!1);var Bn=Ut.slice(Kt+1),ar=Bn.reduce(function(gr,si){return gr[si.descriptor.id]=!0,gr},{}),qn={inVirtualList:je.descriptor.mode==="virtual",displacedBy:Tt,effected:ar},Zn=so({afterDragging:Bn,destination:je,displacedBy:Tt,last:null,viewport:Lt.frame,forceShouldAnimate:!1}),Wn={displaced:Zn,displacedBy:Tt,at:{type:"REORDER",destination:Eu(Le.descriptor)}};return{impact:Wn,afterCritical:qn}},fs=function(we,Le){return{draggables:we.draggables,droppables:Yo(we.droppables,Le)}},Vs=function(Le){},Dl=function(Le){},Xu=function(we){var Le=we.draggable,je=we.offset,ut=we.initialWindowScroll,Lt=oi(Le.client,je),Tt=Me(Lt,ut),Ut=(0,ke.Z)({},Le,{placeholder:(0,ke.Z)({},Le.placeholder,{client:Lt}),client:Lt,page:Tt});return Ut},uc=function(we){var Le=we.frame;return Le||Dn(!1),Le},Va=function(we){var Le=we.additions,je=we.updatedDroppables,ut=we.viewport,Lt=ut.scroll.diff.value;return Le.map(function(Tt){var Ut=Tt.descriptor.droppableId,Kt=je[Ut],Bn=uc(Kt),ar=Bn.scroll.diff.value,qn=zi(Lt,ar),Zn=Xu({draggable:Tt,offset:qn,initialWindowScroll:ut.scroll.initial});return Zn})},wo=function(we){var Le=we.state,je=we.published;Vs();var ut=je.modified.map(function(ko){var Eo=Le.dimensions.droppables[ko.droppableId],Go=Mi(Eo,ko.scroll);return Go}),Lt=(0,ke.Z)({},Le.dimensions.droppables,{},fr(ut)),Tt=Rn(Va({additions:je.additions,updatedDroppables:Lt,viewport:Le.viewport})),Ut=(0,ke.Z)({},Le.dimensions.draggables,{},Tt);je.removals.forEach(function(ko){delete Ut[ko]});var Kt={droppables:Lt,draggables:Ut},Bn=ss(Le.impact),ar=Bn?Kt.droppables[Bn]:null,qn=Kt.draggables[Le.critical.draggable.id],Zn=Kt.droppables[Le.critical.droppable.id],Wn=Yu({draggable:qn,home:Zn,draggables:Ut,viewport:Le.viewport}),gr=Wn.impact,si=Wn.afterCritical,Gi=ar&&ar.isCombineEnabled?Le.impact:gr,Yi=Ho({pageOffset:Le.current.page.offset,draggable:Kt.draggables[Le.critical.draggable.id],draggables:Kt.draggables,droppables:Kt.droppables,previousImpact:Gi,viewport:Le.viewport,afterCritical:si});Dl();var no=(0,ke.Z)({phase:"DRAGGING"},Le,{phase:"DRAGGING",impact:Yi,onLiftImpact:gr,dimensions:Kt,afterCritical:si,forceShouldAnimate:!1});if(Le.phase==="COLLECTING")return no;var co=(0,ke.Z)({phase:"DROP_PENDING"},no,{phase:"DROP_PENDING",reason:Le.reason,isWaiting:!1});return co},Ts=function(Le){return Le.movementMode==="SNAP"},Ws=function(Le,je,ut){var Lt=fs(Le.dimensions,je);return!Ts(Le)||ut?za({state:Le,dimensions:Lt}):Lr({state:Le,dimensions:Lt})};function aa(we){return we.isDragging&&we.movementMode==="SNAP"?(0,ke.Z)({phase:"DRAGGING"},we,{scrollJumpRequest:null}):we}var Wo={phase:"IDLE",completed:null,shouldFlush:!1},Ka=function(we,Le){if(we===void 0&&(we=Wo),Le.type==="FLUSH")return(0,ke.Z)({},Wo,{shouldFlush:!0});if(Le.type==="INITIAL_PUBLISH"){we.phase!=="IDLE"&&Dn(!1);var je=Le.payload,ut=je.critical,Lt=je.clientSelection,Tt=je.viewport,Ut=je.dimensions,Kt=je.movementMode,Bn=Ut.draggables[ut.draggable.id],ar=Ut.droppables[ut.droppable.id],qn={selection:Lt,borderBoxCenter:Bn.client.borderBox.center,offset:xi},Zn={client:qn,page:{selection:zi(qn.selection,Tt.scroll.initial),borderBoxCenter:zi(qn.selection,Tt.scroll.initial),offset:zi(qn.selection,Tt.scroll.diff.value)}},Wn=rt(Ut.droppables).every(function(_f){return!_f.isFixedOnPage}),gr=Yu({draggable:Bn,home:ar,draggables:Ut.draggables,viewport:Tt}),si=gr.impact,Gi=gr.afterCritical,Yi={phase:"DRAGGING",isDragging:!0,critical:ut,movementMode:Kt,dimensions:Ut,initial:Zn,current:Zn,isWindowScrollAllowed:Wn,impact:si,afterCritical:Gi,onLiftImpact:si,viewport:Tt,scrollJumpRequest:null,forceShouldAnimate:null};return Yi}if(Le.type==="COLLECTION_STARTING"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Dn(!1);var no=(0,ke.Z)({phase:"COLLECTING"},we,{phase:"COLLECTING"});return no}if(Le.type==="PUBLISH_WHILE_DRAGGING")return we.phase==="COLLECTING"||we.phase==="DROP_PENDING"||Dn(!1),wo({state:we,published:Le.payload});if(Le.type==="MOVE"){if(we.phase==="DROP_PENDING")return we;Vl(we)||Dn(!1);var co=Le.payload.client;return Xr(co,we.current.client.selection)?we:za({state:we,clientSelection:co,impact:Ts(we)?we.impact:null})}if(Le.type==="UPDATE_DROPPABLE_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="COLLECTING")return aa(we);Vl(we)||Dn(!1);var ko=Le.payload,Eo=ko.id,Go=ko.newScroll,Ea=we.dimensions.droppables[Eo];if(!Ea)return we;var Ha=Mi(Ea,Go);return Ws(we,Ha,!1)}if(Le.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(we.phase==="DROP_PENDING")return we;Vl(we)||Dn(!1);var vl=Le.payload,Ma=vl.id,ll=vl.isEnabled,mu=we.dimensions.droppables[Ma];mu||Dn(!1),mu.isEnabled===ll&&Dn(!1);var Nu=(0,ke.Z)({},mu,{isEnabled:ll});return Ws(we,Nu,!0)}if(Le.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(we.phase==="DROP_PENDING")return we;Vl(we)||Dn(!1);var qc=Le.payload,fc=qc.id,nc=qc.isCombineEnabled,Ul=we.dimensions.droppables[fc];Ul||Dn(!1),Ul.isCombineEnabled===nc&&Dn(!1);var Ks=(0,ke.Z)({},Ul,{isCombineEnabled:nc});return Ws(we,Ks,!0)}if(Le.type==="MOVE_BY_WINDOW_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="DROP_ANIMATING")return we;Vl(we)||Dn(!1),we.isWindowScrollAllowed||Dn(!1);var gd=Le.payload.newScroll;if(Xr(we.viewport.scroll.current,gd))return aa(we);var ul=to(we.viewport,gd);return Ts(we)?Lr({state:we,viewport:ul}):za({state:we,viewport:ul})}if(Le.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Vl(we))return we;var $c=Le.payload.maxScroll;if(Xr($c,we.viewport.scroll.max))return we;var $h=(0,ke.Z)({},we.viewport,{scroll:(0,ke.Z)({},we.viewport.scroll,{max:$c})});return(0,ke.Z)({phase:"DRAGGING"},we,{viewport:$h})}if(Le.type==="MOVE_UP"||Le.type==="MOVE_DOWN"||Le.type==="MOVE_LEFT"||Le.type==="MOVE_RIGHT"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Dn(!1);var ed=au({state:we,type:Le.type});return ed?za({state:we,impact:ed.impact,clientSelection:ed.clientSelection,scrollJumpRequest:ed.scrollJumpRequest}):we}if(Le.type==="DROP_PENDING"){var Fo=Le.payload.reason;we.phase!=="COLLECTING"&&Dn(!1);var wh=(0,ke.Z)({phase:"DROP_PENDING"},we,{phase:"DROP_PENDING",isWaiting:!0,reason:Fo});return wh}if(Le.type==="DROP_ANIMATE"){var Cp=Le.payload,td=Cp.completed,Id=Cp.dropDuration,th=Cp.newHomeClientOffset;we.phase==="DRAGGING"||we.phase==="DROP_PENDING"||Dn(!1);var rc={phase:"DROP_ANIMATING",completed:td,dropDuration:Id,newHomeClientOffset:th,dimensions:we.dimensions};return rc}if(Le.type==="DROP_COMPLETE"){var Bf=Le.payload.completed;return{phase:"IDLE",completed:Bf,shouldFlush:!1}}return we},dl=function(Le){return{type:"BEFORE_INITIAL_CAPTURE",payload:Le}},Ia=function(Le){return{type:"LIFT",payload:Le}},bl=function(Le){return{type:"INITIAL_PUBLISH",payload:Le}},As=function(Le){return{type:"PUBLISH_WHILE_DRAGGING",payload:Le}},Fu=function(){return{type:"COLLECTION_STARTING",payload:null}},ga=function(Le){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Le}},Ds=function(Le){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Le}},sa=function(Le){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Le}},Ta=function(Le){return{type:"MOVE",payload:Le}},ka=function(Le){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Le}},Wa=function(Le){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Le}},$o=function(){return{type:"MOVE_UP",payload:null}},cc=function(){return{type:"MOVE_DOWN",payload:null}},vo=function(){return{type:"MOVE_RIGHT",payload:null}},dd=function(){return{type:"MOVE_LEFT",payload:null}},ta=function(){return{type:"FLUSH",payload:null}},Vc=function(Le){return{type:"DROP_ANIMATE",payload:Le}},xu=function(Le){return{type:"DROP_COMPLETE",payload:Le}},su=function(Le){return{type:"DROP",payload:Le}},Wc=function(Le){return{type:"DROP_PENDING",payload:Le}},Ec=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function lu(we){if(!(we.length<=1)){for(var Le=we.map(function(Kt){return Kt.descriptor.index}),je={},ut=1;ut<Le.length;ut++){var Lt=Le[ut],Tt=Le[ut-1];Lt!==Tt+1&&(je[Lt]=!0)}if(Object.keys(je).length)var Ut=Le.map(function(Kt){var Bn=!!je[Kt];return Bn?"[\u{1F525}"+Kt+"]":""+Kt}).join(", ")}}function Wl(we,Le){if(0)var je}var la=function(we){return function(Le){var je=Le.getState,ut=Le.dispatch;return function(Lt){return function(Tt){if(Tt.type!=="LIFT"){Lt(Tt);return}var Ut=Tt.payload,Kt=Ut.id,Bn=Ut.clientSelection,ar=Ut.movementMode,qn=je();qn.phase==="DROP_ANIMATING"&&ut(xu({completed:qn.completed})),je().phase!=="IDLE"&&Dn(!1),ut(ta()),ut(dl({draggableId:Kt,movementMode:ar}));var Zn={shouldPublishImmediately:ar==="SNAP"},Wn={draggableId:Kt,scrollOptions:Zn},gr=we.startPublishing(Wn),si=gr.critical,Gi=gr.dimensions,Yi=gr.viewport;Wl(si,Gi),ut(bl({critical:si,dimensions:Gi,clientSelection:Bn,movementMode:ar,viewport:Yi}))}}}},Xs=function(we){return function(){return function(Le){return function(je){je.type==="INITIAL_PUBLISH"&&we.dragging(),je.type==="DROP_ANIMATE"&&we.dropping(je.payload.completed.result.reason),(je.type==="FLUSH"||je.type==="DROP_COMPLETE")&&we.resting(),Le(je)}}}},Bu={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},hl={opacity:{drop:0,combining:.7},scale:{drop:.75}},Zl={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},rl=Zl.outOfTheWay+"s "+Bu.outOfTheWay,jo={fluid:"opacity "+rl,snap:"transform "+rl+", opacity "+rl,drop:function(Le){var je=Le+"s "+Bu.drop;return"transform "+je+", opacity "+je},outOfTheWay:"transform "+rl,placeholder:"height "+rl+", width "+rl+", margin "+rl},ha=function(Le){return Xr(Le,xi)?null:"translate("+Le.x+"px, "+Le.y+"px)"},Ga={moveTo:ha,drop:function(Le,je){var ut=ha(Le);return ut?je?ut+" scale("+hl.scale.drop+")":ut:null}},Ns=Zl.minDropTime,Ss=Zl.maxDropTime,Rl=Ss-Ns,Pl=1500,Ml=.6,Tl=function(we){var Le=we.current,je=we.destination,ut=we.reason,Lt=ai(Le,je);if(Lt<=0)return Ns;if(Lt>=Pl)return Ss;var Tt=Lt/Pl,Ut=Ns+Rl*Tt,Kt=ut==="CANCEL"?Ut*Ml:Ut;return Number(Kt.toFixed(2))},uu=function(we){var Le=we.impact,je=we.draggable,ut=we.dimensions,Lt=we.viewport,Tt=we.afterCritical,Ut=ut.draggables,Kt=ut.droppables,Bn=ss(Le),ar=Bn?Kt[Bn]:null,qn=Kt[je.descriptor.droppableId],Zn=an({impact:Le,draggable:je,draggables:Ut,afterCritical:Tt,droppable:ar||qn,viewport:Lt}),Wn=Ln(Zn,je.client.borderBox.center);return Wn},xd=function(we){var Le=we.draggables,je=we.reason,ut=we.lastImpact,Lt=we.home,Tt=we.viewport,Ut=we.onLiftImpact;if(!ut.at||je!=="DROP"){var Kt=Sl({draggables:Le,impact:Ut,destination:Lt,viewport:Tt,forceShouldAnimate:!0});return{impact:Kt,didDropInsideDroppable:!1}}if(ut.at.type==="REORDER")return{impact:ut,didDropInsideDroppable:!0};var Bn=(0,ke.Z)({},ut,{displaced:Mn});return{impact:Bn,didDropInsideDroppable:!0}},hh=function(we){var Le=we.getState,je=we.dispatch;return function(ut){return function(Lt){if(Lt.type!=="DROP"){ut(Lt);return}var Tt=Le(),Ut=Lt.payload.reason;if(Tt.phase==="COLLECTING"){je(Wc({reason:Ut}));return}if(Tt.phase!=="IDLE"){var Kt=Tt.phase==="DROP_PENDING"&&Tt.isWaiting;Kt&&Dn(!1),Tt.phase==="DRAGGING"||Tt.phase==="DROP_PENDING"||Dn(!1);var Bn=Tt.critical,ar=Tt.dimensions,qn=ar.draggables[Tt.critical.draggable.id],Zn=xd({reason:Ut,lastImpact:Tt.impact,afterCritical:Tt.afterCritical,onLiftImpact:Tt.onLiftImpact,home:Tt.dimensions.droppables[Tt.critical.droppable.id],viewport:Tt.viewport,draggables:Tt.dimensions.draggables}),Wn=Zn.impact,gr=Zn.didDropInsideDroppable,si=gr?zr(Wn):null,Gi=gr?ni(Wn):null,Yi={index:Bn.draggable.index,droppableId:Bn.droppable.id},no={draggableId:qn.descriptor.id,type:qn.descriptor.type,source:Yi,reason:Ut,mode:Tt.movementMode,destination:si,combine:Gi},co=uu({impact:Wn,draggable:qn,dimensions:ar,viewport:Tt.viewport,afterCritical:Tt.afterCritical}),ko={critical:Tt.critical,afterCritical:Tt.afterCritical,result:no,impact:Wn},Eo=!Xr(Tt.current.client.offset,co)||!!no.combine;if(!Eo){je(xu({completed:ko}));return}var Go=Tl({current:Tt.current.client.offset,destination:co,reason:Ut}),Ea={newHomeClientOffset:co,dropDuration:Go,completed:ko};je(Vc(Ea))}}}},jd=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function fh(we){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(je){je.target!==window&&je.target!==window.document||we()}}}function bs(we){var Le=we.onWindowScroll;function je(){Le(jd())}var ut=dn(je),Lt=fh(ut),Tt=kt;function Ut(){return Tt!==kt}function Kt(){Ut()&&Dn(!1),Tt=vr(window,[Lt])}function Bn(){Ut()||Dn(!1),ut.cancel(),Tt(),Tt=kt}return{start:Kt,stop:Bn,isActive:Ut}}var dc=function(Le){return Le.type==="DROP_COMPLETE"||Le.type==="DROP_ANIMATE"||Le.type==="FLUSH"},La=function(we){var Le=bs({onWindowScroll:function(ut){we.dispatch(ka({newScroll:ut}))}});return function(je){return function(ut){!Le.isActive()&&ut.type==="INITIAL_PUBLISH"&&Le.start(),Le.isActive()&&dc(ut)&&Le.stop(),je(ut)}}},Us=function(we){var Le=!1,je=!1,ut=setTimeout(function(){je=!0}),Lt=function(Ut){Le||je||(Le=!0,we(Ut),clearTimeout(ut))};return Lt.wasCalled=function(){return Le},Lt},Qs=function(){var we=[],Le=function(Tt){var Ut=mo(we,function(ar){return ar.timerId===Tt});Ut===-1&&Dn(!1);var Kt=we.splice(Ut,1),Bn=Kt[0];Bn.callback()},je=function(Tt){var Ut=setTimeout(function(){return Le(Ut)}),Kt={timerId:Ut,callback:Tt};we.push(Kt)},ut=function(){if(we.length){var Tt=[].concat(we);we.length=0,Tt.forEach(function(Ut){clearTimeout(Ut.timerId),Ut.callback()})}};return{add:je,flush:ut}},Zs=function(Le,je){return Le==null&&je==null?!0:Le==null||je==null?!1:Le.droppableId===je.droppableId&&Le.index===je.index},xc=function(Le,je){return Le==null&&je==null?!0:Le==null||je==null?!1:Le.draggableId===je.draggableId&&Le.droppableId===je.droppableId},il=function(Le,je){if(Le===je)return!0;var ut=Le.draggable.id===je.draggable.id&&Le.draggable.droppableId===je.draggable.droppableId&&Le.draggable.type===je.draggable.type&&Le.draggable.index===je.draggable.index,Lt=Le.droppable.id===je.droppable.id&&Le.droppable.type===je.droppable.type;return ut&&Lt},cu=function(Le,je){Vs(),je(),Dl()},Ic=function(Le,je){return{draggableId:Le.draggable.id,type:Le.droppable.type,source:{droppableId:Le.droppable.id,index:Le.draggable.index},mode:je}},Zc=function(Le,je,ut,Lt){if(!Le){ut(Lt(je));return}var Tt=Us(ut),Ut={announce:Tt};Le(je,Ut),Tt.wasCalled()||ut(Lt(je))},Al=function(we,Le){var je=Qs(),ut=null,Lt=function(Wn,gr){ut&&Dn(!1),cu("onBeforeCapture",function(){var si=we().onBeforeCapture;if(si){var Gi={draggableId:Wn,mode:gr};si(Gi)}})},Tt=function(Wn,gr){ut&&Dn(!1),cu("onBeforeDragStart",function(){var si=we().onBeforeDragStart;si&&si(Ic(Wn,gr))})},Ut=function(Wn,gr){ut&&Dn(!1);var si=Ic(Wn,gr);ut={mode:gr,lastCritical:Wn,lastLocation:si.source,lastCombine:null},je.add(function(){cu("onDragStart",function(){return Zc(we().onDragStart,si,Le,vn.onDragStart)})})},Kt=function(Wn,gr){var si=zr(gr),Gi=ni(gr);ut||Dn(!1);var Yi=!il(Wn,ut.lastCritical);Yi&&(ut.lastCritical=Wn);var no=!Zs(ut.lastLocation,si);no&&(ut.lastLocation=si);var co=!xc(ut.lastCombine,Gi);if(co&&(ut.lastCombine=Gi),!(!Yi&&!no&&!co)){var ko=(0,ke.Z)({},Ic(Wn,ut.mode),{combine:Gi,destination:si});je.add(function(){cu("onDragUpdate",function(){return Zc(we().onDragUpdate,ko,Le,vn.onDragUpdate)})})}},Bn=function(){ut||Dn(!1),je.flush()},ar=function(Wn){ut||Dn(!1),ut=null,cu("onDragEnd",function(){return Zc(we().onDragEnd,Wn,Le,vn.onDragEnd)})},qn=function(){if(ut){var Wn=(0,ke.Z)({},Ic(ut.lastCritical,ut.mode),{combine:null,destination:null,reason:"CANCEL"});ar(Wn)}};return{beforeCapture:Lt,beforeStart:Tt,start:Ut,update:Kt,flush:Bn,drop:ar,abort:qn}},Ce=function(we,Le){var je=Al(we,Le);return function(ut){return function(Lt){return function(Tt){if(Tt.type==="BEFORE_INITIAL_CAPTURE"){je.beforeCapture(Tt.payload.draggableId,Tt.payload.movementMode);return}if(Tt.type==="INITIAL_PUBLISH"){var Ut=Tt.payload.critical;je.beforeStart(Ut,Tt.payload.movementMode),Lt(Tt),je.start(Ut,Tt.payload.movementMode);return}if(Tt.type==="DROP_COMPLETE"){var Kt=Tt.payload.completed.result;je.flush(),Lt(Tt),je.drop(Kt);return}if(Lt(Tt),Tt.type==="FLUSH"){je.abort();return}var Bn=ut.getState();Bn.phase==="DRAGGING"&&je.update(Bn.critical,Bn.impact)}}}},Ye=function(we){return function(Le){return function(je){if(je.type!=="DROP_ANIMATION_FINISHED"){Le(je);return}var ut=we.getState();ut.phase!=="DROP_ANIMATING"&&Dn(!1),we.dispatch(xu({completed:ut.completed}))}}},tt=function(we){var Le=null,je=null;function ut(){je&&(cancelAnimationFrame(je),je=null),Le&&(Le(),Le=null)}return function(Lt){return function(Tt){if((Tt.type==="FLUSH"||Tt.type==="DROP_COMPLETE"||Tt.type==="DROP_ANIMATION_FINISHED")&&ut(),Lt(Tt),Tt.type==="DROP_ANIMATE"){var Ut={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Bn=we.getState();Bn.phase==="DROP_ANIMATING"&&we.dispatch(Ec())}};je=requestAnimationFrame(function(){je=null,Le=vr(window,[Ut])})}}}},pt=function(we){return function(){return function(Le){return function(je){(je.type==="DROP_COMPLETE"||je.type==="FLUSH"||je.type==="DROP_ANIMATE")&&we.stopPublishing(),Le(je)}}}},Ft=function(we){var Le=!1;return function(){return function(je){return function(ut){if(ut.type==="INITIAL_PUBLISH"){Le=!0,we.tryRecordFocus(ut.payload.critical.draggable.id),je(ut),we.tryRestoreFocusRecorded();return}if(je(ut),!!Le){if(ut.type==="FLUSH"){Le=!1,we.tryRestoreFocusRecorded();return}if(ut.type==="DROP_COMPLETE"){Le=!1;var Lt=ut.payload.completed.result;Lt.combine&&we.tryShiftRecord(Lt.draggableId,Lt.combine.draggableId),we.tryRestoreFocusRecorded()}}}}}},_t=function(Le){return Le.type==="DROP_COMPLETE"||Le.type==="DROP_ANIMATE"||Le.type==="FLUSH"},rn=function(we){return function(Le){return function(je){return function(ut){if(_t(ut)){we.stop(),je(ut);return}if(ut.type==="INITIAL_PUBLISH"){je(ut);var Lt=Le.getState();Lt.phase!=="DRAGGING"&&Dn(!1),we.start(Lt);return}je(ut),we.scroll(Le.getState())}}}},Pn=function(we){return function(Le){return function(je){if(Le(je),je.type==="PUBLISH_WHILE_DRAGGING"){var ut=we.getState();ut.phase==="DROP_PENDING"&&(ut.isWaiting||we.dispatch(su({reason:ut.reason})))}}}},br=Ve.qC,wr=function(we){var Le=we.dimensionMarshal,je=we.focusMarshal,ut=we.styleMarshal,Lt=we.getResponders,Tt=we.announce,Ut=we.autoScroller;return(0,Ve.MT)(Ka,br((0,Ve.md)(Xs(ut),pt(Le),la(Le),hh,Ye,tt,Pn,rn(Ut),La,Ft(je),Ce(Lt,Tt))))},ir=function(){return{additions:{},removals:{},modified:{}}};function Yr(we){var Le=we.registry,je=we.callbacks,ut=ir(),Lt=null,Tt=function(){Lt||(je.collectionStarting(),Lt=requestAnimationFrame(function(){Lt=null,Vs();var qn=ut,Zn=qn.additions,Wn=qn.removals,gr=qn.modified,si=Object.keys(Zn).map(function(no){return Le.draggable.getById(no).getDimension(xi)}).sort(function(no,co){return no.descriptor.index-co.descriptor.index}),Gi=Object.keys(gr).map(function(no){var co=Le.droppable.getById(no),ko=co.callbacks.getScrollWhileDragging();return{droppableId:no,scroll:ko}}),Yi={additions:si,removals:Object.keys(Wn),modified:Gi};ut=ir(),Dl(),je.publish(Yi)}))},Ut=function(qn){var Zn=qn.descriptor.id;ut.additions[Zn]=qn,ut.modified[qn.descriptor.droppableId]=!0,ut.removals[Zn]&&delete ut.removals[Zn],Tt()},Kt=function(qn){var Zn=qn.descriptor;ut.removals[Zn.id]=!0,ut.modified[Zn.droppableId]=!0,ut.additions[Zn.id]&&delete ut.additions[Zn.id],Tt()},Bn=function(){Lt&&(cancelAnimationFrame(Lt),Lt=null,ut=ir())};return{add:Ut,remove:Kt,stop:Bn}}var Br=function(we){var Le=we.scrollHeight,je=we.scrollWidth,ut=we.height,Lt=we.width,Tt=Ln({x:je,y:Le},{x:Lt,y:ut}),Ut={x:Math.max(0,Tt.x),y:Math.max(0,Tt.y)};return Ut},dr=function(){var we=document.documentElement;return we||Dn(!1),we},Co=function(){var we=dr(),Le=Br({scrollHeight:we.scrollHeight,scrollWidth:we.scrollWidth,width:we.clientWidth,height:we.clientHeight});return Le},zo=function(){var we=jd(),Le=Co(),je=we.y,ut=we.x,Lt=dr(),Tt=Lt.clientWidth,Ut=Lt.clientHeight,Kt=ut+Tt,Bn=je+Ut,ar=yr({top:je,left:ut,right:Kt,bottom:Bn}),qn={frame:ar,scroll:{initial:we,current:we,max:Le,diff:{value:xi,displacement:xi}}};return qn},ea=function(we){var Le=we.critical,je=we.scrollOptions,ut=we.registry;Vs();var Lt=zo(),Tt=Lt.scroll.current,Ut=Le.droppable,Kt=ut.droppable.getAllByType(Ut.type).map(function(Zn){return Zn.callbacks.getDimensionAndWatchScroll(Tt,je)}),Bn=ut.draggable.getAllByType(Le.draggable.type).map(function(Zn){return Zn.getDimension(Tt)}),ar={draggables:Rn(Bn),droppables:fr(Kt)};Dl();var qn={dimensions:ar,critical:Le,viewport:Lt};return qn};function io(we,Le,je){if(je.descriptor.id===Le.id||je.descriptor.type!==Le.type)return!1;var ut=we.droppable.getById(je.descriptor.droppableId);return ut.descriptor.mode==="virtual"}var Ro=function(we,Le){var je=null,ut=Yr({callbacks:{publish:Le.publishWhileDragging,collectionStarting:Le.collectionStarting},registry:we}),Lt=function(gr,si){we.droppable.exists(gr)||Dn(!1),je&&Le.updateDroppableIsEnabled({id:gr,isEnabled:si})},Tt=function(gr,si){je&&(we.droppable.exists(gr)||Dn(!1),Le.updateDroppableIsCombineEnabled({id:gr,isCombineEnabled:si}))},Ut=function(gr,si){je&&(we.droppable.exists(gr)||Dn(!1),Le.updateDroppableScroll({id:gr,newScroll:si}))},Kt=function(gr,si){je&&we.droppable.getById(gr).callbacks.scroll(si)},Bn=function(){if(je){ut.stop();var gr=je.critical.droppable;we.droppable.getAllByType(gr.type).forEach(function(si){return si.callbacks.dragStopped()}),je.unsubscribe(),je=null}},ar=function(gr){je||Dn(!1);var si=je.critical.draggable;gr.type==="ADDITION"&&io(we,si,gr.value)&&ut.add(gr.value),gr.type==="REMOVAL"&&io(we,si,gr.value)&&ut.remove(gr.value)},qn=function(gr){je&&Dn(!1);var si=we.draggable.getById(gr.draggableId),Gi=we.droppable.getById(si.descriptor.droppableId),Yi={draggable:si.descriptor,droppable:Gi.descriptor},no=we.subscribe(ar);return je={critical:Yi,unsubscribe:no},ea({critical:Yi,registry:we,scrollOptions:gr.scrollOptions})},Zn={updateDroppableIsEnabled:Lt,updateDroppableIsCombineEnabled:Tt,scrollDroppable:Kt,updateDroppableScroll:Ut,startPublishing:qn,stopPublishing:Bn};return Zn},Bo=function(we,Le){return we.phase==="IDLE"?!0:we.phase!=="DROP_ANIMATING"||we.completed.result.draggableId===Le?!1:we.completed.result.reason==="DROP"},Ya=function(we){window.scrollBy(we.x,we.y)},Xa=Vr(function(we){return rt(we).filter(function(Le){return!(!Le.isEnabled||!Le.frame)})}),Zi=function(Le,je){var ut=xo(Xa(je),function(Lt){return Lt.frame||Dn(!1),Zu(Lt.frame.pageMarginBox)(Le)});return ut},es=function(we){var Le=we.center,je=we.destination,ut=we.droppables;if(je){var Lt=ut[je];return Lt.frame?Lt:null}var Tt=Zi(Le,ut);return Tt},Za={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Le){return Math.pow(Le,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ja=function(we,Le){var je=we[Le.size]*Za.startFromPercentage,ut=we[Le.size]*Za.maxScrollAtPercentage,Lt={startScrollingFrom:je,maxScrollValueAt:ut};return Lt},bo=function(we){var Le=we.startOfRange,je=we.endOfRange,ut=we.current,Lt=je-Le;if(Lt===0)return 0;var Tt=ut-Le,Ut=Tt/Lt;return Ut},fl=1,ls=function(we,Le){if(we>Le.startScrollingFrom)return 0;if(we<=Le.maxScrollValueAt)return Za.maxPixelScroll;if(we===Le.startScrollingFrom)return fl;var je=bo({startOfRange:Le.maxScrollValueAt,endOfRange:Le.startScrollingFrom,current:we}),ut=1-je,Lt=Za.maxPixelScroll*Za.ease(ut);return Math.ceil(Lt)},Xo=Za.durationDampening.accelerateAt,Zo=Za.durationDampening.stopDampeningAt,wa=function(we,Le){var je=Le,ut=Zo,Lt=Date.now(),Tt=Lt-je;if(Tt>=Zo)return we;if(Tt<Xo)return fl;var Ut=bo({startOfRange:Xo,endOfRange:ut,current:Tt}),Kt=we*Za.ease(Ut);return Math.ceil(Kt)},ps=function(we){var Le=we.distanceToEdge,je=we.thresholds,ut=we.dragStartTime,Lt=we.shouldUseTimeDampening,Tt=ls(Le,je);return Tt===0?0:Lt?Math.max(wa(Tt,ut),fl):Tt},Js=function(we){var Le=we.container,je=we.distanceToEdges,ut=we.dragStartTime,Lt=we.axis,Tt=we.shouldUseTimeDampening,Ut=ja(Le,Lt),Kt=je[Lt.end]<je[Lt.start];return Kt?ps({distanceToEdge:je[Lt.end],thresholds:Ut,dragStartTime:ut,shouldUseTimeDampening:Tt}):-1*ps({distanceToEdge:je[Lt.start],thresholds:Ut,dragStartTime:ut,shouldUseTimeDampening:Tt})},El=function(we){var Le=we.container,je=we.subject,ut=we.proposedScroll,Lt=je.height>Le.height,Tt=je.width>Le.width;return!Tt&&!Lt?ut:Tt&&Lt?null:{x:Tt?0:ut.x,y:Lt?0:ut.y}},Kl=Xi(function(we){return we===0?0:we}),Ar=function(we){var Le=we.dragStartTime,je=we.container,ut=we.subject,Lt=we.center,Tt=we.shouldUseTimeDampening,Ut={top:Lt.y-je.top,right:je.right-Lt.x,bottom:je.bottom-Lt.y,left:Lt.x-je.left},Kt=Js({container:je,distanceToEdges:Ut,dragStartTime:Le,axis:cn,shouldUseTimeDampening:Tt}),Bn=Js({container:je,distanceToEdges:Ut,dragStartTime:Le,axis:Kn,shouldUseTimeDampening:Tt}),ar=Kl({x:Bn,y:Kt});if(Xr(ar,xi))return null;var qn=El({container:je,subject:ut,proposedScroll:ar});return qn?Xr(qn,xi)?null:qn:null},Nl=Xi(function(we){return we===0?0:we>0?1:-1}),Ol=function(){var we=function(je,ut){return je<0?je:je>ut?je-ut:0};return function(Le){var je=Le.current,ut=Le.max,Lt=Le.change,Tt=zi(je,Lt),Ut={x:we(Tt.x,ut.x),y:we(Tt.y,ut.y)};return Xr(Ut,xi)?null:Ut}}(),Ir=function(Le){var je=Le.max,ut=Le.current,Lt=Le.change,Tt={x:Math.max(ut.x,je.x),y:Math.max(ut.y,je.y)},Ut=Nl(Lt),Kt=Ol({max:Tt,current:ut,change:Ut});return!Kt||Ut.x!==0&&Kt.x===0||Ut.y!==0&&Kt.y===0},ol=function(Le,je){return Ir({current:Le.scroll.current,max:Le.scroll.max,change:je})},wu=function(Le,je){if(!ol(Le,je))return null;var ut=Le.scroll.max,Lt=Le.scroll.current;return Ol({current:Lt,max:ut,change:je})},du=function(Le,je){var ut=Le.frame;return ut?Ir({current:ut.scroll.current,max:ut.scroll.max,change:je}):!1},qs=function(Le,je){var ut=Le.frame;return!ut||!du(Le,je)?null:Ol({current:ut.scroll.current,max:ut.scroll.max,change:je})},Es=function(we){var Le=we.viewport,je=we.subject,ut=we.center,Lt=we.dragStartTime,Tt=we.shouldUseTimeDampening,Ut=Ar({dragStartTime:Lt,container:Le.frame,subject:je,center:ut,shouldUseTimeDampening:Tt});return Ut&&ol(Le,Ut)?Ut:null},hu=function(we){var Le=we.droppable,je=we.subject,ut=we.center,Lt=we.dragStartTime,Tt=we.shouldUseTimeDampening,Ut=Le.frame;if(!Ut)return null;var Kt=Ar({dragStartTime:Lt,container:Ut.pageMarginBox,subject:je,center:ut,shouldUseTimeDampening:Tt});return Kt&&du(Le,Kt)?Kt:null},al=function(we){var Le=we.state,je=we.dragStartTime,ut=we.shouldUseTimeDampening,Lt=we.scrollWindow,Tt=we.scrollDroppable,Ut=Le.current.page.borderBoxCenter,Kt=Le.dimensions.draggables[Le.critical.draggable.id],Bn=Kt.page.marginBox;if(Le.isWindowScrollAllowed){var ar=Le.viewport,qn=Es({dragStartTime:je,viewport:ar,subject:Bn,center:Ut,shouldUseTimeDampening:ut});if(qn){Lt(qn);return}}var Zn=es({center:Ut,destination:ss(Le.impact),droppables:Le.dimensions.droppables});if(Zn){var Wn=hu({dragStartTime:je,droppable:Zn,subject:Bn,center:Ut,shouldUseTimeDampening:ut});Wn&&Tt(Zn.descriptor.id,Wn)}},Qu=function(we){var Le=we.scrollWindow,je=we.scrollDroppable,ut=dn(Le),Lt=dn(je),Tt=null,Ut=function(qn){Tt||Dn(!1);var Zn=Tt,Wn=Zn.shouldUseTimeDampening,gr=Zn.dragStartTime;al({state:qn,scrollWindow:ut,scrollDroppable:Lt,dragStartTime:gr,shouldUseTimeDampening:Wn})},Kt=function(qn){Vs(),Tt&&Dn(!1);var Zn=Date.now(),Wn=!1,gr=function(){Wn=!0};al({state:qn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:gr,scrollDroppable:gr}),Tt={dragStartTime:Zn,shouldUseTimeDampening:Wn},Dl(),Wn&&Ut(qn)},Bn=function(){Tt&&(ut.cancel(),Lt.cancel(),Tt=null)};return{start:Kt,stop:Bn,scroll:Ut}},hc=function(we){var Le=we.move,je=we.scrollDroppable,ut=we.scrollWindow,Lt=function(ar,qn){var Zn=zi(ar.current.client.selection,qn);Le({client:Zn})},Tt=function(ar,qn){if(!du(ar,qn))return qn;var Zn=qs(ar,qn);if(!Zn)return je(ar.descriptor.id,qn),null;var Wn=Ln(qn,Zn);je(ar.descriptor.id,Wn);var gr=Ln(qn,Wn);return gr},Ut=function(ar,qn,Zn){if(!ar||!ol(qn,Zn))return Zn;var Wn=wu(qn,Zn);if(!Wn)return ut(Zn),null;var gr=Ln(Zn,Wn);ut(gr);var si=Ln(Zn,gr);return si},Kt=function(ar){var qn=ar.scrollJumpRequest;if(qn){var Zn=ss(ar.impact);Zn||Dn(!1);var Wn=Tt(ar.dimensions.droppables[Zn],qn);if(Wn){var gr=ar.viewport,si=Ut(ar.isWindowScrollAllowed,gr,Wn);si&&Lt(ar,si)}}};return Kt},wd=function(we){var Le=we.scrollDroppable,je=we.scrollWindow,ut=we.move,Lt=Qu({scrollWindow:je,scrollDroppable:Le}),Tt=hc({move:ut,scrollWindow:je,scrollDroppable:Le}),Ut=function(ar){if(ar.phase==="DRAGGING"){if(ar.movementMode==="FLUID"){Lt.scroll(ar);return}ar.scrollJumpRequest&&Tt(ar)}},Kt={scroll:Ut,start:Lt.start,stop:Lt.stop};return Kt},xl="data-rbd",fu=function(){var we=xl+"-drag-handle";return{base:we,draggableId:we+"-draggable-id",contextId:we+"-context-id"}}(),hd=function(){var we=xl+"-draggable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),ce=function(){var we=xl+"-droppable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),ge={contextId:xl+"-scroll-container-context-id"},et=function(Le){return function(je){return"["+je+'="'+Le+'"]'}},en=function(Le,je){return Le.map(function(ut){var Lt=ut.styles[je];return Lt?ut.selector+" { "+Lt+" }":""}).join(" ")},xr="pointer-events: none;",ci=function(we){var Le=et(we),je=function(){var Kt=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Le(fu.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Kt,dragging:xr,dropAnimating:Kt}}}(),ut=function(){var Kt=`
transition: `+jo.outOfTheWay+`;
`;return{selector:Le(hd.contextId),styles:{dragging:Kt,dropAnimating:Kt,userCancel:Kt}}}(),Lt={selector:Le(ce.contextId),styles:{always:"overflow-anchor: none;"}},Tt={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},Ut=[ut,je,Lt,Tt];return{always:en(Ut,"always"),resting:en(Ut,"resting"),dragging:en(Ut,"dragging"),dropAnimating:en(Ut,"dropAnimating"),userCancel:en(Ut,"userCancel")}},Ai=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect,Lo=function(){var Le=document.querySelector("head");return Le||Dn(!1),Le},Ko=function(Le){var je=document.createElement("style");return Le&&je.setAttribute("nonce",Le),je.type="text/css",je};function li(we,Le){var je=Sn(function(){return ci(we)},[we]),ut=(0,oe.useRef)(null),Lt=(0,oe.useRef)(null),Tt=ht(Vr(function(Zn){var Wn=Lt.current;Wn||Dn(!1),Wn.textContent=Zn}),[]),Ut=ht(function(Zn){var Wn=ut.current;Wn||Dn(!1),Wn.textContent=Zn},[]);Ai(function(){!ut.current&&!Lt.current||Dn(!1);var Zn=Ko(Le),Wn=Ko(Le);return ut.current=Zn,Lt.current=Wn,Zn.setAttribute(xl+"-always",we),Wn.setAttribute(xl+"-dynamic",we),Lo().appendChild(Zn),Lo().appendChild(Wn),Ut(je.always),Tt(je.resting),function(){var gr=function(Gi){var Yi=Gi.current;Yi||Dn(!1),Lo().removeChild(Yi),Gi.current=null};gr(ut),gr(Lt)}},[Le,Ut,Tt,je.always,je.resting,we]);var Kt=ht(function(){return Tt(je.dragging)},[Tt,je.dragging]),Bn=ht(function(Zn){if(Zn==="DROP"){Tt(je.dropAnimating);return}Tt(je.userCancel)},[Tt,je.dropAnimating,je.userCancel]),ar=ht(function(){Lt.current&&Tt(je.resting)},[Tt,je.resting]),qn=Sn(function(){return{dragging:Kt,dropping:Bn,resting:ar}},[Kt,Bn,ar]);return qn}var eo=function(we){return we&&we.ownerDocument?we.ownerDocument.defaultView:window};function Vo(we){return we instanceof eo(we).HTMLElement}function Aa(we,Le){var je="["+fu.contextId+'="'+we+'"]',ut=Fn(document.querySelectorAll(je));if(!ut.length)return null;var Lt=xo(ut,function(Tt){return Tt.getAttribute(fu.draggableId)===Le});return!Lt||!Vo(Lt)?null:Lt}function ns(we){var Le=(0,oe.useRef)({}),je=(0,oe.useRef)(null),ut=(0,oe.useRef)(null),Lt=(0,oe.useRef)(!1),Tt=ht(function(Wn,gr){var si={id:Wn,focus:gr};return Le.current[Wn]=si,function(){var Yi=Le.current,no=Yi[Wn];no!==si&&delete Yi[Wn]}},[]),Ut=ht(function(Wn){var gr=Aa(we,Wn);gr&&gr!==document.activeElement&&gr.focus()},[we]),Kt=ht(function(Wn,gr){je.current===Wn&&(je.current=gr)},[]),Bn=ht(function(){ut.current||Lt.current&&(ut.current=requestAnimationFrame(function(){ut.current=null;var Wn=je.current;Wn&&Ut(Wn)}))},[Ut]),ar=ht(function(Wn){je.current=null;var gr=document.activeElement;gr&&gr.getAttribute(fu.draggableId)===Wn&&(je.current=Wn)},[]);Ai(function(){return Lt.current=!0,function(){Lt.current=!1;var Wn=ut.current;Wn&&cancelAnimationFrame(Wn)}},[]);var qn=Sn(function(){return{register:Tt,tryRecordFocus:ar,tryRestoreFocusRecorded:Bn,tryShiftRecord:Kt}},[Tt,ar,Bn,Kt]);return qn}function _u(){var we={draggables:{},droppables:{}},Le=[];function je(Zn){return Le.push(Zn),function(){var gr=Le.indexOf(Zn);gr!==-1&&Le.splice(gr,1)}}function ut(Zn){Le.length&&Le.forEach(function(Wn){return Wn(Zn)})}function Lt(Zn){return we.draggables[Zn]||null}function Tt(Zn){var Wn=Lt(Zn);return Wn||Dn(!1),Wn}var Ut={register:function(Wn){we.draggables[Wn.descriptor.id]=Wn,ut({type:"ADDITION",value:Wn})},update:function(Wn,gr){var si=we.draggables[gr.descriptor.id];si&&si.uniqueId===Wn.uniqueId&&(delete we.draggables[gr.descriptor.id],we.draggables[Wn.descriptor.id]=Wn)},unregister:function(Wn){var gr=Wn.descriptor.id,si=Lt(gr);si&&Wn.uniqueId===si.uniqueId&&(delete we.draggables[gr],ut({type:"REMOVAL",value:Wn}))},getById:Tt,findById:Lt,exists:function(Wn){return!!Lt(Wn)},getAllByType:function(Wn){return Oo(we.draggables).filter(function(gr){return gr.descriptor.type===Wn})}};function Kt(Zn){return we.droppables[Zn]||null}function Bn(Zn){var Wn=Kt(Zn);return Wn||Dn(!1),Wn}var ar={register:function(Wn){we.droppables[Wn.descriptor.id]=Wn},unregister:function(Wn){var gr=Kt(Wn.descriptor.id);gr&&Wn.uniqueId===gr.uniqueId&&delete we.droppables[Wn.descriptor.id]},getById:Bn,findById:Kt,exists:function(Wn){return!!Kt(Wn)},getAllByType:function(Wn){return Oo(we.droppables).filter(function(gr){return gr.descriptor.type===Wn})}};function qn(){we.draggables={},we.droppables={},Le.length=0}return{draggable:Ut,droppable:ar,subscribe:je,clean:qn}}function Ju(){var we=Sn(_u,[]);return(0,oe.useEffect)(function(){return function(){requestAnimationFrame(we.clean)}},[we]),we}var qu=oe.createContext(null),pu=function(){var we=document.body;return we||Dn(!1),we},Fl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Cu=function(Le){return"rbd-announcement-"+Le};function Kc(we){var Le=Sn(function(){return Cu(we)},[we]),je=(0,oe.useRef)(null);(0,oe.useEffect)(function(){var Tt=document.createElement("div");return je.current=Tt,Tt.id=Le,Tt.setAttribute("aria-live","assertive"),Tt.setAttribute("aria-atomic","true"),(0,ke.Z)(Tt.style,Fl),pu().appendChild(Tt),function(){setTimeout(function(){var Bn=pu();Bn.contains(Tt)&&Bn.removeChild(Tt),Tt===je.current&&(je.current=null)})}},[Le]);var ut=ht(function(Lt){var Tt=je.current;if(Tt){Tt.textContent=Lt;return}},[]);return ut}var Yl=0,ph={separator:"::"};function Rs(){Yl=0}function Dc(we,Le){return Le===void 0&&(Le=ph),Sn(function(){return""+we+Le.separator+Yl++},[Le.separator,we])}function Yp(we){var Le=we.contextId,je=we.uniqueId;return"rbd-hidden-text-"+Le+"-"+je}function Pf(we){var Le=we.contextId,je=we.text,ut=Dc("hidden-text",{separator:"-"}),Lt=Sn(function(){return Yp({contextId:Le,uniqueId:ut})},[ut,Le]);return(0,oe.useEffect)(function(){var Ut=document.createElement("div");return Ut.id=Lt,Ut.textContent=je,Ut.style.display="none",pu().appendChild(Ut),function(){var Bn=pu();Bn.contains(Ut)&&Bn.removeChild(Ut)}},[Lt,je]),Lt}var Vh=oe.createContext(null),kn={react:"^16.8.5","react-dom":"^16.8.5"},Vd=/(\d+)\.(\d+)\.(\d+)/,Rc=function(Le){var je=Vd.exec(Le);je==null&&Dn(!1);var ut=Number(je[1]),Lt=Number(je[2]),Tt=Number(je[3]);return{major:ut,minor:Lt,patch:Tt,raw:Le}},Xp=function(Le,je){return je.major>Le.major?!0:je.major<Le.major?!1:je.minor>Le.minor?!0:je.minor<Le.minor?!1:je.patch>=Le.patch},ep=function(we,Le){var je=Rc(we),ut=Rc(Le);Xp(je,ut)},Gg=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,tp=function(we){var Le=we.doctype;Le&&(Le.name.toLowerCase(),Le.publicId)};function Um(we){}function sl(we,Le){}function Wh(){sl(function(){ep(kn.react,oe.version),tp(document)},[])}function Zh(we){var Le=(0,oe.useRef)(we);return(0,oe.useEffect)(function(){Le.current=we}),Le}function Qp(){var we=null;function Le(){return!!we}function je(Ut){return Ut===we}function ut(Ut){we&&Dn(!1);var Kt={abandon:Ut};return we=Kt,Kt}function Lt(){we||Dn(!1),we=null}function Tt(){we&&(we.abandon(),Lt())}return{isClaimed:Le,isActive:je,claim:ut,release:Lt,tryAbandon:Tt}}var Jp=9,qp=13,Tf=27,Af=32,$u=33,gh=34,np=35,Yc=36,Kh=37,Nf=38,Yh=39,Uu=40,mh,rp=(mh={},mh[qp]=!0,mh[Jp]=!0,mh),ec=function(we){rp[we.keyCode]&&we.preventDefault()},fd=function(){var we="visibilitychange";if(typeof document=="undefined")return we;var Le=[we,"ms"+we,"webkit"+we,"moz"+we,"o"+we],je=xo(Le,function(ut){return"on"+ut in document});return je||we}(),Lf=0,ip=5;function Wd(we,Le){return Math.abs(Le.x-we.x)>=ip||Math.abs(Le.y-we.y)>=ip}var Pu={type:"IDLE"};function op(we){var Le=we.cancel,je=we.completed,ut=we.getPhase,Lt=we.setPhase;return[{eventName:"mousemove",fn:function(Ut){var Kt=Ut.button,Bn=Ut.clientX,ar=Ut.clientY;if(Kt===Lf){var qn={x:Bn,y:ar},Zn=ut();if(Zn.type==="DRAGGING"){Ut.preventDefault(),Zn.actions.move(qn);return}Zn.type!=="PENDING"&&Dn(!1);var Wn=Zn.point;if(Wd(Wn,qn)){Ut.preventDefault();var gr=Zn.actions.fluidLift(qn);Lt({type:"DRAGGING",actions:gr})}}}},{eventName:"mouseup",fn:function(Ut){var Kt=ut();if(Kt.type!=="DRAGGING"){Le();return}Ut.preventDefault(),Kt.actions.drop({shouldBlockNextClick:!0}),je()}},{eventName:"mousedown",fn:function(Ut){ut().type==="DRAGGING"&&Ut.preventDefault(),Le()}},{eventName:"keydown",fn:function(Ut){var Kt=ut();if(Kt.type==="PENDING"){Le();return}if(Ut.keyCode===Tf){Ut.preventDefault(),Le();return}ec(Ut)}},{eventName:"resize",fn:Le},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ut().type==="PENDING"&&Le()}},{eventName:"webkitmouseforcedown",fn:function(Ut){var Kt=ut();if(Kt.type==="IDLE"&&Dn(!1),Kt.actions.shouldRespectForcePress()){Le();return}Ut.preventDefault()}},{eventName:fd,fn:Le}]}function $s(we){var Le=(0,oe.useRef)(Pu),je=(0,oe.useRef)(kt),ut=Sn(function(){return{eventName:"mousedown",fn:function(Zn){if(!Zn.defaultPrevented&&Zn.button===Lf&&!(Zn.ctrlKey||Zn.metaKey||Zn.shiftKey||Zn.altKey)){var Wn=we.findClosestDraggableId(Zn);if(Wn){var gr=we.tryGetLock(Wn,Ut,{sourceEvent:Zn});if(gr){Zn.preventDefault();var si={x:Zn.clientX,y:Zn.clientY};je.current(),ar(gr,si)}}}}}},[we]),Lt=Sn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Zn){if(!Zn.defaultPrevented){var Wn=we.findClosestDraggableId(Zn);if(Wn){var gr=we.findOptionsForDraggable(Wn);gr&&(gr.shouldRespectForcePress||we.canGetLock(Wn)&&Zn.preventDefault())}}}}},[we]),Tt=ht(function(){var Zn={passive:!1,capture:!0};je.current=vr(window,[Lt,ut],Zn)},[Lt,ut]),Ut=ht(function(){var qn=Le.current;qn.type!=="IDLE"&&(Le.current=Pu,je.current(),Tt())},[Tt]),Kt=ht(function(){var qn=Le.current;Ut(),qn.type==="DRAGGING"&&qn.actions.cancel({shouldBlockNextClick:!0}),qn.type==="PENDING"&&qn.actions.abort()},[Ut]),Bn=ht(function(){var Zn={capture:!0,passive:!1},Wn=op({cancel:Kt,completed:Ut,getPhase:function(){return Le.current},setPhase:function(si){Le.current=si}});je.current=vr(window,Wn,Zn)},[Kt,Ut]),ar=ht(function(Zn,Wn){Le.current.type!=="IDLE"&&Dn(!1),Le.current={type:"PENDING",point:Wn,actions:Zn},Bn()},[Bn]);Ai(function(){return Tt(),function(){je.current()}},[Tt])}var Xc;function kf(){}var Cd=(Xc={},Xc[gh]=!0,Xc[$u]=!0,Xc[Yc]=!0,Xc[np]=!0,Xc);function vh(we,Le){function je(){Le(),we.cancel()}function ut(){Le(),we.drop()}return[{eventName:"keydown",fn:function(Tt){if(Tt.keyCode===Tf){Tt.preventDefault(),je();return}if(Tt.keyCode===Af){Tt.preventDefault(),ut();return}if(Tt.keyCode===Uu){Tt.preventDefault(),we.moveDown();return}if(Tt.keyCode===Nf){Tt.preventDefault(),we.moveUp();return}if(Tt.keyCode===Yh){Tt.preventDefault(),we.moveRight();return}if(Tt.keyCode===Kh){Tt.preventDefault(),we.moveLeft();return}if(Cd[Tt.keyCode]){Tt.preventDefault();return}ec(Tt)}},{eventName:"mousedown",fn:je},{eventName:"mouseup",fn:je},{eventName:"click",fn:je},{eventName:"touchstart",fn:je},{eventName:"resize",fn:je},{eventName:"wheel",fn:je,options:{passive:!0}},{eventName:fd,fn:je}]}function yh(we){var Le=(0,oe.useRef)(kf),je=Sn(function(){return{eventName:"keydown",fn:function(Tt){if(Tt.defaultPrevented||Tt.keyCode!==Af)return;var Ut=we.findClosestDraggableId(Tt);if(!Ut)return;var Kt=we.tryGetLock(Ut,qn,{sourceEvent:Tt});if(!Kt)return;Tt.preventDefault();var Bn=!0,ar=Kt.snapLift();Le.current();function qn(){Bn||Dn(!1),Bn=!1,Le.current(),ut()}Le.current=vr(window,vh(ar,qn),{capture:!0,passive:!1})}}},[we]),ut=ht(function(){var Tt={passive:!1,capture:!0};Le.current=vr(window,[je],Tt)},[je]);Ai(function(){return ut(),function(){Le.current()}},[ut])}var Xh={type:"IDLE"},Sh=120,ap=.15;function Qc(we){var Le=we.cancel,je=we.getPhase;return[{eventName:"orientationchange",fn:Le},{eventName:"resize",fn:Le},{eventName:"contextmenu",fn:function(Lt){Lt.preventDefault()}},{eventName:"keydown",fn:function(Lt){if(je().type!=="DRAGGING"){Le();return}Lt.keyCode===Tf&&Lt.preventDefault(),Le()}},{eventName:fd,fn:Le}]}function Zd(we){var Le=we.cancel,je=we.completed,ut=we.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Tt){var Ut=ut();if(Ut.type!=="DRAGGING"){Le();return}Ut.hasMoved=!0;var Kt=Tt.touches[0],Bn=Kt.clientX,ar=Kt.clientY,qn={x:Bn,y:ar};Tt.preventDefault(),Ut.actions.move(qn)}},{eventName:"touchend",fn:function(Tt){var Ut=ut();if(Ut.type!=="DRAGGING"){Le();return}Tt.preventDefault(),Ut.actions.drop({shouldBlockNextClick:!0}),je()}},{eventName:"touchcancel",fn:function(Tt){if(ut().type!=="DRAGGING"){Le();return}Tt.preventDefault(),Le()}},{eventName:"touchforcechange",fn:function(Tt){var Ut=ut();Ut.type==="IDLE"&&Dn(!1);var Kt=Tt.touches[0];if(Kt){var Bn=Kt.force>=ap;if(Bn){var ar=Ut.actions.shouldRespectForcePress();if(Ut.type==="PENDING"){ar&&Le();return}if(ar){if(Ut.hasMoved){Tt.preventDefault();return}Le();return}Tt.preventDefault()}}}},{eventName:fd,fn:Le}]}function If(we){var Le=(0,oe.useRef)(Xh),je=(0,oe.useRef)(kt),ut=ht(function(){return Le.current},[]),Lt=ht(function(gr){Le.current=gr},[]),Tt=Sn(function(){return{eventName:"touchstart",fn:function(gr){if(!gr.defaultPrevented){var si=we.findClosestDraggableId(gr);if(si){var Gi=we.tryGetLock(si,Kt,{sourceEvent:gr});if(Gi){var Yi=gr.touches[0],no=Yi.clientX,co=Yi.clientY,ko={x:no,y:co};je.current(),Zn(Gi,ko)}}}}}},[we]),Ut=ht(function(){var gr={capture:!0,passive:!1};je.current=vr(window,[Tt],gr)},[Tt]),Kt=ht(function(){var Wn=Le.current;Wn.type!=="IDLE"&&(Wn.type==="PENDING"&&clearTimeout(Wn.longPressTimerId),Lt(Xh),je.current(),Ut())},[Ut,Lt]),Bn=ht(function(){var Wn=Le.current;Kt(),Wn.type==="DRAGGING"&&Wn.actions.cancel({shouldBlockNextClick:!0}),Wn.type==="PENDING"&&Wn.actions.abort()},[Kt]),ar=ht(function(){var gr={capture:!0,passive:!1},si={cancel:Bn,completed:Kt,getPhase:ut},Gi=vr(window,Zd(si),gr),Yi=vr(window,Qc(si),gr);je.current=function(){Gi(),Yi()}},[Bn,ut,Kt]),qn=ht(function(){var gr=ut();gr.type!=="PENDING"&&Dn(!1);var si=gr.actions.fluidLift(gr.point);Lt({type:"DRAGGING",actions:si,hasMoved:!1})},[ut,Lt]),Zn=ht(function(gr,si){ut().type!=="IDLE"&&Dn(!1);var Gi=setTimeout(qn,Sh);Lt({type:"PENDING",point:si,actions:gr,longPressTimerId:Gi}),ar()},[ar,ut,Lt,qn]);Ai(function(){return Ut(),function(){je.current();var si=ut();si.type==="PENDING"&&(clearTimeout(si.longPressTimerId),Lt(Xh))}},[ut,Ut,Lt]),Ai(function(){var gr=vr(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return gr},[])}function Df(we){}var Rf={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Pd(we,Le){if(Le==null)return!1;var je=!!Rf[Le.tagName.toLowerCase()];if(je)return!0;var ut=Le.getAttribute("contenteditable");return ut==="true"||ut===""?!0:Le===we?!1:Pd(we,Le.parentElement)}function sp(we,Le){var je=Le.target;return Vo(je)?Pd(we,je):!1}var lp=function(we){return yr(we.getBoundingClientRect()).center};function up(we){return we instanceof eo(we).Element}var Mc=function(){var we="matches";if(typeof document=="undefined")return we;var Le=[we,"msMatchesSelector","webkitMatchesSelector"],je=xo(Le,function(ut){return ut in Element.prototype});return je||we}();function cp(we,Le){return we==null?null:we[Mc](Le)?we:cp(we.parentElement,Le)}function dp(we,Le){return we.closest?we.closest(Le):cp(we,Le)}function bh(we){return"["+fu.contextId+'="'+we+'"]'}function Kd(we,Le){var je=Le.target;if(!up(je))return null;var ut=bh(we),Lt=dp(je,ut);return!Lt||!Vo(Lt)?null:Lt}function hp(we,Le){var je=Kd(we,Le);return je?je.getAttribute(fu.draggableId):null}function Oc(we,Le){var je="["+hd.contextId+'="'+we+'"]',ut=Fn(document.querySelectorAll(je)),Lt=xo(ut,function(Tt){return Tt.getAttribute(hd.id)===Le});return!Lt||!Vo(Lt)?null:Lt}function fp(we){we.preventDefault()}function Yd(we){var Le=we.expected,je=we.phase,ut=we.isLockActive,Lt=we.shouldWarn;return!(!ut()||Le!==je)}function pp(we){var Le=we.lockAPI,je=we.store,ut=we.registry,Lt=we.draggableId;if(Le.isClaimed())return!1;var Tt=ut.draggable.findById(Lt);return!(!Tt||!Tt.options.isEnabled||!Bo(je.getState(),Lt))}function gp(we){var Le=we.lockAPI,je=we.contextId,ut=we.store,Lt=we.registry,Tt=we.draggableId,Ut=we.forceSensorStop,Kt=we.sourceEvent,Bn=pp({lockAPI:Le,store:ut,registry:Lt,draggableId:Tt});if(!Bn)return null;var ar=Lt.draggable.getById(Tt),qn=Oc(je,ar.descriptor.id);if(!qn||Kt&&!ar.options.canDragInteractiveElements&&sp(qn,Kt))return null;var Zn=Le.claim(Ut||kt),Wn="PRE_DRAG";function gr(){return ar.options.shouldRespectForcePress}function si(){return Le.isActive(Zn)}function Gi(Ea,Ha){Yd({expected:Ea,phase:Wn,isLockActive:si,shouldWarn:!0})&&ut.dispatch(Ha())}var Yi=Gi.bind(null,"DRAGGING");function no(Ea){function Ha(){Le.release(),Wn="COMPLETED"}Wn!=="PRE_DRAG"&&(Ha(),Wn!=="PRE_DRAG"&&Dn(!1)),ut.dispatch(Ia(Ea.liftActionArgs)),Wn="DRAGGING";function vl(Ma,ll){if(ll===void 0&&(ll={shouldBlockNextClick:!1}),Ea.cleanup(),ll.shouldBlockNextClick){var mu=vr(window,[{eventName:"click",fn:fp,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(mu)}Ha(),ut.dispatch(su({reason:Ma}))}return(0,ke.Z)({isActive:function(){return Yd({expected:"DRAGGING",phase:Wn,isLockActive:si,shouldWarn:!1})},shouldRespectForcePress:gr,drop:function(ll){return vl("DROP",ll)},cancel:function(ll){return vl("CANCEL",ll)}},Ea.actions)}function co(Ea){var Ha=dn(function(Ma){Yi(function(){return Ta({client:Ma})})}),vl=no({liftActionArgs:{id:Tt,clientSelection:Ea,movementMode:"FLUID"},cleanup:function(){return Ha.cancel()},actions:{move:Ha}});return(0,ke.Z)({},vl,{move:Ha})}function ko(){var Ea={moveUp:function(){return Yi($o)},moveRight:function(){return Yi(vo)},moveDown:function(){return Yi(cc)},moveLeft:function(){return Yi(dd)}};return no({liftActionArgs:{id:Tt,clientSelection:lp(qn),movementMode:"SNAP"},cleanup:kt,actions:Ea})}function Eo(){var Ea=Yd({expected:"PRE_DRAG",phase:Wn,isLockActive:si,shouldWarn:!0});Ea&&Le.release()}var Go={isActive:function(){return Yd({expected:"PRE_DRAG",phase:Wn,isLockActive:si,shouldWarn:!1})},shouldRespectForcePress:gr,fluidLift:co,snapLift:ko,abort:Eo};return Go}var mp=[$s,yh,If];function jg(we){var Le=we.contextId,je=we.store,ut=we.registry,Lt=we.customSensors,Tt=we.enableDefaultSensors,Ut=[].concat(Tt?mp:[],Lt||[]),Kt=(0,oe.useState)(function(){return Qp()})[0],Bn=ht(function(co,ko){co.isDragging&&!ko.isDragging&&Kt.tryAbandon()},[Kt]);Ai(function(){var co=je.getState(),ko=je.subscribe(function(){var Eo=je.getState();Bn(co,Eo),co=Eo});return ko},[Kt,je,Bn]),Ai(function(){return Kt.tryAbandon},[Kt.tryAbandon]);var ar=ht(function(no){return pp({lockAPI:Kt,registry:ut,store:je,draggableId:no})},[Kt,ut,je]),qn=ht(function(no,co,ko){return gp({lockAPI:Kt,registry:ut,contextId:Le,store:je,draggableId:no,forceSensorStop:co,sourceEvent:ko&&ko.sourceEvent?ko.sourceEvent:null})},[Le,Kt,ut,je]),Zn=ht(function(no){return hp(Le,no)},[Le]),Wn=ht(function(no){var co=ut.draggable.findById(no);return co?co.options:null},[ut.draggable]),gr=ht(function(){Kt.isClaimed()&&(Kt.tryAbandon(),je.getState().phase!=="IDLE"&&je.dispatch(ta()))},[Kt,je]),si=ht(Kt.isClaimed,[Kt]),Gi=Sn(function(){return{canGetLock:ar,tryGetLock:qn,findClosestDraggableId:Zn,findOptionsForDraggable:Wn,tryReleaseLock:gr,isLockClaimed:si}},[ar,qn,Zn,Wn,gr,si]);Df(Ut);for(var Yi=0;Yi<Ut.length;Yi++)Ut[Yi](Gi)}var $p=function(Le){return{onBeforeCapture:Le.onBeforeCapture,onBeforeDragStart:Le.onBeforeDragStart,onDragStart:Le.onDragStart,onDragEnd:Le.onDragEnd,onDragUpdate:Le.onDragUpdate}};function Td(we){return we.current||Dn(!1),we.current}function Mf(we){var Le=we.contextId,je=we.setCallbacks,ut=we.sensors,Lt=we.nonce,Tt=we.dragHandleUsageInstructions,Ut=(0,oe.useRef)(null);Wh();var Kt=Zh(we),Bn=ht(function(){return $p(Kt.current)},[Kt]),ar=Kc(Le),qn=Pf({contextId:Le,text:Tt}),Zn=li(Le,Lt),Wn=ht(function(Ma){Td(Ut).dispatch(Ma)},[]),gr=Sn(function(){return(0,Ve.DE)({publishWhileDragging:As,updateDroppableScroll:ga,updateDroppableIsEnabled:Ds,updateDroppableIsCombineEnabled:sa,collectionStarting:Fu},Wn)},[Wn]),si=Ju(),Gi=Sn(function(){return Ro(si,gr)},[si,gr]),Yi=Sn(function(){return wd((0,ke.Z)({scrollWindow:Ya,scrollDroppable:Gi.scrollDroppable},(0,Ve.DE)({move:Ta},Wn)))},[Gi.scrollDroppable,Wn]),no=ns(Le),co=Sn(function(){return wr({announce:ar,autoScroller:Yi,dimensionMarshal:Gi,focusMarshal:no,getResponders:Bn,styleMarshal:Zn})},[ar,Yi,Gi,no,Bn,Zn]);Ut.current=co;var ko=ht(function(){var Ma=Td(Ut),ll=Ma.getState();ll.phase!=="IDLE"&&Ma.dispatch(ta())},[]),Eo=ht(function(){var Ma=Td(Ut).getState();return Ma.isDragging||Ma.phase==="DROP_ANIMATING"},[]),Go=Sn(function(){return{isDragging:Eo,tryAbort:ko}},[Eo,ko]);je(Go);var Ea=ht(function(Ma){return Bo(Td(Ut).getState(),Ma)},[]),Ha=ht(function(){return Vl(Td(Ut).getState())},[]),vl=Sn(function(){return{marshal:Gi,focus:no,contextId:Le,canLift:Ea,isMovementAllowed:Ha,dragHandleUsageInstructionsId:qn,registry:si}},[Le,Gi,qn,no,Ea,Ha,si]);return jg({contextId:Le,store:co,registry:si,customSensors:ut,enableDefaultSensors:we.enableDefaultSensors!==!1}),(0,oe.useEffect)(function(){return ko},[ko]),oe.createElement(Vh.Provider,{value:vl},oe.createElement(he,{context:qu,store:co},we.children))}var Qh=0;function eg(){Qh=0}function Of(){return Sn(function(){return""+Qh++},[])}function Xd(){eg(),Rs()}function vp(we){var Le=Of(),je=we.dragHandleUsageInstructions||vn.dragHandleUsageInstructions;return oe.createElement(xn,null,function(ut){return oe.createElement(Mf,{nonce:we.nonce,contextId:Le,setCallbacks:ut,dragHandleUsageInstructions:je,enableDefaultSensors:we.enableDefaultSensors,sensors:we.sensors,onBeforeCapture:we.onBeforeCapture,onBeforeDragStart:we.onBeforeDragStart,onDragStart:we.onDragStart,onDragUpdate:we.onDragUpdate,onDragEnd:we.onDragEnd},we.children)})}var Qd=function(Le){return function(je){return Le===je}},tg=Qd("scroll"),Ff=Qd("auto"),ng=Qd("visible"),Da=function(Le,je){return je(Le.overflowX)||je(Le.overflowY)},Eh=function(Le,je){return je(Le.overflowX)&&je(Le.overflowY)},Ad=function(Le){var je=window.getComputedStyle(Le),ut={overflowX:je.overflowX,overflowY:je.overflowY};return Da(ut,tg)||Da(ut,Ff)},wl=function(){return!1;var Le,je,ut,Lt},gu=function we(Le){return Le==null?null:Le===document.body?wl()?Le:null:Le===document.documentElement?null:Ad(Le)?Le:we(Le.parentElement)},xh=function(we){if(we)var Le=gu(we.parentElement)},Jd=function(we){return{x:we.scrollLeft,y:we.scrollTop}},yp=function we(Le){if(!Le)return!1;var je=window.getComputedStyle(Le);return je.position==="fixed"?!0:we(Le.parentElement)},Sp=function(we){var Le=gu(we),je=yp(we);return{closestScrollable:Le,isFixedOnPage:je}},bp=function(we){var Le=we.descriptor,je=we.isEnabled,ut=we.isCombineEnabled,Lt=we.isFixedOnPage,Tt=we.direction,Ut=we.client,Kt=we.page,Bn=we.closest,ar=function(){if(!Bn)return null;var gr=Bn.scrollSize,si=Bn.client,Gi=Br({scrollHeight:gr.scrollHeight,scrollWidth:gr.scrollWidth,height:si.paddingBox.height,width:si.paddingBox.width});return{pageMarginBox:Bn.page.marginBox,frameClient:si,scrollSize:gr,shouldClipSubject:Bn.shouldClipSubject,scroll:{initial:Bn.scroll,current:Bn.scroll,max:Gi,diff:{value:xi,displacement:xi}}}}(),qn=Tt==="vertical"?cn:Kn,Zn=Pi({page:Kt,withPlaceholder:null,axis:qn,frame:ar}),Wn={descriptor:Le,isCombineEnabled:ut,isFixedOnPage:Lt,axis:qn,isEnabled:je,client:Ut,page:Kt,frame:ar,subject:Zn};return Wn},Ep=function(Le,je){var ut=Pr(Le);if(!je||Le!==je)return ut;var Lt=ut.paddingBox.top-je.scrollTop,Tt=ut.paddingBox.left-je.scrollLeft,Ut=Lt+je.scrollHeight,Kt=Tt+je.scrollWidth,Bn={top:Lt,right:Kt,bottom:Ut,left:Tt},ar=ri(Bn,ut.border),qn=$r({borderBox:ar,margin:ut.margin,border:ut.border,padding:ut.padding});return qn},xp=function(we){var Le=we.ref,je=we.descriptor,ut=we.env,Lt=we.windowScroll,Tt=we.direction,Ut=we.isDropDisabled,Kt=we.isCombineEnabled,Bn=we.shouldClipSubject,ar=ut.closestScrollable,qn=Ep(Le,ar),Zn=Me(qn,Lt),Wn=function(){if(!ar)return null;var si=Pr(ar),Gi={scrollHeight:ar.scrollHeight,scrollWidth:ar.scrollWidth};return{client:si,page:Me(si,Lt),scroll:Jd(ar),scrollSize:Gi,shouldClipSubject:Bn}}(),gr=bp({descriptor:je,isEnabled:!Ut,isCombineEnabled:Kt,isFixedOnPage:ut.isFixedOnPage,direction:Tt,client:qn,page:Zn,closest:Wn});return gr},Nd={passive:!1},Jh={passive:!0},pd=function(we){return we.shouldPublishImmediately?Nd:Jh};function Qa(we){var Le=(0,oe.useContext)(we);return Le||Dn(!1),Le}var qd=function(Le){return Le&&Le.env.closestScrollable||null};function wp(we){var Le=(0,oe.useRef)(null),je=Qa(Vh),ut=Dc("droppable"),Lt=je.registry,Tt=je.marshal,Ut=Zh(we),Kt=Sn(function(){return{id:we.droppableId,type:we.type,mode:we.mode}},[we.droppableId,we.mode,we.type]),Bn=(0,oe.useRef)(Kt),ar=Sn(function(){return Vr(function(Eo,Go){Le.current||Dn(!1);var Ea={x:Eo,y:Go};Tt.updateDroppableScroll(Kt.id,Ea)})},[Kt.id,Tt]),qn=ht(function(){var Eo=Le.current;return!Eo||!Eo.env.closestScrollable?xi:Jd(Eo.env.closestScrollable)},[]),Zn=ht(function(){var Eo=qn();ar(Eo.x,Eo.y)},[qn,ar]),Wn=Sn(function(){return dn(Zn)},[Zn]),gr=ht(function(){var Eo=Le.current,Go=qd(Eo);Eo&&Go||Dn(!1);var Ea=Eo.scrollOptions;if(Ea.shouldPublishImmediately){Zn();return}Wn()},[Wn,Zn]),si=ht(function(Eo,Go){Le.current&&Dn(!1);var Ea=Ut.current,Ha=Ea.getDroppableRef();Ha||Dn(!1);var vl=Sp(Ha),Ma={ref:Ha,descriptor:Kt,env:vl,scrollOptions:Go};Le.current=Ma;var ll=xp({ref:Ha,descriptor:Kt,env:vl,windowScroll:Eo,direction:Ea.direction,isDropDisabled:Ea.isDropDisabled,isCombineEnabled:Ea.isCombineEnabled,shouldClipSubject:!Ea.ignoreContainerClipping}),mu=vl.closestScrollable;return mu&&(mu.setAttribute(ge.contextId,je.contextId),mu.addEventListener("scroll",gr,pd(Ma.scrollOptions))),ll},[je.contextId,Kt,gr,Ut]),Gi=ht(function(){var Eo=Le.current,Go=qd(Eo);return Eo&&Go||Dn(!1),Jd(Go)},[]),Yi=ht(function(){var Eo=Le.current;Eo||Dn(!1);var Go=qd(Eo);Le.current=null,Go&&(Wn.cancel(),Go.removeAttribute(ge.contextId),Go.removeEventListener("scroll",gr,pd(Eo.scrollOptions)))},[gr,Wn]),no=ht(function(Eo){var Go=Le.current;Go||Dn(!1);var Ea=qd(Go);Ea||Dn(!1),Ea.scrollTop+=Eo.y,Ea.scrollLeft+=Eo.x},[]),co=Sn(function(){return{getDimensionAndWatchScroll:si,getScrollWhileDragging:Gi,dragStopped:Yi,scroll:no}},[Yi,si,Gi,no]),ko=Sn(function(){return{uniqueId:ut,descriptor:Kt,callbacks:co}},[co,Kt,ut]);Ai(function(){return Bn.current=ko.descriptor,Lt.droppable.register(ko),function(){Le.current&&Yi(),Lt.droppable.unregister(ko)}},[co,Kt,Yi,ko,Tt,Lt.droppable]),Ai(function(){Le.current&&Tt.updateDroppableIsEnabled(Bn.current.id,!we.isDropDisabled)},[we.isDropDisabled,Tt]),Ai(function(){Le.current&&Tt.updateDroppableIsCombineEnabled(Bn.current.id,we.isCombineEnabled)},[we.isCombineEnabled,Tt])}function Ld(){}var $d={width:0,height:0,margin:rr},qh=function(Le){var je=Le.isAnimatingOpenOnMount,ut=Le.placeholder,Lt=Le.animate;return je||Lt==="close"?$d:{height:ut.client.borderBox.height,width:ut.client.borderBox.width,margin:ut.client.margin}},rg=function(Le){var je=Le.isAnimatingOpenOnMount,ut=Le.placeholder,Lt=Le.animate,Tt=qh({isAnimatingOpenOnMount:je,placeholder:ut,animate:Lt});return{display:ut.display,boxSizing:"border-box",width:Tt.width,height:Tt.height,marginTop:Tt.margin.top,marginRight:Tt.margin.right,marginBottom:Tt.margin.bottom,marginLeft:Tt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Lt!=="none"?jo.placeholder:null}};function pl(we){var Le=(0,oe.useRef)(null),je=ht(function(){Le.current&&(clearTimeout(Le.current),Le.current=null)},[]),ut=we.animate,Lt=we.onTransitionEnd,Tt=we.onClose,Ut=we.contextId,Kt=(0,oe.useState)(we.animate==="open"),Bn=Kt[0],ar=Kt[1];(0,oe.useEffect)(function(){return Bn?ut!=="open"?(je(),ar(!1),Ld):Le.current?Ld:(Le.current=setTimeout(function(){Le.current=null,ar(!1)}),je):Ld},[ut,Bn,je]);var qn=ht(function(Wn){Wn.propertyName==="height"&&(Lt(),ut==="close"&&Tt())},[ut,Tt,Lt]),Zn=rg({isAnimatingOpenOnMount:Bn,animate:we.animate,placeholder:we.placeholder});return oe.createElement(we.placeholder.tagName,{style:Zn,"data-rbd-placeholder-context-id":Ut,onTransitionEnd:qn,ref:we.innerRef})}var ig=oe.memo(pl),kd=oe.createContext(null);function Jc(we){we&&Vo(we)||Dn(!1)}function eh(we){return typeof we=="boolean"}function re(we,Le){Le.forEach(function(je){return je(we)})}var le=[function(Le){var je=Le.props;je.droppableId||Dn(!1),typeof je.droppableId!="string"&&Dn(!1)},function(Le){var je=Le.props;eh(je.isDropDisabled)||Dn(!1),eh(je.isCombineEnabled)||Dn(!1),eh(je.ignoreContainerClipping)||Dn(!1)},function(Le){var je=Le.getDroppableRef;Jc(je())}],ye=[function(Le){var je=Le.props,ut=Le.getPlaceholderRef;if(je.placeholder)var Lt=ut()}],ve=[function(Le){var je=Le.props;je.renderClone||Dn(!1)},function(Le){var je=Le.getPlaceholderRef;je()&&Dn(!1)}];function xe(we){sl(function(){re(we,le),we.props.mode==="standard"&&re(we,ye),we.props.mode==="virtual"&&re(we,ve)})}var Ke=function(we){Ie(Le,we);function Le(){for(var ut,Lt=arguments.length,Tt=new Array(Lt),Ut=0;Ut<Lt;Ut++)Tt[Ut]=arguments[Ut];return ut=we.call.apply(we,[this].concat(Tt))||this,ut.state={isVisible:!!ut.props.on,data:ut.props.on,animate:ut.props.shouldAnimate&&ut.props.on?"open":"none"},ut.onClose=function(){ut.state.animate==="close"&&ut.setState({isVisible:!1})},ut}Le.getDerivedStateFromProps=function(Lt,Tt){return Lt.shouldAnimate?Lt.on?{isVisible:!0,data:Lt.on,animate:"open"}:Tt.isVisible?{isVisible:!0,data:Tt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Lt.on,data:Lt.on,animate:"none"}};var je=Le.prototype;return je.render=function(){if(!this.state.isVisible)return null;var Lt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Lt)},Le}(oe.PureComponent),dt={dragging:5e3,dropAnimating:4500},Ct=function(Le,je){return je?jo.drop(je.duration):Le?jo.snap:jo.fluid},Et=function(Le,je){return Le?je?hl.opacity.drop:hl.opacity.combining:null},jt=function(Le){return Le.forceShouldAnimate!=null?Le.forceShouldAnimate:Le.mode==="SNAP"};function Yn(we){var Le=we.dimension,je=Le.client,ut=we.offset,Lt=we.combineWith,Tt=we.dropping,Ut=!!Lt,Kt=jt(we),Bn=!!Tt,ar=Bn?Ga.drop(ut,Ut):Ga.moveTo(ut),qn={position:"fixed",top:je.marginBox.top,left:je.marginBox.left,boxSizing:"border-box",width:je.borderBox.width,height:je.borderBox.height,transition:Ct(Kt,Tt),transform:ar,opacity:Et(Ut,Bn),zIndex:Bn?dt.dropAnimating:dt.dragging,pointerEvents:"none"};return qn}function tn(we){return{transform:Ga.moveTo(we.offset),transition:we.shouldAnimateDisplacement?null:"none"}}function Cr(we){return we.type==="DRAGGING"?Yn(we):tn(we)}function mr(we,Le,je){je===void 0&&(je=xi);var ut=window.getComputedStyle(Le),Lt=Le.getBoundingClientRect(),Tt=kr(Lt,ut),Ut=Me(Tt,je),Kt={client:Tt,tagName:Le.tagName.toLowerCase(),display:ut.display},Bn={x:Tt.marginBox.width,y:Tt.marginBox.height},ar={descriptor:we,placeholder:Kt,displaceBy:Bn,client:Tt,page:Ut};return ar}function bi(we){var Le=Dc("draggable"),je=we.descriptor,ut=we.registry,Lt=we.getDraggableRef,Tt=we.canDragInteractiveElements,Ut=we.shouldRespectForcePress,Kt=we.isEnabled,Bn=Sn(function(){return{canDragInteractiveElements:Tt,shouldRespectForcePress:Ut,isEnabled:Kt}},[Tt,Kt,Ut]),ar=ht(function(gr){var si=Lt();return si||Dn(!1),mr(je,si,gr)},[je,Lt]),qn=Sn(function(){return{uniqueId:Le,descriptor:je,options:Bn,getDimension:ar}},[je,ar,Bn,Le]),Zn=(0,oe.useRef)(qn),Wn=(0,oe.useRef)(!0);Ai(function(){return ut.draggable.register(Zn.current),function(){return ut.draggable.unregister(Zn.current)}},[ut.draggable]),Ai(function(){if(Wn.current){Wn.current=!1;return}var gr=Zn.current;Zn.current=qn,ut.draggable.update(qn,gr)},[qn,ut.draggable])}function Ci(we,Le,je){sl(function(){function ut(Tt){return"Draggable[id: "+Tt+"]: "}var Lt=we.draggableId;Lt||Dn(!1),typeof Lt!="string"&&Dn(!1),po(we.index)||Dn(!1),we.mapped.type!=="DRAGGING"&&(Jc(je()),we.isEnabled&&(Aa(Le,Lt)||Dn(!1)))})}function Fi(we){}function Ji(we){we.preventDefault()}function yo(we){var Le=(0,oe.useRef)(null),je=ht(function(Ma){Le.current=Ma},[]),ut=ht(function(){return Le.current},[]),Lt=Qa(Vh),Tt=Lt.contextId,Ut=Lt.dragHandleUsageInstructionsId,Kt=Lt.registry,Bn=Qa(kd),ar=Bn.type,qn=Bn.droppableId,Zn=Sn(function(){return{id:we.draggableId,index:we.index,type:ar,droppableId:qn}},[we.draggableId,we.index,ar,qn]),Wn=we.children,gr=we.draggableId,si=we.isEnabled,Gi=we.shouldRespectForcePress,Yi=we.canDragInteractiveElements,no=we.isClone,co=we.mapped,ko=we.dropAnimationFinished;if(Ci(we,Tt,ut),Fi(no),!no){var Eo=Sn(function(){return{descriptor:Zn,registry:Kt,getDraggableRef:ut,canDragInteractiveElements:Yi,shouldRespectForcePress:Gi,isEnabled:si}},[Zn,Kt,ut,Yi,Gi,si]);bi(Eo)}var Go=Sn(function(){return si?{tabIndex:0,role:"button","aria-describedby":Ut,"data-rbd-drag-handle-draggable-id":gr,"data-rbd-drag-handle-context-id":Tt,draggable:!1,onDragStart:Ji}:null},[Tt,Ut,gr,si]),Ea=ht(function(Ma){co.type==="DRAGGING"&&co.dropping&&Ma.propertyName==="transform"&&ko()},[ko,co]),Ha=Sn(function(){var Ma=Cr(co),ll=co.type==="DRAGGING"&&co.dropping?Ea:null,mu={innerRef:je,draggableProps:{"data-rbd-draggable-context-id":Tt,"data-rbd-draggable-id":gr,style:Ma,onTransitionEnd:ll},dragHandleProps:Go};return mu},[Tt,Go,gr,co,Ea,je]),vl=Sn(function(){return{draggableId:Zn.id,type:Zn.type,source:{index:Zn.index,droppableId:Zn.droppableId}}},[Zn.droppableId,Zn.id,Zn.index,Zn.type]);return Wn(Ha,co.snapshot,vl)}var oo=function(we,Le){return we===Le},Po=function(we){var Le=we.combine,je=we.destination;return je?je.droppableId:Le?Le.droppableId:null},Qo=function(Le){return Le.combine?Le.combine.draggableId:null},ao=function(Le){return Le.at&&Le.at.type==="COMBINE"?Le.at.combine.draggableId:null};function ya(){var we=Vr(function(Lt,Tt){return{x:Lt,y:Tt}}),Le=Vr(function(Lt,Tt,Ut,Kt,Bn){return{isDragging:!0,isClone:Tt,isDropAnimating:!!Bn,dropAnimation:Bn,mode:Lt,draggingOver:Ut,combineWith:Kt,combineTargetFor:null}}),je=Vr(function(Lt,Tt,Ut,Kt,Bn,ar,qn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Bn,combineWith:ar,mode:Tt,offset:Lt,dimension:Ut,forceShouldAnimate:qn,snapshot:Le(Tt,Kt,Bn,ar,null)}}}),ut=function(Tt,Ut){if(Tt.isDragging){if(Tt.critical.draggable.id!==Ut.draggableId)return null;var Kt=Tt.current.client.offset,Bn=Tt.dimensions.draggables[Ut.draggableId],ar=ss(Tt.impact),qn=ao(Tt.impact),Zn=Tt.forceShouldAnimate;return je(we(Kt.x,Kt.y),Tt.movementMode,Bn,Ut.isClone,ar,qn,Zn)}if(Tt.phase==="DROP_ANIMATING"){var Wn=Tt.completed;if(Wn.result.draggableId!==Ut.draggableId)return null;var gr=Ut.isClone,si=Tt.dimensions.draggables[Ut.draggableId],Gi=Wn.result,Yi=Gi.mode,no=Po(Gi),co=Qo(Gi),ko=Tt.dropDuration,Eo={duration:ko,curve:Bu.drop,moveTo:Tt.newHomeClientOffset,opacity:co?hl.opacity.drop:null,scale:co?hl.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Tt.newHomeClientOffset,dimension:si,dropping:Eo,draggingOver:no,combineWith:co,mode:Yi,forceShouldAnimate:null,snapshot:Le(Yi,gr,no,co,Eo)}}}return null};return ut}function xs(we){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:we,combineWith:null}}var Cl={mapped:{type:"SECONDARY",offset:xi,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:xs(null)}};function Ms(){var we=Vr(function(Ut,Kt){return{x:Ut,y:Kt}}),Le=Vr(xs),je=Vr(function(Ut,Kt,Bn){return Kt===void 0&&(Kt=null),{mapped:{type:"SECONDARY",offset:Ut,combineTargetFor:Kt,shouldAnimateDisplacement:Bn,snapshot:Le(Kt)}}}),ut=function(Kt){return Kt?je(xi,Kt,!0):null},Lt=function(Kt,Bn,ar,qn){var Zn=ar.displaced.visible[Kt],Wn=!!(qn.inVirtualList&&qn.effected[Kt]),gr=ni(ar),si=gr&&gr.draggableId===Kt?Bn:null;if(!Zn){if(!Wn)return ut(si);if(ar.displaced.invisible[Kt])return null;var Gi=fi(qn.displacedBy.point),Yi=we(Gi.x,Gi.y);return je(Yi,si,!0)}if(Wn)return ut(si);var no=ar.displacedBy.point,co=we(no.x,no.y);return je(co,si,Zn.shouldAnimate)},Tt=function(Kt,Bn){if(Kt.isDragging)return Kt.critical.draggable.id===Bn.draggableId?null:Lt(Bn.draggableId,Kt.critical.draggable.id,Kt.impact,Kt.afterCritical);if(Kt.phase==="DROP_ANIMATING"){var ar=Kt.completed;return ar.result.draggableId===Bn.draggableId?null:Lt(Bn.draggableId,ar.result.draggableId,ar.impact,ar.afterCritical)}return null};return Tt}var Tu=function(){var Le=ya(),je=Ms(),ut=function(Tt,Ut){return Le(Tt,Ut)||je(Tt,Ut)||Cl};return ut},Xl={dropAnimationFinished:Ec},gl=yn(Tu,Xl,null,{context:qu,pure:!0,areStatePropsEqual:oo})(yo);function Au(we){var Le=Qa(kd),je=Le.isUsingCloneFor;return je===we.draggableId&&!we.isClone?null:oe.createElement(gl,we)}function Bl(we){var Le=typeof we.isDragDisabled=="boolean"?!we.isDragDisabled:!0,je=!!we.disableInteractiveElementBlocking,ut=!!we.shouldRespectForcePress;return oe.createElement(Au,(0,ke.Z)({},we,{isClone:!1,isEnabled:Le,canDragInteractiveElements:je,shouldRespectForcePress:ut}))}function ml(we){var Le=(0,oe.useContext)(Vh);Le||Dn(!1);var je=Le.contextId,ut=Le.isMovementAllowed,Lt=(0,oe.useRef)(null),Tt=(0,oe.useRef)(null),Ut=we.children,Kt=we.droppableId,Bn=we.type,ar=we.mode,qn=we.direction,Zn=we.ignoreContainerClipping,Wn=we.isDropDisabled,gr=we.isCombineEnabled,si=we.snapshot,Gi=we.useClone,Yi=we.updateViewportMaxScroll,no=we.getContainerForClone,co=ht(function(){return Lt.current},[]),ko=ht(function(Nu){Lt.current=Nu},[]),Eo=ht(function(){return Tt.current},[]),Go=ht(function(Nu){Tt.current=Nu},[]);xe({props:we,getDroppableRef:co,getPlaceholderRef:Eo});var Ea=ht(function(){ut()&&Yi({maxScroll:Co()})},[ut,Yi]);wp({droppableId:Kt,type:Bn,mode:ar,direction:qn,isDropDisabled:Wn,isCombineEnabled:gr,ignoreContainerClipping:Zn,getDroppableRef:co});var Ha=oe.createElement(Ke,{on:we.placeholder,shouldAnimate:we.shouldAnimatePlaceholder},function(Nu){var qc=Nu.onClose,fc=Nu.data,nc=Nu.animate;return oe.createElement(ig,{placeholder:fc,onClose:qc,innerRef:Go,animate:nc,contextId:je,onTransitionEnd:Ea})}),vl=Sn(function(){return{innerRef:ko,placeholder:Ha,droppableProps:{"data-rbd-droppable-id":Kt,"data-rbd-droppable-context-id":je}}},[je,Kt,Ha,ko]),Ma=Gi?Gi.dragging.draggableId:null,ll=Sn(function(){return{droppableId:Kt,type:Bn,isUsingCloneFor:Ma}},[Kt,Ma,Bn]);function mu(){if(!Gi)return null;var Nu=Gi.dragging,qc=Gi.render,fc=oe.createElement(Au,{draggableId:Nu.draggableId,index:Nu.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(nc,Ul){return qc(nc,Ul,Nu)});return Yt.createPortal(fc,no())}return oe.createElement(kd.Provider,{value:ll},Ut(vl,si),mu())}var Ra=function(Le,je){return Le===je.droppable.type},Os=function(Le,je){return je.draggables[Le.draggable.id]},Ll=function(){var Le={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},je=(0,ke.Z)({},Le,{shouldAnimatePlaceholder:!1}),ut=Vr(function(Ut){return{draggableId:Ut.id,type:Ut.type,source:{index:Ut.index,droppableId:Ut.droppableId}}}),Lt=Vr(function(Ut,Kt,Bn,ar,qn,Zn){var Wn=qn.descriptor.id,gr=qn.descriptor.droppableId===Ut;if(gr){var si=Zn?{render:Zn,dragging:ut(qn.descriptor)}:null,Gi={isDraggingOver:Bn,draggingOverWith:Bn?Wn:null,draggingFromThisWith:Wn,isUsingPlaceholder:!0};return{placeholder:qn.placeholder,shouldAnimatePlaceholder:!1,snapshot:Gi,useClone:si}}if(!Kt)return je;if(!ar)return Le;var Yi={isDraggingOver:Bn,draggingOverWith:Wn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:qn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Yi,useClone:null}}),Tt=function(Kt,Bn){var ar=Bn.droppableId,qn=Bn.type,Zn=!Bn.isDropDisabled,Wn=Bn.renderClone;if(Kt.isDragging){var gr=Kt.critical;if(!Ra(qn,gr))return je;var si=Os(gr,Kt.dimensions),Gi=ss(Kt.impact)===ar;return Lt(ar,Zn,Gi,Gi,si,Wn)}if(Kt.phase==="DROP_ANIMATING"){var Yi=Kt.completed;if(!Ra(qn,Yi.critical))return je;var no=Os(Yi.critical,Kt.dimensions);return Lt(ar,Zn,Po(Yi.result)===ar,ss(Yi.impact)===ar,no,Wn)}if(Kt.phase==="IDLE"&&Kt.completed&&!Kt.shouldFlush){var co=Kt.completed;if(!Ra(qn,co.critical))return je;var ko=ss(co.impact)===ar,Eo=!!(co.impact.at&&co.impact.at.type==="COMBINE"),Go=co.critical.droppable.id===ar;return ko?Eo?Le:je:Go?Le:je}return je};return Tt},_l={updateViewportMaxScroll:Wa};function wc(){return document.body||Dn(!1),document.body}var Fs={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:wc},tc=yn(Ll,_l,null,{context:qu,pure:!0,areStatePropsEqual:oo})(ml);tc.defaultProps=Fs},38486:function(Ze,Ee){"use strict";var ae;var oe=60103,Pe=60106,Ie=60107,ke=60108,Ve=60114,Te=60109,ze=60110,st=60112,Qe=60113,Ue=60120,St=60115,$e=60116,Dt=60121,Fe=60122,te=60117,ee=60129,he=60131;if(typeof Symbol=="function"&&Symbol.for){var ue=Symbol.for;oe=ue("react.element"),Pe=ue("react.portal"),Ie=ue("react.fragment"),ke=ue("react.strict_mode"),Ve=ue("react.profiler"),Te=ue("react.provider"),ze=ue("react.context"),st=ue("react.forward_ref"),Qe=ue("react.suspense"),Ue=ue("react.suspense_list"),St=ue("react.memo"),$e=ue("react.lazy"),Dt=ue("react.block"),Fe=ue("react.server.block"),te=ue("react.fundamental"),ee=ue("react.debug_trace_mode"),he=ue("react.legacy_hidden")}function fe(vt){if(typeof vt=="object"&&vt!==null){var wt=vt.$$typeof;switch(wt){case oe:switch(vt=vt.type,vt){case Ie:case Ve:case ke:case Qe:case Ue:return vt;default:switch(vt=vt&&vt.$$typeof,vt){case ze:case st:case $e:case St:case Te:return vt;default:return wt}}case Pe:return wt}}}var me=Te,be=oe,Ae=st,De=Ie,We=$e,nt=St,qe=Pe,ot=Ve,mt=ke,at=Qe;ae=ze,ae=me,ae=be,ae=Ae,ae=De,ae=We,ae=nt,ae=qe,ae=ot,ae=mt,ae=at,ae=function(){return!1},ae=function(){return!1},Ee.isContextConsumer=function(vt){return fe(vt)===ze},ae=function(vt){return fe(vt)===Te},ae=function(vt){return typeof vt=="object"&&vt!==null&&vt.$$typeof===oe},ae=function(vt){return fe(vt)===st},ae=function(vt){return fe(vt)===Ie},ae=function(vt){return fe(vt)===$e},ae=function(vt){return fe(vt)===St},ae=function(vt){return fe(vt)===Pe},ae=function(vt){return fe(vt)===Ve},ae=function(vt){return fe(vt)===ke},ae=function(vt){return fe(vt)===Qe},ae=function(vt){return typeof vt=="string"||typeof vt=="function"||vt===Ie||vt===Ve||vt===ee||vt===ke||vt===Qe||vt===Ue||vt===he||typeof vt=="object"&&vt!==null&&(vt.$$typeof===$e||vt.$$typeof===St||vt.$$typeof===Te||vt.$$typeof===ze||vt.$$typeof===st||vt.$$typeof===te||vt.$$typeof===Dt||vt[0]===Fe)},ae=fe},53410:function(Ze,Ee,ae){"use strict";Ze.exports=ae(38486)},77596:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return gt}});var oe=ae(74416),Pe=ae(80702),Ie=ae(49618),ke=ae(59301),Ve=ae(72308);function Te(ct,Jt){var sn=Object.keys(ct);if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols(ct);Jt&&(It=It.filter(function(wn){return Object.getOwnPropertyDescriptor(ct,wn).enumerable})),sn.push.apply(sn,It)}return sn}function ze(ct){for(var Jt=1;Jt<arguments.length;Jt++){var sn=arguments[Jt]!=null?arguments[Jt]:{};Jt%2?Te(Object(sn),!0).forEach(function(It){(0,Ie.Z)(ct,It,sn[It])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(sn)):Te(Object(sn)).forEach(function(It){Object.defineProperty(ct,It,Object.getOwnPropertyDescriptor(sn,It))})}return ct}function st(ct){var Jt=ct.length;if(Jt===0||Jt===1)return ct;if(Jt===2)return[ct[0],ct[1],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0])];if(Jt===3)return[ct[0],ct[1],ct[2],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0])];if(Jt>=4)return[ct[0],ct[1],ct[2],ct[3],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3]),"".concat(ct[3],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1],".").concat(ct[0])]}var Qe={};function Ue(ct){if(ct.length===0||ct.length===1)return ct;var Jt=ct.join(".");return Qe[Jt]||(Qe[Jt]=st(ct)),Qe[Jt]}function St(ct){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},sn=arguments.length>2?arguments[2]:void 0,It=ct.filter(function(bn){return bn!=="token"}),wn=Ue(It);return wn.reduce(function(bn,_n){return ze(ze({},bn),sn[_n])},Jt)}function $e(ct){return ct.join(" ")}function Dt(ct,Jt){var sn=0;return function(It){return sn+=1,It.map(function(wn,bn){return Fe({node:wn,stylesheet:ct,useInlineStyles:Jt,key:"code-segment-".concat(sn,"-").concat(bn)})})}}function Fe(ct){var Jt=ct.node,sn=ct.stylesheet,It=ct.style,wn=It===void 0?{}:It,bn=ct.useInlineStyles,_n=ct.key,Xt=Jt.properties,zn=Jt.type,Ot=Jt.tagName,jn=Jt.value;if(zn==="text")return jn;if(Ot){var cr=Dt(sn,bn),it;if(!bn)it=ze(ze({},Xt),{},{className:$e(Xt.className)});else{var _e=Object.keys(sn).reduce(function(Be,bt){return bt.split(".").forEach(function(Wt){Be.includes(Wt)||Be.push(Wt)}),Be},[]),Re=Xt.className&&Xt.className.includes("token")?["token"]:[],Xe=Xt.className&&Re.concat(Xt.className.filter(function(Be){return!_e.includes(Be)}));it=ze(ze({},Xt),{},{className:$e(Xe)||void 0,style:St(Xt.className,Object.assign({},Xt.style,wn),sn)})}var lt=cr(Jt.children);return ke.createElement(Ot,(0,Ve.Z)({key:_n},it),lt)}}var te=function(ct,Jt){var sn=ct.listLanguages();return sn.indexOf(Jt)!==-1},ee=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(ct,Jt){var sn=Object.keys(ct);if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols(ct);Jt&&(It=It.filter(function(wn){return Object.getOwnPropertyDescriptor(ct,wn).enumerable})),sn.push.apply(sn,It)}return sn}function ue(ct){for(var Jt=1;Jt<arguments.length;Jt++){var sn=arguments[Jt]!=null?arguments[Jt]:{};Jt%2?he(Object(sn),!0).forEach(function(It){(0,Ie.Z)(ct,It,sn[It])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(sn)):he(Object(sn)).forEach(function(It){Object.defineProperty(ct,It,Object.getOwnPropertyDescriptor(sn,It))})}return ct}var fe=/\n/g;function me(ct){return ct.match(fe)}function be(ct){var Jt=ct.lines,sn=ct.startingLineNumber,It=ct.style;return Jt.map(function(wn,bn){var _n=bn+sn;return ke.createElement("span",{key:"line-".concat(bn),className:"react-syntax-highlighter-line-number",style:typeof It=="function"?It(_n):It},"".concat(_n,`
`))})}function Ae(ct){var Jt=ct.codeString,sn=ct.codeStyle,It=ct.containerStyle,wn=It===void 0?{float:"left",paddingRight:"10px"}:It,bn=ct.numberStyle,_n=bn===void 0?{}:bn,Xt=ct.startingLineNumber;return ke.createElement("code",{style:Object.assign({},sn,wn)},be({lines:Jt.replace(/\n$/,"").split(`
`),style:_n,startingLineNumber:Xt}))}function De(ct){return"".concat(ct.toString().length,".25em")}function We(ct,Jt){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ct),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Jt},children:[{type:"text",value:ct}]}}function nt(ct,Jt,sn){var It={display:"inline-block",minWidth:De(sn),paddingRight:"1em",textAlign:"right",userSelect:"none"},wn=typeof ct=="function"?ct(Jt):ct,bn=ue(ue({},It),wn);return bn}function qe(ct){var Jt=ct.children,sn=ct.lineNumber,It=ct.lineNumberStyle,wn=ct.largestLineNumber,bn=ct.showInlineLineNumbers,_n=ct.lineProps,Xt=_n===void 0?{}:_n,zn=ct.className,Ot=zn===void 0?[]:zn,jn=ct.showLineNumbers,cr=ct.wrapLongLines,it=ct.wrapLines,_e=it===void 0?!1:it,Re=_e?ue({},typeof Xt=="function"?Xt(sn):Xt):{};if(Re.className=Re.className?[].concat((0,Pe.Z)(Re.className.trim().split(/\s+/)),(0,Pe.Z)(Ot)):Ot,sn&&bn){var Xe=nt(It,sn,wn);Jt.unshift(We(sn,Xe))}return cr&jn&&(Re.style=ue({display:"flex"},Re.style)),{type:"element",tagName:"span",properties:Re,children:Jt}}function ot(ct){for(var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],It=0;It<ct.length;It++){var wn=ct[It];if(wn.type==="text")sn.push(qe({children:[wn],className:(0,Pe.Z)(new Set(Jt))}));else if(wn.children){var bn=Jt.concat(wn.properties.className);ot(wn.children,bn).forEach(function(_n){return sn.push(_n)})}}return sn}function mt(ct,Jt,sn,It,wn,bn,_n,Xt,zn){var Ot,jn=ot(ct.value),cr=[],it=-1,_e=0;function Re(On,Pt){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return qe({children:On,lineNumber:Pt,lineNumberStyle:Xt,largestLineNumber:_n,showInlineLineNumbers:wn,lineProps:sn,className:Vt,showLineNumbers:It,wrapLongLines:zn,wrapLines:Jt})}function Xe(On,Pt){if(It&&Pt&&wn){var Vt=nt(Xt,Pt,_n);On.unshift(We(Pt,Vt))}return On}function lt(On,Pt){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Jt||Vt.length>0?Re(On,Pt,Vt):Xe(On,Pt)}for(var Be=function(){var Pt=jn[_e],Vt=Pt.children[0].value,zt=me(Vt);if(zt){var pn=Vt.split(`
`);pn.forEach(function(Tn,gn){var Mt=It&&cr.length+bn,Un={type:"text",value:"".concat(Tn,`
`)};if(gn===0){var Yt=jn.slice(it+1,_e).concat(qe({children:[Un],className:Pt.properties.className})),on=lt(Yt,Mt);cr.push(on)}else if(gn===pn.length-1){var mn=jn[_e+1]&&jn[_e+1].children&&jn[_e+1].children[0],er={type:"text",value:"".concat(Tn)};if(mn){var Sn=qe({children:[er],className:Pt.properties.className});jn.splice(_e+1,0,Sn)}else{var ht=[er],tr=lt(ht,Mt,Pt.properties.className);cr.push(tr)}}else{var lr=[Un],qt=lt(lr,Mt,Pt.properties.className);cr.push(qt)}}),it=_e}_e++};_e<jn.length;)Be();if(it!==jn.length-1){var bt=jn.slice(it+1,jn.length);if(bt&&bt.length){var Wt=It&&cr.length+bn,yn=lt(bt,Wt);cr.push(yn)}}return Jt?cr:(Ot=[]).concat.apply(Ot,cr)}function at(ct){var Jt=ct.rows,sn=ct.stylesheet,It=ct.useInlineStyles;return Jt.map(function(wn,bn){return Fe({node:wn,stylesheet:sn,useInlineStyles:It,key:"code-segement".concat(bn)})})}function vt(ct){return ct&&typeof ct.highlightAuto!="undefined"}function wt(ct){var Jt=ct.astGenerator,sn=ct.language,It=ct.code,wn=ct.defaultCodeValue;if(vt(Jt)){var bn=te(Jt,sn);return sn==="text"?{value:wn,language:"text"}:bn?Jt.highlight(sn,It):Jt.highlightAuto(It)}try{return sn&&sn!=="text"?{value:Jt.highlight(It,sn)}:{value:wn}}catch(_n){return{value:wn}}}function At(ct,Jt){return function(It){var wn=It.language,bn=It.children,_n=It.style,Xt=_n===void 0?Jt:_n,zn=It.customStyle,Ot=zn===void 0?{}:zn,jn=It.codeTagProps,cr=jn===void 0?{className:wn?"language-".concat(wn):void 0,style:ue(ue({},Xt['code[class*="language-"]']),Xt['code[class*="language-'.concat(wn,'"]')])}:jn,it=It.useInlineStyles,_e=it===void 0?!0:it,Re=It.showLineNumbers,Xe=Re===void 0?!1:Re,lt=It.showInlineLineNumbers,Be=lt===void 0?!0:lt,bt=It.startingLineNumber,Wt=bt===void 0?1:bt,yn=It.lineNumberContainerStyle,On=It.lineNumberStyle,Pt=On===void 0?{}:On,Vt=It.wrapLines,zt=It.wrapLongLines,pn=zt===void 0?!1:zt,Tn=It.lineProps,gn=Tn===void 0?{}:Tn,Mt=It.renderer,Un=It.PreTag,Yt=Un===void 0?"pre":Un,on=It.CodeTag,mn=on===void 0?"code":on,er=It.code,Sn=er===void 0?(Array.isArray(bn)?bn[0]:bn)||"":er,ht=It.astGenerator,tr=(0,oe.Z)(It,ee);ht=ht||ct;var lr=Xe?ke.createElement(Ae,{containerStyle:yn,codeStyle:cr.style||{},numberStyle:Pt,startingLineNumber:Wt,codeString:Sn}):null,qt=Xt.hljs||Xt['pre[class*="language-"]']||{backgroundColor:"#fff"},yr=vt(ht)?"hljs":"prismjs",ri=_e?Object.assign({},tr,{style:Object.assign({},qt,Ot)}):Object.assign({},tr,{className:tr.className?"".concat(yr," ").concat(tr.className):yr,style:Object.assign({},Ot)});if(pn?cr.style=ue({whiteSpace:"pre-wrap"},cr.style):cr.style=ue({whiteSpace:"pre"},cr.style),!ht)return ke.createElement(Yt,ri,lr,ke.createElement(mn,cr,Sn));(Vt===void 0&&Mt||pn)&&(Vt=!0),Mt=Mt||at;var Or=[{type:"text",value:Sn}],Nn=wt({astGenerator:ht,language:wn,code:Sn,defaultCodeValue:Or});Nn.language===null&&(Nn.value=Or);var ui=Nn.value.length;ui===1&&Nn.value[0].type==="text"&&(ui=Nn.value[0].value.split(`
`).length);var $r=ui+Wt,or=mt(Nn,Vt,gn,Xe,Be,Wt,$r,Pt,pn);return ke.createElement(Yt,ri,ke.createElement(mn,cr,!Be&&lr,Mt({rows:or,stylesheet:Xt,useInlineStyles:_e})))}}var Ht={'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"}},Qt=ae(11594),Zt=ae.n(Qt),ln=["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"],Nt=At(Zt(),Ht);Nt.supportedLanguages=ln;var gt=Nt},14179:function(Ze,Ee){"use strict";Ee.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(Ze,Ee,ae){"use strict";ae(84126);var oe=ae(59301),Pe=60103;if(Ee.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Ie=Symbol.for;Pe=Ie("react.element"),Ee.Fragment=Ie("react.fragment")}var ke=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ve=Object.prototype.hasOwnProperty,Te={key:!0,ref:!0,__self:!0,__source:!0};function ze(st,Qe,Ue){var St,$e={},Dt=null,Fe=null;Ue!==void 0&&(Dt=""+Ue),Qe.key!==void 0&&(Dt=""+Qe.key),Qe.ref!==void 0&&(Fe=Qe.ref);for(St in Qe)Ve.call(Qe,St)&&!Te.hasOwnProperty(St)&&($e[St]=Qe[St]);if(st&&st.defaultProps)for(St in Qe=st.defaultProps,Qe)$e[St]===void 0&&($e[St]=Qe[St]);return{$$typeof:Pe,type:st,key:Dt,ref:Fe,props:$e,_owner:ke.current}}Ee.jsx=ze,Ee.jsxs=ze},37712:function(Ze,Ee,ae){"use strict";Ze.exports=ae(19524)},95489:function(Ze,Ee,ae){"use strict";var oe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ae.g=="object"?ae.g:{},Pe=Ae();oe.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ie=ae(43621),ke=ae(12256),Ve=ae(68398),Te=ae(70614),ze=ae(54212),st=ae(9720),Qe=ae(88786);Pe();var Ue={}.hasOwnProperty;function St(){}St.prototype=Ve;var $e=new St;Ze.exports=$e,$e.highlight=te,$e.register=Dt,$e.alias=Fe,$e.registered=ee,$e.listLanguages=he,Dt(Te),Dt(ze),Dt(st),Dt(Qe),$e.util.encode=me,$e.Token.stringify=ue;function Dt(De){if(typeof De!="function"||!De.displayName)throw new Error("Expected `function` for `grammar`, got `"+De+"`");$e.languages[De.displayName]===void 0&&De($e)}function Fe(De,We){var nt=$e.languages,qe=De,ot,mt,at,vt;We&&(qe={},qe[De]=We);for(ot in qe)for(mt=qe[ot],mt=typeof mt=="string"?[mt]:mt,at=mt.length,vt=-1;++vt<at;)nt[mt[vt]]=nt[ot]}function te(De,We){var nt=Ve.highlight,qe;if(typeof De!="string")throw new Error("Expected `string` for `value`, got `"+De+"`");if($e.util.type(We)==="Object")qe=We,We=null;else{if(typeof We!="string")throw new Error("Expected `string` for `name`, got `"+We+"`");if(Ue.call($e.languages,We))qe=$e.languages[We];else throw new Error("Unknown language: `"+We+"` is not registered")}return nt.call(this,De,qe,We)}function ee(De){if(typeof De!="string")throw new Error("Expected `string` for `language`, got `"+De+"`");return Ue.call($e.languages,De)}function he(){var De=$e.languages,We=[],nt;for(nt in De)Ue.call(De,nt)&&typeof De[nt]=="object"&&We.push(nt);return We}function ue(De,We,nt){var qe;return typeof De=="string"?{type:"text",value:De}:$e.util.type(De)==="Array"?fe(De,We):(qe={type:De.type,content:$e.Token.stringify(De.content,We,nt),tag:"span",classes:["token",De.type],attributes:{},language:We,parent:nt},De.alias&&(qe.classes=qe.classes.concat(De.alias)),$e.hooks.run("wrap",qe),Ie(qe.tag+"."+qe.classes.join("."),be(qe.attributes),qe.content))}function fe(De,We){for(var nt=[],qe=De.length,ot=-1,mt;++ot<qe;)mt=De[ot],mt!==""&&mt!==null&&mt!==void 0&&nt.push(mt);for(ot=-1,qe=nt.length;++ot<qe;)mt=nt[ot],nt[ot]=$e.Token.stringify(mt,We,nt);return nt}function me(De){return De}function be(De){var We;for(We in De)De[We]=ke(De[We]);return De}function Ae(){var De="Prism"in oe,We=De?oe.Prism:void 0;return nt;function nt(){De?oe.Prism=We:delete oe.Prism,De=void 0,We=void 0}}},11594:function(Ze,Ee,ae){"use strict";var oe=ae(95489);Ze.exports=oe,oe.register(ae(79007)),oe.register(ae(15465)),oe.register(ae(42746)),oe.register(ae(93281)),oe.register(ae(95143)),oe.register(ae(65924)),oe.register(ae(65043)),oe.register(ae(43556)),oe.register(ae(14901)),oe.register(ae(4248)),oe.register(ae(17758)),oe.register(ae(33335)),oe.register(ae(17427)),oe.register(ae(22956)),oe.register(ae(56007)),oe.register(ae(45652)),oe.register(ae(33819)),oe.register(ae(84230)),oe.register(ae(20803)),oe.register(ae(65235)),oe.register(ae(52406)),oe.register(ae(79571)),oe.register(ae(3058)),oe.register(ae(51422)),oe.register(ae(1618)),oe.register(ae(2505)),oe.register(ae(51274)),oe.register(ae(23796)),oe.register(ae(13979)),oe.register(ae(87994)),oe.register(ae(47035)),oe.register(ae(36142)),oe.register(ae(85290)),oe.register(ae(7407)),oe.register(ae(79440)),oe.register(ae(7110)),oe.register(ae(73435)),oe.register(ae(91372)),oe.register(ae(63663)),oe.register(ae(92987)),oe.register(ae(91657)),oe.register(ae(34367)),oe.register(ae(35348)),oe.register(ae(26841)),oe.register(ae(87071)),oe.register(ae(13652)),oe.register(ae(87648)),oe.register(ae(10617)),oe.register(ae(5348)),oe.register(ae(71053)),oe.register(ae(69820)),oe.register(ae(41929)),oe.register(ae(51837)),oe.register(ae(4182)),oe.register(ae(22117)),oe.register(ae(95627)),oe.register(ae(34265)),oe.register(ae(50618)),oe.register(ae(32126)),oe.register(ae(26737)),oe.register(ae(90134)),oe.register(ae(51348)),oe.register(ae(60841)),oe.register(ae(42857)),oe.register(ae(81269)),oe.register(ae(31134)),oe.register(ae(83125)),oe.register(ae(9438)),oe.register(ae(27771)),oe.register(ae(86549)),oe.register(ae(37079)),oe.register(ae(59250)),oe.register(ae(81226)),oe.register(ae(65245)),oe.register(ae(25040)),oe.register(ae(40284)),oe.register(ae(39187)),oe.register(ae(34302)),oe.register(ae(90515)),oe.register(ae(33534)),oe.register(ae(9885)),oe.register(ae(76364)),oe.register(ae(56452)),oe.register(ae(8477)),oe.register(ae(58230)),oe.register(ae(66192)),oe.register(ae(81084)),oe.register(ae(50318)),oe.register(ae(95769)),oe.register(ae(14155)),oe.register(ae(92823)),oe.register(ae(63092)),oe.register(ae(21550)),oe.register(ae(29710)),oe.register(ae(2050)),oe.register(ae(67967)),oe.register(ae(29138)),oe.register(ae(67915)),oe.register(ae(54853)),oe.register(ae(68330)),oe.register(ae(76823)),oe.register(ae(86712)),oe.register(ae(72252)),oe.register(ae(78634)),oe.register(ae(43583)),oe.register(ae(23328)),oe.register(ae(74494)),oe.register(ae(46745)),oe.register(ae(22152)),oe.register(ae(83698)),oe.register(ae(26619)),oe.register(ae(53990)),oe.register(ae(7093)),oe.register(ae(4005)),oe.register(ae(53510)),oe.register(ae(24799)),oe.register(ae(97443)),oe.register(ae(80746)),oe.register(ae(17015)),oe.register(ae(89246)),oe.register(ae(487)),oe.register(ae(79539)),oe.register(ae(15628)),oe.register(ae(14320)),oe.register(ae(73222)),oe.register(ae(92486)),oe.register(ae(24103)),oe.register(ae(40604)),oe.register(ae(23109)),oe.register(ae(32082)),oe.register(ae(77674)),oe.register(ae(37524)),oe.register(ae(6658)),oe.register(ae(24824)),oe.register(ae(22776)),oe.register(ae(89700)),oe.register(ae(99296)),oe.register(ae(39940)),oe.register(ae(34973)),oe.register(ae(98135)),oe.register(ae(36907)),oe.register(ae(3567)),oe.register(ae(23763)),oe.register(ae(33978)),oe.register(ae(40472)),oe.register(ae(44695)),oe.register(ae(53885)),oe.register(ae(51478)),oe.register(ae(16928)),oe.register(ae(13586)),oe.register(ae(37164)),oe.register(ae(25153)),oe.register(ae(33245)),oe.register(ae(32218)),oe.register(ae(65626)),oe.register(ae(60090)),oe.register(ae(40722)),oe.register(ae(37783)),oe.register(ae(41224)),oe.register(ae(71365)),oe.register(ae(42846)),oe.register(ae(32964)),oe.register(ae(78830)),oe.register(ae(88799)),oe.register(ae(66791)),oe.register(ae(41735)),oe.register(ae(13490)),oe.register(ae(7383)),oe.register(ae(66894)),oe.register(ae(45779)),oe.register(ae(27734)),oe.register(ae(91889)),oe.register(ae(55965)),oe.register(ae(37326)),oe.register(ae(92949)),oe.register(ae(5681)),oe.register(ae(70696)),oe.register(ae(35790)),oe.register(ae(25777)),oe.register(ae(65889)),oe.register(ae(53852)),oe.register(ae(97719)),oe.register(ae(63839)),oe.register(ae(67623)),oe.register(ae(32530)),oe.register(ae(8938)),oe.register(ae(55259)),oe.register(ae(67411)),oe.register(ae(15375)),oe.register(ae(12093)),oe.register(ae(83588)),oe.register(ae(94127)),oe.register(ae(21294)),oe.register(ae(38709)),oe.register(ae(15008)),oe.register(ae(96549)),oe.register(ae(5221)),oe.register(ae(27447)),oe.register(ae(73191)),oe.register(ae(75542)),oe.register(ae(50323)),oe.register(ae(44298)),oe.register(ae(9634)),oe.register(ae(75266)),oe.register(ae(48139)),oe.register(ae(97534)),oe.register(ae(90826)),oe.register(ae(63919)),oe.register(ae(68862)),oe.register(ae(39523)),oe.register(ae(31207)),oe.register(ae(75308)),oe.register(ae(45315)),oe.register(ae(13794)),oe.register(ae(41299)),oe.register(ae(98177)),oe.register(ae(48780)),oe.register(ae(79793)),oe.register(ae(52085)),oe.register(ae(65411)),oe.register(ae(84750)),oe.register(ae(88216)),oe.register(ae(66433)),oe.register(ae(34855)),oe.register(ae(12998)),oe.register(ae(10202)),oe.register(ae(41186)),oe.register(ae(68963)),oe.register(ae(5569)),oe.register(ae(69435)),oe.register(ae(42766)),oe.register(ae(46449)),oe.register(ae(89032)),oe.register(ae(40241)),oe.register(ae(24812)),oe.register(ae(16747)),oe.register(ae(73584)),oe.register(ae(79243)),oe.register(ae(31788)),oe.register(ae(60871)),oe.register(ae(21023)),oe.register(ae(14693)),oe.register(ae(8743)),oe.register(ae(1689)),oe.register(ae(69210)),oe.register(ae(58710)),oe.register(ae(60452)),oe.register(ae(92784)),oe.register(ae(36489)),oe.register(ae(78380)),oe.register(ae(10409)),oe.register(ae(6539)),oe.register(ae(82028)),oe.register(ae(62282)),oe.register(ae(55686)),oe.register(ae(70889)),oe.register(ae(37116)),oe.register(ae(66963)),oe.register(ae(21078)),oe.register(ae(96198)),oe.register(ae(17723)),oe.register(ae(67771)),oe.register(ae(30307)),oe.register(ae(8921)),oe.register(ae(13429)),oe.register(ae(65197)),oe.register(ae(88904)),oe.register(ae(35)),oe.register(ae(86095)),oe.register(ae(76998)),oe.register(ae(14409)),oe.register(ae(33460)),oe.register(ae(28108))},79007:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="abap",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="abnf",Ee.aliases=[];function Ee(ae){(function(oe){var Pe="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";oe.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-])"+Pe+"|<"+Pe+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(ae)}},42746:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="actionscript",Ee.aliases=[];function Ee(ae){ae.languages.actionscript=ae.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),ae.languages.actionscript["class-name"].alias="function",delete ae.languages.actionscript.parameter,delete ae.languages.actionscript["literal-property"],ae.languages.markup&&ae.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:ae.languages.markup}})}},93281:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="ada",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="agda",Ee.aliases=[];function Ee(ae){(function(oe){oe.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/}})(ae)}},65924:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="al",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="antlr4",Ee.aliases=["g4"];function Ee(ae){ae.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:/[;:()=]/},ae.languages.g4=ae.languages.antlr4}},43556:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="apacheconf",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(69435);Ze.exports=Pe,Pe.displayName="apex",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\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,Te=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return Ve.source});function ze(Qe){return RegExp(Qe.replace(/<CLASS-NAME>/g,function(){return Te}),"i")}var st={keyword:Ve,punctuation:/[()\[\]{};,:.<>]/};ke.languages.apex={comment:ke.languages.clike.comment,string:ke.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:ke.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:ze(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:st},{pattern:ze(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:st},{pattern:ze(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:st}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:Ve,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:/[()\[\]{};,.]/}}(Ie)}},4248:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="apl",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="applescript",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="aql",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(87071);Ze.exports=Pe,Pe.displayName="arduino",Pe.aliases=["ino"];function Pe(Ie){Ie.register(oe),Ie.languages.arduino=Ie.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/}),Ie.languages.ino=Ie.languages.arduino}},22956:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="arff",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="asciidoc",Ee.aliases=["adoc"];function Ee(ae){(function(oe){var Pe={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+$).+/}},Ie=oe.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:Pe,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:Pe.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:Pe,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 ke(Ve){Ve=Ve.split(" ");for(var Te={},ze=0,st=Ve.length;ze<st;ze++)Te[Ve[ze]]=Ie[Ve[ze]];return Te}Pe.inside.interpreted.inside.rest=ke("macro inline replacement entity"),Ie["passthrough-block"].inside.rest=ke("macro"),Ie["literal-block"].inside.rest=ke("callout"),Ie.table.inside.rest=ke("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"),Ie["other-block"].inside.rest=ke("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),Ie.title.inside.rest=ke("macro inline replacement entity"),oe.hooks.add("wrap",function(Ve){Ve.type==="entity"&&(Ve.attributes.title=Ve.content.value.replace(/&amp;/,"&"))}),oe.languages.adoc=oe.languages.asciidoc})(ae)}},45652:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="asm6502",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="asmatmel",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(87648);Ze.exports=Pe,Pe.displayName="aspnet",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.aspnet=Ie.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:Ie.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Ie.languages.csharp}}}),Ie.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Ie.languages.insertBefore("inside","punctuation",{directive:Ie.languages.aspnet.directive},Ie.languages.aspnet.tag.inside["attr-value"]),Ie.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Ie.languages.insertBefore("aspnet",Ie.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Ie.languages.csharp||{}}})}},20803:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="autohotkey",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="autoit",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="avisynth",Ee.aliases=["avs"];function Ee(ae){(function(oe){function Pe(Qe,Ue){return Qe.replace(/<<(\d+)>>/g,function(St,$e){return Ue[+$e]})}function Ie(Qe,Ue,St){return RegExp(Pe(Qe,Ue),St||"")}var ke=/bool|clip|float|int|string|val/.source,Ve=[/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("|"),Te=[/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("|"),ze=[/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("|"),st=[Ve,Te,ze].join("|");oe.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Ie(/\b(?:<<0>>)\s+("?)\w+\1/.source,[ke],"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:Ie(/\b(?:<<0>>)\b/.source,[st],"i"),alias:"function"},"type-cast":{pattern:Ie(/\b(?:<<0>>)(?=\s*\()/.source,[ke],"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:/[{}\[\]();,.]/},oe.languages.avs=oe.languages.avisynth})(ae)}},79571:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="avroIdl",Ee.aliases=[];function Ee(ae){ae.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:/[()\[\]{}<>.:,;-]/},ae.languages.avdl=ae.languages["avro-idl"]}},3058:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="bash",Ee.aliases=["shell"];function Ee(ae){(function(oe){var Pe="\\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",Ie={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},ke={bash:Ie,environment:{pattern:RegExp("\\$"+Pe),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("(\\{)"+Pe),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})/};oe.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;|&]|[<>]\\()"+Pe),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:ke},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Ie}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:ke},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:ke.entity}}],environment:{pattern:RegExp("\\$?"+Pe),alias:"constant"},variable:ke.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}},Ie.inside=oe.languages.bash;for(var Ve=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Te=ke.variable[1].inside,ze=0;ze<Ve.length;ze++)Te[Ve[ze]]=oe.languages.bash[Ve[ze]];oe.languages.shell=oe.languages.bash})(ae)}},51422:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="basic",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="batch",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/%%?[~:\w]+%?|!\S+!/,Ie={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},ke=/"(?:[\\"]"|[^"])*"(?!")/,Ve=/(?:\b|-)\d+\b/;oe.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:ke,parameter:Ie,variable:Pe,number:Ve,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:ke,parameter:Ie,variable:Pe,number:Ve,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:ke,parameter:Ie,variable:[Pe,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:Ve,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:ke,parameter:Ie,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Pe,number:Ve,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ae)}},2505:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="bbcode",Ee.aliases=["shortcode"];function Ee(ae){ae.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=\]]+/}}},ae.languages.shortcode=ae.languages.bbcode}},51274:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="bicep",Ee.aliases=[];function Ee(ae){ae.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:/[{}[\];(),.:]/},ae.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=ae.languages.bicep}},23796:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="birb",Ee.aliases=[];function Ee(ae){ae.languages.birb=ae.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/}),ae.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(Ze,Ee,ae){"use strict";var oe=ae(79440);Ze.exports=Pe,Pe.displayName="bison",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.bison=Ie.languages.extend("c",{}),Ie.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:Ie.languages.c}},comment:Ie.languages.c.comment,string:Ie.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="bnf",Ee.aliases=["rbnf"];function Ee(ae){ae.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}/},ae.languages.rbnf=ae.languages.bnf}},47035:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="brainfuck",Ee.aliases=[];function Ee(ae){ae.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="brightscript",Ee.aliases=[];function Ee(ae){ae.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},ae.languages.brightscript["directive-statement"].inside.expression.inside=ae.languages.brightscript}},85290:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="bro",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="bsl",Ee.aliases=[];function Ee(ae){ae.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"}]},ae.languages.oscript=ae.languages.bsl}},79440:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="c",Ee.aliases=[];function Ee(ae){ae.languages.c=ae.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|[?:~]|[-+*/%&|^!=<>]=?/}),ae.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),ae.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},ae.languages.c.string],char:ae.languages.c.char,comment:ae.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:ae.languages.c}}}}),ae.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 ae.languages.c.boolean}},7110:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="cfscript",Ee.aliases=[];function Ee(ae){ae.languages.cfscript=ae.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"}}),ae.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 ae.languages.cfscript["class-name"],ae.languages.cfc=ae.languages.cfscript}},73435:function(Ze,Ee,ae){"use strict";var oe=ae(87071);Ze.exports=Pe,Pe.displayName="chaiscript",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.chaiscript=Ie.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:[Ie.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),Ie.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),Ie.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:Ie.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="cil",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="clike",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="clojure",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="cmake",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="cobol",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="coffeescript",Ee.aliases=["coffee"];function Ee(ae){(function(oe){var Pe=/#(?!\{).+/,Ie={pattern:/#\{[^}]+\}/,alias:"variable"};oe.languages.coffeescript=oe.languages.extend("javascript",{comment:Pe,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Ie}}],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"}}),oe.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Pe,interpolation:Ie}}}),oe.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:oe.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Ie}}]}),oe.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete oe.languages.coffeescript["template-string"],oe.languages.coffee=oe.languages.coffeescript})(ae)}},35348:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="concurnas",Ee.aliases=["conc"];function Ee(ae){ae.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"}},ae.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ae.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ae.languages.concurnas},string:/[\s\S]+/}}}),ae.languages.conc=ae.languages.concurnas}},26841:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="coq",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,Ie=0;Ie<2;Ie++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,"[]"),oe.languages.coq={comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Pe})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Pe),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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(ae)}},87071:function(Ze,Ee,ae){"use strict";var oe=ae(79440);Ze.exports=Pe,Pe.displayName="cpp",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\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/,Te=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return Ve.source});ke.languages.cpp=ke.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return Ve.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:Ve,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/}),ke.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 Te})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),ke.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:ke.languages.cpp}}}}),ke.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),ke.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:ke.languages.extend("cpp",{})}}),ke.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},ke.languages.cpp["base-clause"])}(Ie)}},13652:function(Ze,Ee,ae){"use strict";var oe=ae(75308);Ze.exports=Pe,Pe.displayName="crystal",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.crystal=ke.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:[/->/,ke.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),ke.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:ke.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:ke.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}})}(Ie)}},87648:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="csharp",Ee.aliases=["dotnet","cs"];function Ee(ae){(function(oe){function Pe(ln,Nt){return ln.replace(/<<(\d+)>>/g,function(gt,ct){return"(?:"+Nt[+ct]+")"})}function Ie(ln,Nt,gt){return RegExp(Pe(ln,Nt),gt||"")}function ke(ln,Nt){for(var gt=0;gt<Nt;gt++)ln=ln.replace(/<<self>>/g,function(){return"(?:"+ln+")"});return ln.replace(/<<self>>/g,"[^\\s\\S]")}var Ve={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 Te(ln){return"\\b(?:"+ln.trim().replace(/ /g,"|")+")\\b"}var ze=Te(Ve.typeDeclaration),st=RegExp(Te(Ve.type+" "+Ve.typeDeclaration+" "+Ve.contextual+" "+Ve.other)),Qe=Te(Ve.typeDeclaration+" "+Ve.contextual+" "+Ve.other),Ue=Te(Ve.type+" "+Ve.typeDeclaration+" "+Ve.other),St=ke(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),$e=ke(/\((?:[^()]|<<self>>)*\)/.source,2),Dt=/@?\b[A-Za-z_]\w*\b/.source,Fe=Pe(/<<0>>(?:\s*<<1>>)?/.source,[Dt,St]),te=Pe(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Qe,Fe]),ee=/\[\s*(?:,\s*)*\]/.source,he=Pe(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ee]),ue=Pe(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[St,$e,ee]),fe=Pe(/\(<<0>>+(?:,<<0>>+)+\)/.source,[ue]),me=Pe(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[fe,te,ee]),be={keyword:st,punctuation:/[<>()?,.:[\]]/},Ae=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,De=/"(?:\\.|[^\\"\r\n])*"/.source,We=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;oe.languages.csharp=oe.languages.extend("clike",{string:[{pattern:Ie(/(^|[^$\\])<<0>>/.source,[We]),lookbehind:!0,greedy:!0},{pattern:Ie(/(^|[^@$\\])<<0>>/.source,[De]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ie(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:be},{pattern:Ie(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Dt,me]),lookbehind:!0,inside:be},{pattern:Ie(/(\busing\s+)<<0>>(?=\s*=)/.source,[Dt]),lookbehind:!0},{pattern:Ie(/(\b<<0>>\s+)<<1>>/.source,[ze,Fe]),lookbehind:!0,inside:be},{pattern:Ie(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:be},{pattern:Ie(/(\bwhere\s+)<<0>>/.source,[Dt]),lookbehind:!0},{pattern:Ie(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:be},{pattern:Ie(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[me,Ue,Dt]),inside:be}],keyword:st,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:/\?\.?|::|[{}[\];(),.:]/}),oe.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),oe.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Ie(/([(,]\s*)<<0>>(?=\s*:)/.source,[Dt]),lookbehind:!0,alias:"punctuation"}}),oe.languages.insertBefore("csharp","class-name",{namespace:{pattern:Ie(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Dt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Ie(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[$e]),lookbehind:!0,alias:"class-name",inside:be},"return-type":{pattern:Ie(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[me,te]),inside:be,alias:"class-name"},"constructor-invocation":{pattern:Ie(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[me]),lookbehind:!0,inside:be,alias:"class-name"},"generic-method":{pattern:Ie(/<<0>>\s*<<1>>(?=\s*\()/.source,[Dt,St]),inside:{function:Ie(/^<<0>>/.source,[Dt]),generic:{pattern:RegExp(St),alias:"class-name",inside:be}}},"type-list":{pattern:Ie(/\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,[ze,Fe,Dt,me,st.source,$e,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Ie(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Fe,$e]),lookbehind:!0,greedy:!0,inside:oe.languages.csharp},keyword:st,"class-name":{pattern:RegExp(me),greedy:!0,inside:be},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 nt=De+"|"+Ae,qe=Pe(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[nt]),ot=ke(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[qe]),2),mt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,at=Pe(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,ot]);oe.languages.insertBefore("csharp","class-name",{attribute:{pattern:Ie(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[mt,at]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Ie(/^<<0>>(?=\s*:)/.source,[mt]),alias:"keyword"},"attribute-arguments":{pattern:Ie(/\(<<0>>*\)/.source,[ot]),inside:oe.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var vt=/:[^}\r\n]+/.source,wt=ke(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[qe]),2),At=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[wt,vt]),Ht=ke(Pe(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[nt]),2),Qt=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Ht,vt]);function Zt(ln,Nt){return{interpolation:{pattern:Ie(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ln]),lookbehind:!0,inside:{"format-string":{pattern:Ie(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Nt,vt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:oe.languages.csharp}}},string:/[\s\S]+/}}oe.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Ie(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[At]),lookbehind:!0,greedy:!0,inside:Zt(At,wt)},{pattern:Ie(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Qt]),lookbehind:!0,greedy:!0,inside:Zt(Qt,Ht)}],char:{pattern:RegExp(Ae),greedy:!0}}),oe.languages.dotnet=oe.languages.cs=oe.languages.csharp})(ae)}},10617:function(Ze,Ee,ae){"use strict";var oe=ae(87648);Ze.exports=Pe,Pe.displayName="cshtml",Pe.aliases=["razor"];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Te=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function ze(he,ue){for(var fe=0;fe<ue;fe++)he=he.replace(/<self>/g,function(){return"(?:"+he+")"});return he.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Te+")").replace(/<comment>/g,"(?:"+Ve+")")}var st=ze(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Qe=ze(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Ue=ze(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),St=ze(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),$e=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Dt=/(?!\d)[^\s>\/=$<%]+/.source+$e+/\s*\/?>/.source,Fe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+$e+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Dt+"|"+ze(/<\1/.source+$e+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Dt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Dt+")";ke.languages.cshtml=ke.languages.extend("markup",{});var te=ke.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Fe),greedy:!0,inside:ke.languages.cshtml}},{csharp:ke.languages.extend("csharp",{})}),ee={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};ke.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Ue,/(?:code|functions)\s*/.source+Ue,/(?:for|foreach|lock|switch|using|while)\s*/.source+st+/\s*/.source+Ue,/do\s*/.source+Ue+/\s*while\s*/.source+st+/(?:\s*;)?/.source,/try\s*/.source+Ue+/\s*catch\s*/.source+st+/\s*/.source+Ue+/\s*finally\s*/.source+Ue,/if\s*/.source+st+/\s*/.source+Ue+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+st+")?"+/\s*/.source+Ue+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:ee}},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:ee}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+st+")(?:"+/[?!]?\.\w+\b/.source+"|"+st+"|"+Qe+"|"+St+st+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ee}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),ke.languages.razor=ke.languages.cshtml}(Ie)}},5348:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="csp",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Ie){return RegExp(/([ \t])/.source+"(?:"+Ie+")"+/(?=[\s;]|$)/.source,"i")}oe.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:Pe(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Pe(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Pe(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Pe(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Pe(/[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:Pe(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Pe(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(ae)}},71053:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="cssExtras",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Ie;oe.languages.css.selector={pattern:oe.languages.css.selector.pattern,lookbehind:!0,inside:Ie={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Pe.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":[Pe,{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:/[(),]/}},oe.languages.css.atrule.inside["selector-function-argument"].inside=Ie,oe.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var ke={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},Ve={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};oe.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:ke,number:Ve,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:ke,number:Ve})})(ae)}},54212:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="css",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;oe.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\\((?:"+Pe.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Pe.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Pe.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Pe,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:/[(){};:,]/},oe.languages.css.atrule.inside.rest=oe.languages.css;var Ie=oe.languages.markup;Ie&&(Ie.tag.addInlined("style","css"),Ie.tag.addAttribute("style","css"))})(ae)}},69820:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="csv",Ee.aliases=[];function Ee(ae){ae.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="cypher",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="d",Ee.aliases=[];function Ee(ae){ae.languages.d=ae.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),ae.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),ae.languages.insertBefore("d","keyword",{property:/\B@\w*/}),ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="dart",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=[/\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/],Ie=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,ke={pattern:RegExp(Ie+/[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:/\./}}}};oe.languages.dart=oe.languages.extend("clike",{"class-name":[ke,{pattern:RegExp(Ie+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:ke.inside}],keyword:Pe,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),oe.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:oe.languages.dart}}},string:/[\s\S]+/}},string:void 0}),oe.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),oe.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":ke,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ae)}},22117:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="dataweave",Ee.aliases=[];function Ee(ae){(function(oe){oe.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/}})(ae)}},95627:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="dax",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="dhall",Ee.aliases=[];function Ee(ae){ae.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/},ae.languages.dhall.string.inside.interpolation.inside.expression.inside=ae.languages.dhall}},50618:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="diff",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Pe={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Pe).forEach(function(Ie){var ke=Pe[Ie],Ve=[];/^\w+$/.test(Ie)||Ve.push(/\w+/.exec(Ie)[0]),Ie==="diff"&&Ve.push("bold"),oe.languages.diff[Ie]={pattern:RegExp("^(?:["+ke+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:Ve,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Ie)[0]}}}}),Object.defineProperty(oe.languages.diff,"PREFIXES",{value:Pe})})(ae)}},32126:function(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="django",Pe.aliases=["jinja2"];function Pe(Ie){Ie.register(oe),function(ke){ke.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 Ve=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Te=ke.languages["markup-templating"];ke.hooks.add("before-tokenize",function(ze){Te.buildPlaceholders(ze,"django",Ve)}),ke.hooks.add("after-tokenize",function(ze){Te.tokenizePlaceholders(ze,"django")}),ke.languages.jinja2=ke.languages.django,ke.hooks.add("before-tokenize",function(ze){Te.buildPlaceholders(ze,"jinja2",Ve)}),ke.hooks.add("after-tokenize",function(ze){Te.tokenizePlaceholders(ze,"jinja2")})}(Ie)}},26737:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="dnsZoneFile",Ee.aliases=[];function Ee(ae){ae.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:/[()]/},ae.languages["dns-zone"]=ae.languages["dns-zone-file"]}},90134:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="docker",Ee.aliases=["dockerfile"];function Ee(ae){(function(oe){var Pe=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Ie=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Pe}),ke=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,Ve=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return ke}),Te={pattern:RegExp(ke),greedy:!0},ze={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function st(Qe,Ue){return Qe=Qe.replace(/<OPT>/g,function(){return Ve}).replace(/<SP>/g,function(){return Ie}),RegExp(Qe,Ue)}oe.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:st(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Te,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:st(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:st(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:st(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:ze,string:Te,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:ze},oe.languages.dockerfile=oe.languages.docker})(ae)}},51348:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="dot",Ee.aliases=["gv"];function Ee(ae){(function(oe){var Pe="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",Ie={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:oe.languages.markup}};function ke(Ve,Te){return RegExp(Ve.replace(/<ID>/g,function(){return Pe}),Te)}oe.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:ke(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Ie},"attr-value":{pattern:ke(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:Ie},"attr-name":{pattern:ke(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Ie},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:ke(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:Ie},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},oe.languages.gv=oe.languages.dot})(ae)}},60841:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="ebnf",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="editorconfig",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="eiffel",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="ejs",Pe.aliases=["eta"];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:ke.languages.javascript}},ke.hooks.add("before-tokenize",function(Ve){var Te=/<%(?!%)[\s\S]+?%>/g;ke.languages["markup-templating"].buildPlaceholders(Ve,"ejs",Te)}),ke.hooks.add("after-tokenize",function(Ve){ke.languages["markup-templating"].tokenizePlaceholders(Ve,"ejs")}),ke.languages.eta=ke.languages.ejs}(Ie)}},83125:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="elixir",Ee.aliases=[];function Ee(ae){ae.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:/<<|>>|[.,%\[\]{}()]/},ae.languages.elixir.string.forEach(function(oe){oe.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:ae.languages.elixir}}}})}},9438:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="elm",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(75308),Pe=ae(51478);Ze.exports=Ie,Ie.displayName="erb",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){Ve.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:Ve.languages.ruby}},Ve.hooks.add("before-tokenize",function(Te){var ze=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;Ve.languages["markup-templating"].buildPlaceholders(Te,"erb",ze)}),Ve.hooks.add("after-tokenize",function(Te){Ve.languages["markup-templating"].tokenizePlaceholders(Te,"erb")})}(ke)}},86549:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="erlang",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(33978),Pe=ae(51478);Ze.exports=Ie,Ie.displayName="etlua",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){Ve.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:Ve.languages.lua}},Ve.hooks.add("before-tokenize",function(Te){var ze=/<%[\s\S]+?%>/g;Ve.languages["markup-templating"].buildPlaceholders(Te,"etlua",ze)}),Ve.hooks.add("after-tokenize",function(Te){Ve.languages["markup-templating"].tokenizePlaceholders(Te,"etlua")})}(ke)}},59250:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="excelFormula",Ee.aliases=[];function Ee(ae){ae.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:/[[\]();{}|]/},ae.languages.xlsx=ae.languages.xls=ae.languages["excel-formula"]}},81226:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="factor",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Ie={number:/\\[^\s']|%\w/},ke={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Pe},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe}],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:Ie.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:Ie},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Ie}],"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:Ie}},Ve=function(Qe){return(Qe+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Te=function(Qe){return new RegExp("(^|\\s)(?:"+Qe.map(Ve).join("|")+")(?=\\s|$)")},ze={"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(ze).forEach(function(Qe){ke[Qe].pattern=Te(ze[Qe])});var st=["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"];ke.combinators.pattern=Te(st),oe.languages.factor=ke})(ae)}},65245:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="$false",Ee.aliases=[];function Ee(ae){(function(oe){oe.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"}}})(ae)}},25040:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="firestoreSecurityRules",Ee.aliases=[];function Ee(ae){ae.languages["firestore-security-rules"]=ae.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete ae.languages["firestore-security-rules"]["class-name"],ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="flow",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.flow=oe.languages.extend("javascript",{}),oe.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),oe.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 oe.languages.flow.parameter,oe.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(oe.languages.flow.keyword)||(oe.languages.flow.keyword=[oe.languages.flow.keyword]),oe.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})})(ae)}},39187:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="fortran",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="fsharp",Ee.aliases=[];function Ee(ae){ae.languages.fsharp=ae.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),ae.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"}}}}),ae.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),ae.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:ae.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(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="ftl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){for(var Ve=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Te=0;Te<2;Te++)Ve=Ve.replace(/<expr>/g,function(){return Ve});Ve=Ve.replace(/<expr>/g,/[^\s\S]/.source);var ze={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return Ve})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return Ve})),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:/[,;.:()[\]{}]/};ze.string[1].inside.interpolation.inside.rest=ze,ke.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:ze}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:ze}}}},ke.hooks.add("before-tokenize",function(st){var Qe=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return Ve}),"gi");ke.languages["markup-templating"].buildPlaceholders(st,"ftl",Qe)}),ke.hooks.add("after-tokenize",function(st){ke.languages["markup-templating"].tokenizePlaceholders(st,"ftl")})}(Ie)}},33534:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="gap",Ee.aliases=[];function Ee(ae){ae.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:/[()[\]{},;.:]/},ae.languages.gap.shell.inside.gap.inside=ae.languages.gap}},9885:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="gcode",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="gdscript",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="gedcom",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="gherkin",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;oe.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("("+Pe+")(?:"+Pe+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Pe),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"}}})(ae)}},58230:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="git",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(79440);Ze.exports=Pe,Pe.displayName="glsl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.glsl=Ie.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="gml",Ee.aliases=[];function Ee(ae){ae.languages.gamemakerlanguage=ae.languages.gml=ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="gn",Ee.aliases=["gni"];function Ee(ae){ae.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:/[(){}[\],.]/},ae.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=ae.languages.gn,ae.languages.gni=ae.languages.gn}},95769:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="goModule",Ee.aliases=[];function Ee(ae){ae.languages["go-mod"]=ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="go",Ee.aliases=[];function Ee(ae){ae.languages.go=ae.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/}),ae.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete ae.languages.go["class-name"]}},92823:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="graphql",Ee.aliases=[];function Ee(ae){ae.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:ae.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+/},ae.hooks.add("after-tokenize",function(Pe){if(Pe.language!=="graphql")return;var Ie=Pe.tokens.filter(function(ee){return typeof ee!="string"&&ee.type!=="comment"&&ee.type!=="scalar"}),ke=0;function Ve(ee){return Ie[ke+ee]}function Te(ee,he){he=he||0;for(var ue=0;ue<ee.length;ue++){var fe=Ve(ue+he);if(!fe||fe.type!==ee[ue])return!1}return!0}function ze(ee,he){for(var ue=1,fe=ke;fe<Ie.length;fe++){var me=Ie[fe],be=me.content;if(me.type==="punctuation"&&typeof be=="string"){if(ee.test(be))ue++;else if(he.test(be)&&(ue--,ue===0))return fe}}return-1}function st(ee,he){var ue=ee.alias;ue?Array.isArray(ue)||(ee.alias=ue=[ue]):ee.alias=ue=[],ue.push(he)}for(;ke<Ie.length;){var Qe=Ie[ke++];if(Qe.type==="keyword"&&Qe.content==="mutation"){var Ue=[];if(Te(["definition-mutation","punctuation"])&&Ve(1).content==="("){ke+=2;var St=ze(/^\($/,/^\)$/);if(St===-1)continue;for(;ke<St;ke++){var $e=Ve(0);$e.type==="variable"&&(st($e,"variable-input"),Ue.push($e.content))}ke=St+1}if(Te(["punctuation","property-query"])&&Ve(0).content==="{"&&(ke++,st(Ve(0),"property-mutation"),Ue.length>0)){var Dt=ze(/^\{$/,/^\}$/);if(Dt===-1)continue;for(var Fe=ke;Fe<Dt;Fe++){var te=Ie[Fe];te.type==="variable"&&Ue.indexOf(te.content)>=0&&st(te,"variable-input")}}}}})}},63092:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="groovy",Ee.aliases=[];function Ee(ae){ae.languages.groovy=ae.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:/\.+|[{}[\];(),:$]/}),ae.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),ae.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),ae.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),ae.hooks.add("wrap",function(oe){if(oe.language==="groovy"&&oe.type==="string"){var Pe=oe.content.value[0];if(Pe!="'"){var Ie=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Pe==="$"&&(Ie=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),oe.content.value=oe.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),oe.content=ae.highlight(oe.content.value,{expression:{pattern:Ie,lookbehind:!0,inside:ae.languages.groovy}}),oe.classes.push(Pe==="/"?"regex":"gstring")}}})}},21550:function(Ze,Ee,ae){"use strict";var oe=ae(75308);Ze.exports=Pe,Pe.displayName="haml",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.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:ke.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:ke.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:ke.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:ke.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:ke.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:ke.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:ke.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var Ve="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Te=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],ze={},st=0,Qe=Te.length;st<Qe;st++){var Ue=Te[st];Ue=typeof Ue=="string"?{filter:Ue,language:Ue}:Ue,ke.languages[Ue.language]&&(ze["filter-"+Ue.filter]={pattern:RegExp(Ve.replace("{{filter_name}}",function(){return Ue.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Ue.language,"language-"+Ue.language],inside:ke.languages[Ue.language]}}})}ke.languages.insertBefore("haml","filter",ze)}(Ie)}},29710:function(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="handlebars",Pe.aliases=["hbs"];function Pe(Ie){Ie.register(oe),function(ke){ke.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]+/},ke.hooks.add("before-tokenize",function(Ve){var Te=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;ke.languages["markup-templating"].buildPlaceholders(Ve,"handlebars",Te)}),ke.hooks.add("after-tokenize",function(Ve){ke.languages["markup-templating"].tokenizePlaceholders(Ve,"handlebars")}),ke.languages.hbs=ke.languages.handlebars}(Ie)}},2050:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="haskell",Ee.aliases=["hs"];function Ee(ae){ae.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:/[{}[\];(),.:]/},ae.languages.hs=ae.languages.haskell}},67967:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="haxe",Ee.aliases=[];function Ee(ae){ae.languages.haxe=ae.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}|[-+*/%!=&|^])=?|[?:~]/}),ae.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:ae.languages.haxe}}},string:/[\s\S]+/}}}),ae.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:ae.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="hcl",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(79440);Ze.exports=Pe,Pe.displayName="hlsl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.hlsl=Ie.languages.extend("c",{"class-name":[Ie.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="hoon",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="hpkp",Ee.aliases=[];function Ee(ae){ae.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="hsts",Ee.aliases=[];function Ee(ae){ae.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="http",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Ue){return RegExp("(^(?:"+Ue+"):[ ]*(?![ ]))[^]+","i")}oe.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:oe.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:Pe(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:oe.languages.csp},{pattern:Pe(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:oe.languages.hpkp},{pattern:Pe(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:oe.languages.hsts},{pattern:Pe(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Ie=oe.languages,ke={"application/javascript":Ie.javascript,"application/json":Ie.json||Ie.javascript,"application/xml":Ie.xml,"text/xml":Ie.xml,"text/html":Ie.html,"text/css":Ie.css,"text/plain":Ie.plain},Ve={"application/json":!0,"application/xml":!0};function Te(Ue){var St=Ue.replace(/^[a-z]+\//,""),$e="\\w+/(?:[\\w.-]+\\+)+"+St+"(?![+\\w.-])";return"(?:"+Ue+"|"+$e+")"}var ze;for(var st in ke)if(ke[st]){ze=ze||{};var Qe=Ve[st]?Te(st):st;ze[st.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:ke[st]}}ze&&oe.languages.insertBefore("http","header",ze)})(ae)}},72252:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="ichigojam",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="icon",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="icuMessageFormat",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(st,Qe){return Qe<=0?/[]/.source:st.replace(/<SELF>/g,function(){return Pe(st,Qe-1)})}var Ie=/'[{}:=,](?:[^']|'')*'(?!')/,ke={pattern:/''/,greedy:!0,alias:"operator"},Ve={pattern:Ie,greedy:!0,inside:{escape:ke}},Te=Pe(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return Ie.source}),8),ze={pattern:RegExp(Te),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};oe.languages["icu-message-format"]={argument:{pattern:RegExp(Te),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":ze,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":ze,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+Pe(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:ke,string:Ve},ze.inside.message.inside=oe.languages["icu-message-format"],oe.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=oe.languages["icu-message-format"]})(ae)}},23328:function(Ze,Ee,ae){"use strict";var oe=ae(2050);Ze.exports=Pe,Pe.displayName="idris",Pe.aliases=["idr"];function Pe(Ie){Ie.register(oe),Ie.languages.idris=Ie.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}),Ie.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),Ie.languages.idr=Ie.languages.idris}},74494:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="iecst",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="ignore",Ee.aliases=["gitignore","hgignore","npmignore"];function Ee(ae){(function(oe){oe.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},oe.languages.gitignore=oe.languages.ignore,oe.languages.hgignore=oe.languages.ignore,oe.languages.npmignore=oe.languages.ignore})(ae)}},22152:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="inform7",Ee.aliases=[];function Ee(ae){ae.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:/[.,:;(){}]/},ae.languages.inform7.string.inside.substitution.inside.rest=ae.languages.inform7,ae.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="ini",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="io",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="j",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="java",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\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/,Ie=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,ke={pattern:RegExp(Ie+/[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:/\./}};oe.languages.java=oe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[ke,{pattern:RegExp(Ie+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:ke.inside}],keyword:Pe,function:[oe.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}}),oe.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),oe.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":ke,keyword:Pe,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 Pe.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(ae)}},4005:function(Ze,Ee,ae){"use strict";var oe=ae(7093),Pe=ae(53510);Ze.exports=Ie,Ie.displayName="javadoc",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){var Te=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,ze=/#\s*\w+(?:\s*\([^()]*\))?/.source,st=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return ze});Ve.languages.javadoc=Ve.languages.extend("javadoclike",{}),Ve.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+st+")"),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:Ve.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:Te,lookbehind:!0,inside:Ve.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Te,lookbehind:!0,inside:{tag:Ve.languages.markup.tag,entity:Ve.languages.markup.entity,code:{pattern:/.+/,inside:Ve.languages.java,alias:"language-java"}}}}}],tag:Ve.languages.markup.tag,entity:Ve.languages.markup.entity}),Ve.languages.javadoclike.addSupport("java",Ve.languages.javadoc)}(ke)}},53510:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="javadoclike",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.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 Ie(Ve,Te){var ze="doc-comment",st=oe.languages[Ve];if(st){var Qe=st[ze];if(!Qe){var Ue={};Ue[ze]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},st=oe.languages.insertBefore(Ve,"comment",Ue),Qe=st[ze]}if(Qe instanceof RegExp&&(Qe=st[ze]={pattern:Qe}),Array.isArray(Qe))for(var St=0,$e=Qe.length;St<$e;St++)Qe[St]instanceof RegExp&&(Qe[St]={pattern:Qe[St]}),Te(Qe[St]);else Te(Qe)}}function ke(Ve,Te){typeof Ve=="string"&&(Ve=[Ve]),Ve.forEach(function(ze){Ie(ze,function(st){st.inside||(st.inside={}),st.inside.rest=Te})})}Object.defineProperty(Pe,"addSupport",{value:ke}),Pe.addSupport(["java","javascript","php"],Pe)})(ae)}},88786:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="javascript",Ee.aliases=["js"];function Ee(ae){ae.languages.javascript=ae.languages.extend("clike",{"class-name":[ae.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}|\?\?=?|\?\.?|[~:]/}),ae.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ae.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:ae.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:ae.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ae.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ae.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:ae.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ae.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:ae.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"}}),ae.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ae.languages.markup&&(ae.languages.markup.tag.addInlined("script","javascript"),ae.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")),ae.languages.js=ae.languages.javascript}},24799:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="javastacktrace",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="jexl",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="jolie",Ee.aliases=[];function Ee(ae){ae.languages.jolie=ae.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/}),ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="jq",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\\\((?:[^()]|\([^()]*\))*\)/.source,Ie=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Pe})),ke={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Pe),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},Ve=oe.languages.jq={comment:/#.*/,property:{pattern:RegExp(Ie.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:ke},string:{pattern:Ie,lookbehind:!0,greedy:!0,inside:ke},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"}};ke.interpolation.inside.content.inside=Ve})(ae)}},89246:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="jsExtras",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+oe.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),oe.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+oe.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),oe.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 Pe(st,Qe){return RegExp(st.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Qe)}oe.languages.insertBefore("javascript","keyword",{imports:{pattern:Pe(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:oe.languages.javascript},exports:{pattern:Pe(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:oe.languages.javascript}}),oe.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"}),oe.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),oe.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Pe(/(\.\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 Ie=["function","function-variable","method","method-variable","property-access"],ke=0;ke<Ie.length;ke++){var Ve=Ie[ke],Te=oe.languages.javascript[Ve];oe.util.type(Te)==="RegExp"&&(Te=oe.languages.javascript[Ve]={pattern:Te});var ze=Te.inside||{};Te.inside=ze,ze["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ae)}},487:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="jsTemplates",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.languages.javascript["template-string"],Ie=Pe.pattern.source,ke=Pe.inside.interpolation,Ve=ke.inside["interpolation-punctuation"],Te=ke.pattern.source;function ze(Fe,te){if(oe.languages[Fe])return{pattern:RegExp("((?:"+te+")\\s*)"+Ie),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Fe}}}}oe.languages.javascript["template-string"]=[ze("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),ze("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),ze("svg",/\bsvg/.source),ze("markdown",/\b(?:markdown|md)/.source),ze("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),ze("sql",/\bsql/.source),Pe].filter(Boolean);function st(Fe,te){return"___"+te.toUpperCase()+"_"+Fe+"___"}function Qe(Fe,te,ee){var he={code:Fe,grammar:te,language:ee};return oe.hooks.run("before-tokenize",he),he.tokens=oe.tokenize(he.code,he.grammar),oe.hooks.run("after-tokenize",he),he.tokens}function Ue(Fe){var te={};te["interpolation-punctuation"]=Ve;var ee=oe.tokenize(Fe,te);if(ee.length===3){var he=[1,1];he.push.apply(he,Qe(ee[1],oe.languages.javascript,"javascript")),ee.splice.apply(ee,he)}return new oe.Token("interpolation",ee,ke.alias,Fe)}function St(Fe,te,ee){var he=oe.tokenize(Fe,{interpolation:{pattern:RegExp(Te),lookbehind:!0}}),ue=0,fe={},me=he.map(function(We){if(typeof We=="string")return We;for(var nt=We.content,qe;Fe.indexOf(qe=st(ue++,ee))!==-1;);return fe[qe]=nt,qe}).join(""),be=Qe(me,te,ee),Ae=Object.keys(fe);ue=0;function De(We){for(var nt=0;nt<We.length;nt++){if(ue>=Ae.length)return;var qe=We[nt];if(typeof qe=="string"||typeof qe.content=="string"){var ot=Ae[ue],mt=typeof qe=="string"?qe:qe.content,at=mt.indexOf(ot);if(at!==-1){++ue;var vt=mt.substring(0,at),wt=Ue(fe[ot]),At=mt.substring(at+ot.length),Ht=[];if(vt&&Ht.push(vt),Ht.push(wt),At){var Qt=[At];De(Qt),Ht.push.apply(Ht,Qt)}typeof qe=="string"?(We.splice.apply(We,[nt,1].concat(Ht)),nt+=Ht.length-1):qe.content=Ht}}else{var Zt=qe.content;Array.isArray(Zt)?De(Zt):De([Zt])}}}return De(be),new oe.Token(ee,be,"language-"+ee,Fe)}var $e={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};oe.hooks.add("after-tokenize",function(Fe){if(!(Fe.language in $e))return;function te(ee){for(var he=0,ue=ee.length;he<ue;he++){var fe=ee[he];if(typeof fe!="string"){var me=fe.content;if(!Array.isArray(me)){typeof me!="string"&&te([me]);continue}if(fe.type==="template-string"){var be=me[1];if(me.length===3&&typeof be!="string"&&be.type==="embedded-code"){var Ae=Dt(be),De=be.alias,We=Array.isArray(De)?De[0]:De,nt=oe.languages[We];if(!nt)continue;me[1]=St(Ae,nt,We)}}else te(me)}}}te(Fe.tokens)});function Dt(Fe){return typeof Fe=="string"?Fe:Array.isArray(Fe)?Fe.map(Dt).join(""):Dt(Fe.content)}})(ae)}},79539:function(Ze,Ee,ae){"use strict";var oe=ae(53510),Pe=ae(92784);Ze.exports=Ie,Ie.displayName="jsdoc",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){var Te=Ve.languages.javascript,ze=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,st="(@(?:arg|argument|param|property)\\s+(?:"+ze+"\\s+)?)";Ve.languages.jsdoc=Ve.languages.extend("javadoclike",{parameter:{pattern:RegExp(st+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),Ve.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(st+/\[(?:(?!\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:Te,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 ze})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+ze),lookbehind:!0,inside:{string:Te.string,number:Te.number,boolean:Te.boolean,keyword:Ve.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:Te,alias:"language-javascript"}}}}),Ve.languages.javadoclike.addSupport("javascript",Ve.languages.jsdoc)}(ke)}},15628:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="json",Ee.aliases=["webmanifest"];function Ee(ae){ae.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"}},ae.languages.webmanifest=ae.languages.json}},14320:function(Ze,Ee,ae){"use strict";var oe=ae(15628);Ze.exports=Pe,Pe.displayName="json5",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;ke.languages.json5=ke.languages.extend("json",{property:[{pattern:RegExp(Ve.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:Ve,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Ie)}},73222:function(Ze,Ee,ae){"use strict";var oe=ae(15628);Ze.exports=Pe,Pe.displayName="jsonp",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.jsonp=Ie.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Ie.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="jsstacktrace",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="jsx",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.util.clone(oe.languages.javascript),Ie=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,ke=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Ve=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Te(Qe,Ue){return Qe=Qe.replace(/<S>/g,function(){return Ie}).replace(/<BRACES>/g,function(){return ke}).replace(/<SPREAD>/g,function(){return Ve}),RegExp(Qe,Ue)}Ve=Te(Ve).source,oe.languages.jsx=oe.languages.extend("markup",Pe),oe.languages.jsx.tag.pattern=Te(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),oe.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,oe.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,oe.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,oe.languages.jsx.tag.inside.comment=Pe.comment,oe.languages.insertBefore("inside","attr-name",{spread:{pattern:Te(/<SPREAD>/.source),inside:oe.languages.jsx}},oe.languages.jsx.tag),oe.languages.insertBefore("inside","special-attr",{script:{pattern:Te(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:oe.languages.jsx}}},oe.languages.jsx.tag);var ze=function(Qe){return Qe?typeof Qe=="string"?Qe:typeof Qe.content=="string"?Qe.content:Qe.content.map(ze).join(""):""},st=function(Qe){for(var Ue=[],St=0;St<Qe.length;St++){var $e=Qe[St],Dt=!1;if(typeof $e!="string"&&($e.type==="tag"&&$e.content[0]&&$e.content[0].type==="tag"?$e.content[0].content[0].content==="</"?Ue.length>0&&Ue[Ue.length-1].tagName===ze($e.content[0].content[1])&&Ue.pop():$e.content[$e.content.length-1].content==="/>"||Ue.push({tagName:ze($e.content[0].content[1]),openedBraces:0}):Ue.length>0&&$e.type==="punctuation"&&$e.content==="{"?Ue[Ue.length-1].openedBraces++:Ue.length>0&&Ue[Ue.length-1].openedBraces>0&&$e.type==="punctuation"&&$e.content==="}"?Ue[Ue.length-1].openedBraces--:Dt=!0),(Dt||typeof $e=="string")&&Ue.length>0&&Ue[Ue.length-1].openedBraces===0){var Fe=ze($e);St<Qe.length-1&&(typeof Qe[St+1]=="string"||Qe[St+1].type==="plain-text")&&(Fe+=ze(Qe[St+1]),Qe.splice(St+1,1)),St>0&&(typeof Qe[St-1]=="string"||Qe[St-1].type==="plain-text")&&(Fe=ze(Qe[St-1])+Fe,Qe.splice(St-1,1),St--),Qe[St]=new oe.Token("plain-text",Fe,null,Fe)}$e.content&&typeof $e.content!="string"&&st($e.content)}};oe.hooks.add("after-tokenize",function(Qe){Qe.language!=="jsx"&&Qe.language!=="tsx"||st(Qe.tokens)})})(ae)}},40604:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="julia",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="keepalived",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="keyman",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="kotlin",Ee.aliases=["kt","kts"];function Ee(ae){(function(oe){oe.languages.kotlin=oe.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 oe.languages.kotlin["class-name"];var Pe={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:oe.languages.kotlin}};oe.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Pe},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Pe},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete oe.languages.kotlin.string,oe.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),oe.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),oe.languages.kt=oe.languages.kotlin,oe.languages.kts=oe.languages.kotlin})(ae)}},37524:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="kumir",Ee.aliases=["kum"];function Ee(ae){(function(oe){var Pe=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Ie(ke,Ve){return RegExp(ke.replace(/<nonId>/g,Pe),Ve)}oe.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Ie(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:Ie(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Ie(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Ie(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Ie(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Ie(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:Ie(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:Ie(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},oe.languages.kum=oe.languages.kumir})(ae)}},6658:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="kusto",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="latex",Ee.aliases=["tex","context"];function Ee(ae){(function(oe){var Pe=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Ie={"equation-command":{pattern:Pe,alias:"regex"}};oe.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:Ie,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Ie,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:Pe,alias:"selector"},punctuation:/[[\]{}&]/},oe.languages.tex=oe.languages.latex,oe.languages.context=oe.languages.latex})(ae)}},22776:function(Ze,Ee,ae){"use strict";var oe=ae(51478),Pe=ae(53852);Ze.exports=Ie,Ie.displayName="latte",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){Ve.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:Ve.languages.php}};var Te=Ve.languages.extend("markup",{});Ve.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:Ve.languages.php}}}}}},Te.tag),Ve.hooks.add("before-tokenize",function(ze){if(ze.language==="latte"){var st=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;Ve.languages["markup-templating"].buildPlaceholders(ze,"latte",st),ze.grammar=Te}}),Ve.hooks.add("after-tokenize",function(ze){Ve.languages["markup-templating"].tokenizePlaceholders(ze,"latte")})}(ke)}},89700:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="less",Ee.aliases=[];function Ee(ae){ae.languages.less=ae.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:/[+\-*\/]/}),ae.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(Ze,Ee,ae){"use strict";var oe=ae(48780);Ze.exports=Pe,Pe.displayName="lilypond",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){for(var Ve=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Te=5,ze=0;ze<Te;ze++)Ve=Ve.replace(/<expr>/g,function(){return Ve});Ve=Ve.replace(/<expr>/g,/[^\s\S]/.source);var st=ke.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return Ve}),"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:ke.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/};st["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=st,ke.languages.ly=st}(Ie)}},39940:function(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="liquid",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.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"}},Ie.hooks.add("before-tokenize",function(ke){var Ve=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Te=!1;Ie.languages["markup-templating"].buildPlaceholders(ke,"liquid",Ve,function(ze){var st=/^\{%-?\s*(\w+)/.exec(ze);if(st){var Qe=st[1];if(Qe==="raw"&&!Te)return Te=!0,!0;if(Qe==="endraw")return Te=!1,!0}return!Te})}),Ie.hooks.add("after-tokenize",function(ke){Ie.languages["markup-templating"].tokenizePlaceholders(ke,"liquid")})}},34973:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="lisp",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Fe){return RegExp(/(\()/.source+"(?:"+Fe+")"+/(?=[\s\)])/.source)}function Ie(Fe){return RegExp(/([\s([])/.source+"(?:"+Fe+")"+/(?=[\s)])/.source)}var ke=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,Ve="&"+ke,Te="(\\()",ze="(?=\\))",st="(?=\\s)",Qe=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Ue={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+ke+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+ke),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+ke),alias:"property"},splice:{pattern:RegExp(",@?"+ke),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Te+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+st),lookbehind:!0},{pattern:RegExp(Te+"(?:append|by|collect|concat|do|finally|for|in|return)"+st),lookbehind:!0}],declare:{pattern:Pe(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Pe(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Ie(/nil|t/.source),lookbehind:!0},number:{pattern:Ie(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Te+"def(?:const|custom|group|var)\\s+"+ke),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(ke)}},defun:{pattern:RegExp(Te+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+ke+/\s+\(/.source+Qe+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+ke),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Te+"lambda\\s+\\(\\s*(?:&?"+ke+"(?:\\s+&?"+ke+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Te+ke),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},St={"lisp-marker":RegExp(Ve),varform:{pattern:RegExp(/\(/.source+ke+/\s+(?=\S)/.source+Qe+/\)/.source),inside:Ue},argument:{pattern:RegExp(/(^|[\s(])/.source+ke),lookbehind:!0,alias:"variable"},rest:Ue},$e="\\S+(?:\\s+\\S+)*",Dt={pattern:RegExp(Te+Qe+ze),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+$e),inside:St},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+$e),inside:St},keys:{pattern:RegExp("&key\\s+"+$e+"(?:\\s+&allow-other-keys)?"),inside:St},argument:{pattern:RegExp(ke),alias:"variable"},punctuation:/[()]/}};Ue.lambda.inside.arguments=Dt,Ue.defun.inside.arguments=oe.util.clone(Dt),Ue.defun.inside.arguments.inside.sublist=Dt,oe.languages.lisp=Ue,oe.languages.elisp=Ue,oe.languages.emacs=Ue,oe.languages["emacs-lisp"]=Ue})(ae)}},98135:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="livescript",Ee.aliases=[];function Ee(ae){ae.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:/[(){}\[\]|.,:;`]/},ae.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=ae.languages.livescript}},36907:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="llvm",Ee.aliases=[];function Ee(ae){(function(oe){oe.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:/[{}[\];(),.!*=<>]/}})(ae)}},3567:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="log",Ee.aliases=[];function Ee(ae){ae.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:ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="lolcode",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="lua",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="magma",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="makefile",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="markdown",Ee.aliases=["md"];function Ee(ae){(function(oe){var Pe=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Ie(St){return St=St.replace(/<inner>/g,function(){return Pe}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+St+")")}var ke=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Ve=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return ke}),Te=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;oe.languages.markdown=oe.languages.extend("markup",{}),oe.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:oe.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Ve+Te+"(?:"+Ve+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Ve+Te+")(?:"+Ve+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(ke),inside:oe.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Ve+")"+Te+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Ve+"$"),inside:{"table-header":{pattern:RegExp(ke),alias:"important",inside:oe.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:Ie(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Ie(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Ie(/(~~?)(?:(?!~)<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:Ie(/!?\[(?:(?!\])<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(St){["url","bold","italic","strike","code-snippet"].forEach(function($e){St!==$e&&(oe.languages.markdown[St].inside.content.inside[$e]=oe.languages.markdown[$e])})}),oe.hooks.add("after-tokenize",function(St){if(St.language!=="markdown"&&St.language!=="md")return;function $e(Dt){if(!(!Dt||typeof Dt=="string"))for(var Fe=0,te=Dt.length;Fe<te;Fe++){var ee=Dt[Fe];if(ee.type!=="code"){$e(ee.content);continue}var he=ee.content[1],ue=ee.content[3];if(he&&ue&&he.type==="code-language"&&ue.type==="code-block"&&typeof he.content=="string"){var fe=he.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");fe=(/[a-z][\w-]*/i.exec(fe)||[""])[0].toLowerCase();var me="language-"+fe;ue.alias?typeof ue.alias=="string"?ue.alias=[ue.alias,me]:ue.alias.push(me):ue.alias=[me]}}}$e(St.tokens)}),oe.hooks.add("wrap",function(St){if(St.type==="code-block"){for(var $e="",Dt=0,Fe=St.classes.length;Dt<Fe;Dt++){var te=St.classes[Dt],ee=/language-(.+)/.exec(te);if(ee){$e=ee[1];break}}var he=oe.languages[$e];if(he)St.content=oe.highlight(Ue(St.content.value),he,$e);else if($e&&$e!=="none"&&oe.plugins.autoloader){var ue="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);St.attributes.id=ue,oe.plugins.autoloader.loadLanguages($e,function(){var fe=document.getElementById(ue);fe&&(fe.innerHTML=oe.highlight(fe.textContent,oe.languages[$e],$e))})}}});var ze=RegExp(oe.languages.markup.tag.pattern.source,"gi"),st={amp:"&",lt:"<",gt:">",quot:'"'},Qe=String.fromCodePoint||String.fromCharCode;function Ue(St){var $e=St.replace(ze,"");return $e=$e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Dt,Fe){if(Fe=Fe.toLowerCase(),Fe[0]==="#"){var te;return Fe[1]==="x"?te=parseInt(Fe.slice(2),16):te=Number(Fe.slice(1)),Qe(te)}else{var ee=st[Fe];return ee||Dt}}),$e}oe.languages.md=oe.languages.markdown})(ae)}},51478:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="markupTemplating",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Ie,ke){return"___"+Ie.toUpperCase()+ke+"___"}Object.defineProperties(oe.languages["markup-templating"]={},{buildPlaceholders:{value:function(Ie,ke,Ve,Te){if(Ie.language===ke){var ze=Ie.tokenStack=[];Ie.code=Ie.code.replace(Ve,function(st){if(typeof Te=="function"&&!Te(st))return st;for(var Qe=ze.length,Ue;Ie.code.indexOf(Ue=Pe(ke,Qe))!==-1;)++Qe;return ze[Qe]=st,Ue}),Ie.grammar=oe.languages.markup}}},tokenizePlaceholders:{value:function(Ie,ke){if(Ie.language!==ke||!Ie.tokenStack)return;Ie.grammar=oe.languages[ke];var Ve=0,Te=Object.keys(Ie.tokenStack);function ze(st){for(var Qe=0;Qe<st.length&&!(Ve>=Te.length);Qe++){var Ue=st[Qe];if(typeof Ue=="string"||Ue.content&&typeof Ue.content=="string"){var St=Te[Ve],$e=Ie.tokenStack[St],Dt=typeof Ue=="string"?Ue:Ue.content,Fe=Pe(ke,St),te=Dt.indexOf(Fe);if(te>-1){++Ve;var ee=Dt.substring(0,te),he=new oe.Token(ke,oe.tokenize($e,Ie.grammar),"language-"+ke,$e),ue=Dt.substring(te+Fe.length),fe=[];ee&&fe.push.apply(fe,ze([ee])),fe.push(he),ue&&fe.push.apply(fe,ze([ue])),typeof Ue=="string"?st.splice.apply(st,[Qe,1].concat(fe)):Ue.content=fe}}else Ue.content&&ze(Ue.content)}return st}ze(Ie.tokens)}}})})(ae)}},70614:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="markup",Ee.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Ee(ae){ae.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]},ae.languages.markup.tag.inside["attr-value"].inside.entity=ae.languages.markup.entity,ae.languages.markup.doctype.inside["internal-subset"].inside=ae.languages.markup,ae.hooks.add("wrap",function(oe){oe.type==="entity"&&(oe.attributes.title=oe.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(ae.languages.markup.tag,"addInlined",{value:function(Pe,Ie){var ke={};ke["language-"+Ie]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ae.languages[Ie]},ke.cdata=/^<!\[CDATA\[|\]\]>$/i;var Ve={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:ke}};Ve["language-"+Ie]={pattern:/[\s\S]+/,inside:ae.languages[Ie]};var Te={};Te[Pe]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Pe}),"i"),lookbehind:!0,greedy:!0,inside:Ve},ae.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(ae.languages.markup.tag,"addAttribute",{value:function(oe,Pe){ae.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+oe+")"+/\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:[Pe,"language-"+Pe],inside:ae.languages[Pe]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ae.languages.html=ae.languages.markup,ae.languages.mathml=ae.languages.markup,ae.languages.svg=ae.languages.markup,ae.languages.xml=ae.languages.extend("markup",{}),ae.languages.ssml=ae.languages.xml,ae.languages.atom=ae.languages.xml,ae.languages.rss=ae.languages.xml}},16928:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="matlab",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="maxscript",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\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;oe.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)+")[ ]*)(?!"+Pe.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Pe.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:Pe,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}})(ae)}},37164:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="mel",Ee.aliases=[];function Ee(ae){ae.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:/<<|>>|[.,:;?\[\](){}]/},ae.languages.mel.code.inside.rest=ae.languages.mel}},25153:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="mermaid",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="mizar",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="mongodb",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=["$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"],Ie=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Pe=Pe.map(function(Ve){return Ve.replace("$","\\$")});var ke="(?:"+Pe.join("|")+")\\b";oe.languages.mongodb=oe.languages.extend("javascript",{}),oe.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(`^(['"])?`+ke+"(?:\\1)?$")}}}),oe.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}},oe.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Ie.join("|")+")\\b"),alias:"keyword"}})})(ae)}},65626:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="monkey",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="moonscript",Ee.aliases=["moon"];function Ee(ae){ae.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:/[.,()[\]{}\\]/},ae.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=ae.languages.moonscript,ae.languages.moon=ae.languages.moonscript}},40722:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="n1ql",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="n4js",Ee.aliases=["n4jsd"];function Ee(ae){ae.languages.n4js=ae.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/}),ae.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),ae.languages.n4jsd=ae.languages.n4js}},41224:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="nand2tetrisHdl",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="naniscript",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\{[^\r\n\[\]{}]*\}/,Ie={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Pe,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};oe.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:Pe,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Ie}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Pe,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:Ie},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},oe.languages.nani=oe.languages.naniscript,oe.hooks.add("after-tokenize",function(Te){var ze=Te.tokens;ze.forEach(function(st){if(typeof st!="string"&&st.type==="generic-text"){var Qe=Ve(st);ke(Qe)||(st.type="bad-line",st.content=Qe)}})});function ke(Te){for(var ze="[]{}",st=[],Qe=0;Qe<Te.length;Qe++){var Ue=Te[Qe],St=ze.indexOf(Ue);if(St!==-1){if(St%2===0)st.push(St+1);else if(st.pop()!==St)return!1}}return st.length===0}function Ve(Te){return typeof Te=="string"?Te:Array.isArray(Te)?Te.map(Ve).join(""):Ve(Te.content)}})(ae)}},42846:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="nasm",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="neon",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="nevod",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="nginx",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;oe.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:Pe}},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:Pe}},punctuation:/[{};]/}})(ae)}},66791:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="nim",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="nix",Ee.aliases=[];function Ee(ae){ae.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:/[{}()[\].,:;]/},ae.languages.nix.string.inside.interpolation.inside=ae.languages.nix}},13490:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="nsis",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(79440);Ze.exports=Pe,Pe.displayName="objectivec",Pe.aliases=["objc"];function Pe(Ie){Ie.register(oe),Ie.languages.objectivec=Ie.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 Ie.languages.objectivec["class-name"],Ie.languages.objc=Ie.languages.objectivec}},66894:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="ocaml",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(79440);Ze.exports=Pe,Pe.displayName="opencl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.opencl=ke.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"}}),ke.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 Ve={"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"}};ke.languages.insertBefore("c","keyword",Ve),ke.languages.cpp&&(Ve["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"},ke.languages.insertBefore("cpp","keyword",Ve))}(Ie)}},27734:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="openqasm",Ee.aliases=["qasm"];function Ee(ae){ae.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:/[(){}\[\];,:.]/},ae.languages.qasm=ae.languages.openqasm}},91889:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="oz",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="parigp",Ee.aliases=[];function Ee(ae){ae.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var oe=["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 oe=oe.map(function(Pe){return Pe.split("").join(" *")}).join("|"),RegExp("\\b(?:"+oe+")\\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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="parser",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.languages.parser=oe.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:/[\[\](){};]/});Pe=oe.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:Pe.keyword,variable:Pe.variable,function:Pe.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Pe.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Pe.punctuation}}}),oe.languages.insertBefore("inside","punctuation",{expression:Pe.expression,keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,escape:Pe.escape,"parser-punctuation":{pattern:Pe.punctuation,alias:"punctuation"}},Pe.tag.inside["attr-value"])})(ae)}},92949:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="pascal",Ee.aliases=["objectpascal"];function Ee(ae){ae.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:/\(\.|\.\)|[()\[\]:;,.]/},ae.languages.pascal.asm.inside=ae.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),ae.languages.objectpascal=ae.languages.pascal}},5681:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="pascaligo",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Ie=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Pe}),ke=oe.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 Ie}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return Ie}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return Ie})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},Ve=["comment","keyword","builtin","operator","punctuation"].reduce(function(Te,ze){return Te[ze]=ke[ze],Te},{});ke["class-name"].forEach(function(Te){Te.inside=Ve})})(ae)}},70696:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="pcaxis",Ee.aliases=["px"];function Ee(ae){ae.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/},ae.languages.px=ae.languages.pcaxis}},35790:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="peoplecode",Ee.aliases=["pcode"];function Ee(ae){ae.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:/[:.;,()[\]]/},ae.languages.pcode=ae.languages.peoplecode}},25777:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="perl",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;oe.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,Pe].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,Pe].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,Pe+/\s*/.source+Pe].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:/[{}[\];(),:]/}})(ae)}},65889:function(Ze,Ee,ae){"use strict";var oe=ae(53852);Ze.exports=Pe,Pe.displayName="phpExtras",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.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(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="php",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Te=[{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*\()/],ze=/\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,st=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Qe=/[{}\[\](),:;]/;ke.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:Ve,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:Te,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:ze,operator:st,punctuation:Qe};var Ue={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:ke.languages.php},St=[{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:Ue}},{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:Ue}}];ke.languages.insertBefore("php","variable",{string:St,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:Ve,string:St,"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:Te,number:ze,operator:st,punctuation:Qe}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),ke.hooks.add("before-tokenize",function($e){if(/<\?/.test($e.code)){var Dt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;ke.languages["markup-templating"].buildPlaceholders($e,"php",Dt)}}),ke.hooks.add("after-tokenize",function($e){ke.languages["markup-templating"].tokenizePlaceholders($e,"php")})}(Ie)}},97719:function(Ze,Ee,ae){"use strict";var oe=ae(53852),Pe=ae(53510);Ze.exports=Ie,Ie.displayName="phpdoc",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){var Te=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;Ve.languages.phpdoc=Ve.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Te+"\\s+)?)\\$\\w+"),lookbehind:!0}}),Ve.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Te),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),Ve.languages.javadoclike.addSupport("php",Ve.languages.phpdoc)}(ke)}},63839:function(Ze,Ee,ae){"use strict";var oe=ae(69435);Ze.exports=Pe,Pe.displayName="plsql",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.plsql=Ie.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Ie.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="powerquery",Ee.aliases=[];function Ee(ae){ae.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:/[,;\[\](){}]/},ae.languages.pq=ae.languages.powerquery,ae.languages.mscript=ae.languages.powerquery}},32530:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="powershell",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.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:/[|{}[\];(),.]/};Pe.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Pe},boolean:Pe.boolean,variable:Pe.variable}})(ae)}},8938:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="processing",Ee.aliases=[];function Ee(ae){ae.languages.processing=ae.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="prolog",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="promql",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Ie=["on","ignoring","group_right","group_left","by","without"],ke=["offset"],Ve=Pe.concat(Ie,ke);oe.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Ie.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(?:"+Ve.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:/[{};()`,.[\]]/}})(ae)}},15375:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="properties",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="protobuf",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;oe.languages.protobuf=oe.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}),oe.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:Pe}},builtin:Pe,"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}})})(ae)}},83588:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="psl",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="pug",Ee.aliases=[];function Ee(ae){(function(oe){oe.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:oe.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:oe.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:oe.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:oe.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:oe.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:oe.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:oe.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:oe.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Pe=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Ie=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],ke={},Ve=0,Te=Ie.length;Ve<Te;Ve++){var ze=Ie[Ve];ze=typeof ze=="string"?{filter:ze,language:ze}:ze,oe.languages[ze.language]&&(ke["filter-"+ze.filter]={pattern:RegExp(Pe.replace("<filter_name>",function(){return ze.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[ze.language,"language-"+ze.language],inside:oe.languages[ze.language]}}})}oe.languages.insertBefore("pug","filter",ke)})(ae)}},21294:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="puppet",Ee.aliases=[];function Ee(ae){(function(oe){oe.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 Pe=[{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:oe.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];oe.languages.puppet.heredoc[0].inside.interpolation=Pe,oe.languages.puppet.string.inside["double-quoted"].inside.interpolation=Pe})(ae)}},38709:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="pure",Ee.aliases=[];function Ee(ae){(function(oe){oe.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 Pe=["c",{lang:"c++",alias:"cpp"},"fortran"],Ie=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Pe.forEach(function(ke){var Ve=ke;if(typeof ke!="string"&&(Ve=ke.alias,ke=ke.lang),oe.languages[Ve]){var Te={};Te["inline-lang-"+Ve]={pattern:RegExp(Ie.replace("<lang>",ke.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:oe.util.clone(oe.languages.pure["inline-lang"].inside)},Te["inline-lang-"+Ve].inside.rest=oe.util.clone(oe.languages[Ve]),oe.languages.insertBefore("pure","inline-lang",Te)}}),oe.languages.c&&(oe.languages.pure["inline-lang"].inside.rest=oe.util.clone(oe.languages.c))})(ae)}},15008:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="purebasic",Ee.aliases=[];function Ee(ae){ae.languages.purebasic=ae.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),ae.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 ae.languages.purebasic["class-name"],delete ae.languages.purebasic.boolean,ae.languages.pbfasm=ae.languages.purebasic}},96549:function(Ze,Ee,ae){"use strict";var oe=ae(2050);Ze.exports=Pe,Pe.displayName="purescript",Pe.aliases=["purs"];function Pe(Ie){Ie.register(oe),Ie.languages.purescript=Ie.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:[Ie.languages.haskell.operator[0],Ie.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]/]}),Ie.languages.purs=Ie.languages.purescript}},5221:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="python",Ee.aliases=["py"];function Ee(ae){ae.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:/[{}[\];(),.:]/},ae.languages.python["string-interpolation"].inside.interpolation.inside.rest=ae.languages.python,ae.languages.py=ae.languages.python}},27447:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="q",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="qml",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Ie=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,ke=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Pe}).replace(/<comment>/g,function(){return Ie}),Ve=0;Ve<2;Ve++)ke=ke.replace(/<expr>/g,function(){return ke});ke=ke.replace(/<expr>/g,"[^\\s\\S]"),oe.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 ke}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:oe.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 ke}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:oe.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(ae)}},75542:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="qore",Ee.aliases=[];function Ee(ae){ae.languages.qore=ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="qsharp",Ee.aliases=["qs"];function Ee(ae){(function(oe){function Pe(Dt,Fe){return Dt.replace(/<<(\d+)>>/g,function(te,ee){return"(?:"+Fe[+ee]+")"})}function Ie(Dt,Fe,te){return RegExp(Pe(Dt,Fe),te||"")}function ke(Dt,Fe){for(var te=0;te<Fe;te++)Dt=Dt.replace(/<<self>>/g,function(){return"(?:"+Dt+")"});return Dt.replace(/<<self>>/g,"[^\\s\\S]")}var Ve={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 Te(Dt){return"\\b(?:"+Dt.trim().replace(/ /g,"|")+")\\b"}var ze=RegExp(Te(Ve.type+" "+Ve.other)),st=/\b[A-Za-z_]\w*\b/.source,Qe=Pe(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[st]),Ue={keyword:ze,punctuation:/[<>()?,.:[\]]/},St=/"(?:\\.|[^\\"])*"/.source;oe.languages.qsharp=oe.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Ie(/(^|[^$\\])<<0>>/.source,[St]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ie(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Qe]),lookbehind:!0,inside:Ue},{pattern:Ie(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Qe]),lookbehind:!0,inside:Ue}],keyword:ze,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:/::|[{}[\];(),.:]/}),oe.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var $e=ke(Pe(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[St]),2);oe.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Ie(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[$e]),greedy:!0,inside:{interpolation:{pattern:Ie(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[$e]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:oe.languages.qsharp}}},string:/[\s\S]+/}}})})(ae),ae.languages.qs=ae.languages.qsharp}},44298:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="r",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(48780);Ze.exports=Pe,Pe.displayName="racket",Pe.aliases=["rkt"];function Pe(Ie){Ie.register(oe),Ie.languages.racket=Ie.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),Ie.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),Ie.languages.rkt=Ie.languages.racket}},75266:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="reason",Ee.aliases=[];function Ee(ae){ae.languages.reason=ae.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/}),ae.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 ae.languages.reason.function}},48139:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="regex",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Ie=/\\(?: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]|.)/,ke={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ve={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Te="(?:[^\\\\-]|"+Ie.source+")",ze=RegExp(Te+"-"+Te),st={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};oe.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:ze,inside:{escape:Ie,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Pe,"char-set":Ve,escape:Ie}},"special-escape":Pe,"char-set":ke,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":st}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Ie,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":st}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ae)}},97534:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="rego",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="renpy",Ee.aliases=["rpy"];function Ee(ae){ae.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:/[{}[\];(),.:]/},ae.languages.rpy=ae.languages.renpy}},63919:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="rest",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="rip",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="roboconf",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="robotframework",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Ie={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function ke(st,Qe){var Ue={};Ue["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var St in Qe)Ue[St]=Qe[St];return Ue.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Ue.variable=Ie,Ue.comment=Pe,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return st}),"im"),alias:"section",inside:Ue}}var Ve={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Te={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Ie}},ze={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Ie}};oe.languages.robotframework={settings:ke("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:ke("Variables"),"test-cases":ke("Test Cases",{"test-name":Te,documentation:Ve,property:ze}),keywords:ke("Keywords",{"keyword-name":Te,documentation:Ve,property:ze}),tasks:ke("Tasks",{"task-name":Te,documentation:Ve,property:ze}),comment:Pe},oe.languages.robot=oe.languages.robotframework})(ae)}},75308:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="ruby",Ee.aliases=["rb"];function Ee(ae){(function(oe){oe.languages.ruby=oe.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:/[(){}[\].,;]/}),oe.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Pe={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:oe.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete oe.languages.ruby.function;var Ie="(?:"+[/([^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("|")+")",ke=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;oe.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Ie+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+ke),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+ke+/(?=:(?!:))/.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:/\./}}}),oe.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Ie),greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Pe,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:Pe,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+Ie),greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete oe.languages.ruby.string,oe.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)/}),oe.languages.rb=oe.languages.ruby})(ae)}},45315:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="rust",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,Ie=0;Ie<2;Ie++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,function(){return/[^\s\S]/.source}),oe.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Pe),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},oe.languages.rust["closure-params"].inside.rest=oe.languages.rust,oe.languages.rust.attribute.inside.string=oe.languages.rust.string})(ae)}},13794:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="sas",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Ie=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,ke={pattern:RegExp(Pe+"[bx]"),alias:"number"},Ve={pattern:/&[a-z_]\w*/i},Te={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"},ze={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},st=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Qe={pattern:RegExp(Pe),greedy:!0},Ue=/[$%@.(){}\[\];,\\]/,St={pattern:/%?\b\w+(?=\()/,alias:"keyword"},$e={function:St,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":Ve,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Ie,"numeric-constant":ke,punctuation:Ue,string:Qe},Dt={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Fe={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"},ee={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,ue={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:st,function:St,"arg-value":$e["arg-value"],operator:$e.operator,argument:$e.arg,number:Ie,"numeric-constant":ke,punctuation:Ue,string:Qe}},fe={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};oe.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 Pe}),"im"),alias:"language-sql",inside:oe.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:Ie,"numeric-constant":ke,punctuation:Ue,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:st,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-groovy",inside:oe.languages.groovy},keyword:fe,"submit-statement":ee,"global-statements":te,number:Ie,"numeric-constant":ke,punctuation:Ue,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:st,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-lua",inside:oe.languages.lua},keyword:fe,"submit-statement":ee,"global-statements":te,number:Ie,"numeric-constant":ke,punctuation:Ue,string:Qe}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:st,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:$e}},"cas-actions":ue,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:$e},step:ze,keyword:fe,function:St,format:Dt,altformat:Fe,"global-statements":te,number:Ie,"numeric-constant":ke,punctuation:Ue,string:Qe}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,inside:$e},"macro-keyword":Te,"macro-variable":Ve,"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":Te,"macro-variable":Ve,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Ue}},"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:st,number:Ie,"numeric-constant":ke}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:$e},"cas-actions":ue,comment:st,function:St,format:Dt,altformat:Fe,"numeric-constant":ke,datetime:{pattern:RegExp(Pe+"(?:dt?|t)"),alias:"number"},string:Qe,step:ze,keyword:fe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Ie,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Ue}})(ae)}},41299:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="sass",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.sass=oe.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),oe.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete oe.languages.sass.atrule;var Pe=/\$[-\w]+|#\{\$[-\w]+\}/,Ie=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];oe.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Pe,operator:Ie}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Pe,operator:Ie,important:oe.languages.sass.important}}}),delete oe.languages.sass.property,delete oe.languages.sass.important,oe.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}})})(ae)}},98177:function(Ze,Ee,ae){"use strict";var oe=ae(7093);Ze.exports=Pe,Pe.displayName="scala",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.scala=Ie.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*/}),Ie.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:Ie.languages.scala}}},string:/[\s\S]+/}}}),delete Ie.languages.scala["class-name"],delete Ie.languages.scala.function}},48780:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="scheme",Ee.aliases=[];function Ee(ae){(function(oe){oe.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(Pe({"<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 Pe(Ie){for(var ke in Ie)Ie[ke]=Ie[ke].replace(/<[\w\s]+>/g,function(Ve){return"(?:"+Ie[Ve].trim()+")"});return Ie[ke]}})(ae)}},79793:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="scss",Ee.aliases=[];function Ee(ae){ae.languages.scss=ae.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]+\}/}}}),ae.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}]}),ae.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),ae.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}}),ae.languages.scss.atrule.inside.rest=ae.languages.scss}},52085:function(Ze,Ee,ae){"use strict";var oe=ae(3058);Ze.exports=Pe,Pe.displayName="shellSession",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");ke.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 Ve}),"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:ke.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},ke.languages["sh-session"]=ke.languages.shellsession=ke.languages["shell-session"]}(Ie)}},65411:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="smali",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="smalltalk",Ee.aliases=[];function Ee(ae){ae.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(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="smarty",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.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:ke.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/]},ke.languages.smarty["embedded-php"].inside.smarty.inside=ke.languages.smarty,ke.languages.smarty.string[0].inside.interpolation.inside.expression.inside=ke.languages.smarty;var Ve=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Te=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return Ve.source}),"g");ke.hooks.add("before-tokenize",function(ze){var st="{literal}",Qe="{/literal}",Ue=!1;ke.languages["markup-templating"].buildPlaceholders(ze,"smarty",Te,function(St){return St===Qe&&(Ue=!1),Ue?!1:(St===st&&(Ue=!0),!0)})}),ke.hooks.add("after-tokenize",function(ze){ke.languages["markup-templating"].tokenizePlaceholders(ze,"smarty")})}(Ie)}},66433:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="sml",Ee.aliases=["smlnj"];function Ee(ae){(function(oe){var Pe=/\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;oe.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 Pe.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:Pe,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:/[(){}\[\].:,;]/},oe.languages.sml["class-name"][0].inside=oe.languages.sml,oe.languages.smlnj=oe.languages.sml})(ae)}},34855:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="solidity",Ee.aliases=["sol"];function Ee(ae){ae.languages.solidity=ae.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),ae.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/}),ae.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),ae.languages.sol=ae.languages.solidity}},12998:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="solutionFile",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};oe.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Pe}},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:Pe}},guid:Pe,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},oe.languages.sln=oe.languages["solution-file"]})(ae)}},10202:function(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="soy",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Te=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;ke.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:Ve,greedy:!0},number:Te,punctuation:/[\[\].?]/}},string:{pattern:Ve,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Te,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},ke.hooks.add("before-tokenize",function(ze){var st=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Qe="{literal}",Ue="{/literal}",St=!1;ke.languages["markup-templating"].buildPlaceholders(ze,"soy",st,function($e){return $e===Ue&&(St=!1),St?!1:($e===Qe&&(St=!0),!0)})}),ke.hooks.add("after-tokenize",function(ze){ke.languages["markup-templating"].tokenizePlaceholders(ze,"soy")})}(Ie)}},41186:function(Ze,Ee,ae){"use strict";var oe=ae(58710);Ze.exports=Pe,Pe.displayName="sparql",Pe.aliases=["rq"];function Pe(Ie){Ie.register(oe),Ie.languages.sparql=Ie.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),Ie.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]}),Ie.languages.rq=Ie.languages.sparql}},68963:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="splunkSpl",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="sqf",Ee.aliases=[];function Ee(ae){ae.languages.sqf=ae.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}),ae.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:ae.languages.sqf.comment}}}),delete ae.languages.sqf["class-name"]}},69435:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="sql",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="squirrel",Ee.aliases=[];function Ee(ae){ae.languages.squirrel=ae.languages.extend("clike",{comment:[ae.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:/[(){}\[\],;.]/}),ae.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),ae.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="stan",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\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/;oe.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("("+Pe.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/,Pe],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:/[()\[\]{},;]/},oe.languages.stan.constraint.inside.expression.inside=oe.languages.stan})(ae)}},89032:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="stylus",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Ie={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},ke={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:Pe,number:Ie,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Pe,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Ie,punctuation:/[{}()\[\];:,]/};ke.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:ke}},ke.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:ke}},oe.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:ke}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:ke}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:ke}},"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:ke.interpolation}},rest:ke}},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:ke.interpolation,comment:ke.comment,punctuation:/[{},]/}},func:ke.func,string:ke.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:ke.interpolation,punctuation:/[{}()\[\];:.]/}})(ae)}},40241:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="swift",Ee.aliases=[];function Ee(ae){ae.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:/[{}[\]();,.:\\]/},ae.languages.swift["string-literal"].forEach(function(oe){oe.inside.interpolation.inside=ae.languages.swift})}},24812:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="systemd",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/^[;#].*/m,greedy:!0},Ie=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;oe.languages.systemd={comment:Pe,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+"(?:"+Ie+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Ie+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Pe,quoted:{pattern:RegExp(/(^|\s)/.source+Ie),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(ae)}},16747:function(Ze,Ee,ae){"use strict";var oe=ae(73584),Pe=ae(87648);Ze.exports=Ie,Ie.displayName="t4Cs",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),ke.languages.t4=ke.languages["t4-cs"]=ke.languages["t4-templating"].createT4("csharp")}},73584:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="t4Templating",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(ke,Ve,Te){return{pattern:RegExp("<#"+ke+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+ke+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:Ve,alias:Te}}}}function Ie(ke){var Ve=oe.languages[ke],Te="language-"+ke;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Pe("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Pe("=",Ve,Te),"class-feature":Pe("\\+",Ve,Te),standard:Pe("",Ve,Te)}}}}oe.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Ie})})(ae)}},79243:function(Ze,Ee,ae){"use strict";var oe=ae(73584),Pe=ae(55686);Ze.exports=Ie,Ie.displayName="t4Vb",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),ke.languages["t4-vb"]=ke.languages["t4-templating"].createT4("vbnet")}},31788:function(Ze,Ee,ae){"use strict";var oe=ae(14409);Ze.exports=Pe,Pe.displayName="tap",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.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:Ie.languages.yaml,alias:"language-yaml"}}}},60871:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="tcl",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="textile",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Ie=/\)|\((?![^|()\n]+\))/.source;function ke(St,$e){return RegExp(St.replace(/<MOD>/g,function(){return"(?:"+Pe+")"}).replace(/<PAR>/g,function(){return"(?:"+Ie+")"}),$e||"")}var Ve={css:{pattern:/\{[^{}]+\}/,inside:{rest:oe.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Te=oe.languages.textile=oe.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:ke(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:ke(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:Ve},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:ke(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:ke(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:Ve},punctuation:/^[*#]+/}},table:{pattern:ke(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:ke(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:Ve},punctuation:/\||^\./}},inline:{pattern:ke(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:ke(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:ke(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:ke(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:ke(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:ke(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:ke(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:ke(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:ke(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:Ve},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:ke(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:ke(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:ke(/(^")<MOD>+/.source),lookbehind:!0,inside:Ve},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:ke(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:ke(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:ke(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:Ve},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:/[()]/}}}}}),ze=Te.phrase.inside,st={inline:ze.inline,link:ze.link,image:ze.image,footnote:ze.footnote,acronym:ze.acronym,mark:ze.mark};Te.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Qe=ze.inline.inside;Qe.bold.inside=st,Qe.italic.inside=st,Qe.inserted.inside=st,Qe.deleted.inside=st,Qe.span.inside=st;var Ue=ze.table.inside;Ue.inline=st.inline,Ue.link=st.link,Ue.image=st.image,Ue.footnote=st.footnote,Ue.acronym=st.acronym,Ue.mark=st.mark})(ae)}},14693:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="toml",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Ie(ke){return ke.replace(/__/g,function(){return Pe})}oe.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Ie(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Ie(/(^[\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:/[.,=[\]{}]/}})(ae)}},8743:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="tremor",Ee.aliases=[];function Ee(ae){(function(oe){oe.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 Pe=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;oe.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Pe+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Pe+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Pe),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:oe.languages.tremor}}},string:/[\s\S]+/}},oe.languages.troy=oe.languages.tremor,oe.languages.trickle=oe.languages.tremor})(ae)}},1689:function(Ze,Ee,ae){"use strict";var oe=ae(24103),Pe=ae(92784);Ze.exports=Ie,Ie.displayName="tsx",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){var Te=Ve.util.clone(Ve.languages.typescript);Ve.languages.tsx=Ve.languages.extend("jsx",Te),delete Ve.languages.tsx.parameter,delete Ve.languages.tsx["literal-property"];var ze=Ve.languages.tsx.tag;ze.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+ze.pattern.source+")",ze.pattern.flags),ze.lookbehind=!0}(ke)}},69210:function(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="tt2",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.tt2=ke.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:/[[\]{},()]/}),ke.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),ke.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),ke.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 ke.languages.tt2.string,ke.hooks.add("before-tokenize",function(Ve){var Te=/\[%[\s\S]+?%\]/g;ke.languages["markup-templating"].buildPlaceholders(Ve,"tt2",Te)}),ke.hooks.add("after-tokenize",function(Ve){ke.languages["markup-templating"].tokenizePlaceholders(Ve,"tt2")})}(Ie)}},58710:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="turtle",Ee.aliases=[];function Ee(ae){ae.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:/@/}}},ae.languages.trig=ae.languages.turtle}},60452:function(Ze,Ee,ae){"use strict";var oe=ae(51478);Ze.exports=Pe,Pe.displayName="twig",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.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:/[()\[\]{}:.,]/},Ie.hooks.add("before-tokenize",function(ke){if(ke.language==="twig"){var Ve=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;Ie.languages["markup-templating"].buildPlaceholders(ke,"twig",Ve)}}),Ie.hooks.add("after-tokenize",function(ke){Ie.languages["markup-templating"].tokenizePlaceholders(ke,"twig")})}},92784:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="typescript",Ee.aliases=["ts"];function Ee(ae){(function(oe){oe.languages.typescript=oe.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/}),oe.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 oe.languages.typescript.parameter,delete oe.languages.typescript["literal-property"];var Pe=oe.languages.extend("typescript",{});delete Pe["class-name"],oe.languages.typescript["class-name"].inside=Pe,oe.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:Pe}}}}),oe.languages.ts=oe.languages.typescript})(ae)}},36489:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="typoscript",Ee.aliases=["tsconfig"];function Ee(ae){(function(oe){var Pe=/\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/;oe.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:Pe}},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:Pe,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Pe,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},oe.languages.tsconfig=oe.languages.typoscript})(ae)}},78380:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="unrealscript",Ee.aliases=["uc","uscript"];function Ee(ae){ae.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:/[()[\]{};,.]/},ae.languages.uc=ae.languages.uscript=ae.languages.unrealscript}},10409:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="uorazor",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="uri",Ee.aliases=["url"];function Ee(ae){ae.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":/\//}}},ae.languages.url=ae.languages.uri}},82028:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="v",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/[\s\S]+/,inside:null};oe.languages.v=oe.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":Pe}}}},"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/}),Pe.inside=oe.languages.v,oe.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),oe.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+/}}}),oe.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:oe.languages.v.generic.inside}}}})})(ae)}},62282:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="vala",Ee.aliases=[];function Ee(ae){ae.languages.vala=ae.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/}),ae.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:ae.languages.vala}},string:/[\s\S]+/}}}),ae.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:ae.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(Ze,Ee,ae){"use strict";var oe=ae(51422);Ze.exports=Pe,Pe.displayName="vbnet",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.vbnet=Ie.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="velocity",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.velocity=oe.languages.extend("markup",{});var Pe={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:/[(){}[\]:,.]/};Pe.variable.inside={string:Pe.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Pe.number,boolean:Pe.boolean,punctuation:Pe.punctuation},oe.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:Pe}},variable:Pe.variable}),oe.languages.velocity.tag.inside["attr-value"].inside.rest=oe.languages.velocity})(ae)}},37116:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="verilog",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="vhdl",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="vim",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="visualBasic",Ee.aliases=[];function Ee(ae){ae.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:/[{}().,:?]/},ae.languages.vb=ae.languages["visual-basic"],ae.languages.vba=ae.languages["visual-basic"]}},17723:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="warpscript",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="wasm",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="webIdl",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Ie="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Pe+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,ke={};oe.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Pe),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:ke},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Ie),lookbehind:!0,inside:ke},{pattern:RegExp("("+/\bcallback\s+/.source+Pe+/\s*=\s*/.source+")"+Ie),lookbehind:!0,inside:ke},{pattern:RegExp(/(\btypedef\b\s*)/.source+Ie),lookbehind:!0,inside:ke},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Pe),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Pe),lookbehind:!0},RegExp(Pe+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Pe),lookbehind:!0},{pattern:RegExp(Ie+"(?="+/\s*(?:\.{3}\s*)?/.source+Pe+/\s*[(),;=]/.source+")"),inside:ke}],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 Ve in oe.languages["web-idl"])Ve!=="class-name"&&(ke[Ve]=oe.languages["web-idl"][Ve]);oe.languages.webidl=oe.languages["web-idl"]})(ae)}},8921:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="wiki",Ee.aliases=[];function Ee(ae){ae.languages.wiki=ae.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:ae.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),ae.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:ae.languages.markup.tag.inside}}}})}},13429:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="wolfram",Ee.aliases=["mathematica","wl","nb"];function Ee(ae){ae.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:/[{}[\];(),.:]/},ae.languages.mathematica=ae.languages.wolfram,ae.languages.wl=ae.languages.wolfram,ae.languages.nb=ae.languages.wolfram}},65197:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="wren",Ee.aliases=[];function Ee(ae){ae.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:/[\[\](){}.,;]/},ae.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:ae.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="xeora",Ee.aliases=["xeoracube"];function Ee(ae){(function(oe){oe.languages.xeora=oe.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"}}),oe.languages.insertBefore("inside","punctuation",{variable:oe.languages.xeora["function-inline"].inside.variable},oe.languages.xeora["function-block"]),oe.languages.xeoracube=oe.languages.xeora})(ae)}},35:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="xmlDoc",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Te,ze){oe.languages[Te]&&oe.languages.insertBefore(Te,"comment",{"doc-comment":ze})}var Ie=oe.languages.markup.tag,ke={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Ie}},Ve={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Ie}};Pe("csharp",ke),Pe("fsharp",ke),Pe("vbnet",Ve)})(ae)}},86095:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="xojo",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="xquery",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.xquery=oe.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:/[[\](){},;:/]/}),oe.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,oe.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,oe.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,oe.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:oe.languages.xquery,alias:"language-xquery"};var Pe=function(ke){return typeof ke=="string"?ke:typeof ke.content=="string"?ke.content:ke.content.map(Pe).join("")},Ie=function(ke){for(var Ve=[],Te=0;Te<ke.length;Te++){var ze=ke[Te],st=!1;if(typeof ze!="string"&&(ze.type==="tag"&&ze.content[0]&&ze.content[0].type==="tag"?ze.content[0].content[0].content==="</"?Ve.length>0&&Ve[Ve.length-1].tagName===Pe(ze.content[0].content[1])&&Ve.pop():ze.content[ze.content.length-1].content==="/>"||Ve.push({tagName:Pe(ze.content[0].content[1]),openedBraces:0}):Ve.length>0&&ze.type==="punctuation"&&ze.content==="{"&&(!ke[Te+1]||ke[Te+1].type!=="punctuation"||ke[Te+1].content!=="{")&&(!ke[Te-1]||ke[Te-1].type!=="plain-text"||ke[Te-1].content!=="{")?Ve[Ve.length-1].openedBraces++:Ve.length>0&&Ve[Ve.length-1].openedBraces>0&&ze.type==="punctuation"&&ze.content==="}"?Ve[Ve.length-1].openedBraces--:ze.type!=="comment"&&(st=!0)),(st||typeof ze=="string")&&Ve.length>0&&Ve[Ve.length-1].openedBraces===0){var Qe=Pe(ze);Te<ke.length-1&&(typeof ke[Te+1]=="string"||ke[Te+1].type==="plain-text")&&(Qe+=Pe(ke[Te+1]),ke.splice(Te+1,1)),Te>0&&(typeof ke[Te-1]=="string"||ke[Te-1].type==="plain-text")&&(Qe=Pe(ke[Te-1])+Qe,ke.splice(Te-1,1),Te--),/^\s+$/.test(Qe)?ke[Te]=Qe:ke[Te]=new oe.Token("plain-text",Qe,null,Qe)}ze.content&&typeof ze.content!="string"&&Ie(ze.content)}};oe.hooks.add("after-tokenize",function(ke){ke.language==="xquery"&&Ie(ke.tokens)})})(ae)}},14409:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="yaml",Ee.aliases=["yml"];function Ee(ae){(function(oe){var Pe=/[*&][^\s[\]{},]+/,Ie=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,ke="(?:"+Ie.source+"(?:[ ]+"+Pe.source+")?|"+Pe.source+"(?:[ ]+"+Ie.source+")?)",Ve=/(?:[^\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}),Te=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function ze(st,Qe){Qe=(Qe||"").replace(/m/g,"")+"m";var Ue=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return ke}).replace(/<<value>>/g,function(){return st});return RegExp(Ue,Qe)}oe.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 ke})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return ke}).replace(/<<key>>/g,function(){return"(?:"+Ve+"|"+Te+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:ze(/\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:ze(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:ze(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:ze(Te),lookbehind:!0,greedy:!0},number:{pattern:ze(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Ie,important:Pe,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},oe.languages.yml=oe.languages.yaml})(ae)}},33460:function(Ze){"use strict";Ze.exports=Ee,Ee.displayName="yang",Ee.aliases=[];function Ee(ae){ae.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(Ze){"use strict";Ze.exports=Ee,Ee.displayName="zig",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Qe){return function(){return Qe}}var Ie=/\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/,ke="\\b(?!"+Ie.source+")(?!\\d)\\w+\\b",Ve=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Te=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Pe(Ve)),ze=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Pe(ke)),st="(?!\\s)(?:!?\\s*(?:"+Te+"\\s*)*"+ze+")+";oe.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,Pe(st)).replace(/<ALIGN>/g,Pe(Ve))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Pe(st)).replace(/<ALIGN>/g,Pe(Ve))),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:Ie,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:/[.:,;(){}[\]]/},oe.languages.zig["class-name"].forEach(function(Qe){Qe.inside===null&&(Qe.inside=oe.languages.zig)})})(ae)}},92848:function(Ze,Ee){"use strict";var ae;Ee.Q=ke,ae=Ve;var oe="",Pe=" ",Ie=/[ \t\n\r\f]+/g;function ke(Te){var ze=String(Te||oe).trim();return ze===oe?[]:ze.split(Ie)}function Ve(Te){return Te.join(Pe).trim()}},77179:function(Ze,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}},Pe=oe(ae(58970)),Ie=ae(39159);function ke(Ve,Te){var ze={};return!Ve||typeof Ve!="string"||(0,Pe.default)(Ve,function(st,Qe){st&&Qe&&(ze[(0,Ie.camelCase)(st,Te)]=Qe)}),ze}ke.default=ke,Ze.exports=ke},39159:function(Ze,Ee){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.camelCase=void 0;var ae=/^--[a-zA-Z0-9_-]+$/,oe=/-([a-z])/g,Pe=/^[^-]+$/,Ie=/^-(webkit|moz|ms|o|khtml)-/,ke=/^-(ms)-/,Ve=function(Qe){return!Qe||Pe.test(Qe)||ae.test(Qe)},Te=function(Qe,Ue){return Ue.toUpperCase()},ze=function(Qe,Ue){return"".concat(Ue,"-")},st=function(Qe,Ue){return Ue===void 0&&(Ue={}),Ve(Qe)?Qe:(Qe=Qe.toLowerCase(),Ue.reactCompat?Qe=Qe.replace(ke,ze):Qe=Qe.replace(Ie,ze),Qe.replace(oe,Te))};Ee.camelCase=st},58970:function(Ze,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(ke){return ke&&ke.__esModule?ke:{default:ke}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=Ie;var Pe=oe(ae(93193));function Ie(ke,Ve){var Te=null;if(!ke||typeof ke!="string")return Te;var ze=(0,Pe.default)(ke),st=typeof Ve=="function";return ze.forEach(function(Qe){if(Qe.type==="declaration"){var Ue=Qe.property,St=Qe.value;st?Ve(Ue,St,Qe):St&&(Te=Te||{},Te[Ue]=St)}}),Te}},97270:function(Ze){Ze.exports=ae;var Ee=Object.prototype.hasOwnProperty;function ae(){for(var oe={},Pe=0;Pe<arguments.length;Pe++){var Ie=arguments[Pe];for(var ke in Ie)Ee.call(Ie,ke)&&(oe[ke]=Ie[ke])}return oe}},32637:function(Ze,Ee,ae){"use strict";Ze.exports=ae.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Ze){"use strict";Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},73631:function(Ze){"use strict";Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(Ze){"use strict";Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},36413:function(Ze){"use strict";Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAABPRJREFUSEudlXtQVGUYxp/vnLOcXcDltsACCyjesAypbMbQEpsxCyfDZtbyMqOMgZPSaDOYXUaGSzhoNXkBBbRGpXEGCx1Xa1KsTDTJQcUQyJ3RVEA22GUX3N2zl3POV7sMTCuE1Tdz5vzxvuf3fs97OwSPOHNnL13IgDwDyGGUIY0XLh8/9ahvfHYyllNmZibnHVDHcAo2WZZpLQX5DKAaAuQDZAeFHBYTOr0qLbhAhDPaVnSOuB7mBIC3Lul+kiX0iV96y3Ps3q7M8W42M2ItolXpvrv9wbBcWtFxbe/f/UfAW7PvP01k6bKCJ0yXcAbtJsM/cgkhKN/2MVKmJOHkPis6b4pLSk4knBwTXPhq59IXVqiPzV+mxoBtEPVHv4Xb7QEowPMKhE4IgSY6EnEJsZg4KREqldLPqdtuQdsl1+rSE7rDo8CUFjHNX8Qd6JX0OVm5Ef+mNiM+hr1WXDnt2FRiSNw1Gnw97wPT/diyxtaN0G+OGrG3OgUwf91qBs9DFGWIXgmiKEH0ypAkGZrYCThbO4gL9Q+KSwyJRQFgem3dVBDaNmANUxxrKEBOWQw6rS4MDnqQO9gDQ+pk9LWbQGmgEF+epz6mRdMpJxoODu4qMeg2BYKv5+0AxeYHt8Nx6Ow7yK/U4mynFfmmblQlJSEzVg1bvwM+EMcx4BQsOI4Fy/m0AFcaHDhZYTtcbNCtDgS35HUASB1o1KCq6S1s+VIHd3sbhPgUqNVKMMyYrT7C6GgScGrP3UvvHpmR8TDYCUBlqdeh5sYKFOxUQDp/BsqVayGDwOT1Ij5IEZAHX1pkWfaruNfuwffVV7E271A2Sas+MexIaEuuXXYzIea6ZBztXoycV65CMWkipLR52Gs1Q6VgsYzwGLQJkCQKWRoqnO9oYtWgHhW+Kr2B/LeruhHmmUImHfRPIaEtea1eS9BM6zfx6I9MQnKcDfZFeuyyufCDy4HGp1Jh67PDYXeDZZmhh2PAsAxCQnl4nAxqNhpRsHmnb0GsJ7Nq9g2Br62rdHcp1zuaE6BKVIHRxoN9MRtnuqwID+KQkRA2bl97PRTly+9ga2G5D3eRpFfPGwK35ma4jKEXxZ5ksEoWTFwC+Kyl/2lISvXdeP+9beA40QurMZgsOCf6S24/+OFPjKh93h+J56Fc+SYoCKhM8bnZgteiwhHBsP7hkHyDIsqQRMkfPDwyBEUbbmHVikpMDnWAqBBNpteYh8AV2xcyyuDTw2tUuSoXl/pcMDpdOEcEVGq1uHvLPEpFG3qxgzmPZnun35ZCZPQwrF6Y8+nXI03q3P9JBQi/gRIWwWvWoe6OBRU2CwzTUjCBZzFgdfqLNjwcRq8Zczv2wCF7AgKqGI4Kkpgd0P2m3ZV1XnWyXrd6MZEl6pccxLNj5vsNYy3qzC0Bttej0rE9eTEmXi37bdRY/XzkZuGzy6cVP6p6SVdKkaqMQXyQGof6mrEmejY+SnoZL7Xvxw3BNPrXRCnVADjvETxcz21ximAnxOOS4RYoPC4KjyD73zmJlVBGAE1pG1Hb2wy9ZhYWtlXD6OoDQOm4i+C7svq4O1265fYH6jkRkf0z1Go7r1QKMpXZW4Xpv4a0RFnmL4uaheLERcjqOIDf3f3DQhvG3zDj5ePHTeEIYi4AeDzQjVrAkYz/D/bRmreEwePdAoosACwILkISt+G53ff+BFCGCYWbZ5SAAAAAAElFTkSuQmCC"},96908:function(Ze){"use strict";Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Ze){"use strict";Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Ze){"use strict";Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},2826:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(13873);function Pe(Ie,ke){var Ve=typeof Symbol!="undefined"&&Ie[Symbol.iterator]||Ie["@@iterator"];if(!Ve){if(Array.isArray(Ie)||(Ve=(0,oe.Z)(Ie))||ke&&Ie&&typeof Ie.length=="number"){Ve&&(Ie=Ve);var Te=0,ze=function(){};return{s:ze,n:function(){return Te>=Ie.length?{done:!0}:{done:!1,value:Ie[Te++]}},e:function($e){throw $e},f:ze}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var st,Qe=!0,Ue=!1;return{s:function(){Ve=Ve.call(Ie)},n:function(){var $e=Ve.next();return Qe=$e.done,$e},e:function($e){Ue=!0,st=$e},f:function(){try{Qe||Ve.return==null||Ve.return()}finally{if(Ue)throw st}}}}},90302:function(Ze,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return be}});const oe=-1,Pe=0,Ie=1,ke=2,Ve=3,Te=4,ze=5,st=6,Qe=7,Ue=8,St=typeof self=="object"?self:globalThis,$e=(Ae,De)=>{const We=(qe,ot)=>(Ae.set(ot,qe),qe),nt=qe=>{if(Ae.has(qe))return Ae.get(qe);const[ot,mt]=De[qe];switch(ot){case Pe:case oe:return We(mt,qe);case Ie:{const at=We([],qe);for(const vt of mt)at.push(nt(vt));return at}case ke:{const at=We({},qe);for(const[vt,wt]of mt)at[nt(vt)]=nt(wt);return at}case Ve:return We(new Date(mt),qe);case Te:{const{source:at,flags:vt}=mt;return We(new RegExp(at,vt),qe)}case ze:{const at=We(new Map,qe);for(const[vt,wt]of mt)at.set(nt(vt),nt(wt));return at}case st:{const at=We(new Set,qe);for(const vt of mt)at.add(nt(vt));return at}case Qe:{const{name:at,message:vt}=mt;return We(new St[at](vt),qe)}case Ue:return We(BigInt(mt),qe);case"BigInt":return We(Object(BigInt(mt)),qe);case"ArrayBuffer":return We(new Uint8Array(mt).buffer,mt);case"DataView":{const{buffer:at}=new Uint8Array(mt);return We(new DataView(at),mt)}}return We(new St[ot](mt),qe)};return nt},Dt=Ae=>$e(new Map,Ae)(0),Fe="",{toString:te}={},{keys:ee}=Object,he=Ae=>{const De=typeof Ae;if(De!=="object"||!Ae)return[Pe,De];const We=te.call(Ae).slice(8,-1);switch(We){case"Array":return[Ie,Fe];case"Object":return[ke,Fe];case"Date":return[Ve,Fe];case"RegExp":return[Te,Fe];case"Map":return[ze,Fe];case"Set":return[st,Fe];case"DataView":return[Ie,We]}return We.includes("Array")?[Ie,We]:We.includes("Error")?[Qe,We]:[ke,We]},ue=([Ae,De])=>Ae===Pe&&(De==="function"||De==="symbol"),fe=(Ae,De,We,nt)=>{const qe=(mt,at)=>{const vt=nt.push(mt)-1;return We.set(at,vt),vt},ot=mt=>{if(We.has(mt))return We.get(mt);let[at,vt]=he(mt);switch(at){case Pe:{let At=mt;switch(vt){case"bigint":at=Ue,At=mt.toString();break;case"function":case"symbol":if(Ae)throw new TypeError("unable to serialize "+vt);At=null;break;case"undefined":return qe([oe],mt)}return qe([at,At],mt)}case Ie:{if(vt){let Qt=mt;return vt==="DataView"?Qt=new Uint8Array(mt.buffer):vt==="ArrayBuffer"&&(Qt=new Uint8Array(mt)),qe([vt,[...Qt]],mt)}const At=[],Ht=qe([at,At],mt);for(const Qt of mt)At.push(ot(Qt));return Ht}case ke:{if(vt)switch(vt){case"BigInt":return qe([vt,mt.toString()],mt);case"Boolean":case"Number":case"String":return qe([vt,mt.valueOf()],mt)}if(De&&"toJSON"in mt)return ot(mt.toJSON());const At=[],Ht=qe([at,At],mt);for(const Qt of ee(mt))(Ae||!ue(he(mt[Qt])))&&At.push([ot(Qt),ot(mt[Qt])]);return Ht}case Ve:return qe([at,mt.toISOString()],mt);case Te:{const{source:At,flags:Ht}=mt;return qe([at,{source:At,flags:Ht}],mt)}case ze:{const At=[],Ht=qe([at,At],mt);for(const[Qt,Zt]of mt)(Ae||!(ue(he(Qt))||ue(he(Zt))))&&At.push([ot(Qt),ot(Zt)]);return Ht}case st:{const At=[],Ht=qe([at,At],mt);for(const Qt of mt)(Ae||!ue(he(Qt)))&&At.push(ot(Qt));return Ht}}const{message:wt}=mt;return qe([at,{name:vt,message:wt}],mt)};return ot},me=(Ae,{json:De,lossy:We}={})=>{const nt=[];return fe(!(De||We),!!De,new Map,nt)(Ae),nt};var be=typeof structuredClone=="function"?(Ae,De)=>De&&("json"in De||"lossy"in De)?Dt(me(Ae,De)):structuredClone(Ae):(Ae,De)=>Dt(me(Ae,De))},11630:function(Ze,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Pe},Q:function(){return oe}});function oe(Ie){const ke=[],Ve=String(Ie||"");let Te=Ve.indexOf(","),ze=0,st=!1;for(;!st;){Te===-1&&(Te=Ve.length,st=!0);const Qe=Ve.slice(ze,Te).trim();(Qe||!st)&&ke.push(Qe),ze=Te+1,Te=Ve.indexOf(",",ze)}return ke}function Pe(Ie,ke){const Ve=ke||{};return(Ie[Ie.length-1]===""?[...Ie,""]:Ie).join((Ve.padRight?" ":"")+","+(Ve.padLeft===!1?"":" ")).trim()}},87342:function(Ze,Ee,ae){"use strict";ae.d(Ee,{ok:function(){return Ie},t1:function(){return ke}});function oe(Ve){return Ve}function Pe(){}function Ie(){}function ke(){}},40797:function(Ze,Ee,ae){"use strict";ae.d(Ee,{N:function(){return Dt}});var oe=ae(81994),Pe=ae(43309);function Ie(te,ee){return ke(te,ee||{})||{type:"root",children:[]}}function ke(te,ee){const he=Ve(te,ee);return he&&ee.afterTransform&&ee.afterTransform(te,he),he}function Ve(te,ee){switch(te.nodeType){case 1:return Ue(te,ee);case 3:return st(te);case 8:return Qe(te);case 9:return Te(te,ee);case 10:return ze();case 11:return Te(te,ee);default:return}}function Te(te,ee){return{type:"root",children:St(te,ee)}}function ze(){return{type:"doctype"}}function st(te){return{type:"text",value:te.nodeValue||""}}function Qe(te){return{type:"comment",value:te.nodeValue||""}}function Ue(te,ee){const he=te.namespaceURI,ue=he===Pe.t.svg?oe.s:oe.h,fe=he===Pe.t.html?te.tagName.toLowerCase():te.tagName,me=he===Pe.t.html&&fe==="template"?te.content:te,be=te.getAttributeNames(),Ae={};let De=-1;for(;++De<be.length;)Ae[be[De]]=te.getAttribute(be[De])||"";return ue(fe,Ae,St(me,ee))}function St(te,ee){const he=te.childNodes,ue=[];let fe=-1;for(;++fe<he.length;){const me=ke(he[fe],ee);me!==void 0&&ue.push(me)}return ue}const $e=new DOMParser;function Dt(te,ee){const he=ee!=null&&ee.fragment?Fe(te):$e.parseFromString(te,"text/html");return Ie(he)}function Fe(te){const ee=document.createElement("template");return ee.innerHTML=te,ee.content}},91378:function(Ze,Ee,ae){"use strict";ae.d(Ee,{l:function(){return ue}});var oe=ae(10502);const Pe=function(mt,at,vt){const wt=(0,oe.O)(vt);if(!mt||!mt.type||!mt.children)throw new Error("Expected parent node");if(typeof at=="number"){if(at<0||at===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(at=mt.children.indexOf(at),at<0)throw new Error("Expected child node or index");for(;++at<mt.children.length;)if(wt(mt.children[at],at,mt))return mt.children[at]},Ie=function(mt,at,vt,wt,At){const Ht=ke(at);if(vt!=null&&(typeof vt!="number"||vt<0||vt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(wt!=null&&(!wt.type||!wt.children))throw new Error("Expected valid `parent`");if(vt==null!=(wt==null))throw new Error("Expected both `index` and `parent`");return Qe(mt)?Ht.call(At,mt,vt,wt):!1},ke=function(mt){if(mt==null)return st;if(typeof mt=="string")return Te(mt);if(typeof mt=="object")return Ve(mt);if(typeof mt=="function")return ze(mt);throw new Error("Expected function, string, or array as `test`")};function Ve(mt){const at=[];let vt=-1;for(;++vt<mt.length;)at[vt]=ke(mt[vt]);return ze(wt);function wt(...At){let Ht=-1;for(;++Ht<at.length;)if(at[Ht].apply(this,At))return!0;return!1}}function Te(mt){return ze(at);function at(vt){return vt.tagName===mt}}function ze(mt){return at;function at(vt,wt,At){return!!(Qe(vt)&&mt.call(this,vt,typeof wt=="number"?wt:void 0,At||void 0))}}function st(mt){return!!(mt&&typeof mt=="object"&&"type"in mt&&mt.type==="element"&&"tagName"in mt&&typeof mt.tagName=="string")}function Qe(mt){return mt!==null&&typeof mt=="object"&&"type"in mt&&"tagName"in mt}const Ue=/\n/g,St=/[\t ]+/g,$e=ke("br"),Dt=ke(qe),Fe=ke("p"),te=ke("tr"),ee=ke(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",nt,ot]),he=ke(["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 ue(mt,at){const vt=at||{},wt="children"in mt?mt.children:[],At=he(mt),Ht=We(mt,{whitespace:vt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Qt=[];(mt.type==="text"||mt.type==="comment")&&Qt.push(...be(mt,{whitespace:Ht,breakBefore:!0,breakAfter:!0}));let Zt=-1;for(;++Zt<wt.length;)Qt.push(...fe(wt[Zt],mt,{whitespace:Ht,breakBefore:Zt?void 0:At,breakAfter:Zt<wt.length-1?$e(wt[Zt+1]):At}));const ln=[];let Nt;for(Zt=-1;++Zt<Qt.length;){const gt=Qt[Zt];typeof gt=="number"?Nt!==void 0&&gt>Nt&&(Nt=gt):gt&&(Nt!==void 0&&Nt>-1&&ln.push(`
`.repeat(Nt)||" "),Nt=-1,ln.push(gt))}return ln.join("")}function fe(mt,at,vt){return mt.type==="element"?me(mt,at,vt):mt.type==="text"?vt.whitespace==="normal"?be(mt,vt):Ae(mt):[]}function me(mt,at,vt){const wt=We(mt,vt),At=mt.children||[];let Ht=-1,Qt=[];if(ee(mt))return Qt;let Zt,ln;for($e(mt)||te(mt)&&Pe(at,mt,te)?ln=`
`:Fe(mt)?(Zt=2,ln=2):he(mt)&&(Zt=1,ln=1);++Ht<At.length;)Qt=Qt.concat(fe(At[Ht],mt,{whitespace:wt,breakBefore:Ht?void 0:Zt,breakAfter:Ht<At.length-1?$e(At[Ht+1]):ln}));return Dt(mt)&&Pe(at,mt,Dt)&&Qt.push(" "),Zt&&Qt.unshift(Zt),ln&&Qt.push(ln),Qt}function be(mt,at){const vt=String(mt.value),wt=[],At=[];let Ht=0;for(;Ht<=vt.length;){Ue.lastIndex=Ht;const ln=Ue.exec(vt),Nt=ln&&"index"in ln?ln.index:vt.length;wt.push(De(vt.slice(Ht,Nt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),Ht===0?at.breakBefore:!0,Nt===vt.length?at.breakAfter:!0)),Ht=Nt+1}let Qt=-1,Zt;for(;++Qt<wt.length;)wt[Qt].charCodeAt(wt[Qt].length-1)===8203||Qt<wt.length-1&&wt[Qt+1].charCodeAt(0)===8203?(At.push(wt[Qt]),Zt=void 0):wt[Qt]?(typeof Zt=="number"&&At.push(Zt),At.push(wt[Qt]),Zt=0):(Qt===0||Qt===wt.length-1)&&At.push(0);return At}function Ae(mt){return[String(mt.value)]}function De(mt,at,vt){const wt=[];let At=0,Ht;for(;At<mt.length;){St.lastIndex=At;const Qt=St.exec(mt);Ht=Qt?Qt.index:mt.length,!At&&!Ht&&Qt&&!at&&wt.push(""),At!==Ht&&wt.push(mt.slice(At,Ht)),At=Qt?Ht+Qt[0].length:Ht}return At!==Ht&&!vt&&wt.push(""),wt.join(" ")}function We(mt,at){if(mt.type==="element"){const vt=mt.properties||{};switch(mt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return vt.wrap?"pre-wrap":"pre";case"td":case"th":return vt.noWrap?"nowrap":at.whitespace;case"textarea":return"pre-wrap";default:}}return at.whitespace}function nt(mt){return!!(mt.properties||{}).hidden}function qe(mt){return mt.tagName==="td"||mt.tagName==="th"}function ot(mt){return mt.tagName==="dialog"&&!(mt.properties||{}).open}},81994:function(Ze,Ee,ae){"use strict";ae.d(Ee,{h:function(){return ee},s:function(){return he}});var oe=ae(58222),Pe=ae(11630);const Ie=/[#.]/g;function ke(ue,fe){const me=ue||"",be={};let Ae=0,De,We;for(;Ae<me.length;){Ie.lastIndex=Ae;const nt=Ie.exec(me),qe=me.slice(Ae,nt?nt.index:me.length);qe&&(De?De==="#"?be.id=qe:Array.isArray(be.className)?be.className.push(qe):be.className=[qe]:We=qe,Ae+=qe.length),nt&&(De=nt[0],Ae++)}return{type:"element",tagName:We||fe||"div",properties:be,children:[]}}var Ve=ae(84837),Te=ae(64326),ze=ae(71523);function st(ue,fe,me){const be=me?Fe(me):void 0;function Ae(De,We,...nt){let qe;if(De==null){qe={type:"root",children:[]};const ot=We;nt.unshift(ot)}else{qe=ke(De,fe);const ot=qe.tagName.toLowerCase(),mt=be?be.get(ot):void 0;if(qe.tagName=mt||ot,Qe(We))nt.unshift(We);else for(const[at,vt]of Object.entries(We))Ue(ue,qe.properties,at,vt)}for(const ot of nt)St(qe.children,ot);return qe.type==="element"&&qe.tagName==="template"&&(qe.content={type:"root",children:qe.children},qe.children=[]),qe}return Ae}function Qe(ue){if(ue===null||typeof ue!="object"||Array.isArray(ue))return!0;if(typeof ue.type!="string")return!1;const fe=ue,me=Object.keys(ue);for(const be of me){const Ae=fe[be];if(Ae&&typeof Ae=="object"){if(!Array.isArray(Ae))return!0;const De=Ae;for(const We of De)if(typeof We!="number"&&typeof We!="string")return!0}}return!!("children"in ue&&Array.isArray(ue.children))}function Ue(ue,fe,me,be){const Ae=(0,Ve.s)(ue,me);let De;if(be!=null){if(typeof be=="number"){if(Number.isNaN(be))return;De=be}else typeof be=="boolean"?De=be:typeof be=="string"?Ae.spaceSeparated?De=(0,ze.Q)(be):Ae.commaSeparated?De=(0,Pe.Q)(be):Ae.commaOrSpaceSeparated?De=(0,ze.Q)((0,Pe.Q)(be).join(" ")):De=$e(Ae,Ae.property,be):Array.isArray(be)?De=[...be]:De=Ae.property==="style"?Dt(be):String(be);if(Array.isArray(De)){const We=[];for(const nt of De)We.push($e(Ae,Ae.property,nt));De=We}Ae.property==="className"&&Array.isArray(fe.className)&&(De=fe.className.concat(De)),fe[Ae.property]=De}}function St(ue,fe){if(fe!=null)if(typeof fe=="number"||typeof fe=="string")ue.push({type:"text",value:String(fe)});else if(Array.isArray(fe))for(const me of fe)St(ue,me);else if(typeof fe=="object"&&"type"in fe)fe.type==="root"?St(ue,fe.children):ue.push(fe);else throw new Error("Expected node, nodes, or string, got `"+fe+"`")}function $e(ue,fe,me){if(typeof me=="string"){if(ue.number&&me&&!Number.isNaN(Number(me)))return Number(me);if((ue.boolean||ue.overloadedBoolean)&&(me===""||(0,Te.F)(me)===(0,Te.F)(fe)))return!0}return me}function Dt(ue){const fe=[];for(const[me,be]of Object.entries(ue))fe.push([me,be].join(": "));return fe.join("; ")}function Fe(ue){const fe=new Map;for(const me of ue)fe.set(me.toLowerCase(),me);return fe}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"],ee=st(oe.dy,"div"),he=st(oe.YP,"g",te)},26735:function(Ze,Ee,ae){"use strict";ae.d(Ee,{f:function(){return Pe}});var oe=ae(80722);function Pe(Ie,ke,Ve,Te){const ze=Te?Te-1:Number.POSITIVE_INFINITY;let st=0;return Qe;function Qe(St){return(0,oe.xz)(St)?(Ie.enter(Ve),Ue(St)):ke(St)}function Ue(St){return(0,oe.xz)(St)&&st++<ze?(Ie.consume(St),Ue):(Ie.exit(Ve),ke(St))}}},80722:function(Ze,Ee,ae){"use strict";ae.d(Ee,{AF:function(){return Te},Av:function(){return ke},B8:function(){return $e},Ch:function(){return st},H$:function(){return Pe},Xh:function(){return St},jv:function(){return oe},n9:function(){return Ie},pY:function(){return Ve},sR:function(){return ze},xz:function(){return Ue},z3:function(){return Qe}});const oe=Dt(/[A-Za-z]/),Pe=Dt(/[\dA-Za-z]/),Ie=Dt(/[#-'*+\--9=?A-Z^-~]/);function ke(Fe){return Fe!==null&&(Fe<32||Fe===127)}const Ve=Dt(/\d/),Te=Dt(/[\dA-Fa-f]/),ze=Dt(/[!-/:-@[-`{-~]/);function st(Fe){return Fe!==null&&Fe<-2}function Qe(Fe){return Fe!==null&&(Fe<0||Fe===32)}function Ue(Fe){return Fe===-2||Fe===-1||Fe===32}const St=Dt(new RegExp("\\p{P}|\\p{S}","u")),$e=Dt(/\s/);function Dt(Fe){return te;function te(ee){return ee!==null&&ee>-1&&Fe.test(String.fromCharCode(ee))}}},58222:function(Ze,Ee,ae){"use strict";ae.d(Ee,{dy:function(){return te},YP:function(){return ee}});class oe{constructor(ue,fe,me){this.normal=fe,this.property=ue,me&&(this.space=me)}}oe.prototype.normal={},oe.prototype.property={},oe.prototype.space=void 0;function Pe(he,ue){const fe={},me={};for(const be of he)Object.assign(fe,be.property),Object.assign(me,be.normal);return new oe(fe,me,ue)}var Ie=ae(64326),ke=ae(95516);function Ve(he){const ue={},fe={};for(const[me,be]of Object.entries(he.properties)){const Ae=new ke.I(me,he.transform(he.attributes||{},me),be,he.space);he.mustUseProperty&&he.mustUseProperty.includes(me)&&(Ae.mustUseProperty=!0),ue[me]=Ae,fe[(0,Ie.F)(me)]=me,fe[(0,Ie.F)(Ae.attribute)]=me}return new oe(ue,fe,he.space)}var Te=ae(56488);const ze=Ve({properties:{ariaActiveDescendant:null,ariaAtomic:Te.booleanish,ariaAutoComplete:null,ariaBusy:Te.booleanish,ariaChecked:Te.booleanish,ariaColCount:Te.number,ariaColIndex:Te.number,ariaColSpan:Te.number,ariaControls:Te.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Te.spaceSeparated,ariaDetails:null,ariaDisabled:Te.booleanish,ariaDropEffect:Te.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Te.booleanish,ariaFlowTo:Te.spaceSeparated,ariaGrabbed:Te.booleanish,ariaHasPopup:null,ariaHidden:Te.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te.spaceSeparated,ariaLevel:Te.number,ariaLive:null,ariaModal:Te.booleanish,ariaMultiLine:Te.booleanish,ariaMultiSelectable:Te.booleanish,ariaOrientation:null,ariaOwns:Te.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Te.number,ariaPressed:Te.booleanish,ariaReadOnly:Te.booleanish,ariaRelevant:null,ariaRequired:Te.booleanish,ariaRoleDescription:Te.spaceSeparated,ariaRowCount:Te.number,ariaRowIndex:Te.number,ariaRowSpan:Te.number,ariaSelected:Te.booleanish,ariaSetSize:Te.number,ariaSort:null,ariaValueMax:Te.number,ariaValueMin:Te.number,ariaValueNow:Te.number,ariaValueText:null,role:null},transform(he,ue){return ue==="role"?ue:"aria-"+ue.slice(4).toLowerCase()}});function st(he,ue){return ue in he?he[ue]:ue}function Qe(he,ue){return st(he,ue.toLowerCase())}const Ue=Ve({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te.commaSeparated,acceptCharset:Te.spaceSeparated,accessKey:Te.spaceSeparated,action:null,allow:null,allowFullScreen:Te.boolean,allowPaymentRequest:Te.boolean,allowUserMedia:Te.boolean,alt:null,as:null,async:Te.boolean,autoCapitalize:null,autoComplete:Te.spaceSeparated,autoFocus:Te.boolean,autoPlay:Te.boolean,blocking:Te.spaceSeparated,capture:null,charSet:null,checked:Te.boolean,cite:null,className:Te.spaceSeparated,cols:Te.number,colSpan:null,content:null,contentEditable:Te.booleanish,controls:Te.boolean,controlsList:Te.spaceSeparated,coords:Te.number|Te.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te.boolean,defer:Te.boolean,dir:null,dirName:null,disabled:Te.boolean,download:Te.overloadedBoolean,draggable:Te.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te.boolean,formTarget:null,headers:Te.spaceSeparated,height:Te.number,hidden:Te.boolean,high:Te.number,href:null,hrefLang:null,htmlFor:Te.spaceSeparated,httpEquiv:Te.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Te.boolean,inputMode:null,integrity:null,is:null,isMap:Te.boolean,itemId:null,itemProp:Te.spaceSeparated,itemRef:Te.spaceSeparated,itemScope:Te.boolean,itemType:Te.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te.boolean,low:Te.number,manifest:null,max:null,maxLength:Te.number,media:null,method:null,min:null,minLength:Te.number,multiple:Te.boolean,muted:Te.boolean,name:null,nonce:null,noModule:Te.boolean,noValidate:Te.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:Te.boolean,optimum:Te.number,pattern:null,ping:Te.spaceSeparated,placeholder:null,playsInline:Te.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te.boolean,referrerPolicy:null,rel:Te.spaceSeparated,required:Te.boolean,reversed:Te.boolean,rows:Te.number,rowSpan:Te.number,sandbox:Te.spaceSeparated,scope:null,scoped:Te.boolean,seamless:Te.boolean,selected:Te.boolean,shadowRootClonable:Te.boolean,shadowRootDelegatesFocus:Te.boolean,shadowRootMode:null,shape:null,size:Te.number,sizes:null,slot:null,span:Te.number,spellCheck:Te.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te.number,step:null,style:null,tabIndex:Te.number,target:null,title:null,translate:null,type:null,typeMustMatch:Te.boolean,useMap:null,value:Te.booleanish,width:Te.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te.spaceSeparated,axis:null,background:null,bgColor:null,border:Te.number,borderColor:null,bottomMargin:Te.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te.boolean,declare:Te.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Te.number,leftMargin:Te.number,link:null,longDesc:null,lowSrc:null,marginHeight:Te.number,marginWidth:Te.number,noResize:Te.boolean,noHref:Te.boolean,noShade:Te.boolean,noWrap:Te.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Te.number,rules:null,scheme:null,scrolling:Te.booleanish,standby:null,summary:null,text:null,topMargin:Te.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te.boolean,disableRemotePlayback:Te.boolean,prefix:null,property:null,results:Te.number,security:null,unselectable:null},space:"html",transform:Qe}),St=Ve({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:Te.commaOrSpaceSeparated,accentHeight:Te.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te.number,amplitude:Te.number,arabicForm:null,ascent:Te.number,attributeName:null,attributeType:null,azimuth:Te.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te.number,by:null,calcMode:null,capHeight:Te.number,className:Te.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:Te.number,diffuseConstant:Te.number,direction:null,display:null,dur:null,divisor:Te.number,dominantBaseline:null,download:Te.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te.number,enableBackground:null,end:null,event:null,exponent:Te.number,externalResourcesRequired:null,fill:null,fillOpacity:Te.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:Te.commaSeparated,g2:Te.commaSeparated,glyphName:Te.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te.number,horizOriginX:Te.number,horizOriginY:Te.number,id:null,ideographic:Te.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te.number,k:Te.number,k1:Te.number,k2:Te.number,k3:Te.number,k4:Te.number,kernelMatrix:Te.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te.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:Te.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:Te.number,overlineThickness:Te.number,paintOrder:null,panose1:null,path:null,pathLength:Te.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te.number,pointsAtY:Te.number,pointsAtZ:Te.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Te.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Te.commaOrSpaceSeparated,rev:Te.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Te.commaOrSpaceSeparated,requiredFeatures:Te.commaOrSpaceSeparated,requiredFonts:Te.commaOrSpaceSeparated,requiredFormats:Te.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:Te.number,specularExponent:Te.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te.number,strikethroughThickness:Te.number,string:null,stroke:null,strokeDashArray:Te.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te.number,strokeOpacity:Te.number,strokeWidth:null,style:null,surfaceScale:Te.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Te.commaOrSpaceSeparated,tabIndex:Te.number,tableValues:null,target:null,targetX:Te.number,targetY:Te.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Te.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te.number,underlineThickness:Te.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te.number,values:null,vAlphabetic:Te.number,vMathematical:Te.number,vectorEffect:null,vHanging:Te.number,vIdeographic:Te.number,version:null,vertAdvY:Te.number,vertOriginX:Te.number,vertOriginY:Te.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:st}),$e=Ve({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(he,ue){return"xlink:"+ue.slice(5).toLowerCase()}}),Dt=Ve({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Qe}),Fe=Ve({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,ue){return"xml:"+ue.slice(3).toLowerCase()}}),te=Pe([ze,Ue,$e,Dt,Fe],"html"),ee=Pe([ze,St,$e,Dt,Fe],"svg")},84837:function(Ze,Ee,ae){"use strict";ae.d(Ee,{s:function(){return ze}});var oe=ae(95516),Pe=ae(56038),Ie=ae(64326);const ke=/[A-Z]/g,Ve=/-[a-z]/g,Te=/^data[-\w.:]+$/i;function ze(Ue,St){const $e=(0,Ie.F)(St);let Dt=St,Fe=Pe.k;if($e in Ue.normal)return Ue.property[Ue.normal[$e]];if($e.length>4&&$e.slice(0,4)==="data"&&Te.test(St)){if(St.charAt(4)==="-"){const te=St.slice(5).replace(Ve,Qe);Dt="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=St.slice(4);if(!Ve.test(te)){let ee=te.replace(ke,st);ee.charAt(0)!=="-"&&(ee="-"+ee),St="data"+ee}}Fe=oe.I}return new Fe(Dt,St)}function st(Ue){return"-"+Ue.toLowerCase()}function Qe(Ue){return Ue.charAt(1).toUpperCase()}},64326:function(Ze,Ee,ae){"use strict";ae.d(Ee,{F:function(){return oe}});function oe(Pe){return Pe.toLowerCase()}},95516:function(Ze,Ee,ae){"use strict";ae.d(Ee,{I:function(){return ke}});var oe=ae(56038),Pe=ae(56488);const Ie=Object.keys(Pe);class ke extends oe.k{constructor(ze,st,Qe,Ue){let St=-1;if(super(ze,st),Ve(this,"space",Ue),typeof Qe=="number")for(;++St<Ie.length;){const $e=Ie[St];Ve(this,Ie[St],(Qe&Pe[$e])===Pe[$e])}}}ke.prototype.defined=!0;function Ve(Te,ze,st){st&&(Te[ze]=st)}},56038:function(Ze,Ee,ae){"use strict";ae.d(Ee,{k:function(){return oe}});class oe{constructor(Ie,ke){this.attribute=ke,this.property=Ie}}oe.prototype.attribute="",oe.prototype.booleanish=!1,oe.prototype.boolean=!1,oe.prototype.commaOrSpaceSeparated=!1,oe.prototype.commaSeparated=!1,oe.prototype.defined=!1,oe.prototype.mustUseProperty=!1,oe.prototype.number=!1,oe.prototype.overloadedBoolean=!1,oe.prototype.property="",oe.prototype.spaceSeparated=!1,oe.prototype.space=void 0},56488:function(Ze,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{boolean:function(){return Pe},booleanish:function(){return Ie},commaOrSpaceSeparated:function(){return st},commaSeparated:function(){return ze},number:function(){return Ve},overloadedBoolean:function(){return ke},spaceSeparated:function(){return Te}});let oe=0;const Pe=Qe(),Ie=Qe(),ke=Qe(),Ve=Qe(),Te=Qe(),ze=Qe(),st=Qe();function Qe(){return aS(2,++oe)}},96536:function(Ze,Ee,ae){"use strict";ae.d(Ee,{UG:function(){return Zs}});var oe={};ae.r(oe),ae.d(oe,{attentionMarkers:function(){return Ba},contentInitial:function(){return Ps},disable:function(){return is},document:function(){return ia},flow:function(){return Gs},flowInitial:function(){return Fa},insideSpan:function(){return ca},string:function(){return gs},text:function(){return Qi}});var Pe=ae(87342),Ie=ae(11630);const ke=/[$_\p{ID_Start}]/u,Ve=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Te=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,ze=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,st=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qe={};function Ue(Ce){return Ce?ke.test(String.fromCodePoint(Ce)):!1}function St(Ce,Ye){const pt=(Ye||Qe).jsx?Te:Ve;return Ce?pt.test(String.fromCodePoint(Ce)):!1}function $e(Ce,Ye){return((Ye||Qe).jsx?st:ze).test(Ce)}const Dt=/[ \t\n\f\r]/g;function Fe(Ce){return typeof Ce=="object"?Ce.type==="text"?te(Ce.value):!1:te(Ce)}function te(Ce){return Ce.replace(Dt,"")===""}var ee=ae(58222),he=ae(84837);const ue={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 fe=ae(71523),me=ae(77179),be=ae(17970);function Ae(Ce){return!Ce||typeof Ce!="object"?"":"position"in Ce||"type"in Ce?We(Ce.position):"start"in Ce||"end"in Ce?We(Ce):"line"in Ce||"column"in Ce?De(Ce):""}function De(Ce){return nt(Ce&&Ce.line)+":"+nt(Ce&&Ce.column)}function We(Ce){return De(Ce&&Ce.start)+"-"+De(Ce&&Ce.end)}function nt(Ce){return Ce&&typeof Ce=="number"?Ce:1}class qe extends Error{constructor(Ye,tt,pt){super(),typeof tt=="string"&&(pt=tt,tt=void 0);let Ft="",_t={},rn=!1;if(tt&&("line"in tt&&"column"in tt?_t={place:tt}:"start"in tt&&"end"in tt?_t={place:tt}:"type"in tt?_t={ancestors:[tt],place:tt.position}:_t=xa({},tt)),typeof Ye=="string"?Ft=Ye:!_t.cause&&Ye&&(rn=!0,Ft=Ye.message,_t.cause=Ye),!_t.ruleId&&!_t.source&&typeof pt=="string"){const br=pt.indexOf(":");br===-1?_t.ruleId=pt:(_t.source=pt.slice(0,br),_t.ruleId=pt.slice(br+1))}if(!_t.place&&_t.ancestors&&_t.ancestors){const br=_t.ancestors[_t.ancestors.length-1];br&&(_t.place=br.position)}const Pn=_t.place&&"start"in _t.place?_t.place.start:_t.place;this.ancestors=_t.ancestors||void 0,this.cause=_t.cause||void 0,this.column=Pn?Pn.column:void 0,this.fatal=void 0,this.file,this.message=Ft,this.line=Pn?Pn.line:void 0,this.name=Ae(_t.place)||"1:1",this.place=_t.place||void 0,this.reason=this.message,this.ruleId=_t.ruleId||void 0,this.source=_t.source||void 0,this.stack=rn&&_t.cause&&typeof _t.cause.stack=="string"?_t.cause.stack:"",this.actual,this.expected,this.note,this.url}}qe.prototype.file="",qe.prototype.name="",qe.prototype.reason="",qe.prototype.message="",qe.prototype.stack="",qe.prototype.column=void 0,qe.prototype.line=void 0,qe.prototype.ancestors=void 0,qe.prototype.cause=void 0,qe.prototype.fatal=void 0,qe.prototype.place=void 0,qe.prototype.ruleId=void 0,qe.prototype.source=void 0;const ot={}.hasOwnProperty,mt=new Map,at=/[A-Z]/g,vt=new Set(["table","tbody","thead","tfoot","tr"]),wt=new Set(["td","th"]),At="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ht(Ce,Ye){if(!Ye||Ye.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const tt=Ye.filePath||void 0;let pt;if(Ye.development){if(typeof Ye.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");pt=bn(tt,Ye.jsxDEV)}else{if(typeof Ye.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Ye.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");pt=wn(tt,Ye.jsx,Ye.jsxs)}const Ft={Fragment:Ye.Fragment,ancestors:[],components:Ye.components||{},create:pt,elementAttributeNameCase:Ye.elementAttributeNameCase||"react",evaluater:Ye.createEvaluater?Ye.createEvaluater():void 0,filePath:tt,ignoreInvalidStyle:Ye.ignoreInvalidStyle||!1,passKeys:Ye.passKeys!==!1,passNode:Ye.passNode||!1,schema:Ye.space==="svg"?ee.YP:ee.dy,stylePropertyNameCase:Ye.stylePropertyNameCase||"dom",tableCellAlignToStyle:Ye.tableCellAlignToStyle!==!1},_t=Qt(Ft,Ce,void 0);return _t&&typeof _t!="string"?_t:Ft.create(Ce,Ft.Fragment,{children:_t||void 0},void 0)}function Qt(Ce,Ye,tt){if(Ye.type==="element")return Zt(Ce,Ye,tt);if(Ye.type==="mdxFlowExpression"||Ye.type==="mdxTextExpression")return ln(Ce,Ye);if(Ye.type==="mdxJsxFlowElement"||Ye.type==="mdxJsxTextElement")return gt(Ce,Ye,tt);if(Ye.type==="mdxjsEsm")return Nt(Ce,Ye);if(Ye.type==="root")return ct(Ce,Ye,tt);if(Ye.type==="text")return Jt(Ce,Ye)}function Zt(Ce,Ye,tt){const pt=Ce.schema;let Ft=pt;Ye.tagName.toLowerCase()==="svg"&&pt.space==="html"&&(Ft=ee.YP,Ce.schema=Ft),Ce.ancestors.push(Ye);const _t=cr(Ce,Ye.tagName,!1),rn=_n(Ce,Ye);let Pn=zn(Ce,Ye);return vt.has(Ye.tagName)&&(Pn=Pn.filter(function(br){return typeof br=="string"?!Fe(br):!0})),sn(Ce,rn,_t,Ye),It(rn,Pn),Ce.ancestors.pop(),Ce.schema=pt,Ce.create(Ye,_t,rn,tt)}function ln(Ce,Ye){if(Ye.data&&Ye.data.estree&&Ce.evaluater){const pt=Ye.data.estree.body[0];return(0,Pe.ok)(pt.type==="ExpressionStatement"),Ce.evaluater.evaluateExpression(pt.expression)}it(Ce,Ye.position)}function Nt(Ce,Ye){if(Ye.data&&Ye.data.estree&&Ce.evaluater)return Ce.evaluater.evaluateProgram(Ye.data.estree);it(Ce,Ye.position)}function gt(Ce,Ye,tt){const pt=Ce.schema;let Ft=pt;Ye.name==="svg"&&pt.space==="html"&&(Ft=ee.YP,Ce.schema=Ft),Ce.ancestors.push(Ye);const _t=Ye.name===null?Ce.Fragment:cr(Ce,Ye.name,!0),rn=Xt(Ce,Ye),Pn=zn(Ce,Ye);return sn(Ce,rn,_t,Ye),It(rn,Pn),Ce.ancestors.pop(),Ce.schema=pt,Ce.create(Ye,_t,rn,tt)}function ct(Ce,Ye,tt){const pt={};return It(pt,zn(Ce,Ye)),Ce.create(Ye,Ce.Fragment,pt,tt)}function Jt(Ce,Ye){return Ye.value}function sn(Ce,Ye,tt,pt){typeof tt!="string"&&tt!==Ce.Fragment&&Ce.passNode&&(Ye.node=pt)}function It(Ce,Ye){if(Ye.length>0){const tt=Ye.length>1?Ye:Ye[0];tt&&(Ce.children=tt)}}function wn(Ce,Ye,tt){return pt;function pt(Ft,_t,rn,Pn){const wr=Array.isArray(rn.children)?tt:Ye;return Pn?wr(_t,rn,Pn):wr(_t,rn)}}function bn(Ce,Ye){return tt;function tt(pt,Ft,_t,rn){const Pn=Array.isArray(_t.children),br=(0,be.Pk)(pt);return Ye(Ft,_t,rn,Pn,{columnNumber:br?br.column-1:void 0,fileName:Ce,lineNumber:br?br.line:void 0},void 0)}}function _n(Ce,Ye){const tt={};let pt,Ft;for(Ft in Ye.properties)if(Ft!=="children"&&ot.call(Ye.properties,Ft)){const _t=Ot(Ce,Ft,Ye.properties[Ft]);if(_t){const[rn,Pn]=_t;Ce.tableCellAlignToStyle&&rn==="align"&&typeof Pn=="string"&&wt.has(Ye.tagName)?pt=Pn:tt[rn]=Pn}}if(pt){const _t=tt.style||(tt.style={});_t[Ce.stylePropertyNameCase==="css"?"text-align":"textAlign"]=pt}return tt}function Xt(Ce,Ye){const tt={};for(const pt of Ye.attributes)if(pt.type==="mdxJsxExpressionAttribute")if(pt.data&&pt.data.estree&&Ce.evaluater){const _t=pt.data.estree.body[0];(0,Pe.ok)(_t.type==="ExpressionStatement");const rn=_t.expression;(0,Pe.ok)(rn.type==="ObjectExpression");const Pn=rn.properties[0];(0,Pe.ok)(Pn.type==="SpreadElement"),Object.assign(tt,Ce.evaluater.evaluateExpression(Pn.argument))}else it(Ce,Ye.position);else{const Ft=pt.name;let _t;if(pt.value&&typeof pt.value=="object")if(pt.value.data&&pt.value.data.estree&&Ce.evaluater){const Pn=pt.value.data.estree.body[0];(0,Pe.ok)(Pn.type==="ExpressionStatement"),_t=Ce.evaluater.evaluateExpression(Pn.expression)}else it(Ce,Ye.position);else _t=pt.value===null?!0:pt.value;tt[Ft]=_t}return tt}function zn(Ce,Ye){const tt=[];let pt=-1;const Ft=Ce.passKeys?new Map:mt;for(;++pt<Ye.children.length;){const _t=Ye.children[pt];let rn;if(Ce.passKeys){const br=_t.type==="element"?_t.tagName:_t.type==="mdxJsxFlowElement"||_t.type==="mdxJsxTextElement"?_t.name:void 0;if(br){const wr=Ft.get(br)||0;rn=br+"-"+wr,Ft.set(br,wr+1)}}const Pn=Qt(Ce,_t,rn);Pn!==void 0&&tt.push(Pn)}return tt}function Ot(Ce,Ye,tt){const pt=(0,he.s)(Ce.schema,Ye);if(!(tt==null||typeof tt=="number"&&Number.isNaN(tt))){if(Array.isArray(tt)&&(tt=pt.commaSeparated?(0,Ie.P)(tt):(0,fe.P)(tt)),pt.property==="style"){let Ft=typeof tt=="object"?tt:jn(Ce,String(tt));return Ce.stylePropertyNameCase==="css"&&(Ft=_e(Ft)),["style",Ft]}return[Ce.elementAttributeNameCase==="react"&&pt.space?ue[pt.property]||pt.property:pt.attribute,tt]}}function jn(Ce,Ye){try{return me(Ye,{reactCompat:!0})}catch(tt){if(Ce.ignoreInvalidStyle)return{};const pt=tt,Ft=new qe("Cannot parse `style` attribute",{ancestors:Ce.ancestors,cause:pt,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Ft.file=Ce.filePath||void 0,Ft.url=At+"#cannot-parse-style-attribute",Ft}}function cr(Ce,Ye,tt){let pt;if(!tt)pt={type:"Literal",value:Ye};else if(Ye.includes(".")){const Ft=Ye.split(".");let _t=-1,rn;for(;++_t<Ft.length;){const Pn=$e(Ft[_t])?{type:"Identifier",name:Ft[_t]}:{type:"Literal",value:Ft[_t]};rn=rn?{type:"MemberExpression",object:rn,property:Pn,computed:!!(_t&&Pn.type==="Literal"),optional:!1}:Pn}(0,Pe.ok)(rn,"always a result"),pt=rn}else pt=$e(Ye)&&!/^[a-z]/.test(Ye)?{type:"Identifier",name:Ye}:{type:"Literal",value:Ye};if(pt.type==="Literal"){const Ft=pt.value;return ot.call(Ce.components,Ft)?Ce.components[Ft]:Ft}if(Ce.evaluater)return Ce.evaluater.evaluateExpression(pt);it(Ce)}function it(Ce,Ye){const tt=new qe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:Ce.ancestors,place:Ye,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw tt.file=Ce.filePath||void 0,tt.url=At+"#cannot-handle-mdx-estrees-without-createevaluater",tt}function _e(Ce){const Ye={};let tt;for(tt in Ce)ot.call(Ce,tt)&&(Ye[Re(tt)]=Ce[tt]);return Ye}function Re(Ce){let Ye=Ce.replace(at,Xe);return Ye.slice(0,3)==="ms-"&&(Ye="-"+Ye),Ye}function Xe(Ce){return"-"+Ce.toLowerCase()}const lt={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 Be=ae(37712),bt=ae(59301);const Wt={};function yn(Ce,Ye){const tt=Ye||Wt,pt=typeof tt.includeImageAlt=="boolean"?tt.includeImageAlt:!0,Ft=typeof tt.includeHtml=="boolean"?tt.includeHtml:!0;return On(Ce,pt,Ft)}function On(Ce,Ye,tt){if(Vt(Ce)){if("value"in Ce)return Ce.type==="html"&&!tt?"":Ce.value;if(Ye&&"alt"in Ce&&Ce.alt)return Ce.alt;if("children"in Ce)return Pt(Ce.children,Ye,tt)}return Array.isArray(Ce)?Pt(Ce,Ye,tt):""}function Pt(Ce,Ye,tt){const pt=[];let Ft=-1;for(;++Ft<Ce.length;)pt[Ft]=On(Ce[Ft],Ye,tt);return pt.join("")}function Vt(Ce){return!!(Ce&&typeof Ce=="object")}function zt(Ce,Ye,tt,pt){const Ft=Ce.length;let _t=0,rn;if(Ye<0?Ye=-Ye>Ft?0:Ft+Ye:Ye=Ye>Ft?Ft:Ye,tt=tt>0?tt:0,pt.length<1e4)rn=Array.from(pt),rn.unshift(Ye,tt),Ce.splice(...rn);else for(tt&&Ce.splice(Ye,tt);_t<pt.length;)rn=pt.slice(_t,_t+1e4),rn.unshift(Ye,0),Ce.splice(...rn),_t+=1e4,Ye+=1e4}function pn(Ce,Ye){return Ce.length>0?(zt(Ce,Ce.length,0,Ye),Ce):Ye}class Tn{constructor(Ye){this.left=Ye?[...Ye]:[],this.right=[]}get(Ye){if(Ye<0||Ye>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Ye+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Ye<this.left.length?this.left[Ye]:this.right[this.right.length-Ye+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Ye,tt){const pt=tt==null?Number.POSITIVE_INFINITY:tt;return pt<this.left.length?this.left.slice(Ye,pt):Ye>this.left.length?this.right.slice(this.right.length-pt+this.left.length,this.right.length-Ye+this.left.length).reverse():this.left.slice(Ye).concat(this.right.slice(this.right.length-pt+this.left.length).reverse())}splice(Ye,tt,pt){const Ft=tt||0;this.setCursor(Math.trunc(Ye));const _t=this.right.splice(this.right.length-Ft,Number.POSITIVE_INFINITY);return pt&&gn(this.left,pt),_t.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Ye){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Ye)}pushMany(Ye){this.setCursor(Number.POSITIVE_INFINITY),gn(this.left,Ye)}unshift(Ye){this.setCursor(0),this.right.push(Ye)}unshiftMany(Ye){this.setCursor(0),gn(this.right,Ye.reverse())}setCursor(Ye){if(!(Ye===this.left.length||Ye>this.left.length&&this.right.length===0||Ye<0&&this.left.length===0))if(Ye<this.left.length){const tt=this.left.splice(Ye,Number.POSITIVE_INFINITY);gn(this.right,tt.reverse())}else{const tt=this.right.splice(this.left.length+this.right.length-Ye,Number.POSITIVE_INFINITY);gn(this.left,tt.reverse())}}}function gn(Ce,Ye){let tt=0;if(Ye.length<1e4)Ce.push(...Ye);else for(;tt<Ye.length;)Ce.push(...Ye.slice(tt,tt+1e4)),tt+=1e4}function Mt(Ce){const Ye={};let tt=-1,pt,Ft,_t,rn,Pn,br,wr;const ir=new Tn(Ce);for(;++tt<ir.length;){for(;tt in Ye;)tt=Ye[tt];if(pt=ir.get(tt),tt&&pt[1].type==="chunkFlow"&&ir.get(tt-1)[1].type==="listItemPrefix"&&(br=pt[1]._tokenizer.events,_t=0,_t<br.length&&br[_t][1].type==="lineEndingBlank"&&(_t+=2),_t<br.length&&br[_t][1].type==="content"))for(;++_t<br.length&&br[_t][1].type!=="content";)br[_t][1].type==="chunkText"&&(br[_t][1]._isInFirstContentOfListItem=!0,_t++);if(pt[0]==="enter")pt[1].contentType&&(Object.assign(Ye,Un(ir,tt)),tt=Ye[tt],wr=!0);else if(pt[1]._container){for(_t=tt,Ft=void 0;_t--;)if(rn=ir.get(_t),rn[1].type==="lineEnding"||rn[1].type==="lineEndingBlank")rn[0]==="enter"&&(Ft&&(ir.get(Ft)[1].type="lineEndingBlank"),rn[1].type="lineEnding",Ft=_t);else if(!(rn[1].type==="linePrefix"||rn[1].type==="listItemIndent"))break;Ft&&(pt[1].end=xa({},ir.get(Ft)[1].start),Pn=ir.slice(Ft,tt),Pn.unshift(pt),ir.splice(Ft,tt-Ft+1,Pn))}}return zt(Ce,0,Number.POSITIVE_INFINITY,ir.slice(0)),!wr}function Un(Ce,Ye){const tt=Ce.get(Ye)[1],pt=Ce.get(Ye)[2];let Ft=Ye-1;const _t=[];let rn=tt._tokenizer;rn||(rn=pt.parser[tt.contentType](tt.start),tt._contentTypeTextTrailing&&(rn._contentTypeTextTrailing=!0));const Pn=rn.events,br=[],wr={};let ir,Yr,Br=-1,dr=tt,Co=0,zo=0;const ea=[zo];for(;dr;){for(;Ce.get(++Ft)[1]!==dr;);_t.push(Ft),dr._tokenizer||(ir=pt.sliceStream(dr),dr.next||ir.push(null),Yr&&rn.defineSkip(dr.start),dr._isInFirstContentOfListItem&&(rn._gfmTasklistFirstContentOfListItem=!0),rn.write(ir),dr._isInFirstContentOfListItem&&(rn._gfmTasklistFirstContentOfListItem=void 0)),Yr=dr,dr=dr.next}for(dr=tt;++Br<Pn.length;)Pn[Br][0]==="exit"&&Pn[Br-1][0]==="enter"&&Pn[Br][1].type===Pn[Br-1][1].type&&Pn[Br][1].start.line!==Pn[Br][1].end.line&&(zo=Br+1,ea.push(zo),dr._tokenizer=void 0,dr.previous=void 0,dr=dr.next);for(rn.events=[],dr?(dr._tokenizer=void 0,dr.previous=void 0):ea.pop(),Br=ea.length;Br--;){const io=Pn.slice(ea[Br],ea[Br+1]),Ro=_t.pop();br.push([Ro,Ro+io.length-1]),Ce.splice(Ro,2,io)}for(br.reverse(),Br=-1;++Br<br.length;)wr[Co+br[Br][0]]=Co+br[Br][1],Co+=br[Br][1]-br[Br][0]-1;return wr}function Yt(Ce){for(;!Mt(Ce););return Ce}const on={}.hasOwnProperty;function mn(Ce){const Ye={};let tt=-1;for(;++tt<Ce.length;)er(Ye,Ce[tt]);return Ye}function er(Ce,Ye){let tt;for(tt in Ye){const Ft=(on.call(Ce,tt)?Ce[tt]:void 0)||(Ce[tt]={}),_t=Ye[tt];let rn;if(_t)for(rn in _t){on.call(Ft,rn)||(Ft[rn]=[]);const Pn=_t[rn];Sn(Ft[rn],Array.isArray(Pn)?Pn:Pn?[Pn]:[])}}}function Sn(Ce,Ye){let tt=-1;const pt=[];for(;++tt<Ye.length;)(Ye[tt].add==="after"?Ce:pt).push(Ye[tt]);zt(Ce,0,0,pt)}function ht(Ce){const Ye={};let tt=-1;for(;++tt<Ce.length;)tr(Ye,Ce[tt]);return Ye}function tr(Ce,Ye){let tt;for(tt in Ye){const Ft=(on.call(Ce,tt)?Ce[tt]:void 0)||(Ce[tt]={}),_t=Ye[tt];let rn;if(_t)for(rn in _t)Ft[rn]=_t[rn]}}var lr=ae(26735),qt=ae(80722);const yr={tokenize:ri};function ri(Ce){const Ye=Ce.attempt(this.parser.constructs.contentInitial,pt,Ft);let tt;return Ye;function pt(Pn){if(Pn===null){Ce.consume(Pn);return}return Ce.enter("lineEnding"),Ce.consume(Pn),Ce.exit("lineEnding"),(0,lr.f)(Ce,Ye,"linePrefix")}function Ft(Pn){return Ce.enter("paragraph"),_t(Pn)}function _t(Pn){const br=Ce.enter("chunkText",{contentType:"text",previous:tt});return tt&&(tt.next=br),tt=br,rn(Pn)}function rn(Pn){if(Pn===null){Ce.exit("chunkText"),Ce.exit("paragraph"),Ce.consume(Pn);return}return(0,qt.Ch)(Pn)?(Ce.consume(Pn),Ce.exit("chunkText"),_t):(Ce.consume(Pn),rn)}}const Or={tokenize:ui},Nn={tokenize:$r};function ui(Ce){const Ye=this,tt=[];let pt=0,Ft,_t,rn;return Pn;function Pn(Bo){if(pt<tt.length){const Ya=tt[pt];return Ye.containerState=Ya[1],Ce.attempt(Ya[0].continuation,br,wr)(Bo)}return wr(Bo)}function br(Bo){if(pt++,Ye.containerState._closeFlow){Ye.containerState._closeFlow=void 0,Ft&&Ro();const Ya=Ye.events.length;let Xa=Ya,Zi;for(;Xa--;)if(Ye.events[Xa][0]==="exit"&&Ye.events[Xa][1].type==="chunkFlow"){Zi=Ye.events[Xa][1].end;break}io(pt);let es=Ya;for(;es<Ye.events.length;)Ye.events[es][1].end=xa({},Zi),es++;return zt(Ye.events,Xa+1,0,Ye.events.slice(Ya)),Ye.events.length=es,wr(Bo)}return Pn(Bo)}function wr(Bo){if(pt===tt.length){if(!Ft)return Br(Bo);if(Ft.currentConstruct&&Ft.currentConstruct.concrete)return Co(Bo);Ye.interrupt=!!(Ft.currentConstruct&&!Ft._gfmTableDynamicInterruptHack)}return Ye.containerState={},Ce.check(Nn,ir,Yr)(Bo)}function ir(Bo){return Ft&&Ro(),io(pt),Br(Bo)}function Yr(Bo){return Ye.parser.lazy[Ye.now().line]=pt!==tt.length,rn=Ye.now().offset,Co(Bo)}function Br(Bo){return Ye.containerState={},Ce.attempt(Nn,dr,Co)(Bo)}function dr(Bo){return pt++,tt.push([Ye.currentConstruct,Ye.containerState]),Br(Bo)}function Co(Bo){if(Bo===null){Ft&&Ro(),io(0),Ce.consume(Bo);return}return Ft=Ft||Ye.parser.flow(Ye.now()),Ce.enter("chunkFlow",{_tokenizer:Ft,contentType:"flow",previous:_t}),zo(Bo)}function zo(Bo){if(Bo===null){ea(Ce.exit("chunkFlow"),!0),io(0),Ce.consume(Bo);return}return(0,qt.Ch)(Bo)?(Ce.consume(Bo),ea(Ce.exit("chunkFlow")),pt=0,Ye.interrupt=void 0,Pn):(Ce.consume(Bo),zo)}function ea(Bo,Ya){const Xa=Ye.sliceStream(Bo);if(Ya&&Xa.push(null),Bo.previous=_t,_t&&(_t.next=Bo),_t=Bo,Ft.defineSkip(Bo.start),Ft.write(Xa),Ye.parser.lazy[Bo.start.line]){let Zi=Ft.events.length;for(;Zi--;)if(Ft.events[Zi][1].start.offset<rn&&(!Ft.events[Zi][1].end||Ft.events[Zi][1].end.offset>rn))return;const es=Ye.events.length;let Za=es,ja,bo;for(;Za--;)if(Ye.events[Za][0]==="exit"&&Ye.events[Za][1].type==="chunkFlow"){if(ja){bo=Ye.events[Za][1].end;break}ja=!0}for(io(pt),Zi=es;Zi<Ye.events.length;)Ye.events[Zi][1].end=xa({},bo),Zi++;zt(Ye.events,Za+1,0,Ye.events.slice(es)),Ye.events.length=Zi}}function io(Bo){let Ya=tt.length;for(;Ya-- >Bo;){const Xa=tt[Ya];Ye.containerState=Xa[1],Xa[0].exit.call(Ye,Ce)}tt.length=Bo}function Ro(){Ft.write([null]),_t=void 0,Ft=void 0,Ye.containerState._closeFlow=void 0}}function $r(Ce,Ye,tt){return(0,lr.f)(Ce,Ce.attempt(this.parser.constructs.document,Ye,tt),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const or={partial:!0,tokenize:Kr};function Kr(Ce,Ye,tt){return pt;function pt(_t){return(0,qt.xz)(_t)?(0,lr.f)(Ce,Ft,"linePrefix")(_t):Ft(_t)}function Ft(_t){return _t===null||(0,qt.Ch)(_t)?Ye(_t):tt(_t)}}const oi={resolve:kr,tokenize:Pr},Me={partial:!0,tokenize:ei};function kr(Ce){return Mt(Ce),Ce}function Pr(Ce,Ye){let tt;return pt;function pt(Pn){return Ce.enter("content"),tt=Ce.enter("chunkContent",{contentType:"content"}),Ft(Pn)}function Ft(Pn){return Pn===null?_t(Pn):(0,qt.Ch)(Pn)?Ce.check(Me,rn,_t)(Pn):(Ce.consume(Pn),Ft)}function _t(Pn){return Ce.exit("chunkContent"),Ce.exit("content"),Ye(Pn)}function rn(Pn){return Ce.consume(Pn),Ce.exit("chunkContent"),tt.next=Ce.enter("chunkContent",{contentType:"content",previous:tt}),tt=tt.next,Ft}}function ei(Ce,Ye,tt){const pt=this;return Ft;function Ft(rn){return Ce.exit("chunkContent"),Ce.enter("lineEnding"),Ce.consume(rn),Ce.exit("lineEnding"),(0,lr.f)(Ce,_t,"linePrefix")}function _t(rn){if(rn===null||(0,qt.Ch)(rn))return tt(rn);const Pn=pt.events[pt.events.length-1];return!pt.parser.constructs.disable.null.includes("codeIndented")&&Pn&&Pn[1].type==="linePrefix"&&Pn[2].sliceSerialize(Pn[1],!0).length>=4?Ye(rn):Ce.interrupt(pt.parser.constructs.flow,tt,Ye)(rn)}}const Ii={tokenize:Di};function Di(Ce){const Ye=this,tt=Ce.attempt(or,pt,Ce.attempt(this.parser.constructs.flowInitial,Ft,(0,lr.f)(Ce,Ce.attempt(this.parser.constructs.flow,Ft,Ce.attempt(oi,Ft)),"linePrefix")));return tt;function pt(_t){if(_t===null){Ce.consume(_t);return}return Ce.enter("lineEndingBlank"),Ce.consume(_t),Ce.exit("lineEndingBlank"),Ye.currentConstruct=void 0,tt}function Ft(_t){if(_t===null){Ce.consume(_t);return}return Ce.enter("lineEnding"),Ce.consume(_t),Ce.exit("lineEnding"),Ye.currentConstruct=void 0,tt}}const Ti={resolveAll:hn()},Vr=dn("string"),Fr=dn("text");function dn(Ce){return{resolveAll:hn(Ce==="text"?un:void 0),tokenize:Ye};function Ye(tt){const pt=this,Ft=this.parser.constructs[Ce],_t=tt.attempt(Ft,rn,Pn);return rn;function rn(ir){return wr(ir)?_t(ir):Pn(ir)}function Pn(ir){if(ir===null){tt.consume(ir);return}return tt.enter("data"),tt.consume(ir),br}function br(ir){return wr(ir)?(tt.exit("data"),_t(ir)):(tt.consume(ir),br)}function wr(ir){if(ir===null)return!0;const Yr=Ft[ir];let Br=-1;if(Yr)for(;++Br<Yr.length;){const dr=Yr[Br];if(!dr.previous||dr.previous.call(pt,pt.previous))return!0}return!1}}}function hn(Ce){return Ye;function Ye(tt,pt){let Ft=-1,_t;for(;++Ft<=tt.length;)_t===void 0?tt[Ft]&&tt[Ft][1].type==="data"&&(_t=Ft,Ft++):(!tt[Ft]||tt[Ft][1].type!=="data")&&(Ft!==_t+2&&(tt[_t][1].end=tt[Ft-1][1].end,tt.splice(_t+2,Ft-_t-2),Ft=_t+2),_t=void 0);return Ce?Ce(tt,pt):tt}}function un(Ce,Ye){let tt=0;for(;++tt<=Ce.length;)if((tt===Ce.length||Ce[tt][1].type==="lineEnding")&&Ce[tt-1][1].type==="data"){const pt=Ce[tt-1][1],Ft=Ye.sliceStream(pt);let _t=Ft.length,rn=-1,Pn=0,br;for(;_t--;){const wr=Ft[_t];if(typeof wr=="string"){for(rn=wr.length;wr.charCodeAt(rn-1)===32;)Pn++,rn--;if(rn)break;rn=-1}else if(wr===-2)br=!0,Pn++;else if(wr!==-1){_t++;break}}if(Ye._contentTypeTextTrailing&&tt===Ce.length&&(Pn=0),Pn){const wr={type:tt===Ce.length||br||Pn<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:_t?rn:pt.start._bufferIndex+rn,_index:pt.start._index+_t,line:pt.end.line,column:pt.end.column-Pn,offset:pt.end.offset-Pn},end:xa({},pt.end)};pt.end=xa({},wr.start),pt.start.offset===pt.end.offset?Object.assign(pt,wr):(Ce.splice(tt,0,["enter",wr,Ye],["exit",wr,Ye]),tt+=2)}tt++}return Ce}const Ur={name:"thematicBreak",tokenize:Tr};function Tr(Ce,Ye,tt){let pt=0,Ft;return _t;function _t(wr){return Ce.enter("thematicBreak"),rn(wr)}function rn(wr){return Ft=wr,Pn(wr)}function Pn(wr){return wr===Ft?(Ce.enter("thematicBreakSequence"),br(wr)):pt>=3&&(wr===null||(0,qt.Ch)(wr))?(Ce.exit("thematicBreak"),Ye(wr)):tt(wr)}function br(wr){return wr===Ft?(Ce.consume(wr),pt++,br):(Ce.exit("thematicBreakSequence"),(0,qt.xz)(wr)?(0,lr.f)(Ce,Pn,"whitespace")(wr):Pn(wr))}}const Zr={continuation:{tokenize:fn},exit:kt,name:"list",tokenize:Cn},sr={partial:!0,tokenize:Gn},Rr={partial:!0,tokenize:Wr};function Cn(Ce,Ye,tt){const pt=this,Ft=pt.events[pt.events.length-1];let _t=Ft&&Ft[1].type==="linePrefix"?Ft[2].sliceSerialize(Ft[1],!0).length:0,rn=0;return Pn;function Pn(dr){const Co=pt.containerState.type||(dr===42||dr===43||dr===45?"listUnordered":"listOrdered");if(Co==="listUnordered"?!pt.containerState.marker||dr===pt.containerState.marker:(0,qt.pY)(dr)){if(pt.containerState.type||(pt.containerState.type=Co,Ce.enter(Co,{_container:!0})),Co==="listUnordered")return Ce.enter("listItemPrefix"),dr===42||dr===45?Ce.check(Ur,tt,wr)(dr):wr(dr);if(!pt.interrupt||dr===49)return Ce.enter("listItemPrefix"),Ce.enter("listItemValue"),br(dr)}return tt(dr)}function br(dr){return(0,qt.pY)(dr)&&++rn<10?(Ce.consume(dr),br):(!pt.interrupt||rn<2)&&(pt.containerState.marker?dr===pt.containerState.marker:dr===41||dr===46)?(Ce.exit("listItemValue"),wr(dr)):tt(dr)}function wr(dr){return Ce.enter("listItemMarker"),Ce.consume(dr),Ce.exit("listItemMarker"),pt.containerState.marker=pt.containerState.marker||dr,Ce.check(or,pt.interrupt?tt:ir,Ce.attempt(sr,Br,Yr))}function ir(dr){return pt.containerState.initialBlankLine=!0,_t++,Br(dr)}function Yr(dr){return(0,qt.xz)(dr)?(Ce.enter("listItemPrefixWhitespace"),Ce.consume(dr),Ce.exit("listItemPrefixWhitespace"),Br):tt(dr)}function Br(dr){return pt.containerState.size=_t+pt.sliceSerialize(Ce.exit("listItemPrefix"),!0).length,Ye(dr)}}function fn(Ce,Ye,tt){const pt=this;return pt.containerState._closeFlow=void 0,Ce.check(or,Ft,_t);function Ft(Pn){return pt.containerState.furtherBlankLines=pt.containerState.furtherBlankLines||pt.containerState.initialBlankLine,(0,lr.f)(Ce,Ye,"listItemIndent",pt.containerState.size+1)(Pn)}function _t(Pn){return pt.containerState.furtherBlankLines||!(0,qt.xz)(Pn)?(pt.containerState.furtherBlankLines=void 0,pt.containerState.initialBlankLine=void 0,rn(Pn)):(pt.containerState.furtherBlankLines=void 0,pt.containerState.initialBlankLine=void 0,Ce.attempt(Rr,Ye,rn)(Pn))}function rn(Pn){return pt.containerState._closeFlow=!0,pt.interrupt=void 0,(0,lr.f)(Ce,Ce.attempt(Zr,Ye,tt),"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Pn)}}function Wr(Ce,Ye,tt){const pt=this;return(0,lr.f)(Ce,Ft,"listItemIndent",pt.containerState.size+1);function Ft(_t){const rn=pt.events[pt.events.length-1];return rn&&rn[1].type==="listItemIndent"&&rn[2].sliceSerialize(rn[1],!0).length===pt.containerState.size?Ye(_t):tt(_t)}}function kt(Ce){Ce.exit(this.containerState.type)}function Gn(Ce,Ye,tt){const pt=this;return(0,lr.f)(Ce,Ft,"listItemPrefixWhitespace",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Ft(_t){const rn=pt.events[pt.events.length-1];return!(0,qt.xz)(_t)&&rn&&rn[1].type==="listItemPrefixWhitespace"?Ye(_t):tt(_t)}}const vr={continuation:{tokenize:nn},exit:Qn,name:"blockQuote",tokenize:Qr};function Qr(Ce,Ye,tt){const pt=this;return Ft;function Ft(rn){if(rn===62){const Pn=pt.containerState;return Pn.open||(Ce.enter("blockQuote",{_container:!0}),Pn.open=!0),Ce.enter("blockQuotePrefix"),Ce.enter("blockQuoteMarker"),Ce.consume(rn),Ce.exit("blockQuoteMarker"),_t}return tt(rn)}function _t(rn){return(0,qt.xz)(rn)?(Ce.enter("blockQuotePrefixWhitespace"),Ce.consume(rn),Ce.exit("blockQuotePrefixWhitespace"),Ce.exit("blockQuotePrefix"),Ye):(Ce.exit("blockQuotePrefix"),Ye(rn))}}function nn(Ce,Ye,tt){const pt=this;return Ft;function Ft(rn){return(0,qt.xz)(rn)?(0,lr.f)(Ce,_t,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(rn):_t(rn)}function _t(rn){return Ce.attempt(vr,Ye,tt)(rn)}}function Qn(Ce){Ce.exit("blockQuote")}function Dn(Ce,Ye,tt,pt,Ft,_t,rn,Pn,br){const wr=br||Number.POSITIVE_INFINITY;let ir=0;return Yr;function Yr(io){return io===60?(Ce.enter(pt),Ce.enter(Ft),Ce.enter(_t),Ce.consume(io),Ce.exit(_t),Br):io===null||io===32||io===41||(0,qt.Av)(io)?tt(io):(Ce.enter(pt),Ce.enter(rn),Ce.enter(Pn),Ce.enter("chunkString",{contentType:"string"}),zo(io))}function Br(io){return io===62?(Ce.enter(_t),Ce.consume(io),Ce.exit(_t),Ce.exit(Ft),Ce.exit(pt),Ye):(Ce.enter(Pn),Ce.enter("chunkString",{contentType:"string"}),dr(io))}function dr(io){return io===62?(Ce.exit("chunkString"),Ce.exit(Pn),Br(io)):io===null||io===60||(0,qt.Ch)(io)?tt(io):(Ce.consume(io),io===92?Co:dr)}function Co(io){return io===60||io===62||io===92?(Ce.consume(io),dr):dr(io)}function zo(io){return!ir&&(io===null||io===41||(0,qt.z3)(io))?(Ce.exit("chunkString"),Ce.exit(Pn),Ce.exit(rn),Ce.exit(pt),Ye(io)):ir<wr&&io===40?(Ce.consume(io),ir++,zo):io===41?(Ce.consume(io),ir--,zo):io===null||io===32||io===40||(0,qt.Av)(io)?tt(io):(Ce.consume(io),io===92?ea:zo)}function ea(io){return io===40||io===41||io===92?(Ce.consume(io),zo):zo(io)}}function xn(Ce,Ye,tt,pt,Ft,_t){const rn=this;let Pn=0,br;return wr;function wr(dr){return Ce.enter(pt),Ce.enter(Ft),Ce.consume(dr),Ce.exit(Ft),Ce.enter(_t),ir}function ir(dr){return Pn>999||dr===null||dr===91||dr===93&&!br||dr===94&&!Pn&&"_hiddenFootnoteSupport"in rn.parser.constructs?tt(dr):dr===93?(Ce.exit(_t),Ce.enter(Ft),Ce.consume(dr),Ce.exit(Ft),Ce.exit(pt),Ye):(0,qt.Ch)(dr)?(Ce.enter("lineEnding"),Ce.consume(dr),Ce.exit("lineEnding"),ir):(Ce.enter("chunkString",{contentType:"string"}),Yr(dr))}function Yr(dr){return dr===null||dr===91||dr===93||(0,qt.Ch)(dr)||Pn++>999?(Ce.exit("chunkString"),ir(dr)):(Ce.consume(dr),br||(br=!(0,qt.xz)(dr)),dr===92?Br:Yr)}function Br(dr){return dr===91||dr===92||dr===93?(Ce.consume(dr),Pn++,Yr):Yr(dr)}}function Ge(Ce,Ye,tt,pt,Ft,_t){let rn;return Pn;function Pn(Br){return Br===34||Br===39||Br===40?(Ce.enter(pt),Ce.enter(Ft),Ce.consume(Br),Ce.exit(Ft),rn=Br===40?41:Br,br):tt(Br)}function br(Br){return Br===rn?(Ce.enter(Ft),Ce.consume(Br),Ce.exit(Ft),Ce.exit(pt),Ye):(Ce.enter(_t),wr(Br))}function wr(Br){return Br===rn?(Ce.exit(_t),br(rn)):Br===null?tt(Br):(0,qt.Ch)(Br)?(Ce.enter("lineEnding"),Ce.consume(Br),Ce.exit("lineEnding"),(0,lr.f)(Ce,wr,"linePrefix")):(Ce.enter("chunkString",{contentType:"string"}),ir(Br))}function ir(Br){return Br===rn||Br===null||(0,qt.Ch)(Br)?(Ce.exit("chunkString"),wr(Br)):(Ce.consume(Br),Br===92?Yr:ir)}function Yr(Br){return Br===rn||Br===92?(Ce.consume(Br),ir):ir(Br)}}function Jr(Ce,Ye){let tt;return pt;function pt(Ft){return(0,qt.Ch)(Ft)?(Ce.enter("lineEnding"),Ce.consume(Ft),Ce.exit("lineEnding"),tt=!0,pt):(0,qt.xz)(Ft)?(0,lr.f)(Ce,pt,tt?"linePrefix":"lineSuffix")(Ft):Ye(Ft)}}function Hr(Ce){return Ce.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jn={name:"definition",tokenize:ti},hi={partial:!0,tokenize:Si};function ti(Ce,Ye,tt){const pt=this;let Ft;return _t;function _t(dr){return Ce.enter("definition"),rn(dr)}function rn(dr){return xn.call(pt,Ce,Pn,tt,"definitionLabel","definitionLabelMarker","definitionLabelString")(dr)}function Pn(dr){return Ft=Hr(pt.sliceSerialize(pt.events[pt.events.length-1][1]).slice(1,-1)),dr===58?(Ce.enter("definitionMarker"),Ce.consume(dr),Ce.exit("definitionMarker"),br):tt(dr)}function br(dr){return(0,qt.z3)(dr)?Jr(Ce,wr)(dr):wr(dr)}function wr(dr){return Dn(Ce,ir,tt,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(dr)}function ir(dr){return Ce.attempt(hi,Yr,Yr)(dr)}function Yr(dr){return(0,qt.xz)(dr)?(0,lr.f)(Ce,Br,"whitespace")(dr):Br(dr)}function Br(dr){return dr===null||(0,qt.Ch)(dr)?(Ce.exit("definition"),pt.parser.defined.push(Ft),Ye(dr)):tt(dr)}}function Si(Ce,Ye,tt){return pt;function pt(Pn){return(0,qt.z3)(Pn)?Jr(Ce,Ft)(Pn):tt(Pn)}function Ft(Pn){return Ge(Ce,_t,tt,"definitionTitle","definitionTitleMarker","definitionTitleString")(Pn)}function _t(Pn){return(0,qt.xz)(Pn)?(0,lr.f)(Ce,rn,"whitespace")(Pn):rn(Pn)}function rn(Pn){return Pn===null||(0,qt.Ch)(Pn)?Ye(Pn):tt(Pn)}}const nr={name:"codeIndented",tokenize:xi},vn={partial:!0,tokenize:zi};function xi(Ce,Ye,tt){const pt=this;return Ft;function Ft(wr){return Ce.enter("codeIndented"),(0,lr.f)(Ce,_t,"linePrefix",5)(wr)}function _t(wr){const ir=pt.events[pt.events.length-1];return ir&&ir[1].type==="linePrefix"&&ir[2].sliceSerialize(ir[1],!0).length>=4?rn(wr):tt(wr)}function rn(wr){return wr===null?br(wr):(0,qt.Ch)(wr)?Ce.attempt(vn,rn,br)(wr):(Ce.enter("codeFlowValue"),Pn(wr))}function Pn(wr){return wr===null||(0,qt.Ch)(wr)?(Ce.exit("codeFlowValue"),rn(wr)):(Ce.consume(wr),Pn)}function br(wr){return Ce.exit("codeIndented"),Ye(wr)}}function zi(Ce,Ye,tt){const pt=this;return Ft;function Ft(rn){return pt.parser.lazy[pt.now().line]?tt(rn):(0,qt.Ch)(rn)?(Ce.enter("lineEnding"),Ce.consume(rn),Ce.exit("lineEnding"),Ft):(0,lr.f)(Ce,_t,"linePrefix",5)(rn)}function _t(rn){const Pn=pt.events[pt.events.length-1];return Pn&&Pn[1].type==="linePrefix"&&Pn[2].sliceSerialize(Pn[1],!0).length>=4?Ye(rn):(0,qt.Ch)(rn)?Ft(rn):tt(rn)}}const Ln={name:"headingAtx",resolve:Xr,tokenize:fi};function Xr(Ce,Ye){let tt=Ce.length-2,pt=3,Ft,_t;return Ce[pt][1].type==="whitespace"&&(pt+=2),tt-2>pt&&Ce[tt][1].type==="whitespace"&&(tt-=2),Ce[tt][1].type==="atxHeadingSequence"&&(pt===tt-1||tt-4>pt&&Ce[tt-2][1].type==="whitespace")&&(tt-=pt+1===tt?2:4),tt>pt&&(Ft={type:"atxHeadingText",start:Ce[pt][1].start,end:Ce[tt][1].end},_t={type:"chunkText",start:Ce[pt][1].start,end:Ce[tt][1].end,contentType:"text"},zt(Ce,pt,tt-pt+1,[["enter",Ft,Ye],["enter",_t,Ye],["exit",_t,Ye],["exit",Ft,Ye]])),Ce}function fi(Ce,Ye,tt){let pt=0;return Ft;function Ft(ir){return Ce.enter("atxHeading"),_t(ir)}function _t(ir){return Ce.enter("atxHeadingSequence"),rn(ir)}function rn(ir){return ir===35&&pt++<6?(Ce.consume(ir),rn):ir===null||(0,qt.z3)(ir)?(Ce.exit("atxHeadingSequence"),Pn(ir)):tt(ir)}function Pn(ir){return ir===35?(Ce.enter("atxHeadingSequence"),br(ir)):ir===null||(0,qt.Ch)(ir)?(Ce.exit("atxHeading"),Ye(ir)):(0,qt.xz)(ir)?(0,lr.f)(Ce,Pn,"whitespace")(ir):(Ce.enter("atxHeadingText"),wr(ir))}function br(ir){return ir===35?(Ce.consume(ir),br):(Ce.exit("atxHeadingSequence"),Pn(ir))}function wr(ir){return ir===null||ir===35||(0,qt.z3)(ir)?(Ce.exit("atxHeadingText"),Pn(ir)):(Ce.consume(ir),wr)}}const wi={name:"setextUnderline",resolveTo:ai,tokenize:Ni};function ai(Ce,Ye){let tt=Ce.length,pt,Ft,_t;for(;tt--;)if(Ce[tt][0]==="enter"){if(Ce[tt][1].type==="content"){pt=tt;break}Ce[tt][1].type==="paragraph"&&(Ft=tt)}else Ce[tt][1].type==="content"&&Ce.splice(tt,1),!_t&&Ce[tt][1].type==="definition"&&(_t=tt);const rn={type:"setextHeading",start:xa({},Ce[pt][1].start),end:xa({},Ce[Ce.length-1][1].end)};return Ce[Ft][1].type="setextHeadingText",_t?(Ce.splice(Ft,0,["enter",rn,Ye]),Ce.splice(_t+1,0,["exit",Ce[pt][1],Ye]),Ce[pt][1].end=xa({},Ce[_t][1].end)):Ce[pt][1]=rn,Ce.push(["exit",rn,Ye]),Ce}function Ni(Ce,Ye,tt){const pt=this;let Ft;return _t;function _t(wr){let ir=pt.events.length,Yr;for(;ir--;)if(pt.events[ir][1].type!=="lineEnding"&&pt.events[ir][1].type!=="linePrefix"&&pt.events[ir][1].type!=="content"){Yr=pt.events[ir][1].type==="paragraph";break}return!pt.parser.lazy[pt.now().line]&&(pt.interrupt||Yr)?(Ce.enter("setextHeadingLine"),Ft=wr,rn(wr)):tt(wr)}function rn(wr){return Ce.enter("setextHeadingLineSequence"),Pn(wr)}function Pn(wr){return wr===Ft?(Ce.consume(wr),Pn):(Ce.exit("setextHeadingLineSequence"),(0,qt.xz)(wr)?(0,lr.f)(Ce,br,"lineSuffix")(wr):br(wr))}function br(wr){return wr===null||(0,qt.Ch)(wr)?(Ce.exit("setextHeadingLine"),Ye(wr)):tt(wr)}}const Xi=["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"],Vi=["pre","script","style","textarea"],Bi={concrete:!0,name:"htmlFlow",resolveTo:_i,tokenize:ur},Hi={partial:!0,tokenize:Pi},rr={partial:!0,tokenize:vi};function _i(Ce){let Ye=Ce.length;for(;Ye--&&!(Ce[Ye][0]==="enter"&&Ce[Ye][1].type==="htmlFlow"););return Ye>1&&Ce[Ye-2][1].type==="linePrefix"&&(Ce[Ye][1].start=Ce[Ye-2][1].start,Ce[Ye+1][1].start=Ce[Ye-2][1].start,Ce.splice(Ye-2,2)),Ce}function ur(Ce,Ye,tt){const pt=this;let Ft,_t,rn,Pn,br;return wr;function wr(Ir){return ir(Ir)}function ir(Ir){return Ce.enter("htmlFlow"),Ce.enter("htmlFlowData"),Ce.consume(Ir),Yr}function Yr(Ir){return Ir===33?(Ce.consume(Ir),Br):Ir===47?(Ce.consume(Ir),_t=!0,zo):Ir===63?(Ce.consume(Ir),Ft=3,pt.interrupt?Ye:Ar):(0,qt.jv)(Ir)?(Ce.consume(Ir),rn=String.fromCharCode(Ir),ea):tt(Ir)}function Br(Ir){return Ir===45?(Ce.consume(Ir),Ft=2,dr):Ir===91?(Ce.consume(Ir),Ft=5,Pn=0,Co):(0,qt.jv)(Ir)?(Ce.consume(Ir),Ft=4,pt.interrupt?Ye:Ar):tt(Ir)}function dr(Ir){return Ir===45?(Ce.consume(Ir),pt.interrupt?Ye:Ar):tt(Ir)}function Co(Ir){const ol="CDATA[";return Ir===ol.charCodeAt(Pn++)?(Ce.consume(Ir),Pn===ol.length?pt.interrupt?Ye:ls:Co):tt(Ir)}function zo(Ir){return(0,qt.jv)(Ir)?(Ce.consume(Ir),rn=String.fromCharCode(Ir),ea):tt(Ir)}function ea(Ir){if(Ir===null||Ir===47||Ir===62||(0,qt.z3)(Ir)){const ol=Ir===47,wu=rn.toLowerCase();return!ol&&!_t&&Vi.includes(wu)?(Ft=1,pt.interrupt?Ye(Ir):ls(Ir)):Xi.includes(rn.toLowerCase())?(Ft=6,ol?(Ce.consume(Ir),io):pt.interrupt?Ye(Ir):ls(Ir)):(Ft=7,pt.interrupt&&!pt.parser.lazy[pt.now().line]?tt(Ir):_t?Ro(Ir):Bo(Ir))}return Ir===45||(0,qt.H$)(Ir)?(Ce.consume(Ir),rn+=String.fromCharCode(Ir),ea):tt(Ir)}function io(Ir){return Ir===62?(Ce.consume(Ir),pt.interrupt?Ye:ls):tt(Ir)}function Ro(Ir){return(0,qt.xz)(Ir)?(Ce.consume(Ir),Ro):bo(Ir)}function Bo(Ir){return Ir===47?(Ce.consume(Ir),bo):Ir===58||Ir===95||(0,qt.jv)(Ir)?(Ce.consume(Ir),Ya):(0,qt.xz)(Ir)?(Ce.consume(Ir),Bo):bo(Ir)}function Ya(Ir){return Ir===45||Ir===46||Ir===58||Ir===95||(0,qt.H$)(Ir)?(Ce.consume(Ir),Ya):Xa(Ir)}function Xa(Ir){return Ir===61?(Ce.consume(Ir),Zi):(0,qt.xz)(Ir)?(Ce.consume(Ir),Xa):Bo(Ir)}function Zi(Ir){return Ir===null||Ir===60||Ir===61||Ir===62||Ir===96?tt(Ir):Ir===34||Ir===39?(Ce.consume(Ir),br=Ir,es):(0,qt.xz)(Ir)?(Ce.consume(Ir),Zi):Za(Ir)}function es(Ir){return Ir===br?(Ce.consume(Ir),br=null,ja):Ir===null||(0,qt.Ch)(Ir)?tt(Ir):(Ce.consume(Ir),es)}function Za(Ir){return Ir===null||Ir===34||Ir===39||Ir===47||Ir===60||Ir===61||Ir===62||Ir===96||(0,qt.z3)(Ir)?Xa(Ir):(Ce.consume(Ir),Za)}function ja(Ir){return Ir===47||Ir===62||(0,qt.xz)(Ir)?Bo(Ir):tt(Ir)}function bo(Ir){return Ir===62?(Ce.consume(Ir),fl):tt(Ir)}function fl(Ir){return Ir===null||(0,qt.Ch)(Ir)?ls(Ir):(0,qt.xz)(Ir)?(Ce.consume(Ir),fl):tt(Ir)}function ls(Ir){return Ir===45&&Ft===2?(Ce.consume(Ir),ps):Ir===60&&Ft===1?(Ce.consume(Ir),Js):Ir===62&&Ft===4?(Ce.consume(Ir),Nl):Ir===63&&Ft===3?(Ce.consume(Ir),Ar):Ir===93&&Ft===5?(Ce.consume(Ir),Kl):(0,qt.Ch)(Ir)&&(Ft===6||Ft===7)?(Ce.exit("htmlFlowData"),Ce.check(Hi,Ol,Xo)(Ir)):Ir===null||(0,qt.Ch)(Ir)?(Ce.exit("htmlFlowData"),Xo(Ir)):(Ce.consume(Ir),ls)}function Xo(Ir){return Ce.check(rr,Zo,Ol)(Ir)}function Zo(Ir){return Ce.enter("lineEnding"),Ce.consume(Ir),Ce.exit("lineEnding"),wa}function wa(Ir){return Ir===null||(0,qt.Ch)(Ir)?Xo(Ir):(Ce.enter("htmlFlowData"),ls(Ir))}function ps(Ir){return Ir===45?(Ce.consume(Ir),Ar):ls(Ir)}function Js(Ir){return Ir===47?(Ce.consume(Ir),rn="",El):ls(Ir)}function El(Ir){if(Ir===62){const ol=rn.toLowerCase();return Vi.includes(ol)?(Ce.consume(Ir),Nl):ls(Ir)}return(0,qt.jv)(Ir)&&rn.length<8?(Ce.consume(Ir),rn+=String.fromCharCode(Ir),El):ls(Ir)}function Kl(Ir){return Ir===93?(Ce.consume(Ir),Ar):ls(Ir)}function Ar(Ir){return Ir===62?(Ce.consume(Ir),Nl):Ir===45&&Ft===2?(Ce.consume(Ir),Ar):ls(Ir)}function Nl(Ir){return Ir===null||(0,qt.Ch)(Ir)?(Ce.exit("htmlFlowData"),Ol(Ir)):(Ce.consume(Ir),Nl)}function Ol(Ir){return Ce.exit("htmlFlow"),Ye(Ir)}}function vi(Ce,Ye,tt){const pt=this;return Ft;function Ft(rn){return(0,qt.Ch)(rn)?(Ce.enter("lineEnding"),Ce.consume(rn),Ce.exit("lineEnding"),_t):tt(rn)}function _t(rn){return pt.parser.lazy[pt.now().line]?tt(rn):Ye(rn)}}function Pi(Ce,Ye,tt){return pt;function pt(Ft){return Ce.enter("lineEnding"),Ce.consume(Ft),Ce.exit("lineEnding"),Ce.attempt(or,Ye,tt)}}const Mi={partial:!0,tokenize:mo},po={concrete:!0,name:"codeFenced",tokenize:Oo};function Oo(Ce,Ye,tt){const pt=this,Ft={partial:!0,tokenize:Xa};let _t=0,rn=0,Pn;return br;function br(Zi){return wr(Zi)}function wr(Zi){const es=pt.events[pt.events.length-1];return _t=es&&es[1].type==="linePrefix"?es[2].sliceSerialize(es[1],!0).length:0,Pn=Zi,Ce.enter("codeFenced"),Ce.enter("codeFencedFence"),Ce.enter("codeFencedFenceSequence"),ir(Zi)}function ir(Zi){return Zi===Pn?(rn++,Ce.consume(Zi),ir):rn<3?tt(Zi):(Ce.exit("codeFencedFenceSequence"),(0,qt.xz)(Zi)?(0,lr.f)(Ce,Yr,"whitespace")(Zi):Yr(Zi))}function Yr(Zi){return Zi===null||(0,qt.Ch)(Zi)?(Ce.exit("codeFencedFence"),pt.interrupt?Ye(Zi):Ce.check(Mi,zo,Ya)(Zi)):(Ce.enter("codeFencedFenceInfo"),Ce.enter("chunkString",{contentType:"string"}),Br(Zi))}function Br(Zi){return Zi===null||(0,qt.Ch)(Zi)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceInfo"),Yr(Zi)):(0,qt.xz)(Zi)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceInfo"),(0,lr.f)(Ce,dr,"whitespace")(Zi)):Zi===96&&Zi===Pn?tt(Zi):(Ce.consume(Zi),Br)}function dr(Zi){return Zi===null||(0,qt.Ch)(Zi)?Yr(Zi):(Ce.enter("codeFencedFenceMeta"),Ce.enter("chunkString",{contentType:"string"}),Co(Zi))}function Co(Zi){return Zi===null||(0,qt.Ch)(Zi)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceMeta"),Yr(Zi)):Zi===96&&Zi===Pn?tt(Zi):(Ce.consume(Zi),Co)}function zo(Zi){return Ce.attempt(Ft,Ya,ea)(Zi)}function ea(Zi){return Ce.enter("lineEnding"),Ce.consume(Zi),Ce.exit("lineEnding"),io}function io(Zi){return _t>0&&(0,qt.xz)(Zi)?(0,lr.f)(Ce,Ro,"linePrefix",_t+1)(Zi):Ro(Zi)}function Ro(Zi){return Zi===null||(0,qt.Ch)(Zi)?Ce.check(Mi,zo,Ya)(Zi):(Ce.enter("codeFlowValue"),Bo(Zi))}function Bo(Zi){return Zi===null||(0,qt.Ch)(Zi)?(Ce.exit("codeFlowValue"),Ro(Zi)):(Ce.consume(Zi),Bo)}function Ya(Zi){return Ce.exit("codeFenced"),Ye(Zi)}function Xa(Zi,es,Za){let ja=0;return bo;function bo(wa){return Zi.enter("lineEnding"),Zi.consume(wa),Zi.exit("lineEnding"),fl}function fl(wa){return Zi.enter("codeFencedFence"),(0,qt.xz)(wa)?(0,lr.f)(Zi,ls,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(wa):ls(wa)}function ls(wa){return wa===Pn?(Zi.enter("codeFencedFenceSequence"),Xo(wa)):Za(wa)}function Xo(wa){return wa===Pn?(ja++,Zi.consume(wa),Xo):ja>=rn?(Zi.exit("codeFencedFenceSequence"),(0,qt.xz)(wa)?(0,lr.f)(Zi,Zo,"whitespace")(wa):Zo(wa)):Za(wa)}function Zo(wa){return wa===null||(0,qt.Ch)(wa)?(Zi.exit("codeFencedFence"),es(wa)):Za(wa)}}}function mo(Ce,Ye,tt){const pt=this;return Ft;function Ft(rn){return rn===null?tt(rn):(Ce.enter("lineEnding"),Ce.consume(rn),Ce.exit("lineEnding"),_t)}function _t(rn){return pt.parser.lazy[pt.now().line]?tt(rn):Ye(rn)}}const xo=document.createElement("i");function Fn(Ce){const Ye="&"+Ce+";";xo.innerHTML=Ye;const tt=xo.textContent;return tt.charCodeAt(tt.length-1)===59&&Ce!=="semi"||tt===Ye?!1:tt}const fr={name:"characterReference",tokenize:Rn};function Rn(Ce,Ye,tt){const pt=this;let Ft=0,_t,rn;return Pn;function Pn(Yr){return Ce.enter("characterReference"),Ce.enter("characterReferenceMarker"),Ce.consume(Yr),Ce.exit("characterReferenceMarker"),br}function br(Yr){return Yr===35?(Ce.enter("characterReferenceMarkerNumeric"),Ce.consume(Yr),Ce.exit("characterReferenceMarkerNumeric"),wr):(Ce.enter("characterReferenceValue"),_t=31,rn=qt.H$,ir(Yr))}function wr(Yr){return Yr===88||Yr===120?(Ce.enter("characterReferenceMarkerHexadecimal"),Ce.consume(Yr),Ce.exit("characterReferenceMarkerHexadecimal"),Ce.enter("characterReferenceValue"),_t=6,rn=qt.AF,ir):(Ce.enter("characterReferenceValue"),_t=7,rn=qt.pY,ir(Yr))}function ir(Yr){if(Yr===59&&Ft){const Br=Ce.exit("characterReferenceValue");return rn===qt.H$&&!Fn(pt.sliceSerialize(Br))?tt(Yr):(Ce.enter("characterReferenceMarker"),Ce.consume(Yr),Ce.exit("characterReferenceMarker"),Ce.exit("characterReference"),Ye)}return rn(Yr)&&Ft++<_t?(Ce.consume(Yr),ir):tt(Yr)}}const rt={name:"characterEscape",tokenize:jr};function jr(Ce,Ye,tt){return pt;function pt(_t){return Ce.enter("characterEscape"),Ce.enter("escapeMarker"),Ce.consume(_t),Ce.exit("escapeMarker"),Ft}function Ft(_t){return(0,qt.sR)(_t)?(Ce.enter("characterEscapeValue"),Ce.consume(_t),Ce.exit("characterEscapeValue"),Ce.exit("characterEscape"),Ye):tt(_t)}}const Sr={name:"lineEnding",tokenize:zr};function zr(Ce,Ye){return tt;function tt(pt){return Ce.enter("lineEnding"),Ce.consume(pt),Ce.exit("lineEnding"),(0,lr.f)(Ce,Ye,"linePrefix")}}function ni(Ce,Ye,tt){const pt=[];let Ft=-1;for(;++Ft<Ce.length;){const _t=Ce[Ft].resolveAll;_t&&!pt.includes(_t)&&(Ye=_t(Ye,tt),pt.push(_t))}return Ye}const pi={name:"labelEnd",resolveAll:Mn,resolveTo:Xn,tokenize:Hn},Er={tokenize:hr},ft={tokenize:$n},En={tokenize:cn};function Mn(Ce){let Ye=-1;const tt=[];for(;++Ye<Ce.length;){const pt=Ce[Ye][1];if(tt.push(Ce[Ye]),pt.type==="labelImage"||pt.type==="labelLink"||pt.type==="labelEnd"){const Ft=pt.type==="labelImage"?4:2;pt.type="data",Ye+=Ft}}return Ce.length!==tt.length&&zt(Ce,0,Ce.length,tt),Ce}function Xn(Ce,Ye){let tt=Ce.length,pt=0,Ft,_t,rn,Pn;for(;tt--;)if(Ft=Ce[tt][1],_t){if(Ft.type==="link"||Ft.type==="labelLink"&&Ft._inactive)break;Ce[tt][0]==="enter"&&Ft.type==="labelLink"&&(Ft._inactive=!0)}else if(rn){if(Ce[tt][0]==="enter"&&(Ft.type==="labelImage"||Ft.type==="labelLink")&&!Ft._balanced&&(_t=tt,Ft.type!=="labelLink")){pt=2;break}}else Ft.type==="labelEnd"&&(rn=tt);const br={type:Ce[_t][1].type==="labelLink"?"link":"image",start:xa({},Ce[_t][1].start),end:xa({},Ce[Ce.length-1][1].end)},wr={type:"label",start:xa({},Ce[_t][1].start),end:xa({},Ce[rn][1].end)},ir={type:"labelText",start:xa({},Ce[_t+pt+2][1].end),end:xa({},Ce[rn-2][1].start)};return Pn=[["enter",br,Ye],["enter",wr,Ye]],Pn=pn(Pn,Ce.slice(_t+1,_t+pt+3)),Pn=pn(Pn,[["enter",ir,Ye]]),Pn=pn(Pn,ni(Ye.parser.constructs.insideSpan.null,Ce.slice(_t+pt+4,rn-3),Ye)),Pn=pn(Pn,[["exit",ir,Ye],Ce[rn-2],Ce[rn-1],["exit",wr,Ye]]),Pn=pn(Pn,Ce.slice(rn+1)),Pn=pn(Pn,[["exit",br,Ye]]),zt(Ce,_t,Ce.length,Pn),Ce}function Hn(Ce,Ye,tt){const pt=this;let Ft=pt.events.length,_t,rn;for(;Ft--;)if((pt.events[Ft][1].type==="labelImage"||pt.events[Ft][1].type==="labelLink")&&!pt.events[Ft][1]._balanced){_t=pt.events[Ft][1];break}return Pn;function Pn(Br){return _t?_t._inactive?Yr(Br):(rn=pt.parser.defined.includes(Hr(pt.sliceSerialize({start:_t.end,end:pt.now()}))),Ce.enter("labelEnd"),Ce.enter("labelMarker"),Ce.consume(Br),Ce.exit("labelMarker"),Ce.exit("labelEnd"),br):tt(Br)}function br(Br){return Br===40?Ce.attempt(Er,ir,rn?ir:Yr)(Br):Br===91?Ce.attempt(ft,ir,rn?wr:Yr)(Br):rn?ir(Br):Yr(Br)}function wr(Br){return Ce.attempt(En,ir,Yr)(Br)}function ir(Br){return Ye(Br)}function Yr(Br){return _t._balanced=!0,tt(Br)}}function hr(Ce,Ye,tt){return pt;function pt(Yr){return Ce.enter("resource"),Ce.enter("resourceMarker"),Ce.consume(Yr),Ce.exit("resourceMarker"),Ft}function Ft(Yr){return(0,qt.z3)(Yr)?Jr(Ce,_t)(Yr):_t(Yr)}function _t(Yr){return Yr===41?ir(Yr):Dn(Ce,rn,Pn,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Yr)}function rn(Yr){return(0,qt.z3)(Yr)?Jr(Ce,br)(Yr):ir(Yr)}function Pn(Yr){return tt(Yr)}function br(Yr){return Yr===34||Yr===39||Yr===40?Ge(Ce,wr,tt,"resourceTitle","resourceTitleMarker","resourceTitleString")(Yr):ir(Yr)}function wr(Yr){return(0,qt.z3)(Yr)?Jr(Ce,ir)(Yr):ir(Yr)}function ir(Yr){return Yr===41?(Ce.enter("resourceMarker"),Ce.consume(Yr),Ce.exit("resourceMarker"),Ce.exit("resource"),Ye):tt(Yr)}}function $n(Ce,Ye,tt){const pt=this;return Ft;function Ft(Pn){return xn.call(pt,Ce,_t,rn,"reference","referenceMarker","referenceString")(Pn)}function _t(Pn){return pt.parser.defined.includes(Hr(pt.sliceSerialize(pt.events[pt.events.length-1][1]).slice(1,-1)))?Ye(Pn):tt(Pn)}function rn(Pn){return tt(Pn)}}function cn(Ce,Ye,tt){return pt;function pt(_t){return Ce.enter("reference"),Ce.enter("referenceMarker"),Ce.consume(_t),Ce.exit("referenceMarker"),Ft}function Ft(_t){return _t===93?(Ce.enter("referenceMarker"),Ce.consume(_t),Ce.exit("referenceMarker"),Ce.exit("reference"),Ye):tt(_t)}}const Kn={name:"labelStartImage",resolveAll:pi.resolveAll,tokenize:Gr};function Gr(Ce,Ye,tt){const pt=this;return Ft;function Ft(Pn){return Ce.enter("labelImage"),Ce.enter("labelImageMarker"),Ce.consume(Pn),Ce.exit("labelImageMarker"),_t}function _t(Pn){return Pn===91?(Ce.enter("labelMarker"),Ce.consume(Pn),Ce.exit("labelMarker"),Ce.exit("labelImage"),rn):tt(Pn)}function rn(Pn){return Pn===94&&"_hiddenFootnoteSupport"in pt.parser.constructs?tt(Pn):Ye(Pn)}}function Li(Ce){if(Ce===null||(0,qt.z3)(Ce)||(0,qt.B8)(Ce))return 1;if((0,qt.Xh)(Ce))return 2}const mi={name:"attention",resolveAll:gi,tokenize:Ri};function gi(Ce,Ye){let tt=-1,pt,Ft,_t,rn,Pn,br,wr,ir;for(;++tt<Ce.length;)if(Ce[tt][0]==="enter"&&Ce[tt][1].type==="attentionSequence"&&Ce[tt][1]._close){for(pt=tt;pt--;)if(Ce[pt][0]==="exit"&&Ce[pt][1].type==="attentionSequence"&&Ce[pt][1]._open&&Ye.sliceSerialize(Ce[pt][1]).charCodeAt(0)===Ye.sliceSerialize(Ce[tt][1]).charCodeAt(0)){if((Ce[pt][1]._close||Ce[tt][1]._open)&&(Ce[tt][1].end.offset-Ce[tt][1].start.offset)%3&&!((Ce[pt][1].end.offset-Ce[pt][1].start.offset+Ce[tt][1].end.offset-Ce[tt][1].start.offset)%3))continue;br=Ce[pt][1].end.offset-Ce[pt][1].start.offset>1&&Ce[tt][1].end.offset-Ce[tt][1].start.offset>1?2:1;const Yr=xa({},Ce[pt][1].end),Br=xa({},Ce[tt][1].start);Oi(Yr,-br),Oi(Br,br),rn={type:br>1?"strongSequence":"emphasisSequence",start:Yr,end:xa({},Ce[pt][1].end)},Pn={type:br>1?"strongSequence":"emphasisSequence",start:xa({},Ce[tt][1].start),end:Br},_t={type:br>1?"strongText":"emphasisText",start:xa({},Ce[pt][1].end),end:xa({},Ce[tt][1].start)},Ft={type:br>1?"strong":"emphasis",start:xa({},rn.start),end:xa({},Pn.end)},Ce[pt][1].end=xa({},rn.start),Ce[tt][1].start=xa({},Pn.end),wr=[],Ce[pt][1].end.offset-Ce[pt][1].start.offset&&(wr=pn(wr,[["enter",Ce[pt][1],Ye],["exit",Ce[pt][1],Ye]])),wr=pn(wr,[["enter",Ft,Ye],["enter",rn,Ye],["exit",rn,Ye],["enter",_t,Ye]]),wr=pn(wr,ni(Ye.parser.constructs.insideSpan.null,Ce.slice(pt+1,tt),Ye)),wr=pn(wr,[["exit",_t,Ye],["enter",Pn,Ye],["exit",Pn,Ye],["exit",Ft,Ye]]),Ce[tt][1].end.offset-Ce[tt][1].start.offset?(ir=2,wr=pn(wr,[["enter",Ce[tt][1],Ye],["exit",Ce[tt][1],Ye]])):ir=0,zt(Ce,pt-1,tt-pt+3,wr),tt=pt+wr.length-ir-2;break}}for(tt=-1;++tt<Ce.length;)Ce[tt][1].type==="attentionSequence"&&(Ce[tt][1].type="data");return Ce}function Ri(Ce,Ye){const tt=this.parser.constructs.attentionMarkers.null,pt=this.previous,Ft=Li(pt);let _t;return rn;function rn(br){return _t=br,Ce.enter("attentionSequence"),Pn(br)}function Pn(br){if(br===_t)return Ce.consume(br),Pn;const wr=Ce.exit("attentionSequence"),ir=Li(br),Yr=!ir||ir===2&&Ft||tt.includes(br),Br=!Ft||Ft===2&&ir||tt.includes(pt);return wr._open=!!(_t===42?Yr:Yr&&(Ft||!Br)),wr._close=!!(_t===42?Br:Br&&(ir||!Yr)),Ye(br)}}function Oi(Ce,Ye){Ce.column+=Ye,Ce.offset+=Ye,Ce._bufferIndex+=Ye}const lo={name:"autolink",tokenize:So};function So(Ce,Ye,tt){let pt=0;return Ft;function Ft(dr){return Ce.enter("autolink"),Ce.enter("autolinkMarker"),Ce.consume(dr),Ce.exit("autolinkMarker"),Ce.enter("autolinkProtocol"),_t}function _t(dr){return(0,qt.jv)(dr)?(Ce.consume(dr),rn):dr===64?tt(dr):wr(dr)}function rn(dr){return dr===43||dr===45||dr===46||(0,qt.H$)(dr)?(pt=1,Pn(dr)):wr(dr)}function Pn(dr){return dr===58?(Ce.consume(dr),pt=0,br):(dr===43||dr===45||dr===46||(0,qt.H$)(dr))&&pt++<32?(Ce.consume(dr),Pn):(pt=0,wr(dr))}function br(dr){return dr===62?(Ce.exit("autolinkProtocol"),Ce.enter("autolinkMarker"),Ce.consume(dr),Ce.exit("autolinkMarker"),Ce.exit("autolink"),Ye):dr===null||dr===32||dr===60||(0,qt.Av)(dr)?tt(dr):(Ce.consume(dr),br)}function wr(dr){return dr===64?(Ce.consume(dr),ir):(0,qt.n9)(dr)?(Ce.consume(dr),wr):tt(dr)}function ir(dr){return(0,qt.H$)(dr)?Yr(dr):tt(dr)}function Yr(dr){return dr===46?(Ce.consume(dr),pt=0,ir):dr===62?(Ce.exit("autolinkProtocol").type="autolinkEmail",Ce.enter("autolinkMarker"),Ce.consume(dr),Ce.exit("autolinkMarker"),Ce.exit("autolink"),Ye):Br(dr)}function Br(dr){if((dr===45||(0,qt.H$)(dr))&&pt++<63){const Co=dr===45?Br:Yr;return Ce.consume(dr),Co}return tt(dr)}}const na={name:"htmlText",tokenize:An};function An(Ce,Ye,tt){const pt=this;let Ft,_t,rn;return Pn;function Pn(Ar){return Ce.enter("htmlText"),Ce.enter("htmlTextData"),Ce.consume(Ar),br}function br(Ar){return Ar===33?(Ce.consume(Ar),wr):Ar===47?(Ce.consume(Ar),Xa):Ar===63?(Ce.consume(Ar),Bo):(0,qt.jv)(Ar)?(Ce.consume(Ar),Za):tt(Ar)}function wr(Ar){return Ar===45?(Ce.consume(Ar),ir):Ar===91?(Ce.consume(Ar),_t=0,Co):(0,qt.jv)(Ar)?(Ce.consume(Ar),Ro):tt(Ar)}function ir(Ar){return Ar===45?(Ce.consume(Ar),dr):tt(Ar)}function Yr(Ar){return Ar===null?tt(Ar):Ar===45?(Ce.consume(Ar),Br):(0,qt.Ch)(Ar)?(rn=Yr,Js(Ar)):(Ce.consume(Ar),Yr)}function Br(Ar){return Ar===45?(Ce.consume(Ar),dr):Yr(Ar)}function dr(Ar){return Ar===62?ps(Ar):Ar===45?Br(Ar):Yr(Ar)}function Co(Ar){const Nl="CDATA[";return Ar===Nl.charCodeAt(_t++)?(Ce.consume(Ar),_t===Nl.length?zo:Co):tt(Ar)}function zo(Ar){return Ar===null?tt(Ar):Ar===93?(Ce.consume(Ar),ea):(0,qt.Ch)(Ar)?(rn=zo,Js(Ar)):(Ce.consume(Ar),zo)}function ea(Ar){return Ar===93?(Ce.consume(Ar),io):zo(Ar)}function io(Ar){return Ar===62?ps(Ar):Ar===93?(Ce.consume(Ar),io):zo(Ar)}function Ro(Ar){return Ar===null||Ar===62?ps(Ar):(0,qt.Ch)(Ar)?(rn=Ro,Js(Ar)):(Ce.consume(Ar),Ro)}function Bo(Ar){return Ar===null?tt(Ar):Ar===63?(Ce.consume(Ar),Ya):(0,qt.Ch)(Ar)?(rn=Bo,Js(Ar)):(Ce.consume(Ar),Bo)}function Ya(Ar){return Ar===62?ps(Ar):Bo(Ar)}function Xa(Ar){return(0,qt.jv)(Ar)?(Ce.consume(Ar),Zi):tt(Ar)}function Zi(Ar){return Ar===45||(0,qt.H$)(Ar)?(Ce.consume(Ar),Zi):es(Ar)}function es(Ar){return(0,qt.Ch)(Ar)?(rn=es,Js(Ar)):(0,qt.xz)(Ar)?(Ce.consume(Ar),es):ps(Ar)}function Za(Ar){return Ar===45||(0,qt.H$)(Ar)?(Ce.consume(Ar),Za):Ar===47||Ar===62||(0,qt.z3)(Ar)?ja(Ar):tt(Ar)}function ja(Ar){return Ar===47?(Ce.consume(Ar),ps):Ar===58||Ar===95||(0,qt.jv)(Ar)?(Ce.consume(Ar),bo):(0,qt.Ch)(Ar)?(rn=ja,Js(Ar)):(0,qt.xz)(Ar)?(Ce.consume(Ar),ja):ps(Ar)}function bo(Ar){return Ar===45||Ar===46||Ar===58||Ar===95||(0,qt.H$)(Ar)?(Ce.consume(Ar),bo):fl(Ar)}function fl(Ar){return Ar===61?(Ce.consume(Ar),ls):(0,qt.Ch)(Ar)?(rn=fl,Js(Ar)):(0,qt.xz)(Ar)?(Ce.consume(Ar),fl):ja(Ar)}function ls(Ar){return Ar===null||Ar===60||Ar===61||Ar===62||Ar===96?tt(Ar):Ar===34||Ar===39?(Ce.consume(Ar),Ft=Ar,Xo):(0,qt.Ch)(Ar)?(rn=ls,Js(Ar)):(0,qt.xz)(Ar)?(Ce.consume(Ar),ls):(Ce.consume(Ar),Zo)}function Xo(Ar){return Ar===Ft?(Ce.consume(Ar),Ft=void 0,wa):Ar===null?tt(Ar):(0,qt.Ch)(Ar)?(rn=Xo,Js(Ar)):(Ce.consume(Ar),Xo)}function Zo(Ar){return Ar===null||Ar===34||Ar===39||Ar===60||Ar===61||Ar===96?tt(Ar):Ar===47||Ar===62||(0,qt.z3)(Ar)?ja(Ar):(Ce.consume(Ar),Zo)}function wa(Ar){return Ar===47||Ar===62||(0,qt.z3)(Ar)?ja(Ar):tt(Ar)}function ps(Ar){return Ar===62?(Ce.consume(Ar),Ce.exit("htmlTextData"),Ce.exit("htmlText"),Ye):tt(Ar)}function Js(Ar){return Ce.exit("htmlTextData"),Ce.enter("lineEnding"),Ce.consume(Ar),Ce.exit("lineEnding"),El}function El(Ar){return(0,qt.xz)(Ar)?(0,lr.f)(Ce,Kl,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ar):Kl(Ar)}function Kl(Ar){return Ce.enter("htmlTextData"),rn(Ar)}}const so={name:"labelStartLink",resolveAll:pi.resolveAll,tokenize:Do};function Do(Ce,Ye,tt){const pt=this;return Ft;function Ft(rn){return Ce.enter("labelLink"),Ce.enter("labelMarker"),Ce.consume(rn),Ce.exit("labelMarker"),Ce.exit("labelLink"),_t}function _t(rn){return rn===94&&"_hiddenFootnoteSupport"in pt.parser.constructs?tt(rn):Ye(rn)}}const Wi={name:"hardBreakEscape",tokenize:ho};function ho(Ce,Ye,tt){return pt;function pt(_t){return Ce.enter("hardBreakEscape"),Ce.consume(_t),Ft}function Ft(_t){return(0,qt.Ch)(_t)?(Ce.exit("hardBreakEscape"),Ye(_t)):tt(_t)}}const Ki={name:"codeText",previous:Vn,resolve:da,tokenize:Mo};function da(Ce){let Ye=Ce.length-4,tt=3,pt,Ft;if((Ce[tt][1].type==="lineEnding"||Ce[tt][1].type==="space")&&(Ce[Ye][1].type==="lineEnding"||Ce[Ye][1].type==="space")){for(pt=tt;++pt<Ye;)if(Ce[pt][1].type==="codeTextData"){Ce[tt][1].type="codeTextPadding",Ce[Ye][1].type="codeTextPadding",tt+=2,Ye-=2;break}}for(pt=tt-1,Ye++;++pt<=Ye;)Ft===void 0?pt!==Ye&&Ce[pt][1].type!=="lineEnding"&&(Ft=pt):(pt===Ye||Ce[pt][1].type==="lineEnding")&&(Ce[Ft][1].type="codeTextData",pt!==Ft+2&&(Ce[Ft][1].end=Ce[pt-1][1].end,Ce.splice(Ft+2,pt-Ft-2),Ye-=pt-Ft-2,pt=Ft+2),Ft=void 0);return Ce}function Vn(Ce){return Ce!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Mo(Ce,Ye,tt){const pt=this;let Ft=0,_t,rn;return Pn;function Pn(Br){return Ce.enter("codeText"),Ce.enter("codeTextSequence"),br(Br)}function br(Br){return Br===96?(Ce.consume(Br),Ft++,br):(Ce.exit("codeTextSequence"),wr(Br))}function wr(Br){return Br===null?tt(Br):Br===32?(Ce.enter("space"),Ce.consume(Br),Ce.exit("space"),wr):Br===96?(rn=Ce.enter("codeTextSequence"),_t=0,Yr(Br)):(0,qt.Ch)(Br)?(Ce.enter("lineEnding"),Ce.consume(Br),Ce.exit("lineEnding"),wr):(Ce.enter("codeTextData"),ir(Br))}function ir(Br){return Br===null||Br===32||Br===96||(0,qt.Ch)(Br)?(Ce.exit("codeTextData"),wr(Br)):(Ce.consume(Br),ir)}function Yr(Br){return Br===96?(Ce.consume(Br),_t++,Yr):_t===Ft?(Ce.exit("codeTextSequence"),Ce.exit("codeText"),Ye(Br)):(rn.type="codeTextData",ir(Br))}}const ia={42:Zr,43:Zr,45:Zr,48:Zr,49:Zr,50:Zr,51:Zr,52:Zr,53:Zr,54:Zr,55:Zr,56:Zr,57:Zr,62:vr},Ps={91:Jn},Fa={[-2]:nr,[-1]:nr,32:nr},Gs={35:Ln,42:Ur,45:[wi,Ur],60:Bi,61:wi,95:Ur,96:po,126:po},gs={38:fr,92:rt},Qi={[-5]:Sr,[-4]:Sr,[-3]:Sr,33:Kn,38:fr,42:mi,60:[lo,na],91:so,92:[Wi,rt],93:pi,95:mi,96:Ki},ca={null:[mi,Ti]},Ba={null:[42,95]},is={null:[]};function To(Ce,Ye,tt){let pt={_bufferIndex:-1,_index:0,line:tt&&tt.line||1,column:tt&&tt.column||1,offset:tt&&tt.offset||0};const Ft={},_t=[];let rn=[],Pn=[],br=!0;const wr={attempt:ja(es),check:ja(Za),consume:Ya,enter:Xa,exit:Zi,interrupt:ja(Za,{interrupt:!0})},ir={code:null,containerState:{},defineSkip:io,events:[],now:ea,parser:Ce,previous:null,sliceSerialize:Co,sliceStream:zo,write:dr};let Yr=Ye.tokenize.call(ir,wr),Br;return Ye.resolveAll&&_t.push(Ye),ir;function dr(Xo){return rn=pn(rn,Xo),Ro(),rn[rn.length-1]!==null?[]:(bo(Ye,0),ir.events=ni(_t,ir.events,ir),ir.events)}function Co(Xo,Zo){return _r(zo(Xo),Zo)}function zo(Xo){return Ao(rn,Xo)}function ea(){const{_bufferIndex:Xo,_index:Zo,line:wa,column:ps,offset:Js}=pt;return{_bufferIndex:Xo,_index:Zo,line:wa,column:ps,offset:Js}}function io(Xo){Ft[Xo.line]=Xo.column,ls()}function Ro(){let Xo;for(;pt._index<rn.length;){const Zo=rn[pt._index];if(typeof Zo=="string")for(Xo=pt._index,pt._bufferIndex<0&&(pt._bufferIndex=0);pt._index===Xo&&pt._bufferIndex<Zo.length;)Bo(Zo.charCodeAt(pt._bufferIndex));else Bo(Zo)}}function Bo(Xo){br=void 0,Br=Xo,Yr=Yr(Xo)}function Ya(Xo){(0,qt.Ch)(Xo)?(pt.line++,pt.column=1,pt.offset+=Xo===-3?2:1,ls()):Xo!==-1&&(pt.column++,pt.offset++),pt._bufferIndex<0?pt._index++:(pt._bufferIndex++,pt._bufferIndex===rn[pt._index].length&&(pt._bufferIndex=-1,pt._index++)),ir.previous=Xo,br=!0}function Xa(Xo,Zo){const wa=Zo||{};return wa.type=Xo,wa.start=ea(),ir.events.push(["enter",wa,ir]),Pn.push(wa),wa}function Zi(Xo){const Zo=Pn.pop();return Zo.end=ea(),ir.events.push(["exit",Zo,ir]),Zo}function es(Xo,Zo){bo(Xo,Zo.from)}function Za(Xo,Zo){Zo.restore()}function ja(Xo,Zo){return wa;function wa(ps,Js,El){let Kl,Ar,Nl,Ol;return Array.isArray(ps)?ol(ps):"tokenize"in ps?ol([ps]):Ir(ps);function Ir(Es){return hu;function hu(al){const Qu=al!==null&&Es[al],hc=al!==null&&Es.null,wd=[...Array.isArray(Qu)?Qu:Qu?[Qu]:[],...Array.isArray(hc)?hc:hc?[hc]:[]];return ol(wd)(al)}}function ol(Es){return Kl=Es,Ar=0,Es.length===0?El:wu(Es[Ar])}function wu(Es){return hu;function hu(al){return Ol=fl(),Nl=Es,Es.partial||(ir.currentConstruct=Es),Es.name&&ir.parser.constructs.disable.null.includes(Es.name)?qs(al):Es.tokenize.call(Zo?Object.assign(Object.create(ir),Zo):ir,wr,du,qs)(al)}}function du(Es){return br=!0,Xo(Nl,Ol),Js}function qs(Es){return br=!0,Ol.restore(),++Ar<Kl.length?wu(Kl[Ar]):El}}}function bo(Xo,Zo){Xo.resolveAll&&!_t.includes(Xo)&&_t.push(Xo),Xo.resolve&&zt(ir.events,Zo,ir.events.length-Zo,Xo.resolve(ir.events.slice(Zo),ir)),Xo.resolveTo&&(ir.events=Xo.resolveTo(ir.events,ir))}function fl(){const Xo=ea(),Zo=ir.previous,wa=ir.currentConstruct,ps=ir.events.length,Js=Array.from(Pn);return{from:ps,restore:El};function El(){pt=Xo,ir.previous=Zo,ir.currentConstruct=wa,ir.events.length=ps,Pn=Js,ls()}}function ls(){pt.line in Ft&&pt.column<2&&(pt.column=Ft[pt.line],pt.offset+=Ft[pt.line]-1)}}function Ao(Ce,Ye){const tt=Ye.start._index,pt=Ye.start._bufferIndex,Ft=Ye.end._index,_t=Ye.end._bufferIndex;let rn;if(tt===Ft)rn=[Ce[tt].slice(pt,_t)];else{if(rn=Ce.slice(tt,Ft),pt>-1){const Pn=rn[0];typeof Pn=="string"?rn[0]=Pn.slice(pt):rn.shift()}_t>0&&rn.push(Ce[Ft].slice(0,_t))}return rn}function _r(Ce,Ye){let tt=-1;const pt=[];let Ft;for(;++tt<Ce.length;){const _t=Ce[tt];let rn;if(typeof _t=="string")rn=_t;else switch(_t){case-5:{rn="\r";break}case-4:{rn=`
`;break}case-3:{rn=`\r
`;break}case-2:{rn=Ye?" ":" ";break}case-1:{if(!Ye&&Ft)continue;rn=" ";break}default:rn=String.fromCharCode(_t)}Ft=_t===-2,pt.push(rn)}return pt.join("")}function to(Ce){const pt={constructs:mn([oe,...(Ce||{}).extensions||[]]),content:Ft(yr),defined:[],document:Ft(Or),flow:Ft(Ii),lazy:{},string:Ft(Vr),text:Ft(Fr)};return pt;function Ft(_t){return rn;function rn(Pn){return To(pt,_t,Pn)}}}const No=/[\0\t\n\r]/g;function ba(){let Ce=1,Ye="",tt=!0,pt;return Ft;function Ft(_t,rn,Pn){const br=[];let wr,ir,Yr,Br,dr;for(_t=Ye+(typeof _t=="string"?_t.toString():new TextDecoder(rn||void 0).decode(_t)),Yr=0,Ye="",tt&&(_t.charCodeAt(0)===65279&&Yr++,tt=void 0);Yr<_t.length;){if(No.lastIndex=Yr,wr=No.exec(_t),Br=wr&&wr.index!==void 0?wr.index:_t.length,dr=_t.charCodeAt(Br),!wr){Ye=_t.slice(Yr);break}if(dr===10&&Yr===Br&&pt)br.push(-3),pt=void 0;else switch(pt&&(br.push(-5),pt=void 0),Yr<Br&&(br.push(_t.slice(Yr,Br)),Ce+=Br-Yr),dr){case 0:{br.push(65533),Ce++;break}case 9:{for(ir=Math.ceil(Ce/4)*4,br.push(-2);Ce++<ir;)br.push(-1);break}case 10:{br.push(-4),Ce=1;break}default:pt=!0,Ce=1}Yr=Br+1}return Pn&&(pt&&br.push(-5),Ye&&br.push(Ye),br.push(null)),br}}function os(Ce,Ye){const tt=Number.parseInt(Ce,Ye);return tt<9||tt===11||tt>13&&tt<32||tt>126&&tt<160||tt>55295&&tt<57344||tt>64975&&tt<65008||(tt&65535)===65535||(tt&65535)===65534||tt>1114111?"\uFFFD":String.fromCodePoint(tt)}const ms=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uo(Ce){return Ce.replace(ms,_a)}function _a(Ce,Ye,tt){if(Ye)return Ye;if(tt.charCodeAt(0)===35){const Ft=tt.charCodeAt(1),_t=Ft===120||Ft===88;return os(tt.slice(_t?2:1),_t?16:10)}return Fn(tt)||Ce}const qa={}.hasOwnProperty;function pa(Ce,Ye,tt){return typeof Ye!="string"&&(tt=Ye,Ye=void 0),ra(tt)(Yt(to(tt).document().write(ba()(Ce,Ye,!0))))}function ra(Ce){const Ye={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:_t(et),autolinkProtocol:ja,autolinkEmail:ja,atxHeading:_t(fu),blockQuote:_t(al),characterEscape:ja,characterReference:ja,codeFenced:_t(Qu),codeFencedFenceInfo:rn,codeFencedFenceMeta:rn,codeIndented:_t(Qu,rn),codeText:_t(hc,rn),codeTextData:ja,data:ja,codeFlowValue:ja,definition:_t(wd),definitionDestinationString:rn,definitionLabelString:rn,definitionTitleString:rn,emphasis:_t(xl),hardBreakEscape:_t(hd),hardBreakTrailing:_t(hd),htmlFlow:_t(ce,rn),htmlFlowData:ja,htmlText:_t(ce,rn),htmlTextData:ja,image:_t(ge),label:rn,link:_t(et),listItem:_t(xr),listItemValue:Br,listOrdered:_t(en,Yr),listUnordered:_t(en),paragraph:_t(ci),reference:Ir,referenceString:rn,resourceDestinationString:rn,resourceTitleString:rn,setextHeading:_t(fu),strong:_t(Ai),thematicBreak:_t(Ko)},exit:{atxHeading:br(),atxHeadingSequence:Xa,autolink:br(),autolinkEmail:hu,autolinkProtocol:Es,blockQuote:br(),characterEscapeValue:bo,characterReferenceMarkerHexadecimal:wu,characterReferenceMarkerNumeric:wu,characterReferenceValue:du,characterReference:qs,codeFenced:br(ea),codeFencedFence:zo,codeFencedFenceInfo:dr,codeFencedFenceMeta:Co,codeFlowValue:bo,codeIndented:br(io),codeText:br(wa),codeTextData:bo,data:bo,definition:br(),definitionDestinationString:Ya,definitionLabelString:Ro,definitionTitleString:Bo,emphasis:br(),hardBreakEscape:br(ls),hardBreakTrailing:br(ls),htmlFlow:br(Xo),htmlFlowData:bo,htmlText:br(Zo),htmlTextData:bo,image:br(Js),label:Kl,labelText:El,lineEnding:fl,link:br(ps),listItem:br(),listOrdered:br(),listUnordered:br(),paragraph:br(),referenceString:ol,resourceDestinationString:Ar,resourceTitleString:Nl,resource:Ol,setextHeading:br(Za),setextHeadingLineSequence:es,setextHeadingText:Zi,strong:br(),thematicBreak:br()}};Ys(Ye,(Ce||{}).mdastExtensions||[]);const tt={};return pt;function pt(li){let eo={type:"root",children:[]};const Vo={stack:[eo],tokenStack:[],config:Ye,enter:Pn,exit:wr,buffer:rn,resume:ir,data:tt},Aa=[];let ns=-1;for(;++ns<li.length;)if(li[ns][1].type==="listOrdered"||li[ns][1].type==="listUnordered")if(li[ns][0]==="enter")Aa.push(ns);else{const _u=Aa.pop();ns=Ft(li,_u,ns)}for(ns=-1;++ns<li.length;){const _u=Ye[li[ns][0]];qa.call(_u,li[ns][1].type)&&_u[li[ns][1].type].call(Object.assign({sliceSerialize:li[ns][2].sliceSerialize},Vo),li[ns][1])}if(Vo.tokenStack.length>0){const _u=Vo.tokenStack[Vo.tokenStack.length-1];(_u[1]||as).call(Vo,void 0,_u[0])}for(eo.position={start:Ca(li.length>0?li[0][1].start:{line:1,column:1,offset:0}),end:Ca(li.length>0?li[li.length-2][1].end:{line:1,column:1,offset:0})},ns=-1;++ns<Ye.transforms.length;)eo=Ye.transforms[ns](eo)||eo;return eo}function Ft(li,eo,Vo){let Aa=eo-1,ns=-1,_u=!1,Ju,qu,pu,Fl;for(;++Aa<=Vo;){const Cu=li[Aa];switch(Cu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Cu[0]==="enter"?ns++:ns--,Fl=void 0;break}case"lineEndingBlank":{Cu[0]==="enter"&&(Ju&&!Fl&&!ns&&!pu&&(pu=Aa),Fl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fl=void 0}if(!ns&&Cu[0]==="enter"&&Cu[1].type==="listItemPrefix"||ns===-1&&Cu[0]==="exit"&&(Cu[1].type==="listUnordered"||Cu[1].type==="listOrdered")){if(Ju){let Kc=Aa;for(qu=void 0;Kc--;){const Yl=li[Kc];if(Yl[1].type==="lineEnding"||Yl[1].type==="lineEndingBlank"){if(Yl[0]==="exit")continue;qu&&(li[qu][1].type="lineEndingBlank",_u=!0),Yl[1].type="lineEnding",qu=Kc}else if(!(Yl[1].type==="linePrefix"||Yl[1].type==="blockQuotePrefix"||Yl[1].type==="blockQuotePrefixWhitespace"||Yl[1].type==="blockQuoteMarker"||Yl[1].type==="listItemIndent"))break}pu&&(!qu||pu<qu)&&(Ju._spread=!0),Ju.end=Object.assign({},qu?li[qu][1].start:Cu[1].end),li.splice(qu||Aa,0,["exit",Ju,Cu[2]]),Aa++,Vo++}if(Cu[1].type==="listItemPrefix"){const Kc={type:"listItem",_spread:!1,start:Object.assign({},Cu[1].start),end:void 0};Ju=Kc,li.splice(Aa,0,["enter",Kc,Cu[2]]),Aa++,Vo++,pu=void 0,Fl=!0}}}return li[eo][1]._spread=_u,Vo}function _t(li,eo){return Vo;function Vo(Aa){Pn.call(this,li(Aa),Aa),eo&&eo.call(this,Aa)}}function rn(){this.stack.push({type:"fragment",children:[]})}function Pn(li,eo,Vo){this.stack[this.stack.length-1].children.push(li),this.stack.push(li),this.tokenStack.push([eo,Vo||void 0]),li.position={start:Ca(eo.start),end:void 0}}function br(li){return eo;function eo(Vo){li&&li.call(this,Vo),wr.call(this,Vo)}}function wr(li,eo){const Vo=this.stack.pop(),Aa=this.tokenStack.pop();if(Aa)Aa[0].type!==li.type&&(eo?eo.call(this,li,Aa[0]):(Aa[1]||as).call(this,li,Aa[0]));else throw new Error("Cannot close `"+li.type+"` ("+Ae({start:li.start,end:li.end})+"): it\u2019s not open");Vo.position.end=Ca(li.end)}function ir(){return yn(this.stack.pop())}function Yr(){this.data.expectingFirstListItemValue=!0}function Br(li){if(this.data.expectingFirstListItemValue){const eo=this.stack[this.stack.length-2];eo.start=Number.parseInt(this.sliceSerialize(li),10),this.data.expectingFirstListItemValue=void 0}}function dr(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.lang=li}function Co(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.meta=li}function zo(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ea(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.value=li.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function io(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.value=li.replace(/(\r?\n|\r)$/g,"")}function Ro(li){const eo=this.resume(),Vo=this.stack[this.stack.length-1];Vo.label=eo,Vo.identifier=Hr(this.sliceSerialize(li)).toLowerCase()}function Bo(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.title=li}function Ya(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.url=li}function Xa(li){const eo=this.stack[this.stack.length-1];if(!eo.depth){const Vo=this.sliceSerialize(li).length;eo.depth=Vo}}function Zi(){this.data.setextHeadingSlurpLineEnding=!0}function es(li){const eo=this.stack[this.stack.length-1];eo.depth=this.sliceSerialize(li).codePointAt(0)===61?1:2}function Za(){this.data.setextHeadingSlurpLineEnding=void 0}function ja(li){const Vo=this.stack[this.stack.length-1].children;let Aa=Vo[Vo.length-1];(!Aa||Aa.type!=="text")&&(Aa=Lo(),Aa.position={start:Ca(li.start),end:void 0},Vo.push(Aa)),this.stack.push(Aa)}function bo(li){const eo=this.stack.pop();eo.value+=this.sliceSerialize(li),eo.position.end=Ca(li.end)}function fl(li){const eo=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Vo=eo.children[eo.children.length-1];Vo.position.end=Ca(li.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Ye.canContainEols.includes(eo.type)&&(ja.call(this,li),bo.call(this,li))}function ls(){this.data.atHardBreak=!0}function Xo(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.value=li}function Zo(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.value=li}function wa(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.value=li}function ps(){const li=this.stack[this.stack.length-1];if(this.data.inReference){const eo=this.data.referenceType||"shortcut";li.type+="Reference",li.referenceType=eo,delete li.url,delete li.title}else delete li.identifier,delete li.label;this.data.referenceType=void 0}function Js(){const li=this.stack[this.stack.length-1];if(this.data.inReference){const eo=this.data.referenceType||"shortcut";li.type+="Reference",li.referenceType=eo,delete li.url,delete li.title}else delete li.identifier,delete li.label;this.data.referenceType=void 0}function El(li){const eo=this.sliceSerialize(li),Vo=this.stack[this.stack.length-2];Vo.label=uo(eo),Vo.identifier=Hr(eo).toLowerCase()}function Kl(){const li=this.stack[this.stack.length-1],eo=this.resume(),Vo=this.stack[this.stack.length-1];if(this.data.inReference=!0,Vo.type==="link"){const Aa=li.children;Vo.children=Aa}else Vo.alt=eo}function Ar(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.url=li}function Nl(){const li=this.resume(),eo=this.stack[this.stack.length-1];eo.title=li}function Ol(){this.data.inReference=void 0}function Ir(){this.data.referenceType="collapsed"}function ol(li){const eo=this.resume(),Vo=this.stack[this.stack.length-1];Vo.label=eo,Vo.identifier=Hr(this.sliceSerialize(li)).toLowerCase(),this.data.referenceType="full"}function wu(li){this.data.characterReferenceType=li.type}function du(li){const eo=this.sliceSerialize(li),Vo=this.data.characterReferenceType;let Aa;Vo?(Aa=os(eo,Vo==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Aa=Fn(eo);const ns=this.stack[this.stack.length-1];ns.value+=Aa}function qs(li){const eo=this.stack.pop();eo.position.end=Ca(li.end)}function Es(li){bo.call(this,li);const eo=this.stack[this.stack.length-1];eo.url=this.sliceSerialize(li)}function hu(li){bo.call(this,li);const eo=this.stack[this.stack.length-1];eo.url="mailto:"+this.sliceSerialize(li)}function al(){return{type:"blockquote",children:[]}}function Qu(){return{type:"code",lang:null,meta:null,value:""}}function hc(){return{type:"inlineCode",value:""}}function wd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xl(){return{type:"emphasis",children:[]}}function fu(){return{type:"heading",depth:0,children:[]}}function hd(){return{type:"break"}}function ce(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function et(){return{type:"link",title:null,url:"",children:[]}}function en(li){return{type:"list",ordered:li.type==="listOrdered",start:null,spread:li._spread,children:[]}}function xr(li){return{type:"listItem",spread:li._spread,checked:null,children:[]}}function ci(){return{type:"paragraph",children:[]}}function Ai(){return{type:"strong",children:[]}}function Lo(){return{type:"text",value:""}}function Ko(){return{type:"thematicBreak"}}}function Ca(Ce){return{line:Ce.line,column:Ce.column,offset:Ce.offset}}function Ys(Ce,Ye){let tt=-1;for(;++tt<Ye.length;){const pt=Ye[tt];Array.isArray(pt)?Ys(Ce,pt):oa(Ce,pt)}}function oa(Ce,Ye){let tt;for(tt in Ye)if(qa.call(Ye,tt))switch(tt){case"canContainEols":{const pt=Ye[tt];pt&&Ce[tt].push(...pt);break}case"transforms":{const pt=Ye[tt];pt&&Ce[tt].push(...pt);break}case"enter":case"exit":{const pt=Ye[tt];pt&&Object.assign(Ce[tt],pt);break}}}function as(Ce,Ye){throw Ce?new Error("Cannot close `"+Ce.type+"` ("+Ae({start:Ce.start,end:Ce.end})+"): a different token (`"+Ye.type+"`, "+Ae({start:Ye.start,end:Ye.end})+") is open"):new Error("Cannot close document, a token (`"+Ye.type+"`, "+Ae({start:Ye.start,end:Ye.end})+") is still open")}function Il(Ce){const Ye=this;Ye.parser=tt;function tt(pt){return pa(pt,Kp(xa(xa({},Ye.data("settings")),Ce),{extensions:Ye.data("micromarkExtensions")||[],mdastExtensions:Ye.data("fromMarkdownExtensions")||[]}))}}var iu=ae(90302);function Ua(Ce,Ye){const tt=encode(jl(Ce||""));if(!Ye)return tt;const pt=tt.indexOf(":"),Ft=tt.indexOf("?"),_t=tt.indexOf("#"),rn=tt.indexOf("/");return pt<0||rn>-1&&pt>rn||Ft>-1&&pt>Ft||_t>-1&&pt>_t||Ye.test(tt.slice(0,pt))?tt:""}function jl(Ce){const Ye=[];let tt=-1,pt=0,Ft=0;for(;++tt<Ce.length;){const _t=Ce.charCodeAt(tt);let rn="";if(_t===37&&(0,qt.H$)(Ce.charCodeAt(tt+1))&&(0,qt.H$)(Ce.charCodeAt(tt+2)))Ft=2;else if(_t<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(_t))||(rn=String.fromCharCode(_t));else if(_t>55295&&_t<57344){const Pn=Ce.charCodeAt(tt+1);_t<56320&&Pn>56319&&Pn<57344?(rn=String.fromCharCode(_t,Pn),Ft=1):rn="\uFFFD"}else rn=String.fromCharCode(_t);rn&&(Ye.push(Ce.slice(pt,tt),encodeURIComponent(rn)),pt=tt+Ft+1,rn=""),Ft&&(tt+=Ft,Ft=0)}return Ye.join("")+Ce.slice(pt)}function sc(Ce,Ye){const tt=[{type:"text",value:"\u21A9"}];return Ye>1&&tt.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Ye)}]}),tt}function ou(Ce,Ye){return"Back to reference "+(Ce+1)+(Ye>1?"-"+Ye:"")}function ss(Ce){const Ye=typeof Ce.options.clobberPrefix=="string"?Ce.options.clobberPrefix:"user-content-",tt=Ce.options.footnoteBackContent||sc,pt=Ce.options.footnoteBackLabel||ou,Ft=Ce.options.footnoteLabel||"Footnotes",_t=Ce.options.footnoteLabelTagName||"h2",rn=Ce.options.footnoteLabelProperties||{className:["sr-only"]},Pn=[];let br=-1;for(;++br<Ce.footnoteOrder.length;){const wr=Ce.footnoteById.get(Ce.footnoteOrder[br]);if(!wr)continue;const ir=Ce.all(wr),Yr=String(wr.identifier).toUpperCase(),Br=jl(Yr.toLowerCase());let dr=0;const Co=[],zo=Ce.footnoteCounts.get(Yr);for(;zo!==void 0&&++dr<=zo;){Co.length>0&&Co.push({type:"text",value:" "});let Ro=typeof tt=="string"?tt:tt(br,dr);typeof Ro=="string"&&(Ro={type:"text",value:Ro}),Co.push({type:"element",tagName:"a",properties:{href:"#"+Ye+"fnref-"+Br+(dr>1?"-"+dr:""),dataFootnoteBackref:"",ariaLabel:typeof pt=="string"?pt:pt(br,dr),className:["data-footnote-backref"]},children:Array.isArray(Ro)?Ro:[Ro]})}const ea=ir[ir.length-1];if(ea&&ea.type==="element"&&ea.tagName==="p"){const Ro=ea.children[ea.children.length-1];Ro&&Ro.type==="text"?Ro.value+=" ":ea.children.push({type:"text",value:" "}),ea.children.push(...Co)}else ir.push(...Co);const io={type:"element",tagName:"li",properties:{id:Ye+"fn-"+Br},children:Ce.wrap(ir,!0)};Ce.patch(wr,io),Pn.push(io)}if(Pn.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:_t,properties:Kp(xa({},(0,iu.ZP)(rn)),{id:"footnote-label"}),children:[{type:"text",value:Ft}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:Ce.wrap(Pn,!0)},{type:"text",value:`
`}]}}var cl=ae(10528);function au(Ce,Ye){const tt={type:"element",tagName:"blockquote",properties:{},children:Ce.wrap(Ce.all(Ye),!0)};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function Vl(Ce,Ye){const tt={type:"element",tagName:"br",properties:{},children:[]};return Ce.patch(Ye,tt),[Ce.applyData(Ye,tt),{type:"text",value:`
`}]}function Zu(Ce,Ye){const tt=Ye.value?Ye.value+`
`:"",pt={};Ye.lang&&(pt.className=["language-"+Ye.lang]);let Ft={type:"element",tagName:"code",properties:pt,children:[{type:"text",value:tt}]};return Ye.meta&&(Ft.data={meta:Ye.meta}),Ce.patch(Ye,Ft),Ft=Ce.applyData(Ye,Ft),Ft={type:"element",tagName:"pre",properties:{},children:[Ft]},Ce.patch(Ye,Ft),Ft}function ts(Ce,Ye){const tt={type:"element",tagName:"del",properties:{},children:Ce.all(Ye)};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function lc(Ce,Ye){const tt={type:"element",tagName:"em",properties:{},children:Ce.all(Ye)};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function bc(Ce,Ye){const tt=typeof Ce.options.clobberPrefix=="string"?Ce.options.clobberPrefix:"user-content-",pt=String(Ye.identifier).toUpperCase(),Ft=jl(pt.toLowerCase()),_t=Ce.footnoteOrder.indexOf(pt);let rn,Pn=Ce.footnoteCounts.get(pt);Pn===void 0?(Pn=0,Ce.footnoteOrder.push(pt),rn=Ce.footnoteOrder.length):rn=_t+1,Pn+=1,Ce.footnoteCounts.set(pt,Pn);const br={type:"element",tagName:"a",properties:{href:"#"+tt+"fn-"+Ft,id:tt+"fnref-"+Ft+(Pn>1?"-"+Pn:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(rn)}]};Ce.patch(Ye,br);const wr={type:"element",tagName:"sup",properties:{},children:[br]};return Ce.patch(Ye,wr),Ce.applyData(Ye,wr)}function Ou(Ce,Ye){const tt={type:"element",tagName:"h"+Ye.depth,properties:{},children:Ce.all(Ye)};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function Ku(Ce,Ye){if(Ce.options.allowDangerousHtml){const tt={type:"raw",value:Ye.value};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}}function Is(Ce,Ye){const tt=Ye.referenceType;let pt="]";if(tt==="collapsed"?pt+="[]":tt==="full"&&(pt+="["+(Ye.label||Ye.identifier)+"]"),Ye.type==="imageReference")return[{type:"text",value:"!["+Ye.alt+pt}];const Ft=Ce.all(Ye),_t=Ft[0];_t&&_t.type==="text"?_t.value="["+_t.value:Ft.unshift({type:"text",value:"["});const rn=Ft[Ft.length-1];return rn&&rn.type==="text"?rn.value+=pt:Ft.push({type:"text",value:pt}),Ft}function js(Ce,Ye){const tt=String(Ye.identifier).toUpperCase(),pt=Ce.definitionById.get(tt);if(!pt)return Is(Ce,Ye);const Ft={src:jl(pt.url||""),alt:Ye.alt};pt.title!==null&&pt.title!==void 0&&(Ft.title=pt.title);const _t={type:"element",tagName:"img",properties:Ft,children:[]};return Ce.patch(Ye,_t),Ce.applyData(Ye,_t)}function hs(Ce,Ye){const tt={src:jl(Ye.url)};Ye.alt!==null&&Ye.alt!==void 0&&(tt.alt=Ye.alt),Ye.title!==null&&Ye.title!==void 0&&(tt.title=Ye.title);const pt={type:"element",tagName:"img",properties:tt,children:[]};return Ce.patch(Ye,pt),Ce.applyData(Ye,pt)}function vs(Ce,Ye){const tt={type:"text",value:Ye.value.replace(/\r?\n|\r/g," ")};Ce.patch(Ye,tt);const pt={type:"element",tagName:"code",properties:{},children:[tt]};return Ce.patch(Ye,pt),Ce.applyData(Ye,pt)}function Sa(Ce,Ye){const tt=String(Ye.identifier).toUpperCase(),pt=Ce.definitionById.get(tt);if(!pt)return Is(Ce,Ye);const Ft={href:jl(pt.url||"")};pt.title!==null&&pt.title!==void 0&&(Ft.title=pt.title);const _t={type:"element",tagName:"a",properties:Ft,children:Ce.all(Ye)};return Ce.patch(Ye,_t),Ce.applyData(Ye,_t)}function Ho(Ce,Ye){const tt={href:jl(Ye.url)};Ye.title!==null&&Ye.title!==void 0&&(tt.title=Ye.title);const pt={type:"element",tagName:"a",properties:tt,children:Ce.all(Ye)};return Ce.patch(Ye,pt),Ce.applyData(Ye,pt)}function Yo(Ce,Ye,tt){const pt=Ce.all(Ye),Ft=tt?ys(tt):$a(Ye),_t={},rn=[];if(typeof Ye.checked=="boolean"){const ir=pt[0];let Yr;ir&&ir.type==="element"&&ir.tagName==="p"?Yr=ir:(Yr={type:"element",tagName:"p",properties:{},children:[]},pt.unshift(Yr)),Yr.children.length>0&&Yr.children.unshift({type:"text",value:" "}),Yr.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Ye.checked,disabled:!0},children:[]}),_t.className=["task-list-item"]}let Pn=-1;for(;++Pn<pt.length;){const ir=pt[Pn];(Ft||Pn!==0||ir.type!=="element"||ir.tagName!=="p")&&rn.push({type:"text",value:`
`}),ir.type==="element"&&ir.tagName==="p"&&!Ft?rn.push(...ir.children):rn.push(ir)}const br=pt[pt.length-1];br&&(Ft||br.type!=="element"||br.tagName!=="p")&&rn.push({type:"text",value:`
`});const wr={type:"element",tagName:"li",properties:_t,children:rn};return Ce.patch(Ye,wr),Ce.applyData(Ye,wr)}function ys(Ce){let Ye=!1;if(Ce.type==="list"){Ye=Ce.spread||!1;const tt=Ce.children;let pt=-1;for(;!Ye&&++pt<tt.length;)Ye=$a(tt[pt])}return Ye}function $a(Ce){const Ye=Ce.spread;return Ye==null?Ce.children.length>1:Ye}function za(Ce,Ye){const tt={},pt=Ce.all(Ye);let Ft=-1;for(typeof Ye.start=="number"&&Ye.start!==1&&(tt.start=Ye.start);++Ft<pt.length;){const rn=pt[Ft];if(rn.type==="element"&&rn.tagName==="li"&&rn.properties&&Array.isArray(rn.properties.className)&&rn.properties.className.includes("task-list-item")){tt.className=["contains-task-list"];break}}const _t={type:"element",tagName:Ye.ordered?"ol":"ul",properties:tt,children:Ce.wrap(pt,!0)};return Ce.patch(Ye,_t),Ce.applyData(Ye,_t)}function Ui(Ce,Ye){const tt={type:"element",tagName:"p",properties:{},children:Ce.all(Ye)};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function Sl(Ce,Ye){const tt={type:"root",children:Ce.wrap(Ce.all(Ye))};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function an(Ce,Ye){const tt={type:"element",tagName:"strong",properties:{},children:Ce.all(Ye)};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function Lr(Ce,Ye){const tt=Ce.all(Ye),pt=tt.shift(),Ft=[];if(pt){const rn={type:"element",tagName:"thead",properties:{},children:Ce.wrap([pt],!0)};Ce.patch(Ye.children[0],rn),Ft.push(rn)}if(tt.length>0){const rn={type:"element",tagName:"tbody",properties:{},children:Ce.wrap(tt,!0)},Pn=(0,be.Pk)(Ye.children[1]),br=(0,be.rb)(Ye.children[Ye.children.length-1]);Pn&&br&&(rn.position={start:Pn,end:br}),Ft.push(rn)}const _t={type:"element",tagName:"table",properties:{},children:Ce.wrap(Ft,!0)};return Ce.patch(Ye,_t),Ce.applyData(Ye,_t)}function Eu(Ce,Ye,tt){const pt=tt?tt.children:void 0,_t=(pt?pt.indexOf(Ye):1)===0?"th":"td",rn=tt&&tt.type==="table"?tt.align:void 0,Pn=rn?rn.length:Ye.children.length;let br=-1;const wr=[];for(;++br<Pn;){const Yr=Ye.children[br],Br={},dr=rn?rn[br]:void 0;dr&&(Br.align=dr);let Co={type:"element",tagName:_t,properties:Br,children:[]};Yr&&(Co.children=Ce.all(Yr),Ce.patch(Yr,Co),Co=Ce.applyData(Yr,Co)),wr.push(Co)}const ir={type:"element",tagName:"tr",properties:{},children:Ce.wrap(wr,!0)};return Ce.patch(Ye,ir),Ce.applyData(Ye,ir)}function Yu(Ce,Ye){const tt={type:"element",tagName:"td",properties:{},children:Ce.all(Ye)};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}const fs=9,Vs=32;function Dl(Ce){const Ye=String(Ce),tt=/\r?\n|\r/g;let pt=tt.exec(Ye),Ft=0;const _t=[];for(;pt;)_t.push(Xu(Ye.slice(Ft,pt.index),Ft>0,!0),pt[0]),Ft=pt.index+pt[0].length,pt=tt.exec(Ye);return _t.push(Xu(Ye.slice(Ft),Ft>0,!1)),_t.join("")}function Xu(Ce,Ye,tt){let pt=0,Ft=Ce.length;if(Ye){let _t=Ce.codePointAt(pt);for(;_t===fs||_t===Vs;)pt++,_t=Ce.codePointAt(pt)}if(tt){let _t=Ce.codePointAt(Ft-1);for(;_t===fs||_t===Vs;)Ft--,_t=Ce.codePointAt(Ft-1)}return Ft>pt?Ce.slice(pt,Ft):""}function uc(Ce,Ye){const tt={type:"text",value:Dl(String(Ye.value))};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}function Va(Ce,Ye){const tt={type:"element",tagName:"hr",properties:{},children:[]};return Ce.patch(Ye,tt),Ce.applyData(Ye,tt)}const wo={blockquote:au,break:Vl,code:Zu,delete:ts,emphasis:lc,footnoteReference:bc,heading:Ou,html:Ku,imageReference:js,image:hs,inlineCode:vs,linkReference:Sa,link:Ho,listItem:Yo,list:za,paragraph:Ui,root:Sl,strong:an,table:Lr,tableCell:Yu,tableRow:Eu,text:uc,thematicBreak:Va,toml:Ts,yaml:Ts,definition:Ts,footnoteDefinition:Ts};function Ts(){}const Ws={}.hasOwnProperty,aa={};function Wo(Ce,Ye){const tt=Ye||aa,pt=new Map,Ft=new Map,_t=new Map,rn=xa(xa({},wo),tt.handlers),Pn={all:wr,applyData:dl,definitionById:pt,footnoteById:Ft,footnoteCounts:_t,footnoteOrder:[],handlers:rn,one:br,options:tt,patch:Ka,wrap:bl};return(0,cl.Vn)(Ce,function(ir){if(ir.type==="definition"||ir.type==="footnoteDefinition"){const Yr=ir.type==="definition"?pt:Ft,Br=String(ir.identifier).toUpperCase();Yr.has(Br)||Yr.set(Br,ir)}}),Pn;function br(ir,Yr){const Br=ir.type,dr=Pn.handlers[Br];if(Ws.call(Pn.handlers,Br)&&dr)return dr(Pn,ir,Yr);if(Pn.options.passThrough&&Pn.options.passThrough.includes(Br)){if("children"in ir){const zo=ir,{children:ea}=zo,io=iE(zo,["children"]),Ro=(0,iu.ZP)(io);return Ro.children=Pn.all(ir),Ro}return(0,iu.ZP)(ir)}return(Pn.options.unknownHandler||Ia)(Pn,ir,Yr)}function wr(ir){const Yr=[];if("children"in ir){const Br=ir.children;let dr=-1;for(;++dr<Br.length;){const Co=Pn.one(Br[dr],ir);if(Co){if(dr&&Br[dr-1].type==="break"&&(!Array.isArray(Co)&&Co.type==="text"&&(Co.value=As(Co.value)),!Array.isArray(Co)&&Co.type==="element")){const zo=Co.children[0];zo&&zo.type==="text"&&(zo.value=As(zo.value))}Array.isArray(Co)?Yr.push(...Co):Yr.push(Co)}}}return Yr}}function Ka(Ce,Ye){Ce.position&&(Ye.position=(0,be.FK)(Ce))}function dl(Ce,Ye){let tt=Ye;if(Ce&&Ce.data){const pt=Ce.data.hName,Ft=Ce.data.hChildren,_t=Ce.data.hProperties;if(typeof pt=="string")if(tt.type==="element")tt.tagName=pt;else{const rn="children"in tt?tt.children:[tt];tt={type:"element",tagName:pt,properties:{},children:rn}}tt.type==="element"&&_t&&Object.assign(tt.properties,(0,iu.ZP)(_t)),"children"in tt&&tt.children&&Ft!==null&&Ft!==void 0&&(tt.children=Ft)}return tt}function Ia(Ce,Ye){const tt=Ye.data||{},pt="value"in Ye&&!(Ws.call(tt,"hProperties")||Ws.call(tt,"hChildren"))?{type:"text",value:Ye.value}:{type:"element",tagName:"div",properties:{},children:Ce.all(Ye)};return Ce.patch(Ye,pt),Ce.applyData(Ye,pt)}function bl(Ce,Ye){const tt=[];let pt=-1;for(Ye&&tt.push({type:"text",value:`
`});++pt<Ce.length;)pt&&tt.push({type:"text",value:`
`}),tt.push(Ce[pt]);return Ye&&Ce.length>0&&tt.push({type:"text",value:`
`}),tt}function As(Ce){let Ye=0,tt=Ce.charCodeAt(Ye);for(;tt===9||tt===32;)Ye++,tt=Ce.charCodeAt(Ye);return Ce.slice(Ye)}function Fu(Ce,Ye){const tt=Wo(Ce,Ye),pt=tt.one(Ce,void 0),Ft=ss(tt),_t=Array.isArray(pt)?{type:"root",children:pt}:pt||{type:"root",children:[]};return Ft&&((0,Pe.ok)("children"in _t),_t.children.push({type:"text",value:`
`},Ft)),_t}function ga(Ce,Ye){return Ce&&"run"in Ce?function(tt,pt){return sS(this,null,function*(){const Ft=Fu(tt,xa({file:pt},Ye));yield Ce.run(Ft,pt)})}:function(tt,pt){return Fu(tt,xa({file:pt},Ce||Ye))}}function Ds(Ce){if(Ce)throw Ce}var sa=ae(58847);function Ta(Ce){if(typeof Ce!="object"||Ce===null)return!1;const Ye=Object.getPrototypeOf(Ce);return(Ye===null||Ye===Object.prototype||Object.getPrototypeOf(Ye)===null)&&!(Symbol.toStringTag in Ce)&&!(Symbol.iterator in Ce)}function ka(){const Ce=[],Ye={run:tt,use:pt};return Ye;function tt(...Ft){let _t=-1;const rn=Ft.pop();if(typeof rn!="function")throw new TypeError("Expected function as last argument, not "+rn);Pn(null,...Ft);function Pn(br,...wr){const ir=Ce[++_t];let Yr=-1;if(br){rn(br);return}for(;++Yr<Ft.length;)(wr[Yr]===null||wr[Yr]===void 0)&&(wr[Yr]=Ft[Yr]);Ft=wr,ir?Wa(ir,Pn)(...wr):rn(null,...wr)}}function pt(Ft){if(typeof Ft!="function")throw new TypeError("Expected `middelware` to be a function, not "+Ft);return Ce.push(Ft),Ye}}function Wa(Ce,Ye){let tt;return pt;function pt(...rn){const Pn=Ce.length>rn.length;let br;Pn&&rn.push(Ft);try{br=Ce.apply(this,rn)}catch(wr){const ir=wr;if(Pn&&tt)throw ir;return Ft(ir)}Pn||(br&&br.then&&typeof br.then=="function"?br.then(_t,Ft):br instanceof Error?Ft(br):_t(br))}function Ft(rn,...Pn){tt||(tt=!0,Ye(rn,...Pn))}function _t(rn){Ft(null,rn)}}const $o={basename:cc,dirname:vo,extname:dd,join:ta,sep:"/"};function cc(Ce,Ye){if(Ye!==void 0&&typeof Ye!="string")throw new TypeError('"ext" argument must be a string');su(Ce);let tt=0,pt=-1,Ft=Ce.length,_t;if(Ye===void 0||Ye.length===0||Ye.length>Ce.length){for(;Ft--;)if(Ce.codePointAt(Ft)===47){if(_t){tt=Ft+1;break}}else pt<0&&(_t=!0,pt=Ft+1);return pt<0?"":Ce.slice(tt,pt)}if(Ye===Ce)return"";let rn=-1,Pn=Ye.length-1;for(;Ft--;)if(Ce.codePointAt(Ft)===47){if(_t){tt=Ft+1;break}}else rn<0&&(_t=!0,rn=Ft+1),Pn>-1&&(Ce.codePointAt(Ft)===Ye.codePointAt(Pn--)?Pn<0&&(pt=Ft):(Pn=-1,pt=rn));return tt===pt?pt=rn:pt<0&&(pt=Ce.length),Ce.slice(tt,pt)}function vo(Ce){if(su(Ce),Ce.length===0)return".";let Ye=-1,tt=Ce.length,pt;for(;--tt;)if(Ce.codePointAt(tt)===47){if(pt){Ye=tt;break}}else pt||(pt=!0);return Ye<0?Ce.codePointAt(0)===47?"/":".":Ye===1&&Ce.codePointAt(0)===47?"//":Ce.slice(0,Ye)}function dd(Ce){su(Ce);let Ye=Ce.length,tt=-1,pt=0,Ft=-1,_t=0,rn;for(;Ye--;){const Pn=Ce.codePointAt(Ye);if(Pn===47){if(rn){pt=Ye+1;break}continue}tt<0&&(rn=!0,tt=Ye+1),Pn===46?Ft<0?Ft=Ye:_t!==1&&(_t=1):Ft>-1&&(_t=-1)}return Ft<0||tt<0||_t===0||_t===1&&Ft===tt-1&&Ft===pt+1?"":Ce.slice(Ft,tt)}function ta(...Ce){let Ye=-1,tt;for(;++Ye<Ce.length;)su(Ce[Ye]),Ce[Ye]&&(tt=tt===void 0?Ce[Ye]:tt+"/"+Ce[Ye]);return tt===void 0?".":Vc(tt)}function Vc(Ce){su(Ce);const Ye=Ce.codePointAt(0)===47;let tt=xu(Ce,!Ye);return tt.length===0&&!Ye&&(tt="."),tt.length>0&&Ce.codePointAt(Ce.length-1)===47&&(tt+="/"),Ye?"/"+tt:tt}function xu(Ce,Ye){let tt="",pt=0,Ft=-1,_t=0,rn=-1,Pn,br;for(;++rn<=Ce.length;){if(rn<Ce.length)Pn=Ce.codePointAt(rn);else{if(Pn===47)break;Pn=47}if(Pn===47){if(!(Ft===rn-1||_t===1))if(Ft!==rn-1&&_t===2){if(tt.length<2||pt!==2||tt.codePointAt(tt.length-1)!==46||tt.codePointAt(tt.length-2)!==46){if(tt.length>2){if(br=tt.lastIndexOf("/"),br!==tt.length-1){br<0?(tt="",pt=0):(tt=tt.slice(0,br),pt=tt.length-1-tt.lastIndexOf("/")),Ft=rn,_t=0;continue}}else if(tt.length>0){tt="",pt=0,Ft=rn,_t=0;continue}}Ye&&(tt=tt.length>0?tt+"/..":"..",pt=2)}else tt.length>0?tt+="/"+Ce.slice(Ft+1,rn):tt=Ce.slice(Ft+1,rn),pt=rn-Ft-1;Ft=rn,_t=0}else Pn===46&&_t>-1?_t++:_t=-1}return tt}function su(Ce){if(typeof Ce!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Ce))}const Wc={cwd:Ec};function Ec(){return"/"}function lu(Ce){return!!(Ce!==null&&typeof Ce=="object"&&"href"in Ce&&Ce.href&&"protocol"in Ce&&Ce.protocol&&Ce.auth===void 0)}function Wl(Ce){if(typeof Ce=="string")Ce=new URL(Ce);else if(!lu(Ce)){const Ye=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Ce+"`");throw Ye.code="ERR_INVALID_ARG_TYPE",Ye}if(Ce.protocol!=="file:"){const Ye=new TypeError("The URL must be of scheme file");throw Ye.code="ERR_INVALID_URL_SCHEME",Ye}return la(Ce)}function la(Ce){if(Ce.hostname!==""){const pt=new TypeError('File URL host must be "localhost" or empty on darwin');throw pt.code="ERR_INVALID_FILE_URL_HOST",pt}const Ye=Ce.pathname;let tt=-1;for(;++tt<Ye.length;)if(Ye.codePointAt(tt)===37&&Ye.codePointAt(tt+1)===50){const pt=Ye.codePointAt(tt+2);if(pt===70||pt===102){const Ft=new TypeError("File URL path must not include encoded / characters");throw Ft.code="ERR_INVALID_FILE_URL_PATH",Ft}}return decodeURIComponent(Ye)}const Xs=["history","path","basename","stem","extname","dirname"];class Bu{constructor(Ye){let tt;Ye?lu(Ye)?tt={path:Ye}:typeof Ye=="string"||jo(Ye)?tt={value:Ye}:tt=Ye:tt={},this.cwd="cwd"in tt?"":Wc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let pt=-1;for(;++pt<Xs.length;){const _t=Xs[pt];_t in tt&&tt[_t]!==void 0&&tt[_t]!==null&&(this[_t]=_t==="history"?[...tt[_t]]:tt[_t])}let Ft;for(Ft in tt)Xs.includes(Ft)||(this[Ft]=tt[Ft])}get basename(){return typeof this.path=="string"?$o.basename(this.path):void 0}set basename(Ye){Zl(Ye,"basename"),hl(Ye,"basename"),this.path=$o.join(this.dirname||"",Ye)}get dirname(){return typeof this.path=="string"?$o.dirname(this.path):void 0}set dirname(Ye){rl(this.basename,"dirname"),this.path=$o.join(Ye||"",this.basename)}get extname(){return typeof this.path=="string"?$o.extname(this.path):void 0}set extname(Ye){if(hl(Ye,"extname"),rl(this.dirname,"extname"),Ye){if(Ye.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Ye.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$o.join(this.dirname,this.stem+(Ye||""))}get path(){return this.history[this.history.length-1]}set path(Ye){lu(Ye)&&(Ye=Wl(Ye)),Zl(Ye,"path"),this.path!==Ye&&this.history.push(Ye)}get stem(){return typeof this.path=="string"?$o.basename(this.path,this.extname):void 0}set stem(Ye){Zl(Ye,"stem"),hl(Ye,"stem"),this.path=$o.join(this.dirname||"",Ye+(this.extname||""))}fail(Ye,tt,pt){const Ft=this.message(Ye,tt,pt);throw Ft.fatal=!0,Ft}info(Ye,tt,pt){const Ft=this.message(Ye,tt,pt);return Ft.fatal=void 0,Ft}message(Ye,tt,pt){const Ft=new qe(Ye,tt,pt);return this.path&&(Ft.name=this.path+":"+Ft.name,Ft.file=this.path),Ft.fatal=!1,this.messages.push(Ft),Ft}toString(Ye){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Ye||void 0).decode(this.value)}}function hl(Ce,Ye){if(Ce&&Ce.includes($o.sep))throw new Error("`"+Ye+"` cannot be a path: did not expect `"+$o.sep+"`")}function Zl(Ce,Ye){if(!Ce)throw new Error("`"+Ye+"` cannot be empty")}function rl(Ce,Ye){if(!Ce)throw new Error("Setting `"+Ye+"` requires `path` to be set too")}function jo(Ce){return!!(Ce&&typeof Ce=="object"&&"byteLength"in Ce&&"byteOffset"in Ce)}const ha=function(Ce){const pt=this.constructor.prototype,Ft=pt[Ce],_t=function(){return Ft.apply(_t,arguments)};return Object.setPrototypeOf(_t,pt),_t},Ga={}.hasOwnProperty;class Ns extends ha{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=ka()}copy(){const Ye=new Ns;let tt=-1;for(;++tt<this.attachers.length;){const pt=this.attachers[tt];Ye.use(...pt)}return Ye.data(sa(!0,{},this.namespace)),Ye}data(Ye,tt){return typeof Ye=="string"?arguments.length===2?(Ml("data",this.frozen),this.namespace[Ye]=tt,this):Ga.call(this.namespace,Ye)&&this.namespace[Ye]||void 0:Ye?(Ml("data",this.frozen),this.namespace=Ye,this):this.namespace}freeze(){if(this.frozen)return this;const Ye=this;for(;++this.freezeIndex<this.attachers.length;){const[tt,...pt]=this.attachers[this.freezeIndex];if(pt[0]===!1)continue;pt[0]===!0&&(pt[0]=void 0);const Ft=tt.call(Ye,...pt);typeof Ft=="function"&&this.transformers.use(Ft)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Ye){this.freeze();const tt=xd(Ye),pt=this.parser||this.Parser;return Rl("parse",pt),pt(String(tt),tt)}process(Ye,tt){const pt=this;return this.freeze(),Rl("process",this.parser||this.Parser),Pl("process",this.compiler||this.Compiler),tt?Ft(void 0,tt):new Promise(Ft);function Ft(_t,rn){const Pn=xd(Ye),br=pt.parse(Pn);pt.run(br,Pn,function(ir,Yr,Br){if(ir||!Yr||!Br)return wr(ir);const dr=Yr,Co=pt.stringify(dr,Br);jd(Co)?Br.value=Co:Br.result=Co,wr(ir,Br)});function wr(ir,Yr){ir||!Yr?rn(ir):_t?_t(Yr):((0,Pe.ok)(tt,"`done` is defined if `resolve` is not"),tt(void 0,Yr))}}}processSync(Ye){let tt=!1,pt;return this.freeze(),Rl("processSync",this.parser||this.Parser),Pl("processSync",this.compiler||this.Compiler),this.process(Ye,Ft),uu("processSync","process",tt),(0,Pe.ok)(pt,"we either bailed on an error or have a tree"),pt;function Ft(_t,rn){tt=!0,Ds(_t),pt=rn}}run(Ye,tt,pt){Tl(Ye),this.freeze();const Ft=this.transformers;return!pt&&typeof tt=="function"&&(pt=tt,tt=void 0),pt?_t(void 0,pt):new Promise(_t);function _t(rn,Pn){(0,Pe.ok)(typeof tt!="function","`file` can\u2019t be a `done` anymore, we checked");const br=xd(tt);Ft.run(Ye,br,wr);function wr(ir,Yr,Br){const dr=Yr||Ye;ir?Pn(ir):rn?rn(dr):((0,Pe.ok)(pt,"`done` is defined if `resolve` is not"),pt(void 0,dr,Br))}}}runSync(Ye,tt){let pt=!1,Ft;return this.run(Ye,tt,_t),uu("runSync","run",pt),(0,Pe.ok)(Ft,"we either bailed on an error or have a tree"),Ft;function _t(rn,Pn){Ds(rn),Ft=Pn,pt=!0}}stringify(Ye,tt){this.freeze();const pt=xd(tt),Ft=this.compiler||this.Compiler;return Pl("stringify",Ft),Tl(Ye),Ft(Ye,pt)}use(Ye,...tt){const pt=this.attachers,Ft=this.namespace;if(Ml("use",this.frozen),Ye!=null)if(typeof Ye=="function")br(Ye,tt);else if(typeof Ye=="object")Array.isArray(Ye)?Pn(Ye):rn(Ye);else throw new TypeError("Expected usable value, not `"+Ye+"`");return this;function _t(wr){if(typeof wr=="function")br(wr,[]);else if(typeof wr=="object")if(Array.isArray(wr)){const[ir,...Yr]=wr;br(ir,Yr)}else rn(wr);else throw new TypeError("Expected usable value, not `"+wr+"`")}function rn(wr){if(!("plugins"in wr)&&!("settings"in wr))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");Pn(wr.plugins),wr.settings&&(Ft.settings=sa(!0,Ft.settings,wr.settings))}function Pn(wr){let ir=-1;if(wr!=null)if(Array.isArray(wr))for(;++ir<wr.length;){const Yr=wr[ir];_t(Yr)}else throw new TypeError("Expected a list of plugins, not `"+wr+"`")}function br(wr,ir){let Yr=-1,Br=-1;for(;++Yr<pt.length;)if(pt[Yr][0]===wr){Br=Yr;break}if(Br===-1)pt.push([wr,...ir]);else if(ir.length>0){let[dr,...Co]=ir;const zo=pt[Br][1];Ta(zo)&&Ta(dr)&&(dr=sa(!0,zo,dr)),pt[Br]=[wr,dr,...Co]}}}}const Ss=new Ns().freeze();function Rl(Ce,Ye){if(typeof Ye!="function")throw new TypeError("Cannot `"+Ce+"` without `parser`")}function Pl(Ce,Ye){if(typeof Ye!="function")throw new TypeError("Cannot `"+Ce+"` without `compiler`")}function Ml(Ce,Ye){if(Ye)throw new Error("Cannot call `"+Ce+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tl(Ce){if(!Ta(Ce)||typeof Ce.type!="string")throw new TypeError("Expected node, got `"+Ce+"`")}function uu(Ce,Ye,tt){if(!tt)throw new Error("`"+Ce+"` finished async. Use `"+Ye+"` instead")}function xd(Ce){return hh(Ce)?Ce:new Bu(Ce)}function hh(Ce){return!!(Ce&&typeof Ce=="object"&&"message"in Ce&&"messages"in Ce)}function jd(Ce){return typeof Ce=="string"||fh(Ce)}function fh(Ce){return!!(Ce&&typeof Ce=="object"&&"byteLength"in Ce&&"byteOffset"in Ce)}const bs="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dc=[],La={allowDangerousHtml:!0},Us=/^(https?|ircs?|mailto|xmpp)$/i,Qs=[{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 Zs(Ce){const Ye=cu(Ce),tt=Ic(Ce);return Zc(Ye.runSync(Ye.parse(tt),tt),Ce)}function xc(Ce){return sS(this,null,function*(){const Ye=cu(Ce),tt=Ic(Ce),pt=yield Ye.run(Ye.parse(tt),tt);return Zc(pt,Ce)})}function il(Ce){const Ye=cu(Ce),[tt,pt]=useState(void 0),[Ft,_t]=useState(void 0);if(useEffect(function(){const rn=Ic(Ce);Ye.run(Ye.parse(rn),rn,function(Pn,br){pt(Pn),_t(br)})},[Ce.children,Ce.rehypePlugins,Ce.remarkPlugins,Ce.remarkRehypeOptions]),tt)throw tt;return Ft?Zc(Ft,Ce):createElement(Fragment)}function cu(Ce){const Ye=Ce.rehypePlugins||dc,tt=Ce.remarkPlugins||dc,pt=Ce.remarkRehypeOptions?xa(xa({},Ce.remarkRehypeOptions),La):La;return Ss().use(Il).use(tt).use(ga,pt).use(Ye)}function Ic(Ce){const Ye=Ce.children||"",tt=new Bu;return typeof Ye=="string"?tt.value=Ye:(0,Pe.t1)("Unexpected value `"+Ye+"` for `children` prop, expected `string`"),tt}function Zc(Ce,Ye){const tt=Ye.allowedElements,pt=Ye.allowElement,Ft=Ye.components,_t=Ye.disallowedElements,rn=Ye.skipHtml,Pn=Ye.unwrapDisallowed,br=Ye.urlTransform||Al;for(const ir of Qs)Object.hasOwn(Ye,ir.from)&&(0,Pe.t1)("Unexpected `"+ir.from+"` prop, "+(ir.to?"use `"+ir.to+"` instead":"remove it")+" (see <"+bs+"#"+ir.id+"> for more info)");return tt&&_t&&(0,Pe.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Ye.className&&(Ce={type:"element",tagName:"div",properties:{className:Ye.className},children:Ce.type==="root"?Ce.children:[Ce]}),(0,cl.Vn)(Ce,wr),Ht(Ce,{Fragment:Be.Fragment,components:Ft,ignoreInvalidStyle:!0,jsx:Be.jsx,jsxs:Be.jsxs,passKeys:!0,passNode:!0});function wr(ir,Yr,Br){if(ir.type==="raw"&&Br&&typeof Yr=="number")return rn?Br.children.splice(Yr,1):Br.children[Yr]={type:"text",value:ir.value},Yr;if(ir.type==="element"){let dr;for(dr in lt)if(Object.hasOwn(lt,dr)&&Object.hasOwn(ir.properties,dr)){const Co=ir.properties[dr],zo=lt[dr];(zo===null||zo.includes(ir.tagName))&&(ir.properties[dr]=br(String(Co||""),dr,ir))}}if(ir.type==="element"){let dr=tt?!tt.includes(ir.tagName):_t?_t.includes(ir.tagName):!1;if(!dr&&pt&&typeof Yr=="number"&&(dr=!pt(ir,Yr,Br)),dr&&Br&&typeof Yr=="number")return Pn&&ir.children?Br.children.splice(Yr,1,...ir.children):Br.children.splice(Yr,1),Yr}}}function Al(Ce){const Ye=Ce.indexOf(":"),tt=Ce.indexOf("?"),pt=Ce.indexOf("#"),Ft=Ce.indexOf("/");return Ye===-1||Ft!==-1&&Ye>Ft||tt!==-1&&Ye>tt||pt!==-1&&Ye>pt||Us.test(Ce.slice(0,Ye))?Ce:""}},93772:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return hd}});var oe={};ae.r(oe),ae.d(oe,{boolean:function(){return qe},booleanish:function(){return ot},commaOrSpaceSeparated:function(){return At},commaSeparated:function(){return wt},number:function(){return at},overloadedBoolean:function(){return mt},spaceSeparated:function(){return vt}});var Pe=ae(90302),Ie=ae(87342),ke=ae(81994),Ve=ae(58222),Te=ae(84837);function ze(ce){const ge=String(ce),et=[];return{toOffset:xr,toPoint:en};function en(ci){if(typeof ci=="number"&&ci>-1&&ci<=ge.length){let Ai=0;for(;;){let Lo=et[Ai];if(Lo===void 0){const Ko=st(ge,et[Ai-1]);Lo=Ko===-1?ge.length+1:Ko+1,et[Ai]=Lo}if(Lo>ci)return{line:Ai+1,column:ci-(Ai>0?et[Ai-1]:0)+1,offset:ci};Ai++}}}function xr(ci){if(ci&&typeof ci.line=="number"&&typeof ci.column=="number"&&!Number.isNaN(ci.line)&&!Number.isNaN(ci.column)){for(;et.length<ci.line;){const Lo=et[et.length-1],Ko=st(ge,Lo),li=Ko===-1?ge.length+1:Ko+1;if(Lo===li)break;et.push(li)}const Ai=(ci.line>1?et[ci.line-2]:0)+ci.column-1;if(Ai<et[ci.line-1])return Ai}}}function st(ce,ge){const et=ce.indexOf("\r",ge),en=ce.indexOf(`
`,ge);return en===-1?et:et===-1||et+1===en?en:et<en?et:en}var Qe=ae(43309);const Ue={}.hasOwnProperty,St=Object.prototype;function $e(ce,ge){const et=ge||{};return Dt({file:et.file||void 0,location:!1,schema:et.space==="svg"?Ve.YP:Ve.dy,verbose:et.verbose||!1},ce)}function Dt(ce,ge){let et;switch(ge.nodeName){case"#comment":{const en=ge;return et={type:"comment",value:en.data},ee(ce,en,et),et}case"#document":case"#document-fragment":{const en=ge,xr="mode"in en?en.mode==="quirks"||en.mode==="limited-quirks":!1;if(et={type:"root",children:Fe(ce,ge.childNodes),data:{quirksMode:xr}},ce.file&&ce.location){const ci=String(ce.file),Ai=ze(ci),Lo=Ai.toPoint(0),Ko=Ai.toPoint(ci.length);(0,Ie.ok)(Lo,"expected `start`"),(0,Ie.ok)(Ko,"expected `end`"),et.position={start:Lo,end:Ko}}return et}case"#documentType":{const en=ge;return et={type:"doctype"},ee(ce,en,et),et}case"#text":{const en=ge;return et={type:"text",value:en.value},ee(ce,en,et),et}default:return et=te(ce,ge),et}}function Fe(ce,ge){let et=-1;const en=[];for(;++et<ge.length;){const xr=Dt(ce,ge[et]);en.push(xr)}return en}function te(ce,ge){const et=ce.schema;ce.schema=ge.namespaceURI===Qe.t.svg?Ve.YP:Ve.dy;let en=-1;const xr={};for(;++en<ge.attrs.length;){const Lo=ge.attrs[en],Ko=(Lo.prefix?Lo.prefix+":":"")+Lo.name;Ue.call(St,Ko)||(xr[Ko]=Lo.value)}const Ai=(ce.schema.space==="svg"?ke.s:ke.h)(ge.tagName,xr,Fe(ce,ge.childNodes));if(ee(ce,ge,Ai),Ai.tagName==="template"){const Lo=ge,Ko=Lo.sourceCodeLocation,li=Ko&&Ko.startTag&&ue(Ko.startTag),eo=Ko&&Ko.endTag&&ue(Ko.endTag),Vo=Dt(ce,Lo.content);li&&eo&&ce.file&&(Vo.position={start:li.end,end:eo.start}),Ai.content=Vo}return ce.schema=et,Ai}function ee(ce,ge,et){if("sourceCodeLocation"in ge&&ge.sourceCodeLocation&&ce.file){const en=he(ce,et,ge.sourceCodeLocation);en&&(ce.location=!0,et.position=en)}}function he(ce,ge,et){const en=ue(et);if(ge.type==="element"){const xr=ge.children[ge.children.length-1];if(en&&!et.endTag&&xr&&xr.position&&xr.position.end&&(en.end=Object.assign({},xr.position.end)),ce.verbose){const ci={};let Ai;if(et.attrs)for(Ai in et.attrs)Ue.call(et.attrs,Ai)&&(ci[(0,Te.s)(ce.schema,Ai).property]=ue(et.attrs[Ai]));(0,Ie.ok)(et.startTag,"a start tag should exist");const Lo=ue(et.startTag),Ko=et.endTag?ue(et.endTag):void 0,li={opening:Lo};Ko&&(li.closing=Ko),li.properties=ci,ge.data={position:li}}}return en}function ue(ce){const ge=fe({line:ce.startLine,column:ce.startCol,offset:ce.startOffset}),et=fe({line:ce.endLine,column:ce.endCol,offset:ce.endOffset});return ge||et?{start:ge,end:et}:void 0}function fe(ce){return ce.line&&ce.column?ce:void 0}var me=ae(11630);class be{constructor(ge,et,en){this.property=ge,this.normal=et,en&&(this.space=en)}}be.prototype.property={},be.prototype.normal={},be.prototype.space=null;function Ae(ce,ge){const et={},en={};let xr=-1;for(;++xr<ce.length;)Object.assign(et,ce[xr].property),Object.assign(en,ce[xr].normal);return new be(et,en,ge)}function De(ce){return ce.toLowerCase()}class We{constructor(ge,et){this.property=ge,this.attribute=et}}We.prototype.space=null,We.prototype.boolean=!1,We.prototype.booleanish=!1,We.prototype.overloadedBoolean=!1,We.prototype.number=!1,We.prototype.commaSeparated=!1,We.prototype.spaceSeparated=!1,We.prototype.commaOrSpaceSeparated=!1,We.prototype.mustUseProperty=!1,We.prototype.defined=!1;let nt=0;const qe=Ht(),ot=Ht(),mt=Ht(),at=Ht(),vt=Ht(),wt=Ht(),At=Ht();function Ht(){return aS(2,++nt)}const Qt=Object.keys(oe);class Zt extends We{constructor(ge,et,en,xr){let ci=-1;if(super(ge,et),ln(this,"space",xr),typeof en=="number")for(;++ci<Qt.length;){const Ai=Qt[ci];ln(this,Qt[ci],(en&oe[Ai])===oe[Ai])}}}Zt.prototype.defined=!0;function ln(ce,ge,et){et&&(ce[ge]=et)}const Nt={}.hasOwnProperty;function gt(ce){const ge={},et={};let en;for(en in ce.properties)if(Nt.call(ce.properties,en)){const xr=ce.properties[en],ci=new Zt(en,ce.transform(ce.attributes||{},en),xr,ce.space);ce.mustUseProperty&&ce.mustUseProperty.includes(en)&&(ci.mustUseProperty=!0),ge[en]=ci,et[De(en)]=en,et[De(ci.attribute)]=en}return new be(ge,et,ce.space)}const ct=gt({space:"xlink",transform(ce,ge){return"xlink:"+ge.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Jt=gt({space:"xml",transform(ce,ge){return"xml:"+ge.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function sn(ce,ge){return ge in ce?ce[ge]:ge}function It(ce,ge){return sn(ce,ge.toLowerCase())}const wn=gt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:It,properties:{xmlns:null,xmlnsXLink:null}}),bn=gt({transform(ce,ge){return ge==="role"?ge:"aria-"+ge.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ot,ariaAutoComplete:null,ariaBusy:ot,ariaChecked:ot,ariaColCount:at,ariaColIndex:at,ariaColSpan:at,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:ot,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:ot,ariaFlowTo:vt,ariaGrabbed:ot,ariaHasPopup:null,ariaHidden:ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:at,ariaLive:null,ariaModal:ot,ariaMultiLine:ot,ariaMultiSelectable:ot,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:at,ariaPressed:ot,ariaReadOnly:ot,ariaRelevant:null,ariaRequired:ot,ariaRoleDescription:vt,ariaRowCount:at,ariaRowIndex:at,ariaRowSpan:at,ariaSelected:ot,ariaSetSize:at,ariaSort:null,ariaValueMax:at,ariaValueMin:at,ariaValueNow:at,ariaValueText:null,role:null}}),_n=gt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:It,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wt,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:qe,allowPaymentRequest:qe,allowUserMedia:qe,alt:null,as:null,async:qe,autoCapitalize:null,autoComplete:vt,autoFocus:qe,autoPlay:qe,blocking:vt,capture:null,charSet:null,checked:qe,cite:null,className:vt,cols:at,colSpan:null,content:null,contentEditable:ot,controls:qe,controlsList:vt,coords:at|wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qe,defer:qe,dir:null,dirName:null,disabled:qe,download:mt,draggable:ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:qe,formTarget:null,headers:vt,height:at,hidden:qe,high:at,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:qe,inputMode:null,integrity:null,is:null,isMap:qe,itemId:null,itemProp:vt,itemRef:vt,itemScope:qe,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qe,low:at,manifest:null,max:null,maxLength:at,media:null,method:null,min:null,minLength:at,multiple:qe,muted:qe,name:null,nonce:null,noModule:qe,noValidate:qe,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:qe,optimum:at,pattern:null,ping:vt,placeholder:null,playsInline:qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:qe,referrerPolicy:null,rel:vt,required:qe,reversed:qe,rows:at,rowSpan:at,sandbox:vt,scope:null,scoped:qe,seamless:qe,selected:qe,shadowRootClonable:qe,shadowRootDelegatesFocus:qe,shadowRootMode:null,shape:null,size:at,sizes:null,slot:null,span:at,spellCheck:ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:at,step:null,style:null,tabIndex:at,target:null,title:null,translate:null,type:null,typeMustMatch:qe,useMap:null,value:ot,width:at,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:at,borderColor:null,bottomMargin:at,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:qe,declare:qe,event:null,face:null,frame:null,frameBorder:null,hSpace:at,leftMargin:at,link:null,longDesc:null,lowSrc:null,marginHeight:at,marginWidth:at,noResize:qe,noHref:qe,noShade:qe,noWrap:qe,object:null,profile:null,prompt:null,rev:null,rightMargin:at,rules:null,scheme:null,scrolling:ot,standby:null,summary:null,text:null,topMargin:at,valueType:null,version:null,vAlign:null,vLink:null,vSpace:at,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:qe,disableRemotePlayback:qe,prefix:null,property:null,results:at,security:null,unselectable:null}}),Xt=gt({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:sn,properties:{about:At,accentHeight:at,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:at,amplitude:at,arabicForm:null,ascent:at,attributeName:null,attributeType:null,azimuth:at,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:at,by:null,calcMode:null,capHeight:at,className:vt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:at,diffuseConstant:at,direction:null,display:null,dur:null,divisor:at,dominantBaseline:null,download:qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:at,enableBackground:null,end:null,event:null,exponent:at,externalResourcesRequired:null,fill:null,fillOpacity:at,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wt,g2:wt,glyphName:wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:at,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:at,horizOriginX:at,horizOriginY:at,id:null,ideographic:at,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:at,k:at,k1:at,k2:at,k3:at,k4:at,kernelMatrix:At,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:at,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:at,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:at,overlineThickness:at,paintOrder:null,panose1:null,path:null,pathLength:at,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:at,pointsAtY:at,pointsAtZ:at,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:At,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:At,rev:At,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:At,requiredFeatures:At,requiredFonts:At,requiredFormats:At,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:at,specularExponent:at,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:at,strikethroughThickness:at,string:null,stroke:null,strokeDashArray:At,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:at,strokeOpacity:at,strokeWidth:null,style:null,surfaceScale:at,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:At,tabIndex:at,tableValues:null,target:null,targetX:at,targetY:at,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:At,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:at,underlineThickness:at,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:at,values:null,vAlphabetic:at,vMathematical:at,vectorEffect:null,vHanging:at,vIdeographic:at,version:null,vertAdvY:at,vertOriginX:at,vertOriginY:at,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:at,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),zn=Ae([Jt,ct,wn,bn,_n],"html"),Ot=Ae([Jt,ct,wn,bn,Xt],"svg"),jn=/^data[-\w.:]+$/i,cr=/-[a-z]/g,it=/[A-Z]/g;function _e(ce,ge){const et=De(ge);let en=ge,xr=We;if(et in ce.normal)return ce.property[ce.normal[et]];if(et.length>4&&et.slice(0,4)==="data"&&jn.test(ge)){if(ge.charAt(4)==="-"){const ci=ge.slice(5).replace(cr,Xe);en="data"+ci.charAt(0).toUpperCase()+ci.slice(1)}else{const ci=ge.slice(4);if(!cr.test(ci)){let Ai=ci.replace(it,Re);Ai.charAt(0)!=="-"&&(Ai="-"+Ai),ge="data"+Ai}}xr=Zt}return new xr(en,ge)}function Re(ce){return"-"+ce.toLowerCase()}function Xe(ce){return ce.charAt(1).toUpperCase()}var lt=ae(71523);const Be={}.hasOwnProperty;function bt(ce,ge){const et=ge||{};function en(xr,...ci){let Ai=en.invalid;const Lo=en.handlers;if(xr&&Be.call(xr,ce)){const Ko=String(xr[ce]);Ai=Be.call(Lo,Ko)?Lo[Ko]:en.unknown}if(Ai)return Ai.call(this,xr,...ci)}return en.handlers=et.handlers||{},en.invalid=et.invalid,en.unknown=et.unknown,en}const Wt={},yn={}.hasOwnProperty,On=bt("type",{handlers:{root:Vt,element:Mt,text:Tn,comment:gn,doctype:pn}});function Pt(ce,ge){const en=(ge||Wt).space;return On(ce,en==="svg"?Ot:zn)}function Vt(ce,ge){const et={nodeName:"#document",mode:(ce.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return et.childNodes=Yt(ce.children,et,ge),on(ce,et),et}function zt(ce,ge){const et={nodeName:"#document-fragment",childNodes:[]};return et.childNodes=Yt(ce.children,et,ge),on(ce,et),et}function pn(ce){const ge={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return on(ce,ge),ge}function Tn(ce){const ge={nodeName:"#text",value:ce.value,parentNode:null};return on(ce,ge),ge}function gn(ce){const ge={nodeName:"#comment",data:ce.value,parentNode:null};return on(ce,ge),ge}function Mt(ce,ge){const et=ge;let en=et;ce.type==="element"&&ce.tagName.toLowerCase()==="svg"&&et.space==="html"&&(en=Ot);const xr=[];let ci;if(ce.properties){for(ci in ce.properties)if(ci!=="children"&&yn.call(ce.properties,ci)){const Ko=Un(en,ci,ce.properties[ci]);Ko&&xr.push(Ko)}}const Ai=en.space;(0,Ie.ok)(Ai);const Lo={nodeName:ce.tagName,tagName:ce.tagName,attrs:xr,namespaceURI:Qe.t[Ai],childNodes:[],parentNode:null};return Lo.childNodes=Yt(ce.children,Lo,en),on(ce,Lo),ce.tagName==="template"&&ce.content&&(Lo.content=zt(ce.content,en)),Lo}function Un(ce,ge,et){const en=_e(ce,ge);if(et===!1||et===null||et===void 0||typeof et=="number"&&Number.isNaN(et)||!et&&en.boolean)return;Array.isArray(et)&&(et=en.commaSeparated?(0,me.P)(et):(0,lt.P)(et));const xr={name:en.attribute,value:et===!0?"":String(et)};if(en.space&&en.space!=="html"&&en.space!=="svg"){const ci=xr.name.indexOf(":");ci<0?xr.prefix="":(xr.name=xr.name.slice(ci+1),xr.prefix=en.attribute.slice(0,ci)),xr.namespace=Qe.t[en.space]}return xr}function Yt(ce,ge,et){let en=-1;const xr=[];if(ce)for(;++en<ce.length;){const ci=On(ce[en],et);ci.parentNode=ge,xr.push(ci)}return xr}function on(ce,ge){const et=ce.position;et&&et.start&&et.end&&((0,Ie.ok)(typeof et.start.offset=="number"),(0,Ie.ok)(typeof et.end.offset=="number"),ge.sourceCodeLocation={startLine:et.start.line,startCol:et.start.column,startOffset:et.start.offset,endLine:et.end.line,endCol:et.end.column,endOffset:et.end.offset})}const mn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],er=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]),Sn="\uFFFD";var ht;(function(ce){ce[ce.EOF=-1]="EOF",ce[ce.NULL=0]="NULL",ce[ce.TABULATION=9]="TABULATION",ce[ce.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",ce[ce.LINE_FEED=10]="LINE_FEED",ce[ce.FORM_FEED=12]="FORM_FEED",ce[ce.SPACE=32]="SPACE",ce[ce.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",ce[ce.QUOTATION_MARK=34]="QUOTATION_MARK",ce[ce.AMPERSAND=38]="AMPERSAND",ce[ce.APOSTROPHE=39]="APOSTROPHE",ce[ce.HYPHEN_MINUS=45]="HYPHEN_MINUS",ce[ce.SOLIDUS=47]="SOLIDUS",ce[ce.DIGIT_0=48]="DIGIT_0",ce[ce.DIGIT_9=57]="DIGIT_9",ce[ce.SEMICOLON=59]="SEMICOLON",ce[ce.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",ce[ce.EQUALS_SIGN=61]="EQUALS_SIGN",ce[ce.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",ce[ce.QUESTION_MARK=63]="QUESTION_MARK",ce[ce.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",ce[ce.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",ce[ce.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",ce[ce.GRAVE_ACCENT=96]="GRAVE_ACCENT",ce[ce.LATIN_SMALL_A=97]="LATIN_SMALL_A",ce[ce.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(ht||(ht={}));const tr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function lr(ce){return ce>=55296&&ce<=57343}function qt(ce){return ce>=56320&&ce<=57343}function yr(ce,ge){return(ce-55296)*1024+9216+ge}function ri(ce){return ce!==32&&ce!==10&&ce!==13&&ce!==9&&ce!==12&&ce>=1&&ce<=31||ce>=127&&ce<=159}function Or(ce){return ce>=64976&&ce<=65007||er.has(ce)}var Nn;(function(ce){ce.controlCharacterInInputStream="control-character-in-input-stream",ce.noncharacterInInputStream="noncharacter-in-input-stream",ce.surrogateInInputStream="surrogate-in-input-stream",ce.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",ce.endTagWithAttributes="end-tag-with-attributes",ce.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",ce.unexpectedSolidusInTag="unexpected-solidus-in-tag",ce.unexpectedNullCharacter="unexpected-null-character",ce.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",ce.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",ce.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",ce.missingEndTagName="missing-end-tag-name",ce.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",ce.unknownNamedCharacterReference="unknown-named-character-reference",ce.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",ce.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",ce.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",ce.eofBeforeTagName="eof-before-tag-name",ce.eofInTag="eof-in-tag",ce.missingAttributeValue="missing-attribute-value",ce.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",ce.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",ce.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",ce.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",ce.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",ce.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",ce.missingDoctypePublicIdentifier="missing-doctype-public-identifier",ce.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",ce.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",ce.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",ce.cdataInHtmlContent="cdata-in-html-content",ce.incorrectlyOpenedComment="incorrectly-opened-comment",ce.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",ce.eofInDoctype="eof-in-doctype",ce.nestedComment="nested-comment",ce.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",ce.eofInComment="eof-in-comment",ce.incorrectlyClosedComment="incorrectly-closed-comment",ce.eofInCdata="eof-in-cdata",ce.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",ce.nullCharacterReference="null-character-reference",ce.surrogateCharacterReference="surrogate-character-reference",ce.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",ce.controlCharacterReference="control-character-reference",ce.noncharacterCharacterReference="noncharacter-character-reference",ce.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",ce.missingDoctypeName="missing-doctype-name",ce.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",ce.duplicateAttribute="duplicate-attribute",ce.nonConformingDoctype="non-conforming-doctype",ce.missingDoctype="missing-doctype",ce.misplacedDoctype="misplaced-doctype",ce.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",ce.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",ce.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",ce.openElementsLeftAfterEof="open-elements-left-after-eof",ce.abandonedHeadElementChild="abandoned-head-element-child",ce.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",ce.nestedNoscriptInHead="nested-noscript-in-head",ce.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Nn||(Nn={}));const ui=65536;class $r{constructor(ge){this.handler=ge,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=ui,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(ge,et){const{line:en,col:xr,offset:ci}=this,Ai=xr+et,Lo=ci+et;return{code:ge,startLine:en,endLine:en,startCol:Ai,endCol:Ai,startOffset:Lo,endOffset:Lo}}_err(ge){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(ge,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(ge){if(this.pos!==this.html.length-1){const et=this.html.charCodeAt(this.pos+1);if(qt(et))return this.pos++,this._addGap(),yr(ge,et)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ht.EOF;return this._err(Nn.surrogateInInputStream),ge}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(ge,et){this.html.length>0?this.html+=ge:this.html=ge,this.endOfChunkHit=!1,this.lastChunkWritten=et}insertHtmlAtCurrentPos(ge){this.html=this.html.substring(0,this.pos+1)+ge+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(ge,et){if(this.pos+ge.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(et)return this.html.startsWith(ge,this.pos);for(let en=0;en<ge.length;en++)if((this.html.charCodeAt(this.pos+en)|32)!==ge.charCodeAt(en))return!1;return!0}peek(ge){const et=this.pos+ge;if(et>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ht.EOF;const en=this.html.charCodeAt(et);return en===ht.CARRIAGE_RETURN?ht.LINE_FEED:en}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,ht.EOF;let ge=this.html.charCodeAt(this.pos);return ge===ht.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ht.LINE_FEED):ge===ht.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,lr(ge)&&(ge=this._processSurrogate(ge)),this.handler.onParseError===null||ge>31&&ge<127||ge===ht.LINE_FEED||ge===ht.CARRIAGE_RETURN||ge>159&&ge<64976||this._checkForProblematicCharacters(ge),ge)}_checkForProblematicCharacters(ge){ri(ge)?this._err(Nn.controlCharacterInInputStream):Or(ge)&&this._err(Nn.noncharacterInInputStream)}retreat(ge){for(this.pos-=ge;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var or;(function(ce){ce[ce.CHARACTER=0]="CHARACTER",ce[ce.NULL_CHARACTER=1]="NULL_CHARACTER",ce[ce.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",ce[ce.START_TAG=3]="START_TAG",ce[ce.END_TAG=4]="END_TAG",ce[ce.COMMENT=5]="COMMENT",ce[ce.DOCTYPE=6]="DOCTYPE",ce[ce.EOF=7]="EOF",ce[ce.HIBERNATION=8]="HIBERNATION"})(or||(or={}));function Kr(ce,ge){for(let et=ce.attrs.length-1;et>=0;et--)if(ce.attrs[et].name===ge)return ce.attrs[et].value;return null}var oi=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(ce=>ce.charCodeAt(0))),Me=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ce=>ce.charCodeAt(0))),kr;const Pr=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]]),ei=(kr=String.fromCodePoint)!==null&&kr!==void 0?kr:function(ce){let ge="";return ce>65535&&(ce-=65536,ge+=String.fromCharCode(ce>>>10&1023|55296),ce=56320|ce&1023),ge+=String.fromCharCode(ce),ge};function Ii(ce){var ge;return ce>=55296&&ce<=57343||ce>1114111?65533:(ge=Pr.get(ce))!==null&&ge!==void 0?ge:ce}function Di(ce){return ei(Ii(ce))}var Ti;(function(ce){ce[ce.NUM=35]="NUM",ce[ce.SEMI=59]="SEMI",ce[ce.EQUALS=61]="EQUALS",ce[ce.ZERO=48]="ZERO",ce[ce.NINE=57]="NINE",ce[ce.LOWER_A=97]="LOWER_A",ce[ce.LOWER_F=102]="LOWER_F",ce[ce.LOWER_X=120]="LOWER_X",ce[ce.LOWER_Z=122]="LOWER_Z",ce[ce.UPPER_A=65]="UPPER_A",ce[ce.UPPER_F=70]="UPPER_F",ce[ce.UPPER_Z=90]="UPPER_Z"})(Ti||(Ti={}));const Vr=32;var Fr;(function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"})(Fr||(Fr={}));function dn(ce){return ce>=Ti.ZERO&&ce<=Ti.NINE}function hn(ce){return ce>=Ti.UPPER_A&&ce<=Ti.UPPER_F||ce>=Ti.LOWER_A&&ce<=Ti.LOWER_F}function un(ce){return ce>=Ti.UPPER_A&&ce<=Ti.UPPER_Z||ce>=Ti.LOWER_A&&ce<=Ti.LOWER_Z||dn(ce)}function Ur(ce){return ce===Ti.EQUALS||un(ce)}var Tr;(function(ce){ce[ce.EntityStart=0]="EntityStart",ce[ce.NumericStart=1]="NumericStart",ce[ce.NumericDecimal=2]="NumericDecimal",ce[ce.NumericHex=3]="NumericHex",ce[ce.NamedEntity=4]="NamedEntity"})(Tr||(Tr={}));var Zr;(function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"})(Zr||(Zr={}));class sr{constructor(ge,et,en){this.decodeTree=ge,this.emitCodePoint=et,this.errors=en,this.state=Tr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Zr.Strict}startEntity(ge){this.decodeMode=ge,this.state=Tr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(ge,et){switch(this.state){case Tr.EntityStart:return ge.charCodeAt(et)===Ti.NUM?(this.state=Tr.NumericStart,this.consumed+=1,this.stateNumericStart(ge,et+1)):(this.state=Tr.NamedEntity,this.stateNamedEntity(ge,et));case Tr.NumericStart:return this.stateNumericStart(ge,et);case Tr.NumericDecimal:return this.stateNumericDecimal(ge,et);case Tr.NumericHex:return this.stateNumericHex(ge,et);case Tr.NamedEntity:return this.stateNamedEntity(ge,et)}}stateNumericStart(ge,et){return et>=ge.length?-1:(ge.charCodeAt(et)|Vr)===Ti.LOWER_X?(this.state=Tr.NumericHex,this.consumed+=1,this.stateNumericHex(ge,et+1)):(this.state=Tr.NumericDecimal,this.stateNumericDecimal(ge,et))}addToNumericResult(ge,et,en,xr){if(et!==en){const ci=en-et;this.result=this.result*Math.pow(xr,ci)+parseInt(ge.substr(et,ci),xr),this.consumed+=ci}}stateNumericHex(ge,et){const en=et;for(;et<ge.length;){const xr=ge.charCodeAt(et);if(dn(xr)||hn(xr))et+=1;else return this.addToNumericResult(ge,en,et,16),this.emitNumericEntity(xr,3)}return this.addToNumericResult(ge,en,et,16),-1}stateNumericDecimal(ge,et){const en=et;for(;et<ge.length;){const xr=ge.charCodeAt(et);if(dn(xr))et+=1;else return this.addToNumericResult(ge,en,et,10),this.emitNumericEntity(xr,2)}return this.addToNumericResult(ge,en,et,10),-1}emitNumericEntity(ge,et){var en;if(this.consumed<=et)return(en=this.errors)===null||en===void 0||en.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(ge===Ti.SEMI)this.consumed+=1;else if(this.decodeMode===Zr.Strict)return 0;return this.emitCodePoint(Ii(this.result),this.consumed),this.errors&&(ge!==Ti.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(ge,et){const{decodeTree:en}=this;let xr=en[this.treeIndex],ci=(xr&Fr.VALUE_LENGTH)>>14;for(;et<ge.length;et++,this.excess++){const Ai=ge.charCodeAt(et);if(this.treeIndex=Cn(en,xr,this.treeIndex+Math.max(1,ci),Ai),this.treeIndex<0)return this.result===0||this.decodeMode===Zr.Attribute&&(ci===0||Ur(Ai))?0:this.emitNotTerminatedNamedEntity();if(xr=en[this.treeIndex],ci=(xr&Fr.VALUE_LENGTH)>>14,ci!==0){if(Ai===Ti.SEMI)return this.emitNamedEntityData(this.treeIndex,ci,this.consumed+this.excess);this.decodeMode!==Zr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var ge;const{result:et,decodeTree:en}=this,xr=(en[et]&Fr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(et,xr,this.consumed),(ge=this.errors)===null||ge===void 0||ge.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(ge,et,en){const{decodeTree:xr}=this;return this.emitCodePoint(et===1?xr[ge]&~Fr.VALUE_LENGTH:xr[ge+1],en),et===3&&this.emitCodePoint(xr[ge+2],en),en}end(){var ge;switch(this.state){case Tr.NamedEntity:return this.result!==0&&(this.decodeMode!==Zr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Tr.NumericDecimal:return this.emitNumericEntity(0,2);case Tr.NumericHex:return this.emitNumericEntity(0,3);case Tr.NumericStart:return(ge=this.errors)===null||ge===void 0||ge.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Tr.EntityStart:return 0}}}function Rr(ce){let ge="";const et=new sr(ce,en=>ge+=ei(en));return function(xr,ci){let Ai=0,Lo=0;for(;(Lo=xr.indexOf("&",Lo))>=0;){ge+=xr.slice(Ai,Lo),et.startEntity(ci);const li=et.write(xr,Lo+1);if(li<0){Ai=Lo+et.end();break}Ai=Lo+li,Lo=li===0?Ai+1:Ai}const Ko=ge+xr.slice(Ai);return ge="",Ko}}function Cn(ce,ge,et,en){const xr=(ge&Fr.BRANCH_LENGTH)>>7,ci=ge&Fr.JUMP_TABLE;if(xr===0)return ci!==0&&en===ci?et:-1;if(ci){const Ko=en-ci;return Ko<0||Ko>=xr?-1:ce[et+Ko]-1}let Ai=et,Lo=Ai+xr-1;for(;Ai<=Lo;){const Ko=Ai+Lo>>>1,li=ce[Ko];if(li<en)Ai=Ko+1;else if(li>en)Lo=Ko-1;else return ce[Ko+xr]}return-1}const fn=Rr(oi),Wr=Rr(Me);function kt(ce,ge=Zr.Legacy){return fn(ce,ge)}function Gn(ce){return fn(ce,Zr.Attribute)}function vr(ce){return fn(ce,Zr.Strict)}function Qr(ce){return Wr(ce,Zr.Strict)}var nn;(function(ce){ce.HTML="http://www.w3.org/1999/xhtml",ce.MATHML="http://www.w3.org/1998/Math/MathML",ce.SVG="http://www.w3.org/2000/svg",ce.XLINK="http://www.w3.org/1999/xlink",ce.XML="http://www.w3.org/XML/1998/namespace",ce.XMLNS="http://www.w3.org/2000/xmlns/"})(nn||(nn={}));var Qn;(function(ce){ce.TYPE="type",ce.ACTION="action",ce.ENCODING="encoding",ce.PROMPT="prompt",ce.NAME="name",ce.COLOR="color",ce.FACE="face",ce.SIZE="size"})(Qn||(Qn={}));var Dn;(function(ce){ce.NO_QUIRKS="no-quirks",ce.QUIRKS="quirks",ce.LIMITED_QUIRKS="limited-quirks"})(Dn||(Dn={}));var xn;(function(ce){ce.A="a",ce.ADDRESS="address",ce.ANNOTATION_XML="annotation-xml",ce.APPLET="applet",ce.AREA="area",ce.ARTICLE="article",ce.ASIDE="aside",ce.B="b",ce.BASE="base",ce.BASEFONT="basefont",ce.BGSOUND="bgsound",ce.BIG="big",ce.BLOCKQUOTE="blockquote",ce.BODY="body",ce.BR="br",ce.BUTTON="button",ce.CAPTION="caption",ce.CENTER="center",ce.CODE="code",ce.COL="col",ce.COLGROUP="colgroup",ce.DD="dd",ce.DESC="desc",ce.DETAILS="details",ce.DIALOG="dialog",ce.DIR="dir",ce.DIV="div",ce.DL="dl",ce.DT="dt",ce.EM="em",ce.EMBED="embed",ce.FIELDSET="fieldset",ce.FIGCAPTION="figcaption",ce.FIGURE="figure",ce.FONT="font",ce.FOOTER="footer",ce.FOREIGN_OBJECT="foreignObject",ce.FORM="form",ce.FRAME="frame",ce.FRAMESET="frameset",ce.H1="h1",ce.H2="h2",ce.H3="h3",ce.H4="h4",ce.H5="h5",ce.H6="h6",ce.HEAD="head",ce.HEADER="header",ce.HGROUP="hgroup",ce.HR="hr",ce.HTML="html",ce.I="i",ce.IMG="img",ce.IMAGE="image",ce.INPUT="input",ce.IFRAME="iframe",ce.KEYGEN="keygen",ce.LABEL="label",ce.LI="li",ce.LINK="link",ce.LISTING="listing",ce.MAIN="main",ce.MALIGNMARK="malignmark",ce.MARQUEE="marquee",ce.MATH="math",ce.MENU="menu",ce.META="meta",ce.MGLYPH="mglyph",ce.MI="mi",ce.MO="mo",ce.MN="mn",ce.MS="ms",ce.MTEXT="mtext",ce.NAV="nav",ce.NOBR="nobr",ce.NOFRAMES="noframes",ce.NOEMBED="noembed",ce.NOSCRIPT="noscript",ce.OBJECT="object",ce.OL="ol",ce.OPTGROUP="optgroup",ce.OPTION="option",ce.P="p",ce.PARAM="param",ce.PLAINTEXT="plaintext",ce.PRE="pre",ce.RB="rb",ce.RP="rp",ce.RT="rt",ce.RTC="rtc",ce.RUBY="ruby",ce.S="s",ce.SCRIPT="script",ce.SEARCH="search",ce.SECTION="section",ce.SELECT="select",ce.SOURCE="source",ce.SMALL="small",ce.SPAN="span",ce.STRIKE="strike",ce.STRONG="strong",ce.STYLE="style",ce.SUB="sub",ce.SUMMARY="summary",ce.SUP="sup",ce.TABLE="table",ce.TBODY="tbody",ce.TEMPLATE="template",ce.TEXTAREA="textarea",ce.TFOOT="tfoot",ce.TD="td",ce.TH="th",ce.THEAD="thead",ce.TITLE="title",ce.TR="tr",ce.TRACK="track",ce.TT="tt",ce.U="u",ce.UL="ul",ce.SVG="svg",ce.VAR="var",ce.WBR="wbr",ce.XMP="xmp"})(xn||(xn={}));var Ge;(function(ce){ce[ce.UNKNOWN=0]="UNKNOWN",ce[ce.A=1]="A",ce[ce.ADDRESS=2]="ADDRESS",ce[ce.ANNOTATION_XML=3]="ANNOTATION_XML",ce[ce.APPLET=4]="APPLET",ce[ce.AREA=5]="AREA",ce[ce.ARTICLE=6]="ARTICLE",ce[ce.ASIDE=7]="ASIDE",ce[ce.B=8]="B",ce[ce.BASE=9]="BASE",ce[ce.BASEFONT=10]="BASEFONT",ce[ce.BGSOUND=11]="BGSOUND",ce[ce.BIG=12]="BIG",ce[ce.BLOCKQUOTE=13]="BLOCKQUOTE",ce[ce.BODY=14]="BODY",ce[ce.BR=15]="BR",ce[ce.BUTTON=16]="BUTTON",ce[ce.CAPTION=17]="CAPTION",ce[ce.CENTER=18]="CENTER",ce[ce.CODE=19]="CODE",ce[ce.COL=20]="COL",ce[ce.COLGROUP=21]="COLGROUP",ce[ce.DD=22]="DD",ce[ce.DESC=23]="DESC",ce[ce.DETAILS=24]="DETAILS",ce[ce.DIALOG=25]="DIALOG",ce[ce.DIR=26]="DIR",ce[ce.DIV=27]="DIV",ce[ce.DL=28]="DL",ce[ce.DT=29]="DT",ce[ce.EM=30]="EM",ce[ce.EMBED=31]="EMBED",ce[ce.FIELDSET=32]="FIELDSET",ce[ce.FIGCAPTION=33]="FIGCAPTION",ce[ce.FIGURE=34]="FIGURE",ce[ce.FONT=35]="FONT",ce[ce.FOOTER=36]="FOOTER",ce[ce.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",ce[ce.FORM=38]="FORM",ce[ce.FRAME=39]="FRAME",ce[ce.FRAMESET=40]="FRAMESET",ce[ce.H1=41]="H1",ce[ce.H2=42]="H2",ce[ce.H3=43]="H3",ce[ce.H4=44]="H4",ce[ce.H5=45]="H5",ce[ce.H6=46]="H6",ce[ce.HEAD=47]="HEAD",ce[ce.HEADER=48]="HEADER",ce[ce.HGROUP=49]="HGROUP",ce[ce.HR=50]="HR",ce[ce.HTML=51]="HTML",ce[ce.I=52]="I",ce[ce.IMG=53]="IMG",ce[ce.IMAGE=54]="IMAGE",ce[ce.INPUT=55]="INPUT",ce[ce.IFRAME=56]="IFRAME",ce[ce.KEYGEN=57]="KEYGEN",ce[ce.LABEL=58]="LABEL",ce[ce.LI=59]="LI",ce[ce.LINK=60]="LINK",ce[ce.LISTING=61]="LISTING",ce[ce.MAIN=62]="MAIN",ce[ce.MALIGNMARK=63]="MALIGNMARK",ce[ce.MARQUEE=64]="MARQUEE",ce[ce.MATH=65]="MATH",ce[ce.MENU=66]="MENU",ce[ce.META=67]="META",ce[ce.MGLYPH=68]="MGLYPH",ce[ce.MI=69]="MI",ce[ce.MO=70]="MO",ce[ce.MN=71]="MN",ce[ce.MS=72]="MS",ce[ce.MTEXT=73]="MTEXT",ce[ce.NAV=74]="NAV",ce[ce.NOBR=75]="NOBR",ce[ce.NOFRAMES=76]="NOFRAMES",ce[ce.NOEMBED=77]="NOEMBED",ce[ce.NOSCRIPT=78]="NOSCRIPT",ce[ce.OBJECT=79]="OBJECT",ce[ce.OL=80]="OL",ce[ce.OPTGROUP=81]="OPTGROUP",ce[ce.OPTION=82]="OPTION",ce[ce.P=83]="P",ce[ce.PARAM=84]="PARAM",ce[ce.PLAINTEXT=85]="PLAINTEXT",ce[ce.PRE=86]="PRE",ce[ce.RB=87]="RB",ce[ce.RP=88]="RP",ce[ce.RT=89]="RT",ce[ce.RTC=90]="RTC",ce[ce.RUBY=91]="RUBY",ce[ce.S=92]="S",ce[ce.SCRIPT=93]="SCRIPT",ce[ce.SEARCH=94]="SEARCH",ce[ce.SECTION=95]="SECTION",ce[ce.SELECT=96]="SELECT",ce[ce.SOURCE=97]="SOURCE",ce[ce.SMALL=98]="SMALL",ce[ce.SPAN=99]="SPAN",ce[ce.STRIKE=100]="STRIKE",ce[ce.STRONG=101]="STRONG",ce[ce.STYLE=102]="STYLE",ce[ce.SUB=103]="SUB",ce[ce.SUMMARY=104]="SUMMARY",ce[ce.SUP=105]="SUP",ce[ce.TABLE=106]="TABLE",ce[ce.TBODY=107]="TBODY",ce[ce.TEMPLATE=108]="TEMPLATE",ce[ce.TEXTAREA=109]="TEXTAREA",ce[ce.TFOOT=110]="TFOOT",ce[ce.TD=111]="TD",ce[ce.TH=112]="TH",ce[ce.THEAD=113]="THEAD",ce[ce.TITLE=114]="TITLE",ce[ce.TR=115]="TR",ce[ce.TRACK=116]="TRACK",ce[ce.TT=117]="TT",ce[ce.U=118]="U",ce[ce.UL=119]="UL",ce[ce.SVG=120]="SVG",ce[ce.VAR=121]="VAR",ce[ce.WBR=122]="WBR",ce[ce.XMP=123]="XMP"})(Ge||(Ge={}));const Jr=new Map([[xn.A,Ge.A],[xn.ADDRESS,Ge.ADDRESS],[xn.ANNOTATION_XML,Ge.ANNOTATION_XML],[xn.APPLET,Ge.APPLET],[xn.AREA,Ge.AREA],[xn.ARTICLE,Ge.ARTICLE],[xn.ASIDE,Ge.ASIDE],[xn.B,Ge.B],[xn.BASE,Ge.BASE],[xn.BASEFONT,Ge.BASEFONT],[xn.BGSOUND,Ge.BGSOUND],[xn.BIG,Ge.BIG],[xn.BLOCKQUOTE,Ge.BLOCKQUOTE],[xn.BODY,Ge.BODY],[xn.BR,Ge.BR],[xn.BUTTON,Ge.BUTTON],[xn.CAPTION,Ge.CAPTION],[xn.CENTER,Ge.CENTER],[xn.CODE,Ge.CODE],[xn.COL,Ge.COL],[xn.COLGROUP,Ge.COLGROUP],[xn.DD,Ge.DD],[xn.DESC,Ge.DESC],[xn.DETAILS,Ge.DETAILS],[xn.DIALOG,Ge.DIALOG],[xn.DIR,Ge.DIR],[xn.DIV,Ge.DIV],[xn.DL,Ge.DL],[xn.DT,Ge.DT],[xn.EM,Ge.EM],[xn.EMBED,Ge.EMBED],[xn.FIELDSET,Ge.FIELDSET],[xn.FIGCAPTION,Ge.FIGCAPTION],[xn.FIGURE,Ge.FIGURE],[xn.FONT,Ge.FONT],[xn.FOOTER,Ge.FOOTER],[xn.FOREIGN_OBJECT,Ge.FOREIGN_OBJECT],[xn.FORM,Ge.FORM],[xn.FRAME,Ge.FRAME],[xn.FRAMESET,Ge.FRAMESET],[xn.H1,Ge.H1],[xn.H2,Ge.H2],[xn.H3,Ge.H3],[xn.H4,Ge.H4],[xn.H5,Ge.H5],[xn.H6,Ge.H6],[xn.HEAD,Ge.HEAD],[xn.HEADER,Ge.HEADER],[xn.HGROUP,Ge.HGROUP],[xn.HR,Ge.HR],[xn.HTML,Ge.HTML],[xn.I,Ge.I],[xn.IMG,Ge.IMG],[xn.IMAGE,Ge.IMAGE],[xn.INPUT,Ge.INPUT],[xn.IFRAME,Ge.IFRAME],[xn.KEYGEN,Ge.KEYGEN],[xn.LABEL,Ge.LABEL],[xn.LI,Ge.LI],[xn.LINK,Ge.LINK],[xn.LISTING,Ge.LISTING],[xn.MAIN,Ge.MAIN],[xn.MALIGNMARK,Ge.MALIGNMARK],[xn.MARQUEE,Ge.MARQUEE],[xn.MATH,Ge.MATH],[xn.MENU,Ge.MENU],[xn.META,Ge.META],[xn.MGLYPH,Ge.MGLYPH],[xn.MI,Ge.MI],[xn.MO,Ge.MO],[xn.MN,Ge.MN],[xn.MS,Ge.MS],[xn.MTEXT,Ge.MTEXT],[xn.NAV,Ge.NAV],[xn.NOBR,Ge.NOBR],[xn.NOFRAMES,Ge.NOFRAMES],[xn.NOEMBED,Ge.NOEMBED],[xn.NOSCRIPT,Ge.NOSCRIPT],[xn.OBJECT,Ge.OBJECT],[xn.OL,Ge.OL],[xn.OPTGROUP,Ge.OPTGROUP],[xn.OPTION,Ge.OPTION],[xn.P,Ge.P],[xn.PARAM,Ge.PARAM],[xn.PLAINTEXT,Ge.PLAINTEXT],[xn.PRE,Ge.PRE],[xn.RB,Ge.RB],[xn.RP,Ge.RP],[xn.RT,Ge.RT],[xn.RTC,Ge.RTC],[xn.RUBY,Ge.RUBY],[xn.S,Ge.S],[xn.SCRIPT,Ge.SCRIPT],[xn.SEARCH,Ge.SEARCH],[xn.SECTION,Ge.SECTION],[xn.SELECT,Ge.SELECT],[xn.SOURCE,Ge.SOURCE],[xn.SMALL,Ge.SMALL],[xn.SPAN,Ge.SPAN],[xn.STRIKE,Ge.STRIKE],[xn.STRONG,Ge.STRONG],[xn.STYLE,Ge.STYLE],[xn.SUB,Ge.SUB],[xn.SUMMARY,Ge.SUMMARY],[xn.SUP,Ge.SUP],[xn.TABLE,Ge.TABLE],[xn.TBODY,Ge.TBODY],[xn.TEMPLATE,Ge.TEMPLATE],[xn.TEXTAREA,Ge.TEXTAREA],[xn.TFOOT,Ge.TFOOT],[xn.TD,Ge.TD],[xn.TH,Ge.TH],[xn.THEAD,Ge.THEAD],[xn.TITLE,Ge.TITLE],[xn.TR,Ge.TR],[xn.TRACK,Ge.TRACK],[xn.TT,Ge.TT],[xn.U,Ge.U],[xn.UL,Ge.UL],[xn.SVG,Ge.SVG],[xn.VAR,Ge.VAR],[xn.WBR,Ge.WBR],[xn.XMP,Ge.XMP]]);function Hr(ce){var ge;return(ge=Jr.get(ce))!==null&&ge!==void 0?ge:Ge.UNKNOWN}const Jn=Ge,hi={[nn.HTML]:new Set([Jn.ADDRESS,Jn.APPLET,Jn.AREA,Jn.ARTICLE,Jn.ASIDE,Jn.BASE,Jn.BASEFONT,Jn.BGSOUND,Jn.BLOCKQUOTE,Jn.BODY,Jn.BR,Jn.BUTTON,Jn.CAPTION,Jn.CENTER,Jn.COL,Jn.COLGROUP,Jn.DD,Jn.DETAILS,Jn.DIR,Jn.DIV,Jn.DL,Jn.DT,Jn.EMBED,Jn.FIELDSET,Jn.FIGCAPTION,Jn.FIGURE,Jn.FOOTER,Jn.FORM,Jn.FRAME,Jn.FRAMESET,Jn.H1,Jn.H2,Jn.H3,Jn.H4,Jn.H5,Jn.H6,Jn.HEAD,Jn.HEADER,Jn.HGROUP,Jn.HR,Jn.HTML,Jn.IFRAME,Jn.IMG,Jn.INPUT,Jn.LI,Jn.LINK,Jn.LISTING,Jn.MAIN,Jn.MARQUEE,Jn.MENU,Jn.META,Jn.NAV,Jn.NOEMBED,Jn.NOFRAMES,Jn.NOSCRIPT,Jn.OBJECT,Jn.OL,Jn.P,Jn.PARAM,Jn.PLAINTEXT,Jn.PRE,Jn.SCRIPT,Jn.SECTION,Jn.SELECT,Jn.SOURCE,Jn.STYLE,Jn.SUMMARY,Jn.TABLE,Jn.TBODY,Jn.TD,Jn.TEMPLATE,Jn.TEXTAREA,Jn.TFOOT,Jn.TH,Jn.THEAD,Jn.TITLE,Jn.TR,Jn.TRACK,Jn.UL,Jn.WBR,Jn.XMP]),[nn.MATHML]:new Set([Jn.MI,Jn.MO,Jn.MN,Jn.MS,Jn.MTEXT,Jn.ANNOTATION_XML]),[nn.SVG]:new Set([Jn.TITLE,Jn.FOREIGN_OBJECT,Jn.DESC]),[nn.XLINK]:new Set,[nn.XML]:new Set,[nn.XMLNS]:new Set},ti=new Set([Jn.H1,Jn.H2,Jn.H3,Jn.H4,Jn.H5,Jn.H6]),Si=new Set([xn.STYLE,xn.SCRIPT,xn.XMP,xn.IFRAME,xn.NOEMBED,xn.NOFRAMES,xn.PLAINTEXT]);function nr(ce,ge){return Si.has(ce)||ge&&ce===xn.NOSCRIPT}var vn;(function(ce){ce[ce.DATA=0]="DATA",ce[ce.RCDATA=1]="RCDATA",ce[ce.RAWTEXT=2]="RAWTEXT",ce[ce.SCRIPT_DATA=3]="SCRIPT_DATA",ce[ce.PLAINTEXT=4]="PLAINTEXT",ce[ce.TAG_OPEN=5]="TAG_OPEN",ce[ce.END_TAG_OPEN=6]="END_TAG_OPEN",ce[ce.TAG_NAME=7]="TAG_NAME",ce[ce.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",ce[ce.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",ce[ce.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",ce[ce.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",ce[ce.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",ce[ce.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",ce[ce.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",ce[ce.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",ce[ce.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",ce[ce.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",ce[ce.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",ce[ce.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",ce[ce.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",ce[ce.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",ce[ce.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",ce[ce.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",ce[ce.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",ce[ce.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",ce[ce.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",ce[ce.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",ce[ce.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",ce[ce.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",ce[ce.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",ce[ce.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",ce[ce.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",ce[ce.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",ce[ce.BOGUS_COMMENT=40]="BOGUS_COMMENT",ce[ce.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",ce[ce.COMMENT_START=42]="COMMENT_START",ce[ce.COMMENT_START_DASH=43]="COMMENT_START_DASH",ce[ce.COMMENT=44]="COMMENT",ce[ce.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",ce[ce.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",ce[ce.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",ce[ce.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",ce[ce.COMMENT_END_DASH=49]="COMMENT_END_DASH",ce[ce.COMMENT_END=50]="COMMENT_END",ce[ce.COMMENT_END_BANG=51]="COMMENT_END_BANG",ce[ce.DOCTYPE=52]="DOCTYPE",ce[ce.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",ce[ce.DOCTYPE_NAME=54]="DOCTYPE_NAME",ce[ce.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",ce[ce.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",ce[ce.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",ce[ce.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",ce[ce.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",ce[ce.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",ce[ce.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",ce[ce.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",ce[ce.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",ce[ce.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",ce[ce.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",ce[ce.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",ce[ce.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",ce[ce.CDATA_SECTION=68]="CDATA_SECTION",ce[ce.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",ce[ce.CDATA_SECTION_END=70]="CDATA_SECTION_END",ce[ce.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",ce[ce.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(vn||(vn={}));const xi={DATA:vn.DATA,RCDATA:vn.RCDATA,RAWTEXT:vn.RAWTEXT,SCRIPT_DATA:vn.SCRIPT_DATA,PLAINTEXT:vn.PLAINTEXT,CDATA_SECTION:vn.CDATA_SECTION};function zi(ce){return ce>=ht.DIGIT_0&&ce<=ht.DIGIT_9}function Ln(ce){return ce>=ht.LATIN_CAPITAL_A&&ce<=ht.LATIN_CAPITAL_Z}function Xr(ce){return ce>=ht.LATIN_SMALL_A&&ce<=ht.LATIN_SMALL_Z}function fi(ce){return Xr(ce)||Ln(ce)}function wi(ce){return fi(ce)||zi(ce)}function ai(ce){return ce+32}function Ni(ce){return ce===ht.SPACE||ce===ht.LINE_FEED||ce===ht.TABULATION||ce===ht.FORM_FEED}function Xi(ce){return Ni(ce)||ce===ht.SOLIDUS||ce===ht.GREATER_THAN_SIGN}function Vi(ce){return ce===ht.NULL?Nn.nullCharacterReference:ce>1114111?Nn.characterReferenceOutsideUnicodeRange:lr(ce)?Nn.surrogateCharacterReference:Or(ce)?Nn.noncharacterCharacterReference:ri(ce)||ce===ht.CARRIAGE_RETURN?Nn.controlCharacterReference:null}class Bi{constructor(ge,et){this.options=ge,this.handler=et,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=vn.DATA,this.returnState=vn.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new $r(et),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new sr(oi,(en,xr)=>{this.preprocessor.pos=this.entityStartPos+xr-1,this._flushCodePointConsumedAsCharacterReference(en)},et.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Nn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:en=>{this._err(Nn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+en)},validateNumericCharacterReference:en=>{const xr=Vi(en);xr&&this._err(xr,1)}}:void 0)}_err(ge,et=0){var en,xr;(xr=(en=this.handler).onParseError)===null||xr===void 0||xr.call(en,this.preprocessor.getError(ge,et))}getCurrentLocation(ge){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-ge,startOffset:this.preprocessor.offset-ge,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const ge=this._consume();this._ensureHibernation()||this._callState(ge)}this.inLoop=!1}}pause(){this.paused=!0}resume(ge){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||ge==null||ge())}write(ge,et,en){this.active=!0,this.preprocessor.write(ge,et),this._runParsingLoop(),this.paused||en==null||en()}insertHtmlAtCurrentPos(ge){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(ge),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(ge){this.consumedAfterSnapshot+=ge;for(let et=0;et<ge;et++)this.preprocessor.advance()}_consumeSequenceIfMatch(ge,et){return this.preprocessor.startsWith(ge,et)?(this._advanceBy(ge.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:or.START_TAG,tagName:"",tagID:Ge.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:or.END_TAG,tagName:"",tagID:Ge.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(ge){this.currentToken={type:or.COMMENT,data:"",location:this.getCurrentLocation(ge)}}_createDoctypeToken(ge){this.currentToken={type:or.DOCTYPE,name:ge,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(ge,et){this.currentCharacterToken={type:ge,chars:et,location:this.currentLocation}}_createAttr(ge){this.currentAttr={name:ge,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var ge,et;const en=this.currentToken;if(Kr(en,this.currentAttr.name)===null){if(en.attrs.push(this.currentAttr),en.location&&this.currentLocation){const xr=(ge=(et=en.location).attrs)!==null&&ge!==void 0?ge:et.attrs=Object.create(null);xr[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Nn.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(ge){this._emitCurrentCharacterToken(ge.location),this.currentToken=null,ge.location&&(ge.location.endLine=this.preprocessor.line,ge.location.endCol=this.preprocessor.col+1,ge.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const ge=this.currentToken;this.prepareToken(ge),ge.tagID=Hr(ge.tagName),ge.type===or.START_TAG?(this.lastStartTagName=ge.tagName,this.handler.onStartTag(ge)):(ge.attrs.length>0&&this._err(Nn.endTagWithAttributes),ge.selfClosing&&this._err(Nn.endTagWithTrailingSolidus),this.handler.onEndTag(ge)),this.preprocessor.dropParsedChunk()}emitCurrentComment(ge){this.prepareToken(ge),this.handler.onComment(ge),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(ge){this.prepareToken(ge),this.handler.onDoctype(ge),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(ge){if(this.currentCharacterToken){switch(ge&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=ge.startLine,this.currentCharacterToken.location.endCol=ge.startCol,this.currentCharacterToken.location.endOffset=ge.startOffset),this.currentCharacterToken.type){case or.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case or.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case or.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const ge=this.getCurrentLocation(0);ge&&(ge.endLine=ge.startLine,ge.endCol=ge.startCol,ge.endOffset=ge.startOffset),this._emitCurrentCharacterToken(ge),this.handler.onEof({type:or.EOF,location:ge}),this.active=!1}_appendCharToCurrentCharacterToken(ge,et){if(this.currentCharacterToken)if(this.currentCharacterToken.type===ge){this.currentCharacterToken.chars+=et;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(ge,et)}_emitCodePoint(ge){const et=Ni(ge)?or.WHITESPACE_CHARACTER:ge===ht.NULL?or.NULL_CHARACTER:or.CHARACTER;this._appendCharToCurrentCharacterToken(et,String.fromCodePoint(ge))}_emitChars(ge){this._appendCharToCurrentCharacterToken(or.CHARACTER,ge)}_startCharacterReference(){this.returnState=this.state,this.state=vn.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Zr.Attribute:Zr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===vn.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===vn.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===vn.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(ge){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(ge):this._emitCodePoint(ge)}_callState(ge){switch(this.state){case vn.DATA:{this._stateData(ge);break}case vn.RCDATA:{this._stateRcdata(ge);break}case vn.RAWTEXT:{this._stateRawtext(ge);break}case vn.SCRIPT_DATA:{this._stateScriptData(ge);break}case vn.PLAINTEXT:{this._statePlaintext(ge);break}case vn.TAG_OPEN:{this._stateTagOpen(ge);break}case vn.END_TAG_OPEN:{this._stateEndTagOpen(ge);break}case vn.TAG_NAME:{this._stateTagName(ge);break}case vn.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(ge);break}case vn.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(ge);break}case vn.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(ge);break}case vn.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(ge);break}case vn.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(ge);break}case vn.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(ge);break}case vn.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(ge);break}case vn.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(ge);break}case vn.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(ge);break}case vn.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(ge);break}case vn.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(ge);break}case vn.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(ge);break}case vn.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(ge);break}case vn.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(ge);break}case vn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(ge);break}case vn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(ge);break}case vn.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(ge);break}case vn.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(ge);break}case vn.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(ge);break}case vn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(ge);break}case vn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(ge);break}case vn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(ge);break}case vn.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(ge);break}case vn.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(ge);break}case vn.ATTRIBUTE_NAME:{this._stateAttributeName(ge);break}case vn.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(ge);break}case vn.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(ge);break}case vn.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(ge);break}case vn.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(ge);break}case vn.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(ge);break}case vn.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(ge);break}case vn.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(ge);break}case vn.BOGUS_COMMENT:{this._stateBogusComment(ge);break}case vn.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(ge);break}case vn.COMMENT_START:{this._stateCommentStart(ge);break}case vn.COMMENT_START_DASH:{this._stateCommentStartDash(ge);break}case vn.COMMENT:{this._stateComment(ge);break}case vn.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(ge);break}case vn.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(ge);break}case vn.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(ge);break}case vn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(ge);break}case vn.COMMENT_END_DASH:{this._stateCommentEndDash(ge);break}case vn.COMMENT_END:{this._stateCommentEnd(ge);break}case vn.COMMENT_END_BANG:{this._stateCommentEndBang(ge);break}case vn.DOCTYPE:{this._stateDoctype(ge);break}case vn.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(ge);break}case vn.DOCTYPE_NAME:{this._stateDoctypeName(ge);break}case vn.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(ge);break}case vn.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(ge);break}case vn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(ge);break}case vn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(ge);break}case vn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(ge);break}case vn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(ge);break}case vn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(ge);break}case vn.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(ge);break}case vn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(ge);break}case vn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(ge);break}case vn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(ge);break}case vn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(ge);break}case vn.BOGUS_DOCTYPE:{this._stateBogusDoctype(ge);break}case vn.CDATA_SECTION:{this._stateCdataSection(ge);break}case vn.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(ge);break}case vn.CDATA_SECTION_END:{this._stateCdataSectionEnd(ge);break}case vn.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case vn.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(ge);break}default:throw new Error("Unknown state")}}_stateData(ge){switch(ge){case ht.LESS_THAN_SIGN:{this.state=vn.TAG_OPEN;break}case ht.AMPERSAND:{this._startCharacterReference();break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._emitCodePoint(ge);break}case ht.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRcdata(ge){switch(ge){case ht.AMPERSAND:{this._startCharacterReference();break}case ht.LESS_THAN_SIGN:{this.state=vn.RCDATA_LESS_THAN_SIGN;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._emitChars(Sn);break}case ht.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRawtext(ge){switch(ge){case ht.LESS_THAN_SIGN:{this.state=vn.RAWTEXT_LESS_THAN_SIGN;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._emitChars(Sn);break}case ht.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptData(ge){switch(ge){case ht.LESS_THAN_SIGN:{this.state=vn.SCRIPT_DATA_LESS_THAN_SIGN;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._emitChars(Sn);break}case ht.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_statePlaintext(ge){switch(ge){case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._emitChars(Sn);break}case ht.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateTagOpen(ge){if(fi(ge))this._createStartTagToken(),this.state=vn.TAG_NAME,this._stateTagName(ge);else switch(ge){case ht.EXCLAMATION_MARK:{this.state=vn.MARKUP_DECLARATION_OPEN;break}case ht.SOLIDUS:{this.state=vn.END_TAG_OPEN;break}case ht.QUESTION_MARK:{this._err(Nn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=vn.BOGUS_COMMENT,this._stateBogusComment(ge);break}case ht.EOF:{this._err(Nn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Nn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=vn.DATA,this._stateData(ge)}}_stateEndTagOpen(ge){if(fi(ge))this._createEndTagToken(),this.state=vn.TAG_NAME,this._stateTagName(ge);else switch(ge){case ht.GREATER_THAN_SIGN:{this._err(Nn.missingEndTagName),this.state=vn.DATA;break}case ht.EOF:{this._err(Nn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Nn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=vn.BOGUS_COMMENT,this._stateBogusComment(ge)}}_stateTagName(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this.state=vn.BEFORE_ATTRIBUTE_NAME;break}case ht.SOLIDUS:{this.state=vn.SELF_CLOSING_START_TAG;break}case ht.GREATER_THAN_SIGN:{this.state=vn.DATA,this.emitCurrentTagToken();break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.tagName+=Sn;break}case ht.EOF:{this._err(Nn.eofInTag),this._emitEOFToken();break}default:et.tagName+=String.fromCodePoint(Ln(ge)?ai(ge):ge)}}_stateRcdataLessThanSign(ge){ge===ht.SOLIDUS?this.state=vn.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=vn.RCDATA,this._stateRcdata(ge))}_stateRcdataEndTagOpen(ge){fi(ge)?(this.state=vn.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(ge)):(this._emitChars("</"),this.state=vn.RCDATA,this._stateRcdata(ge))}handleSpecialEndTag(ge){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const et=this.currentToken;switch(et.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=vn.BEFORE_ATTRIBUTE_NAME,!1;case ht.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=vn.SELF_CLOSING_START_TAG,!1;case ht.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=vn.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=vn.RCDATA,this._stateRcdata(ge))}_stateRawtextLessThanSign(ge){ge===ht.SOLIDUS?this.state=vn.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=vn.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagOpen(ge){fi(ge)?(this.state=vn.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(ge)):(this._emitChars("</"),this.state=vn.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=vn.RAWTEXT,this._stateRawtext(ge))}_stateScriptDataLessThanSign(ge){switch(ge){case ht.SOLIDUS:{this.state=vn.SCRIPT_DATA_END_TAG_OPEN;break}case ht.EXCLAMATION_MARK:{this.state=vn.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=vn.SCRIPT_DATA,this._stateScriptData(ge)}}_stateScriptDataEndTagOpen(ge){fi(ge)?(this.state=vn.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(ge)):(this._emitChars("</"),this.state=vn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=vn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStart(ge){ge===ht.HYPHEN_MINUS?(this.state=vn.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=vn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStartDash(ge){ge===ht.HYPHEN_MINUS?(this.state=vn.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=vn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscaped(ge){switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case ht.LESS_THAN_SIGN:{this.state=vn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._emitChars(Sn);break}case ht.EOF:{this._err(Nn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataEscapedDash(ge){switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case ht.LESS_THAN_SIGN:{this.state=vn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.state=vn.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case ht.EOF:{this._err(Nn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=vn.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedDashDash(ge){switch(ge){case ht.HYPHEN_MINUS:{this._emitChars("-");break}case ht.LESS_THAN_SIGN:{this.state=vn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ht.GREATER_THAN_SIGN:{this.state=vn.SCRIPT_DATA,this._emitChars(">");break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.state=vn.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case ht.EOF:{this._err(Nn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=vn.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedLessThanSign(ge){ge===ht.SOLIDUS?this.state=vn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:fi(ge)?(this._emitChars("<"),this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(ge)):(this._emitChars("<"),this.state=vn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagOpen(ge){fi(ge)?(this.state=vn.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(ge)):(this._emitChars("</"),this.state=vn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=vn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscapeStart(ge){if(this.preprocessor.startsWith(tr.SCRIPT,!1)&&Xi(this.preprocessor.peek(tr.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<tr.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=vn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscaped(ge){switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case ht.LESS_THAN_SIGN:{this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._emitChars(Sn);break}case ht.EOF:{this._err(Nn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDash(ge){switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case ht.LESS_THAN_SIGN:{this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case ht.EOF:{this._err(Nn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDashDash(ge){switch(ge){case ht.HYPHEN_MINUS:{this._emitChars("-");break}case ht.LESS_THAN_SIGN:{this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ht.GREATER_THAN_SIGN:{this.state=vn.SCRIPT_DATA,this._emitChars(">");break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case ht.EOF:{this._err(Nn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedLessThanSign(ge){ge===ht.SOLIDUS?(this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateScriptDataDoubleEscapeEnd(ge){if(this.preprocessor.startsWith(tr.SCRIPT,!1)&&Xi(this.preprocessor.peek(tr.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<tr.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=vn.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=vn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateBeforeAttributeName(ge){switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.SOLIDUS:case ht.GREATER_THAN_SIGN:case ht.EOF:{this.state=vn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case ht.EQUALS_SIGN:{this._err(Nn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=vn.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=vn.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateAttributeName(ge){switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:case ht.SOLIDUS:case ht.GREATER_THAN_SIGN:case ht.EOF:{this._leaveAttrName(),this.state=vn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case ht.EQUALS_SIGN:{this._leaveAttrName(),this.state=vn.BEFORE_ATTRIBUTE_VALUE;break}case ht.QUOTATION_MARK:case ht.APOSTROPHE:case ht.LESS_THAN_SIGN:{this._err(Nn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(ge);break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.currentAttr.name+=Sn;break}default:this.currentAttr.name+=String.fromCodePoint(Ln(ge)?ai(ge):ge)}}_stateAfterAttributeName(ge){switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.SOLIDUS:{this.state=vn.SELF_CLOSING_START_TAG;break}case ht.EQUALS_SIGN:{this.state=vn.BEFORE_ATTRIBUTE_VALUE;break}case ht.GREATER_THAN_SIGN:{this.state=vn.DATA,this.emitCurrentTagToken();break}case ht.EOF:{this._err(Nn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=vn.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateBeforeAttributeValue(ge){switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.QUOTATION_MARK:{this.state=vn.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case ht.APOSTROPHE:{this.state=vn.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.missingAttributeValue),this.state=vn.DATA,this.emitCurrentTagToken();break}default:this.state=vn.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(ge)}}_stateAttributeValueDoubleQuoted(ge){switch(ge){case ht.QUOTATION_MARK:{this.state=vn.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ht.AMPERSAND:{this._startCharacterReference();break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case ht.EOF:{this._err(Nn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueSingleQuoted(ge){switch(ge){case ht.APOSTROPHE:{this.state=vn.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ht.AMPERSAND:{this._startCharacterReference();break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case ht.EOF:{this._err(Nn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueUnquoted(ge){switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this._leaveAttrValue(),this.state=vn.BEFORE_ATTRIBUTE_NAME;break}case ht.AMPERSAND:{this._startCharacterReference();break}case ht.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=vn.DATA,this.emitCurrentTagToken();break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case ht.QUOTATION_MARK:case ht.APOSTROPHE:case ht.LESS_THAN_SIGN:case ht.EQUALS_SIGN:case ht.GRAVE_ACCENT:{this._err(Nn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(ge);break}case ht.EOF:{this._err(Nn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAfterAttributeValueQuoted(ge){switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this._leaveAttrValue(),this.state=vn.BEFORE_ATTRIBUTE_NAME;break}case ht.SOLIDUS:{this._leaveAttrValue(),this.state=vn.SELF_CLOSING_START_TAG;break}case ht.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=vn.DATA,this.emitCurrentTagToken();break}case ht.EOF:{this._err(Nn.eofInTag),this._emitEOFToken();break}default:this._err(Nn.missingWhitespaceBetweenAttributes),this.state=vn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateSelfClosingStartTag(ge){switch(ge){case ht.GREATER_THAN_SIGN:{const et=this.currentToken;et.selfClosing=!0,this.state=vn.DATA,this.emitCurrentTagToken();break}case ht.EOF:{this._err(Nn.eofInTag),this._emitEOFToken();break}default:this._err(Nn.unexpectedSolidusInTag),this.state=vn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateBogusComment(ge){const et=this.currentToken;switch(ge){case ht.GREATER_THAN_SIGN:{this.state=vn.DATA,this.emitCurrentComment(et);break}case ht.EOF:{this.emitCurrentComment(et),this._emitEOFToken();break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.data+=Sn;break}default:et.data+=String.fromCodePoint(ge)}}_stateMarkupDeclarationOpen(ge){this._consumeSequenceIfMatch(tr.DASH_DASH,!0)?(this._createCommentToken(tr.DASH_DASH.length+1),this.state=vn.COMMENT_START):this._consumeSequenceIfMatch(tr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(tr.DOCTYPE.length+1),this.state=vn.DOCTYPE):this._consumeSequenceIfMatch(tr.CDATA_START,!0)?this.inForeignNode?this.state=vn.CDATA_SECTION:(this._err(Nn.cdataInHtmlContent),this._createCommentToken(tr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=vn.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Nn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=vn.BOGUS_COMMENT,this._stateBogusComment(ge))}_stateCommentStart(ge){switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.COMMENT_START_DASH;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.abruptClosingOfEmptyComment),this.state=vn.DATA;const et=this.currentToken;this.emitCurrentComment(et);break}default:this.state=vn.COMMENT,this._stateComment(ge)}}_stateCommentStartDash(ge){const et=this.currentToken;switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.COMMENT_END;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.abruptClosingOfEmptyComment),this.state=vn.DATA,this.emitCurrentComment(et);break}case ht.EOF:{this._err(Nn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=vn.COMMENT,this._stateComment(ge)}}_stateComment(ge){const et=this.currentToken;switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.COMMENT_END_DASH;break}case ht.LESS_THAN_SIGN:{et.data+="<",this.state=vn.COMMENT_LESS_THAN_SIGN;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.data+=Sn;break}case ht.EOF:{this._err(Nn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+=String.fromCodePoint(ge)}}_stateCommentLessThanSign(ge){const et=this.currentToken;switch(ge){case ht.EXCLAMATION_MARK:{et.data+="!",this.state=vn.COMMENT_LESS_THAN_SIGN_BANG;break}case ht.LESS_THAN_SIGN:{et.data+="<";break}default:this.state=vn.COMMENT,this._stateComment(ge)}}_stateCommentLessThanSignBang(ge){ge===ht.HYPHEN_MINUS?this.state=vn.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=vn.COMMENT,this._stateComment(ge))}_stateCommentLessThanSignBangDash(ge){ge===ht.HYPHEN_MINUS?this.state=vn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=vn.COMMENT_END_DASH,this._stateCommentEndDash(ge))}_stateCommentLessThanSignBangDashDash(ge){ge!==ht.GREATER_THAN_SIGN&&ge!==ht.EOF&&this._err(Nn.nestedComment),this.state=vn.COMMENT_END,this._stateCommentEnd(ge)}_stateCommentEndDash(ge){const et=this.currentToken;switch(ge){case ht.HYPHEN_MINUS:{this.state=vn.COMMENT_END;break}case ht.EOF:{this._err(Nn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=vn.COMMENT,this._stateComment(ge)}}_stateCommentEnd(ge){const et=this.currentToken;switch(ge){case ht.GREATER_THAN_SIGN:{this.state=vn.DATA,this.emitCurrentComment(et);break}case ht.EXCLAMATION_MARK:{this.state=vn.COMMENT_END_BANG;break}case ht.HYPHEN_MINUS:{et.data+="-";break}case ht.EOF:{this._err(Nn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--",this.state=vn.COMMENT,this._stateComment(ge)}}_stateCommentEndBang(ge){const et=this.currentToken;switch(ge){case ht.HYPHEN_MINUS:{et.data+="--!",this.state=vn.COMMENT_END_DASH;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.incorrectlyClosedComment),this.state=vn.DATA,this.emitCurrentComment(et);break}case ht.EOF:{this._err(Nn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--!",this.state=vn.COMMENT,this._stateComment(ge)}}_stateDoctype(ge){switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this.state=vn.BEFORE_DOCTYPE_NAME;break}case ht.GREATER_THAN_SIGN:{this.state=vn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge);break}case ht.EOF:{this._err(Nn.eofInDoctype),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.missingWhitespaceBeforeDoctypeName),this.state=vn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge)}}_stateBeforeDoctypeName(ge){if(Ln(ge))this._createDoctypeToken(String.fromCharCode(ai(ge))),this.state=vn.DOCTYPE_NAME;else switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.NULL:{this._err(Nn.unexpectedNullCharacter),this._createDoctypeToken(Sn),this.state=vn.DOCTYPE_NAME;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.missingDoctypeName),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.EOF:{this._err(Nn.eofInDoctype),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(ge)),this.state=vn.DOCTYPE_NAME}}_stateDoctypeName(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this.state=vn.AFTER_DOCTYPE_NAME;break}case ht.GREATER_THAN_SIGN:{this.state=vn.DATA,this.emitCurrentDoctype(et);break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.name+=Sn;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.name+=String.fromCodePoint(Ln(ge)?ai(ge):ge)}}_stateAfterDoctypeName(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.GREATER_THAN_SIGN:{this.state=vn.DATA,this.emitCurrentDoctype(et);break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(tr.PUBLIC,!1)?this.state=vn.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(tr.SYSTEM,!1)?this.state=vn.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Nn.invalidCharacterSequenceAfterDoctypeName),et.forceQuirks=!0,this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge))}}_stateAfterDoctypePublicKeyword(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this.state=vn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case ht.QUOTATION_MARK:{this._err(Nn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=vn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ht.APOSTROPHE:{this._err(Nn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=vn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=vn.DATA,this.emitCurrentDoctype(et);break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypePublicIdentifier(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.QUOTATION_MARK:{et.publicId="",this.state=vn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ht.APOSTROPHE:{et.publicId="",this.state=vn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=vn.DATA,this.emitCurrentDoctype(et);break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypePublicIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case ht.QUOTATION_MARK:{this.state=vn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.publicId+=Sn;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.publicId+=String.fromCodePoint(ge)}}_stateDoctypePublicIdentifierSingleQuoted(ge){const et=this.currentToken;switch(ge){case ht.APOSTROPHE:{this.state=vn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.publicId+=Sn;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.publicId+=String.fromCodePoint(ge)}}_stateAfterDoctypePublicIdentifier(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this.state=vn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case ht.GREATER_THAN_SIGN:{this.state=vn.DATA,this.emitCurrentDoctype(et);break}case ht.QUOTATION_MARK:{this._err(Nn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ht.APOSTROPHE:{this._err(Nn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBetweenDoctypePublicAndSystemIdentifiers(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.QUOTATION_MARK:{et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ht.APOSTROPHE:{et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateAfterDoctypeSystemKeyword(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:{this.state=vn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case ht.QUOTATION_MARK:{this._err(Nn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ht.APOSTROPHE:{this._err(Nn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=vn.DATA,this.emitCurrentDoctype(et);break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypeSystemIdentifier(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.QUOTATION_MARK:{et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ht.APOSTROPHE:{et.systemId="",this.state=vn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=vn.DATA,this.emitCurrentDoctype(et);break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypeSystemIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case ht.QUOTATION_MARK:{this.state=vn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.systemId+=Sn;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.systemId+=String.fromCodePoint(ge)}}_stateDoctypeSystemIdentifierSingleQuoted(ge){const et=this.currentToken;switch(ge){case ht.APOSTROPHE:{this.state=vn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter),et.systemId+=Sn;break}case ht.GREATER_THAN_SIGN:{this._err(Nn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.systemId+=String.fromCodePoint(ge)}}_stateAfterDoctypeSystemIdentifier(ge){const et=this.currentToken;switch(ge){case ht.SPACE:case ht.LINE_FEED:case ht.TABULATION:case ht.FORM_FEED:break;case ht.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.EOF:{this._err(Nn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Nn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=vn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBogusDoctype(ge){const et=this.currentToken;switch(ge){case ht.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=vn.DATA;break}case ht.NULL:{this._err(Nn.unexpectedNullCharacter);break}case ht.EOF:{this.emitCurrentDoctype(et),this._emitEOFToken();break}default:}}_stateCdataSection(ge){switch(ge){case ht.RIGHT_SQUARE_BRACKET:{this.state=vn.CDATA_SECTION_BRACKET;break}case ht.EOF:{this._err(Nn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateCdataSectionBracket(ge){ge===ht.RIGHT_SQUARE_BRACKET?this.state=vn.CDATA_SECTION_END:(this._emitChars("]"),this.state=vn.CDATA_SECTION,this._stateCdataSection(ge))}_stateCdataSectionEnd(ge){switch(ge){case ht.GREATER_THAN_SIGN:{this.state=vn.DATA;break}case ht.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=vn.CDATA_SECTION,this._stateCdataSection(ge)}}_stateCharacterReference(){let ge=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(ge<0)if(this.preprocessor.lastChunkWritten)ge=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}ge===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(ht.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&wi(this.preprocessor.peek(1))?vn.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(ge){wi(ge)?this._flushCodePointConsumedAsCharacterReference(ge):(ge===ht.SEMICOLON&&this._err(Nn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(ge))}}const Hi=new Set([Ge.DD,Ge.DT,Ge.LI,Ge.OPTGROUP,Ge.OPTION,Ge.P,Ge.RB,Ge.RP,Ge.RT,Ge.RTC]),rr=new Set([...Hi,Ge.CAPTION,Ge.COLGROUP,Ge.TBODY,Ge.TD,Ge.TFOOT,Ge.TH,Ge.THEAD,Ge.TR]),_i=new Set([Ge.APPLET,Ge.CAPTION,Ge.HTML,Ge.MARQUEE,Ge.OBJECT,Ge.TABLE,Ge.TD,Ge.TEMPLATE,Ge.TH]),ur=new Set([..._i,Ge.OL,Ge.UL]),vi=new Set([..._i,Ge.BUTTON]),Pi=new Set([Ge.ANNOTATION_XML,Ge.MI,Ge.MN,Ge.MO,Ge.MS,Ge.MTEXT]),Mi=new Set([Ge.DESC,Ge.FOREIGN_OBJECT,Ge.TITLE]),po=new Set([Ge.TR,Ge.TEMPLATE,Ge.HTML]),Oo=new Set([Ge.TBODY,Ge.TFOOT,Ge.THEAD,Ge.TEMPLATE,Ge.HTML]),mo=new Set([Ge.TABLE,Ge.TEMPLATE,Ge.HTML]),xo=new Set([Ge.TD,Ge.TH]);class Fn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(ge,et,en){this.treeAdapter=et,this.handler=en,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Ge.UNKNOWN,this.current=ge}_indexOf(ge){return this.items.lastIndexOf(ge,this.stackTop)}_isInTemplate(){return this.currentTagId===Ge.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===nn.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(ge,et){this.stackTop++,this.items[this.stackTop]=ge,this.current=ge,this.tagIDs[this.stackTop]=et,this.currentTagId=et,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(ge,et,!0)}pop(){const ge=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!0)}replace(ge,et){const en=this._indexOf(ge);this.items[en]=et,en===this.stackTop&&(this.current=et)}insertAfter(ge,et,en){const xr=this._indexOf(ge)+1;this.items.splice(xr,0,et),this.tagIDs.splice(xr,0,en),this.stackTop++,xr===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,xr===this.stackTop)}popUntilTagNamePopped(ge){let et=this.stackTop+1;do et=this.tagIDs.lastIndexOf(ge,et-1);while(et>0&&this.treeAdapter.getNamespaceURI(this.items[et])!==nn.HTML);this.shortenToLength(et<0?0:et)}shortenToLength(ge){for(;this.stackTop>=ge;){const et=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(et,this.stackTop<ge)}}popUntilElementPopped(ge){const et=this._indexOf(ge);this.shortenToLength(et<0?0:et)}popUntilPopped(ge,et){const en=this._indexOfTagNames(ge,et);this.shortenToLength(en<0?0:en)}popUntilNumberedHeaderPopped(){this.popUntilPopped(ti,nn.HTML)}popUntilTableCellPopped(){this.popUntilPopped(xo,nn.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(ge,et){for(let en=this.stackTop;en>=0;en--)if(ge.has(this.tagIDs[en])&&this.treeAdapter.getNamespaceURI(this.items[en])===et)return en;return-1}clearBackTo(ge,et){const en=this._indexOfTagNames(ge,et);this.shortenToLength(en+1)}clearBackToTableContext(){this.clearBackTo(mo,nn.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Oo,nn.HTML)}clearBackToTableRowContext(){this.clearBackTo(po,nn.HTML)}remove(ge){const et=this._indexOf(ge);et>=0&&(et===this.stackTop?this.pop():(this.items.splice(et,1),this.tagIDs.splice(et,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Ge.BODY?this.items[1]:null}contains(ge){return this._indexOf(ge)>-1}getCommonAncestor(ge){const et=this._indexOf(ge)-1;return et>=0?this.items[et]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===Ge.HTML}hasInDynamicScope(ge,et){for(let en=this.stackTop;en>=0;en--){const xr=this.tagIDs[en];switch(this.treeAdapter.getNamespaceURI(this.items[en])){case nn.HTML:{if(xr===ge)return!0;if(et.has(xr))return!1;break}case nn.SVG:{if(Mi.has(xr))return!1;break}case nn.MATHML:{if(Pi.has(xr))return!1;break}}}return!0}hasInScope(ge){return this.hasInDynamicScope(ge,_i)}hasInListItemScope(ge){return this.hasInDynamicScope(ge,ur)}hasInButtonScope(ge){return this.hasInDynamicScope(ge,vi)}hasNumberedHeaderInScope(){for(let ge=this.stackTop;ge>=0;ge--){const et=this.tagIDs[ge];switch(this.treeAdapter.getNamespaceURI(this.items[ge])){case nn.HTML:{if(ti.has(et))return!0;if(_i.has(et))return!1;break}case nn.SVG:{if(Mi.has(et))return!1;break}case nn.MATHML:{if(Pi.has(et))return!1;break}}}return!0}hasInTableScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===nn.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ge.TABLE:case Ge.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let ge=this.stackTop;ge>=0;ge--)if(this.treeAdapter.getNamespaceURI(this.items[ge])===nn.HTML)switch(this.tagIDs[ge]){case Ge.TBODY:case Ge.THEAD:case Ge.TFOOT:return!0;case Ge.TABLE:case Ge.HTML:return!1}return!0}hasInSelectScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===nn.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ge.OPTION:case Ge.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Hi.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;rr.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(ge){for(;this.currentTagId!==ge&&rr.has(this.currentTagId);)this.pop()}}const fr=3;var Rn;(function(ce){ce[ce.Marker=0]="Marker",ce[ce.Element=1]="Element"})(Rn||(Rn={}));const rt={type:Rn.Marker};class jr{constructor(ge){this.treeAdapter=ge,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(ge,et){const en=[],xr=et.length,ci=this.treeAdapter.getTagName(ge),Ai=this.treeAdapter.getNamespaceURI(ge);for(let Lo=0;Lo<this.entries.length;Lo++){const Ko=this.entries[Lo];if(Ko.type===Rn.Marker)break;const{element:li}=Ko;if(this.treeAdapter.getTagName(li)===ci&&this.treeAdapter.getNamespaceURI(li)===Ai){const eo=this.treeAdapter.getAttrList(li);eo.length===xr&&en.push({idx:Lo,attrs:eo})}}return en}_ensureNoahArkCondition(ge){if(this.entries.length<fr)return;const et=this.treeAdapter.getAttrList(ge),en=this._getNoahArkConditionCandidates(ge,et);if(en.length<fr)return;const xr=new Map(et.map(Ai=>[Ai.name,Ai.value]));let ci=0;for(let Ai=0;Ai<en.length;Ai++){const Lo=en[Ai];Lo.attrs.every(Ko=>xr.get(Ko.name)===Ko.value)&&(ci+=1,ci>=fr&&this.entries.splice(Lo.idx,1))}}insertMarker(){this.entries.unshift(rt)}pushElement(ge,et){this._ensureNoahArkCondition(ge),this.entries.unshift({type:Rn.Element,element:ge,token:et})}insertElementAfterBookmark(ge,et){const en=this.entries.indexOf(this.bookmark);this.entries.splice(en,0,{type:Rn.Element,element:ge,token:et})}removeEntry(ge){const et=this.entries.indexOf(ge);et>=0&&this.entries.splice(et,1)}clearToLastMarker(){const ge=this.entries.indexOf(rt);ge>=0?this.entries.splice(0,ge+1):this.entries.length=0}getElementEntryInScopeWithTagName(ge){const et=this.entries.find(en=>en.type===Rn.Marker||this.treeAdapter.getTagName(en.element)===ge);return et&&et.type===Rn.Element?et:null}getElementEntry(ge){return this.entries.find(et=>et.type===Rn.Element&&et.element===ge)}}const Sr={createDocument(){return{nodeName:"#document",mode:Dn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(ce,ge,et){return{nodeName:ce,tagName:ce,attrs:et,namespaceURI:ge,childNodes:[],parentNode:null}},createCommentNode(ce){return{nodeName:"#comment",data:ce,parentNode:null}},createTextNode(ce){return{nodeName:"#text",value:ce,parentNode:null}},appendChild(ce,ge){ce.childNodes.push(ge),ge.parentNode=ce},insertBefore(ce,ge,et){const en=ce.childNodes.indexOf(et);ce.childNodes.splice(en,0,ge),ge.parentNode=ce},setTemplateContent(ce,ge){ce.content=ge},getTemplateContent(ce){return ce.content},setDocumentType(ce,ge,et,en){const xr=ce.childNodes.find(ci=>ci.nodeName==="#documentType");if(xr)xr.name=ge,xr.publicId=et,xr.systemId=en;else{const ci={nodeName:"#documentType",name:ge,publicId:et,systemId:en,parentNode:null};Sr.appendChild(ce,ci)}},setDocumentMode(ce,ge){ce.mode=ge},getDocumentMode(ce){return ce.mode},detachNode(ce){if(ce.parentNode){const ge=ce.parentNode.childNodes.indexOf(ce);ce.parentNode.childNodes.splice(ge,1),ce.parentNode=null}},insertText(ce,ge){if(ce.childNodes.length>0){const et=ce.childNodes[ce.childNodes.length-1];if(Sr.isTextNode(et)){et.value+=ge;return}}Sr.appendChild(ce,Sr.createTextNode(ge))},insertTextBefore(ce,ge,et){const en=ce.childNodes[ce.childNodes.indexOf(et)-1];en&&Sr.isTextNode(en)?en.value+=ge:Sr.insertBefore(ce,Sr.createTextNode(ge),et)},adoptAttributes(ce,ge){const et=new Set(ce.attrs.map(en=>en.name));for(let en=0;en<ge.length;en++)et.has(ge[en].name)||ce.attrs.push(ge[en])},getFirstChild(ce){return ce.childNodes[0]},getChildNodes(ce){return ce.childNodes},getParentNode(ce){return ce.parentNode},getAttrList(ce){return ce.attrs},getTagName(ce){return ce.tagName},getNamespaceURI(ce){return ce.namespaceURI},getTextNodeContent(ce){return ce.value},getCommentNodeContent(ce){return ce.data},getDocumentTypeNodeName(ce){return ce.name},getDocumentTypeNodePublicId(ce){return ce.publicId},getDocumentTypeNodeSystemId(ce){return ce.systemId},isTextNode(ce){return ce.nodeName==="#text"},isCommentNode(ce){return ce.nodeName==="#comment"},isDocumentTypeNode(ce){return ce.nodeName==="#documentType"},isElementNode(ce){return Object.prototype.hasOwnProperty.call(ce,"tagName")},setNodeSourceCodeLocation(ce,ge){ce.sourceCodeLocation=ge},getNodeSourceCodeLocation(ce){return ce.sourceCodeLocation},updateNodeSourceCodeLocation(ce,ge){ce.sourceCodeLocation=xa(xa({},ce.sourceCodeLocation),ge)}},zr="html",ni="about:legacy-compat",pi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Er=["+//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//"],ft=[...Er,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],En=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Mn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Xn=[...Mn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Hn(ce,ge){return ge.some(et=>ce.startsWith(et))}function hr(ce){return ce.name===zr&&ce.publicId===null&&(ce.systemId===null||ce.systemId===ni)}function $n(ce){if(ce.name!==zr)return Dn.QUIRKS;const{systemId:ge}=ce;if(ge&&ge.toLowerCase()===pi)return Dn.QUIRKS;let{publicId:et}=ce;if(et!==null){if(et=et.toLowerCase(),En.has(et))return Dn.QUIRKS;let en=ge===null?ft:Er;if(Hn(et,en))return Dn.QUIRKS;if(en=ge===null?Mn:Xn,Hn(et,en))return Dn.LIMITED_QUIRKS}return Dn.NO_QUIRKS}const cn={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Kn="definitionurl",Gr="definitionURL",Li=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(ce=>[ce.toLowerCase(),ce])),mi=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:nn.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:nn.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:nn.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:nn.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:nn.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:nn.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:nn.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:nn.XML}],["xml:space",{prefix:"xml",name:"space",namespace:nn.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:nn.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:nn.XMLNS}]]),gi=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(ce=>[ce.toLowerCase(),ce])),Ri=new Set([Ge.B,Ge.BIG,Ge.BLOCKQUOTE,Ge.BODY,Ge.BR,Ge.CENTER,Ge.CODE,Ge.DD,Ge.DIV,Ge.DL,Ge.DT,Ge.EM,Ge.EMBED,Ge.H1,Ge.H2,Ge.H3,Ge.H4,Ge.H5,Ge.H6,Ge.HEAD,Ge.HR,Ge.I,Ge.IMG,Ge.LI,Ge.LISTING,Ge.MENU,Ge.META,Ge.NOBR,Ge.OL,Ge.P,Ge.PRE,Ge.RUBY,Ge.S,Ge.SMALL,Ge.SPAN,Ge.STRONG,Ge.STRIKE,Ge.SUB,Ge.SUP,Ge.TABLE,Ge.TT,Ge.U,Ge.UL,Ge.VAR]);function Oi(ce){const ge=ce.tagID;return ge===Ge.FONT&&ce.attrs.some(({name:en})=>en===Qn.COLOR||en===Qn.SIZE||en===Qn.FACE)||Ri.has(ge)}function lo(ce){for(let ge=0;ge<ce.attrs.length;ge++)if(ce.attrs[ge].name===Kn){ce.attrs[ge].name=Gr;break}}function So(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=Li.get(ce.attrs[ge].name);et!=null&&(ce.attrs[ge].name=et)}}function na(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=mi.get(ce.attrs[ge].name);et&&(ce.attrs[ge].prefix=et.prefix,ce.attrs[ge].name=et.name,ce.attrs[ge].namespace=et.namespace)}}function An(ce){const ge=gi.get(ce.tagName);ge!=null&&(ce.tagName=ge,ce.tagID=Hr(ce.tagName))}function so(ce,ge){return ge===nn.MATHML&&(ce===Ge.MI||ce===Ge.MO||ce===Ge.MN||ce===Ge.MS||ce===Ge.MTEXT)}function Do(ce,ge,et){if(ge===nn.MATHML&&ce===Ge.ANNOTATION_XML){for(let en=0;en<et.length;en++)if(et[en].name===Qn.ENCODING){const xr=et[en].value.toLowerCase();return xr===cn.TEXT_HTML||xr===cn.APPLICATION_XML}}return ge===nn.SVG&&(ce===Ge.FOREIGN_OBJECT||ce===Ge.DESC||ce===Ge.TITLE)}function Wi(ce,ge,et,en){return(!en||en===nn.HTML)&&Do(ce,ge,et)||(!en||en===nn.MATHML)&&so(ce,ge)}const ho="hidden",Ki=8,da=3;var Vn;(function(ce){ce[ce.INITIAL=0]="INITIAL",ce[ce.BEFORE_HTML=1]="BEFORE_HTML",ce[ce.BEFORE_HEAD=2]="BEFORE_HEAD",ce[ce.IN_HEAD=3]="IN_HEAD",ce[ce.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ce[ce.AFTER_HEAD=5]="AFTER_HEAD",ce[ce.IN_BODY=6]="IN_BODY",ce[ce.TEXT=7]="TEXT",ce[ce.IN_TABLE=8]="IN_TABLE",ce[ce.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",ce[ce.IN_CAPTION=10]="IN_CAPTION",ce[ce.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ce[ce.IN_TABLE_BODY=12]="IN_TABLE_BODY",ce[ce.IN_ROW=13]="IN_ROW",ce[ce.IN_CELL=14]="IN_CELL",ce[ce.IN_SELECT=15]="IN_SELECT",ce[ce.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",ce[ce.IN_TEMPLATE=17]="IN_TEMPLATE",ce[ce.AFTER_BODY=18]="AFTER_BODY",ce[ce.IN_FRAMESET=19]="IN_FRAMESET",ce[ce.AFTER_FRAMESET=20]="AFTER_FRAMESET",ce[ce.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",ce[ce.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Vn||(Vn={}));const Mo={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ia=new Set([Ge.TABLE,Ge.TBODY,Ge.TFOOT,Ge.THEAD,Ge.TR]),Ps={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Sr,onParseError:null};class Fa{constructor(ge,et,en=null,xr=null){this.fragmentContext=en,this.scriptHandler=xr,this.currentToken=null,this.stopped=!1,this.insertionMode=Vn.INITIAL,this.originalInsertionMode=Vn.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=xa(xa({},Ps),ge),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=et!=null?et:this.treeAdapter.createDocument(),this.tokenizer=new Bi(this.options,this),this.activeFormattingElements=new jr(this.treeAdapter),this.fragmentContextID=en?Hr(this.treeAdapter.getTagName(en)):Ge.UNKNOWN,this._setContextModes(en!=null?en:this.document,this.fragmentContextID),this.openElements=new Fn(this.document,this.treeAdapter,this)}static parse(ge,et){const en=new this(et);return en.tokenizer.write(ge,!0),en.document}static getFragmentParser(ge,et){const en=xa(xa({},Ps),et);ge!=null||(ge=en.treeAdapter.createElement(xn.TEMPLATE,nn.HTML,[]));const xr=en.treeAdapter.createElement("documentmock",nn.HTML,[]),ci=new this(en,xr,ge);return ci.fragmentContextID===Ge.TEMPLATE&&ci.tmplInsertionModeStack.unshift(Vn.IN_TEMPLATE),ci._initTokenizerForFragmentParsing(),ci._insertFakeRootElement(),ci._resetInsertionMode(),ci._findFormInFragmentContext(),ci}getFragment(){const ge=this.treeAdapter.getFirstChild(this.document),et=this.treeAdapter.createDocumentFragment();return this._adoptNodes(ge,et),et}_err(ge,et,en){var xr;if(!this.onParseError)return;const ci=(xr=ge.location)!==null&&xr!==void 0?xr:Mo,Ai={code:et,startLine:ci.startLine,startCol:ci.startCol,startOffset:ci.startOffset,endLine:en?ci.startLine:ci.endLine,endCol:en?ci.startCol:ci.endCol,endOffset:en?ci.startOffset:ci.endOffset};this.onParseError(Ai)}onItemPush(ge,et,en){var xr,ci;(ci=(xr=this.treeAdapter).onItemPush)===null||ci===void 0||ci.call(xr,ge),en&&this.openElements.stackTop>0&&this._setContextModes(ge,et)}onItemPop(ge,et){var en,xr;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(ge,this.currentToken),(xr=(en=this.treeAdapter).onItemPop)===null||xr===void 0||xr.call(en,ge,this.openElements.current),et){let ci,Ai;this.openElements.stackTop===0&&this.fragmentContext?(ci=this.fragmentContext,Ai=this.fragmentContextID):{current:ci,currentTagId:Ai}=this.openElements,this._setContextModes(ci,Ai)}}_setContextModes(ge,et){const en=ge===this.document||this.treeAdapter.getNamespaceURI(ge)===nn.HTML;this.currentNotInHTML=!en,this.tokenizer.inForeignNode=!en&&!this._isIntegrationPoint(et,ge)}_switchToTextParsing(ge,et){this._insertElement(ge,nn.HTML),this.tokenizer.state=et,this.originalInsertionMode=this.insertionMode,this.insertionMode=Vn.TEXT}switchToPlaintextParsing(){this.insertionMode=Vn.TEXT,this.originalInsertionMode=Vn.IN_BODY,this.tokenizer.state=xi.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let ge=this.fragmentContext;for(;ge;){if(this.treeAdapter.getTagName(ge)===xn.FORM){this.formElement=ge;break}ge=this.treeAdapter.getParentNode(ge)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==nn.HTML))switch(this.fragmentContextID){case Ge.TITLE:case Ge.TEXTAREA:{this.tokenizer.state=xi.RCDATA;break}case Ge.STYLE:case Ge.XMP:case Ge.IFRAME:case Ge.NOEMBED:case Ge.NOFRAMES:case Ge.NOSCRIPT:{this.tokenizer.state=xi.RAWTEXT;break}case Ge.SCRIPT:{this.tokenizer.state=xi.SCRIPT_DATA;break}case Ge.PLAINTEXT:{this.tokenizer.state=xi.PLAINTEXT;break}default:}}_setDocumentType(ge){const et=ge.name||"",en=ge.publicId||"",xr=ge.systemId||"";if(this.treeAdapter.setDocumentType(this.document,et,en,xr),ge.location){const Ai=this.treeAdapter.getChildNodes(this.document).find(Lo=>this.treeAdapter.isDocumentTypeNode(Lo));Ai&&this.treeAdapter.setNodeSourceCodeLocation(Ai,ge.location)}}_attachElementToTree(ge,et){if(this.options.sourceCodeLocationInfo){const en=et&&Kp(xa({},et),{startTag:et});this.treeAdapter.setNodeSourceCodeLocation(ge,en)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(ge);else{const en=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(en,ge)}}_appendElement(ge,et){const en=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(en,ge.location)}_insertElement(ge,et){const en=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(en,ge.location),this.openElements.push(en,ge.tagID)}_insertFakeElement(ge,et){const en=this.treeAdapter.createElement(ge,nn.HTML,[]);this._attachElementToTree(en,null),this.openElements.push(en,et)}_insertTemplate(ge){const et=this.treeAdapter.createElement(ge.tagName,nn.HTML,ge.attrs),en=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(et,en),this._attachElementToTree(et,ge.location),this.openElements.push(et,ge.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(en,null)}_insertFakeRootElement(){const ge=this.treeAdapter.createElement(xn.HTML,nn.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ge,null),this.treeAdapter.appendChild(this.openElements.current,ge),this.openElements.push(ge,Ge.HTML)}_appendCommentNode(ge,et){const en=this.treeAdapter.createCommentNode(ge.data);this.treeAdapter.appendChild(et,en),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(en,ge.location)}_insertCharacters(ge){let et,en;if(this._shouldFosterParentOnInsertion()?({parent:et,beforeElement:en}=this._findFosterParentingLocation(),en?this.treeAdapter.insertTextBefore(et,ge.chars,en):this.treeAdapter.insertText(et,ge.chars)):(et=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(et,ge.chars)),!ge.location)return;const xr=this.treeAdapter.getChildNodes(et),ci=en?xr.lastIndexOf(en):xr.length,Ai=xr[ci-1];if(this.treeAdapter.getNodeSourceCodeLocation(Ai)){const{endLine:Ko,endCol:li,endOffset:eo}=ge.location;this.treeAdapter.updateNodeSourceCodeLocation(Ai,{endLine:Ko,endCol:li,endOffset:eo})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ai,ge.location)}_adoptNodes(ge,et){for(let en=this.treeAdapter.getFirstChild(ge);en;en=this.treeAdapter.getFirstChild(ge))this.treeAdapter.detachNode(en),this.treeAdapter.appendChild(et,en)}_setEndLocation(ge,et){if(this.treeAdapter.getNodeSourceCodeLocation(ge)&&et.location){const en=et.location,xr=this.treeAdapter.getTagName(ge),ci=et.type===or.END_TAG&&xr===et.tagName?{endTag:xa({},en),endLine:en.endLine,endCol:en.endCol,endOffset:en.endOffset}:{endLine:en.startLine,endCol:en.startCol,endOffset:en.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(ge,ci)}}shouldProcessStartTagTokenInForeignContent(ge){if(!this.currentNotInHTML)return!1;let et,en;return this.openElements.stackTop===0&&this.fragmentContext?(et=this.fragmentContext,en=this.fragmentContextID):{current:et,currentTagId:en}=this.openElements,ge.tagID===Ge.SVG&&this.treeAdapter.getTagName(et)===xn.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(et)===nn.MATHML?!1:this.tokenizer.inForeignNode||(ge.tagID===Ge.MGLYPH||ge.tagID===Ge.MALIGNMARK)&&!this._isIntegrationPoint(en,et,nn.HTML)}_processToken(ge){switch(ge.type){case or.CHARACTER:{this.onCharacter(ge);break}case or.NULL_CHARACTER:{this.onNullCharacter(ge);break}case or.COMMENT:{this.onComment(ge);break}case or.DOCTYPE:{this.onDoctype(ge);break}case or.START_TAG:{this._processStartTag(ge);break}case or.END_TAG:{this.onEndTag(ge);break}case or.EOF:{this.onEof(ge);break}case or.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(ge);break}}}_isIntegrationPoint(ge,et,en){const xr=this.treeAdapter.getNamespaceURI(et),ci=this.treeAdapter.getAttrList(et);return Wi(ge,xr,ci,en)}_reconstructActiveFormattingElements(){const ge=this.activeFormattingElements.entries.length;if(ge){const et=this.activeFormattingElements.entries.findIndex(xr=>xr.type===Rn.Marker||this.openElements.contains(xr.element)),en=et<0?ge-1:et-1;for(let xr=en;xr>=0;xr--){const ci=this.activeFormattingElements.entries[xr];this._insertElement(ci.token,this.treeAdapter.getNamespaceURI(ci.element)),ci.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Vn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ge.P),this.openElements.popUntilTagNamePopped(Ge.P)}_resetInsertionMode(){for(let ge=this.openElements.stackTop;ge>=0;ge--)switch(ge===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[ge]){case Ge.TR:{this.insertionMode=Vn.IN_ROW;return}case Ge.TBODY:case Ge.THEAD:case Ge.TFOOT:{this.insertionMode=Vn.IN_TABLE_BODY;return}case Ge.CAPTION:{this.insertionMode=Vn.IN_CAPTION;return}case Ge.COLGROUP:{this.insertionMode=Vn.IN_COLUMN_GROUP;return}case Ge.TABLE:{this.insertionMode=Vn.IN_TABLE;return}case Ge.BODY:{this.insertionMode=Vn.IN_BODY;return}case Ge.FRAMESET:{this.insertionMode=Vn.IN_FRAMESET;return}case Ge.SELECT:{this._resetInsertionModeForSelect(ge);return}case Ge.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Ge.HTML:{this.insertionMode=this.headElement?Vn.AFTER_HEAD:Vn.BEFORE_HEAD;return}case Ge.TD:case Ge.TH:{if(ge>0){this.insertionMode=Vn.IN_CELL;return}break}case Ge.HEAD:{if(ge>0){this.insertionMode=Vn.IN_HEAD;return}break}}this.insertionMode=Vn.IN_BODY}_resetInsertionModeForSelect(ge){if(ge>0)for(let et=ge-1;et>0;et--){const en=this.openElements.tagIDs[et];if(en===Ge.TEMPLATE)break;if(en===Ge.TABLE){this.insertionMode=Vn.IN_SELECT_IN_TABLE;return}}this.insertionMode=Vn.IN_SELECT}_isElementCausesFosterParenting(ge){return ia.has(ge)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let ge=this.openElements.stackTop;ge>=0;ge--){const et=this.openElements.items[ge];switch(this.openElements.tagIDs[ge]){case Ge.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(et)===nn.HTML)return{parent:this.treeAdapter.getTemplateContent(et),beforeElement:null};break}case Ge.TABLE:{const en=this.treeAdapter.getParentNode(et);return en?{parent:en,beforeElement:et}:{parent:this.openElements.items[ge-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(ge){const et=this._findFosterParentingLocation();et.beforeElement?this.treeAdapter.insertBefore(et.parent,ge,et.beforeElement):this.treeAdapter.appendChild(et.parent,ge)}_isSpecialElement(ge,et){const en=this.treeAdapter.getNamespaceURI(ge);return hi[en].has(et)}onCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){pt(this,ge);return}switch(this.insertionMode){case Vn.INITIAL:{os(this,ge);break}case Vn.BEFORE_HTML:{_a(this,ge);break}case Vn.BEFORE_HEAD:{ra(this,ge);break}case Vn.IN_HEAD:{as(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{Ua(this,ge);break}case Vn.AFTER_HEAD:{ou(this,ge);break}case Vn.IN_BODY:case Vn.IN_CAPTION:case Vn.IN_CELL:case Vn.IN_TEMPLATE:{au(this,ge);break}case Vn.TEXT:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:{this._insertCharacters(ge);break}case Vn.IN_TABLE:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:{vo(this,ge);break}case Vn.IN_TABLE_TEXT:{hl(this,ge);break}case Vn.IN_COLUMN_GROUP:{Ss(this,ge);break}case Vn.AFTER_BODY:{xc(this,ge);break}case Vn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onNullCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tt(this,ge);return}switch(this.insertionMode){case Vn.INITIAL:{os(this,ge);break}case Vn.BEFORE_HTML:{_a(this,ge);break}case Vn.BEFORE_HEAD:{ra(this,ge);break}case Vn.IN_HEAD:{as(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{Ua(this,ge);break}case Vn.AFTER_HEAD:{ou(this,ge);break}case Vn.TEXT:{this._insertCharacters(ge);break}case Vn.IN_TABLE:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:{vo(this,ge);break}case Vn.IN_COLUMN_GROUP:{Ss(this,ge);break}case Vn.AFTER_BODY:{xc(this,ge);break}case Vn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onComment(ge){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ao(this,ge);return}switch(this.insertionMode){case Vn.INITIAL:case Vn.BEFORE_HTML:case Vn.BEFORE_HEAD:case Vn.IN_HEAD:case Vn.IN_HEAD_NO_SCRIPT:case Vn.AFTER_HEAD:case Vn.IN_BODY:case Vn.IN_TABLE:case Vn.IN_CAPTION:case Vn.IN_COLUMN_GROUP:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:case Vn.IN_CELL:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:case Vn.IN_TEMPLATE:case Vn.IN_FRAMESET:case Vn.AFTER_FRAMESET:{Ao(this,ge);break}case Vn.IN_TABLE_TEXT:{Zl(this,ge);break}case Vn.AFTER_BODY:{_r(this,ge);break}case Vn.AFTER_AFTER_BODY:case Vn.AFTER_AFTER_FRAMESET:{to(this,ge);break}default:}}onDoctype(ge){switch(this.skipNextNewLine=!1,this.insertionMode){case Vn.INITIAL:{ba(this,ge);break}case Vn.BEFORE_HEAD:case Vn.IN_HEAD:case Vn.IN_HEAD_NO_SCRIPT:case Vn.AFTER_HEAD:{this._err(ge,Nn.misplacedDoctype);break}case Vn.IN_TABLE_TEXT:{Zl(this,ge);break}default:}}onStartTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this._processStartTag(ge),ge.selfClosing&&!ge.ackSelfClosing&&this._err(ge,Nn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(ge){this.shouldProcessStartTagTokenInForeignContent(ge)?_t(this,ge):this._startTagOutsideForeignContent(ge)}_startTagOutsideForeignContent(ge){switch(this.insertionMode){case Vn.INITIAL:{os(this,ge);break}case Vn.BEFORE_HTML:{ms(this,ge);break}case Vn.BEFORE_HEAD:{qa(this,ge);break}case Vn.IN_HEAD:{Ca(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{Il(this,ge);break}case Vn.AFTER_HEAD:{jl(this,ge);break}case Vn.IN_BODY:{aa(this,ge);break}case Vn.IN_TABLE:{Wl(this,ge);break}case Vn.IN_TABLE_TEXT:{Zl(this,ge);break}case Vn.IN_CAPTION:{jo(this,ge);break}case Vn.IN_COLUMN_GROUP:{Ga(this,ge);break}case Vn.IN_TABLE_BODY:{Rl(this,ge);break}case Vn.IN_ROW:{Ml(this,ge);break}case Vn.IN_CELL:{uu(this,ge);break}case Vn.IN_SELECT:{hh(this,ge);break}case Vn.IN_SELECT_IN_TABLE:{fh(this,ge);break}case Vn.IN_TEMPLATE:{dc(this,ge);break}case Vn.AFTER_BODY:{Qs(this,ge);break}case Vn.IN_FRAMESET:{il(this,ge);break}case Vn.AFTER_FRAMESET:{Ic(this,ge);break}case Vn.AFTER_AFTER_BODY:{Al(this,ge);break}case Vn.AFTER_AFTER_FRAMESET:{Ye(this,ge);break}default:}}onEndTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this.currentNotInHTML?rn(this,ge):this._endTagOutsideForeignContent(ge)}_endTagOutsideForeignContent(ge){switch(this.insertionMode){case Vn.INITIAL:{os(this,ge);break}case Vn.BEFORE_HTML:{uo(this,ge);break}case Vn.BEFORE_HEAD:{pa(this,ge);break}case Vn.IN_HEAD:{Ys(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{iu(this,ge);break}case Vn.AFTER_HEAD:{sc(this,ge);break}case Vn.IN_BODY:{ka(this,ge);break}case Vn.TEXT:{$o(this,ge);break}case Vn.IN_TABLE:{la(this,ge);break}case Vn.IN_TABLE_TEXT:{Zl(this,ge);break}case Vn.IN_CAPTION:{ha(this,ge);break}case Vn.IN_COLUMN_GROUP:{Ns(this,ge);break}case Vn.IN_TABLE_BODY:{Pl(this,ge);break}case Vn.IN_ROW:{Tl(this,ge);break}case Vn.IN_CELL:{xd(this,ge);break}case Vn.IN_SELECT:{jd(this,ge);break}case Vn.IN_SELECT_IN_TABLE:{bs(this,ge);break}case Vn.IN_TEMPLATE:{La(this,ge);break}case Vn.AFTER_BODY:{Zs(this,ge);break}case Vn.IN_FRAMESET:{cu(this,ge);break}case Vn.AFTER_FRAMESET:{Zc(this,ge);break}case Vn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onEof(ge){switch(this.insertionMode){case Vn.INITIAL:{os(this,ge);break}case Vn.BEFORE_HTML:{_a(this,ge);break}case Vn.BEFORE_HEAD:{ra(this,ge);break}case Vn.IN_HEAD:{as(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{Ua(this,ge);break}case Vn.AFTER_HEAD:{ou(this,ge);break}case Vn.IN_BODY:case Vn.IN_TABLE:case Vn.IN_CAPTION:case Vn.IN_COLUMN_GROUP:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:case Vn.IN_CELL:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:{Wa(this,ge);break}case Vn.TEXT:{cc(this,ge);break}case Vn.IN_TABLE_TEXT:{Zl(this,ge);break}case Vn.IN_TEMPLATE:{Us(this,ge);break}case Vn.AFTER_BODY:case Vn.IN_FRAMESET:case Vn.AFTER_FRAMESET:case Vn.AFTER_AFTER_BODY:case Vn.AFTER_AFTER_FRAMESET:{No(this,ge);break}default:}}onWhitespaceCharacter(ge){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,ge.chars.charCodeAt(0)===ht.LINE_FEED)){if(ge.chars.length===1)return;ge.chars=ge.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(ge);return}switch(this.insertionMode){case Vn.IN_HEAD:case Vn.IN_HEAD_NO_SCRIPT:case Vn.AFTER_HEAD:case Vn.TEXT:case Vn.IN_COLUMN_GROUP:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:case Vn.IN_FRAMESET:case Vn.AFTER_FRAMESET:{this._insertCharacters(ge);break}case Vn.IN_BODY:case Vn.IN_CAPTION:case Vn.IN_CELL:case Vn.IN_TEMPLATE:case Vn.AFTER_BODY:case Vn.AFTER_AFTER_BODY:case Vn.AFTER_AFTER_FRAMESET:{cl(this,ge);break}case Vn.IN_TABLE:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:{vo(this,ge);break}case Vn.IN_TABLE_TEXT:{Bu(this,ge);break}default:}}}function Gs(ce,ge){let et=ce.activeFormattingElements.getElementEntryInScopeWithTagName(ge.tagName);return et?ce.openElements.contains(et.element)?ce.openElements.hasInScope(ge.tagID)||(et=null):(ce.activeFormattingElements.removeEntry(et),et=null):Ta(ce,ge),et}function gs(ce,ge){let et=null,en=ce.openElements.stackTop;for(;en>=0;en--){const xr=ce.openElements.items[en];if(xr===ge.element)break;ce._isSpecialElement(xr,ce.openElements.tagIDs[en])&&(et=xr)}return et||(ce.openElements.shortenToLength(en<0?0:en),ce.activeFormattingElements.removeEntry(ge)),et}function Qi(ce,ge,et){let en=ge,xr=ce.openElements.getCommonAncestor(ge);for(let ci=0,Ai=xr;Ai!==et;ci++,Ai=xr){xr=ce.openElements.getCommonAncestor(Ai);const Lo=ce.activeFormattingElements.getElementEntry(Ai),Ko=Lo&&ci>=da;!Lo||Ko?(Ko&&ce.activeFormattingElements.removeEntry(Lo),ce.openElements.remove(Ai)):(Ai=ca(ce,Lo),en===ge&&(ce.activeFormattingElements.bookmark=Lo),ce.treeAdapter.detachNode(en),ce.treeAdapter.appendChild(Ai,en),en=Ai)}return en}function ca(ce,ge){const et=ce.treeAdapter.getNamespaceURI(ge.element),en=ce.treeAdapter.createElement(ge.token.tagName,et,ge.token.attrs);return ce.openElements.replace(ge.element,en),ge.element=en,en}function Ba(ce,ge,et){const en=ce.treeAdapter.getTagName(ge),xr=Hr(en);if(ce._isElementCausesFosterParenting(xr))ce._fosterParentElement(et);else{const ci=ce.treeAdapter.getNamespaceURI(ge);xr===Ge.TEMPLATE&&ci===nn.HTML&&(ge=ce.treeAdapter.getTemplateContent(ge)),ce.treeAdapter.appendChild(ge,et)}}function is(ce,ge,et){const en=ce.treeAdapter.getNamespaceURI(et.element),{token:xr}=et,ci=ce.treeAdapter.createElement(xr.tagName,en,xr.attrs);ce._adoptNodes(ge,ci),ce.treeAdapter.appendChild(ge,ci),ce.activeFormattingElements.insertElementAfterBookmark(ci,xr),ce.activeFormattingElements.removeEntry(et),ce.openElements.remove(et.element),ce.openElements.insertAfter(ge,ci,xr.tagID)}function To(ce,ge){for(let et=0;et<Ki;et++){const en=Gs(ce,ge);if(!en)break;const xr=gs(ce,en);if(!xr)break;ce.activeFormattingElements.bookmark=en;const ci=Qi(ce,xr,en.element),Ai=ce.openElements.getCommonAncestor(en.element);ce.treeAdapter.detachNode(ci),Ai&&Ba(ce,Ai,ci),is(ce,xr,en)}}function Ao(ce,ge){ce._appendCommentNode(ge,ce.openElements.currentTmplContentOrNode)}function _r(ce,ge){ce._appendCommentNode(ge,ce.openElements.items[0])}function to(ce,ge){ce._appendCommentNode(ge,ce.document)}function No(ce,ge){if(ce.stopped=!0,ge.location){const et=ce.fragmentContext?0:2;for(let en=ce.openElements.stackTop;en>=et;en--)ce._setEndLocation(ce.openElements.items[en],ge);if(!ce.fragmentContext&&ce.openElements.stackTop>=0){const en=ce.openElements.items[0],xr=ce.treeAdapter.getNodeSourceCodeLocation(en);if(xr&&!xr.endTag&&(ce._setEndLocation(en,ge),ce.openElements.stackTop>=1)){const ci=ce.openElements.items[1],Ai=ce.treeAdapter.getNodeSourceCodeLocation(ci);Ai&&!Ai.endTag&&ce._setEndLocation(ci,ge)}}}}function ba(ce,ge){ce._setDocumentType(ge);const et=ge.forceQuirks?Dn.QUIRKS:$n(ge);hr(ge)||ce._err(ge,Nn.nonConformingDoctype),ce.treeAdapter.setDocumentMode(ce.document,et),ce.insertionMode=Vn.BEFORE_HTML}function os(ce,ge){ce._err(ge,Nn.missingDoctype,!0),ce.treeAdapter.setDocumentMode(ce.document,Dn.QUIRKS),ce.insertionMode=Vn.BEFORE_HTML,ce._processToken(ge)}function ms(ce,ge){ge.tagID===Ge.HTML?(ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.BEFORE_HEAD):_a(ce,ge)}function uo(ce,ge){const et=ge.tagID;(et===Ge.HTML||et===Ge.HEAD||et===Ge.BODY||et===Ge.BR)&&_a(ce,ge)}function _a(ce,ge){ce._insertFakeRootElement(),ce.insertionMode=Vn.BEFORE_HEAD,ce._processToken(ge)}function qa(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.HEAD:{ce._insertElement(ge,nn.HTML),ce.headElement=ce.openElements.current,ce.insertionMode=Vn.IN_HEAD;break}default:ra(ce,ge)}}function pa(ce,ge){const et=ge.tagID;et===Ge.HEAD||et===Ge.BODY||et===Ge.HTML||et===Ge.BR?ra(ce,ge):ce._err(ge,Nn.endTagWithoutMatchingOpenElement)}function ra(ce,ge){ce._insertFakeElement(xn.HEAD,Ge.HEAD),ce.headElement=ce.openElements.current,ce.insertionMode=Vn.IN_HEAD,ce._processToken(ge)}function Ca(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.BASE:case Ge.BASEFONT:case Ge.BGSOUND:case Ge.LINK:case Ge.META:{ce._appendElement(ge,nn.HTML),ge.ackSelfClosing=!0;break}case Ge.TITLE:{ce._switchToTextParsing(ge,xi.RCDATA);break}case Ge.NOSCRIPT:{ce.options.scriptingEnabled?ce._switchToTextParsing(ge,xi.RAWTEXT):(ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_HEAD_NO_SCRIPT);break}case Ge.NOFRAMES:case Ge.STYLE:{ce._switchToTextParsing(ge,xi.RAWTEXT);break}case Ge.SCRIPT:{ce._switchToTextParsing(ge,xi.SCRIPT_DATA);break}case Ge.TEMPLATE:{ce._insertTemplate(ge),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1,ce.insertionMode=Vn.IN_TEMPLATE,ce.tmplInsertionModeStack.unshift(Vn.IN_TEMPLATE);break}case Ge.HEAD:{ce._err(ge,Nn.misplacedStartTagForHeadElement);break}default:as(ce,ge)}}function Ys(ce,ge){switch(ge.tagID){case Ge.HEAD:{ce.openElements.pop(),ce.insertionMode=Vn.AFTER_HEAD;break}case Ge.BODY:case Ge.BR:case Ge.HTML:{as(ce,ge);break}case Ge.TEMPLATE:{oa(ce,ge);break}default:ce._err(ge,Nn.endTagWithoutMatchingOpenElement)}}function oa(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.generateImpliedEndTagsThoroughly(),ce.openElements.currentTagId!==Ge.TEMPLATE&&ce._err(ge,Nn.closingOfElementWithOpenChildElements),ce.openElements.popUntilTagNamePopped(Ge.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode()):ce._err(ge,Nn.endTagWithoutMatchingOpenElement)}function as(ce,ge){ce.openElements.pop(),ce.insertionMode=Vn.AFTER_HEAD,ce._processToken(ge)}function Il(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.BASEFONT:case Ge.BGSOUND:case Ge.HEAD:case Ge.LINK:case Ge.META:case Ge.NOFRAMES:case Ge.STYLE:{Ca(ce,ge);break}case Ge.NOSCRIPT:{ce._err(ge,Nn.nestedNoscriptInHead);break}default:Ua(ce,ge)}}function iu(ce,ge){switch(ge.tagID){case Ge.NOSCRIPT:{ce.openElements.pop(),ce.insertionMode=Vn.IN_HEAD;break}case Ge.BR:{Ua(ce,ge);break}default:ce._err(ge,Nn.endTagWithoutMatchingOpenElement)}}function Ua(ce,ge){const et=ge.type===or.EOF?Nn.openElementsLeftAfterEof:Nn.disallowedContentInNoscriptInHead;ce._err(ge,et),ce.openElements.pop(),ce.insertionMode=Vn.IN_HEAD,ce._processToken(ge)}function jl(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.BODY:{ce._insertElement(ge,nn.HTML),ce.framesetOk=!1,ce.insertionMode=Vn.IN_BODY;break}case Ge.FRAMESET:{ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_FRAMESET;break}case Ge.BASE:case Ge.BASEFONT:case Ge.BGSOUND:case Ge.LINK:case Ge.META:case Ge.NOFRAMES:case Ge.SCRIPT:case Ge.STYLE:case Ge.TEMPLATE:case Ge.TITLE:{ce._err(ge,Nn.abandonedHeadElementChild),ce.openElements.push(ce.headElement,Ge.HEAD),Ca(ce,ge),ce.openElements.remove(ce.headElement);break}case Ge.HEAD:{ce._err(ge,Nn.misplacedStartTagForHeadElement);break}default:ou(ce,ge)}}function sc(ce,ge){switch(ge.tagID){case Ge.BODY:case Ge.HTML:case Ge.BR:{ou(ce,ge);break}case Ge.TEMPLATE:{oa(ce,ge);break}default:ce._err(ge,Nn.endTagWithoutMatchingOpenElement)}}function ou(ce,ge){ce._insertFakeElement(xn.BODY,Ge.BODY),ce.insertionMode=Vn.IN_BODY,ss(ce,ge)}function ss(ce,ge){switch(ge.type){case or.CHARACTER:{au(ce,ge);break}case or.WHITESPACE_CHARACTER:{cl(ce,ge);break}case or.COMMENT:{Ao(ce,ge);break}case or.START_TAG:{aa(ce,ge);break}case or.END_TAG:{ka(ce,ge);break}case or.EOF:{Wa(ce,ge);break}default:}}function cl(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge)}function au(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge),ce.framesetOk=!1}function Vl(ce,ge){ce.openElements.tmplCount===0&&ce.treeAdapter.adoptAttributes(ce.openElements.items[0],ge.attrs)}function Zu(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce.openElements.tmplCount===0&&(ce.framesetOk=!1,ce.treeAdapter.adoptAttributes(et,ge.attrs))}function ts(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();ce.framesetOk&&et&&(ce.treeAdapter.detachNode(et),ce.openElements.popAllUpToHtmlElement(),ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_FRAMESET)}function lc(ce,ge){ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._insertElement(ge,nn.HTML)}function bc(ce,ge){ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ti.has(ce.openElements.currentTagId)&&ce.openElements.pop(),ce._insertElement(ge,nn.HTML)}function Ou(ce,ge){ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._insertElement(ge,nn.HTML),ce.skipNextNewLine=!0,ce.framesetOk=!1}function Ku(ce,ge){const et=ce.openElements.tmplCount>0;(!ce.formElement||et)&&(ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._insertElement(ge,nn.HTML),et||(ce.formElement=ce.openElements.current))}function Is(ce,ge){ce.framesetOk=!1;const et=ge.tagID;for(let en=ce.openElements.stackTop;en>=0;en--){const xr=ce.openElements.tagIDs[en];if(et===Ge.LI&&xr===Ge.LI||(et===Ge.DD||et===Ge.DT)&&(xr===Ge.DD||xr===Ge.DT)){ce.openElements.generateImpliedEndTagsWithExclusion(xr),ce.openElements.popUntilTagNamePopped(xr);break}if(xr!==Ge.ADDRESS&&xr!==Ge.DIV&&xr!==Ge.P&&ce._isSpecialElement(ce.openElements.items[en],xr))break}ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._insertElement(ge,nn.HTML)}function js(ce,ge){ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._insertElement(ge,nn.HTML),ce.tokenizer.state=xi.PLAINTEXT}function hs(ce,ge){ce.openElements.hasInScope(Ge.BUTTON)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ge.BUTTON)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,nn.HTML),ce.framesetOk=!1}function vs(ce,ge){const et=ce.activeFormattingElements.getElementEntryInScopeWithTagName(xn.A);et&&(To(ce,ge),ce.openElements.remove(et.element),ce.activeFormattingElements.removeEntry(et)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,nn.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function Sa(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,nn.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function Ho(ce,ge){ce._reconstructActiveFormattingElements(),ce.openElements.hasInScope(Ge.NOBR)&&(To(ce,ge),ce._reconstructActiveFormattingElements()),ce._insertElement(ge,nn.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function Yo(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,nn.HTML),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1}function ys(ce,ge){ce.treeAdapter.getDocumentMode(ce.document)!==Dn.QUIRKS&&ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._insertElement(ge,nn.HTML),ce.framesetOk=!1,ce.insertionMode=Vn.IN_TABLE}function $a(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,nn.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function za(ce){const ge=Kr(ce,Qn.TYPE);return ge!=null&&ge.toLowerCase()===ho}function Ui(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,nn.HTML),za(ge)||(ce.framesetOk=!1),ge.ackSelfClosing=!0}function Sl(ce,ge){ce._appendElement(ge,nn.HTML),ge.ackSelfClosing=!0}function an(ce,ge){ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._appendElement(ge,nn.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function Lr(ce,ge){ge.tagName=xn.IMG,ge.tagID=Ge.IMG,$a(ce,ge)}function Eu(ce,ge){ce._insertElement(ge,nn.HTML),ce.skipNextNewLine=!0,ce.tokenizer.state=xi.RCDATA,ce.originalInsertionMode=ce.insertionMode,ce.framesetOk=!1,ce.insertionMode=Vn.TEXT}function Yu(ce,ge){ce.openElements.hasInButtonScope(Ge.P)&&ce._closePElement(),ce._reconstructActiveFormattingElements(),ce.framesetOk=!1,ce._switchToTextParsing(ge,xi.RAWTEXT)}function fs(ce,ge){ce.framesetOk=!1,ce._switchToTextParsing(ge,xi.RAWTEXT)}function Vs(ce,ge){ce._switchToTextParsing(ge,xi.RAWTEXT)}function Dl(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,nn.HTML),ce.framesetOk=!1,ce.insertionMode=ce.insertionMode===Vn.IN_TABLE||ce.insertionMode===Vn.IN_CAPTION||ce.insertionMode===Vn.IN_TABLE_BODY||ce.insertionMode===Vn.IN_ROW||ce.insertionMode===Vn.IN_CELL?Vn.IN_SELECT_IN_TABLE:Vn.IN_SELECT}function Xu(ce,ge){ce.openElements.currentTagId===Ge.OPTION&&ce.openElements.pop(),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,nn.HTML)}function uc(ce,ge){ce.openElements.hasInScope(Ge.RUBY)&&ce.openElements.generateImpliedEndTags(),ce._insertElement(ge,nn.HTML)}function Va(ce,ge){ce.openElements.hasInScope(Ge.RUBY)&&ce.openElements.generateImpliedEndTagsWithExclusion(Ge.RTC),ce._insertElement(ge,nn.HTML)}function wo(ce,ge){ce._reconstructActiveFormattingElements(),lo(ge),na(ge),ge.selfClosing?ce._appendElement(ge,nn.MATHML):ce._insertElement(ge,nn.MATHML),ge.ackSelfClosing=!0}function Ts(ce,ge){ce._reconstructActiveFormattingElements(),So(ge),na(ge),ge.selfClosing?ce._appendElement(ge,nn.SVG):ce._insertElement(ge,nn.SVG),ge.ackSelfClosing=!0}function Ws(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,nn.HTML)}function aa(ce,ge){switch(ge.tagID){case Ge.I:case Ge.S:case Ge.B:case Ge.U:case Ge.EM:case Ge.TT:case Ge.BIG:case Ge.CODE:case Ge.FONT:case Ge.SMALL:case Ge.STRIKE:case Ge.STRONG:{Sa(ce,ge);break}case Ge.A:{vs(ce,ge);break}case Ge.H1:case Ge.H2:case Ge.H3:case Ge.H4:case Ge.H5:case Ge.H6:{bc(ce,ge);break}case Ge.P:case Ge.DL:case Ge.OL:case Ge.UL:case Ge.DIV:case Ge.DIR:case Ge.NAV:case Ge.MAIN:case Ge.MENU:case Ge.ASIDE:case Ge.CENTER:case Ge.FIGURE:case Ge.FOOTER:case Ge.HEADER:case Ge.HGROUP:case Ge.DIALOG:case Ge.DETAILS:case Ge.ADDRESS:case Ge.ARTICLE:case Ge.SEARCH:case Ge.SECTION:case Ge.SUMMARY:case Ge.FIELDSET:case Ge.BLOCKQUOTE:case Ge.FIGCAPTION:{lc(ce,ge);break}case Ge.LI:case Ge.DD:case Ge.DT:{Is(ce,ge);break}case Ge.BR:case Ge.IMG:case Ge.WBR:case Ge.AREA:case Ge.EMBED:case Ge.KEYGEN:{$a(ce,ge);break}case Ge.HR:{an(ce,ge);break}case Ge.RB:case Ge.RTC:{uc(ce,ge);break}case Ge.RT:case Ge.RP:{Va(ce,ge);break}case Ge.PRE:case Ge.LISTING:{Ou(ce,ge);break}case Ge.XMP:{Yu(ce,ge);break}case Ge.SVG:{Ts(ce,ge);break}case Ge.HTML:{Vl(ce,ge);break}case Ge.BASE:case Ge.LINK:case Ge.META:case Ge.STYLE:case Ge.TITLE:case Ge.SCRIPT:case Ge.BGSOUND:case Ge.BASEFONT:case Ge.TEMPLATE:{Ca(ce,ge);break}case Ge.BODY:{Zu(ce,ge);break}case Ge.FORM:{Ku(ce,ge);break}case Ge.NOBR:{Ho(ce,ge);break}case Ge.MATH:{wo(ce,ge);break}case Ge.TABLE:{ys(ce,ge);break}case Ge.INPUT:{Ui(ce,ge);break}case Ge.PARAM:case Ge.TRACK:case Ge.SOURCE:{Sl(ce,ge);break}case Ge.IMAGE:{Lr(ce,ge);break}case Ge.BUTTON:{hs(ce,ge);break}case Ge.APPLET:case Ge.OBJECT:case Ge.MARQUEE:{Yo(ce,ge);break}case Ge.IFRAME:{fs(ce,ge);break}case Ge.SELECT:{Dl(ce,ge);break}case Ge.OPTION:case Ge.OPTGROUP:{Xu(ce,ge);break}case Ge.NOEMBED:case Ge.NOFRAMES:{Vs(ce,ge);break}case Ge.FRAMESET:{ts(ce,ge);break}case Ge.TEXTAREA:{Eu(ce,ge);break}case Ge.NOSCRIPT:{ce.options.scriptingEnabled?Vs(ce,ge):Ws(ce,ge);break}case Ge.PLAINTEXT:{js(ce,ge);break}case Ge.COL:case Ge.TH:case Ge.TD:case Ge.TR:case Ge.HEAD:case Ge.FRAME:case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:case Ge.CAPTION:case Ge.COLGROUP:break;default:Ws(ce,ge)}}function Wo(ce,ge){if(ce.openElements.hasInScope(Ge.BODY)&&(ce.insertionMode=Vn.AFTER_BODY,ce.options.sourceCodeLocationInfo)){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce._setEndLocation(et,ge)}}function Ka(ce,ge){ce.openElements.hasInScope(Ge.BODY)&&(ce.insertionMode=Vn.AFTER_BODY,Zs(ce,ge))}function dl(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et))}function Ia(ce){const ge=ce.openElements.tmplCount>0,{formElement:et}=ce;ge||(ce.formElement=null),(et||ge)&&ce.openElements.hasInScope(Ge.FORM)&&(ce.openElements.generateImpliedEndTags(),ge?ce.openElements.popUntilTagNamePopped(Ge.FORM):et&&ce.openElements.remove(et))}function bl(ce){ce.openElements.hasInButtonScope(Ge.P)||ce._insertFakeElement(xn.P,Ge.P),ce._closePElement()}function As(ce){ce.openElements.hasInListItemScope(Ge.LI)&&(ce.openElements.generateImpliedEndTagsWithExclusion(Ge.LI),ce.openElements.popUntilTagNamePopped(Ge.LI))}function Fu(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTagsWithExclusion(et),ce.openElements.popUntilTagNamePopped(et))}function ga(ce){ce.openElements.hasNumberedHeaderInScope()&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilNumberedHeaderPopped())}function Ds(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker())}function sa(ce){ce._reconstructActiveFormattingElements(),ce._insertFakeElement(xn.BR,Ge.BR),ce.openElements.pop(),ce.framesetOk=!1}function Ta(ce,ge){const et=ge.tagName,en=ge.tagID;for(let xr=ce.openElements.stackTop;xr>0;xr--){const ci=ce.openElements.items[xr],Ai=ce.openElements.tagIDs[xr];if(en===Ai&&(en!==Ge.UNKNOWN||ce.treeAdapter.getTagName(ci)===et)){ce.openElements.generateImpliedEndTagsWithExclusion(en),ce.openElements.stackTop>=xr&&ce.openElements.shortenToLength(xr);break}if(ce._isSpecialElement(ci,Ai))break}}function ka(ce,ge){switch(ge.tagID){case Ge.A:case Ge.B:case Ge.I:case Ge.S:case Ge.U:case Ge.EM:case Ge.TT:case Ge.BIG:case Ge.CODE:case Ge.FONT:case Ge.NOBR:case Ge.SMALL:case Ge.STRIKE:case Ge.STRONG:{To(ce,ge);break}case Ge.P:{bl(ce);break}case Ge.DL:case Ge.UL:case Ge.OL:case Ge.DIR:case Ge.DIV:case Ge.NAV:case Ge.PRE:case Ge.MAIN:case Ge.MENU:case Ge.ASIDE:case Ge.BUTTON:case Ge.CENTER:case Ge.FIGURE:case Ge.FOOTER:case Ge.HEADER:case Ge.HGROUP:case Ge.DIALOG:case Ge.ADDRESS:case Ge.ARTICLE:case Ge.DETAILS:case Ge.SEARCH:case Ge.SECTION:case Ge.SUMMARY:case Ge.LISTING:case Ge.FIELDSET:case Ge.BLOCKQUOTE:case Ge.FIGCAPTION:{dl(ce,ge);break}case Ge.LI:{As(ce);break}case Ge.DD:case Ge.DT:{Fu(ce,ge);break}case Ge.H1:case Ge.H2:case Ge.H3:case Ge.H4:case Ge.H5:case Ge.H6:{ga(ce);break}case Ge.BR:{sa(ce);break}case Ge.BODY:{Wo(ce,ge);break}case Ge.HTML:{Ka(ce,ge);break}case Ge.FORM:{Ia(ce);break}case Ge.APPLET:case Ge.OBJECT:case Ge.MARQUEE:{Ds(ce,ge);break}case Ge.TEMPLATE:{oa(ce,ge);break}default:Ta(ce,ge)}}function Wa(ce,ge){ce.tmplInsertionModeStack.length>0?Us(ce,ge):No(ce,ge)}function $o(ce,ge){var et;ge.tagID===Ge.SCRIPT&&((et=ce.scriptHandler)===null||et===void 0||et.call(ce,ce.openElements.current)),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode}function cc(ce,ge){ce._err(ge,Nn.eofInElementThatCanContainOnlyText),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode,ce.onEof(ge)}function vo(ce,ge){if(ia.has(ce.openElements.currentTagId))switch(ce.pendingCharacterTokens.length=0,ce.hasNonWhitespacePendingCharacterToken=!1,ce.originalInsertionMode=ce.insertionMode,ce.insertionMode=Vn.IN_TABLE_TEXT,ge.type){case or.CHARACTER:{hl(ce,ge);break}case or.WHITESPACE_CHARACTER:{Bu(ce,ge);break}}else Xs(ce,ge)}function dd(ce,ge){ce.openElements.clearBackToTableContext(),ce.activeFormattingElements.insertMarker(),ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_CAPTION}function ta(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_COLUMN_GROUP}function Vc(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(xn.COLGROUP,Ge.COLGROUP),ce.insertionMode=Vn.IN_COLUMN_GROUP,Ga(ce,ge)}function xu(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_TABLE_BODY}function su(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(xn.TBODY,Ge.TBODY),ce.insertionMode=Vn.IN_TABLE_BODY,Rl(ce,ge)}function Wc(ce,ge){ce.openElements.hasInTableScope(Ge.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ge.TABLE),ce._resetInsertionMode(),ce._processStartTag(ge))}function Ec(ce,ge){za(ge)?ce._appendElement(ge,nn.HTML):Xs(ce,ge),ge.ackSelfClosing=!0}function lu(ce,ge){!ce.formElement&&ce.openElements.tmplCount===0&&(ce._insertElement(ge,nn.HTML),ce.formElement=ce.openElements.current,ce.openElements.pop())}function Wl(ce,ge){switch(ge.tagID){case Ge.TD:case Ge.TH:case Ge.TR:{su(ce,ge);break}case Ge.STYLE:case Ge.SCRIPT:case Ge.TEMPLATE:{Ca(ce,ge);break}case Ge.COL:{Vc(ce,ge);break}case Ge.FORM:{lu(ce,ge);break}case Ge.TABLE:{Wc(ce,ge);break}case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:{xu(ce,ge);break}case Ge.INPUT:{Ec(ce,ge);break}case Ge.CAPTION:{dd(ce,ge);break}case Ge.COLGROUP:{ta(ce,ge);break}default:Xs(ce,ge)}}function la(ce,ge){switch(ge.tagID){case Ge.TABLE:{ce.openElements.hasInTableScope(Ge.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ge.TABLE),ce._resetInsertionMode());break}case Ge.TEMPLATE:{oa(ce,ge);break}case Ge.BODY:case Ge.CAPTION:case Ge.COL:case Ge.COLGROUP:case Ge.HTML:case Ge.TBODY:case Ge.TD:case Ge.TFOOT:case Ge.TH:case Ge.THEAD:case Ge.TR:break;default:Xs(ce,ge)}}function Xs(ce,ge){const et=ce.fosterParentingEnabled;ce.fosterParentingEnabled=!0,ss(ce,ge),ce.fosterParentingEnabled=et}function Bu(ce,ge){ce.pendingCharacterTokens.push(ge)}function hl(ce,ge){ce.pendingCharacterTokens.push(ge),ce.hasNonWhitespacePendingCharacterToken=!0}function Zl(ce,ge){let et=0;if(ce.hasNonWhitespacePendingCharacterToken)for(;et<ce.pendingCharacterTokens.length;et++)Xs(ce,ce.pendingCharacterTokens[et]);else for(;et<ce.pendingCharacterTokens.length;et++)ce._insertCharacters(ce.pendingCharacterTokens[et]);ce.insertionMode=ce.originalInsertionMode,ce._processToken(ge)}const rl=new Set([Ge.CAPTION,Ge.COL,Ge.COLGROUP,Ge.TBODY,Ge.TD,Ge.TFOOT,Ge.TH,Ge.THEAD,Ge.TR]);function jo(ce,ge){const et=ge.tagID;rl.has(et)?ce.openElements.hasInTableScope(Ge.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ge.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Vn.IN_TABLE,Wl(ce,ge)):aa(ce,ge)}function ha(ce,ge){const et=ge.tagID;switch(et){case Ge.CAPTION:case Ge.TABLE:{ce.openElements.hasInTableScope(Ge.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ge.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Vn.IN_TABLE,et===Ge.TABLE&&la(ce,ge));break}case Ge.BODY:case Ge.COL:case Ge.COLGROUP:case Ge.HTML:case Ge.TBODY:case Ge.TD:case Ge.TFOOT:case Ge.TH:case Ge.THEAD:case Ge.TR:break;default:ka(ce,ge)}}function Ga(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.COL:{ce._appendElement(ge,nn.HTML),ge.ackSelfClosing=!0;break}case Ge.TEMPLATE:{Ca(ce,ge);break}default:Ss(ce,ge)}}function Ns(ce,ge){switch(ge.tagID){case Ge.COLGROUP:{ce.openElements.currentTagId===Ge.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE);break}case Ge.TEMPLATE:{oa(ce,ge);break}case Ge.COL:break;default:Ss(ce,ge)}}function Ss(ce,ge){ce.openElements.currentTagId===Ge.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE,ce._processToken(ge))}function Rl(ce,ge){switch(ge.tagID){case Ge.TR:{ce.openElements.clearBackToTableBodyContext(),ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_ROW;break}case Ge.TH:case Ge.TD:{ce.openElements.clearBackToTableBodyContext(),ce._insertFakeElement(xn.TR,Ge.TR),ce.insertionMode=Vn.IN_ROW,Ml(ce,ge);break}case Ge.CAPTION:case Ge.COL:case Ge.COLGROUP:case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE,Wl(ce,ge));break}default:Wl(ce,ge)}}function Pl(ce,ge){const et=ge.tagID;switch(ge.tagID){case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:{ce.openElements.hasInTableScope(et)&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE);break}case Ge.TABLE:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE,la(ce,ge));break}case Ge.BODY:case Ge.CAPTION:case Ge.COL:case Ge.COLGROUP:case Ge.HTML:case Ge.TD:case Ge.TH:case Ge.TR:break;default:la(ce,ge)}}function Ml(ce,ge){switch(ge.tagID){case Ge.TH:case Ge.TD:{ce.openElements.clearBackToTableRowContext(),ce._insertElement(ge,nn.HTML),ce.insertionMode=Vn.IN_CELL,ce.activeFormattingElements.insertMarker();break}case Ge.CAPTION:case Ge.COL:case Ge.COLGROUP:case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:case Ge.TR:{ce.openElements.hasInTableScope(Ge.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY,Rl(ce,ge));break}default:Wl(ce,ge)}}function Tl(ce,ge){switch(ge.tagID){case Ge.TR:{ce.openElements.hasInTableScope(Ge.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY);break}case Ge.TABLE:{ce.openElements.hasInTableScope(Ge.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY,Pl(ce,ge));break}case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:{(ce.openElements.hasInTableScope(ge.tagID)||ce.openElements.hasInTableScope(Ge.TR))&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY,Pl(ce,ge));break}case Ge.BODY:case Ge.CAPTION:case Ge.COL:case Ge.COLGROUP:case Ge.HTML:case Ge.TD:case Ge.TH:break;default:la(ce,ge)}}function uu(ce,ge){const et=ge.tagID;rl.has(et)?(ce.openElements.hasInTableScope(Ge.TD)||ce.openElements.hasInTableScope(Ge.TH))&&(ce._closeTableCell(),Ml(ce,ge)):aa(ce,ge)}function xd(ce,ge){const et=ge.tagID;switch(et){case Ge.TD:case Ge.TH:{ce.openElements.hasInTableScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Vn.IN_ROW);break}case Ge.TABLE:case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:case Ge.TR:{ce.openElements.hasInTableScope(et)&&(ce._closeTableCell(),Tl(ce,ge));break}case Ge.BODY:case Ge.CAPTION:case Ge.COL:case Ge.COLGROUP:case Ge.HTML:break;default:ka(ce,ge)}}function hh(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.OPTION:{ce.openElements.currentTagId===Ge.OPTION&&ce.openElements.pop(),ce._insertElement(ge,nn.HTML);break}case Ge.OPTGROUP:{ce.openElements.currentTagId===Ge.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ge.OPTGROUP&&ce.openElements.pop(),ce._insertElement(ge,nn.HTML);break}case Ge.HR:{ce.openElements.currentTagId===Ge.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ge.OPTGROUP&&ce.openElements.pop(),ce._appendElement(ge,nn.HTML),ge.ackSelfClosing=!0;break}case Ge.INPUT:case Ge.KEYGEN:case Ge.TEXTAREA:case Ge.SELECT:{ce.openElements.hasInSelectScope(Ge.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ge.SELECT),ce._resetInsertionMode(),ge.tagID!==Ge.SELECT&&ce._processStartTag(ge));break}case Ge.SCRIPT:case Ge.TEMPLATE:{Ca(ce,ge);break}default:}}function jd(ce,ge){switch(ge.tagID){case Ge.OPTGROUP:{ce.openElements.stackTop>0&&ce.openElements.currentTagId===Ge.OPTION&&ce.openElements.tagIDs[ce.openElements.stackTop-1]===Ge.OPTGROUP&&ce.openElements.pop(),ce.openElements.currentTagId===Ge.OPTGROUP&&ce.openElements.pop();break}case Ge.OPTION:{ce.openElements.currentTagId===Ge.OPTION&&ce.openElements.pop();break}case Ge.SELECT:{ce.openElements.hasInSelectScope(Ge.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ge.SELECT),ce._resetInsertionMode());break}case Ge.TEMPLATE:{oa(ce,ge);break}default:}}function fh(ce,ge){const et=ge.tagID;et===Ge.CAPTION||et===Ge.TABLE||et===Ge.TBODY||et===Ge.TFOOT||et===Ge.THEAD||et===Ge.TR||et===Ge.TD||et===Ge.TH?(ce.openElements.popUntilTagNamePopped(Ge.SELECT),ce._resetInsertionMode(),ce._processStartTag(ge)):hh(ce,ge)}function bs(ce,ge){const et=ge.tagID;et===Ge.CAPTION||et===Ge.TABLE||et===Ge.TBODY||et===Ge.TFOOT||et===Ge.THEAD||et===Ge.TR||et===Ge.TD||et===Ge.TH?ce.openElements.hasInTableScope(et)&&(ce.openElements.popUntilTagNamePopped(Ge.SELECT),ce._resetInsertionMode(),ce.onEndTag(ge)):jd(ce,ge)}function dc(ce,ge){switch(ge.tagID){case Ge.BASE:case Ge.BASEFONT:case Ge.BGSOUND:case Ge.LINK:case Ge.META:case Ge.NOFRAMES:case Ge.SCRIPT:case Ge.STYLE:case Ge.TEMPLATE:case Ge.TITLE:{Ca(ce,ge);break}case Ge.CAPTION:case Ge.COLGROUP:case Ge.TBODY:case Ge.TFOOT:case Ge.THEAD:{ce.tmplInsertionModeStack[0]=Vn.IN_TABLE,ce.insertionMode=Vn.IN_TABLE,Wl(ce,ge);break}case Ge.COL:{ce.tmplInsertionModeStack[0]=Vn.IN_COLUMN_GROUP,ce.insertionMode=Vn.IN_COLUMN_GROUP,Ga(ce,ge);break}case Ge.TR:{ce.tmplInsertionModeStack[0]=Vn.IN_TABLE_BODY,ce.insertionMode=Vn.IN_TABLE_BODY,Rl(ce,ge);break}case Ge.TD:case Ge.TH:{ce.tmplInsertionModeStack[0]=Vn.IN_ROW,ce.insertionMode=Vn.IN_ROW,Ml(ce,ge);break}default:ce.tmplInsertionModeStack[0]=Vn.IN_BODY,ce.insertionMode=Vn.IN_BODY,aa(ce,ge)}}function La(ce,ge){ge.tagID===Ge.TEMPLATE&&oa(ce,ge)}function Us(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.popUntilTagNamePopped(Ge.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode(),ce.onEof(ge)):No(ce,ge)}function Qs(ce,ge){ge.tagID===Ge.HTML?aa(ce,ge):xc(ce,ge)}function Zs(ce,ge){var et;if(ge.tagID===Ge.HTML){if(ce.fragmentContext||(ce.insertionMode=Vn.AFTER_AFTER_BODY),ce.options.sourceCodeLocationInfo&&ce.openElements.tagIDs[0]===Ge.HTML){ce._setEndLocation(ce.openElements.items[0],ge);const en=ce.openElements.items[1];en&&!(!((et=ce.treeAdapter.getNodeSourceCodeLocation(en))===null||et===void 0)&&et.endTag)&&ce._setEndLocation(en,ge)}}else xc(ce,ge)}function xc(ce,ge){ce.insertionMode=Vn.IN_BODY,ss(ce,ge)}function il(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.FRAMESET:{ce._insertElement(ge,nn.HTML);break}case Ge.FRAME:{ce._appendElement(ge,nn.HTML),ge.ackSelfClosing=!0;break}case Ge.NOFRAMES:{Ca(ce,ge);break}default:}}function cu(ce,ge){ge.tagID===Ge.FRAMESET&&!ce.openElements.isRootHtmlElementCurrent()&&(ce.openElements.pop(),!ce.fragmentContext&&ce.openElements.currentTagId!==Ge.FRAMESET&&(ce.insertionMode=Vn.AFTER_FRAMESET))}function Ic(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.NOFRAMES:{Ca(ce,ge);break}default:}}function Zc(ce,ge){ge.tagID===Ge.HTML&&(ce.insertionMode=Vn.AFTER_AFTER_FRAMESET)}function Al(ce,ge){ge.tagID===Ge.HTML?aa(ce,ge):Ce(ce,ge)}function Ce(ce,ge){ce.insertionMode=Vn.IN_BODY,ss(ce,ge)}function Ye(ce,ge){switch(ge.tagID){case Ge.HTML:{aa(ce,ge);break}case Ge.NOFRAMES:{Ca(ce,ge);break}default:}}function tt(ce,ge){ge.chars=Sn,ce._insertCharacters(ge)}function pt(ce,ge){ce._insertCharacters(ge),ce.framesetOk=!1}function Ft(ce){for(;ce.treeAdapter.getNamespaceURI(ce.openElements.current)!==nn.HTML&&!ce._isIntegrationPoint(ce.openElements.currentTagId,ce.openElements.current);)ce.openElements.pop()}function _t(ce,ge){if(Oi(ge))Ft(ce),ce._startTagOutsideForeignContent(ge);else{const et=ce._getAdjustedCurrentElement(),en=ce.treeAdapter.getNamespaceURI(et);en===nn.MATHML?lo(ge):en===nn.SVG&&(An(ge),So(ge)),na(ge),ge.selfClosing?ce._appendElement(ge,en):ce._insertElement(ge,en),ge.ackSelfClosing=!0}}function rn(ce,ge){if(ge.tagID===Ge.P||ge.tagID===Ge.BR){Ft(ce),ce._endTagOutsideForeignContent(ge);return}for(let et=ce.openElements.stackTop;et>0;et--){const en=ce.openElements.items[et];if(ce.treeAdapter.getNamespaceURI(en)===nn.HTML){ce._endTagOutsideForeignContent(ge);break}const xr=ce.treeAdapter.getTagName(en);if(xr.toLowerCase()===ge.tagName){ge.tagName=xr,ce.openElements.shortenToLength(et);break}}}const Pn=/["&'<>$\x80-\uFFFF]/g,br=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),wr=String.prototype.codePointAt!=null?(ce,ge)=>ce.codePointAt(ge):(ce,ge)=>(ce.charCodeAt(ge)&64512)===55296?(ce.charCodeAt(ge)-55296)*1024+ce.charCodeAt(ge+1)-56320+65536:ce.charCodeAt(ge);function ir(ce){let ge="",et=0,en;for(;(en=Pn.exec(ce))!==null;){const xr=en.index,ci=ce.charCodeAt(xr),Ai=br.get(ci);Ai!==void 0?(ge+=ce.substring(et,xr)+Ai,et=xr+1):(ge+=`${ce.substring(et,xr)}&#x${wr(ce,xr).toString(16)};`,et=Pn.lastIndex+=+((ci&64512)===55296))}return ge+ce.substr(et)}const Yr=null;function Br(ce,ge){return function(en){let xr,ci=0,Ai="";for(;xr=ce.exec(en);)ci!==xr.index&&(Ai+=en.substring(ci,xr.index)),Ai+=ge.get(xr[0].charCodeAt(0)),ci=xr.index+1;return Ai+en.substring(ci)}}const dr=Br(/[&<>'"]/g,br),Co=Br(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),zo=Br(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),ea=new Set([xn.AREA,xn.BASE,xn.BASEFONT,xn.BGSOUND,xn.BR,xn.COL,xn.EMBED,xn.FRAME,xn.HR,xn.IMG,xn.INPUT,xn.KEYGEN,xn.LINK,xn.META,xn.PARAM,xn.SOURCE,xn.TRACK,xn.WBR]);function io(ce,ge){return ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML&&ea.has(ge.treeAdapter.getTagName(ce))}const Ro={treeAdapter:Sr,scriptingEnabled:!0};function Bo(ce,ge){const et=xa(xa({},Ro),ge);return io(ce,et)?"":Xa(ce,et)}function Ya(ce,ge){const et=xa(xa({},Ro),ge);return Zi(ce,et)}function Xa(ce,ge){let et="";const en=ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getTagName(ce)===$.TEMPLATE&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML?ge.treeAdapter.getTemplateContent(ce):ce,xr=ge.treeAdapter.getChildNodes(en);if(xr)for(const ci of xr)et+=Zi(ci,ge);return et}function Zi(ce,ge){return ge.treeAdapter.isElementNode(ce)?es(ce,ge):ge.treeAdapter.isTextNode(ce)?ja(ce,ge):ge.treeAdapter.isCommentNode(ce)?bo(ce,ge):ge.treeAdapter.isDocumentTypeNode(ce)?fl(ce,ge):""}function es(ce,ge){const et=ge.treeAdapter.getTagName(ce);return`<${et}${Za(ce,ge)}>${io(ce,ge)?"":`${Xa(ce,ge)}</${et}>`}`}function Za(ce,{treeAdapter:ge}){let et="";for(const en of ge.getAttrList(ce)){if(et+=" ",en.namespace)switch(en.namespace){case NS.XML:{et+=`xml:${en.name}`;break}case NS.XMLNS:{en.name!=="xmlns"&&(et+="xmlns:"),et+=en.name;break}case NS.XLINK:{et+=`xlink:${en.name}`;break}default:et+=`${en.prefix}:${en.name}`}else et+=en.name;et+=`="${escapeAttribute(en.value)}"`}return et}function ja(ce,ge){const{treeAdapter:et}=ge,en=et.getTextNodeContent(ce),xr=et.getParentNode(ce),ci=xr&&et.isElementNode(xr)&&et.getTagName(xr);return ci&&et.getNamespaceURI(xr)===NS.HTML&&hasUnescapedText(ci,ge.scriptingEnabled)?en:escapeText(en)}function bo(ce,{treeAdapter:ge}){return`<!--${ge.getCommentNodeContent(ce)}-->`}function fl(ce,{treeAdapter:ge}){return`<!DOCTYPE ${ge.getDocumentTypeNodeName(ce)}>`}function ls(ce,ge){return Parser.parse(ce,ge)}function Xo(ce,ge,et){typeof ce=="string"&&(et=ge,ge=ce,ce=null);const en=Parser.getFragmentParser(ce,et);return en.tokenizer.write(ge,!0),en.getFragment()}var Zo=ae(17970),wa=ae(10528);const ps=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Js=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),El={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Kl(ce,ge){const et=wd(ce),en=bt("type",{handlers:{root:Nl,element:Ol,text:Ir,comment:du,doctype:ol,raw:qs},unknown:Es}),xr={parser:et?new Fa(El):Fa.getFragmentParser(void 0,El),handle(Lo){en(Lo,xr)},stitches:!1,options:ge||{}};en(ce,xr),hu(xr,(0,Zo.Pk)());const ci=et?xr.parser.document:xr.parser.getFragment(),Ai=$e(ci,{file:xr.options.file});return xr.stitches&&(0,wa.Vn)(Ai,"comment",function(Lo,Ko,li){const eo=Lo;if(eo.value.stitch&&li&&Ko!==void 0){const Vo=li.children;return Vo[Ko]=eo.value.stitch,Ko}}),Ai.type==="root"&&Ai.children.length===1&&Ai.children[0].type===ce.type?Ai.children[0]:Ai}function Ar(ce,ge){let et=-1;if(ce)for(;++et<ce.length;)ge.handle(ce[et])}function Nl(ce,ge){Ar(ce.children,ge)}function Ol(ce,ge){Qu(ce,ge),Ar(ce.children,ge),hc(ce,ge)}function Ir(ce,ge){ge.parser.tokenizer.state>4&&(ge.parser.tokenizer.state=0);const et={type:or.CHARACTER,chars:ce.value,location:xl(ce)};hu(ge,(0,Zo.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function ol(ce,ge){const et={type:or.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xl(ce)};hu(ge,(0,Zo.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function wu(ce,ge){ge.stitches=!0;const et=fu(ce);if("children"in ce&&"children"in et){const en=Kl({type:"root",children:ce.children},ge.options);et.children=en.children}du({type:"comment",value:{stitch:et}},ge)}function du(ce,ge){const et=ce.value,en={type:or.COMMENT,data:et,location:xl(ce)};hu(ge,(0,Zo.Pk)(ce)),ge.parser.currentToken=en,ge.parser._processToken(ge.parser.currentToken)}function qs(ce,ge){if(ge.parser.tokenizer.preprocessor.html="",ge.parser.tokenizer.preprocessor.pos=-1,ge.parser.tokenizer.preprocessor.lastGapPos=-2,ge.parser.tokenizer.preprocessor.gapStack=[],ge.parser.tokenizer.preprocessor.skipNextNewLine=!1,ge.parser.tokenizer.preprocessor.lastChunkWritten=!1,ge.parser.tokenizer.preprocessor.endOfChunkHit=!1,ge.parser.tokenizer.preprocessor.isEol=!1,al(ge,(0,Zo.Pk)(ce)),ge.parser.tokenizer.write(ge.options.tagfilter?ce.value.replace(ps,"&lt;$1$2"):ce.value,!1),ge.parser.tokenizer._runParsingLoop(),ge.parser.tokenizer.state===72||ge.parser.tokenizer.state===78){ge.parser.tokenizer.preprocessor.lastChunkWritten=!0;const et=ge.parser.tokenizer._consume();ge.parser.tokenizer._callState(et)}}function Es(ce,ge){const et=ce;if(ge.options.passThrough&&ge.options.passThrough.includes(et.type))wu(et,ge);else{let en="";throw Js.has(et.type)&&(en=". 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 `"+et.type+"` node"+en)}}function hu(ce,ge){al(ce,ge);const et=ce.parser.tokenizer.currentCharacterToken;et&&et.location&&(et.location.endLine=ce.parser.tokenizer.preprocessor.line,et.location.endCol=ce.parser.tokenizer.preprocessor.col+1,et.location.endOffset=ce.parser.tokenizer.preprocessor.offset+1,ce.parser.currentToken=et,ce.parser._processToken(ce.parser.currentToken)),ce.parser.tokenizer.paused=!1,ce.parser.tokenizer.inLoop=!1,ce.parser.tokenizer.active=!1,ce.parser.tokenizer.returnState=xi.DATA,ce.parser.tokenizer.charRefCode=-1,ce.parser.tokenizer.consumedAfterSnapshot=-1,ce.parser.tokenizer.currentLocation=null,ce.parser.tokenizer.currentCharacterToken=null,ce.parser.tokenizer.currentToken=null,ce.parser.tokenizer.currentAttr={name:"",value:""}}function al(ce,ge){if(ge&&ge.offset!==void 0){const et={startLine:ge.line,startCol:ge.column,startOffset:ge.offset,endLine:-1,endCol:-1,endOffset:-1};ce.parser.tokenizer.preprocessor.lineStartPos=-ge.column+1,ce.parser.tokenizer.preprocessor.droppedBufferSize=ge.offset,ce.parser.tokenizer.preprocessor.line=ge.line,ce.parser.tokenizer.currentLocation=et}}function Qu(ce,ge){const et=ce.tagName.toLowerCase();if(ge.parser.tokenizer.state===xi.PLAINTEXT)return;hu(ge,(0,Zo.Pk)(ce));const en=ge.parser.openElements.current;let xr="namespaceURI"in en?en.namespaceURI:Qe.t.html;xr===Qe.t.html&&et==="svg"&&(xr=Qe.t.svg);const ci=Pt(Kp(xa({},ce),{children:[]}),{space:xr===Qe.t.svg?"svg":"html"}),Ai={type:or.START_TAG,tagName:et,tagID:Hr(et),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in ci?ci.attrs:[],location:xl(ce)};ge.parser.currentToken=Ai,ge.parser._processToken(ge.parser.currentToken),ge.parser.tokenizer.lastStartTagName=et}function hc(ce,ge){const et=ce.tagName.toLowerCase();if(!ge.parser.tokenizer.inForeignNode&&mn.includes(et)||ge.parser.tokenizer.state===xi.PLAINTEXT)return;hu(ge,(0,Zo.rb)(ce));const en={type:or.END_TAG,tagName:et,tagID:Hr(et),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xl(ce)};ge.parser.currentToken=en,ge.parser._processToken(ge.parser.currentToken),et===ge.parser.tokenizer.lastStartTagName&&(ge.parser.tokenizer.state===xi.RCDATA||ge.parser.tokenizer.state===xi.RAWTEXT||ge.parser.tokenizer.state===xi.SCRIPT_DATA)&&(ge.parser.tokenizer.state=xi.DATA)}function wd(ce){const ge=ce.type==="root"?ce.children[0]:ce;return!!(ge&&(ge.type==="doctype"||ge.type==="element"&&ge.tagName.toLowerCase()==="html"))}function xl(ce){const ge=(0,Zo.Pk)(ce)||{line:void 0,column:void 0,offset:void 0},et=(0,Zo.rb)(ce)||{line:void 0,column:void 0,offset:void 0};return{startLine:ge.line,startCol:ge.column,startOffset:ge.offset,endLine:et.line,endCol:et.column,endOffset:et.offset}}function fu(ce){return"children"in ce?(0,Pe.ZP)(Kp(xa({},ce),{children:[]})):(0,Pe.ZP)(ce)}function hd(ce){return function(ge,et){return Kl(ge,Kp(xa({},ce),{file:et}))}}},10787:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ue}});function oe(St){if(typeof St!="string")throw new TypeError("Expected a string");return St.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Pe=ae(2348),Ie=ae(10502);function ke(St,$e,Dt){const Fe=Dt||{},te=(0,Ie.O)(Fe.ignore||[]),ee=Ve($e);let he=-1;for(;++he<ee.length;)(0,Pe.S4)(St,"text",ue);function ue(me,be){let Ae=-1,De;for(;++Ae<be.length;){const We=be[Ae],nt=De?De.children:void 0;if(te(We,nt?nt.indexOf(We):void 0,De))return;De=We}if(De)return fe(me,be)}function fe(me,be){const Ae=be[be.length-1],De=ee[he][0],We=ee[he][1];let nt=0;const ot=Ae.children.indexOf(me);let mt=!1,at=[];De.lastIndex=0;let vt=De.exec(me.value);for(;vt;){const wt=vt.index,At={index:vt.index,input:vt.input,stack:[...be,me]};let Ht=We(...vt,At);if(typeof Ht=="string"&&(Ht=Ht.length>0?{type:"text",value:Ht}:void 0),Ht===!1?De.lastIndex=wt+1:(nt!==wt&&at.push({type:"text",value:me.value.slice(nt,wt)}),Array.isArray(Ht)?at.push(...Ht):Ht&&at.push(Ht),nt=wt+vt[0].length,mt=!0),!De.global)break;vt=De.exec(me.value)}return mt?(nt<me.value.length&&at.push({type:"text",value:me.value.slice(nt)}),Ae.children.splice(ot,1,...at)):at=[me],ot+at.length}}function Ve(St){const $e=[];if(!Array.isArray(St))throw new TypeError("Expected find and replace tuple or list of tuples");const Dt=!St[0]||Array.isArray(St[0])?St:[St];let Fe=-1;for(;++Fe<Dt.length;){const te=Dt[Fe];$e.push([Te(te[0]),ze(te[1])])}return $e}function Te(St){return typeof St=="string"?new RegExp(oe(St),"g"):St}function ze(St){return typeof St=="function"?St:function(){return St}}function st(St){ke(St,[/\r?\n|\r/g,Qe])}function Qe(){return{type:"break"}}function Ue(){return function(St){st(St)}}},30084:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ee}});var oe=ae(87342);function Pe(he,ue){const fe=String(he);let me=fe.indexOf(ue),be=me,Ae=0,De=0;if(typeof ue!="string")throw new TypeError("Expected substring");for(;me!==-1;)me===be?++Ae>De&&(De=Ae):Ae=1,be=me+ue.length,me=fe.indexOf(ue,be);return De}function Ie(){return{enter:{mathFlow:he,mathFlowFenceMeta:ue,mathText:Ae},exit:{mathFlow:be,mathFlowFence:me,mathFlowFenceMeta:fe,mathFlowValue:We,mathText:De,mathTextData:We}};function he(nt){const qe={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[qe]}},nt)}function ue(){this.buffer()}function fe(){const nt=this.resume(),qe=this.stack[this.stack.length-1];(0,oe.ok)(qe.type==="math"),qe.meta=nt}function me(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function be(nt){const qe=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),ot=this.stack[this.stack.length-1];(0,oe.ok)(ot.type==="math"),this.exit(nt),ot.value=qe;const mt=ot.data.hChildren[0];(0,oe.ok)(mt.type==="element"),(0,oe.ok)(mt.tagName==="code"),mt.children.push({type:"text",value:qe}),this.data.mathFlowInside=void 0}function Ae(nt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},nt),this.buffer()}function De(nt){const qe=this.resume(),ot=this.stack[this.stack.length-1];(0,oe.ok)(ot.type==="inlineMath"),this.exit(nt),ot.value=qe,ot.data.hChildren.push({type:"text",value:qe})}function We(nt){this.config.enter.data.call(this,nt),this.config.exit.data.call(this,nt)}}function ke(he){let ue=(he||{}).singleDollarTextMath;return ue==null&&(ue=!0),me.peek=be,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:ue?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:fe,inlineMath:me}};function fe(Ae,De,We,nt){const qe=Ae.value||"",ot=We.createTracker(nt),mt="$".repeat(Math.max(Pe(qe,"$")+1,2)),at=We.enter("mathFlow");let vt=ot.move(mt);if(Ae.meta){const wt=We.enter("mathFlowMeta");vt+=ot.move(We.safe(Ae.meta,xa({after:`
`,before:vt,encode:["$"]},ot.current()))),wt()}return vt+=ot.move(`
`),qe&&(vt+=ot.move(qe+`
`)),vt+=ot.move(mt),at(),vt}function me(Ae,De,We){let nt=Ae.value||"",qe=1;for(ue||qe++;new RegExp("(^|[^$])"+"\\$".repeat(qe)+"([^$]|$)").test(nt);)qe++;const ot="$".repeat(qe);/[^ \r\n]/.test(nt)&&(/^[ \r\n]/.test(nt)&&/[ \r\n]$/.test(nt)||/^\$|\$$/.test(nt))&&(nt=" "+nt+" ");let mt=-1;for(;++mt<We.unsafe.length;){const at=We.unsafe[mt];if(!at.atBreak)continue;const vt=We.compilePattern(at);let wt;for(;wt=vt.exec(nt);){let At=wt.index;nt.codePointAt(At)===10&&nt.codePointAt(At-1)===13&&At--,nt=nt.slice(0,At)+" "+nt.slice(wt.index+1)}}return ot+nt+ot}function be(){return"$"}}var Ve=ae(26735),Te=ae(80722);const ze={tokenize:Qe,concrete:!0,name:"mathFlow"},st={tokenize:Ue,partial:!0};function Qe(he,ue,fe){const me=this,be=me.events[me.events.length-1],Ae=be&&be[1].type==="linePrefix"?be[2].sliceSerialize(be[1],!0).length:0;let De=0;return We;function We(Zt){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),nt(Zt)}function nt(Zt){return Zt===36?(he.consume(Zt),De++,nt):De<2?fe(Zt):(he.exit("mathFlowFenceSequence"),(0,Ve.f)(he,qe,"whitespace")(Zt))}function qe(Zt){return Zt===null||(0,Te.Ch)(Zt)?mt(Zt):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),ot(Zt))}function ot(Zt){return Zt===null||(0,Te.Ch)(Zt)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),mt(Zt)):Zt===36?fe(Zt):(he.consume(Zt),ot)}function mt(Zt){return he.exit("mathFlowFence"),me.interrupt?ue(Zt):he.attempt(st,at,Ht)(Zt)}function at(Zt){return he.attempt({tokenize:Qt,partial:!0},Ht,vt)(Zt)}function vt(Zt){return(Ae?(0,Ve.f)(he,wt,"linePrefix",Ae+1):wt)(Zt)}function wt(Zt){return Zt===null?Ht(Zt):(0,Te.Ch)(Zt)?he.attempt(st,at,Ht)(Zt):(he.enter("mathFlowValue"),At(Zt))}function At(Zt){return Zt===null||(0,Te.Ch)(Zt)?(he.exit("mathFlowValue"),wt(Zt)):(he.consume(Zt),At)}function Ht(Zt){return he.exit("mathFlow"),ue(Zt)}function Qt(Zt,ln,Nt){let gt=0;return(0,Ve.f)(Zt,ct,"linePrefix",me.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ct(It){return Zt.enter("mathFlowFence"),Zt.enter("mathFlowFenceSequence"),Jt(It)}function Jt(It){return It===36?(gt++,Zt.consume(It),Jt):gt<De?Nt(It):(Zt.exit("mathFlowFenceSequence"),(0,Ve.f)(Zt,sn,"whitespace")(It))}function sn(It){return It===null||(0,Te.Ch)(It)?(Zt.exit("mathFlowFence"),ln(It)):Nt(It)}}}function Ue(he,ue,fe){const me=this;return be;function be(De){return De===null?ue(De):(he.enter("lineEnding"),he.consume(De),he.exit("lineEnding"),Ae)}function Ae(De){return me.parser.lazy[me.now().line]?fe(De):ue(De)}}function St(he){let fe=(he||{}).singleDollarTextMath;return fe==null&&(fe=!0),{tokenize:me,resolve:$e,previous:Dt,name:"mathText"};function me(be,Ae,De){const We=this;let nt=0,qe,ot;return mt;function mt(Ht){return be.enter("mathText"),be.enter("mathTextSequence"),at(Ht)}function at(Ht){return Ht===36?(be.consume(Ht),nt++,at):nt<2&&!fe?De(Ht):(be.exit("mathTextSequence"),vt(Ht))}function vt(Ht){return Ht===null?De(Ht):Ht===36?(ot=be.enter("mathTextSequence"),qe=0,At(Ht)):Ht===32?(be.enter("space"),be.consume(Ht),be.exit("space"),vt):(0,Te.Ch)(Ht)?(be.enter("lineEnding"),be.consume(Ht),be.exit("lineEnding"),vt):(be.enter("mathTextData"),wt(Ht))}function wt(Ht){return Ht===null||Ht===32||Ht===36||(0,Te.Ch)(Ht)?(be.exit("mathTextData"),vt(Ht)):(be.consume(Ht),wt)}function At(Ht){return Ht===36?(be.consume(Ht),qe++,At):qe===nt?(be.exit("mathTextSequence"),be.exit("mathText"),Ae(Ht)):(ot.type="mathTextData",wt(Ht))}}}function $e(he){let ue=he.length-4,fe=3,me,be;if((he[fe][1].type==="lineEnding"||he[fe][1].type==="space")&&(he[ue][1].type==="lineEnding"||he[ue][1].type==="space")){for(me=fe;++me<ue;)if(he[me][1].type==="mathTextData"){he[ue][1].type="mathTextPadding",he[fe][1].type="mathTextPadding",fe+=2,ue-=2;break}}for(me=fe-1,ue++;++me<=ue;)be===void 0?me!==ue&&he[me][1].type!=="lineEnding"&&(be=me):(me===ue||he[me][1].type==="lineEnding")&&(he[be][1].type="mathTextData",me!==be+2&&(he[be][1].end=he[me-1][1].end,he.splice(be+2,me-be-2),ue-=me-be-2,me=be+2),be=void 0);return he}function Dt(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fe(he){return{flow:{36:ze},text:{36:St(he)}}}const te={};function ee(he){const ue=this,fe=he||te,me=ue.data(),be=me.micromarkExtensions||(me.micromarkExtensions=[]),Ae=me.fromMarkdownExtensions||(me.fromMarkdownExtensions=[]),De=me.toMarkdownExtensions||(me.toMarkdownExtensions=[]);be.push(Fe(fe)),Ae.push(Ie()),De.push(ke(fe))}},16722:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return st}});const oe=Qe=>typeof Qe=="object"&&Qe!=null&&Qe.nodeType===1,Pe=(Qe,Ue)=>(!Ue||Qe!=="hidden")&&Qe!=="visible"&&Qe!=="clip",Ie=(Qe,Ue)=>{if(Qe.clientHeight<Qe.scrollHeight||Qe.clientWidth<Qe.scrollWidth){const St=getComputedStyle(Qe,null);return Pe(St.overflowY,Ue)||Pe(St.overflowX,Ue)||($e=>{const Dt=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(te){return null}})($e);return!!Dt&&(Dt.clientHeight<$e.scrollHeight||Dt.clientWidth<$e.scrollWidth)})(Qe)}return!1},ke=(Qe,Ue,St,$e,Dt,Fe,te,ee)=>Fe<Qe&&te>Ue||Fe>Qe&&te<Ue?0:Fe<=Qe&&ee<=St||te>=Ue&&ee>=St?Fe-Qe-$e:te>Ue&&ee<St||Fe<Qe&&ee>St?te-Ue+Dt:0,Ve=Qe=>{const Ue=Qe.parentElement;return Ue==null?Qe.getRootNode().host||null:Ue},Te=(Qe,Ue)=>{var St,$e,Dt,Fe;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:he,boundary:ue,skipOverflowHiddenElements:fe}=Ue,me=typeof ue=="function"?ue:sn=>sn!==ue;if(!oe(Qe))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Ae=[];let De=Qe;for(;oe(De)&&me(De);){if(De=Ve(De),De===be){Ae.push(De);break}De!=null&&De===document.body&&Ie(De)&&!Ie(document.documentElement)||De!=null&&Ie(De,fe)&&Ae.push(De)}const We=($e=(St=window.visualViewport)==null?void 0:St.width)!=null?$e:innerWidth,nt=(Fe=(Dt=window.visualViewport)==null?void 0:Dt.height)!=null?Fe:innerHeight,{scrollX:qe,scrollY:ot}=window,{height:mt,width:at,top:vt,right:wt,bottom:At,left:Ht}=Qe.getBoundingClientRect(),{top:Qt,right:Zt,bottom:ln,left:Nt}=(sn=>{const It=window.getComputedStyle(sn);return{top:parseFloat(It.scrollMarginTop)||0,right:parseFloat(It.scrollMarginRight)||0,bottom:parseFloat(It.scrollMarginBottom)||0,left:parseFloat(It.scrollMarginLeft)||0}})(Qe);let gt=ee==="start"||ee==="nearest"?vt-Qt:ee==="end"?At+ln:vt+mt/2-Qt+ln,ct=he==="center"?Ht+at/2-Nt+Zt:he==="end"?wt+Zt:Ht-Nt;const Jt=[];for(let sn=0;sn<Ae.length;sn++){const It=Ae[sn],{height:wn,width:bn,top:_n,right:Xt,bottom:zn,left:Ot}=It.getBoundingClientRect();if(te==="if-needed"&&vt>=0&&Ht>=0&&At<=nt&&wt<=We&&(It===be&&!Ie(It)||vt>=_n&&At<=zn&&Ht>=Ot&&wt<=Xt))return Jt;const jn=getComputedStyle(It),cr=parseInt(jn.borderLeftWidth,10),it=parseInt(jn.borderTopWidth,10),_e=parseInt(jn.borderRightWidth,10),Re=parseInt(jn.borderBottomWidth,10);let Xe=0,lt=0;const Be="offsetWidth"in It?It.offsetWidth-It.clientWidth-cr-_e:0,bt="offsetHeight"in It?It.offsetHeight-It.clientHeight-it-Re:0,Wt="offsetWidth"in It?It.offsetWidth===0?0:bn/It.offsetWidth:0,yn="offsetHeight"in It?It.offsetHeight===0?0:wn/It.offsetHeight:0;if(be===It)Xe=ee==="start"?gt:ee==="end"?gt-nt:ee==="nearest"?ke(ot,ot+nt,nt,it,Re,ot+gt,ot+gt+mt,mt):gt-nt/2,lt=he==="start"?ct:he==="center"?ct-We/2:he==="end"?ct-We:ke(qe,qe+We,We,cr,_e,qe+ct,qe+ct+at,at),Xe=Math.max(0,Xe+ot),lt=Math.max(0,lt+qe);else{Xe=ee==="start"?gt-_n-it:ee==="end"?gt-zn+Re+bt:ee==="nearest"?ke(_n,zn,wn,it,Re+bt,gt,gt+mt,mt):gt-(_n+wn/2)+bt/2,lt=he==="start"?ct-Ot-cr:he==="center"?ct-(Ot+bn/2)+Be/2:he==="end"?ct-Xt+_e+Be:ke(Ot,Xt,bn,cr,_e+Be,ct,ct+at,at);const{scrollLeft:On,scrollTop:Pt}=It;Xe=yn===0?0:Math.max(0,Math.min(Pt+Xe/yn,It.scrollHeight-wn/yn+bt)),lt=Wt===0?0:Math.max(0,Math.min(On+lt/Wt,It.scrollWidth-bn/Wt+Be)),gt+=Pt-Xe,ct+=On-lt}Jt.push({el:It,top:Xe,left:lt})}return Jt},ze=Qe=>Qe===!1?{block:"end",inline:"nearest"}:(Ue=>Ue===Object(Ue)&&Object.keys(Ue).length!==0)(Qe)?Qe:{block:"start",inline:"nearest"};function st(Qe,Ue){if(!Qe.isConnected||!(Dt=>{let Fe=Dt;for(;Fe&&Fe.parentNode;){if(Fe.parentNode===document)return!0;Fe=Fe.parentNode instanceof ShadowRoot?Fe.parentNode.host:Fe.parentNode}return!1})(Qe))return;const St=(Dt=>{const Fe=window.getComputedStyle(Dt);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Qe);if((Dt=>typeof Dt=="object"&&typeof Dt.behavior=="function")(Ue))return Ue.behavior(Te(Qe,Ue));const $e=typeof Ue=="boolean"||Ue==null?void 0:Ue.behavior;for(const{el:Dt,top:Fe,left:te}of Te(Qe,ze(Ue))){const ee=Fe-St.top+St.bottom,he=te-St.left+St.right;Dt.scroll({top:ee,left:he,behavior:$e})}}},71523:function(Ze,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Pe},Q:function(){return oe}});function oe(Ie){const ke=String(Ie||"").trim();return ke?ke.split(/[ \t\n\r\f]+/g):[]}function Pe(Ie){return Ie.join(" ").trim()}},10502:function(Ze,Ee,ae){"use strict";ae.d(Ee,{O:function(){return Pe}});const oe=function(Qe,Ue,St,$e,Dt){const Fe=Pe(Ue);if(St!=null&&(typeof St!="number"||St<0||St===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if($e!=null&&(!oe($e)||!$e.children))throw new Error("Expected parent node");if($e==null!=(St==null))throw new Error("Expected both parent and index");return st(Qe)?Fe.call(Dt,Qe,St,$e):!1},Pe=function(Qe){if(Qe==null)return ze;if(typeof Qe=="function")return Te(Qe);if(typeof Qe=="object")return Array.isArray(Qe)?Ie(Qe):ke(Qe);if(typeof Qe=="string")return Ve(Qe);throw new Error("Expected function, string, or object as test")};function Ie(Qe){const Ue=[];let St=-1;for(;++St<Qe.length;)Ue[St]=Pe(Qe[St]);return Te($e);function $e(...Dt){let Fe=-1;for(;++Fe<Ue.length;)if(Ue[Fe].apply(this,Dt))return!0;return!1}}function ke(Qe){const Ue=Qe;return Te(St);function St($e){const Dt=$e;let Fe;for(Fe in Qe)if(Dt[Fe]!==Ue[Fe])return!1;return!0}}function Ve(Qe){return Te(Ue);function Ue(St){return St&&St.type===Qe}}function Te(Qe){return Ue;function Ue(St,$e,Dt){return!!(st(St)&&Qe.call(this,St,typeof $e=="number"?$e:void 0,Dt||void 0))}}function ze(){return!0}function st(Qe){return Qe!==null&&typeof Qe=="object"&&"type"in Qe}},17970:function(Ze,Ee,ae){"use strict";ae.d(Ee,{FK:function(){return ke},Pk:function(){return Pe},rb:function(){return oe}});const oe=Ie("end"),Pe=Ie("start");function Ie(Ve){return Te;function Te(ze){const st=ze&&ze.position&&ze.position[Ve]||{};if(typeof st.line=="number"&&st.line>0&&typeof st.column=="number"&&st.column>0)return{line:st.line,column:st.column,offset:typeof st.offset=="number"&&st.offset>-1?st.offset:void 0}}}function ke(Ve){const Te=Pe(Ve),ze=oe(Ve);if(Te&&ze)return{start:Te,end:ze}}},2348:function(Ze,Ee,ae){"use strict";ae.d(Ee,{AM:function(){return Te},S4:function(){return ze}});var oe=ae(10502);function Pe(Qe){return Qe}const Ie=[],ke=!0,Ve=!1,Te="skip";function ze(Qe,Ue,St,$e){let Dt;typeof Ue=="function"&&typeof St!="function"?($e=St,St=Ue):Dt=Ue;const Fe=(0,oe.O)(Dt),te=$e?-1:1;ee(Qe,void 0,[])();function ee(he,ue,fe){const me=he&&typeof he=="object"?he:{};if(typeof me.type=="string"){const Ae=typeof me.tagName=="string"?me.tagName:typeof me.name=="string"?me.name:void 0;Object.defineProperty(be,"name",{value:"node ("+(he.type+(Ae?"<"+Ae+">":""))+")"})}return be;function be(){let Ae=Ie,De,We,nt;if((!Ue||Fe(he,ue,fe[fe.length-1]||void 0))&&(Ae=st(St(he,fe)),Ae[0]===Ve))return Ae;if("children"in he&&he.children){const qe=he;if(qe.children&&Ae[0]!==Te)for(We=($e?qe.children.length:-1)+te,nt=fe.concat(qe);We>-1&&We<qe.children.length;){const ot=qe.children[We];if(De=ee(ot,We,nt)(),De[0]===Ve)return De;We=typeof De[1]=="number"?De[1]:We+te}}return Ae}}}function st(Qe){return Array.isArray(Qe)?Qe:typeof Qe=="number"?[ke,Qe]:Qe==null?Ie:[Qe]}},10528:function(Ze,Ee,ae){"use strict";ae.d(Ee,{Vn:function(){return Pe}});var oe=ae(2348);function Pe(Ie,ke,Ve,Te){let ze,st,Qe;typeof ke=="function"&&typeof Ve!="function"?(st=void 0,Qe=ke,ze=Ve):(st=ke,Qe=Ve,ze=Te),(0,oe.S4)(Ie,st,Ue,ze);function Ue(St,$e){const Dt=$e[$e.length-1],Fe=Dt?Dt.children.indexOf(St):void 0;return Qe(St,Fe,Dt)}}},43309:function(Ze,Ee,ae){"use strict";ae.d(Ee,{t:function(){return oe}});const oe={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(Ze){"use strict";Ze.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(Ze){"use strict";Ze.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"}')}}]);
}());