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/6679.1794c93e.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=(He,Ee,ae)=>Ee in He?GE(He,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):He[Ee]=ae,xa=(He,Ee)=>{for(var ae in Ee||(Ee={}))nE.call(Ee,ae)&&tE(He,ae,Ee[ae]);if(Pv)for(var ae of Pv(Ee))rE.call(Ee,ae)&&tE(He,ae,Ee[ae]);return He},Zp=(He,Ee)=>jE(He,VE(Ee));var iE=(He,Ee)=>{var ae={};for(var oe in He)nE.call(He,oe)&&Ee.indexOf(oe)<0&&(ae[oe]=He[oe]);if(He!=null&&Pv)for(var oe of Pv(He))Ee.indexOf(oe)<0&&rE.call(He,oe)&&(ae[oe]=He[oe]);return ae};var sS=(He,Ee,ae)=>new Promise((oe,Ce)=>{var ke=Te=>{try{je(ae.next(Te))}catch(Ge){Ce(Ge)}},Ie=Te=>{try{je(ae.throw(Te))}catch(Ge){Ce(Ge)}},je=Te=>Te.done?oe(Te.value):Promise.resolve(Te.value).then(ke,Ie);je((ae=ae.apply(He,Ee)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[6679],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(He,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"}},8423:function(He,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"}},2397:function(He,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"}},57149:function(He,Ee,ae){"use strict";var oe=ae(59301),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(Qe,Ue,mt)=>Ue in Qe?Ce(Qe,Ue,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Qe[Ue]=mt,Ge=(Qe,Ue)=>{for(var mt in Ue||(Ue={}))Ie.call(Ue,mt)&&Te(Qe,mt,Ue[mt]);if(ke)for(var mt of ke(Ue))je.call(Ue,mt)&&Te(Qe,mt,Ue[mt]);return Qe};const lt=Qe=>React.createElement("svg",Ge({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+"},61250:function(He,Ee,ae){"use strict";var oe=ae(59301),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(Qe,Ue,mt)=>Ue in Qe?Ce(Qe,Ue,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Qe[Ue]=mt,Ge=(Qe,Ue)=>{for(var mt in Ue||(Ue={}))Ie.call(Ue,mt)&&Te(Qe,mt,Ue[mt]);if(ke)for(var mt of ke(Ue))je.call(Ue,mt)&&Te(Qe,mt,Ue[mt]);return Qe};const lt=Qe=>React.createElement("svg",Ge({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=="},63720:function(){"use strict";function He(Oe,te,ee,he){ee===void 0&&(ee=0),he===void 0&&(he=1/0),this._name=Oe,this._defaultValue=te,this._minimum=ee,this._maximum=he}Object.defineProperty(He.prototype,"name",{get:function(){return this._name},set:function(Oe){if(typeof Oe!="string"||Oe==="")throw new Error("Shape name must be a valid string.");this._name=Oe}}),Object.defineProperty(He.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Oe){if(typeof Oe!="number"||isNaN(Oe))throw new Error("The default value must be a real number, not: "+Oe);this._defaultValue=Oe}}),Object.defineProperty(He.prototype,"minimum",{get:function(){return this._minimum},set:function(Oe){if(typeof Oe!="number"||isNaN(Oe))throw new Error("Minimum must be a real number, not: "+Oe);this._minimum=Oe}}),Object.defineProperty(He.prototype,"maximum",{get:function(){return this._maximum},set:function(Oe){if(typeof Oe!="number"||isNaN(Oe))throw new Error("Maximum must be a real number, not: "+Oe);this._maximum=Oe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Oe,te){var ee=go.Shape._FigureParameters[Oe];return ee?ee[te]:null},go.Shape.setFigureParameter=function(Oe,te,ee){if(!(ee instanceof He))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[Oe];he||(he=[],go.Shape._FigureParameters[Oe]=he),he[te]=ee};var Ee=[];function ae(Oe,te){var ee=Ee.pop();return ee===void 0?new go.Point(Oe,te):(ee.x=Oe,ee.y=te,ee)}function oe(){var Oe=Ee.pop();return Oe===void 0?new go.Point:Oe}function Ce(Oe){Ee.push(Oe)}function ke(Oe,te,ee,he,ue,fe,me,be,Ae){Ae||(Ae=new go.Point);var De=Oe-ee,Ye=ue-me,rt=NaN,$e=NaN;if(De===0)if(Ye===0)Oe===ee&&(rt=Oe,$e=te);else{var at=(fe-be)/Ye,ht=fe-at*ue;rt=Oe,$e=at*rt+ht}else if(Ye===0){var ot=(te-he)/De,vt=te-ot*Oe;rt=ue,$e=ot*rt+vt}else{var ot=(te-he)/De,at=(fe-be)/Ye,vt=te-ot*Oe,ht=fe-at*ue;rt=(ht-vt)/(ot-at),$e=ot*rt+vt}return Ae.x=rt,Ae.y=$e,Ae}function Ie(Oe,te,ee,he,ue,fe,me,be,Ae,De,Ye,rt,$e,at){var ht=1-Ae,ot=Ae,vt=Oe*ht+ee*ot,xt=te*ht+he*ot,Tt=ee*ht+ue*ot,_t=he*ht+fe*ot,Jt=ue*ht+me*ot,Zt=fe*ht+be*ot,vn=vt*ht+Tt*ot,bt=xt*ht+_t*ot,ft=Tt*ht+Jt*ot,ct=_t*ht+Zt*ot,qt=vn*ht+ft*ot,dn=bt*ht+ct*ot;De.x=vt,De.y=xt,Ye.x=vn,Ye.y=bt,rt.x=qt,rt.y=dn,$e.x=ft,$e.y=ct,at.x=Jt,at.y=Zt}var je=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),Ge=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new He("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*Ge,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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=je,ue.spot2=Te,ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Line1",function(Oe,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(Oe,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(Oe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Ge*te,0,te,(1-Ge)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Oe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,0,Ge*ee,(1-Ge)*te,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Oe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,Ge*ee,Ge*te,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Oe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-Ge)*te,0,0,(1-Ge)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Oe,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(Oe,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(Oe,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(Oe,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 He("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Oe,te,ee){var he=Oe?Oe.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 He("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Oe,te,ee){var he=Oe?Oe.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 He("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Oe,te,ee){var he=Oe?Oe.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 He("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Oe,te,ee){var he=Oe?Oe.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 He("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Oe,te,ee){var he=Oe?Oe.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 lt=[];function Qe(){var Oe=lt.pop();return Oe===void 0?[]:Oe}function Ue(Oe){Oe.length=0,lt.push(Oe)}function mt(Oe){for(var te=Qe(),ee=.5,he=.5,ue=Math.PI*1.5,fe=0,me=0;me<Oe;me++)fe=2*Math.PI/Oe*me+ue,te[me]=new go.Point(he+ee*Math.cos(fe),he+ee*Math.sin(fe));return te.push(te[0]),te}function Je(Oe){var te=It(Oe),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 It(Oe){for(var te=mt(Oe),ee=Qe(),he=Math.floor(te.length/2),ue=te.length-1,fe=Oe%2===0?2:1,me=0;me<ue;me++){var be=te[me],Ae=te[me+1],De=te[(he+me-1)%ue],Ye=te[(he+me+fe)%ue];ee[me*2]=be,ee[me*2+1]=ke(be.x,be.y,De.x,De.y,Ae.x,Ae.y,Ye.x,Ye.y,new go.Point)}return ee[ee.length]=ee[0],Ue(te),ee}go.Shape.defineFigureGenerator("Pentagon",function(Oe,te,ee){var he=mt(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(Oe,te,ee){var he=mt(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(Oe,te,ee){var he=mt(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(Oe,te,ee){var he=mt(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(Oe,te,ee){var he=mt(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(Oe,te,ee){var he=mt(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(Oe,te,ee){var he=mt(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(Oe,te,ee){var he=It(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(Oe,te,ee){var he=It(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(Oe,te,ee){var he=It(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(Oe,te,ee){var he=It(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(Oe,te,ee){var he=It(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(Oe,te,ee){var he=It(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(Oe,te,ee){var he=Je(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(Oe,te,ee){var he=Je(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(Oe,te,ee){var he=Je(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(Oe,te,ee){var he=Je(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(Oe,te,ee){var he=Je(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(Oe,te,ee){var he=Je(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 He("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new He("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN,ue=Oe?Oe.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 He("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Oe,te,ee){var he=Oe?Oe.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=je,fe.spot2=Te,fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("Cloud",function(Oe,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(Oe,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 He("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new He("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN,ue=Oe?Oe.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(Oe,te,ee){var he=Ge/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 He("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Oe,te,ee){var he=Oe?Oe.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 He("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Oe,te,ee){var he=Oe?Oe.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 He("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Oe,te,ee){var he=Oe?Oe.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,Ye=new go.PathFigure(Ae,0,!0);return ue.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,fe,.2*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,te-Ae,0)),Ye.add(new go.PathSegment(go.PathSegment.Line,te,De)),Ye.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),Ye.add(new go.PathSegment(go.PathSegment.Line,te,ee-De)),Ye.add(new go.PathSegment(go.PathSegment.Line,te-Ae,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,fe,.8*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,Ae,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,ee-De)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,De).close()),ue}}),go.Shape.setFigureParameter("ThinX",0,new He("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Oe,te,ee){var he=Oe?Oe.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 He("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Oe,te,ee){var he=Oe?Oe.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 He("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Oe,te,ee){var he=Oe?Oe.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(Oe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,Ge*te,0,te,(.5-Ge/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,(.5+Ge/2)*ee,Ge*te,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Oe,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(Oe,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(Oe,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(Oe,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*Ge;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*Ge,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*Ge,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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=Ge*.4;var De=oe(),Ye=oe(),rt=oe(),$e=oe();Ie(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.42,De,Ye,rt,$e,$e);var at=oe(),ht=oe(),ot=oe();Ie(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.58,$e,$e,ot,at,ht);var vt=oe(),xt=oe(),Tt=oe();Ie(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.42,vt,xt,Tt,$e,$e);var _t=oe(),Jt=oe(),Zt=oe();return Ie(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.58,$e,$e,Zt,_t,Jt),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,_t.x*te,_t.y*ee,Jt.x*te,Jt.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,rt.x*te,rt.y*ee,De.x*te,De.y*ee,Ye.x*te,Ye.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,Tt.x*te,Tt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,ot.x*te,ot.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,at.x*te,at.y*ee,ht.x*te,ht.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,Tt.x*te,Tt.y*ee,vt.x*te,vt.y*ee,xt.x*te,xt.y*ee).close()),Ce(De),Ce(Ye),Ce(rt),Ce($e),Ce(at),Ce(ht),Ce(ot),Ce(vt),Ce(xt),Ce(Tt),Ce(_t),Ce(Jt),Ce(Zt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Oe,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 He("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Oe,te,ee){var he=Oe?Oe.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.4,fe=.4,me=.5,be=.5,Ae=oe(),De=oe(),Ye=oe(),rt=oe(),$e=new go.PathFigure((me-fe)*te,be*ee,!1);he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),Ie(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.44,Ye,rt,De,Ae,Ae),$e.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,Ye.x*te,Ye.y*ee,rt.x*te,rt.y*ee));var at=ae(De.x,De.y);Ie(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.56,Ae,Ae,De,Ye,rt);var ht=ae(De.x,De.y);$e.add(new go.PathSegment(go.PathSegment.Line,(at.x*.1+.95*.9)*te,at.y*.1*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.85*te,at.y*.1*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),$e.add(new go.PathSegment(go.PathSegment.Line,te,0)),$e.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,(ht.x*.1+.9)*te,.15*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,(ht.x*.1+.9)*te,(ht.y*.1+.05*.9)*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,ht.x*te,ht.y*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,Ye.x*te,Ye.y*ee,rt.x*te,rt.y*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),$e.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=Ge*.35;var ot=new go.PathFigure(me*te,(be-fe)*ee,!1);he.add(ot),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)),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)),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));var vt=new go.PathFigure((me-fe)*te,be*ee,!1);return he.add(vt),Ce(Ae),Ce(De),Ce(Ye),Ce(rt),Ce(at),Ce(ht),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(Oe,te,ee){var he=new go.Geometry,ue=.375,fe=0,me=-.125,be=ue*Ge,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*Ge;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(Oe,te,ee){var he=Oe?Oe.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(Oe,te,ee){var he=Oe?Oe.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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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 He("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new He("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=Oe?Oe.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 Ye=ke(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(Ye.x,Ye.y),Ce(Ye),Ae}),go.Shape.setFigureParameter("Arrow2",0,new He("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new He("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var ue=Oe?Oe.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 Ye=ke(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(Ye.x,Ye.y),Ce(Ye),Ae}),go.Shape.defineFigureGenerator("Chevron",function(Oe,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(Oe,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 He("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Oe,te,ee){var he=Oe?Oe.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=ke(0,.5,.3,0,0,ue/ee,.1,ue/ee,oe());return me.spot1=new go.Spot(Ae.x,Ae.y),Ae=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,Ae),me.spot2=new go.Spot(Ae.x,Ae.y),Ce(Ae),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new He("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new He("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Oe?Oe.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,Ye=new go.PathFigure(te,.5*ee,!0);De.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae)),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),Ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ae)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,be)),Ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,be).close());var rt=ke(0,.5,.3,be/ee,0,fe/ee,1,fe/ee,oe());return De.spot1=new go.Spot(rt.x,rt.y),rt=ke(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,rt),De.spot2=new go.Spot(rt.x,rt.y),Ce(rt),De}),go.Shape.setFigureParameter("IBeamArrow",0,new He("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Oe,te,ee){var he=Oe?Oe.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=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Ce(Ae),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new He("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new He("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Oe?Oe.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,Ye=new go.PathFigure(te,.5*ee,!0);De.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae)),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ae)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,be)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,be)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,be).close()),De.spot1=new go.Spot(0,fe/ee);var rt=ke(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,oe());return De.spot2=new go.Spot(rt.x,rt.y),Ce(rt),De}),go.Shape.setFigureParameter("Pointer",0,new He("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Oe,te,ee){var he=Oe?Oe.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=ke(.2,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Ce(me),ue}),go.Shape.setFigureParameter("RoundedPointer",0,new He("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Oe,te,ee){var he=Oe?Oe.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=ke(0,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Ce(me),ue}),go.Shape.setFigureParameter("SplitEndArrow",0,new He("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Oe,te,ee){var he=Oe?Oe.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=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Ce(Ae),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new He("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Oe,te,ee){var he=Oe?Oe.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=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Ce(Ae),me}),go.Shape.setFigureParameter("SquareArrow",0,new He("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Oe,te,ee){var he=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.5,fe=Ge*.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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=Ge*.5,me=new go.PathFigure(0,he,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ge*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+fe)*te,0,1*te,Ge*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-Ge*he,(.5+fe)*te,1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,1*ee,0,ee-Ge*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-Ge*he,(.5+fe)*te,2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-fe)*te,2*he,0,2*he-Ge*he)),ue.spot1=new go.Spot(0,0,0,2*he),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Cylinder2",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=Ge*.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,Ge*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+fe)*te,0,te,Ge*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-Ge*he,(.5+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,ee,0,ee-Ge*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-Ge*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-Ge*he)),ue.spot1=new go.Spot(0,0),ue.spot2=new go.Spot(1,1,0,-2*he),ue}),go.Shape.defineFigureGenerator("Cylinder3",function(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=Ge*.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-Ge*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-Ge*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Ge*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,Ge*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+Ge*he,0,2*he,(.5-fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,ee,2*he,(.5+fe)*ee,he+Ge*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(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=Ge*.5,me=new go.PathFigure(te-he,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-Ge*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-Ge*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Ge*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,Ge*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-Ge*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-Ge*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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=.2,fe=.1,me=Ge*ue,be=Ge*fe,Ae=.5,De=.1,Ye=new go.PathFigure(Ae*te,(De+fe)*ee,!0);he.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ue)*te,De*ee,(Ae-me)*te,(De+fe)*ee,(Ae-ue)*te,(De+be)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-fe)*ee,(Ae-ue)*te,(De-be)*ee,(Ae-me)*te,(De-fe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ue)*te,De*ee,(Ae+me)*te,(De-fe)*ee,(Ae+ue)*te,(De-be)*ee)),Ye.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 rt=.05,$e=Ge*rt;Ae=.05,De=.25;var at=new go.PathFigure(.5*te,.2*ee,!0);return he.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),Ae=.95,De=.25,at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+rt)*te,De*ee,(Ae+$e)*te,(De-rt)*ee,(Ae+rt)*te,(De-$e)*ee)),at.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),rt=.025,$e=Ge*rt,Ae=.825,De=.35,at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-rt)*ee,(Ae+rt)*te,(De-$e)*ee,(Ae+$e)*te,(De-rt)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-rt)*te,De*ee,(Ae-$e)*te,(De-rt)*ee,(Ae-rt)*te,(De-$e)*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),at.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),at.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),rt=.05,$e=Ge*rt,Ae=.5,De=.7,at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-rt)*ee,(Ae+rt)*te,(De-$e)*ee,(Ae+$e)*te,(De-rt)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-rt)*te,De*ee,(Ae-$e)*te,(De-rt)*ee,(Ae-rt)*te,(De-$e)*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),at.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),at.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),rt=.025,$e=Ge*rt,Ae=.175,De=.35,at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-rt)*ee,(Ae+rt)*te,(De-$e)*ee,(Ae+$e)*te,(De-rt)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-rt)*te,De*ee,(Ae-$e)*te,(De-rt)*ee,(Ae-rt)*te,(De-$e)*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),at.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),rt=.05,$e=Ge*rt,Ae=.05,De=.25,at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-rt)*ee,(Ae-rt)*te,(De-$e)*ee,(Ae-$e)*te,(De-rt)*ee)),at.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 He("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Oe,te,ee){var he=Oe?Oe.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.5,fe=Ge*.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.5,fe=Ge*.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.parameter1:NaN;isNaN(ue)?ue=.2:ue<.15&&(ue=.15);var fe=Ge*.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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.parameter1:NaN,fe=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=1/Math.SQRT2,fe=(1-1/Math.SQRT2)/2,me=Ge*.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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.parameter1:NaN,fe=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.parameter1:NaN,fe=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Oe?Oe.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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.5,fe=Ge*.4,me=Ge*.1,be=.1,Ae=.9,De=.5,Ye=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,.8*te,(.5+fe)*ee,(.4+ue)*te,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ye.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(.4+ue)*te,0,.8*te,(.5-fe)*ee));var rt=new go.PathFigure((Ae+be)*te,De*ee,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te,De*ee,(Ae-me)*te,(De+be)*ee,(Ae-be)*te,(De+me)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee)),rt.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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=Ge*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=Ge*.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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=Ge*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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=Ge*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=Ge*.1,me=.9,be=.5;var Ye=new go.PathFigure((me-ue)*te,be*ee,!0);return he.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ye.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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=Ge*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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=te,fe=ee;te=te*.38,ee=ee*.6;var me=Ge*.8,be=.8,Ae=0,De=.5,Ye=(ue-te)/2,rt=(fe-ee)/2,$e=new go.PathFigure(Ae*te+Ye,(De+be)*ee+rt,!0);he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Ye,De*ee+rt,(Ae-me)*te+Ye,(De+be)*ee+rt,(Ae-be)*te+Ye,(De+me)*ee+rt)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+rt,(Ae-be)*te+Ye,(De-me)*ee+rt,(Ae-me)*te+Ye,(De-be)*ee+rt)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+Ye,De*ee+rt,Ae*te+Ye,(De-be)*ee+rt,(Ae-be+me*.5)*te+Ye,(De-me)*ee+rt)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+rt,(Ae-be+me*.5)*te+Ye,(De+me)*ee+rt,Ae*te+Ye,(De+be)*ee+rt).close()),me=Ge*.4,be=.4,Ae=.2,De=.5;var at=new go.PathFigure(Ae*te+Ye,(De+be)*ee+rt,!0);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Ye,De*ee+rt,(Ae-me)*te+Ye,(De+be)*ee+rt,(Ae-be)*te+Ye,(De+me)*ee+rt)),at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+rt,(Ae-be)*te+Ye,(De-me)*ee+rt,(Ae-me)*te+Ye,(De-be)*ee+rt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+Ye,De*ee+rt,Ae*te+Ye,(De-be)*ee+rt,(Ae-be+me*.5)*te+Ye,(De-me)*ee+rt)),at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+rt,(Ae-be+me*.5)*te+Ye,(De+me)*ee+rt,Ae*te+Ye,(De+be)*ee+rt).close()),me=Ge*.2,be=.2,Ae=.5,De=.5;var ht=new go.PathFigure((Ae-be)*te+Ye,De*ee+rt,!0);he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+rt,(Ae-be)*te+Ye,(De-me)*ee+rt,(Ae-me)*te+Ye,(De-be)*ee+rt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Ye,De*ee+rt,(Ae+me)*te+Ye,(De-be)*ee+rt,(Ae+be)*te+Ye,(De-me)*ee+rt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+rt,(Ae+be)*te+Ye,(De+me)*ee+rt,(Ae+me)*te+Ye,(De+be)*ee+rt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Ye,De*ee+rt,(Ae-me)*te+Ye,(De+be)*ee+rt,(Ae-be)*te+Ye,(De+me)*ee+rt)),me=Ge*.4,be=.4,Ae=.8,De=.5;var ot=new go.PathFigure(Ae*te+Ye,(De-be)*ee+rt,!0);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Ye,De*ee+rt,(Ae+me)*te+Ye,(De-be)*ee+rt,(Ae+be)*te+Ye,(De-me)*ee+rt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+rt,(Ae+be)*te+Ye,(De+me)*ee+rt,(Ae+me)*te+Ye,(De+be)*ee+rt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+Ye,De*ee+rt,Ae*te+Ye,(De+be)*ee+rt,(Ae+be-me*.5)*te+Ye,(De+me)*ee+rt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+rt,(Ae+be-me*.5)*te+Ye,(De-me)*ee+rt,Ae*te+Ye,(De-be)*ee+rt).close()),me=Ge*.8,be=.8,Ae=1,De=.5;var vt=new go.PathFigure(Ae*te+Ye,(De-be)*ee+rt,!0);return he.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Ye,De*ee+rt,(Ae+me)*te+Ye,(De-be)*ee+rt,(Ae+be)*te+Ye,(De-me)*ee+rt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+rt,(Ae+be)*te+Ye,(De+me)*ee+rt,(Ae+me)*te+Ye,(De+be)*ee+rt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+Ye,De*ee+rt,Ae*te+Ye,(De+be)*ee+rt,(Ae+be-me*.5)*te+Ye,(De+me)*ee+rt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+rt,(Ae+be-me*.5)*te+Ye,(De-me)*ee+rt,Ae*te+Ye,(De-be)*ee+rt).close()),he}),go.Shape.defineFigureGenerator("Email",function(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=Ge*.4,fe=.4,me=.5,be=.5,Ae=oe(),De=oe(),Ye=oe(),rt=oe();Ie(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,De,Ye,rt);var $e=ae(De.x,De.y),at=new go.PathFigure(De.x*te,De.y*ee,!0);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,Ye.x*te,Ye.y*ee,rt.x*te,rt.y*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)),Ie(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,Ye,rt,De,Ae,Ae),at.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,Ye.x*te,Ye.y*ee,rt.x*te,rt.y*ee)),ue=Ge*.3,fe=.3,Ie(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,Ye,rt,De,Ae,Ae),at.add(new go.PathSegment(go.PathSegment.Line,De.x*te,De.y*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,rt.x*te,rt.y*ee,Ye.x*te,Ye.y*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)),Ie(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,De,Ye,rt),at.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,rt.x*te,rt.y*ee,Ye.x*te,Ye.y*ee).close());var at=new go.PathFigure(.45*te,0,!0);return he.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Ce(Ae),Ce(De),Ce(Ye),Ce(rt),Ce($e),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Oe,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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=0,me=0,be=ue*Ge,Ae=.4*Math.SQRT2/2+.5,De=.5-.5*Math.SQRT2/2,Ye=1,rt=.5,$e=.5,at=0,ht=new go.PathFigure(Ae*te,(1-De)*ee,!1);return he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,rt*ee,Ye*te,.7*ee,Ye*te,rt*ee)),ht.add(new go.PathSegment(go.PathSegment.Bezier,($e+fe)*te,(at+fe)*ee,(.5+ue+fe)*te,(.5-be+fe)*ee,(.5+be+fe)*te,(.5-ue+fe)*ee)),ht.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)),ht.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)),ht.add(new go.PathSegment(go.PathSegment.Move,(.25+fe)*te,.8*ee)),ht.add(new go.PathSegment(go.PathSegment.Line,(.35+fe)*te,.9*ee)),ht.add(new go.PathSegment(go.PathSegment.Line,(.2+fe)*te,.95*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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,Ye=4*(1-Math.cos(De))/(3*Math.sin(De)),rt=Ye*.5,$e=me,at=me,ht=Ye*$e,ot=Ye*at;fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-$e)*te,Ae*ee,(be-(ht+$e)/2)*te,(Ae+(at+ot)/2)*ee,(be-$e)*te,(Ae+ot)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Ae-at)*ee,(be-$e)*te,(Ae-ot)*ee,(be-ht)*te,(Ae-at)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+$e)*te,Ae*ee,(be+ht)*te,(Ae-at)*ee,(be+$e)*te,(Ae-ot)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(be+$e)*te,(Ae+ot)*ee,(be+(ht+$e)/2)*te,(Ae+(at+ot)/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 xt=new go.PathFigure(.8*te,ee,!1);return he.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=Ge*.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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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=Ge*.1,Ae=.2,De=.9,Ye=new go.PathFigure((Ae-me)*te,De*ee,!0);he.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+me)*te,De*ee,(Ae+be)*te,(De-me)*ee,(Ae+me)*te,(De-be)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee)),Ye.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=Ge*.1,Ae=.8,De=.9;var rt=new go.PathFigure((Ae-me)*te,De*ee,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+me)*te,De*ee,(Ae+be)*te,(De-me)*ee,(Ae+me)*te,(De-be)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee)),rt.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(Oe,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(Oe,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=Ge*.1,Ye=.1,rt=.9,$e=new go.PathFigure((Ye-Ae)*te,rt*ee,!0);he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(rt-Ae)*ee,(Ye-Ae)*te,(rt-De)*ee,(Ye-De)*te,(rt-Ae)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ae)*te,rt*ee,(Ye+De)*te,(rt-Ae)*ee,(Ye+Ae)*te,(rt-De)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(rt+Ae)*ee,(Ye+Ae)*te,(rt+De)*ee,(Ye+De)*te,(rt+Ae)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ae)*te,rt*ee,(Ye-De)*te,(rt+Ae)*ee,(Ye-Ae)*te,(rt+De)*ee)),Ae=.1,De=Ge*.1,Ye=.4,rt=.9;var at=new go.PathFigure((Ye-Ae)*te,rt*ee,!0);return he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(rt-Ae)*ee,(Ye-Ae)*te,(rt-De)*ee,(Ye-De)*te,(rt-Ae)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ae)*te,rt*ee,(Ye+De)*te,(rt-Ae)*ee,(Ye+Ae)*te,(rt-De)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(rt+Ae)*ee,(Ye+Ae)*te,(rt+De)*ee,(Ye+De)*te,(rt+Ae)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ae)*te,rt*ee,(Ye-De)*te,(rt+Ae)*ee,(Ye-Ae)*te,(rt+De)*ee)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Oe,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 Ye=.05,rt=Ge*.05,$e=.175,at=.95,be=new go.PathFigure(($e-Ye)*te,at*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at-Ye)*ee,($e-Ye)*te,(at-rt)*ee,($e-rt)*te,(at-Ye)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,($e+Ye)*te,at*ee,($e+rt)*te,(at-Ye)*ee,($e+Ye)*te,(at-rt)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at+Ye)*ee,($e+Ye)*te,(at+rt)*ee,($e+rt)*te,(at+Ye)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,($e-Ye)*te,at*ee,($e-rt)*te,(at+Ye)*ee,($e-Ye)*te,(at+rt)*ee));var Ye=.05,rt=Ge*.05,$e=.375,at=.95,Ae=new go.PathFigure(($e-Ye)*te,at*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at-Ye)*ee,($e-Ye)*te,(at-rt)*ee,($e-rt)*te,(at-Ye)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,($e+Ye)*te,at*ee,($e+rt)*te,(at-Ye)*ee,($e+Ye)*te,(at-rt)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at+Ye)*ee,($e+Ye)*te,(at+rt)*ee,($e+rt)*te,(at+Ye)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,($e-Ye)*te,at*ee,($e-rt)*te,(at+Ye)*ee,($e-Ye)*te,(at+rt)*ee));var Ye=.05,rt=Ge*.05,$e=.625,at=.95,De=new go.PathFigure(($e-Ye)*te,at*ee,!0);he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at-Ye)*ee,($e-Ye)*te,(at-rt)*ee,($e-rt)*te,(at-Ye)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,($e+Ye)*te,at*ee,($e+rt)*te,(at-Ye)*ee,($e+Ye)*te,(at-rt)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at+Ye)*ee,($e+Ye)*te,(at+rt)*ee,($e+rt)*te,(at+Ye)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,($e-Ye)*te,at*ee,($e-rt)*te,(at+Ye)*ee,($e-Ye)*te,(at+rt)*ee));var Ye=.05,rt=Ge*.05,$e=.825,at=.95,ht=new go.PathFigure(($e-Ye)*te,at*ee,!0);he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at-Ye)*ee,($e-Ye)*te,(at-rt)*ee,($e-rt)*te,(at-Ye)*ee)),ht.add(new go.PathSegment(go.PathSegment.Bezier,($e+Ye)*te,at*ee,($e+rt)*te,(at-Ye)*ee,($e+Ye)*te,(at-rt)*ee)),ht.add(new go.PathSegment(go.PathSegment.Bezier,$e*te,(at+Ye)*ee,($e+Ye)*te,(at+rt)*ee,($e+rt)*te,(at+Ye)*ee)),ht.add(new go.PathSegment(go.PathSegment.Bezier,($e-Ye)*te,at*ee,($e-rt)*te,(at+Ye)*ee,($e-Ye)*te,(at+rt)*ee).close());var ot=new go.PathFigure(0,ee,!1);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Oe,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=Ge*.05,De=.35,Ye=.775,rt=new go.PathFigure((De-be)*te,Ye*ee,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Ye-be)*ee,(De-be)*te,(Ye-Ae)*ee,(De-Ae)*te,(Ye-be)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(De+be)*te,Ye*ee,(De+Ae)*te,(Ye-be)*ee,(De+be)*te,(Ye-Ae)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Ye+be)*ee,(De+be)*te,(Ye+Ae)*ee,(De+Ae)*te,(Ye+be)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(De-be)*te,Ye*ee,(De-Ae)*te,(Ye+be)*ee,(De-be)*te,(Ye+Ae)*ee).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=.3,fe=Ge*.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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=Ge*.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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=.5,fe=Ge*.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=Ge*.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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=8,fe=ue*Ge,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(Oe,te,ee){var he=Oe?Oe.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*Ge,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(Oe,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(Oe,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(Oe,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(Oe,te,ee){var he=new go.Geometry,ue=15,fe=ue*Ge,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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(Oe,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")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var He={},Ee="5.0",ae={},oe=null,Ce=!1,ke=!1,Ie=null,je=!1,Te=null,Ge=null,lt=0;lt<arguments.length;lt++){var Qe=arguments[lt];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:Ie=Qe;break;case"object":typeof Qe.is3D!="undefined"?oe=Qe:ae=Qe;break;case"boolean":Ce=Qe,ke=!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&&!ke&&(Ce=!0)),Ie!==null&&ae.id===void 0&&(ae.id=Ie);var Ue="",mt="",Je=!1,It=null,Oe=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(kt){return parseFloat(kt)>4?parseFloat(kt):5};He.setHTML5Codebase=function(kt,bn){Ge=kt,ct(kt,bn)},He.setJavaCodebase=He.setJavaCodebaseVersion=He.isCompiledInstalled=He.setPreCompiledScriptPath=He.setPreCompiledResourcePath=function(){},He.setHTML5CodebaseVersion=function(kt,bn){var gn=parseFloat(kt);if(gn!==NaN&&gn<5){console.log("The GeoGebra HTML5 codebase version "+gn+" is deprecated. Using version latest instead.");return}Te=kt,ft(kt,bn)},He.getHTML5CodebaseVersion=function(){return Oe},He.getParameters=function(){return ae},He.setFontsCSSURL=function(kt){me=kt},He.setGiacJSURL=function(kt){},He.setJNLPFile=function(kt){Ue=kt},He.setJNLPBaseDir=function(kt){},He.inject=function(){function kt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var bn="auto",gn=ae.id,Zn,Gt=!1,Rt=0;Rt<arguments.length;Rt++){var tn=arguments[Rt];typeof tn=="string"?(tn=tn.toLowerCase(),tn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?bn=tn:gn=arguments[Rt]):typeof tn=="boolean"?Gt=tn:tn instanceof HTMLElement&&(Zn=tn)}zn();function zn(){if(!je){setTimeout(zn,200);return}bn=vn(bn);var Yn=Zn||document.getElementById(gn);if(!Yn){console.log("possibly bug on ajax loading? ");return}if(He.removeExistingApplet(Yn,!1),ae.width===void 0&&Yn.clientWidth&&(ae.width=Yn.clientWidth),ae.height===void 0&&Yn.clientHeight&&(ae.height=Yn.clientHeight),!(ae.width&&ae.height)&&bn==="html5"&&(delete ae.width,delete ae.height),It=bn,bn==="screenshot")xt(Yn,ae);else{var nt=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?nt=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(nt=(!De()||kt())&&Ye()),nt?(It="screenshot",_t(Yn,ae,Gt,bn)):vt(Yn,ae,Gt)}}};function De(){try{return window.self!==window.top}catch(kt){return!0}}function Ye(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}He.getViews=function(){return oe},He.isJavaInstalled=function(){return!1};var rt=function(kt){var bn=function(Rt){var tn=JSON.parse(Rt),zn=function(Be){return Be.type=="G"||Be.type=="E"},Yn=tn.elements?tn.elements.filter(zn)[0]:tn;if(!Yn||!Yn.url){gn();return}ae.fileName=Yn.url,$e(Yn.settings||{}),oe.is3D=!0;var nt="https://www.geogebra.org/images/";He.setPreviewImage(he||Yn.previewUrl,nt+"GeoGebra_loading.png",nt+"applet_play.png"),kt()},gn=function(){ae.onError&&ae.onError(),qt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},Zn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Gt="/materials/"+ae.material_id+"?scope=basic";at("https://"+Zn+"/api/proxy.php?path="+encodeURIComponent(Gt),bn,gn)};function $e(kt){var bn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(gn){kt[gn]=!!kt[gn]}),bn.forEach(function(gn){ae[gn]===void 0&&kt[gn]!==void 0&&(ae[gn]=kt[gn])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function at(kt,bn,gn){var Zn=new XMLHttpRequest;Zn.open("GET",kt),Zn.onload=function(){bn(Zn.responseText)},Zn.onerror=gn,Zn.send()}He.isHTML5Installed=function(){return!0},He.getLoadedAppletType=function(){return It},He.setPreviewImage=function(kt,bn,gn){he=kt,ue=bn,fe=gn},He.removeExistingApplet=function(kt,bn){var gn;typeof kt=="string"&&(kt=document.getElementById(kt)),It=null;var Zn=null;for(gn=0;gn<kt.childNodes.length;gn++){var Gt=kt.childNodes[gn],Rt=Gt.className;Rt==="applet_screenshot"?bn?(Gt.style.display="block",It="screenshot"):Gt.style.display="none":Rt!=="applet_scaler prerender"&&(kt.removeChild(Gt),Zn=Rt&&Rt.indexOf("appletParameters")!=-1?Gt.id:null,gn--)}var tn=ae.id!==void 0?ae.id:Zn,zn=window[tn];zn&&typeof zn.getBase64=="function"&&(zn.remove(),window[tn]=null)},He.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var kt=He.getAppletObject();return kt&&typeof kt.recalculateEnvironments=="function"?(kt.recalculateEnvironments(),!0):!1},He.startAnimation=function(){var kt=He.getAppletObject();return kt&&typeof kt.startAnimation=="function"?(kt.startAnimation(),!0):!1},He.stopAnimation=function(){var kt=He.getAppletObject();return kt&&typeof kt.stopAnimation=="function"?(kt.stopAnimation(),!0):!1},He.getAppletObject=function(){var kt=ae.id!==void 0?ae.id:"ggbApplet";return window[kt]},He.resize=function(){};var ht=function(kt,bn,gn){var Zn=document.createElement("param");Zn.setAttribute("name",bn),Zn.setAttribute("value",gn),kt.appendChild(Zn)},ot=function(kt){return kt&&kt!=="false"},vt=function(kt,bn,gn){Ae(Oe)<=4.2&&(gn=!0);var Zn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Oe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Zn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Gt=document.createElement("div");Gt.classList.add("appletParameters","notranslate");var Rt=bn.width,tn=bn.height;if(bn.disableAutoScale=bn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():bn.disableAutoScale,bn.width!==void 0)if(Ae(Oe)<=4.4)ot(bn.showToolBar)&&(bn.height-=7),ot(bn.showAlgebraInput)&&(bn.height-=37),bn.width<605&&ot(bn.showToolBar)&&(bn.width=605,Rt=605);else{var zn=100;(ot(bn.showToolBar)||ot(bn.showMenuBar))&&(bn.hasOwnProperty("customToolBar")&&(bn.customToolbar=bn.customToolBar),zn=ot(bn.showMenuBar)?245:155),Rt<zn&&(bn.width=zn,Rt=zn)}Gt.style.border="none",Gt.style.display="inline-block";for(var Yn in bn)bn.hasOwnProperty(Yn)&&Yn!=="appletOnLoad"&&Gt.setAttribute("data-param-"+Yn,bn[Yn]);me&&Gt.setAttribute("data-param-fontscssurl",me),He.resize=function(){GGBAppletUtils.responsiveResize(kt,bn)},window.addEventListener("resize",function(Qt){He.resize()});var nt=typeof bn.appletOnLoad=="function"?bn.appletOnLoad:function(){};if(!gn&&bn.width!==void 0){bn.hasOwnProperty("showSplash")||Gt.setAttribute("data-param-showSplash","false");var Be=kt.querySelector(".applet_scaler.prerender"),Re=Be!==null;if(Re)var Ze=Be.querySelector(".ggb_preview");else{var Ze=Zt(Rt,tn,bn.borderColor,!1);Be=document.createElement("div"),Be.className="applet_scaler",Be.style.position="relative",Be.style.display="block",Be.style.width=Rt+"px",Be.style.height=tn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Be,"66%"),Ae(Oe)>=5?(bn.appletOnLoad=function(Qt){var En=kt.querySelector(".ggb_preview");En&&En.parentNode.removeChild(En),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Be),window.GGBT_wsf_view&&$(window).trigger("resize"),nt(Qt)},Re||Be.appendChild(Ze)):Gt.appendChild(Ze),Be.appendChild(Gt),Re||kt.appendChild(Be),setTimeout(function(){He.resize()},1)}else{var st=document.createElement("div");st.className="applet_scaler",st.style.position="relative",st.style.display="block",st.appendChild(Gt),kt.appendChild(st),bn.appletOnLoad=function(Qt){He.resize(),nt(Qt)}}function Fe(Qt,En){En&&typeof En.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Qt,En.appletOnLoad):renderGGBElement(Qt),qt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",En)}function St(Qt,En){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Qt,params:En}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Mn){Fe(Mn.article,Mn.params)}),html5AppletsToProcess=null)},Ae(Oe)<5&&(Qt.className+=" geogebraweb")):Fe(Qt,En)}if(Zn){scriptLoadStarted=!0;for(var hn=0;hn<Gt.childNodes.length;hn++){var On=Gt.childNodes[hn].tagName;On==="TABLE"&&(Gt.removeChild(Gt.childNodes[hn]),hn--)}if(ggbHTML5LoadedScript!==null){var or=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');or!=null&&or.parentNode.removeChild(or)}var jt=document.createElement("script"),Ut=function(){St(Gt,bn)};jt.src=mt+te,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=Oe,ggbHTML5LoadedScript=jt.src,qt("GeoGebra HTML5 codebase loaded: '"+mt+"'.",bn),!Ge&&(!Te||Te=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ut()):mt.requirejs?__webpack_require__.e(7963).then(function(){var Qt=[__webpack_require__(87963)];Ut.apply(null,Qt)}.bind(this)).catch(__webpack_require__.oe):(jt.onload=Ut,kt.appendChild(jt))}else St(Gt,bn);bn.height=tn,bn.width=Rt},xt=function(kt,bn,gn){var Zn=Zt(bn.width,bn.height,bn.borderColor,gn),Gt=document.createElement("div");Gt.style.position="relative",Gt.style.display="block",Gt.style.width=bn.width+"px",Gt.style.height=bn.height+"px",Gt.className="applet_screenshot applet_scaler"+(gn?" applet_screenshot_play":""),Gt.appendChild(Zn);var Rt=GGBAppletUtils.getScale(bn,kt,gn);gn?(kt.appendChild(Jt()),window.GGBT_wsf_view||(kt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),kt.appendChild(Gt),Rt!==1&&!isNaN(Rt)&&(GGBAppletUtils.scaleElement(Gt,Rt),Gt.style.width=bn.width+"px",Gt.style.height=bn.height+"px",Gt.parentNode.style.width=bn.width*Rt+"px",Gt.parentNode.style.height=bn.height*Rt+"px"),He.resize=function(){Tt(kt,Zn,Gt,gn)},window.addEventListener("resize",function(tn){He.resize()}),He.resize()};function Tt(kt,bn,gn,Zn){if(kt.contains(bn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(kt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(kt)}var Gt=GGBAppletUtils.getScale(ae,kt,Zn);gn.parentNode!==null&&(!isNaN(Gt)&&Gt!==1?(GGBAppletUtils.scaleElement(gn,Gt),gn.parentNode.style.width=ae.width*Gt+"px",gn.parentNode.style.height=ae.height*Gt+"px"):(GGBAppletUtils.scaleElement(gn,1),gn.parentNode.style.width=ae.width+"px",gn.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(kt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}He.onExitFullscreen=function(kt,bn){bn.appendChild(kt)};var _t=function(kt,bn,gn,Zn){xt(kt,bn,!0);for(var Gt=function(){var zn=[];for(tn=0;tn<kt.childNodes.length;tn++)zn.push(kt.childNodes[tn]);if(window.GGBT_wsf_view){var Yn=window.GGBT_wsf_view.renderFullScreen(kt,bn.id),nt=document.getElementById("fullscreencontainer"),Be=jQuery(kt).find(".fullscreencontent");Be.length>0?(Yn.remove(),Be.attr("id","fullscreencontent").show(),jQuery(nt).append(Be),window.dispatchEvent(new Event("resize"))):vt(Yn,bn,!1),window.GGBT_wsf_view.launchFullScreen(nt)}else It=Zn,vt(kt,bn,!1);if(!window.GGBT_wsf_view)for(tn=0;tn<zn.length;tn++)kt.removeChild(zn[tn])},Rt=kt.getElementsByClassName("ggb_preview_play"),tn=0;tn<Rt.length;tn++)Rt[tn].addEventListener("click",Gt,!1),Rt[tn].addEventListener("ontouchstart",Gt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(kt),Ye()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Jt=function(){var kt=document.createElement("div");if(kt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var bn='.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");}',gn=document.createElement("style");gn.styleSheet?gn.styleSheet.cssText=bn:gn.appendChild(document.createTextNode(bn)),document.getElementsByTagName("head")[0].appendChild(gn)}return kt},Zt=function(kt,bn,gn,Zn){var Gt=document.createElement("div");Gt.className="ggb_preview",Gt.style.position="absolute",Gt.style.zIndex="90",Gt.style.width=kt-2+"px",Gt.style.height=bn-2+"px",Gt.style.top="0px",Gt.style.left="0px",Gt.style.overflow="hidden",Gt.style.backgroundColor="white";var Rt="lightgrey";gn!==void 0&&(gn==="none"?Rt="transparent":Rt=gn),Gt.style.border="1px solid "+Rt;var tn=document.createElement("img");if(tn.style.position="relative",tn.style.zIndex="1000",tn.style.top="-1px",tn.style.left="-1px",he!==null&&tn.setAttribute("src",he),tn.style.opacity=.7,ue!==null){var zn,Yn,nt;if(!Zn){zn=document.createElement("img"),zn.style.position="absolute",zn.style.zIndex="1001",zn.style.opacity=1,tn.style.opacity=.3,Yn=360,Yn>kt/4*3&&(Yn=kt/4*3),nt=Yn/5.8,zn.setAttribute("src",ue),zn.setAttribute("width",Yn),zn.setAttribute("height",nt);var Be=(kt-Yn)/2,Re=(bn-nt)/2;zn.style.left=Be+"px",zn.style.top=Re+"px",Gt.appendChild(zn)}}return Gt.appendChild(tn),Gt},vn=function(kt){return kt=kt.toLowerCase(),kt==="html5"||kt==="screenshot"?kt:"html5"},bt=["web","webSimple","web3d","tablet","tablet3d","phone"],ft=function(kt,bn){if(Oe=kt,bn){ct(Oe,!0);return}var gn=!Ce;if(gn){var Zn=Ae(Oe);!isNaN(Zn)&&Zn<4.4&&(gn=!1)}var Gt,Rt;window.location.protocol.substr(0,4)==="http"?Gt=window.location.protocol:Gt="http:";var tn=Oe.indexOf("//");tn>0?Rt=Oe:tn===0?Rt=Gt+Oe:Rt="https://www.geogebra.org/apps/5.2.814.0/";for(var zn in bt)if(Oe.slice(bt[zn].length*-1)===bt[zn]||Oe.slice((bt[zn].length+1)*-1)===bt[zn]+"/"){ct(Rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&gn&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!ot(ae.showToolBar)&&!ot(ae.showMenuBar)&&!ot(ae.showAlgebraInput)&&!ot(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Rt+="webSimple/":Rt+="web3d/",ct(Rt,!1)},ct=function(kt,bn){if(kt.requirejs){mt=kt;return}kt.slice(-1)!=="/"&&(kt+="/"),mt=kt,bn===null&&(bn=kt.indexOf("http")===-1),Je=bn,te="web.nocache.js",ee=!1;var gn=mt.split("/");gn.length>1&&(!bn&&gn[gn.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):bt.indexOf(gn[gn.length-2])>=0&&(te=gn[gn.length-2]+".nocache.js")),gn=kt.split("/"),Oe=gn[gn.length-3],Oe.substr(0,4)==="test"?Oe=Oe.substr(4,1)+"."+Oe.substr(5,1):(Oe.substr(0,3)==="war"||Oe.substr(0,4)==="beta")&&(Oe="5.0");var Zn=parseFloat(Oe);Zn!==NaN&&Zn<5&&kt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Zn+" is deprecated. Using version latest instead."),ft("5.0",bn))},qt=function(kt,bn){window.console&&window.console.log&&(!bn||typeof bn.showLogging=="undefined"||bn.showLogging&&bn.showLogging!=="false")&&console.log(kt)};ae.material_id!==void 0?rt(dn):dn();function dn(){var kt=Ee;Te!==null?kt=Te:parseFloat(kt)<5&&(kt="5.0"),ft(kt,!1),Ge!==null&&ct(Ge,Je),je=!0}return He},GGBAppletUtils=function(){"use strict";function He(){return window.GGBT_wsf_edit!==void 0}function Ee(je,Te){Te!=1?(je.style.transformOrigin="0% 0% 0px",je.style.webkitTransformOrigin="0% 0% 0px",je.style.transform="scale("+Te+","+Te+")",je.style.webkitTransform="scale("+Te+","+Te+")",je.style.maxWidth="initial",je.querySelector(".ggb_preview")!==null&&(je.querySelector(".ggb_preview").style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[0]!==void 0&&(je.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[1]!==void 0&&(je.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(je.style.transform="none",je.style.webkitTransform="none")}function ae(je,Te,Ge,lt,Qe,Ue){var mt=null;if(Ue!=null&&Ue!="")for(var Je=je.parentNode;Je!=null;)if((" "+Je.className+" ").indexOf(" "+Ue+" ")>-1){mt=Je;break}else Je=Je.parentNode;var It=0,Oe=0,te=0,ee=0,he=0,ue=0,fe=0;if(mt)It=mt.offsetWidth,Oe=Math.max(lt?mt.offsetWidth:0,mt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(It=Math.min(window.innerWidth,document.documentElement.clientWidth),Oe=Math.min(window.innerHeight,document.documentElement.clientHeight),te=It):(It=window.innerWidth,Oe=window.innerHeight,te=window.innerWidth),je){var me=je.getBoundingClientRect();me.left>0&&me.left<=It&&(Qe===void 0||!Qe)&&(document.dir==="rtl"?(he=It-me.width-me.left,ue=te<=480?10:30):(ue=me.left,he=te<=480?10:30),ee=ue+he)}if(je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=je.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,fe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,fe=40)}}return je&&((Ge===void 0||!Ge)&&Te>0&&Te+ee<It?It=Te:It-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge===void 0||!Ge)&&(Oe-=fe)),{width:It,height:Oe}}function oe(je,Te,Ge,lt,Qe){if(je.isScreenshoGenerator)return 1;var Ue=lt!==void 0&&lt,mt=je.noScaleMargin!=null&&je.noScaleMargin,Je=function(be){return be&&be!=="false"},It=Je(je.autoHeight),Oe=ae(Te,je.width,Ge,It,Ue&&window.GGBT_wsf_view||mt,Qe),te=parseInt(Oe.width),ee=je.width,he=je.height;if(ee===void 0){var ue=Te.querySelector(".appletParameters");ue&&(ee=ue.offsetWidth,he=ue.offsetHeight)}var fe=te/ee,me=Ue?1:Oe.height/he;return Ge!==void 0&&!Ge&&(fe=Math.min(1,fe),me=Math.min(1,me)),Math.min(fe,me)}function Ce(je,Te,Ge){var lt=1,Qe,Ue=!1;if(je.hasOwnProperty("allowUpscale")&&(Ue=je.allowUpscale),je.hasOwnProperty("scale")&&(lt=parseFloat(je.scale),(isNaN(lt)||lt===null||lt===0)&&(lt=1),lt>1&&(Ue=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue=!0),!(je.hasOwnProperty("disableAutoScale")&&je.disableAutoScale))Qe=oe(je,Te,Ue,Ge,je.scaleContainerClass);else return lt;return Ue&&(!je.hasOwnProperty("scale")||lt===1)?Qe:Math.min(lt,Qe)}function ke(je){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),lt=je.getBoundingClientRect(),Qe=(Te-lt.width)/2,Ue=(Ge-lt.height)/2;Ue<0&&(Ue=0),je.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Qe<40?je.style.left="40px":je.style.left=Qe+"px",je.style.top=Ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ue<40?je.style.top="40px":je.style.top=Ue+"px",je.style.left=Qe+"px")}function Ie(je,Te){var Ge=je.querySelector(".appletParameters");if(Ge){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==Ge.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(je)}if(Ge.parentElement&&/fullscreen/.test(Ge.parentElement.className))return;var lt=Ce(Te,je);He()&&Ge.setAttribute("data-param-scale",lt);for(var Qe=null,Ue=0;Ue<je.childNodes.length;Ue++)if(je.childNodes[Ue].className!==void 0&&je.childNodes[Ue].className.match(/^applet_scaler/)){Qe=je.childNodes[Ue];break}if(Qe!==null&&Qe.querySelector(".noscale")!==null)return;var mt=Te.id!==void 0?Te.id:"ggbApplet",Je=window[mt];(Je==null||!Je.recalculateEnvironments)&&Qe!==null&&!Qe.className.match(/fullscreen/)&&(Qe.parentNode.style.transform="",!isNaN(lt)&&lt!==1?(Qe.parentNode.style.width=Te.width*lt+"px",Qe.parentNode.style.height=Te.height*lt+"px",Ee(Qe,lt)):(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()&&ke(je),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ge).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:He,positionCenter:ke,getScale:Ce,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 He=n.location.search;return He.indexOf(J)!=-1||He.indexOf(K)!=-1}function q(He,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(He){var Ee=s[L].bindings;s[L].bindings=function(){for(var ae=Ee?Ee():{},oe=He[webModule.__softPermutationId],Ce=O;Ce<oe.length;Ce++){var ke=oe[Ce];ae[ke[O]]=ke[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var He=o.createElement(Q);if(He.id=L,He.style.cssText=R+S,He.tabIndex=-1,o.body.appendChild(He),t=He.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ee=document.compatMode==U?V:W;t.write(Ee+X),t.close()}}}function w(He){function Ee(oe){function Ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ke=Ce();if(ke){oe();return}function Ie(){if(!ke){if(!Ce())return;ke=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),je&&clearInterval(je)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var je=setInterval(function(){Ie()},$)}function ae(oe){var Ce=u(),ke=Ce.body,Ie=Ce.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=oe,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),ke.appendChild(Ie)}Ee(function(){ae(He)})}webModule.__startLoadingFragment=function(He){return C(He)},webModule.__installRunAsyncCode=function(He){var Ee=u(),ae=Ee.body,oe=Ee.createElement(_);oe.language=ab,oe.text=He,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(He){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(He){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(He){var Ee=c[He];return Ee==null?null:Ee},r=d,webModule.__errFn=e}function B(){function He(je){var Te=je.lastIndexOf(rb);Te==-1&&(Te=je.length);var Ge=je.indexOf(sb);Ge==-1&&(Ge=je.length);var lt=je.lastIndexOf(tb,Math.min(Ge,Te));return lt>=O?je.substring(O,lt+P):W}function Ee(je){if(!je.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=je+vb,je=He(Te.src)}return je}function ae(){var je=__gwt_getMetaProperty(wb);return je!=null?je:W}function oe(){for(var je=o.getElementsByTagName(_),Te=O;Te<je.length;++Te)if(je[Te].src.indexOf(xb)!=-1)return He(je[Te].src);return W}function Ce(){var je=o.getElementsByTagName(yb);return je.length>O?je[je.length-P].href:W}function ke(){var je=o.location;return je.href==je.protocol+zb+je.host+je.pathname+je.search+je.hash}var Ie=ae();return Ie==W&&(Ie=oe()),Ie==W&&(Ie=Ce()),Ie==W&&ke()&&(Ie=He(o.location.href)),Ie=Ee(Ie),Ie}function C(He){return He.match(/^\//)||He.match(/^[a-zA-Z]+:\/\//)?He:webModule.__moduleBase+He}function D(){var He=[],Ee=O,ae=[],oe=[];function Ce(je){var Te=oe[je](),Ge=ae[je];if(Te in Ge)return Te;var lt=[];for(var Qe in Ge)lt[Ge[Qe]]=Qe;throw r&&r(je,lt,Te),null}if(__gwt_isKnownPropertyValue=function(je,Te){return Te in ae[je]},webModule.__getPropMap=function(){var je={};for(var Te in ae)ae.hasOwnProperty(Te)&&(je[Te]=Ce(Te));return je},webModule.__computePropValue=Ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ke;try{ke=Cb;var Ie=ke.indexOf(Db);Ie!=-1&&(Ee=parseInt(ke.substring(Ie+P),$),ke=ke.substring(O,Ie))}catch(je){}return webModule.__softPermutationId=Ee,C(ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(He,Ee,ae){"use strict";ae.d(Ee,{Ax:function(){return Ie},Ds:function(){return je},KI:function(){return Ge},SI:function(){return ke},f1:function(){return Ce}});var oe=ae(346);function Ce(lt){let Qe=!0;if(lt.length>0){for(let Ue=0;Ue<lt.length;Ue++)if(lt[Ue].compile_success==0||!lt[Ue].compile_success){Qe=!1;break}}else Qe=!1;return Qe}function ke(lt,Qe=""){let Ue=[];for(let mt=0;mt<lt.length;mt++){let Je=lt[mt],It=Qe?`${Qe}/${Je.name}`:`${Je.name}`;Ue.push({title:Je.name,type:Je.type,isLeaf:Je.type!=="tree",key:It})}return Ue}function Ie(lt,Qe,Ue){for(let mt=0;mt<lt.length;mt++){let Je=lt[mt];if(Je.key===Qe){Je.children=Ue;break}Je.children&&Ie(Je.children,Qe,Ue)}return lt}function je(lt,Qe,Ue){let mt;return function(){let Je=this,It=arguments,Oe=function(){mt=null,Ue||lt.apply(Je,It)},te=Ue&&!mt;clearTimeout(mt),mt=setTimeout(Oe,Qe),te&&lt.apply(Je,It)}}const Te=!0,Ge=oe.Z.API_SERVER},84842:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Oe}});var oe=ae(99571),Ce=ae(59301),ke=Object.defineProperty,Ie=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Qe=(te,ee,he)=>ee in te?ke(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ee]=he,Ue=(te,ee)=>{for(var he in ee||(ee={}))Ge.call(ee,he)&&Qe(te,he,ee[he]);if(Te)for(var he of Te(ee))lt.call(ee,he)&&Qe(te,he,ee[he]);return te},mt=(te,ee)=>Ie(te,je(ee)),Je=(te,ee)=>{var he={};for(var ue in te)Ge.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&&lt.call(te,ue)&&(he[ue]=te[ue]);return he},It=(te,ee,he)=>new Promise((ue,fe)=>{var me=De=>{try{Ae(he.next(De))}catch(Ye){fe(Ye)}},be=De=>{try{Ae(he.throw(De))}catch(Ye){fe(Ye)}},Ae=De=>De.done?ue(De.value):Promise.resolve(De.value).then(me,be);Ae((he=he.apply(te,ee)).next())});const Oe=te=>{var ee=te,{children:he}=ee,ue=Je(ee,["children"]);const[fe,me]=(0,Ce.useState)(!1);return Ce.createElement(oe.ZP,mt(Ue({},ue),{loading:fe,onClick:be=>It(void 0,null,function*(){try{me(!0),yield ue.onClick(be),me(!1)}catch(Ae){console.error(Ae),me(!1)}})}),he)}},85788:function(He,Ee,ae){"use strict";var oe=ae(86204),Ce=ae.n(oe),ke=Object.defineProperty,Ie=(lt,Qe,Ue)=>Qe in lt?ke(lt,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):lt[Qe]=Ue,je=(lt,Qe,Ue)=>Ie(lt,typeof Qe!="symbol"?Qe+"":Qe,Ue),Te=(lt,Qe,Ue)=>new Promise((mt,Je)=>{var It=ee=>{try{te(Ue.next(ee))}catch(he){Je(he)}},Oe=ee=>{try{te(Ue.throw(ee))}catch(he){Je(he)}},te=ee=>ee.done?mt(ee.value):Promise.resolve(ee.value).then(It,Oe);te((Ue=Ue.apply(lt,Qe)).next())});class Ge extends oe.EventEmitter{constructor(Qe,Ue){super(),je(this,"url"),je(this,"body"),je(this,"fullContent",""),je(this,"controller",null),je(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 mt=Ue.headers.get("content-type");if(!mt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(mt.includes("application/json")){const Oe=yield Ue.json();this.emit("error",Oe);return}if(!mt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Je=Ue.body.getReader(),It=new TextDecoder("utf-8");for(;;){const{done:Oe,value:te}=yield Je.read();if(Oe)break;const ee=It.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=Ge},81679:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return It}});var oe=ae(59301),Ce=ae(30641),ke=ae(77019),Ie=ae(5269),je={smartWrp:"smartWrp___NjRcB"},Te=ae(75975),Ge=ae(9148),lt=ae(84842),Qe=ae(59301),Ue=(Oe,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(Oe,te)).next())});const mt=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
margin-top: 20px;
}
.bar {
width: 30px;
margin: 0 2px;
background-color: #4caf50;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 0.3s ease;
}
.bar.sorted {
background-color: #ff9800;
}
.bar.pivot {
background-color: #f44336;
}
</style>
</head>
<body>
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
<div class="array-container" id="array-container"></div>
<script>
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
let bars = [];
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
function initArrayDisplay() {
const container = document.getElementById('array-container');
container.innerHTML = '';
bars = array.map(value => {
const bar = document.createElement('div');
bar.className = 'bar';
bar.style.height = \`\${value * 5}px\`;
bar.textContent = value;
container.appendChild(bar);
return bar;
});
}
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
function highlightBars(indices, className) {
indices.forEach(index => bars[index].classList.add(className));
}
// \u79FB\u9664\u9AD8\u4EAE
function removeHighlightBars(indices, className) {
indices.forEach(index => bars[index].classList.remove(className));
}
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
async function quickSort(arr, left = 0, right = arr.length - 1) {
if (left >= right) return;
const pivotIndex = await partition(arr, left, right);
await quickSort(arr, left, pivotIndex - 1);
await quickSort(arr, pivotIndex + 1, right);
}
// \u5206\u533A\u51FD\u6570
async function partition(arr, left, right) {
const pivot = arr[right];
let i = left - 1;
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
for (let j = left; j < right; j++) {
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
await sleep(500);
if (arr[j] <= pivot) {
i++;
[arr[i], arr[j]] = [arr[j], arr[i]];
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
bars[i].style.height = \`\${arr[i] * 5}px\`;
bars[i].textContent = arr[i];
bars[j].style.height = \`\${arr[j] * 5}px\`;
bars[j].textContent = arr[j];
await sleep(500);
}
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
}
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
bars[i + 1].textContent = arr[i + 1];
bars[right].style.height = \`\${arr[right] * 5}px\`;
bars[right].textContent = arr[right];
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
await sleep(500);
removeHighlightBars([i + 1], 'sorted');
return i + 1;
}
// \u5EF6\u8FDF\u51FD\u6570
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
document.getElementById('start-sort').addEventListener('click', () => {
quickSort(array);
});
// \u521D\u59CB\u5316\u9875\u9762
initArrayDisplay();
<\/script>
</body>
</html>`;function Je({open:Oe=!0,onChange:te,defaultValue:ee,placement:he,width:ue,height:fe,extra:me,onDynamic:be,onOpenChange:Ae,showExtra:De=!0}){const Ye=(0,oe.useRef)(null),rt=(0,oe.useRef)(null),[$e,at]=(0,oe.useState)(ee||""),[ht,ot]=(0,oe.useState)(ee||""),[vt,xt]=(0,oe.useState)(!!Oe),[Tt,_t]=(0,oe.useState)(1),Jt={selectOnLineNumbers:!0};(0,oe.useEffect)(()=>{Oe&&(at(ee),ot(ee),xt(!0))},[Oe,ee]),(0,oe.useEffect)(()=>{$e!==""&&(clearTimeout(rt.current),rt.current=setTimeout(()=>{const vn=document.createElement("iframe");if(vn.style.width="100%",vn.style.height="100%",vn.style.border="0",Ye.current){Ye.current.innerHTML="",Ye.current.appendChild(vn);const bt=vn.contentDocument||vn.contentWindow.document;bt.open(),bt.write($e),bt.close()}},1e3))},[Oe,$e]);const Zt=vn=>{at(vn),te==null||te(vn,ht)};return Qe.createElement(Ce.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:vt,width:"100%",height:fe||"100vh",rootClassName:je.smartWrp,destroyOnClose:!0,onClose:()=>{xt(!1),Ae==null||Ae($e)},extra:De&&Qe.createElement("div",null,Qe.createElement(Ge.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Tt,onChange:vn=>_t(vn)}),Qe.createElement(lt.Z,{type:"primary",className:"ml20",onClick:()=>Ue(this,null,function*(){yield be($e,()=>{xt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Qe.createElement(ke.Z,{className:"h100"},Qe.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Tt===1?"block":"none"}},Qe.createElement("div",{className:"h100",ref:Ye})),Qe.createElement(Ie.Z,{flex:"1",style:{display:Tt===2?"block":"none"}},Qe.createElement(Te.ZP,{height:"90vh",value:ee,language:"html",theme:"vs",showMiniMap:!1,options:Jt,onChange:Zt}))))}var It=Je},10946:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return $e}});var oe=ae(59301),Ce=ae(72460),ke=ae(77596),Ie=ae(3977),je=ae(14179),Te=ae(56102),Ge={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},lt=ae(6767),Qe=ae(90083),Ue=ae(95827),mt=ae(30084),Je=ae(10787),It=ae(8944),Oe=ae(81679),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,be=(at,ht,ot)=>ht in at?te(at,ht,{enumerable:!0,configurable:!0,writable:!0,value:ot}):at[ht]=ot,Ae=(at,ht)=>{for(var ot in ht||(ht={}))fe.call(ht,ot)&&be(at,ot,ht[ot]);if(ue)for(var ot of ue(ht))me.call(ht,ot)&&be(at,ot,ht[ot]);return at},De=(at,ht)=>ee(at,he(ht)),Ye=(at,ht)=>{var ot={};for(var vt in at)fe.call(at,vt)&&ht.indexOf(vt)<0&&(ot[vt]=at[vt]);if(at!=null&&ue)for(var vt of ue(at))ht.indexOf(vt)<0&&me.call(at,vt)&&(ot[vt]=at[vt]);return ot},$e=({onFinish:at,value:ht,streamingStatus:ot,cancelIndex:vt,loadImage:xt,onDynamic:Tt,isHiddenHtml:_t})=>{const[Jt,Zt]=(0,oe.useState)(""),[vn,bt]=(0,oe.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ft,ct]=(0,oe.useState)(0),[qt,dn]=(0,oe.useState)(!1),kt=Zn=>Zn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Gt,Rt)=>`<mathx data-text="${Rt.trim()}">$$${Rt.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,"`$&`"),bn=()=>{dn(!0),at==null||at()};(0,oe.useEffect)(()=>{const Zn=xt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${ht}`:ht,Gt=kt(Zn);if(!qt)if(xt||!ot||vt>0){Zt(Gt),ct(Gt.length),(!ot||vt>0)&&!xt&&bn();return}else if((Gt==null?void 0:Gt.length)<4)Zt(Gt),ct(Gt.length);else if(ft<Gt.length){const Rt=Gt.length-ft,tn=setInterval(()=>{Zt(Gt.slice(0,ft+2)),ct(zn=>zn+2)},Rt>10?Math.max(500/(Rt/2),20):50);return()=>clearInterval(tn)}else ot||bn()},[ht,ot,vt,xt,ft]);const gn=(0,oe.useMemo)(()=>oe.createElement("section",{className:`${Ge.answer} fadeIn animated edu_md`},oe.createElement(Ce.UG,{remarkPlugins:[mt.Z,Je.Z],rehypePlugins:[Ue.Z,Ie.Z],components:{code(Zn){var Gt=Zn,{node:Rt,inline:tn,className:zn,children:Yn}=Gt,nt=Ye(Gt,["node","inline","className","children"]);const Be=/language-(\w+)/.exec(zn||""),Re=String(Yn).trim();return tn||!Be?oe.createElement("code",Ae({className:zn},nt),Yn):oe.createElement("code",{className:Ge.codeCopy,"data-text":`\`\`\`${Be?Be[1]:""}
${Yn}
\`\`\``},!_t&&oe.createElement(Te.CopyToClipboard,{text:Re,onCopy:()=>lt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement("button",null,"\u590D\u5236")),!_t&&Be[1]==="html"&&qt&&oe.createElement("button",{className:Ge.runCode,onClick:()=>{bt(Ae({},De(Ae({},vn),{open:++vn.open,defaultValue:Re,language:Be[1]})))}},"\u8FD0\u884CHTML"),oe.createElement(ke.Z,Ae({wrapLongLines:!0,style:je.Z,language:Be[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},nt),Re))},img({node:Zn}){var Gt;const Rt=(Gt=Zn.properties)==null?void 0:Gt.src;return oe.createElement(Qe.Z,{src:Rt,width:320,"data-text":Rt,onLoad:()=>xt&&setTimeout(()=>bn(),500)})},a:Zn=>{var Gt=Zn,{node:Rt}=Gt,tn=Ye(Gt,["node"]);return oe.createElement("a",De(Ae({},tn),{target:"_blank",rel:"noopener noreferrer"}))}}},qt?Jt:`${Jt}__`)),[Jt]);return oe.createElement(oe.Fragment,null,oe.createElement(Oe.Z,{defaultValue:vn.defaultValue,open:vn.open,language:vn.language,height:vn.height,onChange:(Zn,Gt)=>{Zt(Jt.replaceAll(Gt,Zn))},onDynamic:Tt}),gn)}},91865:function(He,Ee,ae){"use strict";var oe=ae(59301),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(Je,It,Oe)=>It in Je?Ce(Je,It,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Je[It]=Oe,Ge=(Je,It)=>{for(var Oe in It||(It={}))Ie.call(It,Oe)&&Te(Je,Oe,It[Oe]);if(ke)for(var Oe of ke(It))je.call(It,Oe)&&Te(Je,Oe,It[Oe]);return Je},lt=(Je,It)=>{var Oe={};for(var te in Je)Ie.call(Je,te)&&It.indexOf(te)<0&&(Oe[te]=Je[te]);if(Je!=null&&ke)for(var te of ke(Je))It.indexOf(te)<0&&je.call(Je,te)&&(Oe[te]=Je[te]);return Oe};const Qe=ae(20441),Ue={};Qe.keys().forEach(Je=>{const It=Je.replace("./","").replace(".svg","");Ue[It]=Qe(Je)});const mt=Je=>{var It=Je,{filename:Oe}=It,te=lt(It,["filename"]),ee;const he=((ee=Oe==null?void 0:Oe.split(".").pop())==null?void 0:ee.toLowerCase())||"unknown",ue=Ue[he]||Ue.default;return oe.createElement("img",Ge({src:ue,alt:he},te))};Ee.Z=mt},2235:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ue}});var oe=ae(59301),Ce={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},ke=ae(37285),Ie=ae(91865),je=ae(25399),Te=ae(37639),lt=({item:mt})=>{var Je;const[It,Oe]=(0,oe.useState)(!1);return oe.createElement("div",{className:Ce.f_l_c},oe.createElement(je.Z,{title:mt==null?void 0:mt.name},oe.createElement(Te.Z,{placement:"top",content:oe.createElement("div",null,oe.createElement(ke.Z,null),oe.createElement("pre",{className:Ce.preclass,style:{maxWidth:600,maxHeight:400}},(Je=mt==null?void 0:mt.contents)==null?void 0:Je.toString())),title:oe.createElement("div",null,oe.createElement(Ie.Z,{filename:mt==null?void 0:mt.name,style:{width:16,height:16,marginRight:5}}),mt==null?void 0:mt.name),trigger:"click",open:It,onOpenChange:te=>{Oe(te)}},oe.createElement("div",{className:Ce.officediv},oe.createElement(Ie.Z,{filename:mt==null?void 0:mt.name,style:{width:16,height:16,marginRight:5}}),mt==null?void 0:mt.name))))},Ue=({Filelist:mt})=>oe.createElement("div",null,oe.createElement("div",{style:{display:"flex",alignItems:"center"}},oe.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),oe.createElement(ke.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),oe.createElement("div",{className:Ce.f_l_c},mt==null?void 0:mt.map(Je=>oe.createElement(lt,{item:Je}))))},82105:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return rt}});var oe=ae(59301),Ce=ae(6767),ke=ae(30641),Ie=ae(77019),je=ae(62957),Te=ae(37568),Ge=ae(14566),lt=ae(25399),Qe=ae(5269),Ue=ae(71051),mt={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},Je=ae(9148),It=ae(346),Oe=ae(50043),te=ae(38986),ee=ae(72409),he=ae(51257),ue=ae(91239),fe=ae(35902),me=ae(85020),be=ae(25872),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=($e,at,ht)=>new Promise((ot,vt)=>{var xt=Jt=>{try{_t(ht.next(Jt))}catch(Zt){vt(Zt)}},Tt=Jt=>{try{_t(ht.throw(Jt))}catch(Zt){vt(Zt)}},_t=Jt=>Jt.done?ot(Jt.value):Promise.resolve(Jt.value).then(xt,Tt);_t((ht=ht.apply($e,at)).next())}),rt=(0,oe.forwardRef)(({onUpdateNum:$e,onSave:at},ht)=>{var ot;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%`,[xt,Tt]=(0,oe.useState)(!1),[_t,Jt]=(0,oe.useState)([]),[Zt,vn]=(0,oe.useState)(null),[bt,ft]=(0,oe.useState)([]),[ct,qt]=(0,oe.useState)(0),[dn,kt]=(0,oe.useState)(0),[bn,gn]=(0,oe.useState)(!1),[Zn,Gt]=(0,oe.useState)(""),[Rt,tn]=(0,oe.useState)(0),[zn,Yn]=(0,oe.useState)(0),[nt,Be]=(0,oe.useState)(0),[Re,Ze]=(0,oe.useState)(0),[st,Fe]=(0,oe.useState)(0),[St,hn]=(0,oe.useState)(0),[On,or]=(0,oe.useState)(0),[jt,Ut]=(0,oe.useState)(0),[Qt,En]=(0,oe.useState)(be.Q),{contentRef:Mn,value:Tn,status:Ht,open:Vn,close:Xt}=Qt,nn=(0,fe.Z)({contentRef:Mn,status:Ht}),{openProgress:fn,closeProgress:Gn,CreateProgressModal:cn,progressOpen:Et}=(0,ue.Z)();(0,oe.useEffect)(()=>{Zt&&wr(),Zt===!1&&(Xt(),$e==null||$e(),Jt([]),Gt(""),tn(0),Yn(0),Be(0),Ze(0),Fe(0),hn(0),or(0),Ut(0))},[Zt]);const Jn=()=>{vn(!0)};(0,oe.useImperativeHandle)(ht,()=>({onClick:Jn}));const ir=cr=>{gn(!0),qt(cr),kt(0)},Wt=cr=>De(void 0,null,function*(){const Dr=cr.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Dr)==-1?(Ce.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):cr.size/1024/1024>10?(Ce.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),wr=()=>De(void 0,null,function*(){const cr=yield(0,te.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});cr.status===0&&(qt(cr.total_number),kt(cr.remaining_number))}),ei=cr=>(cr=cr||"",cr=String(cr),cr=cr.replace(/\s+/g,""),cr),Fr=(cr=!0)=>De(void 0,null,function*(){var Dr,ri;const _e=[{name:"\u5355\u9009\u9898",num:Rt||0},{name:"\u591A\u9009\u9898",num:zn||0},{name:"\u5224\u65AD\u9898",num:nt||0},{name:"\u586B\u7A7A\u9898",num:Re||0},{name:"\u7B80\u7B54\u9898",num:st||0},{name:"\u7EC4\u5408\u9898",num:jt||0},{name:"\u7F16\u7A0B\u9898",num:St||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:On||0}];if(cr){if(ei(Zn)){if(Zn.length>1e3){Ce.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Ce.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!ei(Zn)&&!(_t!=null&&_t.length)){Ce.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const sr=_e.reduce((_r,Gr)=>_r+Gr.num,0);if(sr===0){Ce.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(sr>50){Ce.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(ct!==-1){gn(!0);return}}gn(!1);const Tr={scene_type:6,request_identifier:Math.random(),file_id:(ri=(Dr=_t[0])==null?void 0:Dr.response)==null?void 0:ri.id,content:Zn,count_arr:_e.map(sr=>sr.num).join(",")};yield Vn(Tr),wr()}),Dn=()=>De(void 0,null,function*(){const cr=nn();if(at){vn(!1),at(cr);return}fn(),Tt(!0),ft([]);const Dr=new FormData;Dr.append("html",cr);const ri=yield(0,te.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Dr},!0);if((ri==null?void 0:ri.status)===0)if(ri!=null&&ri.data){Gn(100),ft(ri==null?void 0:ri.data);return}else Ce.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Tt(!1),Gn()}),ii=()=>De(void 0,null,function*(){const cr=nn();(0,he.RG)(cr)}),Kr=["uploading","error"].includes((ot=_t==null?void 0:_t[0])==null?void 0:ot.status);return oe.createElement(oe.Fragment,null,oe.createElement(me.Z,{visible:bn,totalCount:ct,usedCount:dn,onCancel:()=>gn(!1),onOk:()=>Fr(!1)}),oe.createElement(ke.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:oe.createElement("div",{className:mt.extraHeader},oe.createElement(Ie.Z,{align:"middle"},!Ht&&!!Tn&&oe.createElement(oe.Fragment,null,oe.createElement(Je.op,{onClick:Dn,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),oe.createElement(Je.op,{onClick:ii,shape:"default",type:"text"},oe.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),oe.createElement("i",{onClick:()=>{const cr=Dr=>{je.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Dr,onOk:()=>{vn(!1)}})};if(Ht){cr("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Tn?cr("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):vn(!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:mt.wrap},oe.createElement("div",{className:mt.left},oe.createElement("div",{className:mt.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:Zn,placeholder:vt,onChange:cr=>{Gt(cr.target.value)}}),oe.createElement(Ge.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${It.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:_t,withCredentials:!0,data:{upload_type:1},beforeUpload:Wt,onChange:({file:cr})=>{var Dr,ri;cr.status!=="removed"&&(cr.status==="done"&&((Dr=cr==null?void 0:cr.response)==null?void 0:Dr.status)!==0&&(cr.status="error",cr.response=(ri=cr==null?void 0:cr.response)==null?void 0:ri.message),Jt([cr]))},onRemove:()=>Jt([])},oe.createElement(lt.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(Je.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(Ie.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:Rt,onChange:tn,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u591A\u9009\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:zn,onChange:Yn,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u5224\u65AD\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:nt,onChange:Be,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:Ze,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u7B80\u7B54\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:st,onChange:Fe,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u7EC4\u5408\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:jt,onChange:Ut,style:{marginLeft:"8px"}})),oe.createElement(Qe.Z,null,oe.createElement("label",null,"\u7F16\u7A0B\u9898"),oe.createElement(Ue.Z,{min:0,max:10,value:St,onChange:hn,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:On,onChange:or,style:{marginLeft:"8px"}})))),Ht?oe.createElement("div",{onClick:Xt,className:mt.bottomBtn},oe.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Kr?oe.createElement("div",{className:`${mt.bottomBtn} ${mt.disabled}`},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):oe.createElement("div",{onClick:()=>{Fr()},className:mt.bottomBtn},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),oe.createElement(be.Z,{onStatusChange:En,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Et,noRestrictModal:ir,stringTransformer:ee.o,onError:cr=>{Object.prototype.toString.call(cr)==="[object Object]"&&cr.status===-9&&ir(cr.data)}}))),oe.createElement(ke.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:xt},oe.createElement(Ie.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(Oe.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:bt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Tt(!1),onSuccess:()=>{Tt(!1),vn(!1)}}),oe.createElement("div",{style:{height:70}})),cn("\u5904\u7406\u4E2D"))})},25395:function(He,Ee,ae){"use strict";var oe=ae(59301);const Ce=({scrollBoxRef:ke,bottomInspectRef:Ie,contentRef:je,status:Te,rootMargin:Ge="70px",bottomOffset:lt=110})=>{const[Qe,Ue]=(0,oe.useState)(!0),mt=(0,oe.useRef)(!1);return(0,oe.useEffect)(()=>{if(!ke.current||!Ie.current)return;const Je=new IntersectionObserver(([It])=>{var Oe,te,ee,he;if(!document.contains(It.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Oe=It.rootBounds)==null?void 0:Oe.width)===0&&((te=It.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=It.boundingClientRect)==null?void 0:ee.width)===0&&((he=It.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(It.isIntersecting)},{root:ke.current,rootMargin:Ge,threshold:0});return Je.observe(Ie.current),()=>{Je.disconnect()}},[ke.current,Ie.current,Ge]),(0,oe.useEffect)(()=>{if(!Te)return;const Je=ke.current,It=je.current;mt.current=!1;let Oe=Je.scrollTop;const te=()=>{const{scrollTop:he,scrollHeight:ue,clientHeight:fe}=Je;he>Oe?he+fe>=ue-lt&&(Je.scrollTop=Je.scrollHeight,mt.current=!1):he<Oe&&(mt.current=!0),Oe=he};Je.addEventListener("scroll",te);const ee=new ResizeObserver(()=>{mt.current||(Je.scrollTop=Je.scrollHeight)});return ee.observe(It),()=>{setTimeout(()=>{ee.unobserve(It)},250),Je.removeEventListener("scroll",te)}},[Te]),Qe};Ee.Z=Ce},35902:function(He,Ee,ae){"use strict";var oe=ae(59301);const Ce=({contentRef:ke,status:Ie})=>((0,oe.useEffect)(()=>{!Ie&&(ke!=null&&ke.current)&&ke.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Ge=>{Ge.tagName.toLowerCase()==="code"?Ge.parentElement&&(Ge.parentElement.contentEditable="false"):Ge.tagName.toLowerCase()==="mathx"&&(Ge.contentEditable="false")})},[Ie]),(Te=!1)=>{const Ge=mt=>{const Je={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&copy;":"\xA9","&reg;":"\xAE","&euro;":"\u20AC"};return mt.replace(/&[^;]+;/g,It=>Je[It]||It)};if(!ke.current)return"";const lt=ke.current.cloneNode(!0);lt.querySelectorAll("code[data-text], mathx[data-text]").forEach(mt=>{let Je=mt.getAttribute("data-text");mt.tagName.toLowerCase()==="code"?Je=Je.replace(/```.*\n|\n```/g,""):mt.tagName.toLowerCase()==="mathx"&&(Je=`$$${Je}$$`);const It=document.createTextNode(Je);mt.parentNode.replaceChild(It,mt)}),Te&&lt.querySelectorAll('[data-select="disabled"]').forEach(Je=>{var It;const Oe=Je.textContent||"",te=document.createTextNode(Oe+`
`);(It=Je.parentNode)==null||It.replaceChild(te,Je)});let Ue=lt.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=Ge(Ue),Ue});Ee.Z=Ce},91239:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Je}});var oe=ae(59301),Ce=ae(62957),ke=ae(77019),Ie=ae(60242),je="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==",Ge="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=",lt={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 Je=()=>{const[It,Oe]=(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 rt=()=>{Oe($e=>$e>=99?(clearInterval(fe.current),99):$e+1)};return fe.current=setInterval(rt,5e4/99),()=>clearInterval(fe.current)},[he]);const me=()=>{Oe(0),ee(!0),ue(!1)},be=(rt=0)=>{ue(!0),Oe(rt),ee(!1)},Ae=rt=>{const $e=rt/1048576;let at;return $e<=.3?at=3:$e<=.5?at=5:$e<=1?at=10:$e<=2?at=20:$e<=3?at=30:$e<=10?at=$e*10:at=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${at}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},De=()=>Qe.createElement("span",{className:lt.dotLoading},Qe.createElement("span",null,"."),Qe.createElement("span",null,"."),Qe.createElement("span",null,"."));return{progress:It,progressOpen:te,openProgress:me,closeProgress:be,toggleLock:()=>ue(rt=>!rt),CreateProgressModal:(rt=Ue,$e)=>(typeof rt=="string"&&(rt=[rt,rt,rt]),Qe.createElement(Ce.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:te,title:null,footer:null,width:500,afterClose:()=>Oe(0)},Qe.createElement(ke.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},It<=30&&Qe.createElement(Qe.Fragment,null,Qe.createElement("img",{src:je,alt:"Step 1"}),Qe.createElement("div",{className:"mt20 c-light-primary"},rt[0],De())),It>30&&It<60&&Qe.createElement(Qe.Fragment,null,Qe.createElement("img",{src:Te,alt:"Step 2"}),Qe.createElement("div",{className:"mt20 c-light-primary"},rt[1],De())),It>=60&&Qe.createElement(Qe.Fragment,null,Qe.createElement("img",{src:Ge,alt:"Step 3"}),Qe.createElement("div",{className:"mt20 c-light-primary"},rt[2],De())),Qe.createElement(Ie.Z,{className:lt.progress,status:"active",style:{width:"auto"},size:[300,8],percent:It}),!!$e&&Qe.createElement("div",{className:"c-grey-999"},Ae($e)))))}}},74368:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ct}});var oe=ae(59301),Ce=ae(75727),ke=ae(6767),Ie=ae(25399),je=ae(37568),Te=ae(99571),Ge=ae(10946),lt={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:qt,children:dn})=>{const{left:kt=0,top:bn=0}=qt||{},[gn,Zn]=(0,oe.useState)(kt),[Gt,Rt]=(0,oe.useState)(bn),tn=(0,oe.useRef)(null),zn=()=>{if(tn.current){const Yn=tn.current.offsetWidth,nt=tn.current.offsetHeight,Be=window.innerWidth,Re=window.innerHeight;let Ze=kt,st=bn;kt+Yn>Be&&(Ze=Be-Yn),Ze<0&&(Ze=0),bn+nt>Re&&(st=Re-nt),st<0&&(st=0),Zn(Ze),Rt(st)}};return(0,oe.useEffect)(()=>{if(!tn.current||!qt)return;const Yn=new ResizeObserver(()=>{zn()});return Yn.observe(tn.current),()=>{Yn.disconnect()}},[kt,bn,qt]),(0,oe.useEffect)(()=>{qt&&zn()},[kt,bn,qt]),qt?oe.createElement("div",{ref:tn,style:{position:"fixed",left:`${gn}px`,top:`${Gt}px`,zIndex:1050}},dn):null},mt=ae(346),Je=ae(56102),It=ae(85788),Oe=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=(qt,dn,kt)=>dn in qt?Oe(qt,dn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):qt[dn]=kt,be=(qt,dn)=>{for(var kt in dn||(dn={}))ue.call(dn,kt)&&me(qt,kt,dn[kt]);if(he)for(var kt of he(dn))fe.call(dn,kt)&&me(qt,kt,dn[kt]);return qt},Ae=(qt,dn)=>te(qt,ee(dn)),De=(qt,dn,kt)=>new Promise((bn,gn)=>{var Zn=tn=>{try{Rt(kt.next(tn))}catch(zn){gn(zn)}},Gt=tn=>{try{Rt(kt.throw(tn))}catch(zn){gn(zn)}},Rt=tn=>tn.done?bn(tn.value):Promise.resolve(tn.value).then(Zn,Gt);Rt((kt=kt.apply(qt,dn)).next())}),rt=({visible:qt,position:dn,selectText:kt,applyRefinedText:bn,fetchUrl:gn,noRestrictModal:Zn})=>{var Gt;const[Rt,tn]=(0,oe.useState)(!1),[zn,Yn]=(0,oe.useState)([]),[nt,Be]=(0,oe.useState)(""),[Re,Ze]=(0,oe.useState)(1),[st,Fe]=(0,oe.useState)(""),[St,hn]=(0,oe.useState)(!1),On=(0,oe.useRef)(null),[or,jt]=(0,oe.useState)(!1),[Ut,Qt]=(0,oe.useState)(0),En=(0,oe.useRef)(!1),Mn=((Gt=zn==null?void 0:zn[(zn==null?void 0:zn.length)-1])==null?void 0:Gt.loading)===!0;(0,oe.useEffect)(()=>{if(qt){Ze(1);return}jt(!1),tn(!1),Tn(),Qt(0),Yn([]),Ze(0)},[qt]);const Tn=()=>{var Fr,Dn;Be(""),Fe(""),(Dn=(Fr=On.current)==null?void 0:Fr.cancelRequest)==null||Dn.call(Fr)},Ht=(...Fr)=>De(void 0,[...Fr],function*(Dn="",ii=zn){const Kr=Date.now(),cr=[...ii,{text:Dn,key:Kr,sender:"user",show:!0},{loading:!0,key:Kr,sender:"AI",show:!0}];Ze(2),Yn(cr);const Dr=Xt(ii),ri={no_record_times:!0,prompt:Dn,history:Dr};On.current=new It.Z(mt.Z.API_SERVER+gn,ri),yield new Promise(_e=>{On.current.on("data",Mr=>{const{chunk:{msg:Tr},full:sr}=Mr,_r=Tr==="error";jt(!0),Fe(Et(sr)),Yn(Gr=>Gr.map((br,Ci)=>Ci===Gr.length-1?Ae(be({},br),{text:sr,loading:!1,error:_r}):br))}),On.current.on("done",()=>_e()),On.current.on("error",Mr=>{const Tr="\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(Mr)==="[object Object]"&&Mr.status===-9&&(Ze(1),Zn(Mr.data)),Yn(sr=>sr.map((_r,Gr)=>Gr===sr.length-1?Ae(be({},_r),{text:Tr,loading:!1,error:!0}):_r)),_e()}),On.current.on("cancelled",()=>_e()),On.current.startStream()}),tn(!1)}),Vn=Fr=>{Be(Fr.target.value)},Xt=Fr=>Fr.reduce((ii,Kr)=>{if(Kr.sender==="user"){const cr=Fr.find(Dr=>Dr.key===Kr.key&&Dr.sender==="AI");cr&&(cr!=null&&cr.text)&&!(cr!=null&&cr.error)&&ii.push({question:Kr.text,answer:cr.text})}return ii},[]),nn=()=>{if(ei)return;const Fr=Jn("\u6539\u5199");Tn(),tn(!0),Ht(Fr)},fn=Fr=>{if(Fr.key==="Enter"&&!Fr.shiftKey){if(Fr.preventDefault(),En.current||wr)return;nn()}},Gn=()=>{var Fr,Dn;Qt(ii=>ii+1),(Dn=(Fr=On.current)==null?void 0:Fr.cancelRequest)==null||Dn.call(Fr),tn(!1),jt(!1)},cn=[{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")}],Et=(Fr="")=>{const Dn=["\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((ii,Kr)=>{Dn.push(`\u7B54\u6848${Kr+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Kr+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Kr+1})\u8F93\u51FA\uFF1A`)}),Dn.forEach(ii=>{const Kr=new RegExp(ii,"g");Fr=Fr.replace(Kr,`**${ii}** `)}),Fr},Jn=Fr=>Fr==="\u6539\u5199"?`${nt}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${kt}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${kt}\uFF0C${Fr}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,ir=Fr=>{let Dn="";Fr.key==="1"&&(Dn=Jn("\u6DA6\u8272")),Fr.key==="2"&&(Dn=Jn("\u6269\u5199")),Fr.key==="3"&&(Dn=Jn("\u7F29\u5199")),Tn(),tn(!0),Ht(Dn)},Wt=()=>{const Fr=zn.splice(zn.length-2),{text:Dn}=(Fr==null?void 0:Fr[0])||{};Tn(),tn(!0),Ht(Dn,zn)},wr=Rt||or,ei=(nt==null?void 0:nt.trim())==="";return qt?oe.createElement(Ce.Z,{open:ei&&!wr&&(St||!st),overlayStyle:{minWidth:200},menu:{items:cn,onClick:ir}},oe.createElement(Ue,{position:dn},oe.createElement("div",{className:lt.wrap},Re===2&&oe.createElement(oe.Fragment,null,oe.createElement("div",{className:lt.chatContainer},Mn&&oe.createElement("div",{className:lt.loadingWrp},oe.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),oe.createElement("div",{className:"ai-loading"})),st&&oe.createElement(Ge.Z,{cancelIndex:Ut,streamingStatus:Rt,loadImage:!1,onFinish:()=>De(void 0,null,function*(){Qt(0),setTimeout(()=>jt(!1),0)}),value:st})),oe.createElement("div",{className:lt.btnContainer},oe.createElement("div",{onClick:()=>bn(!0,st),className:lt.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),oe.createElement("div",{onClick:()=>bn(!1,st),className:lt.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),oe.createElement(Je.CopyToClipboard,{text:st,onCopy:()=>ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement(Ie.Z,{title:"\u590D\u5236"},oe.createElement("div",{className:lt.btn,style:{marginLeft:"auto"}},oe.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),oe.createElement(Ie.Z,{title:"\u91CD\u65B0\u751F\u6210"},oe.createElement("div",{onClick:Wt,className:lt.btn},oe.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),oe.createElement(Ie.Z,{title:"\u5220\u9664"},oe.createElement("div",{onClick:()=>{Ze(1),Tn(),Yn([])},className:lt.btn},oe.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),oe.createElement("div",{className:lt.inputContainer},oe.createElement(je.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:nt,bordered:!1,onFocus:()=>hn(!0),onBlur:()=>setTimeout(()=>hn(!1),300),onChange:Vn,onPressEnter:fn,onCompositionStart:()=>En.current=!0,onCompositionEnd:()=>En.current=!1}),or?oe.createElement("div",{className:`iconfont icon-tingzhihuida ${lt.cancelBtn}`,onClick:Gn}):oe.createElement(Te.ZP,{className:ei?lt.sendBtnDisabled:lt.sendBtn,icon:oe.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:wr,onClick:nn}))))):oe.createElement(oe.Fragment,null)},$e={"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"},at=Object.defineProperty,ht=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,xt=(qt,dn,kt)=>dn in qt?at(qt,dn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):qt[dn]=kt,Tt=(qt,dn)=>{for(var kt in dn||(dn={}))ot.call(dn,kt)&&xt(qt,kt,dn[kt]);if(ht)for(var kt of ht(dn))vt.call(dn,kt)&&xt(qt,kt,dn[kt]);return qt};const _t=qt=>React.createElement("svg",Tt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},qt),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 Jt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",vn=(0,oe.forwardRef)(({initialContent:qt,onButtonClick:dn},kt)=>{const[bn,gn]=(0,oe.useState)(null),[Zn,Gt]=(0,oe.useState)(null),[Rt,tn]=(0,oe.useState)(""),[zn,Yn]=(0,oe.useState)(null),nt=kt,Be=On=>{const or=document.elementFromPoint(10,On),jt=document.createRange();let Ut=null;const Qt=document.createTreeWalker(nt.current,NodeFilter.SHOW_TEXT,{acceptNode:nn=>{const fn=document.createRange();fn.selectNodeContents(nn);const Gn=fn.getBoundingClientRect();return Gn.top<=On&&Gn.bottom>=On?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let En="",Mn,Tn,Ht=null,Vn=null,Xt=null;for(;Mn=Qt.nextNode();){Mn.parentNode.getAttribute("data-select")==="disabled"&&(Tn=!0),En+=Mn.textContent,Vn||(Vn=Mn),Xt=Mn;const nn=document.createRange();nn.selectNodeContents(Mn);const fn=nn.getBoundingClientRect();Ht===null&&(Ht=fn.top)}if(Vn&&Xt&&!Tn){const nn=document.createRange();nn.setStart(Vn,0),nn.setEnd(Xt,Xt.textContent.length),Yn(nn)}else Yn(null);return Gt(Ht-1),Tn?"":En.trim()};function Re(On){for(;On.parentElement&&On.parentElement.tagName.toLowerCase()!=="section";){var or=window.getComputedStyle(On.parentElement);if(or.pointerEvents==="none")return!0;On=On.parentElement}return!1}const Ze=On=>{var or,jt;if(Re(On.target)){Gt(-1e6);return}if(((jt=(or=document.getSelection())==null?void 0:or.toString)==null?void 0:jt.call(or))!==""){Gt(-1e6);return}const Ut=Be(On.clientY);if((Ut==null?void 0:Ut.trim())===""){Gt(-1e6);return}const Qt=nt.current.getBoundingClientRect();gn(Qt.left-30),tn(Ut)},st=()=>{},Fe=On=>{dn&&Rt&&dn(Rt,On.clientX,On.clientY,zn)},St=()=>{if(zn){const On=window.getSelection();On.removeAllRanges(),On.addRange(zn)}},hn=()=>{window.getSelection().removeAllRanges()};return(0,oe.useEffect)(()=>{const On=nt.current;return On.addEventListener("mousemove",Ze),On.addEventListener("mouseleave",st),()=>{On.removeEventListener("mousemove",Ze),On.removeEventListener("mouseleave",st),hn()}},[qt]),oe.createElement("div",{className:$e["hover-line-container2"]},Zn!==null&&oe.createElement("div",{className:$e["line-button-container"],style:{top:Zn,left:bn},onMouseEnter:()=>{St()},onMouseLeave:()=>{hn(),Gt(null),tn(""),Yn(null)}},oe.createElement("div",{className:$e.button,onClick:Fe},oe.createElement("img",{src:Jt}),oe.createElement("span",null,"AI\u6539\u5199"))))}),bt={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},ct=({nodeRef:qt,noRestrictModal:dn})=>{const[kt,bn]=(0,oe.useState)(null),[gn,Zn]=(0,oe.useState)(null),[Gt,Rt]=(0,oe.useState)(!1),[tn,zn]=(0,oe.useState)(null),[Yn,nt]=(0,oe.useState)(!1),[Be,Re]=(0,oe.useState)(!1),Ze=qt,st=(0,oe.useRef)(null),Fe=(0,oe.useRef)(null),[St,hn]=(0,oe.useState)("");(0,oe.useEffect)(()=>{kt!=null&&kt.toString()&&hn(kt==null?void 0:kt.toString())},[kt==null?void 0:kt.toString()]);const On=()=>{const Qt=window.getSelection(),En=Ze.current.scrollTop,Mn=Ze.current.getBoundingClientRect();if(Qt.rangeCount>0&&Qt.toString().length>0){const Tn=Qt.getRangeAt(0);bn(Tn.cloneRange());const Ht=Tn.getBoundingClientRect(),Vn=40;let Xt=Ht.top+En-5+Vn;Xt<En&&(Xt=Ht.bottom-Mn.top+En+5);const nn=Ze.current.scrollHeight-Vn;Xt=Math.min(Math.max(Xt,En),nn),Zn({top:Xt+6,left:Ht.left})}else bn(null),Zn(null),Rt(!1);or(Qt)},or=Qt=>{if(!Qt||Qt.rangeCount===0){nt(!1);return}const Mn=Qt.getRangeAt(0).getBoundingClientRect(),Tn=window.getComputedStyle(Ze.current),Ht=parseInt(Tn.lineHeight),Vn=parseInt(Tn.paddingTop),Xt=Ze.current.scrollTop,nn=Ze.current.getBoundingClientRect(),fn=Mn.top-nn.top+Xt,Gn=Math.floor((fn-Vn)/Ht),cn=Vn+Gn*Ht-Xt;zn(cn),nt(!0)},jt=Qt=>{Ze.current&&!Ze.current.contains(Qt.target)&&Re(!1)};(0,oe.useEffect)(()=>{const Qt=Ze.current;return Qt.addEventListener("scroll",On),Qt.addEventListener("input",On),Qt.addEventListener("click",On),Qt.addEventListener("mouseup",On),Qt.addEventListener("keyup",On),Qt.addEventListener("click",On),document.addEventListener("mousedown",jt),()=>{Qt.removeEventListener("scroll",On),Qt.removeEventListener("input",On),Qt.removeEventListener("click",On),Qt.removeEventListener("mouseup",On),Qt.removeEventListener("keyup",On),Qt.removeEventListener("click",On),document.removeEventListener("mousedown",jt)}},[]);const Ut=(Qt=!0,En)=>{if(!kt)return;const Mn=Fe.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),Tn=kt.cloneRange(),Ht=window.getSelection();if(Ht.removeAllRanges(),Ht.addRange(Tn),Qt){Tn.deleteContents();const Vn=document.createElement("div");Vn.innerHTML=Mn;const Xt=Array.from(Vn.childNodes);for(;Xt.length>0;)Tn.insertNode(Xt.pop())}else{Tn.collapse(!1);const Vn=document.createElement("div");Vn.innerHTML=" "+Mn;const Xt=Array.from(Vn.childNodes);for(;Xt.length>0;)Tn.insertNode(Xt.pop())}Ht.removeAllRanges(),bn(null),Rt(!1),Zn(null)};return oe.createElement("section",{ref:Fe},gn&&oe.createElement("div",{ref:st,className:bt.toolbar,style:{top:gn==null?void 0:gn.top,left:gn==null?void 0:gn.left}},oe.createElement("div",{className:bt.button,onClick:()=>Rt(!0)},oe.createElement("img",{src:Jt}),oe.createElement("span",null,"AI\u6539\u5199"))),oe.createElement(rt,{key:JSON.stringify(gn),noRestrictModal:dn,visible:Gt,position:gn,selectText:St,applyRefinedText:Ut,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),Ze.current&&oe.createElement(vn,{ref:Ze,onButtonClick:(Qt,En,Mn,Tn)=>{bn(Tn),Rt(!0),hn(Qt),Zn({left:En,top:Mn+20})}}))}},85020:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return je}});var oe=ae(59301),Ce=ae(62957),ke={num:"num___VQiqB"},je=({visible:Te,usedCount:Ge,totalCount:lt,onOk:Qe,onCancel:Ue})=>{const mt=()=>Ge>0?oe.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",lt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:ke.num},Ge),"\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",lt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:ke.num},Ge),"\u6B21\uFF09\u3002");return oe.createElement(Ce.default,{centered:!0,open:Te,title:"\u63D0\u793A",width:620,onCancel:Ue,onOk:Qe,footer:Ge>0?void 0:null},mt())}},25872:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return he},Q:function(){return te}});var oe=ae(59301),Ce={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},ke=ae(85788),Ie=ae(346),je=ae(10946),Te=ae(74368),Ge=ae(25395),lt=ae(74549),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),mt=ae.n(Ue),Je=ae(6767),It=ae(2235),Oe=(ue,fe,me)=>new Promise((be,Ae)=>{var De=$e=>{try{rt(me.next($e))}catch(at){Ae(at)}},Ye=$e=>{try{rt(me.throw($e))}catch(at){Ae(at)}},rt=$e=>$e.done?be($e.value):Promise.resolve($e.value).then(De,Ye);rt((me=me.apply(ue,fe)).next())});const te={contentRef:{current:null},value:null,status:!1,open:()=>Oe(void 0,null,function*(){}),close:()=>{}};var he=({className:ue,style:fe,onChange:me,onSuccess:be,onCancel:Ae,onError:De,fetchUrl:Ye,noRestrictModal:rt=()=>{},showEditableToolbar:$e,bottomOffset:at=110,loadingText:ht,showEmptyData:ot=!0,onStatusChange:vt,stringTransformer:xt,bottomContainerNode:Tt})=>{const[_t,Jt]=(0,oe.useState)(!1),[Zt,vn]=(0,oe.useState)(""),[bt,ft]=(0,oe.useState)(0),[ct,qt]=(0,oe.useState)(!1),dn=(0,oe.useRef)(null),kt=(0,oe.useRef)(null),bn=(0,oe.useRef)(null),gn=(0,oe.useRef)(null),Zn=(0,Ge.Z)({scrollBoxRef:gn,bottomInspectRef:bn,contentRef:kt,status:ct,bottomOffset:at}),Gt=_t||ct;(0,oe.useEffect)(()=>{me==null||me(Zt)},[Zt]);const[Rt,tn]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{vt==null||vt({contentRef:kt,status:Gt,value:Zt,open:zn,close:Yn})},[Gt,Zt]);const zn=Be=>Oe(void 0,null,function*(){Jt(!0),vn(""),tn([]),ft(0);const Re=Ye;Be!=null&&Be.fetchUrl&&delete Be.fetchUrl,dn.current=new ke.Z(`${Ie.Z.API_SERVER}${Re}`,Be),yield new Promise((Ze,st)=>{dn.current.on("data",Fe=>{var St;let{chunk:{content:hn,type:On}}=Fe;qt(!0),On==="text"&&vn(or=>xt?xt(or+hn):or+hn),On==="knowledge"&&(console.log("---knowledge-",Fe==null?void 0:Fe.chunk),tn((St=Fe==null?void 0:Fe.chunk)==null?void 0:St.content))}),dn.current.on("done",()=>{Ze()}),dn.current.on("error",Fe=>{Object.prototype.toString.call(Fe)==="[object Object]"&&Fe.status===-1&&Je.ZP.warning((Fe==null?void 0:Fe.message)||""),Ze(),De==null||De(Fe)}),dn.current.on("cancelled",()=>{Ze(),Ae==null||Ae()}),dn.current.startStream()}),Jt(!1)}),Yn=()=>{var Be,Re;ft(1),(Re=(Be=dn.current)==null?void 0:Be.cancelRequest)==null||Re.call(Be),Jt(!1),qt(!1)},nt=(0,oe.useMemo)(()=>kt.current?oe.createElement(Te.Z,{noRestrictModal:rt,nodeRef:kt}):oe.createElement(oe.Fragment,null),[kt.current]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:mt()(Ce.container,ue),style:fe,ref:gn},oe.createElement("div",{ref:kt,className:Ce.liWrap,contentEditable:!Gt},Zt&&oe.createElement(je.Z,{cancelIndex:bt,streamingStatus:_t,loadImage:!1,onFinish:()=>Oe(void 0,null,function*(){ft(0),setTimeout(()=>qt(!1),0),be==null||be(Zt)}),value:Zt}),(Rt==null?void 0:Rt.length)>0&&oe.createElement(It.Z,{Filelist:Rt})),!Zt&&!Gt&&oe.createElement("div",{className:Ce.imgBox},oe.createElement("img",{width:56,src:Qe}),oe.createElement("span",null,"\u9884\u89C8\u533A")),ot&&Gt&&oe.createElement(lt.Z,{text:ht}),!Zn&&oe.createElement("div",{className:Ce.backBottom,onClick:()=>{gn.current.scrollTop=gn.current.scrollHeight}},oe.createElement("i",{className:"iconfont icon-huidaodibu"})),oe.createElement("div",{ref:bn}),Tt),!Gt&&$e&&nt)}},74549:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ie}});var oe=ae(59301),Ce={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Ie=({text:je})=>oe.createElement("div",null,oe.createElement("div",{className:Ce.loading},oe.createElement("div",{className:Ce.dot}),oe.createElement("div",{className:Ce.dot}),oe.createElement("div",{className:Ce.dot})),!!je&&oe.createElement("div",{className:"mt5"},je))},72409:function(He,Ee,ae){"use strict";ae.d(Ee,{o:function(){return oe}});const oe=Ce=>(Ce=Ce.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),Ce=Ce.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
`),Ce)},50337:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ie}});var oe=ae(59301),Ce={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Ie=({number:je,active:Te,className:Ge})=>oe.createElement("div",{className:`${Ce.digitalLabel} ${Te?Ce.active:""} ${Ge}`},je)},38518:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ue}});var oe=ae(59301),Ce=ae(18287),ke={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Ie=ae(73631),je=ae(5623),Te=ae(46722),Ge=Object.defineProperty,lt=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,It=(fe,me,be)=>me in fe?Ge(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,Oe=(fe,me)=>{for(var be in me||(me={}))mt.call(me,be)&&It(fe,be,me[be]);if(Ue)for(var be of Ue(me))Je.call(me,be)&&It(fe,be,me[be]);return fe},te=(fe,me)=>lt(fe,Qe(me)),ee=(fe,me,be)=>new Promise((Ae,De)=>{var Ye=at=>{try{$e(be.next(at))}catch(ht){De(ht)}},rt=at=>{try{$e(be.throw(at))}catch(ht){De(ht)}},$e=at=>at.done?Ae(at.value):Promise.resolve(at.value).then(Ye,rt);$e((be=be.apply(fe,me)).next())}),ue=({value:fe,onChange:me,scrollId:be})=>{const[Ae,De]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{Ye()},[]);const Ye=()=>ee(void 0,null,function*(){const vt=yield(0,Te.NZ)({});if(vt!=null&&vt.data){const xt=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:oe.createElement("img",{src:Ie,className:ke.folderIcon}),isLeaf:!1,children:rt(vt.data||[])}];De(xt)}}),rt=vt=>vt.map(xt=>({title:xt.name,key:xt.group_id,icon:oe.createElement("img",{src:Ie,className:ke.folderIcon}),isLeaf:xt.children.length===0,children:rt(xt.children)})),$e=(vt,xt,Tt)=>vt.map(_t=>_t.key===xt?Oe(Oe({},_t),Tt):_t.children?te(Oe({},_t),{children:$e(_t.children,xt,Tt)}):_t),at=(vt,xt,Tt)=>vt.map(_t=>{if(_t.key===xt)return te(Oe({},_t),{icon:Tt?oe.createElement("img",{src:je,className:ke.folderIcon}):oe.createElement("img",{src:Ie,className:ke.folderIcon})});if(_t.children)return te(Oe({},_t),{children:at(_t.children,xt,Tt)})}),ht=(vt,xt)=>{De(Tt=>at(Tt,xt.node.key,xt.expanded))},ot=fe?{selectedKeys:fe,defaultExpandedKeys:fe}:{};return Ae.length>0&&oe.createElement("div",{id:be||""},oe.createElement(Ce.default,Oe({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ae,className:ke.folderWrapper,onSelect:me,onExpand:ht},ot)))}},94361:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Te}});var oe=ae(37639),Ce={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ke=ae(32637),Ie=ae(59301),Te=({type:Ge,style:lt})=>{const Qe=Ie.createElement("div",{className:Ce.wrap,onClick:Ue=>{Ue.preventDefault(),Ue.stopPropagation()}},Ie.createElement("p",null,Ge==="shixun"||Ge==="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",Ie.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Ge==="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"),Ie.createElement("div",{className:Ce.contact},Ie.createElement("div",{className:Ce.img},Ie.createElement("img",{src:ke,width:"124px",height:"124px"})),Ie.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ie.createElement(oe.Z,{content:Qe},Ie.createElement("span",{className:Ce.text,style:lt},"\u9AD8\u6D88\u8017"))}},9507:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return mt}});var oe=ae(59301),Ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ke=ae(92310),Ie=ae.n(ke),je=ae(29787),Te=ae(2859),Ge=ae(38986),lt=ae(51257),Qe=(Je,It,Oe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Oe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Oe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Oe=Oe.apply(Je,It)).next())}),mt=({data:Je,className:It,fullWidth:Oe,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),[Ye,rt]=(0,oe.useState)(!1),[$e,at]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),Je!=null&&Je.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",Je!=null&&Je.src&&ht()):(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)}),[Je==null?void 0:Je.visible]);const ht=()=>Qe(void 0,null,function*(){rt(!0),at("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Tt=yield(0,lt.ZJ)(Je==null?void 0:Je.src);me.current.src="",me.current.src=Tt,me.current.onload=function(){xt()},rt(!1),at("")}),ot=Tt=>Qe(void 0,null,function*(){rt(!0),at("\u6B63\u5728\u4FDD\u5B58\u4E2D");const _t=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Je.title,file:Tt.dataUrl}});_t!=null&&_t.id&&!fe?(yield(0,Ge.ZP)(`/api/attachments/${Je.id}/add_subitem.json`,{method:"post",body:{subitem_id:_t==null?void 0:_t.id,settings:JSON.stringify(Tt.state)}})).status===0&&he():_t!=null&&_t.id&&he(_t),rt(!1),at("")}),vt=()=>{const Tt=document.querySelector('a[href="https://markerjs.com/"]');Tt&&Tt.parentNode&&(Tt.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(Jt=>{const Zt=document.querySelector(Jt.name);Zt&&Zt.setAttribute("title",Jt.title)})},xt=()=>{be.current=new Te.hP(me.current),be.current.targetRoot=De.current,be.current.addEventListener("render",ot),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(),Je!=null&&Je.snapshotData&&be.current.restoreState(Je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),vt()},300)};return oe.createElement(oe.Fragment,null,(Je==null?void 0:Je.visible)&&oe.createElement(je.Z,{spinning:Ye,tip:$e,style:{position:"absolute",width:"100vw"}},oe.createElement("div",{ref:De,className:Ie()(Ce.imageDimensions,It,Oe?Ce.fullWidth:""),style:te},oe.createElement("img",{className:Ce.img,ref:me}))))}},50043:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Re},$:function(){return Be}});var oe=ae(59301),Ce={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"},ke=ae(92310),Ie=ae.n(ke),je=ae(28284),Te=ae(6767),Ge=ae(62957),lt=ae(71051),Qe=ae(77019),Ue=ae(62673),mt=ae(75727),Je=ae(14566),It=ae(99571),Oe=ae(60242),te=ae(17149),ee=ae(37568),he=ae(9148),ue=ae(346),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(38986),Ye=ae(38518),rt=ae(5623),$e=ae(8944),at=ae(19105),ht=ae(17077),ot=ae(15342),vt=ae.n(ot),xt=(Ze,st,Fe)=>new Promise((St,hn)=>{var On=Ut=>{try{jt(Fe.next(Ut))}catch(Qt){hn(Qt)}},or=Ut=>{try{jt(Fe.throw(Ut))}catch(Qt){hn(Qt)}},jt=Ut=>Ut.done?St(Ut.value):Promise.resolve(Ut.value).then(On,or);jt((Fe=Fe.apply(Ze,st)).next())}),_t=oe.memo(({tagName:Ze="div",value:st="",className:Fe,style:St={},onBlur:hn,id:On})=>{const or=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(!or.current)return;xt(void 0,null,function*(){const Qt=or.current;Qt.innerHTML="";const En=st==null?void 0:st.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Mn of En)if(Mn.startsWith("$$")&&Mn.endsWith("$$")||Mn.startsWith("`$$")&&Mn.endsWith("$$`")){const Tn=Mn.startsWith("`$$")?Mn.slice(3,-3):Mn.slice(2,-2),Ht=document.createElement("span");Ht.setAttribute("contentEditable","false"),Ht.setAttribute("title",Mn),Ht.className="edu_latex",Qt.appendChild(Ht),vt().render(Tn,Ht,{throwOnError:!1})}else{const Tn=Mn==null?void 0:Mn.replace(/<[^>]*>/g,Ht=>Ht.startsWith("<img")?Ht:Ht.replace(/</g,"&lt;"));Qt.insertAdjacentHTML("beforeend",Tn)}})},[On]);const jt=()=>{var Ut,Qt;if(hn&&or.current){const Mn=or.current.cloneNode(!0),Tn=Mn.querySelectorAll("span.edu_latex");for(let Ht of Tn){const Vn=Ht.getAttribute("title"),Xt=document.createTextNode(Vn||""),nn=Ht;(Qt=(Ut=nn.parentNode)==null?void 0:Ut.replaceChild)==null||Qt.call(Ut,Xt,nn)}hn(Mn.innerHTML)}};return oe.createElement(oe.Fragment,null,oe.createElement(Ze,{ref:or,contentEditable:!0,className:Fe,style:St,onBlur:jt}))}),Jt=ae(48790),Zt=ae(49535),vn=ae(82105),bt=Object.defineProperty,ft=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,bn=(Ze,st,Fe)=>st in Ze?bt(Ze,st,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Ze[st]=Fe,gn=(Ze,st)=>{for(var Fe in st||(st={}))dn.call(st,Fe)&&bn(Ze,Fe,st[Fe]);if(qt)for(var Fe of qt(st))kt.call(st,Fe)&&bn(Ze,Fe,st[Fe]);return Ze},Zn=(Ze,st)=>ft(Ze,ct(st)),Gt=(Ze,st,Fe)=>new Promise((St,hn)=>{var On=Ut=>{try{jt(Fe.next(Ut))}catch(Qt){hn(Qt)}},or=Ut=>{try{jt(Fe.throw(Ut))}catch(Qt){hn(Qt)}},jt=Ut=>Ut.done?St(Ut.value):Promise.resolve(Ut.value).then(On,or);jt((Fe=Fe.apply(Ze,st)).next())});const Rt=Ze=>{Ze.preventDefault();let Fe=(Ze.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,Fe)},tn=Ze=>{Ze.key==="Enter"&&Ze.preventDefault()},zn=({children:Ze,style:st})=>oe.createElement("div",{className:Ce.leftBox,style:st,onPaste:Rt},Ze),Yn=({children:Ze,style:st,className:Fe})=>oe.createElement("div",{className:Ie()(Ce.rightBox,Fe),style:st,onPaste:Rt},Ze),nt=({className:Ze,style:st={},width:Fe=1200,onCancel:St=()=>{},onSuccess:hn=()=>{},gather:On={},mode:or=1,stickyTop:jt=0,subDisciplineId:Ut=[],hideWordFeatures:Qt,dataSource:En=[],customLeftHeadNode:Mn,customRightHeadNode:Tn,customLeftContent:Ht,hideRecognition:Vn=!1,onExchange:Xt,isSingleSelection:nn=!1,underpinBackgroundStyle:fn={},headExtraNode:Gn,isRefreshItemBank:cn=!1,okText:Et="\u786E\u5B9A\u5BFC\u5165",onSave:Jn})=>{var ir;const[Wt,wr]=(0,oe.useState)(1),[ei,Fr]=(0,oe.useState)(0),[Dn,ii]=(0,oe.useState)(""),[Kr,cr]=(0,oe.useState)(!1),[Dr,ri]=(0,oe.useState)([]),[_e,Mr]=(0,oe.useState)([]),[Tr,sr]=(0,oe.useState)(!1),[_r,Gr]=(0,oe.useState)(!1),[br,Ci]=(0,oe.useState)(!1),[Rn,Pn]=(0,oe.useState)(!1),[Sn,$n]=(0,oe.useState)([]),[li,Yr]=(0,oe.useState)(1),[ci,_n]=(0,oe.useState)(!1),[dr,oi]=(0,oe.useState)(!0),[bi,Pr]=(0,oe.useState)(0),[Lt,ln]=(0,oe.useState)(!1),[Nr]=je.default.useForm(),[Er]=je.default.useForm(),Yt=(0,oe.useRef)(null),Nn=(0,oe.useRef)(null),Xr=(0,oe.useRef)(),Ln=(0,oe.useRef)(null),Ve=["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"],Rr=["C","C++","Java","Python","JavaScript","Ruby"];(0,oe.useEffect)(()=>{En!=null&&En.length&&Wr(En)},[En]),(0,oe.useEffect)(()=>{Wt===2&&Yt.current.focus()},[Wt]),(0,oe.useEffect)(()=>{br&&jn()},[br]);const kr=()=>{if(Wt===1){Te.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Ge.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:()=>Gt(void 0,null,function*(){wr(1)})})},jn=()=>Gt(void 0,null,function*(){const pt=yield(0,De.ZP)("/api/disciplines.json",{method:"get",params:{source:or===1?"new_question":"subject"}});$n(pt.disciplines||[])}),hi=pt=>{const yn=[],xn=(Hn,pn)=>{Hn.length>=2&&yn.push(Hn.join(""));for(let tr=pn;tr<pt.length;tr++)Hn.push(pt[tr]),xn(Hn,tr+1),Hn.pop()};return xn([],0),yn},jr=pt=>(pt=pt||"",pt=String(pt),pt=pt.replace(/\s+/g,""),pt),ar=pt=>(pt=pt||"",pt=String(pt),pt=pt.replace(/<div>/g,""),pt=pt.replace(/<br>/g,`
`),pt=pt.replace(/<\/div>/g,`
`),pt=un(pt),pt),Qr=pt=>pt.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),un=pt=>pt.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),Ti=pt=>{var yn;const xn=pt.clipboardData;if(xn){const Hn=xn.types.toString(),pn=xn.items;if(Hn==="Files"||xn.types.indexOf("Files")>-1){pt.preventDefault();try{let tr=pn[1];((yn=pn[0])==null?void 0:yn.kind)==="file"&&(tr=pn[0]);const Qn=tr.getAsFile();(0,ht.I)(Qn,an=>{var hr;if(an.id){if(((hr=Qn==null?void 0:Qn.type)==null?void 0:hr.indexOf("image"))>-1){const Vr=`<img src='${ue.Z.API_SERVER}${an.url}'>`;document.execCommand("insertText",!1,Vr)}}else(an==null?void 0:an.status)===401&&(document.location.href="/user/login")})}catch(tr){Te.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function eo(pt,yn){return Gt(this,null,function*(){if(typeof pt=="string")return yield yn(pt);if(typeof pt!="object"||pt===null)return pt;if(Array.isArray(pt))return yield Promise.all(pt.map(pn=>Gt(this,null,function*(){return yield eo(pn,yn)})));const xn={};for(const Hn in pt)if(Object.prototype.hasOwnProperty.call(pt,Hn)){const pn=pt[Hn];typeof pn=="string"?xn[Hn]=yield yn(pn):typeof pn=="object"?xn[Hn]=yield eo(pn,yn):xn[Hn]=pn}return xn})}const mn=()=>Gt(void 0,null,function*(){var pt;cr(!0),ii("\u5904\u7406\u4E2D"),yield new Promise(Hn=>setTimeout(Hn,1e3));let yn=(pt=Nn.current)==null?void 0:pt.querySelectorAll('[data-text="edit"]'),xn="";try{yn.forEach(function(Hn){var pn,tr,Qn,an;const hr=Hn.cloneNode(!0),Vr=hr.querySelectorAll("span.edu_latex");for(let si of Vr){const Si=si.getAttribute("title"),Ii=document.createTextNode(Si),Bi=si;(tr=(pn=Bi.parentNode)==null?void 0:pn.replaceChild)==null||tr.call(pn,Ii,Bi)}const Ai=hr.querySelectorAll("span[style]");for(let si of Ai)if(si.style.fontFamily){const Si=si.innerHTML,Ii=document.createTextNode(Si),Bi=si;(an=(Qn=Bi.parentNode)==null?void 0:Qn.replaceChild)==null||an.call(Qn,Ii,Bi)}hr==null||hr.childNodes.forEach(function(si){si.nodeType===Node.ELEMENT_NODE&&si.localName!=="h5"&&si.localName!=="h4"?xn+=`<p>${si.innerHTML}</p>`:si.nodeType===Node.TEXT_NODE&&(xn+=`<p>${si.textContent}</p>`)})}),pi("/api/intelligent_imports/import.json",{html:un(xn)})}catch(Hn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Hn)}}),wi=pt=>{let yn=pt.filter(xn=>!!(xn!=null&&xn.type));return yn=yn.map(xn=>{var Hn;const pn=(Hn=mr.find(Qn=>Qn.id===(xn==null?void 0:xn.type)))==null?void 0:Hn.deal,tr=Zn(gn({},xn),{id:String(Math.random()).slice(-6),knowledgePoint:jr(xn==null?void 0:xn.knowledgePoint)});return pn?pn(tr):tr}),yn},Di=()=>{if(Wt===1){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Ge.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:mn})},gi=()=>oe.createElement("div",{className:Ce.row},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(zn,{style:{height:675}},Wt===1&&oe.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>wr(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:Ce.imgBox,style:{marginTop:75}},oe.createElement("img",{width:56,src:me}),oe.createElement("span",null,"\u7F16\u8F91\u533A"))),Wt===2&&oe.createElement("div",{"data-text":"edit",onBlur:()=>{Yt.current.innerHTML||wr(1)},ref:Yt,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),oe.createElement("div",{className:Ce.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},oe.createElement("div",{className:Ce.imgBox,style:{marginTop:240}},oe.createElement("img",{width:56,src:be}),oe.createElement("span",null,"\u9884\u89C8\u533A")))),ki=(pt,yn,xn,Hn)=>{var pn;console.log(pt,yn,xn,Hn,"onDataChange\u4FEE\u6539\u6570\u503C");const tr=JSON.parse(JSON.stringify(_e));Hn===void 0?tr[yn][pt]=xn:tr[yn].questions[Hn][pt]=xn;const Qn=gn({},tr[yn]),an=(pn=mr.find(hr=>hr.id===(Qn==null?void 0:Qn.type)))==null?void 0:pn.deal;tr[yn]=an(Qn),Mr(tr)},zi=(pt,yn,xn)=>{var Hn;const pn=xn!==void 0,tr=(Hn=mr.find(hr=>hr.id===(pt==null?void 0:pt.type)))==null?void 0:Hn.type,Qn=`${yn+1}.${xn===void 0?"":xn+1+"."}`,an=`${(pt==null?void 0:pt.type)==="7"?"{{":""}${Qn}\u3010${tr}\u3011${(pt==null?void 0:pt.question)||""}`;return oe.createElement(oe.Fragment,null,pn&&oe.createElement("h4",{contentEditable:!0}),oe.createElement(_t,{id:pt==null?void 0:pt.id,tagName:"div",value:an}))},ro=(pt,yn)=>Gt(void 0,null,function*(){var xn;const Hn=yield Xt(pt,yn),pn=(xn=Hn==null?void 0:Hn.data)==null?void 0:xn.content;if(pn!=null&&pn.length){const tr=wi(pn)[0];Dr.splice(yn,1,tr),_e.splice(yn,1,tr),ri([...Dr]),Mr([..._e])}}),Gi=(pt,yn,xn)=>{var Hn;const pn=xn!==void 0,tr=(Hn=mr.find(an=>an.id===(pt==null?void 0:pt.type)))==null?void 0:Hn.type,Qn=`${yn+1}.${xn===void 0?"":xn+1+"."}`;return pn?oe.createElement("div",{style:{padding:"10px 18px"}},`${Qn}\u3010${tr}\u3011`,oe.createElement(_t,{id:pt==null?void 0:pt.id,tagName:"span",className:Ce.edit,onBlur:an=>ki("question",yn,an,xn),value:(pt==null?void 0:pt.question)||""})):oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Ce.actionHead},oe.createElement("div",{className:"c-light-primary"},`${Qn}\u3010${tr}\u3011`),or!==1&&oe.createElement(lt.Z,{disabled:(pt==null?void 0:pt.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:an=>ki("score",yn,an,xn),value:pt==null?void 0:pt.score}),oe.createElement(Qe.Z,{align:"middle",style:{marginLeft:"auto"}},!!Xt&&oe.createElement("span",{className:"current c-light-primary mr30",onClick:()=>ro(pt,yn)},oe.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),oe.createElement(Ue.default,{onChange:an=>ki("checked",yn,an.target.checked,xn),checked:!!(pt!=null&&pt.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),oe.createElement(_t,{id:pt==null?void 0:pt.id,tagName:"div",style:{padding:"10px 18px"},className:Ce.edit,onBlur:an=>ki("question",yn,an,xn),value:pt==null?void 0:pt.question}))},Fi=(pt,yn,xn)=>oe.createElement(oe.Fragment,null,["0","1","2","4"].includes(pt==null?void 0:pt.type)&&oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u7B54\u6848\uFF1A${yn||""}`,tagName:"p"}),!xn&&oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u96BE\u5EA6\uFF1A${(pt==null?void 0:pt.difficulty)||""}`,tagName:"p"}),(pt==null?void 0:pt.type)!=="7"&&oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u89E3\u6790\uFF1A${(pt==null?void 0:pt.analyze)||""}`,tagName:"p"}),!xn&&oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(pt==null?void 0:pt.knowledgePoint)||""}`,tagName:"p"})),io=(pt,yn,xn,Hn)=>{const pn=Hn!==void 0,tr=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Qn=pn&&!pt.last&&!pt.errorMsg?{marginBottom:10}:{},an=tr.map(hr=>({key:hr,label:hr,onClick:()=>ki("difficulty",xn,hr,Hn)}));return oe.createElement("div",{className:Ce.liWrap,style:Qn},["4"].includes(pt==null?void 0:pt.type)&&oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),oe.createElement(_t,{id:pt==null?void 0:pt.id,tagName:"div",className:`${Ce.edit} c-black`,onBlur:hr=>ki("answer",xn,[hr],Hn),value:yn})),!pn&&oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(mt.Z,{menu:{items:an}},oe.createElement("span",{className:"c-light-primary"},pt==null?void 0:pt.difficulty,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(pt==null?void 0:pt.type)!=="7"&&oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),oe.createElement(_t,{id:pt==null?void 0:pt.id,tagName:"div",className:`${Ce.edit} c-grey-333`,onBlur:hr=>ki("analyze",xn,hr,Hn),value:pt==null?void 0:pt.analyze})),!pn&&oe.createElement("div",{onKeyDown:tn,className:Ce.li},oe.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),oe.createElement(_t,{id:pt==null?void 0:pt.id,tagName:"div",value:(pt==null?void 0:pt.knowledgePoint)||"",className:`${Ce.edit} c-grey-333`,onBlur:hr=>ki("knowledgePoint",xn,jr(ar(hr)),Hn)})))},qn=pt=>oe.createElement(oe.Fragment,null,typeof(pt==null?void 0:pt.errorMsg)=="string"&&!!(pt!=null&&pt.errorMsg)&&oe.createElement("h5",{contentEditable:!1},oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,pt==null?void 0:pt.errorMsg))),Ui=pt=>oe.createElement(oe.Fragment,null,typeof(pt==null?void 0:pt.errorMsg)=="string"&&!!(pt!=null&&pt.errorMsg)&&oe.createElement("h5",null,oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,pt==null?void 0:pt.errorMsg))),lr=(pt,yn,xn,Hn)=>{let pn="flex";return(nn&&bi!==Hn||Tr&&!(xn!=null&&xn.errorMsg))&&(pn="none"),oe.createElement("div",{className:Ce.row,style:{display:pn}},oe.createElement("div",{className:Ce.leftLayout},Ht||oe.createElement(zn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},pt))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Yn,{className:xn!=null&&xn.errorMsg?Ce.error:""},yn)))},mr=[{id:"0",type:"\u5355\u9009\u9898",element:(pt,yn,xn)=>{var Hn,pn;const tr=xn!==void 0;let Qn=(Hn=pt==null?void 0:pt.answer)==null?void 0:Hn[0];const an=oe.createElement(oe.Fragment,null,zi(pt,yn,xn),(pn=pt==null?void 0:pt.options)==null?void 0:pn.map((si,Si)=>oe.createElement(_t,{id:pt==null?void 0:pt.id,key:Si,value:`${Ve[Si]}.${si}`,tagName:"p"})),Fi(pt,Qn,tr),qn(pt));let hr=tr?pt:_e[yn];const Vr=hr==null?void 0:hr.options,Ai=oe.createElement(oe.Fragment,null,Gi(hr,yn,xn),Vr==null?void 0:Vr.map((si,Si)=>{var Ii;return oe.createElement("div",{key:Si,className:Ce.option},oe.createElement("aside",{className:((Ii=hr==null?void 0:hr.answer)==null?void 0:Ii[0])===Ve[Si]?Ce.active:"",onClick:()=>ki("answer",yn,[Ve[Si]],xn)},Ve[Si]),oe.createElement(_t,{id:hr==null?void 0:hr.id,tagName:"div",className:`${Ce.text}`,onBlur:Bi=>{Vr[Si]=Bi,ki("options",yn,Vr,xn)},value:si}))}),io(hr,"",yn,xn),Ui(hr));return tr?[an,Ai]:lr(an,Ai,hr,yn)},deal:pt=>{var yn,xn,Hn;pt.score=pt.score===void 0?2:pt.score;let pn=jr((yn=pt==null?void 0:pt.answer)==null?void 0:yn[0]).toUpperCase();pt.answer=pn?[pn]:[];let tr=[];if(!(pt!=null&&pt.options))tr.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{pt.options=(xn=pt.options)==null?void 0:xn.slice(0,8);const Qn=pt.options.map(hr=>hr==null?void 0:hr.trim().replace(/^\s+|\s+$/g,""));new Set(Qn).size!==Qn.length&&tr.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return pn||tr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),pn&&(Ve.slice(0,((Hn=pt==null?void 0:pt.options)==null?void 0:Hn.length)||8).includes(pn)||tr.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")),jr(pt==null?void 0:pt.question)||tr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pt.errorMsg=tr.join(`
`),pt}},{id:"1",type:"\u591A\u9009\u9898",element:(pt,yn,xn)=>{var Hn,pn;const tr=xn!==void 0;let Qn=(Hn=pt==null?void 0:pt.answer)==null?void 0:Hn[0];const an=oe.createElement(oe.Fragment,null,zi(pt,yn,xn),(pn=pt==null?void 0:pt.options)==null?void 0:pn.map((si,Si)=>oe.createElement(_t,{id:pt==null?void 0:pt.id,key:Si,value:`${Ve[Si]}.${si}`,tagName:"p"})),Fi(pt,Qn,tr),qn(pt));let hr=tr?pt:_e[yn];const Vr=hr==null?void 0:hr.options,Ai=oe.createElement(oe.Fragment,null,Gi(hr,yn,xn),Vr==null?void 0:Vr.map((si,Si)=>{var Ii,Bi;return oe.createElement("div",{key:Si,className:Ce.option},oe.createElement("aside",{className:(Bi=(Ii=hr==null?void 0:hr.answer)==null?void 0:Ii[0])!=null&&Bi.includes(Ve[Si])?Ce.active:"",onClick:()=>{var ao;let wo=((ao=hr==null?void 0:hr.answer)==null?void 0:ao[0])||"";const Ho=Ve[Si];wo.includes(Ho)?wo=wo.replace(new RegExp(Ho,"g"),""):wo+=Ho,wo=wo.split("").sort().join(""),ki("answer",yn,[wo],xn)}},Ve[Si]),oe.createElement(_t,{id:hr==null?void 0:hr.id,tagName:"div",className:`${Ce.text}`,onBlur:ao=>{Vr[Si]=ao,ki("options",yn,Vr,xn)},value:si}))}),io(hr,"",yn,xn),Ui(hr));return tr?[an,Ai]:lr(an,Ai,hr,yn)},deal:pt=>{var yn,xn,Hn;pt.score=pt.score===void 0?2:pt.score;let pn=jr((yn=pt==null?void 0:pt.answer)==null?void 0:yn[0]).toUpperCase().split("").sort().join("");pt.answer=pn?[pn]:[];let tr=[];if(!(pt!=null&&pt.options))tr.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{pt.options=(xn=pt.options)==null?void 0:xn.slice(0,8);const Qn=pt.options.map(hr=>hr==null?void 0:hr.trim().replace(/^\s+|\s+$/g,""));new Set(Qn).size!==Qn.length&&tr.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(pn||tr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),pn){const Qn=Ve.slice(0,((Hn=pt==null?void 0:pt.options)==null?void 0:Hn.length)||8);hi(Qn).includes(pn)||tr.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 jr(pt==null?void 0:pt.question)||tr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pt.errorMsg=tr.join(`
`),pt}},{id:"2",type:"\u5224\u65AD\u9898",element:(pt,yn,xn)=>{var Hn,pn;const tr=xn!==void 0;let Qn=(Hn=pt==null?void 0:pt.answer)==null?void 0:Hn[0];const an=oe.createElement(oe.Fragment,null,zi(pt,yn,xn),Fi(pt,Qn,tr),qn(pt));let hr=tr?pt:_e[yn];const Vr=["\u6B63\u786E","\u9519\u8BEF"];let Ai=((pn=hr==null?void 0:hr.answer)==null?void 0:pn[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Ai)?Ai="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ai)&&(Ai="\u9519\u8BEF");const si=oe.createElement(oe.Fragment,null,Gi(hr,yn,xn),Vr==null?void 0:Vr.map((Si,Ii)=>oe.createElement("div",{key:Ii,className:Ce.option},oe.createElement("aside",{style:{borderRadius:2},className:Ai===Si?Ce.active:"",onClick:()=>ki("answer",yn,[Si],xn)},Si==="\u6B63\u786E"?"T":"F"),oe.createElement("div",{style:{pointerEvents:"none"},className:`${Ce.text}`},Si))),io(hr,"",yn,xn),Ui(hr));return tr?[an,si]:lr(an,si,hr,yn)},deal:pt=>{var yn;pt.score=pt.score===void 0?2:pt.score;let xn=jr((yn=pt==null?void 0:pt.answer)==null?void 0:yn[0]);pt.answer=xn?[xn]:[];let Hn=[];return xn||Hn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),xn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(xn)&&Hn.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"),jr(pt==null?void 0:pt.question)||Hn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pt.errorMsg=Hn.join(`
`),pt}},{id:"3",type:"\u586B\u7A7A\u9898",element:(pt,yn,xn)=>{var Hn,pn;const tr=xn!==void 0,Qn=oe.createElement(oe.Fragment,null,zi(pt,yn,xn),(Hn=pt==null?void 0:pt.answer)==null?void 0:Hn.map((Vr,Ai)=>oe.createElement(_t,{id:pt==null?void 0:pt.id,key:Ai,tagName:"p",value:`\u7B54\u6848${Ai+1}\uFF1A${Vr.text||""}`})),Fi(pt,"",tr),qn(pt));let an=tr?pt:_e[yn];const hr=oe.createElement(oe.Fragment,null,Gi(an,yn,xn),(pn=an==null?void 0:an.answer)==null?void 0:pn.map((Vr,Ai)=>oe.createElement("div",{key:Ai,className:Ce.option},oe.createElement("aside",{className:Ce.fill},"\u586B\u7A7A\u9879",Ai+1),Vr.model===1&&oe.createElement(_t,{id:an==null?void 0:an.id,tagName:"div",onBlur:si=>{an.answer[Ai].latex=ar(si),ki("answer",yn,an.answer,xn)},className:`${Ce.text}`,value:Vr.latex}),Vr.model===2&&oe.createElement(at.Z,{value:Vr.latex,onChange:si=>{an.answer[Ai].latex=si,ki("answer",yn,an.answer,xn)}}))),io(an,"",yn,xn),Ui(an));return tr?[Qn,hr]:lr(Qn,hr,an,yn)},deal:pt=>{var yn,xn,Hn,pn;pt.score=pt.score===void 0?2:pt.score,pt.question=(yn=pt.question)==null?void 0:yn.replaceAll("\u2581","_");const tr=(xn=pt.answer)==null?void 0:xn.map(an=>{if(Object.prototype.toString.call(an)==="[object Object]")return an;an=an==null?void 0:an.trim();const hr={model:1,text:an,latex:an};return an.startsWith("$$")&&an.endsWith("$$")||an.startsWith("`$$")&&an.endsWith("$$`")?(hr.model=2,hr.latex=an.slice(2,-2)):hr.latex=ar(an),hr});pt.answer=tr;let Qn=[];return tr||Qn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),jr(pt==null?void 0:pt.question)?pt!=null&&pt.question.includes("_")?(Hn=pt==null?void 0:pt.answer)!=null&&Hn.length&&((pt==null?void 0:pt.question.match(/_+/g))||[]).length!==((pn=pt==null?void 0:pt.answer)==null?void 0:pn.length)&&Qn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Qn.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):Qn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pt.errorMsg=Qn.join(`
`),pt}},{id:"4",type:"\u7B80\u7B54\u9898",element:(pt,yn,xn)=>{var Hn,pn;const tr=xn!==void 0;let Qn=(Hn=pt==null?void 0:pt.answer)==null?void 0:Hn[0];const an=oe.createElement(oe.Fragment,null,zi(pt,yn,xn),Fi(pt,Qn,tr),qn(pt));let hr=tr?pt:_e[yn];const Vr=oe.createElement(oe.Fragment,null,Gi(hr,yn,xn),io(hr,(pn=hr==null?void 0:hr.answer)==null?void 0:pn[0],yn,xn),Ui(hr));return tr?[an,Vr]:lr(an,Vr,hr,yn)},deal:pt=>{pt.score=pt.score===void 0?5:pt.score;let yn=[];return jr(pt==null?void 0:pt.question)||yn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pt.errorMsg=yn.join(`
`),pt}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(pt,yn)=>{var xn,Hn;const pn=_e[yn],tr=Rr.slice(0,4).map(Qn=>({key:Qn,label:Qn,onClick:()=>ki("platform",yn,Qn)}));return oe.createElement("div",{className:Ce.row,style:{display:Tr?pn!=null&&pn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(zn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},zi(pt,yn),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(pt==null?void 0:pt.description)||""}`,tagName:"p"}),Fi(pt),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${pt==null?void 0:pt.timeLimit}`,tagName:"p"}),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(pt==null?void 0:pt.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.code)||"",tagName:"div"}),(xn=pt==null?void 0:pt.inputs)==null?void 0:xn.map((Qn,an)=>{var hr;return oe.createElement(oe.Fragment,{key:an},oe.createElement("h4",null),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${an+1})\u8F93\u5165\uFF1A${Qn||""}`,tagName:"div"}),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${an+1})\u8F93\u51FA\uFF1A${((hr=pt==null?void 0:pt.outputs)==null?void 0:hr[an])||""}`,tagName:"div"}))}),qn(pt)))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Yn,{className:pn!=null&&pn.errorMsg?Ce.error:""},Gi(pn,yn),oe.createElement("div",{className:Ce.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),oe.createElement(_t,{className:Ce.edit,id:pn==null?void 0:pn.id,value:pn==null?void 0:pn.description,tagName:"div",onBlur:Qn=>ki("description",yn,Qn)}))),io(pn,"",yn),oe.createElement("div",{className:Ce.liWrap},oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(_t,{className:Ce.edit,id:pn==null?void 0:pn.id,value:pn==null?void 0:pn.timeLimit,tagName:"div",onBlur:Qn=>ki("timeLimit",yn,ar(Qn))})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(mt.Z,{menu:{items:tr}},oe.createElement("span",{className:"c-light-primary"},pn==null?void 0:pn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Ce.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement(_t,{className:Ce.edit,id:pn==null?void 0:pn.id,value:(pn==null?void 0:pn.code)||"",onBlur:Qn=>ki("code",yn,ar(Qn)),tagName:"div"}))),(Hn=pn==null?void 0:pn.inputs)==null?void 0:Hn.map((Qn,an)=>{var hr;return oe.createElement("div",{className:Ce.liWrap,key:an},oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",an+1,")\u8F93\u5165\uFF1A"),oe.createElement(_t,{id:pn==null?void 0:pn.id,value:Qn||"",className:Ce.edit,onBlur:Vr=>{const Ai=[...(pn==null?void 0:pn.inputs)||[]];Ai[an]=ar(Vr),ki("inputs",yn,Ai)},tagName:"div"})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",an+1,")\u8F93\u51FA\uFF1A"),oe.createElement(_t,{id:pn==null?void 0:pn.id,value:((hr=pn==null?void 0:pn.outputs)==null?void 0:hr[an])||"",className:Ce.edit,onBlur:Vr=>{const Ai=[...(pn==null?void 0:pn.outputs)||[]];Ai[an]=ar(Vr),ki("outputs",yn,Ai)},tagName:"div"})))}),Ui(pn))))},deal:pt=>{var yn,xn,Hn;pt.score=pt.score===void 0?10:pt.score,pt.code=(yn=pt.code)==null?void 0:yn.trim();let pn=[];jr(pt==null?void 0:pt.question)?((xn=pt==null?void 0:pt.question)==null?void 0:xn.length)>60&&pn.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):pn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),jr(pt==null?void 0:pt.description)||pn.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const tr=jr(String((pt==null?void 0:pt.timeLimit)||""));if(pt.timeLimit=tr,(!tr||tr&&!["3","4","5","6","7","8","9","10"].includes(tr))&&pn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),pt.platform=jr(pt==null?void 0:pt.platform),pt!=null&&pt.platform){const Qn=["c","c++","java","python"],an=(Hn=pt==null?void 0:pt.platform)==null?void 0:Hn.toLowerCase(),hr=Qn.findIndex(Vr=>Vr===an);hr>-1?pt.platform=Rr[hr]:pn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else pn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(pt!=null&&pt.inputs)||!(pt!=null&&pt.outputs))pt.inputs=[],pt.outputs=[],pn.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 Qn=Math.min(pt.inputs.length,pt.outputs.length);pt.inputs=pt.inputs.slice(0,Qn),pt.outputs=pt.outputs.slice(0,Qn),pt.outputs.some(an=>!jr(an))&&pn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return pt.errorMsg=pn.join(`
`),pt}},{id:"7",type:"\u7EC4\u5408\u9898",element:(pt,yn)=>{var xn,Hn;const pn=_e[yn];return oe.createElement("div",{className:Ce.row,style:{display:Tr?pn!=null&&pn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(zn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},zi(pt,yn),Fi(pt),(xn=pt==null?void 0:pt.questions)==null?void 0:xn.map((tr,Qn)=>{var an;const hr=(an=mr.find(Vr=>Vr.id===(tr==null?void 0:tr.type)))==null?void 0:an.element;return oe.createElement(oe.Fragment,{key:`left-${pt.id}-${Qn}`},hr(tr,yn,Qn)[0])}),qn(pt),oe.createElement("p",{contentEditable:!0},"}}")))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Yn,{className:pn!=null&&pn.errorMsg?Ce.error:""},Gi(pn,yn),io(pn,"",yn),(Hn=pn==null?void 0:pn.questions)==null?void 0:Hn.map((tr,Qn)=>{var an;const hr=(an=mr.find(Vr=>Vr.id===(tr==null?void 0:tr.type)))==null?void 0:an.element;return oe.createElement(oe.Fragment,{key:`right-${pn.id}-${Qn}`},hr(tr,yn,Qn)[1])}),Ui(pn))))},deal:pt=>{var yn,xn,Hn,pn,tr;const Qn=wi,an=[...mr],hr=an.findIndex(Si=>Si.id==="0"),Vr=an.findIndex(Si=>Si.id==="1");if(hr!==-1){const Si=an[hr].deal;an[hr].deal=Ii=>{const Bi=Si(Ii);return Bi.errorMsg&&(Bi.errorMsg=Bi.errorMsg.split(`
`).filter(ao=>ao!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),Bi}}if(Vr!==-1){const Si=an[Vr].deal;an[Vr].deal=Ii=>{const Bi=Si(Ii);return Bi.errorMsg&&(Bi.errorMsg=Bi.errorMsg.split(`
`).filter(ao=>ao!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),Bi}}pt.questions=(yn=pt.questions)!=null&&yn.length?wi(pt.questions.slice(0,20)):[],pt.questions=(xn=pt.questions)==null?void 0:xn.map((Si,Ii)=>{var Bi;if(Si.type==="0"||Si.type==="1"){const ao=(Bi=Si.options)==null?void 0:Bi.map(wo=>wo==null?void 0:wo.trim().replace(/^\s+|\s+$/g,""));ao&&new Set(ao).size!==ao.length&&(Si.errorMsg=(Si.errorMsg?Si.errorMsg+`
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Zn(gn({},Si),{last:Ii===pt.questions.length-1})});const Ai=(Hn=pt.questions)==null?void 0:Hn.reduce((Si,Ii)=>{const Bi=parseFloat(Ii.score);return isNaN(Bi)?Si:Si+Bi},0);pt.score=Ai;let si=[];return(pn=pt.questions)!=null&&pn.length?pt.errorMsg=((tr=pt.questions)==null?void 0:tr.findIndex(Si=>!!Si.errorMsg))>-1:si.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),jr(pt==null?void 0:pt.question)||si.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),si.length&&(pt.errorMsg=si.join(`
`)),pt}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(pt,yn)=>{var xn,Hn;const pn=_e[yn],tr=Rr.map(Qn=>({key:Qn,label:Qn,onClick:()=>ki("platform",yn,Qn)}));return oe.createElement("div",{className:Ce.row,style:{display:Tr?pn!=null&&pn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(zn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},zi(pt,yn),Fi(pt),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${pt==null?void 0:pt.timeLimit}`,tagName:"p"}),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(pt==null?void 0:pt.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.code)||"",tagName:"div"}),oe.createElement("h4",null),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(pt==null?void 0:pt.input)||""}`,tagName:"p"}),oe.createElement(_t,{id:pt==null?void 0:pt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(pt==null?void 0:pt.output)||""}`,tagName:"p"}),(xn=pt==null?void 0:pt.answer)==null?void 0:xn.map((Qn,an)=>oe.createElement(_t,{key:an,id:pt==null?void 0:pt.id,value:`\u7B54\u6848${an+1}\uFF1A${Qn||""}`,tagName:"p"})),qn(pt)))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Yn,{className:pn!=null&&pn.errorMsg?Ce.error:""},Gi(pn,yn),io(pn,"",yn),oe.createElement("div",{className:Ce.liWrap},oe.createElement("div",{className:Ce.li,onKeyDown:tn},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(_t,{className:Ce.edit,id:pn==null?void 0:pn.id,value:pn==null?void 0:pn.timeLimit,tagName:"div",onBlur:Qn=>ki("timeLimit",yn,ar(Qn))})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(mt.Z,{menu:{items:tr}},oe.createElement("span",{className:"c-light-primary"},pn==null?void 0:pn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Ce.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement(_t,{className:Ce.edit,id:pn==null?void 0:pn.id,value:(pn==null?void 0:pn.code)||"",onBlur:Qn=>ki("code",yn,ar(Qn)),tagName:"div"})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),oe.createElement(_t,{className:Ce.edit,id:pn==null?void 0:pn.id,value:(pn==null?void 0:pn.input)||"",onBlur:Qn=>ki("input",yn,ar(Qn)),tagName:"div"})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),oe.createElement(_t,{className:Ce.edit,id:pn==null?void 0:pn.id,value:(pn==null?void 0:pn.output)||"",onBlur:Qn=>ki("output",yn,ar(Qn)),tagName:"div"}))),oe.createElement("div",{className:Ce.liWrap},(Hn=pn==null?void 0:pn.answer)==null?void 0:Hn.map((Qn,an)=>oe.createElement("div",{className:Ce.li,key:an},oe.createElement("aside",null,"\u7B54\u6848",an+1,"\uFF1A"),oe.createElement(_t,{id:pn==null?void 0:pn.id,value:Qn||"",className:Ce.edit,onBlur:hr=>{const Vr=[...(pn==null?void 0:pn.answer)||[]];Vr[an]=ar(hr),ki("output",yn,Vr)},tagName:"div"})))),Ui(pn))))},deal:pt=>{var yn,xn,Hn,pn,tr,Qn,an,hr;pt.score=pt.score===void 0?10:pt.score,pt.code=(Hn=(xn=(yn=pt.code)==null?void 0:yn.trim())==null?void 0:xn.replace(/@_@/g,"@\u2581@"))==null?void 0:Hn.replace(/@__@/g,"@\u2581\u2581@");let Vr=[];if(jr(pt==null?void 0:pt.question)||Vr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),jr(pt==null?void 0:pt.code)?/@▁@|@▁▁@/.test(pt==null?void 0:pt.code)?(pn=pt==null?void 0:pt.answer)!=null&&pn.length&&((tr=pt==null?void 0:pt.code.match(/@▁@|@▁▁@/g))==null?void 0:tr.length)!==((Qn=pt==null?void 0:pt.answer)==null?void 0:Qn.length)&&Vr.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Vr.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"):Vr.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),pt!=null&&pt.answer?(an=pt.answer)!=null&&an.some(si=>!jr(si))&&Vr.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Vr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),pt.platform=jr(pt==null?void 0:pt.platform),pt!=null&&pt.platform){const si=["c","c++","java","python","javascript","ruby"],Si=(hr=pt==null?void 0:pt.platform)==null?void 0:hr.toLowerCase(),Ii=si.findIndex(Bi=>Bi===Si);Ii>-1?pt.platform=Rr[Ii]:Vr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Vr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");jr(pt==null?void 0:pt.output)||Vr.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Ai=jr(String((pt==null?void 0:pt.timeLimit)||""));return pt.timeLimit=Ai,(!Ai||Ai&&!["3","4","5","6","7","8","9","10"].includes(Ai))&&Vr.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),pt.errorMsg=Vr.join(`
`),pt}}],wn=()=>oe.createElement(oe.Fragment,null,Dr.filter(pt=>{var yn;return!!((yn=mr.find(Hn=>Hn.id===(pt==null?void 0:pt.type)))==null?void 0:yn.element)}).map((pt,yn)=>{var xn;const Hn=(xn=mr.find(pn=>pn.id===(pt==null?void 0:pt.type)))==null?void 0:xn.element;return oe.createElement(oe.Fragment,{key:pt.id},Hn(pt,yn))})),it=()=>Gt(void 0,null,function*(){const pt=_e.filter(yn=>!yn.checked);if(Wt!==3||!pt.length){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Jn){ln(!0),yield Jn(_e),ln(!1);return}Nr.setFieldsValue({sub_discipline_id:Ut}),Ci(!0)}),Or=(pt,yn=[])=>{if(typeof pt=="string")return pt.trim();if(Array.isArray(pt))return pt.map(xn=>Or(xn,yn));if(typeof pt=="object"&&pt!==null){const xn={};for(const Hn in pt)pt.hasOwnProperty(Hn)&&(yn.includes(Hn)?xn[Hn]=pt[Hn]:xn[Hn]=Or(pt[Hn],yn));return xn}return pt},Wr=pt=>Gt(void 0,null,function*(){const yn=wi(Or(pt));ri(yn),Mr(JSON.parse(JSON.stringify(yn))),wr(3),cr(!1),sr(!1)});(0,oe.useEffect)(()=>{if(dr)return;const pt=()=>{Fr(yn=>yn>=90?(clearInterval(Xr.current),90):yn+1)};return Xr.current=setInterval(pt,5e4/90),()=>clearInterval(Xr.current)},[dr]);const pi=(pt,yn)=>{oi(!1);const xn=new FormData;Object.keys(yn).forEach(pn=>{xn.append(pn,yn[pn])});const Hn=new window.XMLHttpRequest;Hn.withCredentials=!0,Hn.addEventListener("load",function(pn){return Gt(this,null,function*(){var tr,Qn;try{const an=JSON.parse((tr=pn==null?void 0:pn.target)==null?void 0:tr.response);if(oi(!0),Fr(100),yield new Promise(hr=>setTimeout(()=>hr(),780)),an.status===0){if(!((Qn=an==null?void 0:an.data)!=null&&Qn.length)){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),cr(!1);return}Wr((an==null?void 0:an.data)||[])}else cr(!1),Te.ZP.warning(an==null?void 0:an.message)}catch(an){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",an)}})}),Hn.addEventListener("error",()=>{cr(!1)}),Hn.open("POST",`${ue.Z.API_SERVER}${pt}`),Hn.send(xn)},di=pt=>Gt(void 0,null,function*(){const yn=pt.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(yn)==-1?(Te.ZP.error(`${pt.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()):(cr(!0),ii("\u5904\u7406\u4E2D"),pi("/api/intelligent_imports/import.json",{file:pt}),Promise.reject())});let ai=[{key:1,label:oe.createElement(Je.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:di},oe.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Jt.Ny)()||(0,Jt.$O)())&&ai.push({key:2,label:oe.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Ln.current.onClick()}});const gr=[_e.length,(ir=_e.filter(pt=>!!(pt!=null&&pt.errorMsg)))==null?void 0:ir.length];return oe.createElement("div",{className:Ie()(Ce.intelligentBox,"intelligent-body-curb",Ze),style:Zn(gn({},st),{width:Fe}),ref:Nn},oe.createElement("div",{className:Ce.underpin},oe.createElement("b",{style:fn}),oe.createElement("b",{style:fn})),oe.createElement("div",{className:Ce.head,style:{top:jt}},oe.createElement("div",{className:Ce.leftLayout},Mn||oe.createElement(oe.Fragment,null,oe.createElement(Qe.Z,{align:"middle"},oe.createElement("div",{className:Ce.title},"\u8BD5\u9898\u7F16\u8F91"),!Qt&&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:kr,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Qt&&oe.createElement(mt.Z,{overlayClassName:Ce.menu,menu:{items:ai}},oe.createElement(he.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Gn&&Gn),oe.createElement("div",{className:Ce.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:Ce.rightLayout,style:{alignItems:"start"}},Tn||oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Ce.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Wt)&&oe.createElement(Ue.default,{className:"ml20",checked:Tr,onChange:pt=>sr(pt.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Wt)&&oe.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",oe.createElement("span",{className:"ml5 mr5 c-light-primary"},gr[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",oe.createElement("span",{className:"ml5 mr5 c-red-e53"},gr[1]),"\u9898")),nn&&oe.createElement("div",{className:Ce.tabs},Dr==null?void 0:Dr.map((pt,yn)=>oe.createElement("div",{onClick:()=>{Pr(yn)},className:bi===yn&&Ce.active,key:yn},"\u65B0\u9898",yn+1)))),oe.createElement("div",{className:Ce.centerBox},oe.createElement("img",{className:"mb10",src:Ae,width:56}),!Vn&&oe.createElement(he.op,{onClick:Di},"\u8BC6\u522B"))),[1,2].includes(Wt)&&gi(),[3].includes(Wt)&&wn(),oe.createElement("div",{className:"pb10"}),oe.createElement("div",{className:Ce.buttonFixed},oe.createElement("div",{className:Ce.buttonWrap},oe.createElement(It.ZP,{size:"middle",className:`${Ce.button} mr20`,onClick:St},"\u53D6\u6D88"),oe.createElement(It.ZP,{size:"middle",type:"primary",loading:Lt,className:`${Ce.button}`,onClick:it},Et))),oe.createElement(Ge.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Kr,title:null,footer:null,width:320,afterClose:()=>Fr(0)},oe.createElement(Qe.Z,{align:"middle",style:{flexDirection:"column"}},oe.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Dn,oe.createElement("span",{className:Ce.dotLoading},oe.createElement("span",null,"."),oe.createElement("span",null,"."),oe.createElement("span",null,"."))),oe.createElement(Oe.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:ei}),oe.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",oe.createElement("span",{className:"ml5 c-light-primary"},ei,"%")))),oe.createElement(Ge.default,{centered:!0,open:br,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:_r,width:500,onCancel:()=>Ci(!1),onOk:()=>Nr.submit(),afterClose:()=>{Nr.resetFields()}},oe.createElement(je.default,{style:{maxHeight:550},form:Nr,layout:"horizontal",colon:!1,size:"large",onFinish:pt=>Gt(void 0,null,function*(){var yn,xn,Hn,pn,tr;const Qn=_e.filter(Vr=>!Vr.checked&&!Vr.errorMsg);Gr(!0);const an=()=>Gt(void 0,null,function*(){var Vr,Ai;const si=yield(0,De.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Zn(gn(gn({},On),pt),{list:Qn,mode:or})});si.status===0&&(cn&&((Vr=si==null?void 0:si.data)!=null&&Vr.success)&&window.location.pathname==="/problemset"&&(Zt.Z.publish("refresh-item-bank",pt.group_id),yield new Promise(Si=>setTimeout(()=>Si(),1500))),Te.ZP.success(`\u6210\u529F\u5BFC\u5165${(Ai=si==null?void 0:si.data)==null?void 0:Ai.success}\u9053\u8BD5\u9898`,3),hn(si),Ci(!1)),Gr(!1)});if(or!==1){yield an();return}const hr=yield(0,De.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:_e,mode:or}});if(hr.status===0){if(!((yn=hr==null?void 0:hr.data)!=null&&yn.error_size)){yield an();return}Ge.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Gr(!1)},title:"\u63D0\u793A",content:oe.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",oe.createElement("span",{className:"c-light-primary ml5 mr5"},(xn=hr==null?void 0:hr.data)==null?void 0:xn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",oe.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Hn=hr==null?void 0:hr.data)==null?void 0:Hn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",oe.createElement("span",{className:"ml5 mr5"},(tr=(pn=hr==null?void 0:hr.data)==null?void 0:pn.index)==null?void 0:tr.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:an})}})},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(je.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:Sn})),or===1&&oe.createElement(je.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:()=>Pn(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},oe.createElement("img",{className:"mr5 primary-hover",src:rt}),"\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(Ye.Z,{key:li})))),oe.createElement(Ge.default,{centered:!0,open:Rn,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:ci,onCancel:()=>Pn(!1),onOk:()=>Er.submit(),afterClose:()=>{Er.resetFields()}},oe.createElement(je.default,{style:{maxHeight:550},form:Er,layout:"horizontal",colon:!1,size:"large",onFinish:pt=>Gt(void 0,null,function*(){var yn;_n(!0),(yield(0,De.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:pt.name,parent_id:(yn=pt==null?void 0:pt.parent_id)==null?void 0:yn[0]}})).status===0?(Yr(li+1),setTimeout(()=>{Te.ZP.success("\u64CD\u4F5C\u6210\u529F"),Pn(!1),_n(!1)},1e3)):_n(!1)})},oe.createElement(je.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(je.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},oe.createElement(Ye.Z,null)))),oe.createElement(vn.Z,{onSave:pt=>{cr(!0),ii("\u5904\u7406\u4E2D"),pi("/api/intelligent_imports/import.json",{html:pt})},ref:Ln}))},Be=fe;var Re=nt},19105:function(He,Ee,ae){"use strict";var oe=ae(59301),Ce=ae(99587),ke=ae(48136),Ie=ae(76562),je=ae(62957),Te=ae(59301);const Ge=(0,oe.forwardRef)(({callback:lt,width:Qe,onChange:Ue,disabled:mt,readOnly:Je,type:It="",value:Oe="",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,Ye]=(0,oe.useState)(!1),rt=()=>{var ot=document.createElement("div");ot.innerHTML=he.current.getValue();var vt=ot.innerText;return lt&&lt(vt),vt};(0,oe.useImperativeHandle)(ee,()=>({getData:rt}));const $e=ot=>{ot.preventDefault();const vt=ot.clientX-fe,xt=ot.clientY-be;document.body.onmousemove=Tt=>{let _t=Tt.clientX-vt,Jt=Tt.clientY-xt;const Zt=document.getElementsByClassName("markdown-popup-form")[0],vn=window.innerWidth-Zt.offsetWidth,bt=window.innerHeight-Zt.offsetHeight;_t=Math.max(0,Math.min(_t,vn)),Jt=Math.max(0,Math.min(Jt,bt)),at(Tt.clientX,Tt.clientY,vt,xt)&&(me(_t),Ae(Jt))},document.body.onmouseup=function(){document.body.onmousemove=null}},at=(ot,vt,xt,Tt)=>{const _t=document.body.clientHeight,Jt=document.body.clientWidth;return ot<20&&xt>ot||ot>Jt-20&&xt<ot||vt<20&&Tt>vt||vt>_t-20&&Tt<vt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,oe.useEffect)(()=>{De&&setTimeout(()=>{const ot=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth/2-ot.offsetWidth/2,xt=window.innerHeight/2-ot.offsetHeight/2;me(vt),Ae(xt)},0)},[De]);const ht=()=>{mt||Je||Ye(!0)};return Te.createElement("div",{style:te},Te.createElement("div",{style:{width:Qe||"100%",position:"relative"},className:`${Ce.Z.mathFillWrap} ${mt||Je?"cursorDefault":""}`,onClick:()=>ht()},Te.createElement("math-field",{disabled:mt,locale:"zh_cn",class:`${Ce.Z.mathField} ${It}`,readOnly:Je,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:he,style:{width:"100%",fontSize:Oe?18:14},value:Oe||""})),Te.createElement(je.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:fe,top:be},title:Te.createElement("div",{style:{cursor:"move"},onMouseDown:$e},"\u8F93\u5165\u516C\u5F0F"),open:De,onOk:()=>{const ot=ue.current.getData();he.current.setValue(ot),Ue(ot),Ye(!1)},onCancel:()=>{Ye(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Te.createElement(Ie.Z,{value:Oe,ref:ue,onChange:Ue,showSaveButton:!1})))});Ee.Z=Ge},76562:function(He,Ee,ae){"use strict";var oe=ae(59301),Ce=ae(77019),ke=ae(5269),Ie=ae(20554),je=ae(99571),Te=ae(76902),Ge=ae(99587),lt=ae(48136),Qe=ae(59301);const Ue=(0,oe.forwardRef)(({callback:mt,showSaveButton:Je,value:It=""},Oe)=>{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(Ce.Z,{className:Ge.Z.lists,gutter:[10,10]},ee.map((be,Ae)=>Qe.createElement(ke.Z,{flex:"110px",className:Ge.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:`$$${be.value}$$`}),be.name),Qe.createElement("div",{className:Ge.Z.children},be.children.map((De,Ye)=>Qe.createElement("div",{key:Ye},Qe.createElement("h1",null,De.name),Qe.createElement(Ce.Z,{gutter:[10,10]},De.data.map((rt,$e)=>Qe.createElement(ke.Z,{key:$e,onClick:()=>ue(rt),className:Ge.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+rt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Qe.createElement(Ce.Z,{className:Ge.Z.lists,gutter:[10,10]},he.map((be,Ae)=>Qe.createElement(ke.Z,{flex:"110px",className:Ge.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:"`$$"+be.value+"$$`"}),be.name),Qe.createElement("div",{className:Ge.Z.children},be.children.map((De,Ye)=>Qe.createElement("div",{key:Ye},De.name&&Qe.createElement("h1",null,De.name),Qe.createElement(Ce.Z,{gutter:[10,10]},De.data.map((rt,$e)=>Qe.createElement(ke.Z,{key:$e,onClick:()=>ue(rt),className:Ge.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+rt.value+"$$`"}))))))))))}],me=()=>{var be=document.createElement("div");be.innerHTML=te.current.getValue();var Ae=be.innerText;return mt&&mt(Ae),Ae};return(0,oe.useImperativeHandle)(Oe,()=>({getData:me})),Qe.createElement("div",{className:Ge.Z.mathWrap},Qe.createElement(Ie.default,{defaultActiveKey:"1",items:fe}),Qe.createElement("math-field",{locale:"zh_cn",className:Ge.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},It||""),Je&&Qe.createElement("div",{className:Ge.Z.button},Qe.createElement(je.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ee.Z=Ue},22962:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Je}});var oe=ae(59301),Ce=ae(28284),ke=ae(62957),Ie=ae(37568),je=ae(87169),Te=ae(38986),Ge={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},lt=ae(52154),Qe=ae(59301),Ue=(It,Oe,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(It,Oe)).next())}),Je=({type:It="subject",open:Oe,onCancel:te,onOkClick:ee,subDisciplineId:he})=>{const[ue]=Ce.default.useForm(),[fe,me]=(0,oe.useState)([]),[be,Ae]=(0,oe.useState)(!1);(0,oe.useEffect)(()=>{},[]);const De=()=>Ue(void 0,null,function*(){if(It){const Ye=yield(0,Te.ZP)("/api/disciplines.json",{method:"get",params:{source:It}});me(Ye.disciplines||[])}});return Qe.createElement(ke.default,{title:Qe.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:Oe,width:558,centered:!0,className:Ge.publicQuest,onCancel:()=>{te(),ue.resetFields()},onOk:()=>{ue.validateFields().then(Ye=>Ue(void 0,null,function*(){const rt=yield(0,Te.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Ye==null?void 0:Ye.name,sub_discipline_id:he}});(rt==null?void 0:rt.status)===0&&ee({name:Ye==null?void 0:Ye.name,id:rt==null?void 0:rt.tag_discipline_id,public:!1,type:"personal"}),ue.resetFields(),te()}))}},Qe.createElement("div",{className:Ge.publicQuestContent},Qe.createElement("div",{className:Ge.public_tips},Qe.createElement(je.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(Ce.default,{labelAlign:"left",form:ue,colon:!1},Qe.createElement(Ce.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},Qe.createElement(Ie.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),Qe.createElement(lt.Z,{open:be,onCancel:()=>{Ae(!1)}})))}},28426:function(He,Ee,ae){"use strict";var oe=ae(59301),Ce=ae(93314),ke=ae(99571),Ie=Object.defineProperty,je=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ue=(Oe,te,ee)=>te in Oe?Ie(Oe,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Oe[te]=ee,mt=(Oe,te)=>{for(var ee in te||(te={}))lt.call(te,ee)&&Ue(Oe,ee,te[ee]);if(Ge)for(var ee of Ge(te))Qe.call(te,ee)&&Ue(Oe,ee,te[ee]);return Oe},Je=(Oe,te)=>je(Oe,Te(te));const It=({img:Oe,buttonProps:te={},styles:ee={},customText:he,ButtonText:ue,ButtonClick:fe,Buttonclass:me,ButtonTwo:be,imgStyles:Ae,loading:De=!1,className:Ye=""})=>oe.createElement("section",{className:`tc animated fadeIn ${Ye}`,style:mt({color:"#999",margin:"100px auto",visibility:De?"hidden":"visible"},ee)},oe.createElement("img",{src:Oe||Ce,style:Je(mt({},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(ke.ZP,mt({className:me,onClick:fe},te),ue),be&&be);Ee.Z=It},45677:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Ce={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ke=ae(99571),Ie=ae(70557),je=ae(75975),Te=ae(25399),Ge=ae(51257),lt=ae(81722),Qe=ae(28426),Ue=ae(346),mt=ae(44203),Je=ae(59301),It=Object.defineProperty,Oe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(be,Ae,De)=>Ae in be?It(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(Oe)for(var De of Oe(Ae))ee.call(Ae,De)&&he(be,De,Ae[De]);return be},fe=(be,Ae,De)=>new Promise((Ye,rt)=>{var $e=ot=>{try{ht(De.next(ot))}catch(vt){rt(vt)}},at=ot=>{try{ht(De.throw(ot))}catch(vt){rt(vt)}},ht=ot=>ot.done?Ye(ot.value):Promise.resolve(ot.value).then($e,at);ht((De=De.apply(be,Ae)).next())}),me=({editOffice:be="view",data:Ae,issaver:De,onSaver:Ye,theme:rt,type:$e,filename:at,monacoEditor:ht,className:ot,style:vt,close:xt,onClose:Tt,hasMask:_t,disabledDownload:Jt,onImgDimensions:Zt,showNodata:vn,recordInfo:bt})=>{const[ft,ct]=(0,oe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[qt,dn]=(0,oe.useState)(""),[kt,bn]=(0,oe.useState)(),gn=window.ENV==="build"?"/react/build":"",Zn=location.host.startsWith("localhost")?Ue.Z.PROXY_SERVER:Ue.Z.API_SERVER,Rt=10*(1024*1024),tn=(0,oe.useRef)();Ae!=null&&Ae.startsWith("/api")&&$e!=="txt"&&(Ae=Ue.Z.API_SERVER+Ae);const zn=Ze=>Ze.substring(Ze.lastIndexOf("/")+1).split(".").pop();at&&ht&&(ht.filename=at),(0,oe.useEffect)(()=>{var Ze,st;const Fe=(st=(Ze=document.cookie)==null?void 0:Ze.replace(/\s/g,""))==null?void 0:st.split(";");Fe==null||Fe.map(St=>{let hn=St.split("=");hn[0]==="_educoder_session"&&dn(hn[1])})},[]),(0,oe.useEffect)(()=>{$e==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?bn({url:Ae,fileType:zn(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):nt())},[$e,Ae]);function Yn(Ze){return fe(this,null,function*(){Ze.data.type==="pdfdata"&&(Ye(Ze.data.data),window.removeEventListener("message",Yn,!1)),console.log("mess---:",Ze.data)})}const nt=()=>fe(void 0,null,function*(){console.log("data:",Ae);let Ze=Ae;Ae.startsWith("http")||(Ze=location.origin+Ze);let st=new URL(Ze).pathname.split("/").pop();const Fe=yield(0,lt.gJ)({attachment_id:st});Fe.url=Zn+Fe.url,bn(Fe)}),Be=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){Re();return}(0,Ge.Sv)(at||"educoder",Ae,at)},Re=()=>{bt&&(0,mt.fc)({id:bt==null?void 0:bt.id,watch_type:1,course_id:bt==null?void 0:bt.course_id}),(0,Ge.Nd)(at||"educoder",decodeURIComponent(Ae))};return Je.createElement("div",{style:ue({},vt||{}),className:`${_t&&Ce.bgBlack} ${$e?Ce.wrp:"hide"}`},xt&&Je.createElement("div",{className:Ce.close,ref:tn},!!Zt&&Je.createElement(Te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>tn.current},Je.createElement("span",{onClick:()=>{Tt(),Zt()}},Je.createElement("i",{className:"icon-yulanpizhu"}))),!Jt&&Je.createElement(Te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>tn.current},Je.createElement("span",{onClick:Re},Je.createElement("i",{className:"icon-quxiaozhiding"}))),De&&Je.createElement(Te.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>tn.current},Je.createElement("span",{className:"",onClick:()=>{const Ze=document.getElementById("pdfiframe");window.addEventListener("message",Yn,!1),setTimeout(()=>{Ze.contentWindow.postMessage("getData","*")},300)}},Je.createElement("i",{className:"icon-baocun"}))),Je.createElement(Te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>tn.current},Je.createElement("span",{className:"",onClick:()=>{Tt()}},Je.createElement("i",{className:"icon-guanbi1"})))),Je.createElement("div",{className:`${Ce[ot]} ${ot} ${Ce.monaco} ${$e==="txt"?"show":"hide"}`},$e==="txt"&&Je.createElement(Je.Fragment,null,Je.createElement(je.ZP,ue({},ht)))),$e==="audio"&&Je.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}),$e==="video"&&Je.createElement(Je.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?Je.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):Je.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),$e==="office"&&kt&&Je.createElement("iframe",{src:`${gn}/office.html?key=${kt.key}&url=${btoa(kt.url)}&callbackUrl=${Zn+(kt.callbackUrl||"")}&fileType=${kt.fileType}&title=${kt.title||""}&model=${be}&officeServer=${Ue.Z.ONLYOFFICE}&disabledDownload=${!!Jt}`}),$e==="html"&&Je.createElement("iframe",{src:Ae+"&disposition=inline"}),$e==="pdf"&&Je.createElement("iframe",{id:"pdfiframe",src:`${gn}/js/pdfview/index.html?filename=${at||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Jt}&model=${be}`}),$e==="image"&&Je.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),($e==="other"||$e==="download")&&Je.createElement(Je.Fragment,null,vn?Je.createElement(Qe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Je.createElement(ke.ZP,{icon:Je.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Be,disabled:Jt},"\u4E0B\u8F7D")}):Je.createElement(ke.ZP,{type:"primary",size:"middle",onClick:Be,disabled:Jt},Je.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},70100:function(He,Ee,ae){"use strict";ae.d(Ee,{Q:function(){return Qe},Z:function(){return mt}});var oe=ae(59301),Ce={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"},ke=ae(92310),Ie=ae.n(ke),je=ae(62957),Te=ae(6767),Ge=ae(62673),lt=(Je,It,Oe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Oe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Oe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Oe=Oe.apply(Je,It)).next())});const Qe=({title:Je="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:It=[],visible:Oe,setVisible:te,tip:ee,onOk:he})=>{const[ue,fe]=(0,oe.useState)([]),[me,be]=(0,oe.useState)(!1);return(0,oe.useEffect)(()=>{Oe&&fe(It)},[Oe]),oe.createElement(je.default,{centered:!0,open:Oe,title:Je,confirmLoading:me,width:564,onOk:()=>lt(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(Ge.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 mt=({title:Je="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:It,style:Oe={},onEdit:te,dataSource:ee=[]})=>{const he={C:oe.createElement("div",{className:Ce.c},"C"),"C++":oe.createElement("div",{className:Ce.cpp},"C++"),Java:oe.createElement("div",{className:Ce.java},"Java"),Python:oe.createElement("div",{className:Ce.python},"Python")};return oe.createElement("div",{className:Ie()(Ce.tags,It),style:Oe},!!Je&&oe.createElement("div",{className:Ce.text},Je),oe.createElement("div",{className:Ce.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 ${Ce.edit}`}))}},68571:function(He,Ee,ae){"use strict";ae.d(Ee,{t:function(){return Re}});var oe=ae(59301),Ce=ae(37568),ke=ae(28284),Ie=ae(62957),je=ae(77019),Te=ae(5269),Ge=ae(71051),lt=ae(82326),Qe=ae(47889),Ue=ae(31457),mt=ae(25690),Je=ae(8423),It=ae(6767),Oe=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(38986),fe=ae(81072),me=ae(39793),be=ae(56102),Ae=ae(37345),De=ae(59301),Ye=Object.defineProperty,rt=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,vt=(Ze,st,Fe)=>st in Ze?Ye(Ze,st,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Ze[st]=Fe,xt=(Ze,st)=>{for(var Fe in st||(st={}))ht.call(st,Fe)&&vt(Ze,Fe,st[Fe]);if(at)for(var Fe of at(st))ot.call(st,Fe)&&vt(Ze,Fe,st[Fe]);return Ze},Tt=(Ze,st)=>rt(Ze,$e(st)),_t=(Ze,st,Fe)=>new Promise((St,hn)=>{var On=Ut=>{try{jt(Fe.next(Ut))}catch(Qt){hn(Qt)}},or=Ut=>{try{jt(Fe.throw(Ut))}catch(Qt){hn(Qt)}},jt=Ut=>Ut.done?St(Ut.value):Promise.resolve(Ut.value).then(On,or);jt((Fe=Fe.apply(Ze,st)).next())}),Zt=({buttonProps:Ze,buttonText:st,form:Fe,hackIdentifier:St="",answerKey:hn,data:On})=>{const[or,jt]=(0,oe.useState)(!1),[Ut,Qt]=(0,oe.useState)(!1),[En,Mn]=(0,oe.useState)(!1),[Tn,Ht]=(0,oe.useState)({}),[Vn,Xt]=(0,oe.useState)(""),[nn,fn]=(0,oe.useState)(""),Gn=(0,oe.useRef)(St),cn=(0,oe.useRef)(""),Et=(0,oe.useRef)(!1);(0,oe.useEffect)(()=>{En&&wr()},[En]),(0,oe.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Jn=()=>new Date().getTime(),ir=On==null?void 0:On.code,Wt=()=>{var Dn,ii;let Kr=ir?On==null?void 0:On.code:(Dn=Fe.getFieldValue("hack_codes"))==null?void 0:Dn.code,cr=ir?On==null?void 0:On.answer_content:Fe.getFieldValue(hn),Dr=ir?On==null?void 0:On.input:(ii=Fe.getFieldValue("hack_sets"))==null?void 0:ii.input;cr==null||cr.forEach(ri=>{const _e=ri.value||ri.answer_text||"";Kr=Kr.replace(/(@▁@|@▁▁@)/,_e)}),fn(Dr),Xt(Kr),Ht({}),Mn(!0)},wr=()=>_t(void 0,null,function*(){var Dn,ii,Kr,cr;const Dr=Jn(),ri=ir?On==null?void 0:On.time_limit:(Dn=Fe.getFieldsValue())==null?void 0:Dn.hack.time_limit,_e=ir?(ii=On==null?void 0:On.answer_content)==null?void 0:ii.length:(cr=(Kr=Fe.getFieldsValue())==null?void 0:Kr.standard_answers)==null?void 0:cr.length;jt(!0),yield(0,fe.bM)(cn.current,{test_hack_code:Vn,test_input:nn});function Mr(){return _t(this,null,function*(){const{status:Tr,data:sr}=yield(0,fe.rX)(cn.current,"submit"),Gr=Jn()-Dr>(ri+3)*1e3*_e;if(Et.current){if(Gr){It.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),jt(!1);return}if(Tr===0){jt(!1),Ht(Tt(xt({},sr),{showText:!0}));return}setTimeout(Mr,1e3)}})}Mr()}),ei=()=>_t(void 0,null,function*(){var Dn,ii,Kr,cr,Dr,ri,_e;if(!On){try{yield Fe.validateFields()}catch(_r){(Kr=(ii=(Dn=_r==null?void 0:_r.errorFields)==null?void 0:Dn[0])==null?void 0:ii.name)!=null&&Kr.includes("standard_answers")?It.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):It.ZP.error(_r.errorFields[0].errors[0]),Fe.scrollToField(_r.errorFields[0].name,{behavior:"smooth",block:"center"});return}Qt(!0);let Tr="";const sr=Fe.getFieldsValue();Gn.current?Tr=yield(0,ue.ZP)(`/api/problems/${Gn.current}.json`,{method:"put",body:Tt(xt({},sr),{hack:Tt(xt({},sr==null?void 0:sr.hack),{sub_discipline_id:(_e=(ri=sr==null?void 0:sr.hack)==null?void 0:ri.sub_discipline_id)==null?void 0:_e[1],difficult:sr.difficulty,item_banks_group_id:sr.item_banks_group_id}),hack_codes:Tt(xt({},sr.hack_codes),{code:ee.Base64.encode(sr.hack_codes.code)}),update_hack_sets:[xt({},sr.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(Tr=yield(0,ue.ZP)("/api/problems.json",{method:"post",body:Tt(xt({},sr),{hack:Tt(xt({},sr==null?void 0:sr.hack),{sub_discipline_id:(Dr=(cr=sr==null?void 0:sr.hack)==null?void 0:cr.sub_discipline_id)==null?void 0:Dr[1],difficult:sr.difficulty,item_banks_group_id:sr.item_banks_group_id}),hack_codes:Tt(xt({},sr.hack_codes),{code:ee.Base64.encode(sr.hack_codes.code)}),hack_sets:[xt({},sr.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),Gn.current=Tr==null?void 0:Tr.identifier,sessionStorage.projectFill=Tr==null?void 0:Tr.identifier)}const Mr=yield(0,ue.ZP)(`/api/problems/${Gn.current}/start.json`,{method:"get"});if((Mr==null?void 0:Mr.status)===0){cn.current=Mr==null?void 0:Mr.identifier,Et.current=!0,Qt(!1),Wt();return}Qt(!1)}),Fr=Dn=>{const{status:ii,error_msg:Kr,execute_time:cr,output:Dr,input:ri,expected_output:_e}=Dn;let Mr=null;switch(ii){case Ae.h.OK:Mr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",cr/1e3,"\u79D2"),De.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ae.h.NOMATCH:Mr=De.createElement(De.Fragment,null,De.createElement("div",null,"\u8F93\u5165\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},ri),De.createElement("div",null,"\u8F93\u51FA\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},Dr&&ee.Base64.decode(Dr)),De.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},_e&&ee.Base64.decode(_e)));break;case Ae.h.EXECUTEFAILURE:Mr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",De.createElement("pre",null,ri)),De.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),De.createElement("pre",{className:"error"},ee.Base64.decode(Kr)));break;case Ae.h.COMPILEFAILURE:Mr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",De.createElement("pre",null,ri)),De.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),De.createElement("pre",{className:"error"},ee.Base64.decode(Kr)));break;case Ae.h.PODFAILURE:Mr=De.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ae.h.TIMEOUT:Mr=De.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return De.createElement(De.Fragment,null," ",Mr," ")};return De.createElement("div",null,De.createElement(Oe.ZP,Tt(xt({loading:Ut},Ze),{onClick:ei}),st),De.createElement(Ie.default,{open:En,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:or,cancelButtonProps:{style:{display:"none"}},onOk:()=>wr(),onCancel:()=>{Et.current=!1,Mn(!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"),!On&&De.createElement(be.CopyToClipboard,{text:Vn,onCopy:()=>It.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:Vn,onChange:Dn=>Xt(Dn)})),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(Ce.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:nn,onChange:Dn=>fn(Dn.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:or,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},De.createElement("div",{className:he.li,style:{height:196,overflow:"auto",padding:10}},Fr(Tn))))))))},vn=ae(87169),bt=ae(59301),ft=Object.defineProperty,ct=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,gn=(Ze,st,Fe)=>st in Ze?ft(Ze,st,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Ze[st]=Fe,Zn=(Ze,st)=>{for(var Fe in st||(st={}))kt.call(st,Fe)&&gn(Ze,Fe,st[Fe]);if(dn)for(var Fe of dn(st))bn.call(st,Fe)&&gn(Ze,Fe,st[Fe]);return Ze},Gt=(Ze,st)=>ct(Ze,qt(st)),Rt=(Ze,st)=>{var Fe={};for(var St in Ze)kt.call(Ze,St)&&st.indexOf(St)<0&&(Fe[St]=Ze[St]);if(Ze!=null&&dn)for(var St of dn(Ze))st.indexOf(St)<0&&bn.call(Ze,St)&&(Fe[St]=Ze[St]);return Fe};const{TextArea:tn}=Ce.default,zn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],Yn=({value:Ze,onChange:st})=>bt.createElement(Switch,{checked:Ze,onChange:Fe=>{st(Fe)}}),nt="@\u2581@",Be="@\u2581\u2581@",Re=({questionTitlePlaceholder:Ze,form:st,scoreByBlank:Fe=!1,hackidentifier:St,answerKey:hn})=>{const[On,or]=(0,oe.useState)(!1),[jt,Ut]=(0,oe.useState)(!1),En=(0,mt.useParams)().type==="edit",Mn=(cn,Et)=>{const Jn=Et.line;let ir=0;for(let wr=0;wr<Jn;wr++)ir+=cn.getLine(wr).split(nt).length-1;for(let wr=0;wr<Jn;wr++)ir+=cn.getLine(wr).split(Be).length-1;const Wt=cn.getLine(Jn).substring(0,Et.ch);return ir+=Wt.split(nt).length-1,ir+=Wt.split(Be).length-1,ir},Tn=(cn,Et,Jn,ir)=>{const Wt=cn.getRange(Et.from,Et.to);let wr=0;if(Et.text.forEach(ei=>{wr+=ei.split(nt).length-1}),Et.text.forEach(ei=>{wr+=ei.split(Be).length-1}),Et.origin!=="setValue"){if(Wt&&(Wt.indexOf(nt)!==-1||Wt.indexOf(Be)!==-1)){const ei=Wt.split(nt).length-1+Wt.split(Be).length-1,Fr=Mn(cn,Et.from);if(console.log(`\u5220\u9664${ei}\u4E2A\uFF0C \u524D\u9762\u6709${Fr}\u4E2A\uFF0C\u65B0\u589E${wr}\u4E2A`),ei>1){const Dn=Array.from({length:ei},(ii,Kr)=>Fr+Kr);ir(Dn)}else ir(Fr)}else if(wr>0){const ei=Mn(cn,Et.from);console.log(`\u65B0\u589E${wr}\u4E2A\uFF0C\u4E4B\u524D\u6709${ei}\u4E2A`),Jn(wr,ei)}}},Ht=()=>{const cn=st.getFieldValue(hn);st.setFieldsValue({[hn]:cn==null?void 0:cn.map((Et,Jn)=>Gt(Zn({},Et),{position:Jn+1}))})},Vn=(0,oe.useRef)(),Xt=(cn,Et)=>{for(let Jn=0;Jn<cn;Jn++)Vn.current({position:null,answer_text:""},Et+Jn);Ht()},nn=(0,oe.useRef)(),fn=cn=>{nn.current(cn),Ht()},Gn=ke.default.useWatch(hn,st);return bt.createElement("div",{className:Je.Z.wrap},bt.createElement(ke.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},bt.createElement(Ue.h,{scrollId:"name",watch:!0,height:140})),bt.createElement("div",{className:Je.Z.questionTitleEditorWrap},bt.createElement(ke.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},bt.createElement(Ue.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(cn,Et)=>{const Jn=st.getFieldValue(hn);console.log("--preAnswerData",Jn,Et),st.setFieldsValue({[hn]:Jn==null?void 0:Jn.map((ir,Wt)=>{var wr;return Gt(Zn({},ir),{position:Wt+1,multi_line:(wr=Et==null?void 0:Et[Wt])==null?void 0:wr.multiLine})})})},placeholder:Ze,onCMBeforeChange:(cn,Et)=>{Tn(cn,Et,Xt,fn)}}))),bt.createElement(ke.default.List,{name:hn,rules:[{validator(cn,Et){if(!(Et!=null&&Et.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Jn of Et){const{answer_text:ir}=Jn||{};if((ir==null?void 0:ir.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(cn,{add:Et,remove:Jn},{errors:ir})=>(Vn.current=Et,nn.current=Jn,bt.createElement(bt.Fragment,null,bt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},bt.createElement(ke.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),bt.createElement("div",{onClick:()=>{Ie.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:bt.createElement("div",null,bt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",bt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),bt.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"}},bt.createElement(vn.Z,{style:{marginRight:3,color:"#3061D0"}}),bt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),cn.map((Wt,wr)=>{var ei=Wt,{key:Fr,name:Dn}=ei,ii=Rt(ei,["key","name"]),Kr,cr;return bt.createElement(je.Z,{className:"mb20",key:Fr,align:"middle",wrap:!1},bt.createElement(Te.Z,{flex:"0 0 auto",className:`${Je.Z.blankIndex}`},"\u586B\u7A7A\u9879",wr+1),bt.createElement(Te.Z,{flex:1},bt.createElement(je.Z,{align:"top",justify:"space-between",wrap:!1},bt.createElement(Te.Z,null,bt.createElement(ke.default.Item,Gt(Zn({},ii),{name:[Dn,"answer_text"],noStyle:!0}),(Kr=Gn==null?void 0:Gn[Dn])!=null&&Kr.multi_line||(cr=Gn==null?void 0:Gn[Dn])!=null&&cr.multiLine?bt.createElement(tn,{spellCheck:!1,style:{marginLeft:10,width:550}}):bt.createElement(Ce.default,{style:{marginLeft:10,width:550},className:Je.Z.blankInput,size:"large",maxLength:1e3,onBlur:Dr=>{}}))),Fe&&bt.createElement(Te.Z,{flex:"224px"},bt.createElement(ke.default.Item,Gt(Zn({},ii),{name:[Dn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),bt.createElement(Ge.Z,{size:"large",className:Je.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),bt.createElement("div",{onClick:()=>or(!0)},bt.createElement(ke.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},bt.createElement(Ue.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:On}))),bt.createElement(ke.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"}]},bt.createElement(lt.default,{size:"large"},zn.map(cn=>bt.createElement(lt.default.Option,{key:cn.title,value:cn.key}," ",cn.title)))),bt.createElement(ke.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},bt.createElement(ke.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},bt.createElement(Ge.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),bt.createElement("span",{className:"ml10 font14"},"\u79D2")),bt.createElement(ke.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"}]},bt.createElement(Qe.ZP.Group,{style:{marginTop:-10}},bt.createElement(Qe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),bt.createElement(Qe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),bt.createElement(Qe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),bt.createElement(ke.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),bt.createElement("div",{style:{background:"#F6F7F9",padding:15}},bt.createElement(ke.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},bt.createElement(tn,{rows:4})),bt.createElement(ke.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},bt.createElement(tn,{rows:4}))),bt.createElement(Zt,{form:st,answerKey:hn,hackIdentifier:St,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:bt.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"}}}))}},81727:function(He,Ee,ae){"use strict";ae.d(Ee,{u:function(){return De}});var oe=ae(59301),Ce=ae(77019),ke=ae(5269),Ie=ae(25399),je=ae(28284),Te=ae(8423),Ge=ae(32134),lt=ae(12893),Qe=ae(31457),Ue=ae(59301),mt=Object.defineProperty,Je=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Ye,rt,$e)=>rt in Ye?mt(Ye,rt,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Ye[rt]=$e,ue=(Ye,rt)=>{for(var $e in rt||(rt={}))te.call(rt,$e)&&he(Ye,$e,rt[$e]);if(Oe)for(var $e of Oe(rt))ee.call(rt,$e)&&he(Ye,$e,rt[$e]);return Ye},fe=(Ye,rt)=>Je(Ye,It(rt)),me=(Ye,rt)=>{var $e={};for(var at in Ye)te.call(Ye,at)&&rt.indexOf(at)<0&&($e[at]=Ye[at]);if(Ye!=null&&Oe)for(var at of Oe(Ye))rt.indexOf(at)<0&&ee.call(Ye,at)&&($e[at]=Ye[at]);return $e};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:Ye,onChange:rt,choiceTextKey:$e,answerKey:at,index:ht,isEdit:ot,setInputActive:vt,form:xt,choiceOptionsPath:Tt,allowChangeMode:_t,showAddIcon:Jt,addItem:Zt,deleteItem:vn})=>{console.log(Ye,"value");const bt=(Ye==null?void 0:Ye[at])===1,ft=()=>{const qt=xt.getFieldValue(Tt);xt.setFieldValue(Tt,qt.map(dn=>fe(ue({},dn),{[at]:0})))},ct=()=>{bt?rt(fe(ue({},Ye),{[at]:0})):(_t||ft(),rt(fe(ue({},Ye),{[at]:1})))};return Ue.createElement(Ce.Z,{className:Te.Z.choiceWrap,align:"middle",wrap:!1},Ue.createElement(ke.Z,{onClick:ct,className:`${Te.Z.choiceIndex} ${bt?Te.Z.activeAnswer:""}`},be[ht]),Ue.createElement(ke.Z,{flex:1,className:`${Te.Z.editorWrap} ml15`,onClick:vt},Ue.createElement(Qe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:ot,value:Ye==null?void 0:Ye[$e],onChange:qt=>{rt(fe(ue({},Ye),{[$e]:qt}))}})),Ue.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},Ue.createElement("div",{onClick:ct,className:`${Te.Z.setAnswerBtn} ${bt?Te.Z.activeAnswer:""}`},bt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Ue.createElement(ke.Z,{className:Te.Z.actionWrapper},Ue.createElement(Ie.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Ue.createElement(Ge.Z,{className:Te.Z.addIcon,onClick:Zt,style:{visibility:Jt?"visible":"hidden"}})),Ue.createElement(Ie.Z,{title:"\u5220\u9664"},Ue.createElement(lt.Z,{className:Te.Z.deleteIcon,onClick:vn,style:{visibility:ht>1?"visible":"hidden"}}))))},De=({questionTitlePlaceholder:Ye,titleKey:rt,choiceKey:$e,analysisKey:at,choiceTextKey:ht,answerKey:ot,choiceOptionsPath:vt,allowChangeMode:xt=!0,form:Tt,showAnalysis:_t=!0})=>{const[Jt,Zt]=(0,oe.useState)(),[vn,bt]=(0,oe.useState)(!1);return Ue.createElement("div",{className:Te.Z.wrap},Ue.createElement("div",{className:Te.Z.questionTitleEditorWrap},Ue.createElement(je.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},Ue.createElement(Qe.h,{scrollId:Array.isArray(rt)?rt.join("_"):`${rt}`,watch:!0,height:140,placeholder:Ye}))),Ue.createElement(je.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Ue.createElement(je.default.List,{name:$e,rules:[{validator(ft,ct){const qt=ct.some(kt=>kt[ot]===1),dn=ct.findIndex(kt=>{var bn;return((bn=kt[ht])==null?void 0:bn.length)<=0});return dn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[dn]}\u9009\u9879\u7684\u5185\u5BB9`)):qt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ft,{add:ct,remove:qt})=>Ue.createElement("div",{id:Array.isArray(vt)?vt.join("_"):`${vt}`},ft.map((dn,kt)=>{var bn=dn,{key:gn,name:Zn}=bn,Gt=me(bn,["key","name"]);const Rt=Jt===gn,tn=()=>{Zt(gn)},zn=kt<7&&kt===ft.length-1,Yn=()=>ct({[ht]:"",[ot]:0}),nt=()=>qt(Zn);return Ue.createElement(je.default.Item,fe(ue({},Gt),{key:gn,name:Zn,className:Te.Z.choiceListWrap,rules:[{validator(Be,Re){return Re!=null&&Re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[kt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Ue.createElement(Ae,{choiceTextKey:ht,answerKey:ot,index:kt,isEdit:Rt,setInputActive:tn,form:Tt,choiceOptionsPath:vt,allowChangeMode:xt,showAddIcon:zn,addItem:Yn,deleteItem:nt}))}),ft.length<8&&Ue.createElement("div",{className:`${Te.Z.addBtn} mb30`,onClick:()=>ct({[ht]:"",[ot]:0})},"\u6DFB\u52A0\u9009\u9879"))),_t&&Ue.createElement("div",{onClick:()=>bt(!0)},Ue.createElement(je.default.Item,{name:at,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:vn}))))}},92046:function(He,Ee,ae){"use strict";ae.d(Ee,{u:function(){return xt}});var oe=ae(59301),Ce=ae(62957),ke=ae(77019),Ie=ae(5269),je=ae(37568),Te=ae(25399),Ge=ae(71411),lt=ae(28284),Qe=ae(47889),Ue=ae(71051),mt=ae(31457),Je=ae(12893),It=ae(61485),Oe=ae(8423),te=ae(19105),ee=ae(59301),he=Object.defineProperty,ue=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,De=(Tt,_t,Jt)=>_t in Tt?he(Tt,_t,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Tt[_t]=Jt,Ye=(Tt,_t)=>{for(var Jt in _t||(_t={}))be.call(_t,Jt)&&De(Tt,Jt,_t[Jt]);if(me)for(var Jt of me(_t))Ae.call(_t,Jt)&&De(Tt,Jt,_t[Jt]);return Tt},rt=(Tt,_t)=>ue(Tt,fe(_t)),$e=(Tt,_t)=>{var Jt={};for(var Zt in Tt)be.call(Tt,Zt)&&_t.indexOf(Zt)<0&&(Jt[Zt]=Tt[Zt]);if(Tt!=null&&me)for(var Zt of me(Tt))_t.indexOf(Zt)<0&&Ae.call(Tt,Zt)&&(Jt[Zt]=Tt[Zt]);return Jt};const at=({value:Tt,onChange:_t})=>{const Jt=vn=>{Ce.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:Oe.Z.modal,onOk:()=>{const bt=[...Tt];bt.splice(vn,1),_t(bt)}})},Zt=()=>{const vn=[...Tt];vn.push(""),_t(vn)};return ee.createElement(ke.Z,{className:"ml20"},ee.createElement(Ie.Z,{flex:1},Tt==null?void 0:Tt.map((vn,bt)=>ee.createElement(ke.Z,{key:`${vn}_${bt}`,className:"mb20"},ee.createElement(je.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:vn,autoSize:{maxRows:3},maxLength:1e3,onBlur:ft=>{const ct=[...Tt],qt=ft.target.value.trim();ct[bt]=qt,_t(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement(Je.Z,{className:Oe.Z.deleteIcon,style:{marginLeft:15,visibility:bt>0?"visible":"hidden"},onClick:()=>Jt(bt)}))))),ee.createElement(Ie.Z,null,ee.createElement("div",{className:`${Oe.Z.addBtn}`,onClick:()=>{Zt()}},"\u65B0\u589E\u7B54\u6848")))},ht=({value:Tt,onChange:_t})=>{const Jt=vn=>{Ce.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:Oe.Z.modal,onOk:()=>{const bt=[...Tt];bt.splice(vn,1),_t(bt)}})},Zt=()=>{const vn=[...Tt];vn.push(""),_t(vn)};return ee.createElement(ke.Z,{className:"ml20"},ee.createElement(Ie.Z,{flex:1},Tt==null?void 0:Tt.map((vn,bt)=>ee.createElement(ke.Z,{key:`${vn}_${bt}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:vn,style:{flex:1},onChange:ft=>{const ct=[...Tt];ct[bt]=ft,_t(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement(Je.Z,{className:Oe.Z.deleteIcon,style:{marginLeft:15,visibility:bt>0?"visible":"hidden"},onClick:()=>Jt(bt)}))))),ee.createElement(Ie.Z,null,ee.createElement("div",{className:`${Oe.Z.addBtn}`,onClick:()=>{Zt()}},"\u65B0\u589E\u7B54\u6848")))},ot=({value:Tt=!0,onChange:_t})=>ee.createElement(Ge.Z,{checked:!Tt,onChange:Jt=>{_t(!Jt)}}),vt="\u2581",xt=({questionTitlePlaceholder:Tt,form:_t,scoreByBlank:Jt=!1,answerKey:Zt})=>{const[vn,bt]=(0,oe.useState)(!1),ft=(Gt,Rt)=>{const tn=Rt.line;let zn=0;for(let nt=0;nt<tn;nt++)zn+=Gt.getLine(nt).split(vt).length-1;const Yn=Gt.getLine(tn).substring(0,Rt.ch);return zn+=Yn.split(vt).length-1,zn},ct=(Gt,Rt,tn,zn)=>{const Yn=Gt.getRange(Rt.from,Rt.to);let nt=0;if(Rt.text.forEach(Be=>{nt+=Be.split(vt).length-1}),Rt.origin!=="setValue"){if(Yn&&Yn.indexOf(vt)!==-1){const Be=Yn.split(vt).length-1,Re=ft(Gt,Rt.from);if(console.log(`\u5220\u9664${Be}\u4E2A\uFF0C \u524D\u9762\u6709${Re}\u4E2A\uFF0C\u65B0\u589E${nt}\u4E2A`),Be>1){const Ze=Array.from({length:Be},(st,Fe)=>Re+Fe);zn(Ze)}else zn(Re)}else if(nt>0){const Be=ft(Gt,Rt.from);console.log(`\u65B0\u589E${nt}\u4E2A\uFF0C\u4E4B\u524D\u6709${Be}\u4E2A`),tn(nt,Be)}}},qt=()=>{const Gt=_t.getFieldValue(Zt);_t.setFieldsValue({[Zt]:Gt.map((Rt,tn)=>rt(Ye({},Rt),{position:tn+1}))})},dn=(0,oe.useRef)(),kt=(Gt,Rt)=>{for(let tn=0;tn<Gt;tn++)dn.current({position:null,answer_text:[""],model:1},Rt+tn);qt()},bn=(0,oe.useRef)(),gn=Gt=>{bn.current(Gt),qt()},Zn=lt.default.useWatch(Zt,_t);return ee.createElement("div",{className:Oe.Z.wrap},ee.createElement("div",{className:Oe.Z.questionTitleEditorWrap},ee.createElement(lt.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(mt.h,{scrollId:"name",watch:!0,height:140,placeholder:Tt,showNullButton:!0,onCMBeforeChange:(Gt,Rt)=>{ct(Gt,Rt,kt,gn)}}))),ee.createElement(lt.default.List,{name:Zt,rules:[{validator(Gt,Rt){if(!(Rt!=null&&Rt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const tn of Rt){const{answer_text:zn}=tn||{};if(zn!=null&&zn.some(Yn=>(Yn==null?void 0:Yn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Gt,{add:Rt,remove:tn},{errors:zn})=>(dn.current=Rt,bn.current=tn,ee.createElement(ee.Fragment,null,ee.createElement(lt.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Gt!=null&&Gt.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}}),Gt.map((Yn,nt)=>{var Be=Yn,{key:Re,name:Ze}=Be,st=$e(Be,["key","name"]),Fe,St;return ee.createElement("div",{style:{marginBottom:10},key:Re},ee.createElement(ke.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(Ie.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Oe.Z.blankIndex}`},"\u586B\u7A7A\u9879",nt+1),ee.createElement(lt.default.Item,rt(Ye({},st),{name:[Ze,"model"],noStyle:!0}),ee.createElement(Qe.ZP.Group,{onChange:()=>{const hn=_t.getFieldValue(Zt);_t.setFieldsValue({[Zt]:hn.map((On,or)=>rt(Ye({},On),{answer_text:Ze===or?[""]:On.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(It.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(It.Z,null)))))),ee.createElement(ke.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(Ie.Z,{flex:1},ee.createElement(ke.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(Ie.Z,{flex:1},ee.createElement(lt.default.Item,rt(Ye({},st),{name:[Ze,"answer_text"],noStyle:!0}),((St=(Fe=_t.getFieldValue(Zt))==null?void 0:Fe[Ze])==null?void 0:St.model)===1?ee.createElement(at,null):ee.createElement(ht,null))),Jt&&ee.createElement(Ie.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(lt.default.Item,rt(Ye({},st),{name:[Ze,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Oe.Z.blankInputNumberWrapper}),ee.createElement(Ue.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(lt.default.Item,rt(Ye({},st),{name:[Ze,"position"],noStyle:!0}),ee.createElement(je.default,{type:"hidden"})))))})))),ee.createElement(ke.Z,{align:"middle"},ee.createElement(lt.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(Ge.Z,null)),ee.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ee.createElement(ke.Z,{align:"middle"},ee.createElement(lt.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(Ge.Z,null)),ee.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Zn==null?void 0:Zn.length)>1&&ee.createElement(ke.Z,{align:"middle",className:(Zn==null?void 0:Zn.length)>1?"mb30":`${Oe.Z.hide}`},ee.createElement(lt.default.Item,{name:"is_ordered"},ee.createElement(ot,null)),ee.createElement(Ie.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:()=>bt(!0)},ee.createElement(lt.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(mt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:vn}))))}},14289:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Ce=ae(77019),ke=ae(5269),Ie=ae(28284),je=ae(8423),Te=ae(31457),Ge=ae(59301),lt=Object.defineProperty,Qe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Oe=(be,Ae,De)=>Ae in be?lt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:De}):be[Ae]=De,te=(be,Ae)=>{for(var De in Ae||(Ae={}))Je.call(Ae,De)&&Oe(be,De,Ae[De]);if(mt)for(var De of mt(Ae))It.call(Ae,De)&&Oe(be,De,Ae[De]);return be},ee=(be,Ae)=>Qe(be,Ue(Ae)),he=(be,Ae)=>{var De={};for(var Ye in be)Je.call(be,Ye)&&Ae.indexOf(Ye)<0&&(De[Ye]=be[Ye]);if(be!=null&&mt)for(var Ye of mt(be))Ae.indexOf(Ye)<0&&It.call(be,Ye)&&(De[Ye]=be[Ye]);return De};const ue={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fe=({value:be,onChange:Ae,form:De})=>{const Ye=(be==null?void 0:be.is_answer)===1,rt=be==null?void 0:be.choice_text,$e=()=>{const at=De.getFieldsValue().choices.map(ht=>({choice_text:ht.choice_text,is_answer:0}));De.setFieldsValue({choices:at}),Ae(ee(te({},be),{is_answer:1}))};return Ge.createElement(Ce.Z,{className:je.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ge.createElement(ke.Z,{onClick:$e,className:`${je.Z.choiceIndex} ${je.Z.judgementIndex} ${Ye?je.Z.activeAnswer:""}`},ue[rt]),Ge.createElement(ke.Z,{flex:1,className:`${je.Z.editorWrap} ml15`},Ge.createElement("div",{className:`${je.Z.inputBorder} ${je.Z.placeholder} ${Ye?je.Z.activeJudgementAnswer:""}`},rt)),Ge.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},Ge.createElement("div",{onClick:$e,className:`${je.Z.setAnswerBtn} ${Ye?je.Z.activeAnswer:""}`},Ye?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},me=({questionTitlePlaceholder:be,choiceKey:Ae,form:De})=>{const[Ye,rt]=(0,oe.useState)(!1);return Ge.createElement("div",{className:je.Z.wrap},Ge.createElement("div",{className:je.Z.questionTitleEditorWrap},Ge.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ge.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:be}))),Ge.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ge.createElement(Ie.default.List,{name:"choices",rules:[{validator($e,at){return at.some(ot=>(ot==null?void 0:ot.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},$e=>Ge.createElement("div",{id:"choices"},$e.map(at=>{var ht=at,{key:ot,name:vt}=ht,xt=he(ht,["key","name"]);return Ge.createElement(Ie.default.Item,ee(te({},xt),{key:ot,name:vt,noStyle:!0}),Ge.createElement(fe,{form:De}))})))),Ge.createElement("div",{onClick:()=>rt(!0)},Ge.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ge.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ye}))))}},31457:function(He,Ee,ae){"use strict";ae.d(Ee,{h:function(){return te},x:function(){return ee}});var oe=ae(39793),Ce=ae(8423),ke=ae(76902),Ie=ae(59301),je=Object.defineProperty,Te=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,mt=(he,ue,fe)=>ue in he?je(he,ue,{enumerable:!0,configurable:!0,writable:!0,value:fe}):he[ue]=fe,Je=(he,ue)=>{for(var fe in ue||(ue={}))Qe.call(ue,fe)&&mt(he,fe,ue[fe]);if(lt)for(var fe of lt(ue))Ue.call(ue,fe)&&mt(he,fe,ue[fe]);return he},It=(he,ue)=>Te(he,Ge(ue)),Oe=(he,ue)=>{var fe={};for(var me in he)Qe.call(he,me)&&ue.indexOf(me)<0&&(fe[me]=he[me]);if(he!=null&&lt)for(var me of lt(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=Oe(ue,["value","onChange","scrollId"]);return Ie.createElement("div",{id:be||""},Ie.createElement(oe.Z,It(Je({},Ae),{defaultValue:fe,onChange:(De,Ye)=>{Ye!=null&&Ye.length?me(De,Ye):me(De)}})))},ee=({value:he,onChange:ue,placeholder:fe,height:me=140,isEdit:be,miniToolbar:Ae,watch:De=!0})=>be?Ie.createElement(oe.Z,{watch:De,isFocus:!0,height:me||void 0,placeholder:fe,defaultValue:he,onChange:ue,miniToolbar:Ae}):Ie.createElement("div",{style:{cursor:"pointer"}},he?Ie.createElement(ke.Z,{className:Ce.Z.inputBorder,value:he}):Ie.createElement("div",{className:`${Ce.Z.inputBorder} ${Ce.Z.placeholder} inputBorderError`},fe))},44272:function(He,Ee,ae){"use strict";ae.d(Ee,{W:function(){return ht}});var oe=ae(59301),Ce=ae(6767),ke=ae(96599),Ie=ae(28284),je=ae(71411),Te=ae(77019),Ge=ae(5269),lt=ae(25399),Qe=ae(37568),Ue=ae(71051),mt=ae(8423),Je=ae(31457),It=ae(39793),Oe=ae(61485),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,be=(ot,vt,xt)=>vt in ot?te(ot,vt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):ot[vt]=xt,Ae=(ot,vt)=>{for(var xt in vt||(vt={}))fe.call(vt,xt)&&be(ot,xt,vt[xt]);if(ue)for(var xt of ue(vt))me.call(vt,xt)&&be(ot,xt,vt[xt]);return ot},De=(ot,vt)=>ee(ot,he(vt)),Ye=(ot,vt)=>{var xt={};for(var Tt in ot)fe.call(ot,Tt)&&vt.indexOf(Tt)<0&&(xt[Tt]=ot[Tt]);if(ot!=null&&ue)for(var Tt of ue(ot))vt.indexOf(Tt)<0&&me.call(ot,Tt)&&(xt[Tt]=ot[Tt]);return xt};const rt=ot=>{var vt=ot,{value:xt,onChange:Tt}=vt,_t=Ye(vt,["value","onChange"]);const Jt=Zt=>{Tt([Zt])};return oe.createElement(It.Z,De(Ae({},_t),{defaultValue:xt==null?void 0:xt[0],onChange:Jt}))},$e=ot=>{if(!ot)return!1;if(/^s*$/.test(ot)||ot.trim()===""){Ce.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 ot==="|"?(Ce.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},at=({value:ot=[],onClose:vt})=>oe.createElement(ke.default,{closable:!0,onClose:vt,className:mt.Z.keywordTag},oe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ot.join(" \u6216 "))),ht=({questionTitlePlaceholder:ot,form:vt,showKeywords:xt,isMustKeyWords:Tt=xt})=>{const[_t,Jt]=(0,oe.useState)(!1),[Zt,vn]=(0,oe.useState)(""),bt=Ie.default.useWatch("use_keywords",vt),ft=Ie.default.useWatch("question_score",vt);return oe.createElement("div",{className:mt.Z.wrap},oe.createElement("div",{className:mt.Z.questionTitleEditorWrap},oe.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},oe.createElement(Je.h,{scrollId:"name",watch:!0,height:140,placeholder:ot}))),oe.createElement(Ie.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},oe.createElement(rt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),xt&&!Tt&&oe.createElement(Ie.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},oe.createElement(je.Z,{defaultChecked:!0})),xt&&Tt&&oe.createElement(Te.Z,{align:"middle",className:"mb30"},oe.createElement(Ie.default.Item,{name:"use_keywords",valuePropName:"checked"},oe.createElement(je.Z,null)),oe.createElement(Ge.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),oe.createElement(Ge.Z,null,oe.createElement(lt.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(Oe.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(bt||!Tt)&&oe.createElement(Ie.default.List,{name:"keywords",rules:[{validator(ct,qt){return Tt?qt!=null&&qt.length?(qt==null?void 0:qt.reduce((kt,bn)=>kt+bn.score,0))>parseFloat(ft)?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:qt,remove:dn})=>oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${mt.Z.title} mb10`},Tt?"\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(Ge.Z,{flex:1},oe.createElement(Qe.default,{value:Zt,onChange:kt=>{vn(kt.target.value)},maxLength:50,allowClear:!0,onPressEnter:kt=>{var bn,gn,Zn,Gt;const Rt=`${(bn=kt.target)==null?void 0:bn.value}`,tn=(Zn=(gn=Rt==null?void 0:Rt.split("|"))==null?void 0:gn.filter(nt=>!!nt))==null?void 0:Zn.map(nt=>nt==null?void 0:nt.trim()),zn=vt.getFieldValue("keywords"),Yn=((Gt=zn==null?void 0:zn.map(nt=>nt==null?void 0:nt.keyword))==null?void 0:Gt.flat())||[];for(const nt of tn)if(Yn.includes(nt)){Ce.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}$e(Rt)&&(qt({keyword:tn,score:1}),vn(""))},className:mt.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(Ge.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ct.map(kt=>{var bn=kt,{key:gn,name:Zn}=bn,Gt=Ye(bn,["key","name"]);return oe.createElement(Te.Z,{key:gn,className:"mb20",style:{marginRight:148}},oe.createElement(Ge.Z,{flex:1},oe.createElement(Te.Z,{align:"middle",justify:"space-between"},oe.createElement(Ie.default.Item,De(Ae({},Gt),{name:[Zn,"keyword"]}),oe.createElement(at,{onClose:()=>dn(Zn)})),Tt&&oe.createElement(Ie.default.Item,De(Ae({},Gt),{name:[Zn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:mt.Z.blankInputNumberWrapper}),oe.createElement(Ue.Z,{className:mt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),oe.createElement("div",{onClick:()=>Jt(!0)},oe.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},oe.createElement(Je.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:_t}))))}},74716:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return je}});var oe={text:"text___bQulM",sup:"sup___rX_Y3"},Ce=ae(28284),ke=ae(59301),je=({text:Te,name:Ge="question_score"})=>{const lt=({value:Qe})=>ke.createElement("div",{className:oe.text},ke.createElement("span",{className:oe.sup},"*"),ke.createElement("span",{className:"mr10"},"\u5206\u503C"),ke.createElement("span",null,Qe||"--"),ke.createElement("span",{className:"c-grey-999"},Te));return ke.createElement(Ce.default.Item,{noStyle:!0,name:Ge},ke.createElement(lt,null))}},76902:function(He,Ee,ae){"use strict";ae.d(Ee,{z:function(){return rt},Z:function(){return $e}});var oe=ae(59301),Ce=ae(8944),ke=ae(81428),Ie=ae(64018),je=ae(81168),Te=ae(346),Ge=ae(51257),lt=ae(15342),Qe=ae(1012),Ue=ae(45677),mt=ae(59301),It=({html:at})=>{const ht=(0,oe.useRef)(null),ot=(0,oe.useRef)(null),vt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,oe.useEffect)(()=>{const xt=ht.current.attachShadow({mode:"open"});ot.current=document.createElement("div"),ot.current.className="markdown-body",ot.current.innerHTML=at,xt.appendChild(ot.current);const Tt=document.createElement("style");return Tt.textContent=vt,xt.appendChild(Tt),()=>{xt.innerHTML=""}},[]),(0,oe.useEffect)(()=>{ot.current&&(ot.current.innerHTML=at)},[at]),mt.createElement("div",{ref:ht})};function Oe(at){const ht=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ot=new RegExp(`\\b(${ht.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return at.replace(ot,"").trim()}var te=Object.defineProperty,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(at,ht,ot)=>ht in at?te(at,ht,{enumerable:!0,configurable:!0,writable:!0,value:ot}):at[ht]=ot,me=(at,ht)=>{for(var ot in ht||(ht={}))he.call(ht,ot)&&fe(at,ot,ht[ot]);if(ee)for(var ot of ee(ht))ue.call(ht,ot)&&fe(at,ot,ht[ot]);return at};const be="@\u2581\u2581@",Ae="@\u2581@",De=/<pre[^>]*>/g;function Ye(at){let ht=document.createElement("div");return ht.innerHTML=at,ht.childNodes.length===0?"":ht.childNodes[0].nodeValue}const rt=(at,ht)=>{at=at||"";const ot=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,vt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,xt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ht?at.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ot,(_t,Jt,Zt,vn,bt,ft,ct)=>{const qt=Jt||vn||ft,dn=Zt||bt||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+qt+dn+"&t="+(0,Ge.Jn)(qt,Date.now())+(_t.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(at=at.replace(Tt,(_t,Jt,Zt,vn,bt,ft,ct)=>{const qt=Jt||vn||ft,dn=Zt||bt||ct||"?";return Te.Z.API_SERVER+"/attachments/download/"+qt+dn+"&t="+(0,Ge.Jn)(qt,Date.now())+(_t.indexOf(")")>-1?")":"&")}).replace(ot,(_t,Jt,Zt,vn,bt,ft,ct)=>{const qt=Jt||vn||ft,dn=Zt||bt||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+qt+dn+"&t="+(0,Ge.Jn)(qt,Date.now())+(_t.indexOf(")")>-1?")":"&")}).replace(vt,(_t,Jt,Zt,vn,bt)=>{const ft=Jt||vn,ct=Zt||bt||"";return'"'+Te.Z.API_SERVER+"/api/attachments/"+ft+ct+ft+ct+"&t="+(0,Ge.Jn)(ft,Date.now())}).replace(xt,(_t,Jt,Zt,vn,bt)=>{const ft=Jt||vn,ct=Zt||bt||"";return"("+Te.Z.API_SERVER+"/files/uploads/"+ft+ct+ft+ct+"&t="+(0,Ge.Jn)(ft,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,`
`),at)};var $e=({value:at="",className:ht,showTextOnly:ot,showLines:vt,style:xt={},stylesPrev:Tt={},highlightKeywords:_t,showProgramFill:Jt,isProgramFill:Zt,disabledFill:vn=!1,programFillValue:bt,onFillChange:ft=dn=>{},onFillBlur:ct=()=>{},onFillFocus:qt=()=>{}})=>{let dn=Oe(String(at||""));const[kt,bn]=(0,oe.useState)(""),[gn,Zn]=(0,oe.useState)("office"),[Gt,Rt]=(0,oe.useState)([]),tn=(0,oe.useRef)("a"+(0,Qe.Z)()),zn={},Yn=Ut=>/<style[\s\S]*?>/i.test(Ut||""),nt=(Ut,Qt,En)=>{const Mn=document.createElement(Ut===Ae?"input":"textarea");Mn.style.width="100%",Mn.style.height=Ut===Ae?"40px":"151px",Mn.rows=5,Mn.spellcheck=!1,Mn.name="edu-program-fill",Mn.placeholder="\u8BF7\u8F93\u5165",Mn.dataset.id=Qt;const Tn=Object.keys(zn).length;return zn[Tn]=Mn,`<span class="edu-program-fill-wrap ${Ut===Ae?"":"show"}" style="width:${Ut===Ae?"600px":"100%"}" title=${En||""}><span>${Mn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Be(Ut){return Ut=Ut.replace(/!\[.*?\]\(.*?\)/g,""),Ut=Ut.replace(/\[.*?\]\(.*?\)/g,""),Ut=Ut.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ut=Ut.replace(/<embed.*?>/g,""),Ut=Ut.replace(/<img.*?>/g,""),Ut=Ut.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ut=Ut.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ut=Ut.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ut=Ut.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ut}const Re=Ut=>!ot&&Yn(dn)?Ut:Ut.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Qt,En){let Mn=En.replace(/(\n|\r)/g,"").split("}"),Tn=[];return Mn.map(Ht=>{Ht!=""&&Tn.push(`.${tn.current} ${Ht}`)}),`<style>${Tn.join("}")}</style>`}),Ze=(0,oe.useMemo)(()=>{try{const Mn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Tn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ht=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Vn=/\(\/attachments\/download\//g;dn=dn.replace(Vn,"("+Te.Z.API_SERVER+"/attachments/download/").replace(Mn,"("+Te.Z.API_SERVER+"/api/attachments/").replace(Tn,'"'+Te.Z.API_SERVER+"/api/attachments/").replace(Ht,'"'+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(Mn){}if(Jt){let Mn=-1;return dn=dn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Tn,Ht,Vn){var Xt;return++Mn,nt(Tn,Mn,(Xt=bt==null?void 0:bt[Mn])==null?void 0:Xt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Re(dn||"")}</pre>`}let Ut=Re(dn);Ut=(0,ke.ZP)(Ut);const Qt=(0,ke.ez)();dn.match(/\[TOC\]/)&&(Ut=Ut.replace("<p>[TOC]</p>",(0,ke.Qv)()),(0,ke.Iy)()),Ut=Ut.replace(/(__special_katext_id_\d+__)/g,(Mn,Tn)=>{const{type:Ht,expression:Vn}=Qt[Tn];return(0,lt.renderToString)(Ye(Vn)||"",{displayMode:Ht==="block",throwOnError:!1,output:"html"})}),Ut=Ut.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ke.AL)();const En=document.createElement("div");if(En.innerHTML=Ut,ot)return En.innerText;if(_t){const Mn=_t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return hn(En,Mn),En.innerHTML}return setTimeout(()=>jt(),500),En.innerHTML},[dn,_t]);(0,oe.useEffect)(()=>{On.current&&On.current.querySelectorAll(["input","textarea"]).forEach(Qt=>{Qt.oninput=st,Qt.onblur=Fe,Qt.onfocus=St})},[Gt]),(0,oe.useEffect)(()=>{var Ut,Qt,En,Mn,Tn;if(bt!=null&&bt.length)try{const Ht=On.current.querySelectorAll(".edu-program-fill-score"),Vn=On.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xt,nn]of Vn.entries())nn.value=((Ut=bt==null?void 0:bt[Xt])==null?void 0:Ut.value)||"",((Qt=bt==null?void 0:bt[Xt])==null?void 0:Qt.type)==="warning"?nn.className="program-fill-warning":((En=bt==null?void 0:bt[Xt])==null?void 0:En.type)==="success"?nn.className="program-fill-success":nn.className="";for(const[Xt,nn]of Ht.entries())nn.innerHTML=(Mn=bt==null?void 0:bt[Xt])!=null&&Mn.score?`${(Tn=bt==null?void 0:bt[Xt])==null?void 0:Tn.score}\u5206`:"";Rt(bt)}catch(Ht){console.log(Ht,"error")}},[bt]);const st=Ut=>{Gt[Ut.target.dataset.id]=Gt[Ut.target.dataset.id]||{},Gt[Ut.target.dataset.id].value=Ut.target.value,Rt([...Gt]),ft(Gt,Ut.target.dataset.id)},Fe=Ut=>{Gt[Ut.target.dataset.id]=Gt[Ut.target.dataset.id]||{},Gt[Ut.target.dataset.id].value=Ut.target.value,Rt([...Gt]),ct(Gt,Ut.target.dataset.id)},St=Ut=>{Gt[Ut.target.dataset.id]=Gt[Ut.target.dataset.id]||{},Gt[Ut.target.dataset.id].value=Ut.target.value,Rt([...Gt]),qt(Gt,Ut.target.dataset.id)};function hn(Ut,Qt){return Ut.childNodes.forEach(En=>{var Mn;if(En.childNodes.length>0)hn(En,Qt);else if(En.nodeName!=="IMG")if(En.innerHTML)En.innerHTML=(Mn=En.innerHTML)==null?void 0:Mn.replace(new RegExp(Qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Tn=document.createElement("span");Tn.innerHTML=En.textContent.replace(new RegExp(Qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),En.replaceWith(Tn)}})}const On=(0,oe.useRef)();ke.jb.WebkitLineClamp=vt,vt&&(xt=me(me({},xt),ke.jb));function or(Ut){let Qt=Ut.target;if(Qt.tagName.toUpperCase()==="A"){let En=Qt.getAttribute("href");if(En.indexOf("office")>-1)Ut.preventDefault(),bn(En),Zn("office");else if(En.indexOf("application/pdf")>-1)Ut.preventDefault(),bn(En),Zn("pdf");else if(En.indexOf("text/html")>-1)Ut.preventDefault(),bn(En),Zn("html");else if(En.startsWith("#")){Ut.preventDefault();let Mn=document.getElementById(En.replace("#",""));Mn&&Mn.scrollIntoView(!0)}}}const jt=()=>{var Ut;const Qt=(Ut=On.current)==null?void 0:Ut.querySelectorAll("video");Qt==null||Qt.forEach(En=>{if(En.oncontextmenu=()=>!1,En.src.indexOf(".m3u8")>-1&&!En.canPlayType("application/vnd.apple.mpegurl")){if(je.ZP.isSupported()){var Mn=new je.ZP;Mn.loadSource(En.src),Mn.attachMedia(En)}}})};return(0,oe.useEffect)(()=>{if(On.current&&Ze&&Ze.match(De)&&window.PR.prettyPrint(),On.current)return On.current.addEventListener("click",or),()=>{var Ut;(Ut=On.current)==null||Ut.removeEventListener("click",or),(0,ke.AL)(),(0,ke.Iy)()}},[Ze,On.current,or]),(0,oe.useEffect)(()=>{var Ut;const Qt=En=>{En.preventDefault(),En.clipboardData.setData("text",window.getSelection().toString())};return(Ut=On.current)==null||Ut.addEventListener("copy",Qt),()=>{var En;(En=On.current)==null||En.removeEventListener("copy",Qt)}},[On.current]),oe.createElement(oe.Fragment,null,ot&&oe.createElement("div",{ref:On},Ze),!ot&&!Yn(Ze)&&oe.createElement("div",{ref:On,style:me({},xt),className:`${ht||""} ${vn?"disabled-fill":""} markdown-body ${tn.current}`,dangerouslySetInnerHTML:{__html:Ze}}),!ot&&Yn(Ze)&&oe.createElement(It,{html:Ze}),oe.createElement(Ue.Z,{close:!0,data:kt,type:kt!=null&&kt.length?gn:"",style:me({},Tt),onClose:()=>bn("")}))}},69720:function(He,Ee,ae){"use strict";ae.d(Ee,{h:function(){return be}});var oe=ae(59301),Ce=ae(82326),ke=ae(28284),Ie=ae(99571),je=ae(89780),Te=ae.n(je),Ge=ae(8336),lt=ae(12469),Qe=Object.defineProperty,Ue=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,te=(Ae,De,Ye)=>De in Ae?Qe(Ae,De,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ae[De]=Ye,ee=(Ae,De)=>{for(var Ye in De||(De={}))It.call(De,Ye)&&te(Ae,Ye,De[Ye]);if(Je)for(var Ye of Je(De))Oe.call(De,Ye)&&te(Ae,Ye,De[Ye]);return Ae},he=(Ae,De)=>Ue(Ae,mt(De));const ue=Ce.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[Ye,rt]=(0,oe.useState)("python");function $e(ht){rt(me[ht][1])}function at(ht){Ae(ht)}return oe.createElement(ke.default,he(ee({},fe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:at,style:{width:500}}),oe.createElement(ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(Ce.default,{getPopupContainer:ht=>ht.parentNode,onChange:$e},Object.keys(me).map(ht=>oe.createElement(ue,{key:ht,value:ht},me[ht][0])))),oe.createElement(ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(be,{mode:Ye})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Ie.ZP,{type:"ghost",onClick:De},"\u53D6\u6D88")))};function be({value:Ae,onChange:De,mode:Ye,options:rt={}}){const $e=(0,oe.useRef)(),[at,ht]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(at){let ot=function(vt){const xt=vt.getValue();De&&De(xt)};return at.on("change",ot),()=>{at.off("change",ot)}}},[at,De]),(0,oe.useEffect)(()=>{at&&at.setOption("mode",Ye)},[at,Ye]),(0,oe.useEffect)(()=>{at&&(Ae!==at.getValue()||Ae==="")&&setTimeout(()=>{at.setValue(Ae||"")},300)},[at,Ae]),(0,oe.useEffect)(()=>{if($e.current&&!at){const ot=Te().fromTextArea($e.current,ee({mode:Ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},rt));ht(ot)}},[$e.current,at]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:$e}))}},39793:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ci}});var oe=ae(59301),Ce=ae(89780),ke=ae.n(Ce),Ie=ae(76374),je=ae(8336),Te=ae(6313),Ge=ae(25717),lt=ae(99498),Qe=ae(25419),Ue=ae(67549),mt=ae(76902),Je=({value:Rn="",className:Pn,showTextOnly:Sn,showLines:$n,style:li={}})=>{const Yr=(0,oe.useMemo)(()=>"",[Rn]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:Yr}}))},It=Object.defineProperty,Oe=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(Rn,Pn,Sn)=>Pn in Rn?It(Rn,Pn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):Rn[Pn]=Sn,me=(Rn,Pn)=>{for(var Sn in Pn||(Pn={}))he.call(Pn,Sn)&&fe(Rn,Sn,Pn[Sn]);if(ee)for(var Sn of ee(Pn))ue.call(Pn,Sn)&&fe(Rn,Sn,Pn[Sn]);return Rn},be=(Rn,Pn)=>Oe(Rn,te(Pn));let Ae=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function De({onActionCallback:Rn,title:Pn,icon:Sn,actionName:$n,className:li="",children:Yr}){function ci(){Rn($n)}return oe.createElement("a",{title:Pn,className:li,onClick:ci},oe.createElement("i",{className:`${Sn}`}),Yr)}var Ye=({watch:Rn,showNullButton:Pn,showNullProgramButton:Sn,onActionCallback:$n,fullScreen:li,insertTemp:Yr,hidetoolBar:ci,extraUse:_n})=>{const dr=[...Ae,{title:`${Rn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Rn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!ci&&dr.map((oi,bi)=>oe.createElement("li",{key:bi},oi.actionName?oe.createElement(De,be(me({},oi),{onActionCallback:$n})):oe.createElement("span",{className:"v-line"}))),Pn?oe.createElement("li",null,oe.createElement(De,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$n},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Sn?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(De,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:$n},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(De,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:$n},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Yr&&oe.createElement("li",null,oe.createElement(De,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Yr}`,onActionCallback:$n},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),_n&&oe.createElement("li",null,_n),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(De,{icon:`${li?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:li?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$n})))},rt=ae(91558),$e=ae(28284),at=ae(37568),ht=ae(99571),ot=Object.defineProperty,vt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Zt=(Rn,Pn,Sn)=>Pn in Rn?ot(Rn,Pn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):Rn[Pn]=Sn,vn=(Rn,Pn)=>{for(var Sn in Pn||(Pn={}))_t.call(Pn,Sn)&&Zt(Rn,Sn,Pn[Sn]);if(Tt)for(var Sn of Tt(Pn))Jt.call(Pn,Sn)&&Zt(Rn,Sn,Pn[Sn]);return Rn},bt=(Rn,Pn)=>vt(Rn,xt(Pn));const ft={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:Rn,onCancel:Pn})=>{function Sn($n){Rn($n)}return oe.createElement($e.default,bt(vn({},ft),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Sn,style:{width:500}}),oe.createElement($e.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(at.default,null)),oe.createElement($e.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(at.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(ht.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(ht.ZP,{type:"ghost",onClick:Pn},"\u53D6\u6D88")))},qt=ae(69720),dn=ae(17077),kt=ae(62957),bn=ae(77019),gn=ae(9507),Zn=ae(59301),Gt=({callback:Rn,onCancel:Pn})=>{const Sn=document.createElement("canvas"),$n=Sn.getContext("2d");Sn.width=1e3,Sn.height=800,$n.fillStyle="#ffffff",$n.fillRect(0,0,Sn.width,Sn.height);const li=Sn.toDataURL("image/png");return Zn.createElement(kt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Zn.createElement(bn.Z,{style:{height:"100vh"}},Zn.createElement(gn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:li,visible:!0,title:String(Date.now())},onOk:Yr=>{Rn({src:Yr.url})},onClose:Pn})))},Rt=ae(12378);function tn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(tn,go.CommandHandler),tn.prototype.canAlignSelection=function(){var Rn=this.diagram;return!(Rn===null||Rn.isReadOnly||Rn.isModelReadOnly||Rn.selection.count<2)},tn.prototype.alignLeft=function(){var Rn=this.diagram;Rn.startTransaction("aligning left");var Pn=1/0;Rn.selection.each(function(Sn){Sn instanceof go.Link||(Pn=Math.min(Sn.position.x,Pn))}),Rn.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(Pn,Sn.position.y))}),Rn.commitTransaction("aligning left")},tn.prototype.alignRight=function(){var Rn=this.diagram;Rn.startTransaction("aligning right");var Pn=-1/0;Rn.selection.each(function(Sn){if(!(Sn instanceof go.Link)){var $n=Sn.actualBounds.x+Sn.actualBounds.width;Pn=Math.max($n,Pn)}}),Rn.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(Pn-Sn.actualBounds.width,Sn.position.y))}),Rn.commitTransaction("aligning right")},tn.prototype.alignTop=function(){var Rn=this.diagram;Rn.startTransaction("alignTop");var Pn=1/0;Rn.selection.each(function(Sn){Sn instanceof go.Link||(Pn=Math.min(Sn.position.y,Pn))}),Rn.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(Sn.position.x,Pn))}),Rn.commitTransaction("alignTop")},tn.prototype.alignBottom=function(){var Rn=this.diagram;Rn.startTransaction("aligning bottom");var Pn=-1/0;Rn.selection.each(function(Sn){if(!(Sn instanceof go.Link)){var $n=Sn.actualBounds.y+Sn.actualBounds.height;Pn=Math.max($n,Pn)}}),Rn.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(Sn.actualBounds.x,Pn-Sn.actualBounds.height))}),Rn.commitTransaction("aligning bottom")},tn.prototype.alignCenterX=function(){var Rn=this.diagram,Pn=Rn.selection.first();if(Pn){Rn.startTransaction("aligning Center X");var Sn=Pn.actualBounds.x+Pn.actualBounds.width/2;Rn.selection.each(function($n){$n instanceof go.Link||$n.move(new go.Point(Sn-$n.actualBounds.width/2,$n.actualBounds.y))}),Rn.commitTransaction("aligning Center X")}},tn.prototype.alignCenterY=function(){var Rn=this.diagram,Pn=Rn.selection.first();if(Pn){Rn.startTransaction("aligning Center Y");var Sn=Pn.actualBounds.y+Pn.actualBounds.height/2;Rn.selection.each(function($n){$n instanceof go.Link||$n.move(new go.Point($n.actualBounds.x,Sn-$n.actualBounds.height/2))}),Rn.commitTransaction("aligning Center Y")}},tn.prototype.alignColumn=function(Rn){var Pn=this.diagram;Pn.startTransaction("align Column"),Rn===void 0&&(Rn=0),Rn=parseFloat(Rn);var Sn=new Array;Pn.selection.each(function(_n){_n instanceof go.Link||Sn.push(_n)});for(var $n=0;$n<Sn.length-1;$n++){var li=Sn[$n],Yr=li.actualBounds.y+li.actualBounds.height+Rn,ci=Sn[$n+1];ci.move(new go.Point(li.actualBounds.x,Yr))}Pn.commitTransaction("align Column")},tn.prototype.alignRow=function(Rn){Rn===void 0&&(Rn=0),Rn=parseFloat(Rn);var Pn=this.diagram;Pn.startTransaction("align Row");var Sn=new Array;Pn.selection.each(function(_n){_n instanceof go.Link||Sn.push(_n)});for(var $n=0;$n<Sn.length-1;$n++){var li=Sn[$n],Yr=li.actualBounds.x+li.actualBounds.width+Rn,ci=Sn[$n+1];ci.move(new go.Point(Yr,li.actualBounds.y))}Pn.commitTransaction("align Row")},tn.prototype.canRotate=function(Rn){var Pn=this.diagram;return!(Pn===null||Pn.isReadOnly||Pn.isModelReadOnly||Pn.selection.count<1)},tn.prototype.rotate=function(Rn){Rn===void 0&&(Rn=90);var Pn=this.diagram;Pn.startTransaction("rotate "+Rn.toString());var Pn=this.diagram;Pn.selection.each(function(Sn){Sn instanceof go.Link||Sn instanceof go.Group||(Sn.angle+=Rn)}),Pn.commitTransaction("rotate "+Rn.toString())},tn.prototype.pullToFront=function(){var Rn=this.diagram;Rn.startTransaction("pullToFront");var Pn=new go.Map;Rn.selection.each(function(Sn){Pn.set(Sn.layer,0)}),Pn.iteratorKeys.each(function(Sn){var $n=0;Sn.parts.each(function(li){if(!li.isSelected){var Yr=li.zOrder;isNaN(Yr)?li.zOrder=0:$n=Math.max($n,Yr)}}),Pn.set(Sn,$n)}),Rn.selection.each(function(Sn){tn._assignZOrder(Sn,Pn.get(Sn.layer)+1)}),Rn.commitTransaction("pullToFront")},tn.prototype.pushToBack=function(){var Rn=this.diagram;Rn.startTransaction("pushToBack");var Pn=new go.Map;Rn.selection.each(function(Sn){Pn.set(Sn.layer,0)}),Pn.iteratorKeys.each(function(Sn){var $n=0;Sn.parts.each(function(li){if(!li.isSelected){var Yr=li.zOrder;isNaN(Yr)?li.zOrder=0:$n=Math.min($n,Yr)}}),Pn.set(Sn,$n)}),Rn.selection.each(function(Sn){tn._assignZOrder(Sn,Pn.get(Sn.layer)-1-tn._findGroupDepth(Sn))}),Rn.commitTransaction("pushToBack")},tn._assignZOrder=function(Rn,Pn,Sn){Sn===void 0&&(Sn=Rn),Rn.layer===Sn.layer&&(Rn.zOrder=Pn),Rn instanceof go.Group&&Rn.memberParts.each(function($n){tn._assignZOrder($n,Pn+1,Sn)})},tn._findGroupDepth=function(Rn){if(Rn instanceof go.Group){var Pn=0;return Rn.memberParts.each(function(Sn){Pn=Math.max(Pn,tn._findGroupDepth(Sn))}),Pn+1}else return 0},tn.prototype.doKeyDown=function(){var Rn=this.diagram;if(Rn!==null){var Pn=Rn.lastInput;if(Pn.key==="Up"||Pn.key==="Down"||Pn.key==="Left"||Pn.key==="Right"){var Sn=this.arrowKeyBehavior;if(Sn==="none")return;if(Sn==="select"){this._arrowKeySelect();return}else if(Sn==="move"){this._arrowKeyMove();return}else if(Sn==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},tn.prototype._getAllParts=function(){var Rn=new Array;return this.diagram.nodes.each(function(Pn){Rn.push(Pn)}),this.diagram.parts.each(function(Pn){Rn.push(Pn)}),Rn},tn.prototype._arrowKeyMove=function(){var Rn=this.diagram,Pn=Rn.lastInput,Sn=0,$n=0;if(Pn.control||Pn.meta)Sn=1,$n=1;else if(Rn.grid!==null){var li=Rn.grid.gridCellSize;$n=li.width,Sn=li.height}Rn.startTransaction("arrowKeyMove"),Rn.selection.each(function(Yr){Pn.key==="Up"?Yr.move(new go.Point(Yr.actualBounds.x,Yr.actualBounds.y-Sn)):Pn.key==="Down"?Yr.move(new go.Point(Yr.actualBounds.x,Yr.actualBounds.y+Sn)):Pn.key==="Left"?Yr.move(new go.Point(Yr.actualBounds.x-$n,Yr.actualBounds.y)):Pn.key==="Right"&&Yr.move(new go.Point(Yr.actualBounds.x+$n,Yr.actualBounds.y))}),Rn.commitTransaction("arrowKeyMove")},tn.prototype._arrowKeySelect=function(){var Rn=this.diagram,Pn=Rn.lastInput,Sn=null;Pn.key==="Up"?Sn=this._findNearestPartTowards(270):Pn.key==="Down"?Sn=this._findNearestPartTowards(90):Pn.key==="Left"?Sn=this._findNearestPartTowards(180):Pn.key==="Right"&&(Sn=this._findNearestPartTowards(0)),Sn!==null&&(Pn.shift?Sn.isSelected=!0:Pn.control||Pn.meta?Sn.isSelected=!Sn.isSelected:Rn.select(Sn))},tn.prototype._findNearestPartTowards=function(Rn){var Pn=this.diagram.selection.first();if(Pn===null)return null;for(var Sn=Pn.actualBounds.center,$n=this._getAllParts(),li=1/0,Yr=Pn,ci=0;ci<$n.length;ci++){var _n=$n[ci];if(_n!==Pn&&_n.canSelect()){var dr=_n.actualBounds.center,oi=Sn.directionPoint(dr),bi=this._angleCloseness(oi,Rn);if(bi<=45){var Pr=Sn.distanceSquaredPoint(dr);Pr*=1+Math.sin(bi*Math.PI/180),Pr<li&&(li=Pr,Yr=_n)}}}return Yr},tn.prototype._angleCloseness=function(Rn,Pn){return Math.min(Math.abs(Pn-Rn),Math.min(Math.abs(Pn+360-Rn),Math.abs(Pn-360-Rn)))},tn.prototype._arrowKeyTree=function(){var Rn=this.diagram,Pn=Rn.selection.first();if(Pn instanceof go.Node){var Sn=Rn.lastInput;if(Sn.key==="Right"){if(!Pn.isTreeLeaf)if(!Pn.isTreeExpanded)Rn.commandHandler.canExpandTree(Pn)&&Rn.commandHandler.expandTree(Pn);else{var $n=this._sortTreeChildrenByY(Pn).first();$n!==null&&Rn.select($n)}}else if(Sn.key==="Left")if(!Pn.isTreeLeaf&&Pn.isTreeExpanded)Rn.commandHandler.canCollapseTree(Pn)&&Rn.commandHandler.collapseTree(Pn);else{var li=Pn.findTreeParentNode();li!==null&&Rn.select(li)}else if(Sn.key==="Up"){var li=Pn.findTreeParentNode();if(li!==null){var Yr=this._sortTreeChildrenByY(li),ci=Yr.indexOf(Pn);if(ci>0){for(var _n=Yr.elt(ci-1);_n!==null&&_n.isTreeExpanded&&!_n.isTreeLeaf;){var dr=this._sortTreeChildrenByY(_n);_n=dr.last()}_n!==null&&Rn.select(_n)}else Rn.select(li)}}else if(Sn.key==="Down")if(Pn.isTreeExpanded&&!Pn.isTreeLeaf){var $n=this._sortTreeChildrenByY(Pn).first();$n!==null&&Rn.select($n)}else for(;Pn!==null;){var li=Pn.findTreeParentNode();if(li===null)break;var Yr=this._sortTreeChildrenByY(li),ci=Yr.indexOf(Pn);if(ci<Yr.length-1){Rn.select(Yr.elt(ci+1));break}else Pn=li}var oi=Rn.selection.first();oi!==null&&Rn.scrollToRect(oi.actualBounds)}},tn.prototype._sortTreeChildrenByY=function(Rn){var Pn=new go.List().addAll(Rn.findTreeChildrenNodes());return Pn.sort(function(Sn,$n){var li=Sn.location,Yr=$n.location;return li.y<Yr.y?-1:li.y>Yr.y?1:li.x<Yr.x?-1:li.x>Yr.x?1:0}),Pn},tn.prototype.copyToClipboard=function(Rn){go.CommandHandler.prototype.copyToClipboard.call(this,Rn),this._lastPasteOffset.set(this.pasteOffset)},tn.prototype.pasteFromClipboard=function(){var Rn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Rn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Rn},Object.defineProperty(tn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Rn){if(Rn!=="move"&&Rn!=="select"&&Rn!=="scroll"&&Rn!=="tree"&&Rn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Rn);this._arrowKeyBehavior=Rn}}),Object.defineProperty(tn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Rn){if(!(Rn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Rn);this._pasteOffset.set(Rn)}});var zn=tn,Yn=ae(63720),nt=ae(5269),Be=ae(38986),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ze=ae(48790),st=ae(59301),Fe=(Rn,Pn,Sn)=>new Promise(($n,li)=>{var Yr=dr=>{try{_n(Sn.next(dr))}catch(oi){li(oi)}},ci=dr=>{try{_n(Sn.throw(dr))}catch(oi){li(oi)}},_n=dr=>dr.done?$n(dr.value):Promise.resolve(dr.value).then(Yr,ci);_n((Sn=Sn.apply(Rn,Pn)).next())});function St({onCancel:Rn,callback:Pn}){let Sn=(0,oe.useRef)(),$n=(0,oe.useRef)(),li=(0,oe.useRef)(),Yr=(0,oe.useRef)(!1);const ci=(0,oe.useRef)(!1),[_n,dr]=(0,oe.useState)(0);function oi(){const Pr=Rt.bx.make,Lt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Sn.current=new Rt.S0($n.current,{padding:20,grid:Pr(Rt.s_,"Grid",Pr(Rt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pr(Rt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:mn=>{var wi=mn.diagram.commandHandler.addTopLevelParts(mn.diagram.selection,!0);wi||mn.diagram.currentTool.doCancel()},commandHandler:Pr(zn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:mn=>{var wi=mn.subject;wi.location=wi.location.copy().snapToGridPoint(mn.diagram.grid.gridOrigin,mn.diagram.grid.gridCellSize),setTimeout(()=>{mn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:mn=>{var wi=mn.subject;setTimeout(()=>{mn.diagram.commandHandler.editTextBlock()})},LinkRelinked:mn=>{var wi=mn.parameter.part;wi.invalidateConnectedLinks();var Di=mn.subject;mn.diagram.toolManager.linkingTool.isForwards?Di.toNode.invalidateConnectedLinks():Di.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Sn.current.nodeTemplate=Pr(Rt.NB,"Auto",{locationSpot:Rt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Rt.$u(120,60),minSize:new Rt.$u(40,40),resizable:!0,resizeCellSize:new Rt.$u(10,10),rotatable:!0},new Rt.KX("location","loc",Rt.E9.parse).makeTwoWay(Rt.E9.stringify),new Rt.KX("desiredSize","size",Rt.$u.parse).makeTwoWay(Rt.$u.stringify),Pr(Rt.bn,{name:"SHAPE",fill:Lt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Rt.z6.AllSides,toSpot:Rt.z6.AllSides},new Rt.KX("figure"),new Rt.KX("fill"),new Rt.KX("stroke","borderColor"),new Rt.KX("strokeWidth","thickness"),new Rt.KX("strokeDashArray","dash")),Pr(Rt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pr(Rt.al,{margin:1,textAlign:"center",overflow:Rt.al.OverflowEllipsis,editable:!0},new Rt.KX("text").makeTwoWay(),new Rt.KX("stroke","color"))),Sn.current.nodeTemplate.toolTip=Pr("ToolTip",Pr(Rt.s_,"Vertical",{maxSize:new Rt.$u(200,NaN)},Pr(Rt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Rt.KX("text")),Pr(Rt.al,{font:"10pt sans-serif",textAlign:"center"},new Rt.KX("text","details"))));function ln(mn,wi){var Di=(gi,ki)=>{gi.handled=!0,gi.diagram.model.commit(zi=>{var ro=ki.part.adornedPart,Gi=new Rt.E9().setRectSpot(ro.actualBounds,mn);Gi.subtract(ro.location),Gi.scale(2,2),Gi.x+=Math.sign(Gi.x)*130,Gi.y+=Math.sign(Gi.y)*130,Gi.add(ro.location),Gi.snapToGridPoint(gi.diagram.grid.gridOrigin,gi.diagram.grid.gridCellSize);var Fi=zi.copyNodeData(ro.data);zi.setGroupKeyForNodeData(Fi,zi.getGroupKeyForNodeData(ro.data)),zi.addNodeData(Fi);var io={from:ro.key,to:zi.getKeyForNodeData(Fi)};zi.addLinkData(io);var qn=gi.diagram.findNodeForData(Fi);qn.location=Gi,gi.diagram.select(qn),setTimeout(()=>{gi.diagram.commandHandler.editTextBlock()},20)})};return Pr(Rt.bn,{figure:wi,alignment:mn,alignmentFocus:mn.opposite(),width:mn.equals(Rt.z6.Top)||mn.equals(Rt.z6.Bottom)?25:18,height:mn.equals(Rt.z6.Top)||mn.equals(Rt.z6.Bottom)?18:25,fill:"orange",stroke:Lt.white,strokeWidth:4,mouseEnter:(gi,ki)=>ki.fill="dodgerblue",mouseLeave:(gi,ki)=>ki.fill="orange",isActionable:!0,click:Di,contextClick:Di})}function Nr(mn){return Pr(Rt.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:(wi,Di)=>Di.fill="dodgerblue",mouseLeave:(wi,Di)=>Di.fill="orange",click:(wi,Di)=>{wi.diagram.commandHandler.showContextMenu(Di.part.adornedPart)}},mn||{})}Sn.current.nodeTemplate.selectionAdornmentTemplate=Pr(Rt.uz,"Spot",Pr(Rt.Vm,{padding:10}),ln(Rt.z6.Top,"TriangleUp"),ln(Rt.z6.Left,"TriangleLeft"),ln(Rt.z6.Right,"TriangleRight"),ln(Rt.z6.Bottom,"TriangleDown"),Nr({alignment:new Rt.z6(.75,0)}));function Er(mn,wi){return(Di,gi)=>{Di.handled=!0,Di.diagram.model.commit(ki=>{ki.set(gi.part.adornedPart.data,mn,wi)})}}function Yt(mn,wi){return wi||(wi="color"),Pr(Rt.bn,{width:16,height:16,stroke:"lightgray",fill:mn,margin:1,background:"transparent",mouseEnter:(Di,gi)=>gi.stroke="dodgerblue",mouseLeave:(Di,gi)=>gi.stroke="lightgray",click:Er(wi,mn),contextClick:Er(wi,mn)})}function Nn(){return[Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",Yt(Lt.white,"fill"),Yt(Lt.beige,"fill"),Yt(Lt.extralightblue,"fill"),Yt(Lt.extralightred,"fill"))),Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",Yt(Lt.lightgray,"fill"),Yt(Lt.lightgreen,"fill"),Yt(Lt.lightblue,"fill"),Yt(Lt.lightred,"fill")))]}function Xr(){return[Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",Yt(Lt.black),Yt(Lt.green),Yt(Lt.blue),Yt(Lt.red))),Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",Yt(Lt.white),Yt(Lt.magenta),Yt(Lt.purple),Yt(Lt.orange)))]}function Ln(mn,wi){return wi||(wi="thickness"),Pr(Rt.bn,"LineH",{width:16,height:16,strokeWidth:mn,margin:1,background:"transparent",mouseEnter:(Di,gi)=>gi.background="dodgerblue",mouseLeave:(Di,gi)=>gi.background="transparent",click:Er(wi,mn),contextClick:Er(wi,mn)})}function Ve(mn,wi){return wi||(wi="dash"),Pr(Rt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:mn,margin:1,background:"transparent",mouseEnter:(Di,gi)=>gi.background="dodgerblue",mouseLeave:(Di,gi)=>gi.background="transparent",click:Er(wi,mn),contextClick:Er(wi,mn)})}function Rr(){return[Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",Ln(1),Ln(2),Ln(3),Ln(4))),Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",Ve(null),Ve([2,4]),Ve([4,4])))]}function kr(mn,wi){return wi||(wi="figure"),Pr(Rt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:mn,margin:1,background:"transparent",mouseEnter:(Di,gi)=>gi.fill="dodgerblue",mouseLeave:(Di,gi)=>gi.fill="lightgray",click:Er(wi,mn),contextClick:Er(wi,mn)})}Sn.current.nodeTemplate.contextMenu=Pr("ContextMenu",Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",kr("Rectangle"),kr("RoundedRectangle"),kr("Ellipse"),kr("Diamond"))),Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",kr("Parallelogram2"),kr("ManualOperation"),kr("Procedure"),kr("Cylinder1"))),Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",kr("Terminator"),kr("CreateRequest"),kr("Document"),kr("TriangleDown"))),Nn(),Xr(),Rr()),Sn.current.groupTemplate=Pr(Rt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Rt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(mn,wi)=>{var Di=wi.addMembers(wi.diagram.selection,!0);Di||wi.diagram.currentTool.doCancel()},avoidable:!1},new Rt.KX("location","loc",Rt.E9.parse).makeTwoWay(Rt.E9.stringify),Pr(Rt.s_,"Auto",{name:"BODY"},Pr(Rt.bn,{parameter1:10,fill:Lt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Rt.z6.AllSides,toSpot:Rt.z6.AllSides},new Rt.KX("fill"),new Rt.KX("stroke","color"),new Rt.KX("strokeWidth","thickness"),new Rt.KX("strokeDashArray","dash")),Pr(Rt.Vm,{background:"transparent",margin:20})),Pr(Rt.al,{alignment:Rt.z6.Top,alignmentFocus:Rt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Rt.KX("text"),new Rt.KX("stroke","color"))),Sn.current.groupTemplate.selectionAdornmentTemplate=Pr(Rt.uz,"Spot",Pr(Rt.s_,"Auto",Pr(Rt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pr(Rt.Vm,{margin:1.5})),Nr({alignment:Rt.z6.TopRight,alignmentFocus:Rt.z6.BottomRight})),Sn.current.groupTemplate.contextMenu=Pr("ContextMenu",Nn(),Xr(),Rr()),Sn.current.linkTemplate=Pr(Rt.rU,{layerName:"Foreground",routing:Rt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Rt.KX("fromSpot","fromSpot",Rt.z6.parse),new Rt.KX("toSpot","toSpot",Rt.z6.parse),new Rt.KX("fromShortLength","dir",mn=>mn>=1?10:0),new Rt.KX("toShortLength","dir",mn=>mn>=1?10:0),new Rt.KX("points").makeTwoWay(),Pr(Rt.bn,{strokeWidth:2},new Rt.KX("stroke","color"),new Rt.KX("strokeWidth","thickness"),new Rt.KX("strokeDashArray","dash")),Pr(Rt.bn,{segmentIndex:0,segmentOffset:new Rt.E9(15,0),segmentOrientation:Rt.rU.OrientAlong,alignmentFocus:Rt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Rt.KX("fill","color"),new Rt.KX("visible","dir",mn=>mn===1)),Pr(Rt.bn,{segmentIndex:-1,segmentOffset:new Rt.E9(-10,6),segmentOrientation:Rt.rU.OrientPlus90,alignmentFocus:Rt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Rt.KX("fill","color"),new Rt.KX("visible","dir",mn=>mn>=1),new Rt.KX("width","thickness",mn=>7+3*mn),new Rt.KX("height","thickness",mn=>7+3*mn),new Rt.KX("segmentOffset","thickness",mn=>new Rt.E9(-15,4+1.5*mn))),Pr(Rt.bn,{segmentIndex:0,segmentOffset:new Rt.E9(15,-6),segmentOrientation:Rt.rU.OrientMinus90,alignmentFocus:Rt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Rt.KX("fill","color"),new Rt.KX("visible","dir",mn=>mn===2),new Rt.KX("width","thickness",mn=>7+3*mn),new Rt.KX("height","thickness",mn=>7+3*mn),new Rt.KX("segmentOffset","thickness",mn=>new Rt.E9(-15,4+1.5*mn))),Pr(Rt.al,{alignmentFocus:new Rt.z6(0,1,-4,0),editable:!0},new Rt.KX("text").makeTwoWay(),new Rt.KX("stroke","color"))),Sn.current.linkTemplate.selectionAdornmentTemplate=Pr(Rt.uz,Pr(Rt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:jn(2)},new Rt.KX("pathPattern","thickness",jn)),Nr({alignmentFocus:new Rt.z6(0,0,-6,-4)}));function jn(mn){return Pr(Rt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(mn+4).toString()+" H3"})}function hi(mn){var wi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return mn===0?wi="M0 0 M16 16 M0 8 L16 8":mn===2&&(wi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pr(Rt.bn,{geometryString:wi,margin:2,background:"transparent",mouseEnter:(Di,gi)=>gi.background="dodgerblue",mouseLeave:(Di,gi)=>gi.background="transparent",click:Er("dir",mn),contextClick:Er("dir",mn)})}function jr(mn){var wi=(Di,gi)=>{Di.handled=!0,Di.diagram.model.commit(ki=>{var zi=gi.part.adornedPart;ki.set(zi.data,mn?"toSpot":"fromSpot",Rt.z6.stringify(Rt.z6.AllSides)),(mn?zi.toNode:zi.fromNode).invalidateConnectedLinks()})};return Pr(Rt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Di,gi)=>gi.background="dodgerblue",mouseLeave:(Di,gi)=>gi.background="transparent",click:wi,contextClick:wi})}function ar(mn,wi){var Di=0,gi=Rt.z6.RightSide;mn.equals(Rt.z6.Top)?(Di=270,gi=Rt.z6.TopSide):mn.equals(Rt.z6.Left)?(Di=180,gi=Rt.z6.LeftSide):mn.equals(Rt.z6.Bottom)&&(Di=90,gi=Rt.z6.BottomSide),wi||(Di-=180);var ki=(zi,ro)=>{zi.handled=!0,zi.diagram.model.commit(Gi=>{var Fi=ro.part.adornedPart;Gi.set(Fi.data,wi?"toSpot":"fromSpot",Rt.z6.stringify(gi)),(wi?Fi.toNode:Fi.fromNode).invalidateConnectedLinks()})};return Pr(Rt.bn,{alignment:mn,alignmentFocus:mn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Di,background:"transparent",mouseEnter:(zi,ro)=>ro.background="dodgerblue",mouseLeave:(zi,ro)=>ro.background="transparent",click:ki,contextClick:ki})}Sn.current.linkTemplate.contextMenu=Pr("ContextMenu",Xr(),Rr(),Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",hi(0),hi(1),hi(2))),Pr("ContextMenuButton",Pr(Rt.s_,"Horizontal",Pr(Rt.s_,"Spot",jr(!1),ar(Rt.z6.Top,!1),ar(Rt.z6.Left,!1),ar(Rt.z6.Right,!1),ar(Rt.z6.Bottom,!1)),Pr(Rt.s_,"Spot",{margin:new Rt.Zt(0,0,0,2)},jr(!0),ar(Rt.z6.Top,!0),ar(Rt.z6.Left,!0),ar(Rt.z6.Right,!0),ar(Rt.z6.Bottom,!0)))));const Qr=`{ "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 un=["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 Ti(mn){return console.log("shapeName:",mn),un.indexOf(mn)>=0}var eo=new Rt.YI(li.current,{maxSelectionCount:1,linkTemplate:Pr(Rt.rU,{locationSpot:Rt.z6.Center,selectionAdornmentTemplate:Pr(Rt.uz,"Link",{locationSpot:Rt.z6.Center},Pr(Rt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pr(Rt.bn,{toArrow:"Standard",stroke:null}))},{routing:Rt.rU.AvoidsNodes,curve:Rt.rU.JumpOver,corner:5,toShortLength:4},new Rt.KX("points"),Pr(Rt.bn,{isPanelMain:!0,strokeWidth:2}),Pr(Rt.bn,{toArrow:"Standard",stroke:null})),model:new Rt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Rt.bn.getFigureGenerators().toArray().map(mn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:mn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Sn.current.addDiagramListener("TextEdited",function(mn){var wi;const Di=mn.subject.part;var gi=(wi=document.activeElement)==null?void 0:wi.value;typeof gi=="string"&&gi.trim()===""&&Sn.current.model.commit(function(ki){ki.set(Di.data,"text","\u672A\u547D\u540D"),Sn.current.commandHandler.stopCommand()},"increment")}),eo.nodeTemplate=Pr(Rt.NB,"Auto",{locationSpot:Rt.z6.Center},new Rt.KX("location","location",Rt.E9.parse).makeTwoWay(Rt.E9.stringify),Pr(Rt.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 Rt.KX("stroke").makeTwoWay(),new Rt.KX("fill").makeTwoWay(),new Rt.KX("figure")),Pr(Rt.al,{margin:new Rt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Rt.$u(16,16),maxSize:new Rt.$u(10,NaN),textAlign:"center",editable:!0},new Rt.KX("key").makeTwoWay())),setTimeout(()=>{Sn.current.grid=Pr(Rt.s_,"Grid",Pr(Rt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pr(Rt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Sn.current.grid.visible=!0,Sn.current.grid.gridCellStroke="darkgray",Sn.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Sn.current,Sn.current}const bi=()=>Fe(this,null,function*(){var Pr,Lt=Sn.current.makeImage();const ln=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Lt.src,file_data:JSON.stringify({login:(Pr=(0,Ze.eY)())==null?void 0:Pr.login,data:JSON.parse(Sn.current.model.toJson())})}});Pn({src:ln.url})});return(0,oe.useEffect)(()=>(setTimeout(()=>{oi()},500),dr(_n+1),()=>{Sn.current=null}),[]),st.createElement("div",{ref:ci,className:"body-overflow-initial"},st.createElement(kt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!_n,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:st.createElement(bn.Z,null,st.createElement(nt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),st.createElement(nt.Z,{onClick:()=>{var Pr,Lt,ln=Sn.current.selection.first();if(Yr.current=!Yr.current,document.activeElement&&ln){let Nr=(Lt=(Pr=document.activeElement)==null?void 0:Pr.value)==null?void 0:Lt.trim();typeof Nr=="string"&&Sn.current.model.commit(function(Er){Er.set(ln.data,"text",Nr||"\u672A\u547D\u540D"),Sn.current.commandHandler.stopCommand()},"increment")}dr(_n+1)}},st.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Rn},st.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Yr.current?"none":"block"},className:Re.flowChartWrp},st.createElement("div",{style:{display:"flex",height:"100%"}},st.createElement("div",{style:{width:"300px",height:"100%"}},st.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),st.createElement("div",{style:{height:"calc(100% - 50px)"},className:Re.myPaletteDiv,ref:li})),st.createElement("div",{style:{flex:1,position:"relative"}},st.createElement("div",{ref:$n,style:{height:"80vh"}}))),st.createElement("div",{className:"tr"},st.createElement(ht.ZP,{size:"large",onClick:bi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var hn=St,On=ae(47889),or=ae(71051);const jt=On.ZP.Group,Ut={margin:"0 8px"};var Qt=({callback:Rn,onCancel:Pn})=>{function Sn($n){Rn($n)}return oe.createElement($e.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Sn},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:Ut},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:Ut},"\u884C\u6570"),oe.createElement($e.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(or.Z,null)),oe.createElement("span",{style:Ut},"\u5217\u6570"),oe.createElement($e.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(or.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:Ut},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement($e.default.Item,{name:"align"},oe.createElement(jt,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(ht.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(ht.ZP,{type:"ghost",onClick:Pn},"\u53D6\u6D88")))},En=ae(71411),Mn=ae(43001),Tn=ae.n(Mn),Vn=(0,oe.forwardRef)(({use3d:Rn,width:Pn,height:Sn,callback:$n,showSaveButton:li},Yr)=>{const ci=(0,oe.useRef)(),_n=(0,oe.useRef)(),[dr,oi]=(0,oe.useState)(!1),bi=(0,oe.useRef)({id:ci,appName:"graphing",width:Pn||1e3,height:Sn||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)(()=>{_n.current=new(Tn())(bi.current,!0),window.onload=function(){_n.current.inject("applet_container")}},[]);const Pr=()=>{var Lt=window.ggbApplet.getPNGBase64(1,!0,72);return $n&&$n(Lt),Lt};return(0,oe.useEffect)(()=>{bi.current.appName=dr?"3D":"graphing",_n.current.inject("applet_container")},[dr]),(0,oe.useEffect)(()=>{oi(Rn)},[Rn]),(0,oe.useImperativeHandle)(Yr,()=>({getImgData:Pr})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ci}),oe.createElement(bn.Z,{align:"middle"},oe.createElement(nt.Z,{flex:1},oe.createElement(En.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:dr,onChange:Lt=>oi(Lt)})),oe.createElement(nt.Z,null,oe.createElement(ht.ZP,{size:"large",onClick:Pr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Xt=ae(76562),nn=ae(6767);const fn="link",Gn="upload-image",cn="add-flowchart",Et="draw-image",Jn="add-flowchart",ir="code-block",Wt="add-table",wr="------------",ei={default:wr,left:`:${wr}`,center:`:${wr}:`,right:`${wr}:`};var Fr=ae(37808);function Dn(){}let ii=0;const Kr=1e4,cr="\u2581",Dr="@\u2581\u2581@",ri="@\u2581@",_e=`
**\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`,Mr=["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 Tr(Rn){return/^\d+$/.test(Rn)?`${Rn}px`:Rn}const _r=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Gr={[_r+"-B"]:"bold",[_r+"-I"]:"italic"},br={[fn]:"\u6DFB\u52A0\u94FE\u63A5",[ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Gn]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[cn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ci=({defaultValue:Rn="",onChange:Pn,width:Sn="100%",height:$n=400,miniToolbar:li=!1,isFocus:Yr=!1,watch:ci,insertTemp:_n,mode:dr="markdown",id:oi="markdown-editor-id",showResizeBar:bi=!1,noStorage:Pr=!1,showNullButton:Lt=!1,showNullProgramButton:ln=!1,hidetoolBar:Nr=!1,fullScreen:Er=!1,onBlur:Yt,onCMBeforeChange:Nn,onFullScreen:Xr,className:Ln="",disablePaste:Ve=!1,disabled:Rr=!1,disabledFill:kr=!1,placeholder:jn="",values:hi="",extraUse:jr})=>{const[ar,Qr]=(0,oe.useState)(null),[un,Ti]=(0,oe.useState)(Rn),[eo,mn]=(0,oe.useState)(ci),[wi,Di]=(0,oe.useState)(Er),[gi,ki]=(0,oe.useState)(""),[zi,ro]=(0,oe.useState)(0),[Gi,Fi]=(0,oe.useState)($n),[io,qn]=(0,oe.useState)(!1),[Ui,lr]=(0,oe.useState)(0),[vi,Vi]=(0,oe.useState)(0),Oi=(0,oe.useRef)(),fo=(0,oe.useRef)(),co=(0,oe.useRef)(),ji=(0,oe.useRef)();(0,oe.useEffect)(()=>{const pn=window.scrollY||window.pageYOffset;Ti(hi),ar==null||ar.setValue(hi),window.scrollTo(0,pn)},[hi]),(0,oe.useEffect)(()=>{Xr==null||Xr(wi)},[wi]),(0,oe.useEffect)(()=>{if(Oi.current){let pn=function(Qn,an){var hr;if(Ve){an.preventDefault();return}const Vr=an.clipboardData;if(Vr){const Ai=Vr.types.toString(),si=Vr.items;if(Ai==="Files"||Vr.types.indexOf("Files")>-1){if(an.preventDefault(),dr=="stex")return;try{let Si=si[1];((hr=si[0])==null?void 0:hr.kind)==="file"&&(Si=si[0]);const Ii=Si.getAsFile(),Bi=Ii.name.split(".").pop();(0,dn.I)(Ii,ao=>{var wo,Ho,An;ao.id?((wo=Ii==null?void 0:Ii.type)==null?void 0:wo.indexOf("image"))>-1?tr.replaceSelection(`<img width="100%" src="/api/attachments/${ao.id}?type=${ao.content_type})" alt="" />`):((Ho=Ii==null?void 0:Ii.type)==null?void 0:Ho.indexOf("video"))>-1?tr.replaceSelection(`<video width="100%" controls src="/api/attachments/${ao.id}"></video>`):((An=Ii==null?void 0:Ii.type)==null?void 0:An.indexOf("pdf"))>-1?tr.replaceSelection(`<a href="/api/attachments/${ao.id}?type=${Ii.type}&disposition=inline" target="_blank">${Ii.name}</a>`):Mr.includes(Bi)?tr.replaceSelection(`<a href="/api/attachments/${ao.id}?type=office&disposition=inline" target="_blank">${Ii.name}</a>`):tr.replaceSelection(`[${Ii.name}](/api/attachments/${ao.id}?type=${ao.content_type})`):(ao==null?void 0:ao.status)===401&&(document.location.href="/user/login")})}catch(Si){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const tr=ke().fromTextArea(Oi.current,{mode:dr,lineNumbers:!li,lineWrapping:!0,value:Rn,autoCloseTags:!0,autoCloseBrackets:!0});return tr.on("keyup",function(Qn,an){an.keyCode===8&&(Qn.getValue()==""?tr.setOption("placeholder",jn):tr.setOption("placeholder",null))}),tr.on("keydown",function(Qn,an){if(an.keyCode===8){var hr=Fn(Qn);hr&&an.preventDefault()}}),Yr&&tr.focus(),tr.on("paste",pn),Rr&&tr.on("beforeChange",function(Qn,an){(an.origin==="paste"||an.origin==="+input")&&an.cancel()}),Qr(tr),()=>{tr.off("paste",pn)}}},[]);const zo=(0,oe.useCallback)(()=>{if(fo.current)try{}catch(pn){console.log(pn,"---- to set md editor body height")}},[Gi,fo,wi]);(0,oe.useEffect)(()=>{function pn(){let tr=new Ie.Z(Qn=>{for(let an of Qn)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&(zo(),ar.setSize("100%","100%"),ar.refresh())});return tr.observe(Oi.current.parentElement),tr}if(ar){const tr=pn();return()=>{var Qn,an;(Qn=Oi.current)!=null&&Qn.parentElement&&tr.unobserve((an=Oi.current)==null?void 0:an.parentElement)}}},[ar,zo]),(0,oe.useEffect)(()=>{if(ar){let pn=[];for(const[tr,Qn]of Object.entries(Gr)){let an={[tr]:()=>{mr(Qn)}};pn.push(an),ar.addKeyMap(an)}return()=>{for(let tr of pn)ar.removeKeyMap(tr)}}},[ar]),(0,oe.useEffect)(()=>{Er!==wi&&Di(Er)},[Er]),(0,Fr.Z)(()=>{if(!Pr&&zi>0){let pn=new Date().getTime(),tr=window.sessionStorage.getItem(oi);pn>=zi+Kr&&(!tr||tr!==un)&&(window.sessionStorage.setItem(oi,un),qn(!0))}},Kr),(0,oe.useEffect)(()=>{mn(ci)},[ar,ci]),(0,oe.useEffect)(()=>{ar&&Yr&&ar.focus()},[ar,Yr]),(0,oe.useEffect)(()=>{if(eo&&ar){let pn=function(Qn){let an=Qn.target;if(ji.current){let hr=an.scrollTop/an.scrollHeight;ji.current.scrollTop=ji.current.scrollHeight*hr}};const tr=ar.getScrollerElement();return tr.addEventListener("scroll",pn),()=>{tr.removeEventListener("scroll",pn)}}},[ar,eo]),(0,oe.useEffect)(()=>{if(ar&&Nn){let pn=function(tr,Qn){Nn(tr,Qn)};return ar.on("beforeChange",pn),()=>{ar.off("beforeChange",pn)}}},[ar,Nn]),(0,oe.useEffect)(()=>{if(ar&&Yt){let pn=function(){Yt(ar.getValue())};return ar.on("blur",pn),()=>{ar.off("blur",pn)}}},[ar,Yt]);function Fn(pn,tr){var Qn=pn.getDoc(),an=Qn.getCursor(),hr=Qn.getLine(an.line),Vr=hr.charAt(an.ch-1),Ai=hr.lastIndexOf("@\u2581@",an.ch),si=hr.lastIndexOf("@\u2581\u2581@",an.ch),Si=Ai>si?Ai:si,Ii=Ai>si?3:4;if(Dr.indexOf(Vr)===-1)return null;if(console.log("change1:",tr,pn,hr,an,Si,Ai,si,Vr),Si>=0&&an.ch-Si<5){var Bi=Si+Ii;return Qn.replaceRange("",{line:an.line,ch:Si},{line:an.line,ch:Bi}),{line:an.line,ch:Bi}}return null}(0,oe.useEffect)(()=>{if(ar){let pn=function(tr,Qn){const an=tr.getValue();Ti(an),ro(new Date().getTime()),tr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pn&&(ln?Pn(an,gr(an)):Pn(an))};return ar.on("change",pn),()=>{ar.off("change",pn)}}},[ar,Pn]),(0,oe.useEffect)(()=>{if(ar)if(Rn==null)ar.setValue(""),Ti("");else{const pn=window.scrollY||window.pageYOffset;Rn!==ar.getValue()&&(ar.setValue(Rn),Ti(Rn),ar.setCursor(Rr?1:ar.lineCount(),0),window.scrollTo(0,pn))}},[ar,Rn]);const mr=(0,oe.useCallback)(pn=>{const tr=ar.getCursor(),Qn=ar.getSelection();let an=Qn.split(`
`);switch(pn){case"bold":return ar.replaceSelection("**"+Qn+"**"),Qn===""&&ar.setCursor(tr.line,tr.ch+2),ar.focus();case"italic":return ar.replaceSelection("*"+Qn+"*"),Qn===""&&ar.setCursor(tr.line,tr.ch+1),ar.focus();case"code":return ar.replaceSelection("`"+Qn+"`"),Qn===""&&ar.setCursor(tr.line,tr.ch+1),ar.focus();case"inline-latex":return ki("inline-latex"),ar.focus();case"latex":return ar.replaceSelection("```latex\n"+Qn+"\n```"),ar.setCursor(tr.line+1,Qn.length+1),ar.focus();case"line-break":return ar.replaceSelection(`<br/>
`),ar.focus();case"list-ul":return Qn===""?ar.replaceSelection("- "+Qn):ar.replaceSelection(an.map(hr=>hr===""?"":`- ${hr}`).join(`
`)),ar.focus();case"list-ol":return Qn===""?ar.replaceSelection("1. "+Qn):ar.replaceSelection(an.map((hr,Vr)=>hr===""?"":`${Vr+1}. ${hr}`).join(`
`)),ar.focus();case"add-null-ch":return Qn===""&&ar.setCursor(tr.line,tr.ch),ar.replaceSelection(cr),ar.focus();case"add-signal":return Qn===""&&ar.setCursor(tr.line,tr.ch),ar.replaceSelection(ri),ar.focus();case"add-multiple":return Qn===""&&ar.setCursor(tr.line,tr.ch),ar.replaceSelection(Dr),ar.focus();case"inster-template-1":return Qn===""&&ar.setCursor(tr.line,tr.ch),ar.replaceSelection(_e),ar.focus();case"eraser":return ar.setValue(""),ar.focus();case"trigger-watch":return mn(!eo),ar.focus();case"trigger-full-screen":return Di(!wi),ar.focus();case fn:ki(fn);return;case ir:ki(ir);return;case Gn:ki(Gn);return;case Et:ki(Et);return;case"maths-latex":ki("maths-latex");return;case cn:ki(cn);return;case Wt:ki(Wt);return;default:throw new Error}},[ar,eo,wi]),wn=(0,oe.useCallback)((pn,tr)=>{var Qn,an,hr,Vr,Ai,si;switch(ki(""),gi){case fn:const{title:wo,link:Ho}=pn;return ar.replaceSelection(`[${wo}](${Ho})`),ar.focus();case ir:const{language:An,content:ko}=pn;return ar.replaceSelection(["```"+An,ko,"```"].join(`
`)),ar.focus();case"maths-latex":for(var Si=atob(pn),Ii=new Uint8Array(Si.length),Bi=0;Bi<Si.length;Bi++)Ii[Bi]=Si.charCodeAt(Bi);var ao=new Blob([Ii],{type:"image/png"});(0,dn.I)(ao,za=>{za.id?ar.replaceSelection(`![,](/api/attachments/${za.id}?type=${za.content_type})`):(za==null?void 0:za.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ar.replaceSelection("`$$"+pn+"$$`");break;case Gn:case Et:case Jn:const{src:po,alt:Zi}=pn,Mi=tr,Oo=(hr=(an=(Qn=Mi==null?void 0:Mi.name)==null?void 0:Qn.split("."))==null?void 0:an.pop)==null?void 0:hr.call(an);return((Vr=Mi==null?void 0:Mi.type)==null?void 0:Vr.indexOf("image"))>-1||!(Mi!=null&&Mi.type)?Mi!=null&&Mi.align||Mi!=null&&Mi.width?ar.replaceSelection(`<p style="text-align:${Mi.align||"initial"}"><img width="${Mi.width?Mi.width+"%":"initial"}" src="${po}" alt="${Zi||""}" /></p>`):ar.replaceSelection(`<img width="100%" src="${po}" alt="${Zi||""}" />`):((Ai=Mi==null?void 0:Mi.type)==null?void 0:Ai.indexOf("video"))>-1?ar.replaceSelection(`<video width="100%" controls src="${po}"></video>`):((si=Mi==null?void 0:Mi.type)==null?void 0:si.indexOf("pdf"))>-1?ar.replaceSelection(`<a href="${po}?type=${Mi.type}&disposition=inline" target="_blank">${Mi.name}</a>`):Mr.includes(Oo)?ar.replaceSelection(`<a href="${po}?type=office&disposition=inline" target="_blank">${Mi.name}</a>`):ar.replaceSelection(`[${Mi.name}](${po})`),ar.focus();case Wt:const{row:Wo,col:Wn,align:vo}=pn;let ia=`
`;for(let za=0;za<Wo;za++){let hs=[],il=[];for(let Ls=0;Ls<Wn;Ls++)za===1&&il.push(ei[vo]),hs.push(" ");za===1&&(ia+=`| ${il.join(" | ")} |
`),ia+=`| ${hs.join(Wn===1?"":" | ")} |
`}return ar.replaceSelection(ia+`
`),ar.focus();default:throw new Error}},[ar,gi]),it=(0,oe.useMemo)(()=>{switch(gi){case fn:return oe.createElement(ct,{callback:wn,onCancel:Or});case ir:return oe.createElement(qt.Z,{callback:wn,onCancel:Or});case Gn:return oe.createElement(dn.Z,{callback:wn,onCancel:Or});case cn:return oe.createElement(hn,{callback:wn,onCancel:Or});case Wt:return oe.createElement(Qt,{callback:wn,onCancel:Or});case"maths-latex":return oe.createElement(Vn,{showSaveButton:!0,callback:wn});case"inline-latex":return oe.createElement(Xt.Z,{showSaveButton:!0,callback:wn});default:return null}},[gi]);function Or(){ki("")}(0,oe.useEffect)(()=>{if(co.current){let pn=function(Ai){hr=!0,Vr=Ai.pageY},tr=function(){hr=!1},Qn=function(Ai){if(hr){let si=Ai.pageY-Vr;si<0&&(si=0),si>300&&(si=300);let Si=$n+si+"px";Fi(Si)}},an=co.current,hr=!1,Vr=0;return an.addEventListener("mousedown",pn),document.addEventListener("mousemove",Qn),document.addEventListener("mouseup",tr),()=>{an.removeEventListener("mousedown",pn),document.removeEventListener("mousemove",Qn),document.removeEventListener("mouseup",tr)}}},[ar,co]),(0,oe.useEffect)(()=>{Fi($n)},[$n]);const Wr=Tr(Sn),pi=Tr(Gi),di={width:Wr,height:pi},ai=(0,oe.useMemo)(()=>{if(zi){let pn=new Date(zi),tr=pn.getHours(),Qn=pn.getMinutes(),an=pn.getSeconds();return tr=tr<10?"0"+tr:tr,Qn=Qn<10?"0"+Qn:Qn,an=an<10?"0"+an:an,`${tr}:${Qn}:${an}`}return 0},[zi]),gr=pn=>{const tr=[];if(ln){let Qn=-1;pn=pn.replace(/(@▁▁@|@▁@)/g,function(an,hr,Vr){tr.push({multiLine:an!==ri})})}return tr};function pt(){window.sessionStorage.removeItem(oi),qn(!1),ro(0)}function yn(){qn(!1),ro(0),ar.setValue(window.sessionStorage.getItem(oi))}(0,oe.useEffect)(()=>{br[gi]&&gi!==Et&&gi!==cn&&setTimeout(()=>{const pn=document.getElementsByClassName("markdown-popup-form")[0],tr=window.innerWidth/2-pn.offsetWidth/2,Qn=window.innerHeight/2-pn.offsetHeight/2;lr(tr),Vi(Qn)},0)},[gi]);const xn=pn=>{pn.preventDefault();const tr=pn.clientX-Ui,Qn=pn.clientY-vi;document.body.onmousemove=an=>{let hr=an.clientX-tr,Vr=an.clientY-Qn;const Ai=document.getElementsByClassName("markdown-popup-form")[0],si=window.innerWidth-Ai.offsetWidth,Si=window.innerHeight-Ai.offsetHeight;hr=Math.max(0,Math.min(hr,si)),Vr=Math.max(0,Math.min(Vr,Si)),Hn(an.clientX,an.clientY,tr,Qn)&&(lr(hr),Vi(Vr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Hn=(pn,tr,Qn,an)=>{const hr=document.body.clientHeight,Vr=document.body.clientWidth;return pn<20&&Qn>pn||pn>Vr-20&&Qn<pn||tr<20&&an>tr||tr>hr-20&&an<tr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:fo},oe.createElement("div",{className:`markdown-editor-container ${Ln} ${eo?"on-preview":""} ${li?"mini":""} ${wi?"full-screen":""}`,style:di},oe.createElement(Ye,{insertTemp:_n,watch:eo,fullScreen:wi,showNullButton:Lt,showNullProgramButton:ln,onActionCallback:mr,hidetoolBar:Nr,extraUse:jr}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:Oi,placeholder:jn})),eo?oe.createElement("div",{ref:ji,className:"preview-container"},dr==="stex"&&oe.createElement(Je,{value:un}),dr!=="stex"&&oe.createElement(mt.Z,{disabledFill:kr,showProgramFill:ln,value:un})):null))),bi?oe.createElement("a",{ref:co,className:"editor-resize"}):null,gi===Et&&oe.createElement(Gt,{callback:wn,onCancel:Or}),gi===cn&&oe.createElement(hn,{callback:wn,onCancel:Or}),oe.createElement(rt.Z,null,br[gi]&&gi!==Et&&gi!==cn?oe.createElement(kt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ui,top:vi},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:xn},br[gi]),open:!0,onCancel:Or,footer:null,destroyOnClose:!0,width:gi===cn?"1200px":null,height:gi===cn?"80vh":null,className:"markdown-popup-form"},it):null))}},17077:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return De},I:function(){return rt}});var oe=ae(28284),Ce=ae(6767),ke=ae(37568),Ie=ae(77736),je=ae(71051),Te=ae(47889),Ge=ae(99571),lt=ae(46699),Qe=ae(59301),Ue=ae(59301),mt=Object.defineProperty,Je=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=($e,at,ht)=>at in $e?mt($e,at,{enumerable:!0,configurable:!0,writable:!0,value:ht}):$e[at]=ht,ue=($e,at)=>{for(var ht in at||(at={}))te.call(at,ht)&&he($e,ht,at[ht]);if(Oe)for(var ht of Oe(at))ee.call(at,ht)&&he($e,ht,at[ht]);return $e},fe=($e,at)=>Je($e,It(at));const{useForm:me}=oe.default,be={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var De=({callback:$e,onCancel:at})=>{const[ht]=me();let ot=(0,Qe.useRef)();function vt(_t){ot.current.width=ht.getFieldValue("width"),ot.current.align=ht.getFieldValue("align"),$e(_t,ot.current)}function xt(_t,Jt){if(_t.status===-1){Ce.ZP.error(_t.message);return}ht.setFieldsValue({src:`/api/attachments/${_t.id}`,type:Jt.type})}function Tt(_t){let Jt=_t.target.files[0];ot.current=Jt,rt(Jt,xt)}return Ue.createElement(oe.default,fe(ue({form:ht},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(ke.default,{style:be})),Ue.createElement(Ye,{onFileChange:Tt}))),Ue.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(ke.default,{style:{width:264}})),Ue.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(Ie.Z,null,Ue.createElement(oe.default.Item,{name:"width",style:{margin:0}},Ue.createElement(je.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(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(Ge.ZP,{type:"default",onClick:at},"\u53D6\u6D88"))))};function Ye({onFileChange:$e}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:$e}))}function rt($e,at){if(!$e)throw new String("\u6CA1\u6709\u6587\u4EF6");let ht=new FormData;ht.append("editormd-image-file",$e),ht.append("file_param_name","editormd-image-file"),ht.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(vt){at(JSON.parse(vt.target.responseText),$e)},!1),ot.addEventListener("error",function(vt){console.error(vt)},!1),ot.open("POST",`${lt.KI}/api/attachments.json`),ot.send(ht)}},91558:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ke}});var oe=ae(59301),Ce=ae(4676);class ke extends oe.Component{constructor(je){super(je);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:je}=this.props;return(0,Ce.createPortal)(je,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(He,Ee,ae){"use strict";ae.d(Ee,{SV:function(){return Rt},ZP:function(){return Gt}});var oe=ae(59301),Ce=ae(76374);const ke={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ie={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},je={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(`
`)}]},Ge={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 lt=ae(53184),Qe=ae.n(lt),Ue=(tn,zn,Yn)=>new Promise((nt,Be)=>{var Re=Fe=>{try{st(Yn.next(Fe))}catch(St){Be(St)}},Ze=Fe=>{try{st(Yn.throw(Fe))}catch(St){Be(St)}},st=Fe=>Fe.done?nt(Fe.value):Promise.resolve(Fe.value).then(Re,Ze);st((Yn=Yn.apply(tn,zn)).next())});const mt={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"]}},Je=(tn,zn,Yn,nt)=>{const Be=zn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Yn.lineNumber,endColumn:Yn.column});return Array.from(new Set(Be.match(/\b\w{2,}\b/g)||[])).map(Ze=>({label:Ze,kind:tn.languages.CompletionItemKind.Text,insertText:Ze,range:nt}))},It=(tn,zn,Yn,nt)=>{tn.languages.registerCompletionItemProvider(zn,{provideCompletionItems(Be,Re){const Ze=Be.getWordUntilPosition(Re),st={startLineNumber:Re.lineNumber,endLineNumber:Re.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Fe=Be.getLineContent(Re.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...Je(tn,Be,Re,st),...Yn.map(hn=>({label:hn,kind:tn.languages.CompletionItemKind.Keyword,documentation:hn,insertText:hn,insertTextRules:tn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:st})),...nt.map(hn=>({label:hn.label,kind:tn.languages.CompletionItemKind.Snippet,documentation:hn.content,insertText:Fe.startsWith("#")?hn.content.replace(/#/,""):hn.content,insertTextRules:tn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:st}))]}}})};var Oe=tn=>{mt.languages.forEach(zn=>{tn.languages.registerDocumentFormattingEditProvider(zn,{provideDocumentFormattingEdits(Yn){return Ue(this,null,function*(){const nt=Qe()(Yn.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:Yn.getFullModelRange(),text:nt}]})}})}),It(tn,"java",Ie.keywords,Ie.quickKey),It(tn,"cpp",je.keywords,je.quickKey),It(tn,"c",ke.keywords,[]),It(tn,"python",Te.keywords,Te.quickKey),It(tn,"scala",Ge.keywords,Ge.quickKey)};const te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ee=Object.defineProperty,he=(tn,zn,Yn)=>zn in tn?ee(tn,zn,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):tn[zn]=Yn,ue=(tn,zn,Yn)=>he(tn,typeof zn!="symbol"?zn+"":zn,Yn);const fe=class oE{constructor(zn,Yn,nt){this.placeholder=zn,this.editor=Yn,this.monaco=nt,Yn.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)}};ue(fe,"ID","editor.widget.placeholderHint");var be=fe,Ae=ae(96236),De=ae(6767),Ye=ae(25399),rt=ae(89392),$e=ae(49535),at=ae(56102),ht=Object.defineProperty,ot=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,Jt=(tn,zn,Yn)=>zn in tn?ht(tn,zn,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):tn[zn]=Yn,Zt=(tn,zn)=>{for(var Yn in zn||(zn={}))Tt.call(zn,Yn)&&Jt(tn,Yn,zn[Yn]);if(xt)for(var Yn of xt(zn))_t.call(zn,Yn)&&Jt(tn,Yn,zn[Yn]);return tn},vn=(tn,zn)=>ot(tn,vt(zn)),bt=(tn,zn)=>{var Yn={};for(var nt in tn)Tt.call(tn,nt)&&zn.indexOf(nt)<0&&(Yn[nt]=tn[nt]);if(tn!=null&&xt)for(var nt of xt(tn))zn.indexOf(nt)<0&&_t.call(tn,nt)&&(Yn[nt]=tn[nt]);return Yn},ft=(tn,zn,Yn)=>new Promise((nt,Be)=>{var Re=Fe=>{try{st(Yn.next(Fe))}catch(St){Be(St)}},Ze=Fe=>{try{st(Yn.throw(Fe))}catch(St){Be(St)}},st=Fe=>Fe.done?nt(Fe.value):Promise.resolve(Fe.value).then(Re,Ze);st((Yn=Yn.apply(tn,zn)).next())});function ct(tn){return/^\d+$/.test(tn)?`${tn}px`:tn}function qt(){}let dn=!1;const kt={"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 bn(tn=[]){let zn=tn;if(Array.isArray(tn)){for(let Yn=0;Yn<tn.length;Yn++){let nt=kt[tn[Yn]];if(nt)return nt}return zn[0]}return kt[zn]||zn}let gn=null;const Zn=()=>ft(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(tn){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",tn)}});var Gt=tn=>{var zn=tn,{width:Yn="100%",height:nt="100%",value:Be,language:Re="javascript",style:Ze={},options:st={},overrideServices:Fe={},theme:St="vs-dark",onEditBlur:hn,isCopy:On=!1,onSave:or,autoHeight:jt=!1,forbidCopy:Ut=!1,onChange:Qt=qt,editorDidMount:En=qt,onFocus:Mn=qt,onBreakPoint:Tn=qt,breakPointValue:Ht=[],filename:Vn="educoder.txt",errorLine:Xt,errorContent:nn="",highlightLine:fn,openBreakPoint:Gn=!1,placeholder:cn="",showMiniMap:Et=!0}=zn,Jn=bt(zn,["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 ir=(0,oe.useRef)(),Wt=(0,oe.useRef)({}),wr=(0,oe.useRef)(),ei=(0,oe.useRef)(),Fr=(0,oe.useRef)([]),Dn=(0,oe.useRef)(!1),ii=(0,oe.useRef)(),Kr=(0,oe.useRef)(),cr=(0,oe.useRef)(!1),[Dr,ri]=(0,oe.useState)(!1);function _e(){let _n;return ir.current&&(_n=new Ce.Z(dr=>{for(let oi of dr)(oi.target.offsetHeight>0||oi.target.offsetWidth>0)&&Wt.current.instance.layout()}),_n.observe(ir.current)),_n}function Mr(){De.ZP.warning({content:decodeURIComponent(te),key:"monaco-editor-tip"})}const Tr=()=>{let _n=Wt.current.instance;if(Be!=null&&_n&&Dr){const dr=_n.getModel();dr&&Be!==dr.getValue()&&(dn=!0,dr.setValue(Be),_n.layout(),dn=!1)}};(0,oe.useEffect)(()=>{const _n=$e.Z.subscribe("formatDocument",dr=>{var oi;let bi=Wt.current.instance;(oi=bi==null?void 0:bi.getAction)==null||oi.call(bi,"editor.action.formatDocument").run()});return window.updateMonacoValue=dr=>{Qt(dr)},_n},[]),(0,oe.useEffect)(()=>{var _n;let dr=Wt.current.instance;ei.current&&clearTimeout(ei.current),ei.current=setTimeout(()=>{Tr()},500),Be&&(Be!=null&&Be.length)&&((_n=dr==null?void 0:dr.updateOptions)==null||_n.call(dr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Be.split(/\r\n|\r|\n/g).length))+3,5)}))},[Be,Dr,Wt.current]),(0,oe.useEffect)(()=>{if(Xt&&Wt.current&&Wt.current.instance){let dr=Wt.current.instance;dr.changeViewZones(function(oi){var bi=document.createElement("div");bi.style.padding="10px 20px",bi.style.width="calc(100% - 20px)",bi.className="my-error-line-wrp",bi.innerHTML=nn,oi.addZone({afterLineNumber:Xt||11,heightInLines:3,domNode:bi})});var _n={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}};dr.addOverlayWidget(_n),dr.revealPositionInCenter({lineNumber:20,column:1})}},[Xt,Wt.current,Dr]);const sr=(_n="",dr)=>{if(!_n||_n.trim()==="")return!0;const bi=Wt.current.instance.getModel().getLineTokens(dr);let Pr=!1;for(let Lt=0;Lt<2;Lt++)bi.getStandardTokenType(Lt)===1&&(Pr=!0);return Pr};(0,oe.useEffect)(()=>{var _n;const dr=(_n=Wt.current)==null?void 0:_n.instance;if(dr&&Dr&&Ut){const oi=dr.onDidBlurEditorWidget(()=>{cr.current=!1}),bi=dr.onDidFocusEditorText(()=>{cr.current=!0});return()=>{oi.dispose(),bi.dispose()}}},[Wt.current,Dr,Ut]),(0,oe.useEffect)(()=>{var _n;if((_n=Wt.current)!=null&&_n.instance&&Dr&&Gn){let dr=Wt.current.instance,oi=dr.getModel();if(!oi)return;(()=>{var Rr;let kr=[],jn=[];const hi=oi.getAllDecorations();for(let ar of hi)ar.options.className==="highlighted-line"&&(kr.push((Rr=ar==null?void 0:ar.range)==null?void 0:Rr.startLineNumber),jn.push(ar==null?void 0:ar.id));if(fn===kr[0])return;oi.deltaDecorations(jn,[]);const jr=oi.getLineCount();fn&&fn<=jr&&(dr.deltaDecorations([],[{range:new gn.Range(fn,1,fn,oi.getLineMaxColumn(fn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),dr.revealLineInCenter(fn))})();const Pr=(Rr=!1)=>{var kr;let jn=[],hi=[];const jr=oi.getAllDecorations();for(let ar of jr)ar.options.linesDecorationsClassName==="breakpoints-select"&&(jn.push((kr=ar==null?void 0:ar.range)==null?void 0:kr.startLineNumber),hi.push(ar==null?void 0:ar.id));if(Rr)return{lines:jn,ids:hi};Tn(jn)},Lt=Rr=>ft(void 0,null,function*(){let kr={range:new gn.Range(Rr,1,Rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield oi.deltaDecorations([],[kr]),Pr()}),ln=Rr=>ft(void 0,null,function*(){let kr=[];const jn=dr.getLineDecorations(Rr);for(let hi of jn)hi.options.linesDecorationsClassName==="breakpoints-select"&&kr.push(hi.id);yield oi.deltaDecorations(kr,[]),Pr()}),Nr=Rr=>{let kr=dr.getLineDecorations(Rr);for(let jn of kr)if(jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,rt.isEqual)(Ht,Pr(!0).lines)){oi.deltaDecorations(Pr(!0).ids,[]);const Rr=Ht.map(kr=>({range:new gn.Range(kr,1,kr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));oi.deltaDecorations([],Rr)}const Er=dr.onDidChangeModelContent(Rr=>{let kr=dr.getPosition();if(kr){let jn=kr.lineNumber;clearTimeout(Kr.current),Kr.current=setTimeout(()=>{sr(oi.getLineContent(jn),jn)?ln(jn):Nr(jn)?(ln(jn),Lt(jn)):Pr()},100)}}),Yt=dr.onMouseDown(Rr=>{var kr,jn,hi;if(Rr.target.detail&&((hi=(jn=(kr=Rr.target)==null?void 0:kr.element)==null?void 0:jn.className)!=null&&hi.includes("line-numbers"))){let jr=Rr.target.position.lineNumber;if(sr(oi.getLineContent(jr),jr))return;Nr(jr)?ln(jr):Lt(jr)}}),Nn=Rr=>{let kr={range:new gn.Range(Rr,1,Rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Fr.current=dr.deltaDecorations(Fr.current,[kr])},Xr=()=>{Fr.current=dr.deltaDecorations(Fr.current,[])},Ln=dr.onMouseMove(Rr=>{var kr,jn,hi;if(Xr(),Rr.target.detail&&((hi=(jn=(kr=Rr.target)==null?void 0:kr.element)==null?void 0:jn.className)!=null&&hi.includes("line-numbers"))){let jr=Rr.target.position.lineNumber;if(sr(oi.getLineContent(jr),jr))return;Nn(jr)}}),Ve=dr.onMouseLeave(()=>{Xr()});return()=>{Er.dispose(),Yt.dispose(),Ln.dispose(),Ve.dispose()}}},[Wt.current,Dr,Ht,fn,Gn,Re]),(0,oe.useEffect)(()=>{var _n;(_n=Wt.current)!=null&&_n.instance&&Gn&&Wt.current.instance.setPosition({lineNumber:0,column:0})},[fn]);function _r(){let _n=Wt.current.instance;if(_n){const dr=_n.getSelection(),oi=Wt.current.pastePos||{},bi=new gn.Range(oi.startLineNumber||dr.endLineNumber,oi.startColumn||dr.endColumn,oi.endLineNumber||dr.endLineNumber,oi.endColumn||dr.endColumn);setTimeout(()=>{_n.executeEdits("",[{range:bi,text:""}])},300)}}function Gr(_n){(window.navigator.platform.match("Mac")?_n.metaKey:_n.ctrlKey)&&_n.keyCode==83&&(_n.preventDefault(),or())}const br=()=>{if(jt&&Wt.current.instance){const _n=Wt.current.instance.getContentHeight();Yr(_n<nt?nt:_n)}else Yr(nt)};function Ci(_n){var dr=document.createEvent("MouseEvents");dr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),_n.dispatchEvent(dr)}const Rn=_n=>{if(!cr.current)return;const{keyCode:dr,ctrlKey:oi,metaKey:bi,target:Pr,type:Lt}=_n;return(Lt==="paste"||(dr===67||dr===86)&&(bi||oi))&&Pr.nodeName==="TEXTAREA"&&(Mr(),_n.preventDefault()),!1};function Pn(_n,dr){var oi=window.URL||window.webkitURL||window,bi=new Blob([dr]),Pr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Pr.href=oi.createObjectURL(bi),Pr.download=_n,Ci(Pr)}(0,oe.useEffect)(()=>{br()},[br]),(0,oe.useEffect)(()=>{ir.current&&!Dr&&Promise.all([ae.e(8909),ae.e(6656)]).then(ae.bind(ae,71448)).then(_n=>{try{gn=_n,Wt.current.instance=gn.editor.create(ir.current,{value:Be,language:bn(Re),theme:St,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Et||!1}},Fe);const dr=Wt.current.instance;let Pr=[...Ae.BH._menuItems].find(Er=>Er[0]._debugName=="EditorContext")[1],Lt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ln=(Er,Yt)=>{var Nn,Xr;let Ln=Er._first;do Yt.includes((Xr=(Nn=Ln.element)==null?void 0:Nn.command)==null?void 0:Xr.id)&&Er._remove(Ln);while(Ln=Ln.next)};if(En(dr,gn),setTimeout(()=>{br(),Wt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(Vn||"educoder.txt",dr.getValue())}})},500),Wt.current.subscription=dr.onDidChangeModelContent(Er=>{Dn.current?clearTimeout(ii.current):(br(),Qt(dr.getValue(),Er)),ii.current=setTimeout(()=>{Dn.current=!1},500)}),window.Monaco||Oe(gn,bn(Re)),Ut&&(ln(Pr,Lt),ir.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Rn),window.removeEventListener("paste",Rn),window.addEventListener("keydown",Rn),window.addEventListener("paste",Rn)),window.Monaco=gn,hn&&dr.onDidBlurEditorWidget(()=>{hn(dr.getValue())}),Mn&&dr.onDidFocusEditorText(()=>{Ut&&Zn(),Mn(dr.getValue())}),Ut){Zn();try{dr.onDidPaste(Er=>{const Yt=dr.getSelection(),Nn=Wt.current.pastePos||{},Xr=new gn.Range(Nn.startLineNumber||Yt.endLineNumber,Nn.startColumn||Yt.endColumn,Nn.endLineNumber||Yt.endLineNumber,Nn.endColumn||Yt.endColumn);dr.executeEdits("",[{range:Er.range,text:""}])})}catch(Er){}}let Nr=_e();return cn&&typeof cn=="string"&&new be(cn,dr,gn),ri(!0),()=>{const Er=Wt.current.instance;Er.dispose();const Yt=Er.getModel();Yt&&Yt.dispose(),Wt.current.subscription&&Wt.current.subscription.dispose(),Nr.unobserve(ir.current)}}catch(dr){}})},[]),(0,oe.useEffect)(()=>{if(Wt.current.instance&&Dr)return document.addEventListener("keydown",Gr,!1),()=>{document.removeEventListener("keydown",Gr)}},[or,Dr]),(0,oe.useEffect)(()=>{let _n=Wt.current.instance;if(_n&&Dr){let dr=bn(Re);gn.editor.setModelLanguage(_n.getModel(),dr)}},[Re,Dr]),(0,oe.useEffect)(()=>{Wt.current.instance&&Dr&&gn.editor.setTheme(St)},[St,Dr]),(0,oe.useEffect)(()=>{let _n=Wt.current.instance;wr.current=st,_n&&Dr&&(_n.updateOptions(Zt({},st)),setTimeout(()=>{_n.getModel().updateOptions(Zt({},st))},200))},[JSON.stringify(st),Dr]),(0,oe.useEffect)(()=>{let _n=Wt.current.instance;_n&&Dr&&_n.layout()},[Yn,nt,Dr]);const[Sn,$n]=(0,oe.useState)(ct(Yn)),[li,Yr]=(0,oe.useState)(ct(nt)),ci=vn(Zt({},Ze),{width:Sn,height:li,position:"relative"});return oe.createElement("div",{className:"my-monaco-editor",ref:ir,style:ci},On&&oe.createElement(at.CopyToClipboard,{text:Be,onCopy:()=>De.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(Ye.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 Rt({width:tn="100%",height:zn="100%",original:Yn,modified:nt,language:Be,options:Re={}}){const Ze=(0,oe.useRef)(),[st,Fe]=(0,oe.useState)(null);function St(jt){let Ut;return Ze.current&&(Ut=new Ce.Z(Qt=>{for(let En of Qt)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&jt.layout()}),Ut.observe(Ze.current)),Ut}(0,oe.useEffect)(()=>(Ze.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(jt=>{gn=jt;const Ut=gn.editor.createDiffEditor(Ze.current,vn(Zt({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},Re),{wordWrap:!0}));Fe(Ut);let Qt=St(Ut);return()=>{Ut.dispose();const En=Ut.getModel();En&&En.dispose(),Qt.unobserve(Ze.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,oe.useEffect)(()=>{st&&st.setModel({original:gn.editor.createModel(Yn,Be),modified:gn.editor.createModel(nt,Be)})},[Yn,nt,Be,st]);const hn=ct(tn),On=ct(zn),or={width:hn,height:On};return oe.createElement("div",{className:"my-diff-editor",ref:Ze,style:or})}},10661:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Je}});var oe={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Ce=ae(29787),ke=ae(25399),Ie=ae(60242),je=ae(92310),Te=ae.n(je),Ge=ae(51257),lt=ae(28426),Qe=ae(48790),Ue=ae(59301),Je=({className:It,dataSource:Oe=[],col:te=4,right:ee,bottom:he=23,precision:ue=0,wrapWidth:fe=1200,trackEventItems:me,loading:be,onRemove:Ae=()=>{},isCurrent:De=!0,showProgress:Ye=!1,showAlias:rt=!1})=>{const $e=Math.floor((fe-(te-1)*ee)/te),at=[{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 Ue.createElement(Ce.Z,{spinning:be},Ue.createElement("div",{className:Te()(oe.list,It)},!!(Oe!=null&&Oe.length)&&(Oe==null?void 0:Oe.map((ht,ot)=>{var vt,xt,Tt,_t,Jt,Zt;const{name:vn,id:bt,identifier:ft,featured:ct,school_name:qt,image_url:dn,excellent:kt,is_plan:bn}=ht;return Ue.createElement("div",{key:bt,className:De&&Ye?oe.wrapisCurrent:oe.wrap,style:{width:$e,marginRight:(1+ot)%te===0?0:ee+ue,marginBottom:he}},Ue.createElement("a",{className:oe.li,onClick:gn=>{gn.preventDefault(),gn.stopPropagation(),me&&(0,Ge.L9)([me]),(0,Ge.xg)(`/paths/${ft}`)}},Ue.createElement("div",{className:oe.img},Ue.createElement("img",{className:oe.cover,src:`${dn}`}),De&&(0,Qe.bg)()&&(ht==null?void 0:ht.studying)&&Ue.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:gn=>{gn.stopPropagation(),Ae(ht)}},Ue.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ue.createElement("span",{className:"c-red"},"\u79FB\u9664")),(vt=ht==null?void 0:ht.subject_tags)==null?void 0:vt.map((gn,Zn)=>{var Gt,Rt;if(Zn===0){const zn=(Gt=at.find(Yn=>Yn.name==gn))==null?void 0:Gt.swimg;return Ue.createElement("img",{className:oe.sign,src:zn,style:{left:"-4px"}})}const tn=(Rt=at.find(zn=>zn.name==gn))==null?void 0:Rt.ptimg;return Ue.createElement("img",{className:oe.sign,src:tn,style:{left:`${48+52*(Zn-1)+2*Zn}px`}})}),Ue.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(ht==null?void 0:ht.excellent)&&Ue.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ue.createElement("div",{className:oe.name},Ue.createElement(ke.Z,{title:rt&&(ht!=null&&ht.excellent_alias_name)?Ue.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${vn}`,Ue.createElement("br",null),Ue.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ht==null?void 0:ht.excellent_alias_name}`)):vn},Ue.createElement("span",{className:oe.e},rt&&(ht==null?void 0:ht.excellent_alias_name)||vn))),De&&Ye&&((xt=ht==null?void 0:ht.progress)==null?void 0:xt.all_score)!=0&&Ue.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ue.createElement(Ie.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Tt=ht==null?void 0:ht.progress)==null?void 0:Tt.my_score)/((_t=ht==null?void 0:ht.progress)==null?void 0:_t.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Jt=ht==null?void 0:ht.progress)==null?void 0:Jt.my_score,"/",(Zt=ht==null?void 0:ht.progress)==null?void 0:Zt.all_score),(!De||!Ye)&&Ue.createElement(ke.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${qt}`},Ue.createElement("div",{className:oe.unit},Ue.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),qt)),(!De||!Ye)&&Ue.createElement("div",{className:oe.tags},Ue.createElement("div",null,Ue.createElement(ke.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ue.createElement("span",null,ht.stages_count))),Ue.createElement(ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ue.createElement("span",null,ht.members_count)))))))})),!Oe.length&&Ue.createElement(lt.Z,null)))}},9148:function(He,Ee,ae){"use strict";ae.d(Ee,{jL:function(){return je},w9:function(){return ct},QD:function(){return Xt},cQ:function(){return Jt.Z},op:function(){return Qt},O5:function(){return Tr},_b:function(){return Jn},t7:function(){return ue},Gi:function(){return Zn},YG:function(){return bn},qp:function(){return mt},vr:function(){return Gn},qE:function(){return Tn},Je:function(){return be},wb:function(){return _t},cq:function(){return nt},tp:function(){return Oe}});var oe=ae(59301),Ce={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"},ke="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==",je=({dataSource:sr=[],img:_r,imgWidth:Gr=346,title:br,sunTitle:Ci,bannerExtraContent:Rn})=>oe.createElement("div",{className:Ce.banner},oe.createElement("div",{className:Ce.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,br),oe.createElement("span",null,Ci)),sr.length>0&&oe.createElement("div",{className:Ce.btns},sr.map((Pn,Sn)=>oe.createElement("div",{key:Sn,onClick:Pn.click},Pn.name,Pn.sign?oe.createElement("img",{src:ke,width:39}):null))),Rn),_r&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:_r,width:Gr}))),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"},Ge=ae(92310),lt=ae.n(Ge),Qe=ae(89392),mt=({dataSource:sr=[],value:_r,onChange:Gr,onTitleChange:br,className:Ci,title:Rn,titleWidth:Pn=41,style:Sn={},fontColor:$n="#6A7283",showCount:li})=>{const[Yr,ci]=(0,oe.useState)(0),[_n,dr]=(0,oe.useState)(!1),oi=(0,oe.useRef)(null),bi=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var Pr;sr.length!==0&&(((Pr=oi==null?void 0:oi.current)==null?void 0:Pr.clientHeight)>97?ci(1):ci(0)),sr.length===0&&ci(0),dr(!1)},[sr]),oe.createElement("div",{className:lt()(Te.row,Ci),style:Sn},oe.createElement("div",{onClick:(0,Qe.throttle)(()=>br==null?void 0:br(),2e3),style:{width:Pn,marginTop:_n?12:4},className:`${Te.title} ${br?"current":""}`},Rn),oe.createElement("div",{className:_n?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},oe.createElement("div",{className:Te.bar,ref:bi,style:Yr>0?{height:Yr===1?97:"auto",overflow:Yr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Te.tag,ref:oi},sr==null?void 0:sr.map(Pr=>oe.createElement("span",{onClick:()=>Gr(Pr.id),key:Pr.id,style:{color:$n},className:_r===Pr.id?Te.active:""},oe.createElement("span",{title:Pr.name,className:Te.name},Pr.name),!!li&&oe.createElement("span",{className:Te.num},Pr.count))))),!!Yr&&oe.createElement(oe.Fragment,null,Yr===1?oe.createElement("div",{onClick:()=>{var Pr;ci(2),((Pr=oi==null?void 0:oi.current)==null?void 0:Pr.clientHeight)>245?dr(!0):dr(!1)},className:Te.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{bi.current.scrollTop=0,ci(1),dr(!1)},className:Te.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={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"},Oe=({dataSource:sr=[],value:_r,onChange:Gr,className:br,style:Ci={}})=>oe.createElement("div",{style:Ci,className:lt()(Je.tabs,br)},sr.map(Rn=>oe.createElement("span",{onClick:()=>Gr(Rn.id),className:_r===Rn.id?Je.active:"",key:Rn.id},Rn.name))),te={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ee=ae(37568),ue=({dataSource:sr=[],value:_r="",onChange:Gr,onInputChange:br=()=>{},className:Ci,style:Rn={},placeholder:Pn,allowClear:Sn=!1})=>{var $n;const[li,Yr]=(0,oe.useState)(""),[ci,_n]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var bi;let Pr=_r;(bi=JSON.stringify(_r))!=null&&bi.includes("{")&&(Yr(_r.id),Pr=_r.value||"");try{_n(decodeURIComponent(Pr||""))}catch(Lt){_n(decodeURIComponent(Pr||""))}},[_r]);const dr=()=>{Gr(encodeURIComponent(ci),li||null)},oi=bi=>{bi!==li&&(Yr(bi),Gr(encodeURIComponent(ci),bi))};return oe.createElement("div",{className:lt()(te.input,Ci),style:Rn},!!sr.length&&oe.createElement("div",{className:te.dropdown},oe.createElement("div",{className:te.text},($n=sr.find(bi=>bi.id===li))==null?void 0:$n.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},sr.map((bi,Pr)=>oe.createElement("div",{key:Pr,onClick:()=>oi(bi.id)},bi.name)))),oe.createElement(ee.default,{onPressEnter:dr,value:ci,onChange:bi=>{_n(bi.target.value),br(encodeURIComponent(bi.target.value),li||null)},bordered:!1,placeholder:Pn}),oe.createElement("i",{onClick:dr,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:sr,onChange:_r,className:Gr,total:br,pageSize:Ci,style:Rn={}})=>{const Pn=sr<2,Sn=sr>=Math.ceil(br/Ci);return br<=Ci?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:lt()(fe.quickPager,Gr),style:Rn},oe.createElement("div",{onClick:()=>{Pn||_r(sr-1,"prev")},className:Pn?fe.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{Sn||_r(sr+1,"next")},className:Sn?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),Ye=ae(25399),rt=ae(58018),$e=ae(346),at=ae(51257),ht=ae(96908),ot=ae(57177),vt=ae(81378),xt=ae(28426),_t=({className:sr,dataSource:_r=[],col:Gr=4,right:br,bottom:Ci=23,precision:Rn=0,wrapWidth:Pn=1200,trackEventItems:Sn,loading:$n})=>{const li=Math.floor((Pn-(Gr-1)*br)/Gr);return oe.createElement(De.Z,{spinning:$n},oe.createElement("div",{className:lt()(Ae.list,sr)},!!_r.length&&_r.map((Yr,ci)=>{const{name:_n,id:dr,identifier:oi,power:bi,cover_image_id:Pr,pic:Lt}=Yr;return oe.createElement("div",{className:Ae.wrap,key:dr,style:{width:li,marginRight:(1+ci)%Gr===0?0:br+Rn,marginBottom:Ci}},oe.createElement("a",{target:"_blank",href:`/shixuns/${oi}/challenges`,className:Ae.li,onClick:ln=>{ln.preventDefault(),Sn&&(0,at.L9)([Sn]),bi&&(0,at.xg)(`/shixuns/${oi}/challenges`)}},oe.createElement("div",{className:Ae.img},oe.createElement("img",{className:Ae.cover,src:`${Lt}`}),Yr.is_jupyter&&oe.createElement("img",{className:Ae.sign,src:ht}),Yr.is_jupyter_lab&&oe.createElement("img",{className:Ae.sign,src:ot}),Yr.is_unity_3d&&oe.createElement("img",{className:Ae.sign,src:vt})),oe.createElement("div",{className:Ae.name},oe.createElement(Ye.Z,{title:_n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Ae.e},_n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Ae.tags},oe.createElement(Ye.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,Yr.challenges_count))),!!Yr.myshixuns_count&&oe.createElement(Ye.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,Yr.myshixuns_count))),oe.createElement(Ye.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,Yr.level))),oe.createElement("div",{className:Ae.rate},oe.createElement(rt.Z,{allowHalf:!0,disabled:!0,defaultValue:Yr.score_info}),oe.createElement("span",null,"\xA0",Yr.score_info?`${Yr.score_info}\u5206`:"5\u5206")))),!bi&&oe.createElement("div",{className:Ae.lockWrap},oe.createElement("img",{src:`${$e.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")))}),!_r.length&&oe.createElement(xt.Z,null)))},Jt=ae(10661),Zt={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"},vn="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",bt=ae(59301),ct=({className:sr,dataSource:_r=[],col:Gr=4,right:br,bottom:Ci=23,precision:Rn=0,wrapWidth:Pn=1200,trackEventItems:Sn,loading:$n,handleVery:li=()=>!0})=>{const Yr=Math.floor((Pn-(Gr-1)*br)/Gr);return bt.createElement(De.Z,{spinning:$n},bt.createElement("div",{className:lt()(Zt.list,sr)},!!_r.length&&_r.map((ci,_n)=>{const{subject_identifier:dr,id:oi,identifier:bi,power:Pr}=ci,Lt=ci.is_public!=0&&ci.is_public;return bt.createElement("div",{className:Zt.wrap,key:oi,style:{width:Yr,marginRight:(1+_n)%Gr===0?0:br+Rn,marginBottom:Ci}},bt.createElement("a",{className:Zt.li,onClick:ln=>{ln.preventDefault(),li(ci==null?void 0:ci.first_category_url)&&(Sn&&(0,at.L9)([Sn]),(0,at.xg)(ci.first_category_url))}},bt.createElement("div",{className:Zt.top},bt.createElement(Ye.Z,{title:ci.name},bt.createElement("div",{className:Zt.name},ci.name)),bt.createElement("img",{className:Zt.img,src:$e.Z.IMG_SERVER+"/images/"+ci.avatar_url}),bt.createElement("div",{className:Zt.text,title:ci.creator},ci.creator),dr&&bt.createElement("div",{className:Zt.btns},bt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),bt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Lt&&bt.createElement("div",{className:Zt.sign},"\u516C\u5F00")),bt.createElement("div",{className:Zt.bottom},ci.visits>0&&bt.createElement(Ye.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-liulanyan"}),bt.createElement("span",null,ci.visits))),ci.course_members_count>0&&bt.createElement(Ye.Z,{title:"\u6210\u5458",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-chengyuan"}),ci.course_members_count)),ci.tasks_count>0&&bt.createElement(Ye.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-zuoye"}),ci.tasks_count)),ci.is_end?bt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):bt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ci.is_accessible&&bt.createElement("div",{className:Zt.lockWrap},bt.createElement("img",{src:`${$e.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),bt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!_r.length&&bt.createElement(xt.Z,null)))},qt={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"},dn=ae(25690),bn=({dataSource:sr=[],value:_r,onChange:Gr,className:br,style:Ci={},tabBarExtraContent:Rn})=>oe.createElement("div",{className:lt()(qt.tabs,br),style:Ci},oe.createElement("div",{className:qt.tabsWrap},sr.map((Pn,Sn)=>!(Pn!=null&&Pn.hide)&&oe.createElement("aside",{className:qt.tab,onClick:()=>{Gr(Pn.id),Pn.link&&dn.history.push(Pn.link)},key:Sn},oe.createElement("div",{className:_r===Pn.id?qt.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&oe.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&oe.createElement(Ye.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",oe.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),oe.createElement("div",{className:qt.tabBar},Rn)),Zn=({className:sr,style:_r={},children:Gr})=>oe.createElement("div",{className:lt()(sr),style:_r},Gr),Gt={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"},Rt=ae(75727),tn=ae(93041);const zn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var nt=({sortValue:sr,dropValue:_r,className:Gr,onSort:br,onDrop:Ci,dataSource:Rn=zn})=>{var Pn;return oe.createElement("div",{className:lt()(Gt.orderWrap,Gr)},oe.createElement(Rt.Z,{dropdownRender:()=>oe.createElement(tn.default,null,Rn.map((Sn,$n)=>oe.createElement(tn.default.Item,{key:$n,onClick:()=>Ci(Sn.id)},Sn.name)))},oe.createElement("span",{className:Gt.orderTextWrap},(Pn=Rn.find(Sn=>_r===Sn.id))==null?void 0:Pn.name)),oe.createElement("span",{className:Gt.orderIconWrap},oe.createElement("span",{className:Gt.orderAsc},oe.createElement("i",{className:sr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Gt.cursorPointer} ${Gt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Gt.cursorPointer}`,onClick:()=>br(sr==="asc"?"desc":"asc")})),oe.createElement("span",{className:Gt.orderDesc},oe.createElement("i",{className:sr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Gt.cursorPointer} ${Gt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Gt.cursorPointer}`,onClick:()=>br(sr==="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"},Re=ae(99571),Ze=Object.defineProperty,st=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,hn=(sr,_r,Gr)=>_r in sr?Ze(sr,_r,{enumerable:!0,configurable:!0,writable:!0,value:Gr}):sr[_r]=Gr,On=(sr,_r)=>{for(var Gr in _r||(_r={}))Fe.call(_r,Gr)&&hn(sr,Gr,_r[Gr]);if(st)for(var Gr of st(_r))St.call(_r,Gr)&&hn(sr,Gr,_r[Gr]);return sr},or=(sr,_r)=>{var Gr={};for(var br in sr)Fe.call(sr,br)&&_r.indexOf(br)<0&&(Gr[br]=sr[br]);if(sr!=null&&st)for(var br of st(sr))_r.indexOf(br)<0&&St.call(sr,br)&&(Gr[br]=sr[br]);return Gr},jt=(sr,_r,Gr)=>new Promise((br,Ci)=>{var Rn=$n=>{try{Sn(Gr.next($n))}catch(li){Ci(li)}},Pn=$n=>{try{Sn(Gr.throw($n))}catch(li){Ci(li)}},Sn=$n=>$n.done?br($n.value):Promise.resolve($n.value).then(Rn,Pn);Sn((Gr=Gr.apply(sr,_r)).next())}),Qt=sr=>{var _r=sr,{className:Gr,style:br,children:Ci,loading:Rn=!1,openLoading:Pn,onClick:Sn=()=>{},size:$n="middle",shape:li="round"}=_r,Yr=or(_r,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ci,_n]=(0,oe.useState)(!1);return oe.createElement(Re.ZP,On({onClick:(0,Qe.throttle)(dr=>jt(void 0,null,function*(){Pn&&_n(!0);try{yield Sn(dr)}catch(oi){console.log("error",oi)}Pn&&_n(!1)}),2e3,{leading:!0,trailing:!1}),className:lt()(Be.btn,Be[`${$n}-${li}`],Gr),style:br,size:$n,shape:li,loading:ci||Rn},Yr),Ci)},En={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"},Tn=({className:sr,style:_r,children:Gr=null,onClick:br,title:Ci})=>oe.createElement("div",{className:lt()(En.head,sr),style:_r},oe.createElement("span",{className:"primary-hover",onClick:br},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:Ci},Ci),oe.createElement("div",{className:En.node},Gr)),Ht={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"},Xt=({confirmShow:sr=!0,confirmTitle:_r,confirmClick:Gr,cancelShow:br=!0,cancelTitle:Ci,cancelClick:Rn,className:Pn,style:Sn,confirmLoading:$n=!1})=>oe.createElement("div",{className:lt()(Ht.btns,Pn),style:Sn},sr&&oe.createElement(Re.ZP,{loading:$n,onClick:Gr,type:"primary",className:Ht.confirm},_r),br&&oe.createElement(Re.ZP,{onClick:Rn,className:Ht.cancel},Ci)),nn={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"},Gn=({className:sr,style:_r={},LeftContent:Gr,children:br,RightContent:Ci})=>oe.createElement("div",{className:lt()(nn.fixedBottom,sr),style:_r},oe.createElement("div",{className:nn.wrap},oe.createElement("div",{className:nn.left},Gr),oe.createElement("div",{className:nn.center},br),oe.createElement("div",{className:nn.right},Ci))),cn={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"},Jn=({className:sr,style:_r={},dataSource:Gr=[]})=>oe.createElement("div",{className:lt()(cn.crumbs,sr),style:_r},Gr.map((br,Ci)=>Ci<Gr.length-1?oe.createElement(oe.Fragment,{key:Ci},br.path||br.onClick?oe.createElement("span",{className:cn.hover,onClick:br!=null&&br.onClick?br.onClick:()=>dn.history.push(br.path)},br.name):oe.createElement("span",null,br.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:Ci,style:{color:"#5F6368"}},br.name))),ir=ae(11938),Wt=Object.defineProperty,wr=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,Kr=(sr,_r,Gr)=>_r in sr?Wt(sr,_r,{enumerable:!0,configurable:!0,writable:!0,value:Gr}):sr[_r]=Gr,cr=(sr,_r)=>{for(var Gr in _r||(_r={}))Dn.call(_r,Gr)&&Kr(sr,Gr,_r[Gr]);if(Fr)for(var Gr of Fr(_r))ii.call(_r,Gr)&&Kr(sr,Gr,_r[Gr]);return sr},Dr=(sr,_r)=>wr(sr,ei(_r)),ri=(sr,_r)=>{var Gr={};for(var br in sr)Dn.call(sr,br)&&_r.indexOf(br)<0&&(Gr[br]=sr[br]);if(sr!=null&&Fr)for(var br of Fr(sr))_r.indexOf(br)<0&&ii.call(sr,br)&&(Gr[br]=sr[br]);return Gr};const{Countdown:_e}=ir.default;var Tr=sr=>{var _r=sr,{onChange:Gr}=_r,br=ri(_r,["onChange"]);const[Ci,Rn]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof Ci=="number"&&Ci>=0&&Gr(Ci)},[Ci]);const Pn=Sn=>{const $n=Math.floor(Sn/1e3);Rn($n)};return oe.createElement(_e,Dr(cr({},br),{onChange:Pn}))}},37808:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ce}});var oe=ae(59301);function Ce(ke,Ie){const je=(0,oe.useRef)();(0,oe.useEffect)(()=>{je.current=ke}),(0,oe.useEffect)(()=>{function Te(){je.current()}if(Ie!==null){let Ge=setInterval(Te,Ie);return()=>clearInterval(Ge)}},[Ie])}},4881:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return te}});var oe=ae(59301),Ce=ae(6767),ke=ae(62957),Ie=ae(17149),je=ae(14566),Te=ae(99571),Ge=ae(346),lt=ae(51257),Qe=ae(38986),Ue=ae(25690),mt={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"},Je=ae(59301),It=(ee,he,ue)=>new Promise((fe,me)=>{var be=Ye=>{try{De(ue.next(Ye))}catch(rt){me(rt)}},Ae=Ye=>{try{De(ue.throw(Ye))}catch(rt){me(rt)}},De=Ye=>Ye.done?fe(Ye.value):Promise.resolve(Ye.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),Ye=(0,Ue.useParams)(),[rt,$e]=(0,oe.useState)([]),[at,ht]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{ee?ot():(ht([]),be([]),De(!1))},[ee]);const ot=()=>It(void 0,null,function*(){const Zt=yield(0,Qe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});$e(Zt.disciplines||[]),ht((fe==null?void 0:fe.length)>0?fe:[])}),vt=()=>{if((at==null?void 0:at.length)===0)return Ce.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",at),De(!0),he(me,at[1],()=>{De(!1)})},xt=()=>{ue()},Tt=()=>{const Zt=`${Ge.Z.API_SERVER}/api/courses/${Ye.coursesId}/exercises/down_template`;(0,lt.Nd)(null,Zt)},_t=Zt=>{const vn={name:Zt.name,uid:Zt.uid,file:Zt};return be([vn]),!1},Jt=()=>{be([])};return Je.createElement(ke.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:ee,onOk:vt,centered:!0,wrapClassName:mt.customModal,onCancel:xt,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:mt.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:Ae},Je.createElement("div",{className:mt.content},Je.createElement("aside",null,Je.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),Je.createElement("ul",null,Je.createElement("li",null,Je.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),Je.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Tt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),Je.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Tt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),Je.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),Je.createElement("li",{className:mt.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),Je.createElement("li",{className:mt.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),Je.createElement("li",{className:mt.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),Je.createElement("li",{className:mt.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),Je.createElement("aside",{style:{marginTop:22}},Je.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),Je.createElement("ul",{style:{flex:1}},Je.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&&Je.createElement(Je.Fragment,null,Je.createElement(Ie.Z,{value:at,className:mt.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:rt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(Zt,vn)=>{ht(Zt||[])}}),Je.createElement("br",null),Je.createElement(je.default,{action:`${Ge.Z.API_SERVER}/api/attachments.json`,beforeUpload:_t,onRemove:Jt,withCredentials:!0,fileList:me,accept:".xls,.xlsx",showUploadList:!1},Je.createElement(Te.ZP,{className:mt.upload,type:"primary",icon:Je.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),me.map((Zt,vn)=>Je.createElement("div",{key:vn,className:mt.fileList},Je.createElement("span",{className:mt.fileName},Zt==null?void 0:Zt.name),Je.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Jt})))))))}},37345:function(He,Ee,ae){"use strict";ae.d(Ee,{h:function(){return oe}});var oe=(Ce=>(Ce[Ce.NOMATCH=-1]="NOMATCH",Ce[Ce.OK=0]="OK",Ce[Ce.TIMEOUT=2]="TIMEOUT",Ce[Ce.PODFAILURE=3]="PODFAILURE",Ce[Ce.COMPILEFAILURE=4]="COMPILEFAILURE",Ce[Ce.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ce[Ce.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ce))(oe||{})},81072:function(He,Ee,ae){"use strict";ae.d(Ee,{H7:function(){return te},MK:function(){return Oe},MU:function(){return Ue},X6:function(){return Je},bM:function(){return Qe},fi:function(){return ee},fu:function(){return lt},n4:function(){return he},rX:function(){return It},vl:function(){return ue},zO:function(){return mt}});var oe=ae(38986),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(fe,me,be)=>me in fe?Ce(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,Ge=(fe,me)=>{for(var be in me||(me={}))Ie.call(me,be)&&Te(fe,be,me[be]);if(ke)for(var be of ke(me))je.call(me,be)&&Te(fe,be,me[be]);return fe};function lt(fe,me){return(0,oe.U2)(`myproblems/${fe}.json`,Ge({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 mt(fe,me){return me.language&&(me.language=encodeURIComponent(me.language)),(0,oe.U2)(`myproblems/${fe}/submit_records.json`,me)}function Je(fe){return(0,oe.U2)("myproblems/record_detail.json",{id:fe})}function It(fe,me){return(0,oe.U2)(`myproblems/${fe}/result.json`,{mode:me})}function Oe(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)}},53311:function(He,Ee,ae){"use strict";var oe=ae(59301),Ce=ae(25399),ke=ae(37568),Ie=ae(6767),je=ae(2397),Te=ae(59301),Ge=(Qe,Ue,mt)=>new Promise((Je,It)=>{var Oe=he=>{try{ee(mt.next(he))}catch(ue){It(ue)}},te=he=>{try{ee(mt.throw(he))}catch(ue){It(ue)}},ee=he=>he.done?Je(he.value):Promise.resolve(he.value).then(Oe,te);ee((mt=mt.apply(Qe,Ue)).next())});const lt=({defaultValue:Qe,onFinish:Ue})=>{const[mt,Je]=(0,oe.useState)(!1),[It,Oe]=(0,oe.useState)(Qe);return(0,oe.useEffect)(()=>{Oe(Qe)},[Qe]),Te.createElement("div",null,mt?Te.createElement(ke.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:It,onChange:te=>{Oe(te.target.value)},onBlur:()=>Ge(void 0,null,function*(){var te;if(((te=It==null?void 0:It.replaceAll(" ",""))==null?void 0:te.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ue(It))&&Je(!1)}),onPressEnter:()=>Ge(void 0,null,function*(){var te;if(((te=It==null?void 0:It.replaceAll(" ",""))==null?void 0:te.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ue(It))&&Je(!1)})}):Te.createElement("div",{className:je.Z.title},It,Te.createElement(Ce.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Te.createElement("i",{className:`${je.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>Je(!0)}))))};Ee.Z=lt},52154:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ue}});var oe=ae(62957),Ce={ul:"ul___TdfYY"},ke=ae(32637),Ie=ae(59301),je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,lt=(mt,Je)=>{var It={};for(var Oe in mt)Te.call(mt,Oe)&&Je.indexOf(Oe)<0&&(It[Oe]=mt[Oe]);if(mt!=null&&je)for(var Oe of je(mt))Je.indexOf(Oe)<0&&Ge.call(mt,Oe)&&(It[Oe]=mt[Oe]);return It},Ue=mt=>{var Je=mt,{open:It,onCancel:Oe}=Je,te=lt(Je,["open","onCancel"]);return Ie.createElement(oe.default,{centered:!0,open:It,title:Ie.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Oe,footer:null},Ie.createElement("div",null,Ie.createElement("div",{className:"tc"},Ie.createElement("img",{className:"mt10",src:ke,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ie.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ie.createElement("ul",{className:Ce.ul},Ie.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"),Ie.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"),Ie.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")))))}},78874:function(He,Ee,ae){"use strict";ae.d(Ee,{I:function(){return Ce}});var oe=ae(59301);const Ce=()=>{const[ke,Ie]=(0,oe.useState)("hidden");return{overflow:ke,handleMouseEnter:()=>Ie("auto"),handleMouseLeave:()=>Ie("hidden")}}},81428:function(He,Ee,ae){"use strict";ae.d(Ee,{AL:function(){return be},Iy:function(){return mt},Qv:function(){return Oe},ez:function(){return me},jb:function(){return Je}});var oe=ae(32834),Ce=ae.n(oe),ke=ae(11690),Ie=ae.n(ke);let je=1;function Te($e,at){const ht=$e.match(/^(\s+)(?:```)/);if(ht===null)return at;const ot=ht[1];return at.split(`
`).map(vt=>{const xt=vt.match(/^\s+/);if(xt===null)return vt;const[Tt]=xt;return Tt.length>=ot.length?vt.slice(ot.length):vt}).join(`
`)}let Ge=[],lt=["<ul>"];const Qe=new(Ce()).Renderer,Ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function mt(){Ge.length=0,lt=["<ul>"]}const Je={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It($e,at,ht,ot){if(at>=$e.length||$e[at].level<=ht)return at;var vt=$e[at];ot.push("<li><a href='#"+je+vt.anchor+"'>"+vt.text+"</a>"),at++;var xt=[];return at=It($e,at,vt.level,xt),xt.length>0&&(ot.push("<ul>"),xt.forEach(function(Tt){ot.push(Tt)}),ot.push("</ul>")),ot.push("</li>"),at=It($e,at,ht,ot),at}function Oe(){return It(Ge,0,0,lt),lt.push("</ul>"),lt.join("")}const te={heading($e){const at=Ue.exec($e);if(je+=1,at)return{type:"heading",raw:at[0],depth:at[1].length,text:at[2]}},fences($e){const at=this.rules.block.fences.exec($e);if(at){const ht=at[0];let ot=Te(ht,at[3]||"");const vt=at[2]?at[2].trim():at[2];if(["latex","katex","math"].indexOf(vt)>=0){const xt=ue(),Tt=ot;ot=xt,fe[xt]={type:"block",expression:Tt}}return{type:"code",raw:ht,lang:vt,text:ot}}}},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($e){return $e=$e.replace(ee,(at,ht)=>{const ot=ue();return fe[ot]={type:"inline",expression:ht},ot}),$e}const De=Qe.listitem;Qe.listitem=function($e){return De(Ae($e))};const Ye=Qe.paragraph;Qe.paragraph=function($e){return Ye(Ae($e))};const rt=Qe.tablecell;Qe.tablecell=function($e,at){return rt(Ae($e),at)},Qe.code=function($e,at,ht){const ot=(at||"").match(/\S*/)[0];return ot?["latex","katex","math"].indexOf(ot)>=0?`<p class='editormd-tex'>${$e}</p>`:`<pre class="prettyprint linenums"><code class="language-${at}">${ht?$e:(0,ke.escape)($e,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ht?$e:(0,ke.escape)($e,!0))+"</code></pre>"},Qe.heading=function($e,at,ht){let ot=this.options.headerPrefix+ht.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ge.push({anchor:ot,level:at,text:$e}),"<h"+at+' id="'+je+ot+'">'+$e+"</h"+at+">"},Ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ce().use({tokenizer:te,renderer:Qe}),Ee.ZP=Ce()},99498:function(He,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){oe.defineOption("placeholder","",function(lt,Qe,Ue){var mt=Ue&&Ue!=oe.Init;if(Qe&&!mt)lt.on("blur",je),lt.on("change",Te),lt.on("swapDoc",Te),oe.on(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose=function(){Ie(lt)}),Te(lt);else if(!Qe&&mt){lt.off("blur",je),lt.off("change",Te),lt.off("swapDoc",Te),oe.off(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose),Ce(lt);var Je=lt.getWrapperElement();Je.className=Je.className.replace(" CodeMirror-empty","")}Qe&&!lt.hasFocus()&&je(lt)});function Ce(lt){lt.state.placeholder&&(lt.state.placeholder.parentNode.removeChild(lt.state.placeholder),lt.state.placeholder=null)}function ke(lt){Ce(lt);var Qe=lt.state.placeholder=document.createElement("pre");Qe.style.cssText="height: 0; overflow: visible",Qe.style.direction=lt.getOption("direction"),Qe.className="CodeMirror-placeholder CodeMirror-line-like";var Ue=lt.getOption("placeholder");typeof Ue=="string"&&(Ue=document.createTextNode(Ue)),Qe.appendChild(Ue),lt.display.lineSpace.insertBefore(Qe,lt.display.lineSpace.firstChild)}function Ie(lt){setTimeout(function(){var Qe=!1,Ue=lt.getInputField();Ue.nodeName=="TEXTAREA"?Qe=!Ue.value:lt.lineCount()==1&&(Qe=!/[^\u200b]/.test(Ue.querySelector(".CodeMirror-line").textContent)),Qe?ke(lt):Ce(lt)},20)}function je(lt){Ge(lt)&&ke(lt)}function Te(lt){var Qe=lt.getWrapperElement(),Ue=Ge(lt);Qe.className=Qe.className.replace(" CodeMirror-empty","")+(Ue?" CodeMirror-empty":""),Ue?ke(lt):Ce(lt)}function Ge(lt){return lt.lineCount()===1&&lt.getLine(0)===""}})},25717:function(He,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){var Ce={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ke=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(te,ee,he){he&&he!=oe.Init&&(te.removeKeyMap(je),te.state.closeBrackets=null),ee&&(Te(Ie(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(je))});function Ie(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:Ce[ee]}var je={Backspace:Qe,Enter:Ue};function Te(te){for(var ee=0;ee<te.length;ee++){var he=te.charAt(ee),ue="'"+he+"'";je[ue]||(je[ue]=Ge(he))}}Te(Ce.pairs+"`");function Ge(te){return function(ee){return Je(ee,te)}}function lt(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=lt(te);if(!ee||te.getOption("disableInput"))return oe.Pass;for(var he=Ie(ee,"pairs"),ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=It(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("",ke(be.line,be.ch-1),ke(be.line,be.ch+1),"+delete")}}function Ue(te){var ee=lt(te),he=ee&&Ie(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=It(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 mt(te){var ee=oe.cmpPos(te.anchor,te.head)>0;return{anchor:new ke(te.anchor.line,te.anchor.ch+(ee?-1:1)),head:new ke(te.head.line,te.head.ch+(ee?1:-1))}}function Je(te,ee){var he=lt(te);if(!he||te.getOption("disableInput"))return oe.Pass;var ue=Ie(he,"pairs"),fe=ue.indexOf(ee);if(fe==-1)return oe.Pass;for(var me=Ie(he,"closeBefore"),be=Ie(he,"triples"),Ae=ue.charAt(fe+1)==ee,De=te.listSelections(),Ye=fe%2==0,rt,$e=0;$e<De.length;$e++){var at=De[$e],ht=at.head,ot,vt=te.getRange(ht,ke(ht.line,ht.ch+1));if(Ye&&!at.empty())ot="surround";else if((Ae||!Ye)&&vt==ee)Ae&&Oe(te,ht)?ot="both":be.indexOf(ee)>=0&&te.getRange(ht,ke(ht.line,ht.ch+3))==ee+ee+ee?ot="skipThree":ot="skip";else if(Ae&&ht.ch>1&&be.indexOf(ee)>=0&&te.getRange(ke(ht.line,ht.ch-2),ht)==ee+ee){if(ht.ch>2&&/\bstring/.test(te.getTokenTypeAt(ke(ht.line,ht.ch-2))))return oe.Pass;ot="addFour"}else if(Ae){var xt=ht.ch==0?" ":te.getRange(ke(ht.line,ht.ch-1),ht);if(!oe.isWordChar(vt)&&xt!=ee&&!oe.isWordChar(xt))ot="both";else return oe.Pass}else if(Ye&&(vt.length===0||/\s/.test(vt)||me.indexOf(vt)>-1))ot="both";else return oe.Pass;if(!rt)rt=ot;else if(rt!=ot)return oe.Pass}var Tt=fe%2?ue.charAt(fe-1):ee,_t=fe%2?ee:ue.charAt(fe+1);te.operation(function(){if(rt=="skip")te.execCommand("goCharRight");else if(rt=="skipThree")for(var Jt=0;Jt<3;Jt++)te.execCommand("goCharRight");else if(rt=="surround"){for(var Zt=te.getSelections(),Jt=0;Jt<Zt.length;Jt++)Zt[Jt]=Tt+Zt[Jt]+_t;te.replaceSelections(Zt,"around"),Zt=te.listSelections().slice();for(var Jt=0;Jt<Zt.length;Jt++)Zt[Jt]=mt(Zt[Jt]);te.setSelections(Zt)}else rt=="both"?(te.replaceSelection(Tt+_t,null),te.triggerElectric(Tt+_t),te.execCommand("goCharLeft")):rt=="addFour"&&(te.replaceSelection(Tt+Tt+Tt+Tt,"before"),te.execCommand("goCharRight"))})}function It(te,ee){var he=te.getRange(ke(ee.line,ee.ch-1),ke(ee.line,ee.ch+1));return he.length==2?he:null}function Oe(te,ee){var he=te.getTokenAt(ke(ee.line,ee.ch+1));return/\bstring/.test(he.type)&&he.start==ee.ch&&(ee.ch==0||!/\bstring/.test(te.getTokenTypeAt(ee)))}})},6313:function(He,Ee,ae){(function(oe){oe(ae(89780),ae(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(Qe,Ue,mt){if(mt!=oe.Init&&mt&&Qe.removeKeyMap("autoCloseTags"),!!Ue){var Je={name:"autoCloseTags"};(typeof Ue!="object"||Ue.whenClosing!==!1)&&(Je["'/'"]=function(It){return Te(It)}),(typeof Ue!="object"||Ue.whenOpening!==!1)&&(Je["'>'"]=function(It){return Ie(It)}),Qe.addKeyMap(Je)}});var Ce=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ke=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ie(Qe){if(Qe.getOption("disableInput"))return oe.Pass;for(var Ue=Qe.listSelections(),mt=[],Je=Qe.getOption("autoCloseTags"),It=0;It<Ue.length;It++){if(!Ue[It].empty())return oe.Pass;var Oe=Ue[It].head,te=Qe.getTokenAt(Oe),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 Je=="object"&&Je.dontCloseTags||me&&Ce,Ae=typeof Je=="object"&&Je.indentTags||me&&ke;te.end>Oe.ch&&(fe=fe.slice(0,fe.length-te.end+Oe.ch));var De=fe.toLowerCase();if(!fe||te.type=="string"&&(te.end!=Oe.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&ue.close||te.string.indexOf("/")==Oe.ch-te.start-1||be&&Ge(be,De)>-1||lt(Qe,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(he)||[],fe,Oe,!0))return oe.Pass;var Ye=typeof Je=="object"&&Je.emptyTags;if(Ye&&Ge(Ye,fe)>-1){mt[It]={text:"/>",newPos:oe.Pos(Oe.line,Oe.ch+2)};continue}var rt=Ae&&Ge(Ae,De)>-1;mt[It]={indent:rt,text:">"+(rt?`
`:"")+"</"+fe+">",newPos:rt?oe.Pos(Oe.line+1,0):oe.Pos(Oe.line,Oe.ch+1)}}for(var $e=typeof Je=="object"&&Je.dontIndentOnAutoClose,It=Ue.length-1;It>=0;It--){var at=mt[It];Qe.replaceRange(at.text,Ue[It].head,Ue[It].anchor,"+insert");var ht=Qe.listSelections().slice(0);ht[It]={head:at.newPos,anchor:at.newPos},Qe.setSelections(ht),!$e&&at.indent&&(Qe.indentLine(at.newPos.line,null,!0),Qe.indentLine(at.newPos.line+1,null,!0))}}function je(Qe,Ue){for(var mt=Qe.listSelections(),Je=[],It=Ue?"/":"</",Oe=Qe.getOption("autoCloseTags"),te=typeof Oe=="object"&&Oe.dontIndentOnSlash,ee=0;ee<mt.length;ee++){if(!mt[ee].empty())return oe.Pass;var he=mt[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=It+"script";else if(Ae&&fe.mode.name=="css")be=It+"style";else{var De=fe.mode.xmlCurrentContext&&fe.mode.xmlCurrentContext(me);if(!De||De.length&&lt(Qe,De,De[De.length-1],he))return oe.Pass;be=It+De[De.length-1]}Qe.getLine(he.line).charAt(ue.end)!=">"&&(be+=">"),Je[ee]=be}if(Qe.replaceSelections(Je),mt=Qe.listSelections(),!te)for(var ee=0;ee<mt.length;ee++)(ee==mt.length-1||mt[ee].head.line<mt[ee+1].head.line)&&Qe.indentLine(mt[ee].head.line)}function Te(Qe){return Qe.getOption("disableInput")?oe.Pass:je(Qe,!0)}oe.commands.closeTag=function(Qe){return je(Qe)};function Ge(Qe,Ue){if(Qe.indexOf)return Qe.indexOf(Ue);for(var mt=0,Je=Qe.length;mt<Je;++mt)if(Qe[mt]==Ue)return mt;return-1}function lt(Qe,Ue,mt,Je,It){if(!oe.scanForClosingTag)return!1;var Oe=Math.min(Qe.lastLine()+1,Je.line+500),te=oe.scanForClosingTag(Qe,Je,null,Oe);if(!te||te.tag!=mt)return!1;for(var ee=It?1:0,he=Ue.length-1;he>=0&&Ue[he]==mt;he--)++ee;Je=te.to;for(var he=1;he<ee;he++){var ue=oe.scanForClosingTag(Qe,Je,null,Oe);if(!ue||ue.tag!=mt)return!1;Je=ue.to}return!0}})},32855:function(He,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Ce=oe.Pos;function ke(he,ue){return he.line-ue.line||he.ch-ue.ch}var Ie="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",je=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+Ie+"]["+je+"]*)","g");function Ge(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 lt(he,ue){var fe=he.cm.getTokenTypeAt(Ce(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 mt(he){for(;;){var ue=he.text.indexOf(">",he.ch);if(ue==-1){if(Qe(he))continue;return}if(!lt(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 Je(he){for(;;){var ue=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(ue==-1){if(Ue(he))continue;return}if(!lt(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 It(he){for(;;){Te.lastIndex=he.ch;var ue=Te.exec(he.text);if(!ue){if(Qe(he))continue;return}if(!lt(he,ue.index+1)){he.ch=ue.index+1;continue}return he.ch=ue.index+ue[0].length,ue}}function Oe(he){for(;;){var ue=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(ue==-1){if(Ue(he))continue;return}if(!lt(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=It(he),be,Ae=he.line,De=he.ch-(me?me[0].length:0);if(!me||!(be=mt(he)))return;if(be!="selfClose")if(me[1]){for(var Ye=fe.length-1;Ye>=0;--Ye)if(fe[Ye]==me[2]){fe.length=Ye;break}if(Ye<0&&(!ue||ue==me[2]))return{tag:me[2],from:Ce(Ae,De),to:Ce(he.line,he.ch)}}else fe.push(me[2])}}function ee(he,ue){for(var fe=[];;){var me=Oe(he);if(!me)return;if(me=="selfClose"){Je(he);continue}var be=he.line,Ae=he.ch,De=Je(he);if(!De)return;if(De[1])fe.push(De[2]);else{for(var Ye=fe.length-1;Ye>=0;--Ye)if(fe[Ye]==De[2]){fe.length=Ye;break}if(Ye<0&&(!ue||ue==De[2]))return{tag:De[2],from:Ce(he.line,he.ch),to:Ce(be,Ae)}}}}oe.registerHelper("fold","xml",function(he,ue){for(var fe=new Ge(he,ue.line,0);;){var me=It(fe);if(!me||fe.line!=ue.line)return;var be=mt(fe);if(!be)return;if(!me[1]&&be!="selfClose"){var Ae=Ce(fe.line,fe.ch),De=te(fe,me[2]);return De&&ke(De.from,Ae)>0?{from:Ae,to:De.from}:null}}}),oe.findMatchingTag=function(he,ue,fe){var me=new Ge(he,ue.line,ue.ch,fe);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var be=mt(me),Ae=be&&Ce(me.line,me.ch),De=be&&Je(me);if(!(!be||!De||ke(me,ue)>0)){var Ye={from:Ce(me.line,me.ch),to:Ae,tag:De[2]};return be=="selfClose"?{open:Ye,close:null,at:"open"}:De[1]?{open:ee(me,De[2]),close:Ye,at:"close"}:(me=new Ge(he,Ae.line,Ae.ch,fe),{open:Ye,close:te(me,De[2]),at:"open"})}}},oe.findEnclosingTag=function(he,ue,fe,me){for(var be=new Ge(he,ue.line,ue.ch,fe);;){var Ae=ee(be,me);if(!Ae)break;var De=new Ge(he,ue.line,ue.ch,fe),Ye=te(De,Ae.tag);if(Ye)return{open:Ae,close:Ye}}},oe.scanForClosingTag=function(he,ue,fe,me){var be=new Ge(he,ue.line,ue.ch,me?{from:0,to:me}:null);return te(be,fe)}})},89780:function(He){(function(Ee,ae){He.exports=ae()})(this,function(){"use strict";var Ee=navigator.userAgent,ae=navigator.platform,oe=/gecko\/\d/i.test(Ee),Ce=/MSIE \d/.test(Ee),ke=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee),Ie=/Edge\/(\d+)/.exec(Ee),je=Ce||ke||Ie,Te=je&&(Ce?document.documentMode||6:+(Ie||ke)[1]),Ge=!Ie&&/WebKit\//.test(Ee),lt=Ge&&/Qt\/\d+\.\d+/.test(Ee),Qe=!Ie&&/Chrome\//.test(Ee),Ue=/Opera\//.test(Ee),mt=/Apple Computer/.test(navigator.vendor),Je=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ee),It=/PhantomJS/.test(Ee),Oe=!Ie&&/AppleWebKit/.test(Ee)&&/Mobile\/\w+/.test(Ee),te=/Android/.test(Ee),ee=Oe||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ee),he=Oe||/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,Ge=!0);var be=he&&(lt||Ue&&(me==null||me<12.11)),Ae=oe||je&&Te>=9;function De(re){return new RegExp("(^|\\s)"+re+"(?:$|\\s)\\s*")}var Ye=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 rt(re){for(var le=re.childNodes.length;le>0;--le)re.removeChild(re.firstChild);return re}function $e(re,le){return rt(re).appendChild(le)}function at(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 ht(re,le,ye,ve){var xe=at(re,le,ye,ve);return xe.setAttribute("role","presentation"),xe}var ot;document.createRange?ot=function(re,le,ye,ve){var xe=document.createRange();return xe.setEnd(ve||re,ye),xe.setStart(re,le),xe}:ot=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 xt(){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 Tt(re,le){var ye=re.className;De(le).test(ye)||(re.className+=(ye?" ":"")+le)}function _t(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 Jt=function(re){re.select()};Oe?Jt=function(re){re.selectionStart=0,re.selectionEnd=re.value.length}:je&&(Jt=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 vn(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 bt(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 Pt=re.indexOf(" ",Ke);if(Pt<0||Pt>=le)return dt+(le-Ke);dt+=Pt-Ke,dt+=ye-dt%ye,Ke=Pt+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=Zt(this.onTimeout,this)};ft.prototype.onTimeout=function(re){re.id=0,re.time<=+new Date?re.f():setTimeout(re.handler,re.time-+new Date)},ft.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 qt=50,dn={toString:function(){return"CodeMirror.Pass"}},kt={scroll:!1},bn={origin:"*mouse"},gn={origin:"+move"};function Zn(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 Gt=[""];function Rt(re){for(;Gt.length<=re;)Gt.push(tn(Gt)+" ");return Gt[re]}function tn(re){return re[re.length-1]}function zn(re,le){for(var ye=[],ve=0;ve<re.length;ve++)ye[ve]=le(re[ve],ve);return ye}function Yn(re,le,ye){for(var ve=0,xe=ye(le);ve<re.length&&ye(re[ve])<=xe;)ve++;re.splice(ve,0,le)}function nt(){}function Be(re,le){var ye;return Object.create?ye=Object.create(re):(nt.prototype=re,ye=new nt),le&&vn(le,ye),ye}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ze(re){return/\w/.test(re)||re>"\x80"&&(re.toUpperCase()!=re.toLowerCase()||Re.test(re))}function st(re,le){return le?le.source.indexOf("\\w")>-1&&Ze(re)?!0:le.test(re):Ze(re)}function Fe(re){for(var le in re)if(re.hasOwnProperty(le)&&re[le])return!1;return!0}var St=/[\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 hn(re){return re.charCodeAt(0)>=768&&St.test(re)}function On(re,le,ye){for(;(ye<0?le>0:le<re.length)&&hn(re.charAt(le));)le+=ye;return le}function or(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 jt(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 Ut=null;function Qt(re,le,ye){var ve;Ut=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:Ut=xe),Ke.from==le&&(Ke.from!=Ke.to&&ye!="before"?ve=xe:Ut=xe)}return ve!=null?ve:Ut}var En=function(){var re="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",le="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ye(Vt){return Vt<=247?re.charAt(Vt):1424<=Vt&&Vt<=1524?"R":1536<=Vt&&Vt<=1785?le.charAt(Vt-1536):1774<=Vt&&Vt<=2220?"r":8192<=Vt&&Vt<=8203?"w":Vt==8204?"b":"L"}var ve=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,Ke=/[LRr]/,dt=/[Lb1n]/,Pt=/[1n]/;function wt(Vt,Kn,on){this.level=Vt,this.from=Kn,this.to=on}return function(Vt,Kn){var on=Kn=="ltr"?"L":"R";if(Vt.length==0||Kn=="ltr"&&!ve.test(Vt))return!1;for(var Cr=Vt.length,vr=[],yi=0;yi<Cr;++yi)vr.push(ye(Vt.charCodeAt(yi)));for(var xi=0,Li=on;xi<Cr;++xi){var Ji=vr[xi];Ji=="m"?vr[xi]=Li:Li=Ji}for(var yo=0,lo=on;yo<Cr;++yo){var Ao=vr[yo];Ao=="1"&&lo=="r"?vr[yo]="n":Ke.test(Ao)&&(lo=Ao,Ao=="r"&&(vr[yo]="R"))}for(var Qo=1,uo=vr[0];Qo<Cr-1;++Qo){var ya=vr[Qo];ya=="+"&&uo=="1"&&vr[Qo+1]=="1"?vr[Qo]="1":ya==","&&uo==vr[Qo+1]&&(uo=="1"||uo=="n")&&(vr[Qo]=uo),uo=ya}for(var Ts=0;Ts<Cr;++Ts){var Cl=vr[Ts];if(Cl==",")vr[Ts]="N";else if(Cl=="%"){var Bs=void 0;for(Bs=Ts+1;Bs<Cr&&vr[Bs]=="%";++Bs);for(var Tu=Ts&&vr[Ts-1]=="!"||Bs<Cr&&vr[Bs]=="1"?"1":"N",eu=Ts;eu<Bs;++eu)vr[eu]=Tu;Ts=Bs-1}}for(var sl=0,Gu=on;sl<Cr;++sl){var Gl=vr[sl];Gu=="L"&&Gl=="1"?vr[sl]="L":Ke.test(Gl)&&(Gu=Gl)}for(var tl=0;tl<Cr;++tl)if(xe.test(vr[tl])){var Ba=void 0;for(Ba=tl+1;Ba<Cr&&xe.test(vr[Ba]);++Ba);for(var Vs=(tl?vr[tl-1]:on)=="L",Rl=(Ba<Cr?vr[Ba]:on)=="L",jl=Vs==Rl?Vs?"L":"R":on,xc=tl;xc<Ba;++xc)vr[xc]=jl;tl=Ba-1}for(var Ds=[],we,Ne=0;Ne<Cr;)if(dt.test(vr[Ne])){var We=Ne;for(++Ne;Ne<Cr&&dt.test(vr[Ne]);++Ne);Ds.push(new wt(0,We,Ne))}else{var ut=Ne,At=Ds.length,Nt=Kn=="rtl"?1:0;for(++Ne;Ne<Cr&&vr[Ne]!="L";++Ne);for(var Ft=ut;Ft<Ne;)if(Pt.test(vr[Ft])){ut<Ft&&(Ds.splice(At,0,new wt(1,ut,Ft)),At+=Nt);var Kt=Ft;for(++Ft;Ft<Ne&&Pt.test(vr[Ft]);++Ft);Ds.splice(At,0,new wt(2,Kt,Ft)),At+=Nt,ut=Ft}else++Ft;ut<Ne&&Ds.splice(At,0,new wt(1,ut,Ne))}return Kn=="ltr"&&(Ds[0].level==1&&(we=Vt.match(/^\s+/))&&(Ds[0].from=we[0].length,Ds.unshift(new wt(0,0,we[0].length))),tn(Ds).level==1&&(we=Vt.match(/\s+$/))&&(tn(Ds).to-=we[0].length,Ds.push(new wt(0,Cr-we[0].length,Cr)))),Kn=="rtl"?Ds.reverse():Ds}}();function Mn(re,le){var ye=re.order;return ye==null&&(ye=re.order=En(re.text,le)),ye}var Tn=[],Ht=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]||Tn).concat(ye)}};function Vn(re,le){return re._handlers&&re._handlers[le]||Tn}function Xt(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 nn(re,le){var ye=Vn(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 fn(re,le,ye){return typeof le=="string"&&(le={type:le,preventDefault:function(){this.defaultPrevented=!0}}),nn(re,ye||le.type,re,le),Wt(le)||le.codemirrorIgnore}function Gn(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 cn(re,le){return Vn(re,le).length>0}function Et(re){re.prototype.on=function(le,ye){Ht(this,le,ye)},re.prototype.off=function(le,ye){Xt(this,le,ye)}}function Jn(re){re.preventDefault?re.preventDefault():re.returnValue=!1}function ir(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0}function Wt(re){return re.defaultPrevented!=null?re.defaultPrevented:re.returnValue==!1}function wr(re){Jn(re),ir(re)}function ei(re){return re.target||re.srcElement}function Fr(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 Dn=function(){if(je&&Te<9)return!1;var re=at("div");return"draggable"in re||"dragDrop"in re}(),ii;function Kr(re){if(ii==null){var le=at("span","\u200B");$e(re,at("span",[le,document.createTextNode("x")])),re.firstChild.offsetHeight!=0&&(ii=le.offsetWidth<=1&&le.offsetHeight>2&&!(je&&Te<8))}var ye=ii?at("span","\u200B"):at("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ye.setAttribute("cm-text",""),ye}var cr;function Dr(re){if(cr!=null)return cr;var le=$e(re,document.createTextNode("A\u062EA")),ye=ot(le,0,1).getBoundingClientRect(),ve=ot(le,1,2).getBoundingClientRect();return rt(re),!ye||ye.left==ye.right?!1:cr=ve.right-ye.right<3}var ri=`
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/)},_e=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},Mr=function(){var re=at("div");return"oncopy"in re?!0:(re.setAttribute("oncopy","return;"),typeof re.oncopy=="function")}(),Tr=null;function sr(re){if(Tr!=null)return Tr;var le=$e(re,at("span","x")),ye=le.getBoundingClientRect(),ve=ot(le,0,1).getBoundingClientRect();return Tr=Math.abs(ye.left-ve.left)>1}var _r={},Gr={};function br(re,le){arguments.length>2&&(le.dependencies=Array.prototype.slice.call(arguments,2)),_r[re]=le}function Ci(re,le){Gr[re]=le}function Rn(re){if(typeof re=="string"&&Gr.hasOwnProperty(re))re=Gr[re];else if(re&&typeof re.name=="string"&&Gr.hasOwnProperty(re.name)){var le=Gr[re.name];typeof le=="string"&&(le={name:le}),re=Be(le,re),re.name=le.name}else{if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(re))return Rn("application/xml");if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(re))return Rn("application/json")}return typeof re=="string"?{name:re}:re||{name:"null"}}function Pn(re,le){le=Rn(le);var ye=_r[le.name];if(!ye)return Pn(re,"text/plain");var ve=ye(re,le);if(Sn.hasOwnProperty(le.name)){var xe=Sn[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 Sn={};function $n(re,le){var ye=Sn.hasOwnProperty(re)?Sn[re]:Sn[re]={};vn(le,ye)}function li(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 Yr(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 ci(re,le,ye){return re.startState?re.startState(le,ye):!0}var _n=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};_n.prototype.eol=function(){return this.pos>=this.string.length},_n.prototype.sol=function(){return this.pos==this.lineStart},_n.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_n.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_n.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},_n.prototype.eatWhile=function(re){for(var le=this.pos;this.eat(re););return this.pos>le},_n.prototype.eatSpace=function(){for(var re=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>re},_n.prototype.skipToEnd=function(){this.pos=this.string.length},_n.prototype.skipTo=function(re){var le=this.string.indexOf(re,this.pos);if(le>-1)return this.pos=le,!0},_n.prototype.backUp=function(re){this.pos-=re},_n.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=bt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?bt(this.string,this.lineStart,this.tabSize):0)},_n.prototype.indentation=function(){return bt(this.string,null,this.tabSize)-(this.lineStart?bt(this.string,this.lineStart,this.tabSize):0)},_n.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)}},_n.prototype.current=function(){return this.string.slice(this.start,this.pos)},_n.prototype.hideFirstChars=function(re,le){this.lineStart+=re;try{return le()}finally{this.lineStart-=re}},_n.prototype.lookAhead=function(re){var le=this.lineOracle;return le&&le.lookAhead(re)},_n.prototype.baseToken=function(){var re=this.lineOracle;return re&&re.baseToken(this.pos)};function dr(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 oi(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 bi(re,le,ye){var ve=[];return re.iter(le,ye,function(xe){ve.push(xe.text)}),ve}function Pr(re,le){var ye=le-re.height;if(ye)for(var ve=re;ve;ve=ve.parent)ve.height+=ye}function Lt(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 ln(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 Pt=re.lines[dt],wt=Pt.height;if(le<wt)break;le-=wt}return ye+dt}function Nr(re,le){return le>=re.first&&le<re.first+re.size}function Er(re,le){return String(re.lineNumberFormatter(le+re.firstLineNumber))}function Yt(re,le,ye){if(ye===void 0&&(ye=null),!(this instanceof Yt))return new Yt(re,le,ye);this.line=re,this.ch=le,this.sticky=ye}function Nn(re,le){return re.line-le.line||re.ch-le.ch}function Xr(re,le){return re.sticky==le.sticky&&Nn(re,le)==0}function Ln(re){return Yt(re.line,re.ch)}function Ve(re,le){return Nn(re,le)<0?le:re}function Rr(re,le){return Nn(re,le)<0?re:le}function kr(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 Yt(re.first,0);var ye=re.first+re.size-1;return le.line>ye?Yt(ye,dr(re,ye).text.length):hi(le,dr(re,le.line).text.length)}function hi(re,le){var ye=re.ch;return ye==null||ye>le?Yt(re.line,le):ye<0?Yt(re.line,0):re}function jr(re,le){for(var ye=[],ve=0;ve<le.length;ve++)ye[ve]=jn(re,le[ve]);return ye}var ar=function(re,le){this.state=re,this.lookAhead=le},Qr=function(re,le,ye,ve){this.state=le,this.doc=re,this.line=ye,this.maxLookAhead=ve||0,this.baseTokens=null,this.baseTokenPos=1};Qr.prototype.lookAhead=function(re){var le=this.doc.getLine(this.line+re);return le!=null&&re>this.maxLookAhead&&(this.maxLookAhead=re),le},Qr.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}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(re,le,ye){return le instanceof ar?new Qr(re,li(re.mode,le.state),ye,le.lookAhead):new Qr(re,li(re.mode,le),ye)},Qr.prototype.save=function(re){var le=re!==!1?li(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ar(le,this.maxLookAhead):le};function un(re,le,ye,ve){var xe=[re.state.modeGen],Ke={};ro(re,le.text,re.doc.mode,ye,function(Vt,Kn){return xe.push(Vt,Kn)},Ke,ve);for(var dt=ye.state,Pt=function(Vt){ye.baseTokens=xe;var Kn=re.state.overlays[Vt],on=1,Cr=0;ye.state=!0,ro(re,le.text,Kn.mode,ye,function(vr,yi){for(var xi=on;Cr<vr;){var Li=xe[on];Li>vr&&xe.splice(on,1,vr,xe[on+1],Li),on+=2,Cr=Math.min(vr,Li)}if(yi)if(Kn.opaque)xe.splice(xi,on-xi,vr,"overlay "+yi),on=xi+2;else for(;xi<on;xi+=2){var Ji=xe[xi+1];xe[xi+1]=(Ji?Ji+" ":"")+"overlay "+yi}},Ke),ye.state=dt,ye.baseTokens=null,ye.baseTokenPos=1},wt=0;wt<re.state.overlays.length;++wt)Pt(wt);return{styles:xe,classes:Ke.bgClass||Ke.textClass?Ke:null}}function Ti(re,le,ye){if(!le.styles||le.styles[0]!=re.state.modeGen){var ve=eo(re,Lt(le)),xe=le.text.length>re.options.maxHighlightLength&&li(re.doc.mode,ve.state),Ke=un(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 eo(re,le,ye){var ve=re.doc,xe=re.display;if(!ve.mode.startState)return new Qr(ve,!0,le);var Ke=Gi(re,le,ye),dt=Ke>ve.first&&dr(ve,Ke-1).stateAfter,Pt=dt?Qr.fromSaved(ve,dt,Ke):new Qr(ve,ci(ve.mode),Ke);return ve.iter(Ke,le,function(wt){mn(re,wt.text,Pt);var Vt=Pt.line;wt.stateAfter=Vt==le-1||Vt%5==0||Vt>=xe.viewFrom&&Vt<xe.viewTo?Pt.save():null,Pt.nextLine()}),ye&&(ve.modeFrontier=Pt.line),Pt}function mn(re,le,ye,ve){var xe=re.doc.mode,Ke=new _n(le,re.options.tabSize,ye);for(Ke.start=Ke.pos=ve||0,le==""&&wi(xe,ye.state);!Ke.eol();)Di(xe,Ke,ye.state),Ke.start=Ke.pos}function wi(re,le){if(re.blankLine)return re.blankLine(le);if(re.innerMode){var ye=Yr(re,le);if(ye.mode.blankLine)return ye.mode.blankLine(ye.state)}}function Di(re,le,ye,ve){for(var xe=0;xe<10;xe++){ve&&(ve[0]=Yr(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 gi=function(re,le,ye){this.start=re.start,this.end=re.pos,this.string=re.current(),this.type=le||null,this.state=ye};function ki(re,le,ye,ve){var xe=re.doc,Ke=xe.mode,dt;le=jn(xe,le);var Pt=dr(xe,le.line),wt=eo(re,le.line,ye),Vt=new _n(Pt.text,re.options.tabSize,wt),Kn;for(ve&&(Kn=[]);(ve||Vt.pos<le.ch)&&!Vt.eol();)Vt.start=Vt.pos,dt=Di(Ke,Vt,wt.state),ve&&Kn.push(new gi(Vt,dt,li(xe.mode,wt.state)));return ve?Kn:new gi(Vt,dt,wt.state)}function zi(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 ro(re,le,ye,ve,xe,Ke,dt){var Pt=ye.flattenSpans;Pt==null&&(Pt=re.options.flattenSpans);var wt=0,Vt=null,Kn=new _n(le,re.options.tabSize,ve),on,Cr=re.options.addModeClass&&[null];for(le==""&&zi(wi(ye,ve.state),Ke);!Kn.eol();){if(Kn.pos>re.options.maxHighlightLength?(Pt=!1,dt&&mn(re,le,ve,Kn.pos),Kn.pos=le.length,on=null):on=zi(Di(ye,Kn,ve.state,Cr),Ke),Cr){var vr=Cr[0].name;vr&&(on="m-"+(on?vr+" "+on:vr))}if(!Pt||Vt!=on){for(;wt<Kn.start;)wt=Math.min(Kn.start,wt+5e3),xe(wt,Vt);Vt=on}Kn.start=Kn.pos}for(;wt<Kn.pos;){var yi=Math.min(Kn.pos,wt+5e3);xe(yi,Vt),wt=yi}}function Gi(re,le,ye){for(var ve,xe,Ke=re.doc,dt=ye?-1:le-(re.doc.mode.innerMode?1e3:100),Pt=le;Pt>dt;--Pt){if(Pt<=Ke.first)return Ke.first;var wt=dr(Ke,Pt-1),Vt=wt.stateAfter;if(Vt&&(!ye||Pt+(Vt instanceof ar?Vt.lookAhead:0)<=Ke.modeFrontier))return Pt;var Kn=bt(wt.text,null,re.options.tabSize);(xe==null||ve>Kn)&&(xe=Pt-1,ve=Kn)}return xe}function Fi(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=dr(re,ve).stateAfter;if(xe&&(!(xe instanceof ar)||ve+xe.lookAhead<le)){ye=ve+1;break}}re.highlightFrontier=Math.min(re.highlightFrontier,ye)}}var io=!1,qn=!1;function Ui(){io=!0}function lr(){qn=!0}function vi(re,le,ye){this.marker=re,this.from=le,this.to=ye}function Vi(re,le){if(re)for(var ye=0;ye<re.length;++ye){var ve=re[ye];if(ve.marker==le)return ve}}function Oi(re,le){for(var ye,ve=0;ve<re.length;++ve)re[ve]!=le&&(ye||(ye=[])).push(re[ve]);return ye}function fo(re,le){re.markedSpans=re.markedSpans?re.markedSpans.concat([le]):[le],le.marker.attachLine(re)}function co(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ke=re[xe],dt=Ke.marker,Pt=Ke.from==null||(dt.inclusiveLeft?Ke.from<=le:Ke.from<le);if(Pt||Ke.from==le&&dt.type=="bookmark"&&(!ye||!Ke.marker.insertLeft)){var wt=Ke.to==null||(dt.inclusiveRight?Ke.to>=le:Ke.to>le);(ve||(ve=[])).push(new vi(dt,Ke.from,wt?null:Ke.to))}}return ve}function ji(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ke=re[xe],dt=Ke.marker,Pt=Ke.to==null||(dt.inclusiveRight?Ke.to>=le:Ke.to>le);if(Pt||Ke.from==le&&dt.type=="bookmark"&&(!ye||Ke.marker.insertLeft)){var wt=Ke.from==null||(dt.inclusiveLeft?Ke.from<=le:Ke.from<le);(ve||(ve=[])).push(new vi(dt,wt?null:Ke.from-le,Ke.to==null?null:Ke.to-le))}}return ve}function zo(re,le){if(le.full)return null;var ye=Nr(re,le.from.line)&&dr(re,le.from.line).markedSpans,ve=Nr(re,le.to.line)&&dr(re,le.to.line).markedSpans;if(!ye&&!ve)return null;var xe=le.from.ch,Ke=le.to.ch,dt=Nn(le.from,le.to)==0,Pt=co(ye,xe,dt),wt=ji(ve,Ke,dt),Vt=le.text.length==1,Kn=tn(le.text).length+(Vt?xe:0);if(Pt)for(var on=0;on<Pt.length;++on){var Cr=Pt[on];if(Cr.to==null){var vr=Vi(wt,Cr.marker);vr?Vt&&(Cr.to=vr.to==null?null:vr.to+Kn):Cr.to=xe}}if(wt)for(var yi=0;yi<wt.length;++yi){var xi=wt[yi];if(xi.to!=null&&(xi.to+=Kn),xi.from==null){var Li=Vi(Pt,xi.marker);Li||(xi.from=Kn,Vt&&(Pt||(Pt=[])).push(xi))}else xi.from+=Kn,Vt&&(Pt||(Pt=[])).push(xi)}Pt&&(Pt=Fn(Pt)),wt&&wt!=Pt&&(wt=Fn(wt));var Ji=[Pt];if(!Vt){var yo=le.text.length-2,lo;if(yo>0&&Pt)for(var Ao=0;Ao<Pt.length;++Ao)Pt[Ao].to==null&&(lo||(lo=[])).push(new vi(Pt[Ao].marker,null,null));for(var Qo=0;Qo<yo;++Qo)Ji.push(lo);Ji.push(wt)}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 mr(re,le,ye){var ve=null;if(re.iter(le.line,ye.line+1,function(vr){if(vr.markedSpans)for(var yi=0;yi<vr.markedSpans.length;++yi){var xi=vr.markedSpans[yi].marker;xi.readOnly&&(!ve||ct(ve,xi)==-1)&&(ve||(ve=[])).push(xi)}}),!ve)return null;for(var xe=[{from:le,to:ye}],Ke=0;Ke<ve.length;++Ke)for(var dt=ve[Ke],Pt=dt.find(0),wt=0;wt<xe.length;++wt){var Vt=xe[wt];if(!(Nn(Vt.to,Pt.from)<0||Nn(Vt.from,Pt.to)>0)){var Kn=[wt,1],on=Nn(Vt.from,Pt.from),Cr=Nn(Vt.to,Pt.to);(on<0||!dt.inclusiveLeft&&!on)&&Kn.push({from:Vt.from,to:Pt.from}),(Cr>0||!dt.inclusiveRight&&!Cr)&&Kn.push({from:Pt.to,to:Vt.to}),xe.splice.apply(xe,Kn),wt+=Kn.length-3}}return xe}function wn(re){var le=re.markedSpans;if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.detachLine(re);re.markedSpans=null}}function it(re,le){if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.attachLine(re);re.markedSpans=le}}function Or(re){return re.inclusiveLeft?-1:0}function Wr(re){return re.inclusiveRight?1:0}function pi(re,le){var ye=re.lines.length-le.lines.length;if(ye!=0)return ye;var ve=re.find(),xe=le.find(),Ke=Nn(ve.from,xe.from)||Or(re)-Or(le);if(Ke)return-Ke;var dt=Nn(ve.to,xe.to)||Wr(re)-Wr(le);return dt||le.id-re.id}function di(re,le){var ye=qn&&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||pi(ve,xe.marker)<0)&&(ve=xe.marker);return ve}function ai(re){return di(re,!0)}function gr(re){return di(re,!1)}function pt(re,le){var ye=qn&&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||pi(ve,Ke.marker)<0)&&(ve=Ke.marker)}return ve}function yn(re,le,ye,ve,xe){var Ke=dr(re,le),dt=qn&&Ke.markedSpans;if(dt)for(var Pt=0;Pt<dt.length;++Pt){var wt=dt[Pt];if(wt.marker.collapsed){var Vt=wt.marker.find(0),Kn=Nn(Vt.from,ye)||Or(wt.marker)-Or(xe),on=Nn(Vt.to,ve)||Wr(wt.marker)-Wr(xe);if(!(Kn>=0&&on<=0||Kn<=0&&on>=0)&&(Kn<=0&&(wt.marker.inclusiveRight&&xe.inclusiveLeft?Nn(Vt.to,ye)>=0:Nn(Vt.to,ye)>0)||Kn>=0&&(wt.marker.inclusiveRight&&xe.inclusiveLeft?Nn(Vt.from,ve)<=0:Nn(Vt.from,ve)<0)))return!0}}}function xn(re){for(var le;le=ai(re);)re=le.find(-1,!0).line;return re}function Hn(re){for(var le;le=gr(re);)re=le.find(1,!0).line;return re}function pn(re){for(var le,ye;le=gr(re);)re=le.find(1,!0).line,(ye||(ye=[])).push(re);return ye}function tr(re,le){var ye=dr(re,le),ve=xn(ye);return ye==ve?le:Lt(ve)}function Qn(re,le){if(le>re.lastLine())return le;var ye=dr(re,le),ve;if(!an(re,ye))return le;for(;ve=gr(ye);)ye=ve.find(1,!0).line;return Lt(ye)+1}function an(re,le){var ye=qn&&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&&hr(re,le,ve))return!0}}}function hr(re,le,ye){if(ye.to==null){var ve=ye.marker.find(1,!0);return hr(re,ve.line,Vi(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)&&hr(re,le,xe))return!0}function Vr(re){re=xn(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 Pt=Ke.children[dt];if(Pt==ye)break;le+=Pt.height}return le}function Ai(re){if(re.height==0)return 0;for(var le=re.text.length,ye,ve=re;ye=ai(ve);){var xe=ye.find(0,!0);ve=xe.from.line,le+=xe.from.ch-xe.to.ch}for(ve=re;ye=gr(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 si(re){var le=re.display,ye=re.doc;le.maxLine=dr(ye,ye.first),le.maxLineLength=Ai(le.maxLine),le.maxLineChanged=!0,ye.iter(function(ve){var xe=Ai(ve);xe>le.maxLineLength&&(le.maxLineLength=xe,le.maxLine=ve)})}var Si=function(re,le,ye){this.text=re,it(this,le),this.height=ye?ye(this):1};Si.prototype.lineNo=function(){return Lt(this)},Et(Si);function Ii(re,le,ye,ve){re.text=le,re.stateAfter&&(re.stateAfter=null),re.styles&&(re.styles=null),re.order!=null&&(re.order=null),wn(re),it(re,ye);var xe=ve?ve(re):1;xe!=re.height&&Pr(re,xe)}function Bi(re){re.parent=null,wn(re)}var ao={},wo={};function Ho(re,le){if(!re||/^\s*$/.test(re))return null;var ye=le.addModeClass?wo:ao;return ye[re]||(ye[re]=re.replace(/\S+/g,"cm-$&"))}function An(re,le){var ye=ht("span",null,null,Ge?"padding-right: .1px":null),ve={pre:ht("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=po,Dr(re.display.measure)&&(dt=Mn(Ke,re.doc.direction))&&(ve.addToken=Mi(ve.addToken,dt)),ve.map=[];var Pt=le!=re.display.externalMeasured&&Lt(Ke);Wo(Ke,ve,Ti(re,Ke,Pt)),Ke.styleClasses&&(Ke.styleClasses.bgClass&&(ve.bgClass=_t(Ke.styleClasses.bgClass,ve.bgClass||"")),Ke.styleClasses.textClass&&(ve.textClass=_t(Ke.styleClasses.textClass,ve.textClass||""))),ve.map.length==0&&ve.map.push(0,0,ve.content.appendChild(Kr(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(Ge){var wt=ve.content.lastChild;(/\bcm-tab\b/.test(wt.className)||wt.querySelector&&wt.querySelector(".cm-tab"))&&(ve.content.className="cm-tab-wrap-hack")}return nn(re,"renderLine",re,le.line,ve.pre),ve.pre.className&&(ve.textClass=_t(ve.pre.className,ve.textClass||"")),ve}function ko(re){var le=at("span","\u2022","cm-invalidchar");return le.title="\\u"+re.charCodeAt(0).toString(16),le.setAttribute("aria-label",le.title),le}function po(re,le,ye,ve,xe,Ke,dt){if(le){var Pt=re.splitSpaces?Zi(le,re.trailingSpace):le,wt=re.cm.state.specialChars,Vt=!1,Kn;if(!wt.test(le))re.col+=le.length,Kn=document.createTextNode(Pt),re.map.push(re.pos,re.pos+le.length,Kn),je&&Te<9&&(Vt=!0),re.pos+=le.length;else{Kn=document.createDocumentFragment();for(var on=0;;){wt.lastIndex=on;var Cr=wt.exec(le),vr=Cr?Cr.index-on:le.length-on;if(vr){var yi=document.createTextNode(Pt.slice(on,on+vr));je&&Te<9?Kn.appendChild(at("span",[yi])):Kn.appendChild(yi),re.map.push(re.pos,re.pos+vr,yi),re.col+=vr,re.pos+=vr}if(!Cr)break;on+=vr+1;var xi=void 0;if(Cr[0]==" "){var Li=re.cm.options.tabSize,Ji=Li-re.col%Li;xi=Kn.appendChild(at("span",Rt(Ji),"cm-tab")),xi.setAttribute("role","presentation"),xi.setAttribute("cm-text"," "),re.col+=Ji}else Cr[0]=="\r"||Cr[0]==`
`?(xi=Kn.appendChild(at("span",Cr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xi.setAttribute("cm-text",Cr[0]),re.col+=1):(xi=re.cm.options.specialCharPlaceholder(Cr[0]),xi.setAttribute("cm-text",Cr[0]),je&&Te<9?Kn.appendChild(at("span",[xi])):Kn.appendChild(xi),re.col+=1);re.map.push(re.pos,re.pos+1,xi),re.pos++}}if(re.trailingSpace=Pt.charCodeAt(le.length-1)==32,ye||ve||xe||Vt||Ke||dt){var yo=ye||"";ve&&(yo+=ve),xe&&(yo+=xe);var lo=at("span",[Kn],yo,Ke);if(dt)for(var Ao in dt)dt.hasOwnProperty(Ao)&&Ao!="style"&&Ao!="class"&&lo.setAttribute(Ao,dt[Ao]);return re.content.appendChild(lo)}re.content.appendChild(Kn)}}function Zi(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 Mi(re,le){return function(ye,ve,xe,Ke,dt,Pt,wt){xe=xe?xe+" cm-force-border":"cm-force-border";for(var Vt=ye.pos,Kn=Vt+ve.length;;){for(var on=void 0,Cr=0;Cr<le.length&&(on=le[Cr],!(on.to>Vt&&on.from<=Vt));Cr++);if(on.to>=Kn)return re(ye,ve,xe,Ke,dt,Pt,wt);re(ye,ve.slice(0,on.to-Vt),xe,Ke,null,Pt,wt),Ke=null,ve=ve.slice(on.to-Vt),Vt=on.to}}}function Oo(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 Wo(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]),Ho(ye[dt+1],le.cm.options));return}for(var Pt=xe.length,wt=0,Vt=1,Kn="",on,Cr,vr=0,yi,xi,Li,Ji,yo;;){if(vr==wt){yi=xi=Li=Cr="",yo=null,Ji=null,vr=1/0;for(var lo=[],Ao=void 0,Qo=0;Qo<ve.length;++Qo){var uo=ve[Qo],ya=uo.marker;if(ya.type=="bookmark"&&uo.from==wt&&ya.widgetNode)lo.push(ya);else if(uo.from<=wt&&(uo.to==null||uo.to>wt||ya.collapsed&&uo.to==wt&&uo.from==wt)){if(uo.to!=null&&uo.to!=wt&&vr>uo.to&&(vr=uo.to,xi=""),ya.className&&(yi+=" "+ya.className),ya.css&&(Cr=(Cr?Cr+";":"")+ya.css),ya.startStyle&&uo.from==wt&&(Li+=" "+ya.startStyle),ya.endStyle&&uo.to==vr&&(Ao||(Ao=[])).push(ya.endStyle,uo.to),ya.title&&((yo||(yo={})).title=ya.title),ya.attributes)for(var Ts in ya.attributes)(yo||(yo={}))[Ts]=ya.attributes[Ts];ya.collapsed&&(!Ji||pi(Ji.marker,ya)<0)&&(Ji=uo)}else uo.from>wt&&vr>uo.from&&(vr=uo.from)}if(Ao)for(var Cl=0;Cl<Ao.length;Cl+=2)Ao[Cl+1]==vr&&(xi+=" "+Ao[Cl]);if(!Ji||Ji.from==wt)for(var Bs=0;Bs<lo.length;++Bs)Oo(le,0,lo[Bs]);if(Ji&&(Ji.from||0)==wt){if(Oo(le,(Ji.to==null?Pt+1:Ji.to)-wt,Ji.marker,Ji.from==null),Ji.to==null)return;Ji.to==wt&&(Ji=!1)}}if(wt>=Pt)break;for(var Tu=Math.min(Pt,vr);;){if(Kn){var eu=wt+Kn.length;if(!Ji){var sl=eu>Tu?Kn.slice(0,Tu-wt):Kn;le.addToken(le,sl,on?on+yi:yi,Li,wt+sl.length==vr?xi:"",Cr,yo)}if(eu>=Tu){Kn=Kn.slice(Tu-wt),wt=Tu;break}wt=eu,Li=""}Kn=xe.slice(Ke,Ke=ye[Vt++]),on=Ho(ye[Vt++],le.cm.options)}}}function Wn(re,le,ye){this.line=le,this.rest=pn(le),this.size=this.rest?Lt(tn(this.rest))-ye+1:1,this.node=this.text=null,this.hidden=an(re,le)}function vo(re,le,ye){for(var ve=[],xe,Ke=le;Ke<ye;Ke=xe){var dt=new Wn(re.doc,dr(re.doc,Ke),Ke);xe=Ke+dt.size,ve.push(dt)}return ve}var ia=null;function za(re){ia?ia.ops.push(re):re.ownsGroup=ia={ops:[re],delayedCallbacks:[]}}function hs(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 il(re,le){var ye=re.ownsGroup;if(ye)try{hs(ye)}finally{ia=null,le(ye)}}var Ls=null;function to(re,le){var ye=Vn(re,le);if(ye.length){var ve=Array.prototype.slice.call(arguments,2),xe;ia?xe=ia.delayedCallbacks:Ls?xe=Ls:(xe=Ls=[],setTimeout(Ra,0));for(var Ke=function(Pt){xe.push(function(){return ye[Pt].apply(null,ve)})},dt=0;dt<ye.length;++dt)Ke(dt)}}function Ra(){var re=Ls;Ls=null;for(var le=0;le<re.length;++le)re[le]()}function Ma(re,le,ye,ve){for(var xe=0;xe<le.changes.length;xe++){var Ke=le.changes[xe];Ke=="text"?fi(re,le):Ke=="gutter"?ho(re,le,ye,ve):Ke=="class"?Yi(re,le):Ke=="widget"&&Io(re,le,ve)}le.changes=null}function ts(re){return re.node==re.text&&(re.node=at("div",null,null,"position: relative"),re.text.parentNode&&re.text.parentNode.replaceChild(re.node,re.text),re.node.appendChild(re.text),je&&Te<8&&(re.node.style.zIndex=2)),re.node}function Oa(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=ts(le);le.background=ve.insertBefore(at("div",null,ye),ve.firstChild),re.display.input.setUneditable(le.background)}}function _a(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 fi(re,le){var ye=le.text.className,ve=_a(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,Yi(re,le)):ye&&(le.text.className=ye)}function Yi(re,le){Oa(re,le),le.line.wrapClass?ts(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 ho(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=ts(le);le.gutterBackground=at("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=ts(le),Pt=le.gutter=at("div",null,"CodeMirror-gutter-wrapper","left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px");if(re.display.input.setUneditable(Pt),dt.insertBefore(Pt,le.text),le.line.gutterClass&&(Pt.className+=" "+le.line.gutterClass),re.options.lineNumbers&&(!Ke||!Ke["CodeMirror-linenumbers"])&&(le.lineNumber=Pt.appendChild(at("div",Er(re.options,ye),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ve.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+re.display.lineNumInnerWidth+"px"))),Ke)for(var wt=0;wt<re.display.gutterSpecs.length;++wt){var Vt=re.display.gutterSpecs[wt].className,Kn=Ke.hasOwnProperty(Vt)&&Ke[Vt];Kn&&Pt.appendChild(at("div",[Kn],"CodeMirror-gutter-elt","left: "+ve.gutterLeft[Vt]+"px; width: "+ve.gutterWidth[Vt]+"px"))}}}function Io(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);sa(re,le,ye)}function Do(re,le,ye,ve){var xe=_a(re,le);return le.text=le.node=xe.pre,xe.bgClass&&(le.bgClass=xe.bgClass),xe.textClass&&(le.textClass=xe.textClass),Yi(re,le),ho(re,le,ye,ve),sa(re,le,ve),le.node}function sa(re,le,ye){if(Xi(re,le.line,le,ye,!0),le.rest)for(var ve=0;ve<le.rest.length;ve++)Xi(re,le.rest[ve],le,ye,!1)}function Xi(re,le,ye,ve,xe){if(le.widgets)for(var Ke=ts(ye),dt=0,Pt=le.widgets;dt<Pt.length;++dt){var wt=Pt[dt],Vt=at("div",[wt.node],"CodeMirror-linewidget"+(wt.className?" "+wt.className:""));wt.handleMouseEvents||Vt.setAttribute("cm-ignore-events","true"),Ss(wt,Vt,ye,ve),re.display.input.setUneditable(Vt),xe&&wt.above?Ke.insertBefore(Vt,ye.gutter||ye.text):Ke.appendChild(Vt),to(wt,"redraw")}}function Ss(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 pa(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;"),$e(le.display.measure,at("div",[re.node],null,ye))}return re.height=re.node.parentNode.offsetHeight}function Ga(re,le){for(var ye=ei(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 Fo(re){return re.lineSpace.offsetTop}function ga(re){return re.mover.offsetHeight-re.lineSpace.offsetHeight}function Hs(re){if(re.cachedPaddingH)return re.cachedPaddingH;var le=$e(re.measure,at("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 da(re){return qt-re.display.nativeBarWidth}function Rs(re){return re.display.scroller.clientWidth-da(re)-re.display.barWidth}function ol(re){return re.display.scroller.clientHeight-da(re)-re.display.barHeight}function Xs(re,le,ye){var ve=re.options.lineWrapping,xe=ve&&Rs(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(),Pt=0;Pt<dt.length-1;Pt++){var wt=dt[Pt],Vt=dt[Pt+1];Math.abs(wt.bottom-Vt.bottom)>2&&Ke.push((wt.bottom+Vt.top)/2-ye.top)}}Ke.push(ye.bottom-ye.top)}}function $a(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(Lt(re.rest[xe])>ye)return{map:re.measure.maps[xe],cache:re.measure.caches[xe],before:!0}}function Kl(re,le){le=xn(le);var ye=Lt(le),ve=re.display.externalMeasured=new Wn(re.doc,le,ye);ve.lineN=ye;var xe=ve.built=An(re,ve);return ve.text=xe.pre,$e(re.display.lineMeasure,xe.pre),ve}function nc(re,le,ye,ve){return ll(re,Pl(re,le),ye,ve)}function es(re,le){if(le>=re.display.viewFrom&&le<re.display.viewTo)return re.display.view[Js(re,le)];var ye=re.display.externalMeasured;if(ye&&le>=ye.lineN&&le<ye.lineN+ye.size)return ye}function Pl(re,le){var ye=Lt(le),ve=es(re,ye);ve&&!ve.text?ve=null:ve&&ve.changes&&(Ma(re,ve,ye,Fl(re)),re.curOp.forceUpdate=!0),ve||(ve=Kl(re,le));var xe=$a(ve,le,ye);return{line:le,view:ve,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function ll(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||(Xs(re,le.view,le.rect),le.hasHeights=!0),dt=ns(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 ul={left:0,right:0,top:0,bottom:0};function rc(re,le,ye){for(var ve,xe,Ke,dt,Pt,wt,Vt=0;Vt<re.length;Vt+=3)if(Pt=re[Vt],wt=re[Vt+1],le<Pt?(xe=0,Ke=1,dt="left"):le<wt?(xe=le-Pt,Ke=xe+1):(Vt==re.length-3||le==wt&&re[Vt+3]>le)&&(Ke=wt-Pt,xe=Ke-1,le>=wt&&(dt="right")),xe!=null){if(ve=re[Vt+2],Pt==wt&&ye==(ve.insertLeft?"left":"right")&&(dt=ye),ye=="left"&&xe==0)for(;Vt&&re[Vt-2]==re[Vt-3]&&re[Vt-1].insertLeft;)ve=re[(Vt-=3)+2],dt="left";if(ye=="right"&&xe==wt-Pt)for(;Vt<re.length-3&&re[Vt+3]==re[Vt+4]&&!re[Vt+5].insertLeft;)ve=re[(Vt+=3)+2],dt="right";break}return{node:ve,start:xe,end:Ke,collapse:dt,coverStart:Pt,coverEnd:wt}}function yc(re,le){var ye=ul;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 ns(re,le,ye,ve){var xe=rc(le.map,ye,ve),Ke=xe.node,dt=xe.start,Pt=xe.end,wt=xe.collapse,Vt;if(Ke.nodeType==3){for(var Kn=0;Kn<4;Kn++){for(;dt&&hn(le.line.text.charAt(xe.coverStart+dt));)--dt;for(;xe.coverStart+Pt<xe.coverEnd&&hn(le.line.text.charAt(xe.coverStart+Pt));)++Pt;if(je&&Te<9&&dt==0&&Pt==xe.coverEnd-xe.coverStart?Vt=Ke.parentNode.getBoundingClientRect():Vt=yc(ot(Ke,dt,Pt).getClientRects(),ve),Vt.left||Vt.right||dt==0)break;Pt=dt,dt=dt-1,wt="right"}je&&Te<11&&(Vt=ic(re.display.measure,Vt))}else{dt>0&&(wt=ve="right");var on;re.options.lineWrapping&&(on=Ke.getClientRects()).length>1?Vt=on[ve=="right"?on.length-1:0]:Vt=Ke.getBoundingClientRect()}if(je&&Te<9&&!dt&&(!Vt||!Vt.left&&!Vt.right)){var Cr=Ke.parentNode.getClientRects()[0];Cr?Vt={left:Cr.left,right:Cr.left+Al(re.display),top:Cr.top,bottom:Cr.bottom}:Vt=ul}for(var vr=Vt.top-le.rect.top,yi=Vt.bottom-le.rect.top,xi=(vr+yi)/2,Li=le.view.measure.heights,Ji=0;Ji<Li.length-1&&!(xi<Li[Ji]);Ji++);var yo=Ji?Li[Ji-1]:0,lo=Li[Ji],Ao={left:(wt=="right"?Vt.right:Vt.left)-le.rect.left,right:(wt=="left"?Vt.left:Vt.right)-le.rect.left,top:yo,bottom:lo};return!Vt.left&&!Vt.right&&(Ao.bogus=!0),re.options.singleCursorHeightPerLine||(Ao.rtop=vr,Ao.rbottom=yi),Ao}function ic(re,le){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sr(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 oc(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 Mu(re){re.display.externalMeasure=null,rt(re.display.lineMeasure);for(var le=0;le<re.display.view.length;le++)oc(re.display.view[le])}function Ou(re){Mu(re),re.display.cachedCharWidth=re.display.cachedTextHeight=re.display.cachedPaddingH=null,re.options.lineWrapping||(re.display.maxLineChanged=!0),re.display.lineNumChars=null}function Ms(){return Qe&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qs(){return Qe&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fs(re){var le=0;if(re.widgets)for(var ye=0;ye<re.widgets.length;++ye)re.widgets[ye].above&&(le+=pa(re.widgets[ye]));return le}function ks(re,le,ye,ve,xe){if(!xe){var Ke=fs(le);ye.top+=Ke,ye.bottom+=Ke}if(ve=="line")return ye;ve||(ve="local");var dt=Vr(le);if(ve=="local"?dt+=Fo(re.display):dt-=re.display.viewOffset,ve=="page"||ve=="window"){var Pt=re.display.lineSpace.getBoundingClientRect();dt+=Pt.top+(ve=="window"?0:Qs());var wt=Pt.left+(ve=="window"?0:Ms());ye.left+=wt,ye.right+=wt}return ye.top+=dt,ye.bottom+=dt,ye}function yu(re,le,ye){if(ye=="div")return le;var ve=le.left,xe=le.top;if(ye=="page")ve-=Ms(),xe-=Qs();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 zs(re,le,ye,ve,xe){return ve||(ve=dr(re.doc,le.line)),ks(re,ve,nc(re,ve,le.ch,xe),ye)}function wa(re,le,ye,ve,xe,Ke){ve=ve||dr(re.doc,le.line),xe||(xe=Pl(re,ve));function dt(yi,xi){var Li=ll(re,xe,yi,xi?"right":"left",Ke);return xi?Li.left=Li.right:Li.right=Li.left,ks(re,ve,Li,ye)}var Pt=Mn(ve,re.doc.direction),wt=le.ch,Vt=le.sticky;if(wt>=ve.text.length?(wt=ve.text.length,Vt="before"):wt<=0&&(wt=0,Vt="after"),!Pt)return dt(Vt=="before"?wt-1:wt,Vt=="before");function Kn(yi,xi,Li){var Ji=Pt[xi],yo=Ji.level==1;return dt(Li?yi-1:yi,yo!=Li)}var on=Qt(Pt,wt,Vt),Cr=Ut,vr=Kn(wt,on,Vt=="before");return Cr!=null&&(vr.other=Kn(wt,Cr,Vt!="before")),vr}function ma(re,le){var ye=0;le=jn(re.doc,le),re.options.lineWrapping||(ye=Al(re.display)*le.ch);var ve=dr(re.doc,le.line),xe=Vr(ve)+Fo(re.display);return{left:ye,right:ye,top:xe,bottom:xe+ve.height}}function Vo(re,le,ye,ve,xe){var Ke=Yt(re,le,ye);return Ke.xRel=xe,ve&&(Ke.outside=ve),Ke}function cs(re,le,ye){var ve=re.doc;if(ye+=re.display.viewOffset,ye<0)return Vo(ve.first,0,null,-1,-1);var xe=ln(ve,ye),Ke=ve.first+ve.size-1;if(xe>Ke)return Vo(ve.first+ve.size-1,dr(ve,Ke).text.length,null,1,1);le<0&&(le=0);for(var dt=dr(ve,xe);;){var Pt=Ir(re,dt,xe,le,ye),wt=pt(dt,Pt.ch+(Pt.xRel>0||Pt.outside>0?1:0));if(!wt)return Pt;var Vt=wt.find(1);if(Vt.line==xe)return Vt;dt=dr(ve,xe=Vt.line)}}function Ri(re,le,ye,ve){ve-=fs(le);var xe=le.text.length,Ke=or(function(dt){return ll(re,ye,dt-1).bottom<=ve},xe,0);return xe=or(function(dt){return ll(re,ye,dt).top>ve},Ke,xe),{begin:Ke,end:xe}}function ps(re,le,ye,ve){ye||(ye=Pl(re,le));var xe=ks(re,le,ll(re,ye,ve),"line").top;return Ri(re,le,ye,xe)}function en(re,le,ye,ve){return re.bottom<=ye?!1:re.top>ye?!0:(ve?re.left:re.right)>le}function Ir(re,le,ye,ve,xe){xe-=Vr(le);var Ke=Pl(re,le),dt=fs(le),Pt=0,wt=le.text.length,Vt=!0,Kn=Mn(le,re.doc.direction);if(Kn){var on=(re.options.lineWrapping?Su:Tl)(re,le,ye,Ke,Kn,ve,xe);Vt=on.level!=1,Pt=Vt?on.from:on.to-1,wt=Vt?on.to:on.from-1}var Cr=null,vr=null,yi=or(function(Qo){var uo=ll(re,Ke,Qo);return uo.top+=dt,uo.bottom+=dt,en(uo,ve,xe,!1)?(uo.top<=xe&&uo.left<=ve&&(Cr=Qo,vr=uo),!0):!1},Pt,wt),xi,Li,Ji=!1;if(vr){var yo=ve-vr.left<vr.right-ve,lo=yo==Vt;yi=Cr+(lo?0:1),Li=lo?"after":"before",xi=yo?vr.left:vr.right}else{!Vt&&(yi==wt||yi==Pt)&&yi++,Li=yi==0?"after":yi==le.text.length?"before":ll(re,Ke,yi-(Vt?1:0)).bottom+dt<=xe==Vt?"after":"before";var Ao=wa(re,Yt(ye,yi,Li),"line",le,Ke);xi=Ao.left,Ji=xe<Ao.top?-1:xe>=Ao.bottom?1:0}return yi=On(le.text,yi,1),Vo(ye,yi,Li,Ji,ve-xi)}function Tl(re,le,ye,ve,xe,Ke,dt){var Pt=or(function(on){var Cr=xe[on],vr=Cr.level!=1;return en(wa(re,Yt(ye,vr?Cr.to:Cr.from,vr?"before":"after"),"line",le,ve),Ke,dt,!0)},0,xe.length-1),wt=xe[Pt];if(Pt>0){var Vt=wt.level!=1,Kn=wa(re,Yt(ye,Vt?wt.from:wt.to,Vt?"after":"before"),"line",le,ve);en(Kn,Ke,dt,!0)&&Kn.top>dt&&(wt=xe[Pt-1])}return wt}function Su(re,le,ye,ve,xe,Ke,dt){var Pt=Ri(re,le,ve,dt),wt=Pt.begin,Vt=Pt.end;/\s/.test(le.text.charAt(Vt-1))&&Vt--;for(var Kn=null,on=null,Cr=0;Cr<xe.length;Cr++){var vr=xe[Cr];if(!(vr.from>=Vt||vr.to<=wt)){var yi=vr.level!=1,xi=ll(re,ve,yi?Math.min(Vt,vr.to)-1:Math.max(wt,vr.from)).right,Li=xi<Ke?Ke-xi+1e9:xi-Ke;(!Kn||on>Li)&&(Kn=vr,on=Li)}}return Kn||(Kn=xe[xe.length-1]),Kn.from<wt&&(Kn={from:wt,to:Kn.to,level:Kn.level}),Kn.to>Vt&&(Kn={from:Kn.from,to:Vt,level:Kn.level}),Kn}var ja;function rs(re){if(re.cachedTextHeight!=null)return re.cachedTextHeight;if(ja==null){ja=at("pre",null,"CodeMirror-line-like");for(var le=0;le<49;++le)ja.appendChild(document.createTextNode("x")),ja.appendChild(at("br"));ja.appendChild(document.createTextNode("x"))}$e(re.measure,ja);var ye=ja.offsetHeight/50;return ye>3&&(re.cachedTextHeight=ye),rt(re.measure),ye||1}function Al(re){if(re.cachedCharWidth!=null)return re.cachedCharWidth;var le=at("span","xxxxxxxxxx"),ye=at("pre",[le],"CodeMirror-line-like");$e(re.measure,ye);var ve=le.getBoundingClientRect(),xe=(ve.right-ve.left)/10;return xe>2&&(re.cachedCharWidth=xe),xe||10}function Fl(re){for(var le=re.display,ye={},ve={},xe=le.gutters.clientLeft,Ke=le.gutters.firstChild,dt=0;Ke;Ke=Ke.nextSibling,++dt){var Pt=re.display.gutterSpecs[dt].className;ye[Pt]=Ke.offsetLeft+Ke.clientLeft+xe,ve[Pt]=Ke.clientWidth}return{fixedPos:ac(le),gutterTotalWidth:le.gutters.offsetWidth,gutterLeft:ye,gutterWidth:ve,wrapperWidth:le.wrapper.clientWidth}}function ac(re){return re.scroller.getBoundingClientRect().left-re.sizer.getBoundingClientRect().left}function Wa(re){var le=rs(re.display),ye=re.options.lineWrapping,ve=ye&&Math.max(5,re.display.scroller.clientWidth/Al(re.display)-3);return function(xe){if(an(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 Eo(re){var le=re.doc,ye=Wa(re);le.iter(function(ve){var xe=ye(ve);xe!=ve.height&&Pr(ve,xe)})}function bs(re,le,ye,ve){var xe=re.display;if(!ye&&ei(le).getAttribute("cm-not-content")=="true")return null;var Ke,dt,Pt=xe.lineSpace.getBoundingClientRect();try{Ke=le.clientX-Pt.left,dt=le.clientY-Pt.top}catch(on){return null}var wt=cs(re,Ke,dt),Vt;if(ve&&wt.xRel>0&&(Vt=dr(re.doc,wt.line).text).length==wt.ch){var Kn=bt(Vt,Vt.length,re.options.tabSize)-Vt.length;wt=Yt(wt.line,Math.max(0,Math.round((Ke-Hs(re.display).left)/Al(re.display))-Kn))}return wt}function Js(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 ua(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)qn&&tr(re.doc,le)<xe.viewTo&&Ya(re);else if(ye<=xe.viewFrom)qn&&Qn(re.doc,ye+ve)>xe.viewFrom?Ya(re):(xe.viewFrom+=ve,xe.viewTo+=ve);else if(le<=xe.viewFrom&&ye>=xe.viewTo)Ya(re);else if(le<=xe.viewFrom){var Ke=cl(re,ye,ye+ve,1);Ke?(xe.view=xe.view.slice(Ke.index),xe.viewFrom=Ke.lineN,xe.viewTo+=ve):Ya(re)}else if(ye>=xe.viewTo){var dt=cl(re,le,le,-1);dt?(xe.view=xe.view.slice(0,dt.index),xe.viewTo=dt.lineN):Ya(re)}else{var Pt=cl(re,le,le,-1),wt=cl(re,ye,ye+ve,1);Pt&&wt?(xe.view=xe.view.slice(0,Pt.index).concat(vo(re,Pt.lineN,wt.lineN)).concat(xe.view.slice(wt.index)),xe.viewTo+=ve):Ya(re)}var Vt=xe.externalMeasured;Vt&&(ye<Vt.lineN?Vt.lineN+=ve:le<Vt.lineN+Vt.size&&(xe.externalMeasured=null))}function Zo(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[Js(re,le)];if(Ke.node!=null){var dt=Ke.changes||(Ke.changes=[]);ct(dt,ye)==-1&&dt.push(ye)}}}function Ya(re){re.display.viewFrom=re.display.viewTo=re.doc.first,re.display.view=[],re.display.viewOffset=0}function cl(re,le,ye,ve){var xe=Js(re,le),Ke,dt=re.display.view;if(!qn||ye==re.doc.first+re.doc.size)return{index:xe,lineN:ye};for(var Pt=re.display.viewFrom,wt=0;wt<xe;wt++)Pt+=dt[wt].size;if(Pt!=le){if(ve>0){if(xe==dt.length-1)return null;Ke=Pt+dt[xe].size-le,xe++}else Ke=Pt-le;le+=Ke,ye+=Ke}for(;tr(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=vo(re,le,ye),ve.viewFrom=le):(ve.viewFrom>le?ve.view=vo(re,le,ve.viewFrom).concat(ve.view):ve.viewFrom<le&&(ve.view=ve.view.slice(Js(re,le))),ve.viewFrom=le,ve.viewTo<ye?ve.view=ve.view.concat(vo(re,ve.viewTo,ye)):ve.viewTo>ye&&(ve.view=ve.view.slice(0,Js(re,ye)))),ve.viewTo=ye}function Sl(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 Es(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 Pt=ye.sel.ranges[dt];if(!(Pt.from().line>=re.display.viewTo||Pt.to().line<re.display.viewFrom)){var wt=Pt.empty();(wt||re.options.showCursorWhenSelecting)&&va(re,Pt.head,xe),wt||oa(re,Pt,Ke)}}return ve}function va(re,le,ye){var ve=wa(re,le,"div",null,null,!re.options.singleCursorHeightPerLine),xe=ye.appendChild(at("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(at("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 Os(re,le){return re.top-le.top||re.left-le.left}function oa(re,le,ye){var ve=re.display,xe=re.doc,Ke=document.createDocumentFragment(),dt=Hs(re.display),Pt=dt.left,wt=Math.max(ve.sizerWidth,Rs(re)-ve.sizer.offsetLeft)-dt.right,Vt=xe.direction=="ltr";function Kn(lo,Ao,Qo,uo){Ao<0&&(Ao=0),Ao=Math.round(Ao),uo=Math.round(uo),Ke.appendChild(at("div",null,"CodeMirror-selected","position: absolute; left: "+lo+`px;
top: `+Ao+"px; width: "+(Qo==null?wt-lo:Qo)+`px;
height: `+(uo-Ao)+"px"))}function on(lo,Ao,Qo){var uo=dr(xe,lo),ya=uo.text.length,Ts,Cl;function Bs(sl,Gu){return zs(re,Yt(lo,sl),"div",uo,Gu)}function Tu(sl,Gu,Gl){var tl=ps(re,uo,null,sl),Ba=Gu=="ltr"==(Gl=="after")?"left":"right",Vs=Gl=="after"?tl.begin:tl.end-(/\s/.test(uo.text.charAt(tl.end-1))?2:1);return Bs(Vs,Ba)[Ba]}var eu=Mn(uo,xe.direction);return jt(eu,Ao||0,Qo==null?ya:Qo,function(sl,Gu,Gl,tl){var Ba=Gl=="ltr",Vs=Bs(sl,Ba?"left":"right"),Rl=Bs(Gu-1,Ba?"right":"left"),jl=Ao==null&&sl==0,xc=Qo==null&&Gu==ya,Ds=tl==0,we=!eu||tl==eu.length-1;if(Rl.top-Vs.top<=3){var Ne=(Vt?jl:xc)&&Ds,We=(Vt?xc:jl)&&we,ut=Ne?Pt:(Ba?Vs:Rl).left,At=We?wt:(Ba?Rl:Vs).right;Kn(ut,Vs.top,At-ut,Vs.bottom)}else{var Nt,Ft,Kt,Bn;Ba?(Nt=Vt&&jl&&Ds?Pt:Vs.left,Ft=Vt?wt:Tu(sl,Gl,"before"),Kt=Vt?Pt:Tu(Gu,Gl,"after"),Bn=Vt&&xc&&we?wt:Rl.right):(Nt=Vt?Tu(sl,Gl,"before"):Pt,Ft=!Vt&&jl&&Ds?wt:Vs.right,Kt=!Vt&&xc&&we?Pt:Rl.left,Bn=Vt?Tu(Gu,Gl,"after"):wt),Kn(Nt,Vs.top,Ft-Nt,Vs.bottom),Vs.bottom<Rl.top&&Kn(Pt,Vs.bottom,null,Rl.top),Kn(Kt,Rl.top,Bn-Kt,Rl.bottom)}(!Ts||Os(Vs,Ts)<0)&&(Ts=Vs),Os(Rl,Ts)<0&&(Ts=Rl),(!Cl||Os(Vs,Cl)<0)&&(Cl=Vs),Os(Rl,Cl)<0&&(Cl=Rl)}),{start:Ts,end:Cl}}var Cr=le.from(),vr=le.to();if(Cr.line==vr.line)on(Cr.line,Cr.ch,vr.ch);else{var yi=dr(xe,Cr.line),xi=dr(xe,vr.line),Li=xn(yi)==xn(xi),Ji=on(Cr.line,Cr.ch,Li?yi.text.length+1:null).end,yo=on(vr.line,Li?0:null,vr.ch).start;Li&&(Ji.top<yo.top-2?(Kn(Ji.right,Ji.top,null,Ji.bottom),Kn(Pt,yo.top,yo.left,yo.bottom)):Kn(Ji.right,Ji.top,yo.left-Ji.right,Ji.bottom)),Ji.bottom<yo.top&&Kn(Pt,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()||sc(re),le.cursorDiv.style.visibility=(ye=!ye)?"":"hidden"},re.options.cursorBlinkRate):re.options.cursorBlinkRate<0&&(le.cursorDiv.style.visibility="hidden")}}function La(re){re.state.focused||(re.display.input.focus(),na(re))}function Za(re){re.state.delayingBlurEvent=!0,setTimeout(function(){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1,sc(re))},100)}function na(re,le){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1),re.options.readOnly!="nocursor"&&(re.state.focused||(nn(re,"focus",re,le),re.state.focused=!0,Tt(re.display.wrapper,"CodeMirror-focused"),!re.curOp&&re.display.selForContextMenu!=re.doc.sel&&(re.display.input.reset(),Ge&&setTimeout(function(){return re.display.input.reset(!0)},20)),re.display.input.receivedFocus()),Ta(re))}function sc(re,le){re.state.delayingBlurEvent||(re.state.focused&&(nn(re,"blur",re,le),re.state.focused=!1,Ye(re.display.wrapper,"CodeMirror-focused")),clearInterval(re.display.blinker),setTimeout(function(){re.state.focused||(re.display.shift=!1)},150))}function bo(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,Pt=0;if(!xe.hidden){if(je&&Te<8){var wt=xe.node.offsetTop+xe.node.offsetHeight;dt=wt-ye,ye=wt}else{var Vt=xe.node.getBoundingClientRect();dt=Vt.bottom-Vt.top,!Ke&&xe.text.firstChild&&(Pt=xe.text.firstChild.getBoundingClientRect().right-Vt.left-1)}var Kn=xe.line.height-dt;if((Kn>.005||Kn<-.005)&&(Pr(xe.line,dt),Dc(xe.line),xe.rest))for(var on=0;on<xe.rest.length;on++)Dc(xe.rest[on]);if(Pt>re.display.sizerWidth){var Cr=Math.ceil(Pt/Al(re.display));Cr>re.display.maxLineLength&&(re.display.maxLineLength=Cr,re.display.maxLine=xe.line,re.display.maxLineChanged=!0)}}}}function Dc(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 aa(re,le,ye){var ve=ye&&ye.top!=null?Math.max(0,ye.top):re.scroller.scrollTop;ve=Math.floor(ve-Fo(re));var xe=ye&&ye.bottom!=null?ye.bottom:ve+re.wrapper.clientHeight,Ke=ln(le,ve),dt=ln(le,xe);if(ye&&ye.ensure){var Pt=ye.ensure.from.line,wt=ye.ensure.to.line;Pt<Ke?(Ke=Pt,dt=ln(le,Vr(dr(le,Pt))+re.wrapper.clientHeight)):Math.min(wt,le.lastLine())>=dt&&(Ke=ln(le,Vr(dr(le,wt))-re.wrapper.clientHeight),dt=wt)}return{from:Ke,to:Math.max(dt,Ke+1)}}function Sc(re,le){if(!fn(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&&!It){var Ke=at("div","\u200B",null,`position: absolute;
top: `+(le.top-ye.viewOffset-Fo(re.display))+`px;
height: `+(le.bottom-le.top+da(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 Bu(re,le,ye,ve){ve==null&&(ve=0);var xe;!re.options.lineWrapping&&le==ye&&(le=le.ch?Yt(le.line,le.sticky=="before"?le.ch-1:le.ch,"after"):le,ye=le.sticky=="before"?Yt(le.line,le.ch+1,"before"):le);for(var Ke=0;Ke<5;Ke++){var dt=!1,Pt=wa(re,le),wt=!ye||ye==le?Pt:wa(re,ye);xe={left:Math.min(Pt.left,wt.left),top:Math.min(Pt.top,wt.top)-ve,right:Math.max(Pt.left,wt.left),bottom:Math.max(Pt.bottom,wt.bottom)+ve};var Vt=Rc(re,xe),Kn=re.doc.scrollTop,on=re.doc.scrollLeft;if(Vt.scrollTop!=null&&(Nl(re,Vt.scrollTop),Math.abs(re.doc.scrollTop-Kn)>1&&(dt=!0)),Vt.scrollLeft!=null&&(bl(re,Vt.scrollLeft),Math.abs(re.doc.scrollLeft-on)>1&&(dt=!0)),!dt)break}return xe}function bu(re,le){var ye=Rc(re,le);ye.scrollTop!=null&&Nl(re,ye.scrollTop),ye.scrollLeft!=null&&bl(re,ye.scrollLeft)}function Rc(re,le){var ye=re.display,ve=rs(re.display);le.top<0&&(le.top=0);var xe=re.curOp&&re.curOp.scrollTop!=null?re.curOp.scrollTop:ye.scroller.scrollTop,Ke=ol(re),dt={};le.bottom-le.top>Ke&&(le.bottom=le.top+Ke);var Pt=re.doc.height+ga(ye),wt=le.top<ve,Vt=le.bottom>Pt-ve;if(le.top<xe)dt.scrollTop=wt?0:le.top;else if(le.bottom>xe+Ke){var Kn=Math.min(le.top,(Vt?Pt:le.bottom)-Ke);Kn!=xe&&(dt.scrollTop=Kn)}var on=re.options.fixedGutter?0:ye.gutters.offsetWidth,Cr=re.curOp&&re.curOp.scrollLeft!=null?re.curOp.scrollLeft:ye.scroller.scrollLeft-on,vr=Rs(re)-ye.gutters.offsetWidth,yi=le.right-le.left>vr;return yi&&(le.right=le.left+vr),le.left<10?dt.scrollLeft=0:le.left<Cr?dt.scrollLeft=Math.max(0,le.left+on-(yi?0:10)):le.right>vr+Cr-3&&(dt.scrollLeft=le.right+(yi?0:10)-vr),dt}function Xc(re,le){le!=null&&(Gs(re),re.curOp.scrollTop=(re.curOp.scrollTop==null?re.doc.scrollTop:re.curOp.scrollTop)+le)}function Yl(re){Gs(re);var le=re.getCursor();re.curOp.scrollToPos={from:le,to:le,margin:re.options.cursorScrollMargin}}function Xl(re,le,ye){(le!=null||ye!=null)&&Gs(re),le!=null&&(re.curOp.scrollLeft=le),ye!=null&&(re.curOp.scrollTop=ye)}function la(re,le){Gs(re),re.curOp.scrollToPos=le}function Gs(re){var le=re.curOp.scrollToPos;if(le){re.curOp.scrollToPos=null;var ye=ma(re,le.from),ve=ma(re,le.to);du(re,ye,ve,le.margin)}}function du(re,le,ye,ve){var xe=Rc(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});Xl(re,xe.scrollLeft,xe.scrollTop)}function Nl(re,le){Math.abs(re.doc.scrollTop-le)<2||(oe||tt(re,{top:le}),dl(re,le,!0),oe&&tt(re),bc(re,100))}function dl(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 bl(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,sn(re),re.display.scroller.scrollLeft!=le&&(re.display.scroller.scrollLeft=le),re.display.scrollbars.setScrollLeft(le))}function $o(re){var le=re.display,ye=le.gutters.offsetWidth,ve=Math.round(re.doc.height+ga(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+da(re)+le.barHeight,nativeBarWidth:le.nativeBarWidth,gutterWidth:ye}}var ca=function(re,le,ye){this.cm=ye;var ve=this.vert=at("div",[at("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=at("div",[at("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ve.tabIndex=xe.tabIndex=-1,re(ve),re(xe),Ht(ve,"scroll",function(){ve.clientHeight&&le(ve.scrollTop,"vertical")}),Ht(xe,"scroll",function(){xe.clientWidth&&le(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,je&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ca.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}},ca.prototype.setScrollLeft=function(re){this.horiz.scrollLeft!=re&&(this.horiz.scrollLeft=re),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ca.prototype.setScrollTop=function(re){this.vert.scrollTop!=re&&(this.vert.scrollTop=re),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ca.prototype.zeroWidthHack=function(){var re=he&&!Je?"12px":"18px";this.horiz.style.height=this.vert.style.width=re,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},ca.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)},ca.prototype.clear=function(){var re=this.horiz.parentNode;re.removeChild(this.horiz),re.removeChild(this.vert)};var Va=function(){};Va.prototype.update=function(){return{bottom:0,right:0}},Va.prototype.setScrollLeft=function(){},Va.prototype.setScrollTop=function(){},Va.prototype.clear=function(){};function Is(re,le){le||(le=$o(re));var ye=re.display.barWidth,ve=re.display.barHeight;xs(re,le);for(var xe=0;xe<4&&ye!=re.display.barWidth||ve!=re.display.barHeight;xe++)ye!=re.display.barWidth&&re.options.lineWrapping&&bo(re),xs(re,$o(re)),ye=re.display.barWidth,ve=re.display.barHeight}function xs(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 Ll={native:ca,null:Va};function Bl(re){re.display.scrollbars&&(re.display.scrollbars.clear(),re.display.scrollbars.addClass&&Ye(re.display.wrapper,re.display.scrollbars.addClass)),re.display.scrollbars=new Ll[re.options.scrollbarStyle](function(le){re.display.wrapper.insertBefore(le,re.display.scrollbarFiller),Ht(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"?bl(re,le):Nl(re,le)},re),re.display.scrollbars.addClass&&Tt(re.display.wrapper,re.display.scrollbars.addClass)}var _l=0;function kl(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:++_l},za(re.curOp)}function hu(re){var le=re.curOp;le&&il(le,function(ye){for(var ve=0;ve<ye.ops.length;ve++)ye.ops[ve].cm.curOp=null;bd(ye)})}function bd(re){for(var le=re.ops,ye=0;ye<le.length;ye++)Hd(le[ye]);for(var ve=0;ve<le.length;ve++)ch(le[ve]);for(var xe=0;xe<le.length;xe++)dh(le[xe]);for(var Ke=0;Ke<le.length;Ke++)gs(le[Ke]);for(var dt=0;dt<le.length;dt++)lc(le[dt])}function Hd(re){var le=re.cm,ye=le.display;Qc(le),re.updateMaxLine&&si(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 Eu(le,re.mustUpdate&&{top:re.scrollTop,ensure:re.scrollToPos},re.forceUpdate)}function ch(re){re.updatedDisplay=re.mustUpdate&&Pe(re.cm,re.update)}function dh(re){var le=re.cm,ye=le.display;re.updatedDisplay&&bo(le),re.barMeasure=$o(le),ye.maxLineChanged&&!le.options.lineWrapping&&(re.adjustWidthTo=nc(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+da(le)+le.display.barWidth),re.maxScrollLeft=Math.max(0,ye.sizer.offsetLeft+re.adjustWidthTo-Rs(le))),(re.updatedDisplay||re.selectionChanged)&&(re.preparedSelection=ye.input.prepareSelection())}function gs(re){var le=re.cm;re.adjustWidthTo!=null&&(le.display.sizer.style.minWidth=re.adjustWidthTo+"px",re.maxScrollLeft<le.doc.scrollLeft&&bl(le,Math.min(le.display.scroller.scrollLeft,re.maxScrollLeft),!0),le.display.maxLineChanged=!1);var ye=re.focus&&re.focus==xt();re.preparedSelection&&le.display.input.showSelection(re.preparedSelection,ye),(re.updatedDisplay||re.startHeight!=le.doc.height)&&Is(le,re.barMeasure),re.updatedDisplay&&Bt(le,re.barMeasure),re.selectionChanged&&Ta(le),le.state.focused&&re.updateInput&&le.display.input.reset(re.typing),ye&&La(re.cm)}function lc(re){var le=re.cm,ye=le.display,ve=le.doc;if(re.updatedDisplay&&Xe(le,re.update),ye.wheelStartX!=null&&(re.scrollTop!=null||re.scrollLeft!=null||re.scrollToPos)&&(ye.wheelStartX=ye.wheelStartY=null),re.scrollTop!=null&&dl(le,re.scrollTop,re.forceScroll),re.scrollLeft!=null&&bl(le,re.scrollLeft,!0,!0),re.scrollToPos){var xe=Bu(le,jn(ve,re.scrollToPos.from),jn(ve,re.scrollToPos.to),re.scrollToPos.margin);Sc(le,xe)}var Ke=re.maybeHiddenMarkers,dt=re.maybeUnhiddenMarkers;if(Ke)for(var Pt=0;Pt<Ke.length;++Pt)Ke[Pt].lines.length||nn(Ke[Pt],"hide");if(dt)for(var wt=0;wt<dt.length;++wt)dt[wt].lines.length&&nn(dt[wt],"unhide");ye.wrapper.offsetHeight&&(ve.scrollTop=le.display.scroller.scrollTop),re.changeObjs&&nn(le,"changes",le,re.changeObjs),re.update&&re.update.finish()}function Na(re,le){if(re.curOp)return le();kl(re);try{return le()}finally{hu(re)}}function js(re,le){return function(){if(re.curOp)return le.apply(re,arguments);kl(re);try{return le.apply(re,arguments)}finally{hu(re)}}}function $s(re){return function(){if(this.curOp)return re.apply(this,arguments);kl(this);try{return re.apply(this,arguments)}finally{hu(this)}}}function qs(re){return function(){var le=this.cm;if(!le||le.curOp)return re.apply(this,arguments);kl(le);try{return re.apply(this,arguments)}finally{hu(le)}}}function bc(re,le){re.doc.highlightFrontier<re.display.viewTo&&re.state.highlight.set(le,Zt(Fs,re))}function Fs(re){var le=re.doc;if(!(le.highlightFrontier>=re.display.viewTo)){var ye=+new Date+re.options.workTime,ve=eo(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,Pt=Ke.text.length>re.options.maxHighlightLength?li(le.mode,ve.state):null,wt=un(re,Ke,ve,!0);Pt&&(ve.state=Pt),Ke.styles=wt.styles;var Vt=Ke.styleClasses,Kn=wt.classes;Kn?Ke.styleClasses=Kn:Vt&&(Ke.styleClasses=null);for(var on=!dt||dt.length!=Ke.styles.length||Vt!=Kn&&(!Vt||!Kn||Vt.bgClass!=Kn.bgClass||Vt.textClass!=Kn.textClass),Cr=0;!on&&Cr<dt.length;++Cr)on=dt[Cr]!=Ke.styles[Cr];on&&xe.push(ve.line),Ke.stateAfter=ve.save(),ve.nextLine()}else Ke.text.length<=re.options.maxHighlightLength&&mn(re,Ke.text,ve),Ke.stateAfter=ve.line%5==0?ve.save():null,ve.nextLine();if(+new Date>ye)return bc(re,re.options.workDelay),!0}),le.highlightFrontier=ve.line,le.modeFrontier=Math.max(le.modeFrontier,ve.line),xe.length&&Na(re,function(){for(var Ke=0;Ke<xe.length;Ke++)Zo(re,xe[Ke],"text")})}}var Eu=function(re,le,ye){var ve=re.display;this.viewport=le,this.visible=aa(ve,re.doc,le),this.editorIsHidden=!ve.wrapper.offsetWidth,this.wrapperHeight=ve.wrapper.clientHeight,this.wrapperWidth=ve.wrapper.clientWidth,this.oldDisplayWidth=Rs(re),this.force=ye,this.dims=Fl(re),this.events=[]};Eu.prototype.signal=function(re,le){cn(re,le)&&this.events.push(arguments)},Eu.prototype.finish=function(){for(var re=0;re<this.events.length;re++)nn.apply(null,this.events[re])};function Qc(re){var le=re.display;!le.scrollbarsClipped&&le.scroller.offsetWidth&&(le.nativeBarWidth=le.scroller.offsetWidth-le.scroller.clientWidth,le.heightForcer.style.height=da(re)+"px",le.sizer.style.marginBottom=-le.nativeBarWidth+"px",le.sizer.style.borderRightWidth=da(re)+"px",le.scrollbarsClipped=!0)}function Ed(re){if(re.hasFocus())return null;var le=xt();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 Il(re){if(!(!re||!re.activeElt||re.activeElt==xt())&&(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 Pe(re,le){var ye=re.display,ve=re.doc;if(le.editorIsHidden)return Ya(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&&Sl(re)==0)return!1;Cn(re)&&(Ya(re),le.dims=Fl(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)),qn&&(Ke=tr(re.doc,Ke),dt=Qn(re.doc,dt));var Pt=Ke!=ye.viewFrom||dt!=ye.viewTo||ye.lastWrapHeight!=le.wrapperHeight||ye.lastWrapWidth!=le.wrapperWidth;Ia(re,Ke,dt),ye.viewOffset=Vr(dr(re.doc,ye.viewFrom)),re.display.mover.style.top=ye.viewOffset+"px";var wt=Sl(re);if(!Pt&&wt==0&&!le.force&&ye.renderedView==ye.view&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo))return!1;var Vt=Ed(re);return wt>4&&(ye.lineDiv.style.display="none"),gt(re,ye.updateLineNumbers,le.dims),wt>4&&(ye.lineDiv.style.display=""),ye.renderedView=ye.view,Il(Vt),rt(ye.cursorDiv),rt(ye.selectionDiv),ye.gutters.style.height=ye.sizer.style.minHeight=0,Pt&&(ye.lastWrapHeight=le.wrapperHeight,ye.lastWrapWidth=le.wrapperWidth,bc(re,400)),ye.updateLineNumbers=null,!0}function Xe(re,le){for(var ye=le.viewport,ve=!0;;ve=!1){if(!ve||!re.options.lineWrapping||le.oldDisplayWidth==Rs(re)){if(ye&&ye.top!=null&&(ye={top:Math.min(re.doc.height+ga(re.display)-ol(re),ye.top)}),le.visible=aa(re.display,re.doc,ye),le.visible.from>=re.display.viewFrom&&le.visible.to<=re.display.viewTo)break}else ve&&(le.visible=aa(re.display,re.doc,ye));if(!Pe(re,le))break;bo(re);var xe=$o(re);Es(re),Is(re,xe),Bt(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 Eu(re,le);if(Pe(re,ye)){bo(re),Xe(re,ye);var ve=$o(re);Es(re),Is(re,ve),Bt(re,ve),ye.finish()}}function gt(re,le,ye){var ve=re.display,xe=re.options.lineNumbers,Ke=ve.lineDiv,dt=Ke.firstChild;function Pt(yi){var xi=yi.nextSibling;return Ge&&he&&re.display.currentWheelTarget==yi?yi.style.display="none":yi.parentNode.removeChild(yi),xi}for(var wt=ve.view,Vt=ve.viewFrom,Kn=0;Kn<wt.length;Kn++){var on=wt[Kn];if(!on.hidden)if(!on.node||on.node.parentNode!=Ke){var Cr=Do(re,on,Vt,ye);Ke.insertBefore(Cr,dt)}else{for(;dt!=on.node;)dt=Pt(dt);var vr=xe&&le!=null&&le<=Vt&&on.lineNumber;on.changes&&(ct(on.changes,"gutter")>-1&&(vr=!1),Ma(re,on,Vt,ye)),vr&&(rt(on.lineNumber),on.lineNumber.appendChild(document.createTextNode(Er(re.options,Vt)))),dt=on.node.nextSibling}Vt+=on.size}for(;dt;)dt=Pt(dt)}function Mt(re){var le=re.gutters.offsetWidth;re.sizer.style.marginLeft=le+"px"}function Bt(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+da(re)+"px"}function sn(re){var le=re.display,ye=le.view;if(!(!le.alignWidgets&&(!le.gutters.firstChild||!re.options.fixedGutter))){for(var ve=ac(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 Pt=ye[dt].alignable;if(Pt)for(var wt=0;wt<Pt.length;wt++)Pt[wt].style.left=Ke}re.options.fixedGutter&&(le.gutters.style.left=ve+xe+"px")}}function Cn(re){if(!re.options.lineNumbers)return!1;var le=re.doc,ye=Er(re.options,le.first+le.size-1),ve=re.display;if(ye.length!=ve.lineNumChars){var xe=ve.measure.appendChild(at("div",[at("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",Mt(re.display),!0}return!1}function yr(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 xr(re){var le=re.gutters,ye=re.gutterSpecs;rt(le),re.lineGutter=null;for(var ve=0;ve<ye.length;++ve){var xe=ye[ve],Ke=xe.className,dt=xe.style,Pt=le.appendChild(at("div",null,"CodeMirror-gutter "+Ke));dt&&(Pt.style.cssText=dt),Ke=="CodeMirror-linenumbers"&&(re.lineGutter=Pt,Pt.style.width=(re.lineNumWidth||1)+"px")}le.style.display=ye.length?"":"none",Mt(re)}function nr(re){xr(re.display),ua(re),sn(re)}function Zr(re,le,ye,ve){var xe=this;this.input=ye,xe.scrollbarFiller=at("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=at("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=ht("div",null,"CodeMirror-code"),xe.selectionDiv=at("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=at("div",null,"CodeMirror-cursors"),xe.measure=at("div",null,"CodeMirror-measure"),xe.lineMeasure=at("div",null,"CodeMirror-measure"),xe.lineSpace=ht("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var Ke=ht("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=at("div",[Ke],null,"position: relative"),xe.sizer=at("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=at("div",null,null,"position: absolute; height: "+qt+"px; width: 1px;"),xe.gutters=at("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=at("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=at("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),je&&Te<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!Ge&&!(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=yr(ve.gutters,ve.lineNumbers),xr(xe),ye.init(xe)}var zr=0,ur=null;je?ur=-.53:oe?ur=15:Qe?ur=-.7:mt&&(ur=-1/3);function Po(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 jo(re){var le=Po(re);return le.x*=ur,le.y*=ur,le}function ea(re,le){var ye=Po(le),ve=ye.x,xe=ye.y,Ke=re.display,dt=Ke.scroller,Pt=dt.scrollWidth>dt.clientWidth,wt=dt.scrollHeight>dt.clientHeight;if(ve&&Pt||xe&&wt){if(xe&&he&&Ge){e:for(var Vt=le.target,Kn=Ke.view;Vt!=dt;Vt=Vt.parentNode)for(var on=0;on<Kn.length;on++)if(Kn[on].node==Vt){re.display.currentWheelTarget=Vt;break e}}if(ve&&!oe&&!Ue&&ur!=null){xe&&wt&&Nl(re,Math.max(0,dt.scrollTop+xe*ur)),bl(re,Math.max(0,dt.scrollLeft+ve*ur)),(!xe||xe&&wt)&&Jn(le),Ke.wheelStartX=null;return}if(xe&&ur!=null){var Cr=xe*ur,vr=re.doc.scrollTop,yi=vr+Ke.wrapper.clientHeight;Cr<0?vr=Math.max(0,vr+Cr-50):yi=Math.min(re.doc.height,yi+Cr+50),tt(re,{top:vr,bottom:yi})}zr<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 xi=dt.scrollLeft-Ke.wheelStartX,Li=dt.scrollTop-Ke.wheelStartY,Ji=Li&&Ke.wheelDY&&Li/Ke.wheelDY||xi&&Ke.wheelDX&&xi/Ke.wheelDX;Ke.wheelStartX=Ke.wheelStartY=null,Ji&&(ur=(ur*zr+Ji)/(zr+1),++zr)}},200)):(Ke.wheelDX+=ve,Ke.wheelDY+=xe))}}var so=function(re,le){this.ranges=re,this.primIndex=le};so.prototype.primary=function(){return this.ranges[this.primIndex]},so.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(!Xr(ye.anchor,ve.anchor)||!Xr(ye.head,ve.head))return!1}return!0},so.prototype.deepCopy=function(){for(var re=[],le=0;le<this.ranges.length;le++)re[le]=new To(Ln(this.ranges[le].anchor),Ln(this.ranges[le].head));return new so(re,this.primIndex)},so.prototype.somethingSelected=function(){for(var re=0;re<this.ranges.length;re++)if(!this.ranges[re].empty())return!0;return!1},so.prototype.contains=function(re,le){le||(le=re);for(var ye=0;ye<this.ranges.length;ye++){var ve=this.ranges[ye];if(Nn(le,ve.from())>=0&&Nn(re,ve.to())<=0)return ye}return-1};var To=function(re,le){this.anchor=re,this.head=le};To.prototype.from=function(){return Rr(this.anchor,this.head)},To.prototype.to=function(){return Ve(this.anchor,this.head)},To.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,vr){return Nn(Cr.from(),vr.from())}),ye=ct(le,xe);for(var Ke=1;Ke<le.length;Ke++){var dt=le[Ke],Pt=le[Ke-1],wt=Nn(Pt.to(),dt.from());if(ve&&!dt.empty()?wt>0:wt>=0){var Vt=Rr(Pt.from(),dt.from()),Kn=Ve(Pt.to(),dt.to()),on=Pt.empty()?dt.from()==dt.head:Pt.from()==Pt.head;Ke<=ye&&--ye,le.splice(--Ke,2,new To(on?Kn:Vt,on?Vt:Kn))}}return new so(le,ye)}function Xa(re,le){return new so([new To(re,le||re)],0)}function Qa(re){return re.text?Yt(re.from.line+re.text.length-1,tn(re.text).length+(re.text.length==1?re.from.ch:0)):re.to}function Wi(re,le){if(Nn(re,le.from)<0)return re;if(Nn(re,le.to)<=0)return Qa(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+=Qa(le).ch-le.to.ch),Yt(ye,ve)}function ka(re,le){for(var ye=[],ve=0;ve<re.sel.ranges.length;ve++){var xe=re.sel.ranges[ve];ye.push(new To(Wi(xe.anchor,le),Wi(xe.head,le)))}return Bo(re.cm,ye,re.sel.primIndex)}function ws(re,le,ye){return re.line==le.line?Yt(ye.line,re.ch-le.ch+ye.ch):Yt(ye.line+(re.line-le.line),re.ch)}function Ua(re,le,ye){for(var ve=[],xe=Yt(re.first,0),Ke=xe,dt=0;dt<le.length;dt++){var Pt=le[dt],wt=ws(Pt.from,xe,Ke),Vt=ws(Qa(Pt),xe,Ke);if(xe=Pt.to,Ke=Vt,ye=="around"){var Kn=re.sel.ranges[dt],on=Nn(Kn.head,Kn.anchor)<0;ve[dt]=new To(on?Vt:wt,on?wt:Vt)}else ve[dt]=new To(wt,wt)}return new so(ve,re.sel.primIndex)}function xo(re){re.doc.mode=Pn(re.options,re.doc.modeOption),Dl(re)}function Dl(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,bc(re,100),re.state.modeGen++,re.curOp&&ua(re)}function is(re,le){return le.from.ch==0&&le.to.ch==0&&tn(le.text)==""&&(!re.cm||re.cm.options.wholeLineUpdateBefore)}function Ko(re,le,ye,ve){function xe(yo){return ye?ye[yo]:null}function Ke(yo,lo,Ao){Ii(yo,lo,Ao,ve),to(yo,"change",yo,le)}function dt(yo,lo){for(var Ao=[],Qo=yo;Qo<lo;++Qo)Ao.push(new Si(Vt[Qo],xe(Qo),ve));return Ao}var Pt=le.from,wt=le.to,Vt=le.text,Kn=dr(re,Pt.line),on=dr(re,wt.line),Cr=tn(Vt),vr=xe(Vt.length-1),yi=wt.line-Pt.line;if(le.full)re.insert(0,dt(0,Vt.length)),re.remove(Vt.length,re.size-Vt.length);else if(is(re,le)){var xi=dt(0,Vt.length-1);Ke(on,on.text,vr),yi&&re.remove(Pt.line,yi),xi.length&&re.insert(Pt.line,xi)}else if(Kn==on)if(Vt.length==1)Ke(Kn,Kn.text.slice(0,Pt.ch)+Cr+Kn.text.slice(wt.ch),vr);else{var Li=dt(1,Vt.length-1);Li.push(new Si(Cr+Kn.text.slice(wt.ch),vr,ve)),Ke(Kn,Kn.text.slice(0,Pt.ch)+Vt[0],xe(0)),re.insert(Pt.line+1,Li)}else if(Vt.length==1)Ke(Kn,Kn.text.slice(0,Pt.ch)+Vt[0]+on.text.slice(wt.ch),xe(0)),re.remove(Pt.line+1,yi);else{Ke(Kn,Kn.text.slice(0,Pt.ch)+Vt[0],xe(0)),Ke(on,Cr+on.text.slice(wt.ch),vr);var Ji=dt(1,Vt.length-1);yi>1&&re.remove(Pt.line+1,yi-1),re.insert(Pt.line+1,Ji)}to(re,"change",re,le)}function Yo(re,le,ye){function ve(xe,Ke,dt){if(xe.linked)for(var Pt=0;Pt<xe.linked.length;++Pt){var wt=xe.linked[Pt];if(wt.doc!=Ke){var Vt=dt&&wt.sharedHist;ye&&!Vt||(le(wt.doc,Vt),ve(wt.doc,xe,Vt))}}}ve(re,null,!0)}function Ea(re,le){if(le.cm)throw new Error("This document is already in use.");re.doc=le,le.cm=re,Eo(re),xo(re),ds(re),re.options.lineWrapping||si(re),re.options.mode=le.modeOption,ua(re)}function ds(re){(re.doc.direction=="rtl"?Tt:Ye)(re.display.lineDiv,"CodeMirror-rtl")}function al(re){Na(re,function(){ds(re),ua(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 Ul(re,le){var ye={from:Ln(le.from),to:Qa(le),text:oi(re,le.from,le.to)};return _u(re,ye,le.from.line,le.to.line+1),Yo(re,function(ve){return _u(ve,ye,le.from.line,le.to.line+1)},!0),ye}function Lr(re){for(;re.length;){var le=tn(re);if(le.ranges)re.pop();else break}}function hl(re,le){if(le)return Lr(re.done),tn(re.done);if(re.done.length&&!tn(re.done).ranges)return tn(re.done);if(re.done.length>1&&!re.done[re.done.length-2].ranges)return re.done.pop(),tn(re.done)}function Ql(re,le,ye,ve){var xe=re.history;xe.undone.length=0;var Ke=+new Date,dt,Pt;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=hl(xe,xe.lastOp==ve)))Pt=tn(dt.changes),Nn(le.from,le.to)==0&&Nn(le.from,Pt.to)==0?Pt.to=Qa(le):dt.changes.push(Ul(re,le));else{var wt=tn(xe.done);for((!wt||!wt.ranges)&&Jl(re.sel,xe.done),dt={changes:[Ul(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,Pt||nn(re,"historyAdded")}function Br(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 xl(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||Br(re,Ke,tn(xe.done),le))?xe.done[xe.done.length-1]=le:Jl(le,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=Ke,xe.lastSelOp=ye,ve&&ve.clearRedo!==!1&&Lr(xe.undone)}function Jl(re,le){var ye=tn(le);ye&&ye.ranges&&ye.equals(re)||le.push(re)}function _u(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 el(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 ms(re,le){var ye=le["spans_"+re.id];if(!ye)return null;for(var ve=[],xe=0;xe<le.text.length;++xe)ve.push(el(ye[xe]));return ve}function ql(re,le){var ye=ms(re,le),ve=zo(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 Pt=0;Pt<dt.length;++Pt){for(var wt=dt[Pt],Vt=0;Vt<Ke.length;++Vt)if(Ke[Vt].marker==wt.marker)continue e;Ke.push(wt)}else dt&&(ye[xe]=dt)}return ye}function fl(re,le,ye){for(var ve=[],xe=0;xe<re.length;++xe){var Ke=re[xe];if(Ke.ranges){ve.push(ye?so.prototype.deepCopy.call(Ke):Ke);continue}var dt=Ke.changes,Pt=[];ve.push({changes:Pt});for(var wt=0;wt<dt.length;++wt){var Vt=dt[wt],Kn=void 0;if(Pt.push({from:Vt.from,to:Vt.to,text:Vt.text}),le)for(var on in Vt)(Kn=on.match(/^spans_(\d+)$/))&&ct(le,Number(Kn[1]))>-1&&(tn(Pt)[on]=Vt[on],delete Vt[on])}}return ve}function Qu(re,le,ye,ve){if(ve){var xe=re.anchor;if(ye){var Ke=Nn(le,xe)<0;Ke!=Nn(ye,xe)<0?(xe=le,le=ye):Ke!=Nn(le,ye)<0&&(le=ye)}return new To(xe,le)}else return new To(ye||le,le)}function uc(re,le,ye,ve,xe){xe==null&&(xe=re.cm&&(re.cm.display.shift||re.extend)),ge(re,new so([Qu(re.sel.primary(),le,ye,xe)],0),ve)}function cc(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 wl(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 Ju(re,le,ye,ve){ge(re,Xa(le,ye),ve)}function zd(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 To(jn(re,xe[Ke].anchor),jn(re,xe[Ke].head))},origin:ye&&ye.origin};return nn(re,"beforeSelectionChange",re,ve),re.cm&&nn(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=tn(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),xl(re,re.sel,re.cm?re.cm.curOp.id:NaN,ye)}function et(re,le,ye){(cn(re,"beforeSelectionChange")||re.cm&&cn(re.cm,"beforeSelectionChange"))&&(le=zd(re,le,ye));var ve=ye&&ye.bias||(Nn(le.primary().head,re.sel.primary().head)<0?-1:1);rn(re,$r(re,le,ve,!0)),!(ye&&ye.scroll===!1)&&re.cm&&Yl(re.cm)}function rn(re,le){le.equals(re.sel)||(re.sel=le,re.cm&&(re.cm.curOp.updateInput=1,re.cm.curOp.selectionChanged=!0,Gn(re.cm)),to(re,"cursorActivity",re))}function Sr(re){rn(re,$r(re,re.sel,null,!1))}function $r(re,le,ye,ve){for(var xe,Ke=0;Ke<le.ranges.length;Ke++){var dt=le.ranges[Ke],Pt=le.ranges.length==re.sel.ranges.length&&re.sel.ranges[Ke],wt=Lo(re,dt.anchor,Pt&&Pt.anchor,ye,ve),Vt=Lo(re,dt.head,Pt&&Pt.head,ye,ve);(xe||wt!=dt.anchor||Vt!=dt.head)&&(xe||(xe=le.ranges.slice(0,Ke)),xe[Ke]=new To(wt,Vt))}return xe?Bo(re.cm,xe,le.primIndex):le}function Ni(re,le,ye,ve,xe){var Ke=dr(re,le.line);if(Ke.markedSpans)for(var dt=0;dt<Ke.markedSpans.length;++dt){var Pt=Ke.markedSpans[dt],wt=Pt.marker,Vt="selectLeft"in wt?!wt.selectLeft:wt.inclusiveLeft,Kn="selectRight"in wt?!wt.selectRight:wt.inclusiveRight;if((Pt.from==null||(Vt?Pt.from<=le.ch:Pt.from<le.ch))&&(Pt.to==null||(Kn?Pt.to>=le.ch:Pt.to>le.ch))){if(xe&&(nn(wt,"beforeCursorEnter"),wt.explicitlyCleared))if(Ke.markedSpans){--dt;continue}else break;if(!wt.atomic)continue;if(ye){var on=wt.find(ve<0?1:-1),Cr=void 0;if((ve<0?Kn:Vt)&&(on=Xo(re,on,-ve,on&&on.line==le.line?Ke:null)),on&&on.line==le.line&&(Cr=Nn(on,ye))&&(ve<0?Cr<0:Cr>0))return Ni(re,on,le,ve,xe)}var vr=wt.find(ve<0?-1:1);return(ve<0?Vt:Kn)&&(vr=Xo(re,vr,ve,vr.line==le.line?Ke:null)),vr?Ni(re,vr,le,ve,xe):null}}return le}function Lo(re,le,ye,ve,xe){var Ke=ve||1,dt=Ni(re,le,ye,Ke,xe)||!xe&&Ni(re,le,ye,Ke,!0)||Ni(re,le,ye,-Ke,xe)||!xe&&Ni(re,le,ye,-Ke,!0);return dt||(re.cantEdit=!0,Yt(re.first,0))}function Xo(re,le,ye,ve){return ye<0&&le.ch==0?le.line>re.first?jn(re,Yt(le.line-1)):null:ye>0&&le.ch==(ve||dr(re,le.line)).text.length?le.line<re.first+re.size-1?Yt(le.line+1,0):null:new Yt(le.line,le.ch+ye)}function ni(re){re.setSelection(Yt(re.firstLine(),0),Yt(re.lastLine()),kt)}function Qi(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,Pt){xe&&(ve.from=jn(re,xe)),Ke&&(ve.to=jn(re,Ke)),dt&&(ve.text=dt),Pt!==void 0&&(ve.origin=Pt)}),nn(re,"beforeChange",re,ve),re.cm&&nn(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 ta(re,le,ye){if(re.cm){if(!re.cm.curOp)return js(re.cm,ta)(re,le,ye);if(re.cm.state.suppressEdits)return}if(!((cn(re,"beforeChange")||re.cm&&cn(re.cm,"beforeChange"))&&(le=Qi(re,le,!0),!le))){var ve=io&&!ye&&mr(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]==""&&Nn(le.from,le.to)==0)){var ye=ka(re,le);Ql(re,le,ye,re.cm?re.cm.curOp.id:NaN),xu(re,le,ye,zo(re,le));var ve=[];Yo(re,function(xe,Ke){!Ke&&ct(ve,xe.history)==-1&&(Mc(xe.history,le),ve.push(xe.history)),xu(xe,le,null,zo(xe,le))})}}function os(re,le,ye){var ve=re.cm&&re.cm.state.suppressEdits;if(!(ve&&!ye)){for(var xe=re.history,Ke,dt=re.sel,Pt=le=="undo"?xe.done:xe.undone,wt=le=="undo"?xe.undone:xe.done,Vt=0;Vt<Pt.length&&(Ke=Pt[Vt],!(ye?Ke.ranges&&!Ke.equals(re.sel):!Ke.ranges));Vt++);if(Vt!=Pt.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(Ke=Pt.pop(),Ke.ranges){if(Jl(Ke,wt),ye&&!Ke.equals(re.sel)){ge(re,Ke,{clearRedo:!1});return}dt=Ke}else if(ve){Pt.push(Ke);return}else break;var Kn=[];Jl(dt,wt),wt.push({changes:Kn,generation:xe.generation}),xe.generation=Ke.generation||++xe.maxGeneration;for(var on=cn(re,"beforeChange")||re.cm&&cn(re.cm,"beforeChange"),Cr=function(xi){var Li=Ke.changes[xi];if(Li.origin=le,on&&!Qi(re,Li,!1))return Pt.length=0,{};Kn.push(Ul(re,Li));var Ji=xi?ka(re,Li):tn(Pt);xu(re,Li,Ji,ql(re,Li)),!xi&&re.cm&&re.cm.scrollIntoView({from:Li.from,to:Qa(Li)});var yo=[];Yo(re,function(lo,Ao){!Ao&&ct(yo,lo.history)==-1&&(Mc(lo.history,Li),yo.push(lo.history)),xu(lo,Li,null,ql(lo,Li))})},vr=Ke.changes.length-1;vr>=0;--vr){var yi=Cr(vr);if(yi)return yi.v}}}}function Uu(re,le){if(le!=0&&(re.first+=le,re.sel=new so(zn(re.sel.ranges,function(xe){return new To(Yt(xe.anchor.line+le,xe.anchor.ch),Yt(xe.head.line+le,xe.head.ch))}),re.sel.primIndex),re.cm)){ua(re.cm,re.first,re.first-le,le);for(var ye=re.cm.display,ve=ye.viewFrom;ve<ye.viewTo;ve++)Zo(re.cm,ve,"gutter")}}function xu(re,le,ye,ve){if(re.cm&&!re.cm.curOp)return js(re.cm,xu)(re,le,ye,ve);if(le.to.line<re.first){Uu(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);Uu(re,xe),le={from:Yt(re.first,0),to:Yt(le.to.line+xe,le.to.ch),text:[tn(le.text)],origin:le.origin}}var Ke=re.lastLine();le.to.line>Ke&&(le={from:le.from,to:Yt(Ke,dr(re,Ke).text.length),text:[le.text[0]],origin:le.origin}),le.removed=oi(re,le.from,le.to),ye||(ye=ka(re,le)),re.cm?wu(re.cm,le,ve):Ko(re,le,ve),et(re,ye,kt),re.cantEdit&&Lo(re,Yt(re.firstLine(),0))&&(re.cantEdit=!1)}}function wu(re,le,ye){var ve=re.doc,xe=re.display,Ke=le.from,dt=le.to,Pt=!1,wt=Ke.line;re.options.lineWrapping||(wt=Lt(xn(dr(ve,Ke.line))),ve.iter(wt,dt.line+1,function(vr){if(vr==xe.maxLine)return Pt=!0,!0})),ve.sel.contains(le.from,le.to)>-1&&Gn(re),Ko(ve,le,ye,Wa(re)),re.options.lineWrapping||(ve.iter(wt,Ke.line+le.text.length,function(vr){var yi=Ai(vr);yi>xe.maxLineLength&&(xe.maxLine=vr,xe.maxLineLength=yi,xe.maxLineChanged=!0,Pt=!1)}),Pt&&(re.curOp.updateMaxLine=!0)),Fi(ve,Ke.line),bc(re,400);var Vt=le.text.length-(dt.line-Ke.line)-1;le.full?ua(re):Ke.line==dt.line&&le.text.length==1&&!is(re.doc,le)?Zo(re,Ke.line,"text"):ua(re,Ke.line,dt.line+1,Vt);var Kn=cn(re,"changes"),on=cn(re,"change");if(on||Kn){var Cr={from:Ke,to:dt,text:le.text,removed:le.removed,origin:le.origin};on&&to(re,"change",re,Cr),Kn&&(re.curOp.changeObjs||(re.curOp.changeObjs=[])).push(Cr)}re.display.selForContextMenu=null}function dc(re,le,ye,ve,xe){var Ke;ve||(ve=ye),Nn(ve,ye)<0&&(Ke=[ve,ye],ye=Ke[0],ve=Ke[1]),typeof le=="string"&&(le=re.splitLines(le)),ta(re,{from:ye,to:ve,text:le,origin:xe})}function Hl(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 Pt=0;Pt<Ke.ranges.length;Pt++)Hl(Ke.ranges[Pt].anchor,le,ye,ve),Hl(Ke.ranges[Pt].head,le,ye,ve);continue}for(var wt=0;wt<Ke.changes.length;++wt){var Vt=Ke.changes[wt];if(ye<Vt.from.line)Vt.from=Yt(Vt.from.line+ve,Vt.from.ch),Vt.to=Yt(Vt.to.line+ve,Vt.to.ch);else if(le<=Vt.to.line){dt=!1;break}}dt||(re.splice(0,xe+1),xe=0)}}function Mc(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 fu(re,le,ye,ve){var xe=le,Ke=le;return typeof le=="number"?Ke=dr(re,kr(re,le)):xe=Lt(le),xe==null?null:(ve(Ke,xe)&&re.cm&&Zo(re.cm,xe,ye),Ke)}function hh(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}hh.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,Bi(xe),to(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 Cs(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}Cs.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 hh))){var Pt=[];this.collapse(Pt),this.children=[new hh(Pt)],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,Pt=dt;Pt<xe.lines.length;){var wt=new hh(xe.lines.slice(Pt,Pt+=25));xe.height-=wt.height,this.children.splice(++ve,0,wt),wt.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 Cs(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 Cs(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 ud=function(re,le,ye){if(ye)for(var ve in ye)ye.hasOwnProperty(ve)&&(this[ve]=ye[ve]);this.doc=re,this.node=le};ud.prototype.clear=function(){var re=this.doc.cm,le=this.line.widgets,ye=this.line,ve=Lt(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=pa(this);Pr(ye,Math.max(0,ye.height-Ke)),re&&(Na(re,function(){Kp(re,ye,-Ke),Zo(re,ve,"widget")}),to(re,"lineWidgetCleared",re,this,ve))}},ud.prototype.changed=function(){var re=this,le=this.height,ye=this.doc.cm,ve=this.line;this.height=null;var xe=pa(this)-le;xe&&(an(this.doc,ve)||Pr(ve,ve.height+xe),ye&&Na(ye,function(){ye.curOp.forceUpdate=!0,Kp(ye,ve,xe),to(ye,"lineWidgetChanged",ye,re,Lt(ve))}))},Et(ud);function Kp(re,le,ye){Vr(le)<(re.curOp&&re.curOp.scrollTop||re.doc.scrollTop)&&Xc(re,ye)}function Gd(re,le,ye,ve){var xe=new ud(re,ye,ve),Ke=re.cm;return Ke&&xe.noHScroll&&(Ke.display.alignWidgets=!0),fu(re,le,"widget",function(dt){var Pt=dt.widgets||(dt.widgets=[]);if(xe.insertAt==null?Pt.push(xe):Pt.splice(Math.min(Pt.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=dt,Ke&&!an(re,dt)){var wt=Vr(dt)<re.scrollTop;Pr(dt,dt.height+pa(xe)),wt&&Xc(Ke,xe.height),Ke.curOp.forceUpdate=!0}return!0}),Ke&&to(Ke,"lineWidgetAdded",Ke,xe,typeof le=="number"?le:Lt(le)),xe}var Yp=0,kn=function(re,le){this.lines=[],this.type=le,this.doc=re,this.id=++Yp};kn.prototype.clear=function(){if(!this.explicitlyCleared){var re=this.doc.cm,le=re&&!re.curOp;if(le&&kl(re),cn(this,"clear")){var ye=this.find();ye&&to(this,"clear",ye.from,ye.to)}for(var ve=null,xe=null,Ke=0;Ke<this.lines.length;++Ke){var dt=this.lines[Ke],Pt=Vi(dt.markedSpans,this);re&&!this.collapsed?Zo(re,Lt(dt),"text"):re&&(Pt.to!=null&&(xe=Lt(dt)),Pt.from!=null&&(ve=Lt(dt))),dt.markedSpans=Oi(dt.markedSpans,Pt),Pt.from==null&&this.collapsed&&!an(this.doc,dt)&&re&&Pr(dt,rs(re.display))}if(re&&this.collapsed&&!re.options.lineWrapping)for(var wt=0;wt<this.lines.length;++wt){var Vt=xn(this.lines[wt]),Kn=Ai(Vt);Kn>re.display.maxLineLength&&(re.display.maxLine=Vt,re.display.maxLineLength=Kn,re.display.maxLineChanged=!0)}ve!=null&&re&&this.collapsed&&ua(re,ve,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,re&&Sr(re.doc)),re&&to(re,"markerCleared",re,this,ve,xe),le&&hu(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=Vi(Ke.markedSpans,this);if(dt.from!=null&&(ye=Yt(le?Ke:Lt(Ke),dt.from),re==-1))return ye;if(dt.to!=null&&(ve=Yt(le?Ke:Lt(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||Na(ve,function(){var xe=le.line,Ke=Lt(le.line),dt=es(ve,Ke);if(dt&&(oc(dt),ve.curOp.selectionChanged=ve.curOp.forceUpdate=!0),ve.curOp.updateMaxLine=!0,!an(ye.doc,xe)&&ye.height!=null){var Pt=ye.height;ye.height=null;var wt=pa(ye)-Pt;wt&&Pr(xe,xe.height+wt)}to(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)}},Et(kn);function xd(re,le,ye,ve,xe){if(ve&&ve.shared)return Xp(re,le,ye,ve,xe);if(re.cm&&!re.cm.curOp)return js(re.cm,xd)(re,le,ye,ve,xe);var Ke=new kn(re,xe),dt=Nn(le,ye);if(ve&&vn(ve,Ke,!1),dt>0||dt==0&&Ke.clearWhenEmpty!==!1)return Ke;if(Ke.replacedWith&&(Ke.collapsed=!0,Ke.widgetNode=ht("span",[Ke.replacedWith],"CodeMirror-widget"),ve.handleMouseEvents||Ke.widgetNode.setAttribute("cm-ignore-events","true"),ve.insertLeft&&(Ke.widgetNode.insertLeft=!0)),Ke.collapsed){if(yn(re,le.line,le,ye,Ke)||le.line!=ye.line&&yn(re,ye.line,le,ye,Ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");lr()}Ke.addToHistory&&Ql(re,{from:le,to:ye,origin:"markText"},re.sel,NaN);var Pt=le.line,wt=re.cm,Vt;if(re.iter(Pt,ye.line+1,function(on){wt&&Ke.collapsed&&!wt.options.lineWrapping&&xn(on)==wt.display.maxLine&&(Vt=!0),Ke.collapsed&&Pt!=le.line&&Pr(on,0),fo(on,new vi(Ke,Pt==le.line?le.ch:null,Pt==ye.line?ye.ch:null)),++Pt}),Ke.collapsed&&re.iter(le.line,ye.line+1,function(on){an(re,on)&&Pr(on,0)}),Ke.clearOnEnter&&Ht(Ke,"beforeCursorEnter",function(){return Ke.clear()}),Ke.readOnly&&(Ui(),(re.history.done.length||re.history.undone.length)&&re.clearHistory()),Ke.collapsed&&(Ke.id=++Yp,Ke.atomic=!0),wt){if(Vt&&(wt.curOp.updateMaxLine=!0),Ke.collapsed)ua(wt,le.line,ye.line+1);else if(Ke.className||Ke.startStyle||Ke.endStyle||Ke.css||Ke.attributes||Ke.title)for(var Kn=le.line;Kn<=ye.line;Kn++)Zo(wt,Kn,"text");Ke.atomic&&Sr(wt.doc),to(wt,"markerAdded",wt,Ke)}return Ke}var Jc=function(re,le){this.markers=re,this.primary=le;for(var ye=0;ye<re.length;++ye)re[ye].parent=this};Jc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var re=0;re<this.markers.length;++re)this.markers[re].clear();to(this,"clear")}},Jc.prototype.find=function(re,le){return this.primary.find(re,le)},Et(Jc);function Xp(re,le,ye,ve,xe){ve=vn(ve),ve.shared=!1;var Ke=[xd(re,le,ye,ve,xe)],dt=Ke[0],Pt=ve.widgetNode;return Yo(re,function(wt){Pt&&(ve.widgetNode=Pt.cloneNode(!0)),Ke.push(xd(wt,jn(wt,le),jn(wt,ye),ve,xe));for(var Vt=0;Vt<wt.linked.length;++Vt)if(wt.linked[Vt].isParent)return;dt=tn(Ke)}),new Jc(Ke,dt)}function Qp(re){return re.findMarks(Yt(re.first,0),re.clipPos(Yt(re.lastLine())),function(le){return le.parent})}function Jp(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(Nn(Ke,dt)){var Pt=xd(re,Ke,dt,ve.primary,ve.primary.type);ve.markers.push(Pt),Pt.parent=ve}}}function qp(re){for(var le=function(ve){var xe=re[ve],Ke=[xe.primary.doc];Yo(xe.primary.doc,function(wt){return Ke.push(wt)});for(var dt=0;dt<xe.markers.length;dt++){var Pt=xe.markers[dt];ct(Ke,Pt.doc)==-1&&(Pt.parent=null,xe.markers.splice(dt--,1))}},ye=0;ye<re.length;ye++)le(ye)}var Vh=0,zl=function(re,le,ye,ve,xe){if(!(this instanceof zl))return new zl(re,le,ye,ve,xe);ye==null&&(ye=0),Cs.call(this,[new hh([new Si("",null)])]),this.first=ye,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ye;var Ke=Yt(ye,0);this.sel=Xa(Ke),this.history=new El(null),this.id=++Vh,this.modeOption=le,this.lineSep=ve,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof re=="string"&&(re=this.splitLines(re)),Ko(this,{from:Ke,to:Ke,text:re}),ge(this,Xa(Ke),kt)};zl.prototype=Be(Cs.prototype,{constructor:zl,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=bi(this,this.first,this.first+this.size);return re===!1?le:le.join(re||this.lineSeparator())},setValue:qs(function(re){var le=Yt(this.first,0),ye=this.first+this.size-1;ta(this,{from:le,to:Yt(ye,dr(this,ye).text.length),text:this.splitLines(re),origin:"setValue",full:!0},!0),this.cm&&Xl(this.cm,0,0),ge(this,Xa(le),kt)}),replaceRange:function(re,le,ye,ve){le=jn(this,le),ye=ye?jn(this,ye):le,dc(this,re,le,ye,ve)},getRange:function(re,le,ye){var ve=oi(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(Nr(this,re))return dr(this,re)},getLineNumber:function(re){return Lt(re)},getLineHandleVisualStart:function(re){return typeof re=="number"&&(re=dr(this,re)),xn(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:qs(function(re,le,ye){Ju(this,jn(this,typeof re=="number"?Yt(re,le||0):re),null,ye)}),setSelection:qs(function(re,le,ye){Ju(this,jn(this,re),jn(this,le||re),ye)}),extendSelection:qs(function(re,le,ye){uc(this,jn(this,re),le&&jn(this,le),ye)}),extendSelections:qs(function(re,le){cc(this,jr(this,re),le)}),extendSelectionsBy:qs(function(re,le){var ye=zn(this.sel.ranges,re);cc(this,jr(this,ye),le)}),setSelections:qs(function(re,le,ye){if(re.length){for(var ve=[],xe=0;xe<re.length;xe++)ve[xe]=new To(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:qs(function(re,le,ye){var ve=this.sel.ranges.slice(0);ve.push(new To(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=oi(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=oi(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:qs(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 Pt=le&&le!="end"&&Ua(this,ve,le),wt=ve.length-1;wt>=0;wt--)ta(this,ve[wt]);Pt?ce(this,Pt):this.cm&&Yl(this.cm)}),undo:qs(function(){os(this,"undo")}),redo:qs(function(){os(this,"redo")}),undoSelection:qs(function(){os(this,"undo",!0)}),redoSelection:qs(function(){os(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),Yo(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:fl(this.history.done),undone:fl(this.history.undone)}},setHistory:function(re){var le=this.history=new El(this.history.maxGeneration);le.done=fl(re.done.slice(0),null,!0),le.undone=fl(re.undone.slice(0),null,!0)},setGutterMarker:qs(function(re,le,ye){return fu(this,re,"gutter",function(ve){var xe=ve.gutterMarkers||(ve.gutterMarkers={});return xe[le]=ye,!ye&&Fe(xe)&&(ve.gutterMarkers=null),!0})}),clearGutter:qs(function(re){var le=this;this.iter(function(ye){ye.gutterMarkers&&ye.gutterMarkers[re]&&fu(le,ye,"gutter",function(){return ye.gutterMarkers[re]=null,Fe(ye.gutterMarkers)&&(ye.gutterMarkers=null),!0})})}),lineInfo:function(re){var le;if(typeof re=="number"){if(!Nr(this,re)||(le=re,re=dr(this,re),!re))return null}else if(le=Lt(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:qs(function(re,le,ye){return fu(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:qs(function(re,le,ye){return fu(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 Pt=dt.index+dt[0].length;ve[xe]=Ke.slice(0,dt.index)+(!dt.index||Pt==Ke.length?"":" ")+Ke.slice(Pt)||null}else return!1;return!0})}),addLineWidget:qs(function(re,le,ye){return Gd(this,re,le,ye)}),removeLineWidget:function(re){re.clear()},markText:function(re,le,ye){return xd(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),xd(this,re,re,ye,"bookmark")},findMarksAt:function(re){re=jn(this,re);var le=[],ye=dr(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 Pt=0;Pt<dt.length;Pt++){var wt=dt[Pt];!(wt.to!=null&&xe==re.line&&re.ch>=wt.to||wt.from==null&&xe!=re.line||wt.from!=null&&xe==le.line&&wt.from>=le.ch)&&(!ye||ye(wt.marker))&&ve.push(wt.marker.parent||wt.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,Yt(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 zl(bi(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 zl(bi(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}],Jp(ve,Qp(this)),ve},unlinkDoc:function(re){if(re instanceof Fa&&(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),qp(Qp(this));break}}if(re.history==this.history){var ve=[re.id];Yo(re,function(xe){return ve.push(xe.id)},!0),re.history=new El(null),re.history.done=fl(this.history.done,ve),re.history.undone=fl(this.history.undone,ve)}},iterLinkedDocs:function(re){Yo(this,re)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(re){return this.lineSep?re.split(this.lineSep):ri(re)},lineSeparator:function(){return this.lineSep||`
`},setDirection:qs(function(re){re!="rtl"&&(re="ltr"),re!=this.direction&&(this.direction=re,this.iter(function(le){return le.order=null}),this.cm&&al(this.cm))})}),zl.prototype.eachLine=zl.prototype.iter;var jd=0;function tp(re){var le=this;if(Pf(le),!(fn(le,re)||Ga(le.display,re))){Jn(re),je&&(jd=+new Date);var ye=bs(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,Pt=function(){++dt==xe&&js(le,function(){ye=jn(le.doc,ye);var vr={from:ye,to:ye,text:le.doc.splitLines(Ke.filter(function(yi){return yi!=null}).join(le.doc.lineSeparator())),origin:"paste"};ta(le.doc,vr),ce(le.doc,Xa(jn(le.doc,ye),jn(le.doc,Qa(vr))))})()},wt=function(vr,yi){if(le.options.allowDropFileTypes&&ct(le.options.allowDropFileTypes,vr.type)==-1){Pt();return}var xi=new FileReader;xi.onerror=function(){return Pt()},xi.onload=function(){var Li=xi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Li)){Pt();return}Ke[yi]=Li,Pt()},xi.readAsText(vr)},Vt=0;Vt<ve.length;Vt++)wt(ve[Vt],Vt);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 Kn=re.dataTransfer.getData("Text");if(Kn){var on;if(le.state.draggingText&&!le.state.draggingText.copy&&(on=le.listSelections()),et(le.doc,Xa(ye,ye)),on)for(var Cr=0;Cr<on.length;++Cr)dc(le.doc,"",on[Cr].anchor,on[Cr].head,"drag");le.replaceSelection(Kn,"around","paste"),le.display.input.focus()}}catch(vr){}}}}function $p(re,le){if(je&&(!re.state.draggingText||+new Date-jd<100)){wr(le);return}if(!(fn(re,le)||Ga(re.display,le))&&(le.dataTransfer.setData("Text",re.getSelection()),le.dataTransfer.effectAllowed="copyMove",le.dataTransfer.setDragImage&&!mt)){var ye=at("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 eg(re,le){var ye=bs(re,le);if(ye){var ve=document.createDocumentFragment();va(re,ye,ve),re.display.dragCursor||(re.display.dragCursor=at("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),re.display.lineSpace.insertBefore(re.display.dragCursor,re.display.cursorDiv)),$e(re.display.dragCursor,ve)}}function Pf(re){re.display.dragCursor&&(re.display.lineSpace.removeChild(re.display.dragCursor),re.display.dragCursor=null)}function np(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 rp=!1;function qu(){rp||(fh(),rp=!0)}function fh(){var re;Ht(window,"resize",function(){re==null&&(re=setTimeout(function(){re=null,np(ip)},100))}),Ht(window,"blur",function(){return np(sc)})}function ip(re){var le=re.display;le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.scrollbarsClipped=!1,re.setSize()}for(var qc={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"},Wh=0;Wh<10;Wh++)qc[Wh+48]=qc[Wh+96]=String(Wh);for(var Tf=65;Tf<=90;Tf++)qc[Tf]=String.fromCharCode(Tf);for(var Zh=1;Zh<=12;Zh++)qc[Zh+111]=qc[Zh+63235]="F"+Zh;var $l={};$l.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"},$l.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"},$l.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"},$l.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"]},$l.default=he?$l.macDefault:$l.pcDefault;function op(re){var le=re.split(/-(?!$)/);re=le[le.length-1];for(var ye,ve,xe,Ke,dt=0;dt<le.length-1;dt++){var Pt=le[dt];if(/^(cmd|meta|m)$/i.test(Pt))Ke=!0;else if(/^a(lt)?$/i.test(Pt))ye=!0;else if(/^(c|ctrl|control)$/i.test(Pt))ve=!0;else if(/^s(hift)?$/i.test(Pt))xe=!0;else throw new Error("Unrecognized modifier name: "+Pt)}return ye&&(re="Alt-"+re),ve&&(re="Ctrl-"+re),Ke&&(re="Cmd-"+re),xe&&(re="Shift-"+re),re}function Af(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=zn(ye.split(" "),op),Ke=0;Ke<xe.length;Ke++){var dt=void 0,Pt=void 0;Ke==xe.length-1?(Pt=xe.join(" "),dt=ve):(Pt=xe.slice(0,Ke+1).join(" "),dt="...");var wt=le[Pt];if(!wt)le[Pt]=dt;else if(wt!=dt)throw new Error("Inconsistent bindings for "+Pt)}delete re[ye]}for(var Vt in le)re[Vt]=le[Vt];return re}function Pu(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 Pu(re,le.fallthrough,ye,ve);for(var Ke=0;Ke<le.fallthrough.length;Ke++){var dt=Pu(re,le.fallthrough[Ke],ye,ve);if(dt)return dt}}}function Vd(re){var le=typeof re=="string"?re:qc[re.keyCode];return le=="Ctrl"||le=="Alt"||le=="Shift"||le=="Mod"}function Nf(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 tg(re,le){if(Ue&&re.keyCode==34&&re.char)return!1;var ye=qc[re.keyCode];return ye==null||re.altGraphKey?!1:(re.keyCode==3&&re.code&&(ye=re.code),Nf(ye,re,le))}function wd(re){return typeof re=="string"?$l[re]:re}function Hu(re,le){for(var ye=re.doc.sel.ranges,ve=[],xe=0;xe<ye.length;xe++){for(var Ke=le(ye[xe]);ve.length&&Nn(Ke.from,tn(ve).to)<=0;){var dt=ve.pop();if(Nn(dt.from,Ke.from)<0){Ke.from=dt.from;break}}ve.push(Ke)}Na(re,function(){for(var Pt=ve.length-1;Pt>=0;Pt--)dc(re.doc,"",ve[Pt].from,ve[Pt].to,"+delete");Yl(re)})}function ap(re,le,ye){var ve=On(re.text,le+ye,ye);return ve<0||ve>re.text.length?null:ve}function Ps(re,le,ye){var ve=ap(re,le.ch,ye);return ve==null?null:new Yt(le.line,ve,ye<0?"after":"before")}function Kh(re,le,ye,ve,xe){if(re){le.doc.direction=="rtl"&&(xe=-xe);var Ke=Mn(ye,le.doc.direction);if(Ke){var dt=xe<0?tn(Ke):Ke[0],Pt=xe<0==(dt.level==1),wt=Pt?"after":"before",Vt;if(dt.level>0||le.doc.direction=="rtl"){var Kn=Pl(le,ye);Vt=xe<0?ye.text.length-1:0;var on=ll(le,Kn,Vt).top;Vt=or(function(Cr){return ll(le,Kn,Cr).top==on},xe<0==(dt.level==1)?dt.from:dt.to-1,Vt),wt=="before"&&(Vt=ap(ye,Vt,1))}else Vt=xe<0?dt.to:dt.from;return new Yt(ve,Vt,wt)}}return new Yt(ve,xe<0?ye.text.length:0,xe<0?"before":"after")}function Lf(re,le,ye,ve){var xe=Mn(le,re.doc.direction);if(!xe)return Ps(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=Qt(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 Ps(le,ye,ve);var Pt=function(Ji,yo){return ap(le,Ji instanceof Yt?Ji.ch:Ji,yo)},wt,Vt=function(Ji){return re.options.lineWrapping?(wt=wt||Pl(re,le),ps(re,le,wt,Ji)):{begin:0,end:le.text.length}},Kn=Vt(ye.sticky=="before"?Pt(ye,-1):ye.ch);if(re.doc.direction=="rtl"||dt.level==1){var on=dt.level==1==ve<0,Cr=Pt(ye,on?1:-1);if(Cr!=null&&(on?Cr<=dt.to&&Cr<=Kn.end:Cr>=dt.from&&Cr>=Kn.begin)){var vr=on?"before":"after";return new Yt(ye.line,Cr,vr)}}var yi=function(Ji,yo,lo){for(var Ao=function(Ts,Cl){return Cl?new Yt(ye.line,Pt(Ts,1),"before"):new Yt(ye.line,Ts,"after")};Ji>=0&&Ji<xe.length;Ji+=yo){var Qo=xe[Ji],uo=yo>0==(Qo.level!=1),ya=uo?lo.begin:Pt(lo.end,-1);if(Qo.from<=ya&&ya<Qo.to||(ya=uo?Qo.from:Pt(Qo.to,-1),lo.begin<=ya&&ya<lo.end))return Ao(ya,uo)}},xi=yi(Ke+ve,ve,Kn);if(xi)return xi;var Li=ve>0?Kn.end:Pt(Kn.begin,-1);return Li!=null&&!(ve>0&&Li==le.text.length)&&(xi=yi(ve>0?0:xe.length-1,ve,Vt(Li)),xi)?xi:null}var Cd={selectAll:ni,singleSelection:function(re){return re.setSelection(re.getCursor("anchor"),re.getCursor("head"),kt)},killLine:function(re){return Hu(re,function(le){if(le.empty()){var ye=dr(re.doc,le.head.line).text.length;return le.head.ch==ye&&le.head.line<re.lastLine()?{from:le.head,to:Yt(le.head.line+1,0)}:{from:le.head,to:Yt(le.head.line,ye)}}else return{from:le.from(),to:le.to()}})},deleteLine:function(re){return Hu(re,function(le){return{from:Yt(le.from().line,0),to:jn(re.doc,Yt(le.to().line+1,0))}})},delLineLeft:function(re){return Hu(re,function(le){return{from:Yt(le.from().line,0),to:le.from()}})},delWrappedLineLeft:function(re){return Hu(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 Hu(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(Yt(re.firstLine(),0))},goDocEnd:function(re){return re.extendSelection(Yt(re.lastLine()))},goLineStart:function(re){return re.extendSelectionsBy(function(le){return ph(re,le.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(re){return re.extendSelectionsBy(function(le){return sp(re,le.head)},{origin:"+move",bias:1})},goLineEnd:function(re){return re.extendSelectionsBy(function(le){return Pd(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")},gn)},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")},gn)},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/)?sp(re,le.head):ve},gn)},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=bt(re.getLine(Ke.line),Ke.ch,ve);le.push(Rt(ve-dt%ve))}re.replaceSelections(le)},defaultTab:function(re){re.somethingSelected()?re.indentSelection("add"):re.execCommand("insertTab")},transposeChars:function(re){return Na(re,function(){for(var le=re.listSelections(),ye=[],ve=0;ve<le.length;ve++)if(le[ve].empty()){var xe=le[ve].head,Ke=dr(re.doc,xe.line).text;if(Ke){if(xe.ch==Ke.length&&(xe=new Yt(xe.line,xe.ch-1)),xe.ch>0)xe=new Yt(xe.line,xe.ch+1),re.replaceRange(Ke.charAt(xe.ch-1)+Ke.charAt(xe.ch-2),Yt(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>re.doc.first){var dt=dr(re.doc,xe.line-1).text;dt&&(xe=new Yt(xe.line,1),re.replaceRange(Ke.charAt(0)+re.doc.lineSeparator()+dt.charAt(dt.length-1),Yt(xe.line-1,dt.length-1),xe,"+transpose"))}}ye.push(new To(xe,xe))}re.setSelections(ye)})},newlineAndIndent:function(re){return Na(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);Yl(re)})},openLine:function(re){return re.replaceSelection(`
`,"start")},toggleOverwrite:function(re){return re.toggleOverwrite()}};function ph(re,le){var ye=dr(re.doc,le),ve=xn(ye);return ve!=ye&&(le=Lt(ve)),Kh(!0,re,ve,le,1)}function Pd(re,le){var ye=dr(re.doc,le),ve=Hn(ye);return ve!=ye&&(le=Lt(ve)),Kh(!0,re,ye,le,-1)}function sp(re,le){var ye=ph(re,le.line),ve=dr(re.doc,ye.line),xe=Mn(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 Yt(ye.line,dt?0:Ke,ye.sticky)}return ye}function gh(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)!=dn}finally{re.display.shift=ve,re.state.suppressEdits=!1}return xe}function lp(re,le,ye){for(var ve=0;ve<re.state.keyMaps.length;ve++){var xe=Pu(le,re.state.keyMaps[ve],ye,re);if(xe)return xe}return re.options.extraKeys&&Pu(le,re.options.extraKeys,ye,re)||Pu(le,re.options.keyMap,ye,re)}var $c=new ft;function Wd(re,le,ye,ve){var xe=re.state.keySeq;if(xe){if(Vd(le))return"handled";if(/\'$/.test(le)?re.state.keySeq=null:$c.set(50,function(){re.state.keySeq==xe&&(re.state.keySeq=null,re.display.input.reset())}),kf(re,xe+" "+le,ye,ve))return!0}return kf(re,le,ye,ve)}function kf(re,le,ye,ve){var xe=lp(re,le,ve);return xe=="multi"&&(re.state.keySeq=le),xe=="handled"&&to(re,"keyHandled",re,le,ye),(xe=="handled"||xe=="multi")&&(Jn(ye),Ta(re)),!!xe}function If(re,le){var ye=tg(le,!0);return ye?le.shiftKey&&!re.state.keySeq?Wd(re,"Shift-"+ye,le,function(ve){return gh(re,ve,!0)})||Wd(re,ye,le,function(ve){if(typeof ve=="string"?/^go[A-Z]/.test(ve):ve.motion)return gh(re,ve)}):Wd(re,ye,le,function(ve){return gh(re,ve)}):!1}function Yh(re,le,ye){return Wd(re,"'"+ye+"'",le,function(ve){return gh(re,ve,!0)})}var Zd=null;function up(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&(le.curOp.focus=xt(),!fn(le,re))){je&&Te<11&&re.keyCode==27&&(re.returnValue=!1);var ye=re.keyCode;le.display.shift=ye==16||re.shiftKey;var ve=If(le,re);Ue&&(Zd=ve?ye:null,!ve&&ye==88&&!Mr&&(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)&&cp(le)}}function cp(re){var le=re.display.lineDiv;Tt(le,"CodeMirror-crosshair");function ye(ve){(ve.keyCode==18||!ve.altKey)&&(Ye(le,"CodeMirror-crosshair"),Xt(document,"keyup",ye),Xt(document,"mouseover",ye))}Ht(document,"keyup",ye),Ht(document,"mouseover",ye)}function dp(re){re.keyCode==16&&(this.doc.sel.shift=!1),fn(this,re)}function Ec(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&!(Ga(le.display,re)||fn(le,re)||re.ctrlKey&&!re.altKey||he&&re.metaKey)){var ye=re.keyCode,ve=re.charCode;if(Ue&&ye==Zd){Zd=null,Jn(re);return}if(!(Ue&&(!re.which||re.which<10)&&If(le,re))){var xe=String.fromCharCode(ve==null?ye:ve);xe!="\b"&&(Yh(le,re,xe)||le.display.input.onKeyPress(re))}}}var ng=400,hp=function(re,le,ye){this.time=re,this.pos=le,this.button=ye};hp.prototype.compare=function(re,le,ye){return this.time+ng>re&&Nn(le,this.pos)==0&&ye==this.button};var mh,Kd;function fp(re,le){var ye=+new Date;return Kd&&Kd.compare(ye,re,le)?(mh=Kd=null,"triple"):mh&&mh.compare(ye,re,le)?(Kd=new hp(ye,re,le),mh=null,"double"):(mh=new hp(ye,re,le),Kd=null,"single")}function Oc(re){var le=this,ye=le.display;if(!(fn(le,re)||ye.activeTouch&&ye.input.supportsTouch())){if(ye.input.ensurePolled(),ye.shift=re.shiftKey,Ga(ye,re)){Ge||(ye.scroller.draggable=!1,setTimeout(function(){return ye.scroller.draggable=!0},100));return}if(!Qh(le,re)){var ve=bs(le,re),xe=Fr(re),Ke=ve?fp(ve,xe):"single";window.focus(),xe==1&&le.state.selectingText&&le.state.selectingText(re),!(ve&&vh(le,xe,ve,Ke,re))&&(xe==1?ve?rg(le,ve,Ke,re):ei(re)==ye.scroller&&Jn(re):xe==2?(ve&&uc(le.doc,ve),setTimeout(function(){return ye.input.focus()},20)):xe==3&&(Ae?le.display.input.onContextMenu(re):Za(le)))}}}function vh(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,Wd(re,Nf(Ke,xe),xe,function(dt){if(typeof dt=="string"&&(dt=Cd[dt]),!dt)return!1;var Pt=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),Pt=dt(re,ye)!=dn}finally{re.state.suppressEdits=!1}return Pt})}function Xh(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 rg(re,le,ye,ve){je?setTimeout(Zt(La,re),0):re.curOp.focus=xt();var xe=Xh(re,ye,ve),Ke=re.doc.sel,dt;re.options.dragDrop&&Dn&&!re.isReadOnly()&&ye=="single"&&(dt=Ke.contains(le))>-1&&(Nn((dt=Ke.ranges[dt]).from(),le)<0||le.xRel>0)&&(Nn(dt.to(),le)>0||le.xRel<0)?pp(re,ve,le,xe):jg(re,ve,le,xe)}function pp(re,le,ye,ve){var xe=re.display,Ke=!1,dt=js(re,function(Vt){Ge&&(xe.scroller.draggable=!1),re.state.draggingText=!1,Xt(xe.wrapper.ownerDocument,"mouseup",dt),Xt(xe.wrapper.ownerDocument,"mousemove",Pt),Xt(xe.scroller,"dragstart",wt),Xt(xe.scroller,"drop",dt),Ke||(Jn(Vt),ve.addNew||uc(re.doc,ye,null,null,ve.extend),Ge&&!mt||je&&Te==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),Pt=function(Vt){Ke=Ke||Math.abs(le.clientX-Vt.clientX)+Math.abs(le.clientY-Vt.clientY)>=10},wt=function(){return Ke=!0};Ge&&(xe.scroller.draggable=!0),re.state.draggingText=dt,dt.copy=!ve.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),Ht(xe.wrapper.ownerDocument,"mouseup",dt),Ht(xe.wrapper.ownerDocument,"mousemove",Pt),Ht(xe.scroller,"dragstart",wt),Ht(xe.scroller,"drop",dt),Za(re),setTimeout(function(){return xe.input.focus()},20)}function gp(re,le,ye){if(ye=="char")return new To(le,le);if(ye=="word")return re.findWordAt(le);if(ye=="line")return new To(Yt(le.line,0),jn(re.doc,Yt(le.line+1,0)));var ve=ye(re,le);return new To(ve.from,ve.to)}function jg(re,le,ye,ve){var xe=re.display,Ke=re.doc;Jn(le);var dt,Pt,wt=Ke.sel,Vt=wt.ranges;if(ve.addNew&&!ve.extend?(Pt=Ke.sel.contains(ye),Pt>-1?dt=Vt[Pt]:dt=new To(ye,ye)):(dt=Ke.sel.primary(),Pt=Ke.sel.primIndex),ve.unit=="rectangle")ve.addNew||(dt=new To(ye,ye)),ye=bs(re,le,!0,!0),Pt=-1;else{var Kn=gp(re,ye,ve.unit);ve.extend?dt=Qu(dt,Kn.anchor,Kn.head,ve.extend):dt=Kn}ve.addNew?Pt==-1?(Pt=Vt.length,ge(Ke,Bo(re,Vt.concat([dt]),Pt),{scroll:!1,origin:"*mouse"})):Vt.length>1&&Vt[Pt].empty()&&ve.unit=="char"&&!ve.extend?(ge(Ke,Bo(re,Vt.slice(0,Pt).concat(Vt.slice(Pt+1)),0),{scroll:!1,origin:"*mouse"}),wt=Ke.sel):wl(Ke,Pt,dt,bn):(Pt=0,ge(Ke,new so([dt],0),bn),wt=Ke.sel);var on=ye;function Cr(lo){if(Nn(on,lo)!=0)if(on=lo,ve.unit=="rectangle"){for(var Ao=[],Qo=re.options.tabSize,uo=bt(dr(Ke,ye.line).text,ye.ch,Qo),ya=bt(dr(Ke,lo.line).text,lo.ch,Qo),Ts=Math.min(uo,ya),Cl=Math.max(uo,ya),Bs=Math.min(ye.line,lo.line),Tu=Math.min(re.lastLine(),Math.max(ye.line,lo.line));Bs<=Tu;Bs++){var eu=dr(Ke,Bs).text,sl=Zn(eu,Ts,Qo);Ts==Cl?Ao.push(new To(Yt(Bs,sl),Yt(Bs,sl))):eu.length>sl&&Ao.push(new To(Yt(Bs,sl),Yt(Bs,Zn(eu,Cl,Qo))))}Ao.length||Ao.push(new To(ye,ye)),ge(Ke,Bo(re,wt.ranges.slice(0,Pt).concat(Ao),Pt),{origin:"*mouse",scroll:!1}),re.scrollIntoView(lo)}else{var Gu=dt,Gl=gp(re,lo,ve.unit),tl=Gu.anchor,Ba;Nn(Gl.anchor,tl)>0?(Ba=Gl.head,tl=Rr(Gu.from(),Gl.anchor)):(Ba=Gl.anchor,tl=Ve(Gu.to(),Gl.head));var Vs=wt.ranges.slice(0);Vs[Pt]=yh(re,new To(jn(Ke,tl),Ba)),ge(Ke,Bo(re,Vs,Pt),bn)}}var vr=xe.wrapper.getBoundingClientRect(),yi=0;function xi(lo){var Ao=++yi,Qo=bs(re,lo,!0,ve.unit=="rectangle");if(Qo)if(Nn(Qo,on)!=0){re.curOp.focus=xt(),Cr(Qo);var uo=aa(xe,Ke);(Qo.line>=uo.to||Qo.line<uo.from)&&setTimeout(js(re,function(){yi==Ao&&xi(lo)}),150)}else{var ya=lo.clientY<vr.top?-20:lo.clientY>vr.bottom?20:0;ya&&setTimeout(js(re,function(){yi==Ao&&(xe.scroller.scrollTop+=ya,xi(lo))}),50)}}function Li(lo){re.state.selectingText=!1,yi=1/0,lo&&(Jn(lo),xe.input.focus()),Xt(xe.wrapper.ownerDocument,"mousemove",Ji),Xt(xe.wrapper.ownerDocument,"mouseup",yo),Ke.history.lastSelOrigin=null}var Ji=js(re,function(lo){lo.buttons===0||!Fr(lo)?Li(lo):xi(lo)}),yo=js(re,Li);re.state.selectingText=yo,Ht(xe.wrapper.ownerDocument,"mousemove",Ji),Ht(xe.wrapper.ownerDocument,"mouseup",yo)}function yh(re,le){var ye=le.anchor,ve=le.head,xe=dr(re.doc,ye.line);if(Nn(ye,ve)==0&&ye.sticky==ve.sticky)return le;var Ke=Mn(xe);if(!Ke)return le;var dt=Qt(Ke,ye.ch,ye.sticky),Pt=Ke[dt];if(Pt.from!=ye.ch&&Pt.to!=ye.ch)return le;var wt=dt+(Pt.from==ye.ch==(Pt.level!=1)?0:1);if(wt==0||wt==Ke.length)return le;var Vt;if(ve.line!=ye.line)Vt=(ve.line-ye.line)*(re.doc.direction=="ltr"?1:-1)>0;else{var Kn=Qt(Ke,ve.ch,ve.sticky),on=Kn-dt||(ve.ch-ye.ch)*(Pt.level==1?-1:1);Kn==wt-1||Kn==wt?Vt=on<0:Vt=on>0}var Cr=Ke[wt+(Vt?-1:0)],vr=Vt==(Cr.level==1),yi=vr?Cr.from:Cr.to,xi=vr?"after":"before";return ye.ch==yi&&ye.sticky==xi?le:new To(new Yt(ye.line,yi,xi),ve)}function Df(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&&Jn(le);var dt=re.display,Pt=dt.lineDiv.getBoundingClientRect();if(Ke>Pt.bottom||!cn(re,ye))return Wt(le);Ke-=Pt.top-dt.viewOffset;for(var wt=0;wt<re.display.gutterSpecs.length;++wt){var Vt=dt.gutters.childNodes[wt];if(Vt&&Vt.getBoundingClientRect().right>=xe){var Kn=ln(re.doc,Ke),on=re.display.gutterSpecs[wt];return nn(re,ye,re,Kn,on.className,le),Wt(le)}}}function Qh(re,le){return Df(re,le,"gutterClick",!0)}function Rf(re,le){Ga(re.display,le)||ig(re,le)||fn(re,le,"contextmenu")||Ae||re.display.input.onContextMenu(le)}function ig(re,le){return cn(re,"gutterContextMenu")?Df(re,le,"gutterContextMenu",!1):!1}function mp(re){re.display.wrapper.className=re.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+re.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ou(re)}var Td={toString:function(){return"CodeMirror.Init"}},Jh={},qh={};function og(re){var le=re.optionHandlers;function ye(ve,xe,Ke,dt){re.defaults[ve]=xe,Ke&&(le[ve]=dt?function(Pt,wt,Vt){Vt!=Td&&Ke(Pt,wt,Vt)}:Ke)}re.defineOption=ye,re.Init=Td,ye("value","",function(ve,xe){return ve.setValue(xe)},!0),ye("mode",null,function(ve,xe){ve.doc.modeOption=xe,xo(ve)},!0),ye("indentUnit",2,xo,!0),ye("indentWithTabs",!1),ye("smartIndent",!0),ye("tabSize",4,function(ve){Dl(ve),Ou(ve),ua(ve)},!0),ye("lineSeparator",null,function(ve,xe){if(ve.doc.lineSep=xe,!!xe){var Ke=[],dt=ve.doc.first;ve.doc.iter(function(wt){for(var Vt=0;;){var Kn=wt.text.indexOf(xe,Vt);if(Kn==-1)break;Vt=Kn+xe.length,Ke.push(Yt(dt,Kn))}dt++});for(var Pt=Ke.length-1;Pt>=0;Pt--)dc(ve.doc,xe,Ke[Pt],Yt(Ke[Pt].line,Ke[Pt].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!=Td&&ve.refresh()}),ye("specialCharPlaceholder",ko,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){mp(ve),nr(ve)},!0),ye("keyMap","default",function(ve,xe,Ke){var dt=wd(xe),Pt=Ke!=Td&&wd(Ke);Pt&&Pt.detach&&Pt.detach(ve,dt),dt.attach&&dt.attach(ve,Pt||null)}),ye("extraKeys",null),ye("configureMouse",null),ye("lineWrapping",!1,vp,!0),ye("gutters",[],function(ve,xe){ve.display.gutterSpecs=yr(xe,ve.options.lineNumbers),nr(ve)},!0),ye("fixedGutter",!0,function(ve,xe){ve.display.gutters.style.left=xe?ac(ve.display)+"px":"0",ve.refresh()},!0),ye("coverGutterNextToScrollbar",!1,function(ve){return Is(ve)},!0),ye("scrollbarStyle","native",function(ve){Bl(ve),Is(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=yr(ve.options.gutters,xe),nr(ve)},!0),ye("firstLineNumber",1,nr,!0),ye("lineNumberFormatter",function(ve){return ve},nr,!0),ye("showCursorWhenSelecting",!1,Es,!0),ye("resetSelectionOnContextMenu",!0),ye("lineWiseCopyCut",!0),ye("pasteLinesPerSelection",!0),ye("selectionsMayTouch",!1),ye("readOnly",!1,function(ve,xe){xe=="nocursor"&&(sc(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,Mf),ye("allowDropFileTypes",null),ye("cursorBlinkRate",530),ye("cursorScrollMargin",0),ye("cursorHeight",1,Es,!0),ye("singleCursorHeightPerLine",!0,Es,!0),ye("workTime",100),ye("workDelay",100),ye("flattenSpans",!0,Dl,!0),ye("addModeClass",!1,Dl,!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,Dl,!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 Mf(re,le,ye){var ve=ye&&ye!=Td;if(!le!=!ve){var xe=re.display.dragFunctions,Ke=le?Ht:Xt;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 vp(re){re.options.lineWrapping?(Tt(re.display.wrapper,"CodeMirror-wrap"),re.display.sizer.style.minWidth="",re.display.sizerWidth=null):(Ye(re.display.wrapper,"CodeMirror-wrap"),si(re)),Eo(re),ua(re),Ou(re),setTimeout(function(){return Is(re)},100)}function Fa(re,le){var ye=this;if(!(this instanceof Fa))return new Fa(re,le);this.options=le=le?vn(le):{},vn(Jh,le,!1);var ve=le.value;typeof ve=="string"?ve=new zl(ve,le.mode,null,le.lineSeparator,le.direction):le.mode&&(ve.modeOption=le.mode),this.doc=ve;var xe=new Fa.inputStyles[le.inputStyle](this),Ke=this.display=new Zr(re,ve,xe,le);Ke.wrapper.CodeMirror=this,mp(this),le.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bl(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 ft,keySeq:null,specialChars:null},le.autofocus&&!ee&&Ke.input.focus(),je&&Te<11&&setTimeout(function(){return ye.display.input.reset(!0)},20),Yd(this),qu(),kl(this),this.curOp.forceUpdate=!0,Ea(this,ve),le.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ye.hasFocus()&&!ye.state.focused&&na(ye)},20):sc(this);for(var dt in qh)qh.hasOwnProperty(dt)&&qh[dt](this,le[dt],Td);Cn(this),le.finishInit&&le.finishInit(this);for(var Pt=0;Pt<Xd.length;++Pt)Xd[Pt](this);hu(this),Ge&&le.lineWrapping&&getComputedStyle(Ke.lineDiv).textRendering=="optimizelegibility"&&(Ke.lineDiv.style.textRendering="auto")}Fa.defaults=Jh,Fa.optionHandlers=qh;function Yd(re){var le=re.display;Ht(le.scroller,"mousedown",js(re,Oc)),je&&Te<11?Ht(le.scroller,"dblclick",js(re,function(wt){if(!fn(re,wt)){var Vt=bs(re,wt);if(!(!Vt||Qh(re,wt)||Ga(re.display,wt))){Jn(wt);var Kn=re.findWordAt(Vt);uc(re.doc,Kn.anchor,Kn.head)}}})):Ht(le.scroller,"dblclick",function(wt){return fn(re,wt)||Jn(wt)}),Ht(le.scroller,"contextmenu",function(wt){return Rf(re,wt)}),Ht(le.input.getField(),"contextmenu",function(wt){le.scroller.contains(wt.target)||Rf(re,wt)});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(wt){if(wt.touches.length!=1)return!1;var Vt=wt.touches[0];return Vt.radiusX<=1&&Vt.radiusY<=1}function dt(wt,Vt){if(Vt.left==null)return!0;var Kn=Vt.left-wt.left,on=Vt.top-wt.top;return Kn*Kn+on*on>20*20}Ht(le.scroller,"touchstart",function(wt){if(!fn(re,wt)&&!Ke(wt)&&!Qh(re,wt)){le.input.ensurePolled(),clearTimeout(ye);var Vt=+new Date;le.activeTouch={start:Vt,moved:!1,prev:Vt-ve.end<=300?ve:null},wt.touches.length==1&&(le.activeTouch.left=wt.touches[0].pageX,le.activeTouch.top=wt.touches[0].pageY)}}),Ht(le.scroller,"touchmove",function(){le.activeTouch&&(le.activeTouch.moved=!0)}),Ht(le.scroller,"touchend",function(wt){var Vt=le.activeTouch;if(Vt&&!Ga(le,wt)&&Vt.left!=null&&!Vt.moved&&new Date-Vt.start<300){var Kn=re.coordsChar(le.activeTouch,"page"),on;!Vt.prev||dt(Vt,Vt.prev)?on=new To(Kn,Kn):!Vt.prev.prev||dt(Vt,Vt.prev.prev)?on=re.findWordAt(Kn):on=new To(Yt(Kn.line,0),jn(re.doc,Yt(Kn.line+1,0))),re.setSelection(on.anchor,on.head),re.focus(),Jn(wt)}xe()}),Ht(le.scroller,"touchcancel",xe),Ht(le.scroller,"scroll",function(){le.scroller.clientHeight&&(Nl(re,le.scroller.scrollTop),bl(re,le.scroller.scrollLeft,!0),nn(re,"scroll",re))}),Ht(le.scroller,"mousewheel",function(wt){return ea(re,wt)}),Ht(le.scroller,"DOMMouseScroll",function(wt){return ea(re,wt)}),Ht(le.wrapper,"scroll",function(){return le.wrapper.scrollTop=le.wrapper.scrollLeft=0}),le.dragFunctions={enter:function(wt){fn(re,wt)||wr(wt)},over:function(wt){fn(re,wt)||(eg(re,wt),wr(wt))},start:function(wt){return $p(re,wt)},drop:js(re,tp),leave:function(wt){fn(re,wt)||Pf(re)}};var Pt=le.input.getField();Ht(Pt,"keyup",function(wt){return dp.call(re,wt)}),Ht(Pt,"keydown",js(re,up)),Ht(Pt,"keypress",js(re,Ec)),Ht(Pt,"focus",function(wt){return na(re,wt)}),Ht(Pt,"blur",function(wt){return sc(re,wt)})}var Xd=[];Fa.defineInitHook=function(re){return Xd.push(re)};function pl(re,le,ye,ve){var xe=re.doc,Ke;ye==null&&(ye="add"),ye=="smart"&&(xe.mode.indent?Ke=eo(re,le).state:ye="prev");var dt=re.options.tabSize,Pt=dr(xe,le),wt=bt(Pt.text,null,dt);Pt.stateAfter&&(Pt.stateAfter=null);var Vt=Pt.text.match(/^\s*/)[0],Kn;if(!ve&&!/\S/.test(Pt.text))Kn=0,ye="not";else if(ye=="smart"&&(Kn=xe.mode.indent(Ke,Pt.text.slice(Vt.length),Pt.text),Kn==dn||Kn>150)){if(!ve)return;ye="prev"}ye=="prev"?le>xe.first?Kn=bt(dr(xe,le-1).text,null,dt):Kn=0:ye=="add"?Kn=wt+re.options.indentUnit:ye=="subtract"?Kn=wt-re.options.indentUnit:typeof ye=="number"&&(Kn=wt+ye),Kn=Math.max(0,Kn);var on="",Cr=0;if(re.options.indentWithTabs)for(var vr=Math.floor(Kn/dt);vr;--vr)Cr+=dt,on+=" ";if(Cr<Kn&&(on+=Rt(Kn-Cr)),on!=Vt)return dc(xe,on,Yt(le,0),Yt(le,Vt.length),"+input"),Pt.stateAfter=null,!0;for(var yi=0;yi<xe.sel.ranges.length;yi++){var xi=xe.sel.ranges[yi];if(xi.head.line==le&&xi.head.ch<Vt.length){var Li=Yt(le,Vt.length);wl(xe,yi,new To(Li,Li));break}}}var zu=null;function cd(re){zu=re}function $h(re,le,ye,ve,xe){var Ke=re.doc;re.display.shift=!1,ve||(ve=Ke.sel);var dt=+new Date-200,Pt=xe=="paste"||re.state.pasteIncoming>dt,wt=ri(le),Vt=null;if(Pt&&ve.ranges.length>1)if(zu&&zu.text.join(`
`)==le){if(ve.ranges.length%zu.text.length==0){Vt=[];for(var Kn=0;Kn<zu.text.length;Kn++)Vt.push(Ke.splitLines(zu.text[Kn]))}}else wt.length==ve.ranges.length&&re.options.pasteLinesPerSelection&&(Vt=zn(wt,function(Ji){return[Ji]}));for(var on=re.curOp.updateInput,Cr=ve.ranges.length-1;Cr>=0;Cr--){var vr=ve.ranges[Cr],yi=vr.from(),xi=vr.to();vr.empty()&&(ye&&ye>0?yi=Yt(yi.line,yi.ch-ye):re.state.overwrite&&!Pt?xi=Yt(xi.line,Math.min(dr(Ke,xi.line).text.length,xi.ch+tn(wt).length)):Pt&&zu&&zu.lineWise&&zu.text.join(`
`)==wt.join(`
`)&&(yi=xi=Yt(yi.line,0)));var Li={from:yi,to:xi,text:Vt?Vt[Cr%Vt.length]:wt,origin:xe||(Pt?"paste":re.state.cutIncoming>dt?"cut":"+input")};ta(re.doc,Li),to(re,"inputRead",re,Li)}le&&!Pt&&Sp(re,le),Yl(re),re.curOp.updateInput<2&&(re.curOp.updateInput=on),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&&Na(le,function(){return $h(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 Pt=0;Pt<Ke.electricChars.length;Pt++)if(le.indexOf(Ke.electricChars.charAt(Pt))>-1){dt=pl(re,xe.head.line,"smart");break}}else Ke.electricInput&&Ke.electricInput.test(dr(re.doc,xe.head.line).text.slice(0,xe.head.ch))&&(dt=pl(re,xe.head.line,"smart"));dt&&to(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:Yt(xe,0),head:Yt(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=at("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),le=at("div",[re],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ge?re.style.width="1000px":re.setAttribute("wrap","off"),Oe&&(re.style.border="1px solid black"),Ep(re),le}function Ad(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)&&js(this,le[ve])(this,xe,dt),nn(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:$s(function(ve,xe){var Ke=ve.token?ve:re.getMode(this.options,ve);if(Ke.startState)throw new Error("Overlays may not be stateful.");Yn(this.state.overlays,{mode:Ke,modeSpec:ve,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(dt){return dt.priority}),this.state.modeGen++,ua(this)}),removeOverlay:$s(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++,ua(this);return}}}),indentLine:$s(function(ve,xe,Ke){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),Nr(this.doc,ve)&&pl(this,ve,xe,Ke)}),indentSelection:$s(function(ve){for(var xe=this.doc.sel.ranges,Ke=-1,dt=0;dt<xe.length;dt++){var Pt=xe[dt];if(Pt.empty())Pt.head.line>Ke&&(pl(this,Pt.head.line,ve,!0),Ke=Pt.head.line,dt==this.doc.sel.primIndex&&Yl(this));else{var wt=Pt.from(),Vt=Pt.to(),Kn=Math.max(Ke,wt.line);Ke=Math.min(this.lastLine(),Vt.line-(Vt.ch?0:1))+1;for(var on=Kn;on<Ke;++on)pl(this,on,ve);var Cr=this.doc.sel.ranges;wt.ch==0&&xe.length==Cr.length&&Cr[dt].from().ch>0&&wl(this.doc,dt,new To(wt,Cr[dt].to()),kt)}}}),getTokenAt:function(ve,xe){return ki(this,ve,xe)},getLineTokens:function(ve,xe){return ki(this,Yt(ve),xe,!0)},getTokenTypeAt:function(ve){ve=jn(this.doc,ve);var xe=Ti(this,dr(this.doc,ve.line)),Ke=0,dt=(xe.length-1)/2,Pt=ve.ch,wt;if(Pt==0)wt=xe[2];else for(;;){var Vt=Ke+dt>>1;if((Vt?xe[Vt*2-1]:0)>=Pt)dt=Vt;else if(xe[Vt*2+1]<Pt)Ke=Vt+1;else{wt=xe[Vt*2+2];break}}var Kn=wt?wt.indexOf("overlay "):-1;return Kn<0?wt:Kn==0?null:wt.slice(0,Kn-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],Pt=this.getModeAt(ve);if(typeof Pt[xe]=="string")dt[Pt[xe]]&&Ke.push(dt[Pt[xe]]);else if(Pt[xe])for(var wt=0;wt<Pt[xe].length;wt++){var Vt=dt[Pt[xe][wt]];Vt&&Ke.push(Vt)}else Pt.helperType&&dt[Pt.helperType]?Ke.push(dt[Pt.helperType]):dt[Pt.name]&&Ke.push(dt[Pt.name]);for(var Kn=0;Kn<dt._global.length;Kn++){var on=dt._global[Kn];on.pred(Pt,this)&&ct(Ke,on.val)==-1&&Ke.push(on.val)}return Ke},getStateAfter:function(ve,xe){var Ke=this.doc;return ve=kr(Ke,ve==null?Ke.first+Ke.size-1:ve),eo(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(),wa(this,Ke,xe||"page")},charCoords:function(ve,xe){return zs(this,jn(this.doc,ve),xe||"page")},coordsChar:function(ve,xe){return ve=yu(this,ve,xe||"page"),cs(this,ve.left,ve.top)},lineAtHeight:function(ve,xe){return ve=yu(this,{top:ve,left:0},xe||"page").top,ln(this.doc,ve+this.display.viewOffset)},heightAtLine:function(ve,xe,Ke){var dt=!1,Pt;if(typeof ve=="number"){var wt=this.doc.first+this.doc.size-1;ve<this.doc.first?ve=this.doc.first:ve>wt&&(ve=wt,dt=!0),Pt=dr(this.doc,ve)}else Pt=ve;return ks(this,Pt,{top:0,left:0},xe||"page",Ke||dt).top+(dt?this.doc.height-Vr(Pt):0)},defaultTextHeight:function(){return rs(this.display)},defaultCharWidth:function(){return Al(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ve,xe,Ke,dt,Pt){var wt=this.display;ve=wa(this,jn(this.doc,ve));var Vt=ve.bottom,Kn=ve.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),wt.sizer.appendChild(xe),dt=="over")Vt=ve.top;else if(dt=="above"||dt=="near"){var on=Math.max(wt.wrapper.clientHeight,this.doc.height),Cr=Math.max(wt.sizer.clientWidth,wt.lineSpace.clientWidth);(dt=="above"||ve.bottom+xe.offsetHeight>on)&&ve.top>xe.offsetHeight?Vt=ve.top-xe.offsetHeight:ve.bottom+xe.offsetHeight<=on&&(Vt=ve.bottom),Kn+xe.offsetWidth>Cr&&(Kn=Cr-xe.offsetWidth)}xe.style.top=Vt+"px",xe.style.left=xe.style.right="",Pt=="right"?(Kn=wt.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(Pt=="left"?Kn=0:Pt=="middle"&&(Kn=(wt.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=Kn+"px"),Ke&&bu(this,{left:Kn,top:Vt,right:Kn+xe.offsetWidth,bottom:Vt+xe.offsetHeight})},triggerOnKeyDown:$s(up),triggerOnKeyPress:$s(Ec),triggerOnKeyUp:dp,triggerOnMouseDown:$s(Oc),execCommand:function(ve){if(Cd.hasOwnProperty(ve))return Cd[ve].call(null,this)},triggerElectric:$s(function(ve){Sp(this,ve)}),findPosH:function(ve,xe,Ke,dt){var Pt=1;xe<0&&(Pt=-1,xe=-xe);for(var wt=jn(this.doc,ve),Vt=0;Vt<xe&&(wt=Sh(this.doc,wt,Pt,Ke,dt),!wt.hitSide);++Vt);return wt},moveH:$s(function(ve,xe){var Ke=this;this.extendSelectionsBy(function(dt){return Ke.display.shift||Ke.doc.extend||dt.empty()?Sh(Ke.doc,dt.head,ve,xe,Ke.options.rtlMoveVisually):ve<0?dt.from():dt.to()},gn)}),deleteH:$s(function(ve,xe){var Ke=this.doc.sel,dt=this.doc;Ke.somethingSelected()?dt.replaceSelection("",null,"+delete"):Hu(this,function(Pt){var wt=Sh(dt,Pt.head,ve,xe,!1);return ve<0?{from:wt,to:Pt.head}:{from:Pt.head,to:wt}})}),findPosV:function(ve,xe,Ke,dt){var Pt=1,wt=dt;xe<0&&(Pt=-1,xe=-xe);for(var Vt=jn(this.doc,ve),Kn=0;Kn<xe;++Kn){var on=wa(this,Vt,"div");if(wt==null?wt=on.left:on.left=wt,Vt=Fc(this,on,Pt,Ke),Vt.hitSide)break}return Vt},moveV:$s(function(ve,xe){var Ke=this,dt=this.doc,Pt=[],wt=!this.display.shift&&!dt.extend&&dt.sel.somethingSelected();if(dt.extendSelectionsBy(function(Kn){if(wt)return ve<0?Kn.from():Kn.to();var on=wa(Ke,Kn.head,"div");Kn.goalColumn!=null&&(on.left=Kn.goalColumn),Pt.push(on.left);var Cr=Fc(Ke,on,ve,xe);return xe=="page"&&Kn==dt.sel.primary()&&Xc(Ke,zs(Ke,Cr,"div").top-on.top),Cr},gn),Pt.length)for(var Vt=0;Vt<dt.sel.ranges.length;Vt++)dt.sel.ranges[Vt].goalColumn=Pt[Vt]}),findWordAt:function(ve){var xe=this.doc,Ke=dr(xe,ve.line).text,dt=ve.ch,Pt=ve.ch;if(Ke){var wt=this.getHelper(ve,"wordChars");(ve.sticky=="before"||Pt==Ke.length)&&dt?--dt:++Pt;for(var Vt=Ke.charAt(dt),Kn=st(Vt,wt)?function(on){return st(on,wt)}:/\s/.test(Vt)?function(on){return/\s/.test(on)}:function(on){return!/\s/.test(on)&&!st(on)};dt>0&&Kn(Ke.charAt(dt-1));)--dt;for(;Pt<Ke.length&&Kn(Ke.charAt(Pt));)++Pt}return new To(Yt(ve.line,dt),Yt(ve.line,Pt))},toggleOverwrite:function(ve){ve!=null&&ve==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Tt(this.display.cursorDiv,"CodeMirror-overwrite"):Ye(this.display.cursorDiv,"CodeMirror-overwrite"),nn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==xt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$s(function(ve,xe){Xl(this,ve,xe)}),getScrollInfo:function(){var ve=this.display.scroller;return{left:ve.scrollLeft,top:ve.scrollTop,height:ve.scrollHeight-da(this)-this.display.barHeight,width:ve.scrollWidth-da(this)-this.display.barWidth,clientHeight:ol(this),clientWidth:Rs(this)}},scrollIntoView:$s(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:Yt(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):du(this,ve.from,ve.to,ve.margin)}),setSize:$s(function(ve,xe){var Ke=this,dt=function(wt){return typeof wt=="number"||/^\d+$/.test(String(wt))?wt+"px":wt};ve!=null&&(this.display.wrapper.style.width=dt(ve)),xe!=null&&(this.display.wrapper.style.height=dt(xe)),this.options.lineWrapping&&Mu(this);var Pt=this.display.viewFrom;this.doc.iter(Pt,this.display.viewTo,function(wt){if(wt.widgets){for(var Vt=0;Vt<wt.widgets.length;Vt++)if(wt.widgets[Vt].noHScroll){Zo(Ke,Pt,"widget");break}}++Pt}),this.curOp.forceUpdate=!0,nn(this,"refresh",this)}),operation:function(ve){return Na(this,ve)},startOperation:function(){return kl(this)},endOperation:function(){return hu(this)},refresh:$s(function(){var ve=this.display.cachedTextHeight;ua(this),this.curOp.forceUpdate=!0,Ou(this),Xl(this,this.doc.scrollLeft,this.doc.scrollTop),Mt(this.display),(ve==null||Math.abs(ve-rs(this.display))>.5||this.options.lineWrapping)&&Eo(this),nn(this,"refresh",this)}),swapDoc:$s(function(ve){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),Ea(this,ve),Ou(this),this.display.input.reset(),Xl(this,ve.scrollLeft,ve.scrollTop),this.curOp.forceScroll=!0,to(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}},Et(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 Sh(re,le,ye,ve,xe){var Ke=le,dt=ye,Pt=dr(re,le.line),wt=xe&&re.direction=="rtl"?-ye:ye;function Vt(){var yo=le.line+wt;return yo<re.first||yo>=re.first+re.size?!1:(le=new Yt(yo,le.ch,le.sticky),Pt=dr(re,yo))}function Kn(yo){var lo;if(ve=="codepoint"){var Ao=Pt.text.charCodeAt(le.ch+(ve>0?0:-1));isNaN(Ao)?lo=null:lo=new Yt(le.line,Math.max(0,Math.min(Pt.text.length,le.ch+ye*(Ao>=55296&&Ao<56320?2:1))),-ye)}else xe?lo=Lf(re.cm,Pt,le,ye):lo=Ps(Pt,le,ye);if(lo==null)if(!yo&&Vt())le=Kh(xe,re.cm,Pt,le.line,wt);else return!1;else le=lo;return!0}if(ve=="char"||ve=="codepoint")Kn();else if(ve=="column")Kn(!0);else if(ve=="word"||ve=="group")for(var on=null,Cr=ve=="group",vr=re.cm&&re.cm.getHelper(le,"wordChars"),yi=!0;!(ye<0&&!Kn(!yi));yi=!1){var xi=Pt.text.charAt(le.ch)||`
`,Li=st(xi,vr)?"w":Cr&&xi==`
`?"n":!Cr||/\s/.test(xi)?null:"p";if(Cr&&!yi&&!Li&&(Li="s"),on&&on!=Li){ye<0&&(ye=1,Kn(),le.sticky="after");break}if(Li&&(on=Li),ye>0&&!Kn(!yi))break}var Ji=Lo(re,le,Ke,dt,!0);return Xr(Ke,Ji)&&(Ji.hitSide=!0),Ji}function Fc(re,le,ye,ve){var xe=re.doc,Ke=le.left,dt;if(ve=="page"){var Pt=Math.min(re.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),wt=Math.max(Pt-.5*rs(re.display),3);dt=(ye>0?le.bottom:le.top)+ye*wt}else ve=="line"&&(dt=ye>0?le.bottom+3:le.top-3);for(var Vt;Vt=cs(re,Ke,dt),!!Vt.outside;){if(ye<0?dt<=0:dt>=xe.height){Vt.hitSide=!0;break}dt+=ye*5}return Vt}var Ja=function(re){this.cm=re,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ft,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ja.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(Pt){for(var wt=Pt.target;wt;wt=wt.parentNode){if(wt==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(wt.className))break}return!1}Ht(xe,"paste",function(Pt){!Ke(Pt)||fn(ve,Pt)||yp(Pt,ve)||Te<=11&&setTimeout(js(ve,function(){return le.updateFromDOM()}),20)}),Ht(xe,"compositionstart",function(Pt){le.composing={data:Pt.data,done:!1}}),Ht(xe,"compositionupdate",function(Pt){le.composing||(le.composing={data:Pt.data,done:!1})}),Ht(xe,"compositionend",function(Pt){le.composing&&(Pt.data!=le.composing.data&&le.readFromDOMSoon(),le.composing.done=!0)}),Ht(xe,"touchstart",function(){return ye.forceCompositionEnd()}),Ht(xe,"input",function(){le.composing||le.readFromDOMSoon()});function dt(Pt){if(!(!Ke(Pt)||fn(ve,Pt))){if(ve.somethingSelected())cd({lineWise:!1,text:ve.getSelections()}),Pt.type=="cut"&&ve.replaceSelection("",null,"cut");else if(ve.options.lineWiseCopyCut){var wt=bp(ve);cd({lineWise:!0,text:wt.text}),Pt.type=="cut"&&ve.operation(function(){ve.setSelections(wt.ranges,0,kt),ve.replaceSelection("",null,"cut")})}else return;if(Pt.clipboardData){Pt.clipboardData.clearData();var Vt=zu.text.join(`
`);if(Pt.clipboardData.setData("Text",Vt),Pt.clipboardData.getData("Text")==Vt){Pt.preventDefault();return}}var Kn=xp(),on=Kn.firstChild;ve.display.lineSpace.insertBefore(Kn,ve.display.lineSpace.firstChild),on.value=zu.text.join(`
`);var Cr=document.activeElement;Jt(on),setTimeout(function(){ve.display.lineSpace.removeChild(Kn),Cr.focus(),Cr==xe&&ye.showPrimarySelection()},50)}}Ht(xe,"copy",dt),Ht(xe,"cut",dt)},Ja.prototype.screenReaderLabelChanged=function(re){re?this.div.setAttribute("aria-label",re):this.div.removeAttribute("aria-label")},Ja.prototype.prepareSelection=function(){var re=Fu(this.cm,!1);return re.focus=document.activeElement==this.div,re},Ja.prototype.showSelection=function(re,le){!re||!this.cm.display.view.length||((re.focus||le)&&this.showPrimarySelection(),this.showMultipleSelections(re))},Ja.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ja.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=tf(le,re.anchorNode,re.anchorOffset),dt=tf(le,re.focusNode,re.focusOffset);if(!(Ke&&!Ke.bad&&dt&&!dt.bad&&Nn(Rr(Ke,dt),ve)==0&&Nn(Ve(Ke,dt),xe)==0)){var Pt=le.display.view,wt=ve.line>=le.display.viewFrom&&Of(le,ve)||{node:Pt[0].measure.map[2],offset:0},Vt=xe.line<le.display.viewTo&&Of(le,xe);if(!Vt){var Kn=Pt[Pt.length-1].measure,on=Kn.maps?Kn.maps[Kn.maps.length-1]:Kn.map;Vt={node:on[on.length-1],offset:on[on.length-2]-on[on.length-3]}}if(!wt||!Vt){re.removeAllRanges();return}var Cr=re.rangeCount&&re.getRangeAt(0),vr;try{vr=ot(wt.node,wt.offset,Vt.offset,Vt.node)}catch(yi){}vr&&(!oe&&le.state.focused?(re.collapse(wt.node,wt.offset),vr.collapsed||(re.removeAllRanges(),re.addRange(vr))):(re.removeAllRanges(),re.addRange(vr)),Cr&&re.anchorNode==null?re.addRange(Cr):oe&&this.startGracePeriod()),this.rememberSelection()}},Ja.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)},Ja.prototype.showMultipleSelections=function(re){$e(this.cm.display.cursorDiv,re.cursors),$e(this.cm.display.selectionDiv,re.selection)},Ja.prototype.rememberSelection=function(){var re=this.getSelection();this.lastAnchorNode=re.anchorNode,this.lastAnchorOffset=re.anchorOffset,this.lastFocusNode=re.focusNode,this.lastFocusOffset=re.focusOffset},Ja.prototype.selectionInEditor=function(){var re=this.getSelection();if(!re.rangeCount)return!1;var le=re.getRangeAt(0).commonAncestorContainer;return vt(this.div,le)},Ja.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ja.prototype.blur=function(){this.div.blur()},Ja.prototype.getField=function(){return this.div},Ja.prototype.supportsTouch=function(){return!0},Ja.prototype.receivedFocus=function(){var re=this;this.selectionInEditor()?this.pollSelection():Na(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)},Ja.prototype.selectionChanged=function(){var re=this.getSelection();return re.anchorNode!=this.lastAnchorNode||re.anchorOffset!=this.lastAnchorOffset||re.focusNode!=this.lastFocusNode||re.focusOffset!=this.lastFocusOffset},Ja.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&&ef(re.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ye=tf(le,re.anchorNode,re.anchorOffset),ve=tf(le,re.focusNode,re.focusOffset);ye&&ve&&Na(le,function(){ge(le.doc,Xa(ye,ve),kt),(ye.bad||ve.bad)&&(le.curOp.selectionChanged=!0)})}}},Ja.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=Yt(ve.line-1,dr(re.doc,ve.line-1).length)),xe.ch==dr(re.doc,xe.line).text.length&&xe.line<re.lastLine()&&(xe=Yt(xe.line+1,0)),ve.line<le.viewFrom||xe.line>le.viewTo-1)return!1;var Ke,dt,Pt;ve.line==le.viewFrom||(Ke=Js(re,ve.line))==0?(dt=Lt(le.view[0].line),Pt=le.view[0].node):(dt=Lt(le.view[Ke].line),Pt=le.view[Ke-1].node.nextSibling);var wt=Js(re,xe.line),Vt,Kn;if(wt==le.view.length-1?(Vt=le.viewTo-1,Kn=le.lineDiv.lastChild):(Vt=Lt(le.view[wt+1].line)-1,Kn=le.view[wt+1].node.previousSibling),!Pt)return!1;for(var on=re.doc.splitLines(bh(re,Pt,Kn,dt,Vt)),Cr=oi(re.doc,Yt(dt,0),Yt(Vt,dr(re.doc,Vt).text.length));on.length>1&&Cr.length>1;)if(tn(on)==tn(Cr))on.pop(),Cr.pop(),Vt--;else if(on[0]==Cr[0])on.shift(),Cr.shift(),dt++;else break;for(var vr=0,yi=0,xi=on[0],Li=Cr[0],Ji=Math.min(xi.length,Li.length);vr<Ji&&xi.charCodeAt(vr)==Li.charCodeAt(vr);)++vr;for(var yo=tn(on),lo=tn(Cr),Ao=Math.min(yo.length-(on.length==1?vr:0),lo.length-(Cr.length==1?vr:0));yi<Ao&&yo.charCodeAt(yo.length-yi-1)==lo.charCodeAt(lo.length-yi-1);)++yi;if(on.length==1&&Cr.length==1&&dt==ve.line)for(;vr&&vr>ve.ch&&yo.charCodeAt(yo.length-yi-1)==lo.charCodeAt(lo.length-yi-1);)vr--,yi++;on[on.length-1]=yo.slice(0,yo.length-yi).replace(/^\u200b+/,""),on[0]=on[0].slice(vr).replace(/\u200b+$/,"");var Qo=Yt(dt,vr),uo=Yt(Vt,Cr.length?tn(Cr).length-yi:0);if(on.length>1||on[0]||Nn(Qo,uo))return dc(re.doc,on,Qo,uo,"+input"),!0},Ja.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ja.prototype.reset=function(){this.forceCompositionEnd()},Ja.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ja.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))},Ja.prototype.updateFromDOM=function(){var re=this;(this.cm.isReadOnly()||!this.pollContent())&&Na(this.cm,function(){return ua(re.cm)})},Ja.prototype.setUneditable=function(re){re.contentEditable="false"},Ja.prototype.onKeyPress=function(re){re.charCode==0||this.composing||(re.preventDefault(),this.cm.isReadOnly()||js(this.cm,$h)(this.cm,String.fromCharCode(re.charCode==null?re.keyCode:re.charCode),0))},Ja.prototype.readOnlyChanged=function(re){this.div.contentEditable=String(re!="nocursor")},Ja.prototype.onContextMenu=function(){},Ja.prototype.resetPosition=function(){},Ja.prototype.needsContentAttribute=!0;function Of(re,le){var ye=es(re,le.line);if(!ye||ye.hidden)return null;var ve=dr(re.doc,le.line),xe=$a(ye,ve,le.line),Ke=Mn(ve,re.doc.direction),dt="left";if(Ke){var Pt=Qt(Ke,le.ch);dt=Pt%2?"right":"left"}var wt=rc(xe.map,le.ch,dt);return wt.offset=wt.collapse=="right"?wt.end:wt.start,wt}function ef(re){for(var le=re;le;le=le.parentNode)if(/CodeMirror-gutter-wrapper/.test(le.className))return!0;return!1}function Qd(re,le){return le&&(re.bad=!0),re}function bh(re,le,ye,ve,xe){var Ke="",dt=!1,Pt=re.doc.lineSeparator(),wt=!1;function Vt(vr){return function(yi){return yi.id==vr}}function Kn(){dt&&(Ke+=Pt,wt&&(Ke+=Pt),dt=wt=!1)}function on(vr){vr&&(Kn(),Ke+=vr)}function Cr(vr){if(vr.nodeType==1){var yi=vr.getAttribute("cm-text");if(yi){on(yi);return}var xi=vr.getAttribute("cm-marker"),Li;if(xi){var Ji=re.findMarks(Yt(ve,0),Yt(xe+1,0),Vt(+xi));Ji.length&&(Li=Ji[0].find(0))&&on(oi(re.doc,Li.from,Li.to).join(Pt));return}if(vr.getAttribute("contenteditable")=="false")return;var yo=/^(pre|div|p|li|table|br)$/i.test(vr.nodeName);if(!/^br$/i.test(vr.nodeName)&&vr.textContent.length==0)return;yo&&Kn();for(var lo=0;lo<vr.childNodes.length;lo++)Cr(vr.childNodes[lo]);/^(pre|p)$/i.test(vr.nodeName)&&(wt=!0),yo&&(dt=!0)}else vr.nodeType==3&&on(vr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Cr(le),le!=ye;)le=le.nextSibling,wt=!1;return Ke}function tf(re,le,ye){var ve;if(le==re.display.lineDiv){if(ve=re.display.lineDiv.childNodes[ye],!ve)return Qd(re.clipPos(Yt(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 ag(Ke,le,ye)}}function ag(re,le,ye){var ve=re.text.firstChild,xe=!1;if(!le||!vt(ve,le))return Qd(Yt(Lt(re.line),0),!0);if(le==ve&&(xe=!0,le=ve.childNodes[ye],ye=0,!le)){var Ke=re.rest?tn(re.rest):re.line;return Qd(Yt(Lt(Ke),Ke.text.length),xe)}var dt=le.nodeType==3?le:null,Pt=le;for(!dt&&le.childNodes.length==1&&le.firstChild.nodeType==3&&(dt=le.firstChild,ye&&(ye=dt.nodeValue.length));Pt.parentNode!=ve;)Pt=Pt.parentNode;var wt=re.measure,Vt=wt.maps;function Kn(Li,Ji,yo){for(var lo=-1;lo<(Vt?Vt.length:0);lo++)for(var Ao=lo<0?wt.map:Vt[lo],Qo=0;Qo<Ao.length;Qo+=3){var uo=Ao[Qo+2];if(uo==Li||uo==Ji){var ya=Lt(lo<0?re.line:re.rest[lo]),Ts=Ao[Qo]+yo;return(yo<0||uo!=Li)&&(Ts=Ao[Qo+(yo?1:0)]),Yt(ya,Ts)}}}var on=Kn(dt,Pt,ye);if(on)return Qd(on,xe);for(var Cr=Pt.nextSibling,vr=dt?dt.nodeValue.length-ye:0;Cr;Cr=Cr.nextSibling){if(on=Kn(Cr,Cr.firstChild,0),on)return Qd(Yt(on.line,on.ch-vr),xe);vr+=Cr.textContent.length}for(var yi=Pt.previousSibling,xi=ye;yi;yi=yi.previousSibling){if(on=Kn(yi,yi.firstChild,-1),on)return Qd(Yt(on.line,on.ch+xi),xe);xi+=yi.textContent.length}}var gl=function(re){this.cm=re,this.prevInput="",this.pollingFast=!1,this.polling=new ft,this.hasSelection=!1,this.composing=null};gl.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),Oe&&(xe.style.width="0px"),Ht(xe,"input",function(){je&&Te>=9&&le.hasSelection&&(le.hasSelection=null),ye.poll()}),Ht(xe,"paste",function(dt){fn(ve,dt)||yp(dt,ve)||(ve.state.pasteIncoming=+new Date,ye.fastPoll())});function Ke(dt){if(!fn(ve,dt)){if(ve.somethingSelected())cd({lineWise:!1,text:ve.getSelections()});else if(ve.options.lineWiseCopyCut){var Pt=bp(ve);cd({lineWise:!0,text:Pt.text}),dt.type=="cut"?ve.setSelections(Pt.ranges,null,kt):(ye.prevInput="",xe.value=Pt.text.join(`
`),Jt(xe))}else return;dt.type=="cut"&&(ve.state.cutIncoming=+new Date)}}Ht(xe,"cut",Ke),Ht(xe,"copy",Ke),Ht(re.scroller,"paste",function(dt){if(!(Ga(re,dt)||fn(ve,dt))){if(!xe.dispatchEvent){ve.state.pasteIncoming=+new Date,ye.focus();return}var Pt=new Event("paste");Pt.clipboardData=dt.clipboardData,xe.dispatchEvent(Pt)}}),Ht(re.lineSpace,"selectstart",function(dt){Ga(re,dt)||Jn(dt)}),Ht(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"})}}),Ht(xe,"compositionend",function(){ye.composing&&(ye.poll(),ye.composing.range.clear(),ye.composing=null)})},gl.prototype.createField=function(re){this.wrapper=xp(),this.textarea=this.wrapper.firstChild},gl.prototype.screenReaderLabelChanged=function(re){re?this.textarea.setAttribute("aria-label",re):this.textarea.removeAttribute("aria-label")},gl.prototype.prepareSelection=function(){var re=this.cm,le=re.display,ye=re.doc,ve=Fu(re);if(re.options.moveInputWithCursor){var xe=wa(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},gl.prototype.showSelection=function(re){var le=this.cm,ye=le.display;$e(ye.cursorDiv,re.cursors),$e(ye.selectionDiv,re.selection),re.teTop!=null&&(this.wrapper.style.top=re.teTop+"px",this.wrapper.style.left=re.teLeft+"px")},gl.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&&Jt(this.textarea),je&&Te>=9&&(this.hasSelection=ye)}else re||(this.prevInput=this.textarea.value="",je&&Te>=9&&(this.hasSelection=null))}},gl.prototype.getField=function(){return this.textarea},gl.prototype.supportsTouch=function(){return!1},gl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||xt()!=this.textarea))try{this.textarea.focus()}catch(re){}},gl.prototype.blur=function(){this.textarea.blur()},gl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gl.prototype.receivedFocus=function(){this.slowPoll()},gl.prototype.slowPoll=function(){var re=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){re.poll(),re.cm.state.focused&&re.slowPoll()})},gl.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)},gl.prototype.poll=function(){var re=this,le=this.cm,ye=this.textarea,ve=this.prevInput;if(this.contextMenuPending||!le.state.focused||_e(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(je&&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,Pt=Math.min(ve.length,xe.length);dt<Pt&&ve.charCodeAt(dt)==xe.charCodeAt(dt);)++dt;return Na(le,function(){$h(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},gl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gl.prototype.onKeyPress=function(){je&&Te>=9&&(this.hasSelection=null),this.fastPoll()},gl.prototype.onContextMenu=function(re){var le=this,ye=le.cm,ve=ye.display,xe=le.textarea;le.contextMenuPending&&le.contextMenuPending();var Ke=bs(ye,re),dt=ve.scroller.scrollTop;if(!Ke||Ue)return;var Pt=ye.options.resetSelectionOnContextMenu;Pt&&ye.doc.sel.contains(Ke)==-1&&js(ye,ge)(ye.doc,Xa(Ke),kt);var wt=xe.style.cssText,Vt=le.wrapper.style.cssText,Kn=le.wrapper.offsetParent.getBoundingClientRect();le.wrapper.style.cssText="position: static",xe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(re.clientY-Kn.top-5)+"px; left: "+(re.clientX-Kn.left-5)+`px;
z-index: 1000; background: `+(je?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var on;Ge&&(on=window.scrollY),ve.input.focus(),Ge&&window.scrollTo(null,on),ve.input.reset(),ye.somethingSelected()||(xe.value=le.prevInput=" "),le.contextMenuPending=vr,ve.selForContextMenu=ye.doc.sel,clearTimeout(ve.detectingSelectAll);function Cr(){if(xe.selectionStart!=null){var xi=ye.somethingSelected(),Li="\u200B"+(xi?xe.value:"");xe.value="\u21DA",xe.value=Li,le.prevInput=xi?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=Li.length,ve.selForContextMenu=ye.doc.sel}}function vr(){if(le.contextMenuPending==vr&&(le.contextMenuPending=!1,le.wrapper.style.cssText=Vt,xe.style.cssText=wt,je&&Te<9&&ve.scrollbars.setScrollTop(ve.scroller.scrollTop=dt),xe.selectionStart!=null)){(!je||je&&Te<9)&&Cr();var xi=0,Li=function(){ve.selForContextMenu==ye.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&le.prevInput=="\u200B"?js(ye,ni)(ye):xi++<10?ve.detectingSelectAll=setTimeout(Li,500):(ve.selForContextMenu=null,ve.input.reset())};ve.detectingSelectAll=setTimeout(Li,200)}}if(je&&Te>=9&&Cr(),Ae){wr(re);var yi=function(){Xt(window,"mouseup",yi),setTimeout(vr,20)};Ht(window,"mouseup",yi)}else setTimeout(vr,50)},gl.prototype.readOnlyChanged=function(re){re||this.reset(),this.textarea.disabled=re=="nocursor",this.textarea.readOnly=!!re},gl.prototype.setUneditable=function(){},gl.prototype.needsContentAttribute=!1;function Ff(re,le){if(le=le?vn(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=xt();le.autofocus=ye==re||re.getAttribute("autofocus")!=null&&ye==document.body}function ve(){re.value=Pt.getValue()}var xe;if(re.form&&(Ht(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(wt){}}le.finishInit=function(wt){wt.save=ve,wt.getTextArea=function(){return re},wt.toTextArea=function(){wt.toTextArea=isNaN,ve(),re.parentNode.removeChild(wt.getWrapperElement()),re.style.display="",re.form&&(Xt(re.form,"submit",ve),!le.leaveSubmitMethodAlone&&typeof re.form.submit=="function"&&(re.form.submit=xe))}},re.style.display="none";var Pt=Fa(function(wt){return re.parentNode.insertBefore(wt,re.nextSibling)},le);return Pt}function Jd(re){re.off=Xt,re.on=Ht,re.wheelEventPixels=jo,re.Doc=zl,re.splitLines=ri,re.countColumn=bt,re.findColumn=Zn,re.isWordChar=Ze,re.Pass=dn,re.signal=nn,re.Line=Si,re.changeEnd=Qa,re.scrollbarModel=Ll,re.Pos=Yt,re.cmpPos=Nn,re.modes=_r,re.mimeModes=Gr,re.resolveMode=Rn,re.getMode=Pn,re.modeExtensions=Sn,re.extendMode=$n,re.copyState=li,re.startState=ci,re.innerMode=Yr,re.commands=Cd,re.keyMap=$l,re.keyName=tg,re.isModifierKey=Vd,re.lookupKey=Pu,re.normalizeKeyMap=Af,re.StringStream=_n,re.SharedTextMarker=Jc,re.TextMarker=kn,re.LineWidget=ud,re.e_preventDefault=Jn,re.e_stopPropagation=ir,re.e_stop=wr,re.addClass=Tt,re.contains=vt,re.rmClass=Ye,re.keyNames=qc}og(Fa),Ad(Fa);var Bc="iter insert remove copy getEditor constructor".split(" ");for(var qd in zl.prototype)zl.prototype.hasOwnProperty(qd)&&ct(Bc,qd)<0&&(Fa.prototype[qd]=function(re){return function(){return re.apply(this.doc,arguments)}}(zl.prototype[qd]));return Et(zl),Fa.inputStyles={textarea:gl,contenteditable:Ja},Fa.defineMode=function(re){!Fa.defaults.mode&&re!="null"&&(Fa.defaults.mode=re),br.apply(this,arguments)},Fa.defineMIME=Ci,Fa.defineMode("null",function(){return{token:function(re){return re.skipToEnd()}}}),Fa.defineMIME("text/plain","null"),Fa.defineExtension=function(re,le){Fa.prototype[re]=le},Fa.defineDocExtension=function(re,le){zl.prototype[re]=le},Fa.fromTextArea=Ff,Jd(Fa),Fa.version="5.58.2",Fa})},25419:function(He,Ee,ae){(function(oe){oe(ae(89780),ae(15525),ae(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(Ce,ke){var Ie=oe.getMode(Ce,"text/html"),je=Ie.name=="null";function Te(bt){if(oe.findModeByName){var ft=oe.findModeByName(bt);ft&&(bt=ft.mime||ft.mimes[0])}var ct=oe.getMode(Ce,bt);return ct.name=="null"?null:ct}ke.highlightFormatting===void 0&&(ke.highlightFormatting=!1),ke.maxBlockquoteDepth===void 0&&(ke.maxBlockquoteDepth=0),ke.taskLists===void 0&&(ke.taskLists=!1),ke.strikethrough===void 0&&(ke.strikethrough=!1),ke.emoji===void 0&&(ke.emoji=!1),ke.fencedCodeBlockHighlighting===void 0&&(ke.fencedCodeBlockHighlighting=!0),ke.fencedCodeBlockDefaultMode===void 0&&(ke.fencedCodeBlockDefaultMode="text/plain"),ke.xml===void 0&&(ke.xml=!0),ke.tokenTypeOverrides===void 0&&(ke.tokenTypeOverrides={});var Ge={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 lt in Ge)Ge.hasOwnProperty(lt)&&ke.tokenTypeOverrides[lt]&&(Ge[lt]=ke.tokenTypeOverrides[lt]);var Qe=/^([*\-_])(?:\s*\1){2,}\s*$/,Ue=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,mt=/^\[(x| )\](?=\s)/i,Je=ke.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,It=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Oe=/^[^#!\[\]*_\\<>` "'(~:]+/,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(bt,ft,ct){return ft.f=ft.inline=ct,ct(bt,ft)}function me(bt,ft,ct){return ft.f=ft.block=ct,ct(bt,ft)}function be(bt){return!bt||!/\S/.test(bt.string)}function Ae(bt){if(bt.linkTitle=!1,bt.linkHref=!1,bt.linkText=!1,bt.em=!1,bt.strong=!1,bt.strikethrough=!1,bt.quote=0,bt.indentedCode=!1,bt.f==Ye){var ft=je;if(!ft){var ct=oe.innerMode(Ie,bt.htmlState);ft=ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText}ft&&(bt.f=ht,bt.block=De,bt.htmlState=null)}return bt.trailingSpace=0,bt.trailingSpaceNewLine=!1,bt.prevLine=bt.thisLine,bt.thisLine={stream:null},null}function De(bt,ft){var ct=bt.column()===ft.indentation,qt=be(ft.prevLine.stream),dn=ft.indentedCode,kt=ft.prevLine.hr,bn=ft.list!==!1,gn=(ft.listStack[ft.listStack.length-1]||0)+3;ft.indentedCode=!1;var Zn=ft.indentation;if(ft.indentationDiff===null&&(ft.indentationDiff=ft.indentation,bn)){for(ft.list=null;Zn<ft.listStack[ft.listStack.length-1];)ft.listStack.pop(),ft.listStack.length?ft.indentation=ft.listStack[ft.listStack.length-1]:ft.list=!1;ft.list!==!1&&(ft.indentationDiff=Zn-ft.listStack[ft.listStack.length-1])}var Gt=!qt&&!kt&&!ft.prevLine.header&&(!bn||!dn)&&!ft.prevLine.fencedCodeEnd,Rt=(ft.list===!1||kt||qt)&&ft.indentation<=gn&&bt.match(Qe),tn=null;if(ft.indentationDiff>=4&&(dn||ft.prevLine.fencedCodeEnd||ft.prevLine.header||qt))return bt.skipToEnd(),ft.indentedCode=!0,Ge.code;if(bt.eatSpace())return null;if(ct&&ft.indentation<=gn&&(tn=bt.match(Je))&&tn[1].length<=6)return ft.quote=0,ft.header=tn[1].length,ft.thisLine.header=!0,ke.highlightFormatting&&(ft.formatting="header"),ft.f=ft.inline,$e(ft);if(ft.indentation<=gn&&bt.eat(">"))return ft.quote=ct?1:ft.quote+1,ke.highlightFormatting&&(ft.formatting="quote"),bt.eatSpace(),$e(ft);if(!Rt&&!ft.setext&&ct&&ft.indentation<=gn&&(tn=bt.match(Ue))){var zn=tn[1]?"ol":"ul";return ft.indentation=Zn+bt.current().length,ft.list=!0,ft.quote=0,ft.listStack.push(ft.indentation),ft.em=!1,ft.strong=!1,ft.code=!1,ft.strikethrough=!1,ke.taskLists&&bt.match(mt,!1)&&(ft.taskList=!0),ft.f=ft.inline,ke.highlightFormatting&&(ft.formatting=["list","list-"+zn]),$e(ft)}else{if(ct&&ft.indentation<=gn&&(tn=bt.match(te,!0)))return ft.quote=0,ft.fencedEndRE=new RegExp(tn[1]+"+ *$"),ft.localMode=ke.fencedCodeBlockHighlighting&&Te(tn[2]||ke.fencedCodeBlockDefaultMode),ft.localMode&&(ft.localState=oe.startState(ft.localMode)),ft.f=ft.block=rt,ke.highlightFormatting&&(ft.formatting="code-block"),ft.code=-1,$e(ft);if(ft.setext||(!Gt||!bn)&&!ft.quote&&ft.list===!1&&!ft.code&&!Rt&&!ee.test(bt.string)&&(tn=bt.lookAhead(1))&&(tn=tn.match(It)))return ft.setext?(ft.header=ft.setext,ft.setext=0,bt.skipToEnd(),ke.highlightFormatting&&(ft.formatting="header")):(ft.header=tn[0].charAt(0)=="="?1:2,ft.setext=ft.header),ft.thisLine.header=!0,ft.f=ft.inline,$e(ft);if(Rt)return bt.skipToEnd(),ft.hr=!0,ft.thisLine.hr=!0,Ge.hr;if(bt.peek()==="[")return fe(bt,ft,_t)}return fe(bt,ft,ft.inline)}function Ye(bt,ft){var ct=Ie.token(bt,ft.htmlState);if(!je){var qt=oe.innerMode(Ie,ft.htmlState);(qt.mode.name=="xml"&&qt.state.tagStart===null&&!qt.state.context&&qt.state.tokenize.isInText||ft.md_inside&&bt.current().indexOf(">")>-1)&&(ft.f=ht,ft.block=De,ft.htmlState=null)}return ct}function rt(bt,ft){var ct=ft.listStack[ft.listStack.length-1]||0,qt=ft.indentation<ct,dn=ct+3;if(ft.fencedEndRE&&ft.indentation<=dn&&(qt||bt.match(ft.fencedEndRE))){ke.highlightFormatting&&(ft.formatting="code-block");var kt;return qt||(kt=$e(ft)),ft.localMode=ft.localState=null,ft.block=De,ft.f=ht,ft.fencedEndRE=null,ft.code=0,ft.thisLine.fencedCodeEnd=!0,qt?me(bt,ft,ft.block):kt}else return ft.localMode?ft.localMode.token(bt,ft.localState):(bt.skipToEnd(),Ge.code)}function $e(bt){var ft=[];if(bt.formatting){ft.push(Ge.formatting),typeof bt.formatting=="string"&&(bt.formatting=[bt.formatting]);for(var ct=0;ct<bt.formatting.length;ct++)ft.push(Ge.formatting+"-"+bt.formatting[ct]),bt.formatting[ct]==="header"&&ft.push(Ge.formatting+"-"+bt.formatting[ct]+"-"+bt.header),bt.formatting[ct]==="quote"&&(!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=bt.quote?ft.push(Ge.formatting+"-"+bt.formatting[ct]+"-"+bt.quote):ft.push("error"))}if(bt.taskOpen)return ft.push("meta"),ft.length?ft.join(" "):null;if(bt.taskClosed)return ft.push("property"),ft.length?ft.join(" "):null;if(bt.linkHref?ft.push(Ge.linkHref,"url"):(bt.strong&&ft.push(Ge.strong),bt.em&&ft.push(Ge.em),bt.strikethrough&&ft.push(Ge.strikethrough),bt.emoji&&ft.push(Ge.emoji),bt.linkText&&ft.push(Ge.linkText),bt.code&&ft.push(Ge.code),bt.image&&ft.push(Ge.image),bt.imageAltText&&ft.push(Ge.imageAltText,"link"),bt.imageMarker&&ft.push(Ge.imageMarker)),bt.header&&ft.push(Ge.header,Ge.header+"-"+bt.header),bt.quote&&(ft.push(Ge.quote),!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=bt.quote?ft.push(Ge.quote+"-"+bt.quote):ft.push(Ge.quote+"-"+ke.maxBlockquoteDepth)),bt.list!==!1){var qt=(bt.listStack.length-1)%3;qt?qt===1?ft.push(Ge.list2):ft.push(Ge.list3):ft.push(Ge.list1)}return bt.trailingSpaceNewLine?ft.push("trailing-space-new-line"):bt.trailingSpace&&ft.push("trailing-space-"+(bt.trailingSpace%2?"a":"b")),ft.length?ft.join(" "):null}function at(bt,ft){if(bt.match(Oe,!0))return $e(ft)}function ht(bt,ft){var ct=ft.text(bt,ft);if(typeof ct!="undefined")return ct;if(ft.list)return ft.list=null,$e(ft);if(ft.taskList){var qt=bt.match(mt,!0)[1]===" ";return qt?ft.taskOpen=!0:ft.taskClosed=!0,ke.highlightFormatting&&(ft.formatting="task"),ft.taskList=!1,$e(ft)}if(ft.taskOpen=!1,ft.taskClosed=!1,ft.header&&bt.match(/^#+$/,!0))return ke.highlightFormatting&&(ft.formatting="header"),$e(ft);var dn=bt.next();if(ft.linkTitle){ft.linkTitle=!1;var kt=dn;dn==="("&&(kt=")"),kt=(kt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var bn="^\\s*(?:[^"+kt+"\\\\]+|\\\\\\\\|\\\\.)"+kt;if(bt.match(new RegExp(bn),!0))return Ge.linkHref}if(dn==="`"){var gn=ft.formatting;ke.highlightFormatting&&(ft.formatting="code"),bt.eatWhile("`");var Zn=bt.current().length;if(ft.code==0&&(!ft.quote||Zn==1))return ft.code=Zn,$e(ft);if(Zn==ft.code){var Gt=$e(ft);return ft.code=0,Gt}else return ft.formatting=gn,$e(ft)}else if(ft.code)return $e(ft);if(dn==="\\"&&(bt.next(),ke.highlightFormatting)){var Rt=$e(ft),tn=Ge.formatting+"-escape";return Rt?Rt+" "+tn:tn}if(dn==="!"&&bt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ft.imageMarker=!0,ft.image=!0,ke.highlightFormatting&&(ft.formatting="image"),$e(ft);if(dn==="["&&ft.imageMarker&&bt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ft.imageMarker=!1,ft.imageAltText=!0,ke.highlightFormatting&&(ft.formatting="image"),$e(ft);if(dn==="]"&&ft.imageAltText){ke.highlightFormatting&&(ft.formatting="image");var Rt=$e(ft);return ft.imageAltText=!1,ft.image=!1,ft.inline=ft.f=vt,Rt}if(dn==="["&&!ft.image)return ft.linkText&&bt.match(/^.*?\]/)||(ft.linkText=!0,ke.highlightFormatting&&(ft.formatting="link")),$e(ft);if(dn==="]"&&ft.linkText){ke.highlightFormatting&&(ft.formatting="link");var Rt=$e(ft);return ft.linkText=!1,ft.inline=ft.f=bt.match(/\(.*?\)| ?\[.*?\]/,!1)?vt:ht,Rt}if(dn==="<"&&bt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ft.f=ft.inline=ot,ke.highlightFormatting&&(ft.formatting="link");var Rt=$e(ft);return Rt?Rt+=" ":Rt="",Rt+Ge.linkInline}if(dn==="<"&&bt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ft.f=ft.inline=ot,ke.highlightFormatting&&(ft.formatting="link");var Rt=$e(ft);return Rt?Rt+=" ":Rt="",Rt+Ge.linkEmail}if(ke.xml&&dn==="<"&&bt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var zn=bt.string.indexOf(">",bt.pos);if(zn!=-1){var Yn=bt.string.substring(bt.start,zn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Yn)&&(ft.md_inside=!0)}return bt.backUp(1),ft.htmlState=oe.startState(Ie),me(bt,ft,Ye)}if(ke.xml&&dn==="<"&&bt.match(/^\/\w*?>/))return ft.md_inside=!1,"tag";if(dn==="*"||dn==="_"){for(var nt=1,Be=bt.pos==1?" ":bt.string.charAt(bt.pos-2);nt<3&&bt.eat(dn);)nt++;var Re=bt.peek()||" ",Ze=!/\s/.test(Re)&&(!he.test(Re)||/\s/.test(Be)||he.test(Be)),st=!/\s/.test(Be)&&(!he.test(Be)||/\s/.test(Re)||he.test(Re)),Fe=null,St=null;if(nt%2&&(!ft.em&&Ze&&(dn==="*"||!st||he.test(Be))?Fe=!0:ft.em==dn&&st&&(dn==="*"||!Ze||he.test(Re))&&(Fe=!1)),nt>1&&(!ft.strong&&Ze&&(dn==="*"||!st||he.test(Be))?St=!0:ft.strong==dn&&st&&(dn==="*"||!Ze||he.test(Re))&&(St=!1)),St!=null||Fe!=null){ke.highlightFormatting&&(ft.formatting=Fe==null?"strong":St==null?"em":"strong em"),Fe===!0&&(ft.em=dn),St===!0&&(ft.strong=dn);var Gt=$e(ft);return Fe===!1&&(ft.em=!1),St===!1&&(ft.strong=!1),Gt}}else if(dn===" "&&(bt.eat("*")||bt.eat("_"))){if(bt.peek()===" ")return $e(ft);bt.backUp(1)}if(ke.strikethrough){if(dn==="~"&&bt.eatWhile(dn)){if(ft.strikethrough){ke.highlightFormatting&&(ft.formatting="strikethrough");var Gt=$e(ft);return ft.strikethrough=!1,Gt}else if(bt.match(/^[^\s]/,!1))return ft.strikethrough=!0,ke.highlightFormatting&&(ft.formatting="strikethrough"),$e(ft)}else if(dn===" "&&bt.match(/^~~/,!0)){if(bt.peek()===" ")return $e(ft);bt.backUp(2)}}if(ke.emoji&&dn===":"&&bt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ft.emoji=!0,ke.highlightFormatting&&(ft.formatting="emoji");var hn=$e(ft);return ft.emoji=!1,hn}return dn===" "&&(bt.match(/^ +$/,!1)?ft.trailingSpace++:ft.trailingSpace&&(ft.trailingSpaceNewLine=!0)),$e(ft)}function ot(bt,ft){var ct=bt.next();if(ct===">"){ft.f=ft.inline=ht,ke.highlightFormatting&&(ft.formatting="link");var qt=$e(ft);return qt?qt+=" ":qt="",qt+Ge.linkInline}return bt.match(/^[^>]+/,!0),Ge.linkInline}function vt(bt,ft){if(bt.eatSpace())return null;var ct=bt.next();return ct==="("||ct==="["?(ft.f=ft.inline=Tt(ct==="("?")":"]"),ke.highlightFormatting&&(ft.formatting="link-string"),ft.linkHref=!0,$e(ft)):"error"}var xt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Tt(bt){return function(ft,ct){var qt=ft.next();if(qt===bt){ct.f=ct.inline=ht,ke.highlightFormatting&&(ct.formatting="link-string");var dn=$e(ct);return ct.linkHref=!1,dn}return ft.match(xt[bt]),ct.linkHref=!0,$e(ct)}}function _t(bt,ft){return bt.match(/^([^\]\\]|\\.)*\]:/,!1)?(ft.f=Jt,bt.next(),ke.highlightFormatting&&(ft.formatting="link"),ft.linkText=!0,$e(ft)):fe(bt,ft,ht)}function Jt(bt,ft){if(bt.match(/^\]:/,!0)){ft.f=ft.inline=Zt,ke.highlightFormatting&&(ft.formatting="link");var ct=$e(ft);return ft.linkText=!1,ct}return bt.match(/^([^\]\\]|\\.)+/,!0),Ge.linkText}function Zt(bt,ft){return bt.eatSpace()?null:(bt.match(/^[^\s]+/,!0),bt.peek()===void 0?ft.linkTitle=!0:bt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ft.f=ft.inline=ht,Ge.linkHref+" url")}var vn={startState:function(){return{f:De,prevLine:{stream:null},thisLine:{stream:null},block:De,htmlState:null,indentation:0,inline:ht,text:at,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(bt){return{f:bt.f,prevLine:bt.prevLine,thisLine:bt.thisLine,block:bt.block,htmlState:bt.htmlState&&oe.copyState(Ie,bt.htmlState),indentation:bt.indentation,localMode:bt.localMode,localState:bt.localMode?oe.copyState(bt.localMode,bt.localState):null,inline:bt.inline,text:bt.text,formatting:!1,linkText:bt.linkText,linkTitle:bt.linkTitle,linkHref:bt.linkHref,code:bt.code,em:bt.em,strong:bt.strong,strikethrough:bt.strikethrough,emoji:bt.emoji,header:bt.header,setext:bt.setext,hr:bt.hr,taskList:bt.taskList,list:bt.list,listStack:bt.listStack.slice(0),quote:bt.quote,indentedCode:bt.indentedCode,trailingSpace:bt.trailingSpace,trailingSpaceNewLine:bt.trailingSpaceNewLine,md_inside:bt.md_inside,fencedEndRE:bt.fencedEndRE}},token:function(bt,ft){if(ft.formatting=!1,bt!=ft.thisLine.stream){if(ft.header=0,ft.hr=!1,bt.match(/^\s*$/,!0))return Ae(ft),null;if(ft.prevLine=ft.thisLine,ft.thisLine={stream:bt},ft.taskList=!1,ft.trailingSpace=0,ft.trailingSpaceNewLine=!1,!ft.localState&&(ft.f=ft.block,ft.f!=Ye)){var ct=bt.match(/^\s*/,!0)[0].replace(/\t/g,ue).length;if(ft.indentation=ct,ft.indentationDiff=null,ct>0)return null}}return ft.f(bt,ft)},innerMode:function(bt){return bt.block==Ye?{state:bt.htmlState,mode:Ie}:bt.localState?{state:bt.localState,mode:bt.localMode}:{state:bt,mode:vn}},indent:function(bt,ft,ct){return bt.block==Ye&&Ie.indent?Ie.indent(bt.htmlState,ft,ct):bt.localState&&bt.localMode.indent?bt.localMode.indent(bt.localState,ft,ct):oe.Pass},blankLine:Ae,getType:$e,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vn},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(He,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 Ce=0;Ce<oe.modeInfo.length;Ce++){var ke=oe.modeInfo[Ce];ke.mimes&&(ke.mime=ke.mimes[0])}oe.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.mime==Ie)return Te;if(Te.mimes){for(var Ge=0;Ge<Te.mimes.length;Ge++)if(Te.mimes[Ge]==Ie)return Te}}if(/\+xml$/.test(Ie))return oe.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.ext){for(var Ge=0;Ge<Te.ext.length;Ge++)if(Te.ext[Ge]==Ie)return Te}}},oe.findModeByFileName=function(Ie){for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.file&&Te.file.test(Ie))return Te}var Ge=Ie.lastIndexOf("."),lt=Ge>-1&&Ie.substring(Ge+1,Ie.length);if(lt)return oe.findModeByExtension(lt)},oe.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.name.toLowerCase()==Ie)return Te;if(Te.alias){for(var Ge=0;Ge<Te.alias.length;Ge++)if(Te.alias[Ge].toLowerCase()==Ie)return Te}}}})},67549:function(He,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.defineMode("stex",function(Ce,ke){"use strict";function Ie(Oe,te){Oe.cmdState.push(te)}function je(Oe){return Oe.cmdState.length>0?Oe.cmdState[Oe.cmdState.length-1]:null}function Te(Oe){var te=Oe.cmdState.pop();te&&te.closeBracket()}function Ge(Oe){for(var te=Oe.cmdState,ee=te.length-1;ee>=0;ee--){var he=te[ee];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function lt(Oe,te,ee){return function(){this.name=Oe,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=lt("importmodule","tag",["string","builtin"]),Qe.documentclass=lt("documentclass","tag",["","atom"]),Qe.usepackage=lt("usepackage","tag",["atom"]),Qe.begin=lt("begin","tag",["atom"]),Qe.end=lt("end","tag",["atom"]),Qe.label=lt("label","tag",["atom"]),Qe.ref=lt("ref","tag",["atom"]),Qe.eqref=lt("eqref","tag",["atom"]),Qe.cite=lt("cite","tag",["atom"]),Qe.bibitem=lt("bibitem","tag",["atom"]),Qe.Bibitem=lt("Bibitem","tag",["atom"]),Qe.RBibitem=lt("RBibitem","tag",["atom"]),Qe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ue(Oe,te){Oe.f=te}function mt(Oe,te){var ee;if(Oe.match(/^\\[a-zA-Z@]+/)){var he=Oe.current().slice(1);return ee=Qe.hasOwnProperty(he)?Qe[he]:Qe.DEFAULT,ee=new ee,Ie(te,ee),Ue(te,It),ee.style}if(Oe.match(/^\\[$&%#{}_]/)||Oe.match(/^\\[,;!\/\\]/))return"tag";if(Oe.match("\\["))return Ue(te,function(fe,me){return Je(fe,me,"\\]")}),"keyword";if(Oe.match("\\("))return Ue(te,function(fe,me){return Je(fe,me,"\\)")}),"keyword";if(Oe.match("$$"))return Ue(te,function(fe,me){return Je(fe,me,"$$")}),"keyword";if(Oe.match("$"))return Ue(te,function(fe,me){return Je(fe,me,"$")}),"keyword";var ue=Oe.next();if(ue=="%")return Oe.skipToEnd(),"comment";if(ue=="}"||ue=="]"){if(ee=je(te),ee)ee.closeBracket(ue),Ue(te,It);else return"error";return"bracket"}else return ue=="{"||ue=="["?(ee=Qe.DEFAULT,ee=new ee,Ie(te,ee),"bracket"):/\d/.test(ue)?(Oe.eatWhile(/[\w.%]/),"atom"):(Oe.eatWhile(/[\w\-_]/),ee=Ge(te),ee.name=="begin"&&(ee.argument=Oe.current()),ee.styleIdentifier())}function Je(Oe,te,ee){if(Oe.eatSpace())return null;if(ee&&Oe.match(ee))return Ue(te,mt),"keyword";if(Oe.match(/^\\[a-zA-Z@]+/))return"tag";if(Oe.match(/^[a-zA-Z]+/))return"variable-2";if(Oe.match(/^\\[$&%#{}_]/)||Oe.match(/^\\[,;!\/]/)||Oe.match(/^[\^_&]/))return"tag";if(Oe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Oe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Oe.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Oe.skipToEnd(),"comment"):"error"}function It(Oe,te){var ee=Oe.peek(),he;return ee=="{"||ee=="["?(he=je(te),he.openBracket(ee),Oe.eat(ee),Ue(te,mt),"bracket"):/[ \t\r]/.test(ee)?(Oe.eat(ee),null):(Ue(te,mt),Te(te),mt(Oe,te))}return{startState:function(){var Oe=ke.inMathMode?function(te,ee){return Je(te,ee)}:mt;return{cmdState:[],f:Oe}},copyState:function(Oe){return{cmdState:Oe.cmdState.slice(),f:Oe.f}},token:function(Oe,te){return te.f(Oe,te)},blankLine:function(Oe){Oe.f=mt,Oe.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(He,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Ce={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},ke={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(Ie,je){var Te=Ie.indentUnit,Ge={},lt=je.htmlMode?Ce:ke;for(var Qe in lt)Ge[Qe]=lt[Qe];for(var Qe in je)Ge[Qe]=je[Qe];var Ue,mt;function Je(ot,vt){function xt(Jt){return vt.tokenize=Jt,Jt(ot,vt)}var Tt=ot.next();if(Tt=="<")return ot.eat("!")?ot.eat("[")?ot.match("CDATA[")?xt(te("atom","]]>")):null:ot.match("--")?xt(te("comment","-->")):ot.match("DOCTYPE",!0,!0)?(ot.eatWhile(/[\w\._\-]/),xt(ee(1))):null:ot.eat("?")?(ot.eatWhile(/[\w\._\-]/),vt.tokenize=te("meta","?>"),"meta"):(Ue=ot.eat("/")?"closeTag":"openTag",vt.tokenize=It,"tag bracket");if(Tt=="&"){var _t;return ot.eat("#")?ot.eat("x")?_t=ot.eatWhile(/[a-fA-F\d]/)&&ot.eat(";"):_t=ot.eatWhile(/[\d]/)&&ot.eat(";"):_t=ot.eatWhile(/[\w\.\-:]/)&&ot.eat(";"),_t?"atom":"error"}else return ot.eatWhile(/[^&<]/),null}Je.isInText=!0;function It(ot,vt){var xt=ot.next();if(xt==">"||xt=="/"&&ot.eat(">"))return vt.tokenize=Je,Ue=xt==">"?"endTag":"selfcloseTag","tag bracket";if(xt=="=")return Ue="equals",null;if(xt=="<"){vt.tokenize=Je,vt.state=me,vt.tagName=vt.tagStart=null;var Tt=vt.tokenize(ot,vt);return Tt?Tt+" tag error":"tag error"}else return/[\'\"]/.test(xt)?(vt.tokenize=Oe(xt),vt.stringStartCol=ot.column(),vt.tokenize(ot,vt)):(ot.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Oe(ot){var vt=function(xt,Tt){for(;!xt.eol();)if(xt.next()==ot){Tt.tokenize=It;break}return"string"};return vt.isInAttribute=!0,vt}function te(ot,vt){return function(xt,Tt){for(;!xt.eol();){if(xt.match(vt)){Tt.tokenize=Je;break}xt.next()}return ot}}function ee(ot){return function(vt,xt){for(var Tt;(Tt=vt.next())!=null;){if(Tt=="<")return xt.tokenize=ee(ot+1),xt.tokenize(vt,xt);if(Tt==">")if(ot==1){xt.tokenize=Je;break}else return xt.tokenize=ee(ot-1),xt.tokenize(vt,xt)}return"meta"}}function he(ot,vt,xt){this.prev=ot.context,this.tagName=vt,this.indent=ot.indented,this.startOfLine=xt,(Ge.doNotIndent.hasOwnProperty(vt)||ot.context&&ot.context.noIndent)&&(this.noIndent=!0)}function ue(ot){ot.context&&(ot.context=ot.context.prev)}function fe(ot,vt){for(var xt;;){if(!ot.context||(xt=ot.context.tagName,!Ge.contextGrabbers.hasOwnProperty(xt)||!Ge.contextGrabbers[xt].hasOwnProperty(vt)))return;ue(ot)}}function me(ot,vt,xt){return ot=="openTag"?(xt.tagStart=vt.column(),be):ot=="closeTag"?Ae:me}function be(ot,vt,xt){return ot=="word"?(xt.tagName=vt.current(),mt="tag",rt):Ge.allowMissingTagName&&ot=="endTag"?(mt="tag bracket",rt(ot,vt,xt)):(mt="error",be)}function Ae(ot,vt,xt){if(ot=="word"){var Tt=vt.current();return xt.context&&xt.context.tagName!=Tt&&Ge.implicitlyClosed.hasOwnProperty(xt.context.tagName)&&ue(xt),xt.context&&xt.context.tagName==Tt||Ge.matchClosing===!1?(mt="tag",De):(mt="tag error",Ye)}else return Ge.allowMissingTagName&&ot=="endTag"?(mt="tag bracket",De(ot,vt,xt)):(mt="error",Ye)}function De(ot,vt,xt){return ot!="endTag"?(mt="error",De):(ue(xt),me)}function Ye(ot,vt,xt){return mt="error",De(ot,vt,xt)}function rt(ot,vt,xt){if(ot=="word")return mt="attribute",$e;if(ot=="endTag"||ot=="selfcloseTag"){var Tt=xt.tagName,_t=xt.tagStart;return xt.tagName=xt.tagStart=null,ot=="selfcloseTag"||Ge.autoSelfClosers.hasOwnProperty(Tt)?fe(xt,Tt):(fe(xt,Tt),xt.context=new he(xt,Tt,_t==xt.indented)),me}return mt="error",rt}function $e(ot,vt,xt){return ot=="equals"?at:(Ge.allowMissing||(mt="error"),rt(ot,vt,xt))}function at(ot,vt,xt){return ot=="string"?ht:ot=="word"&&Ge.allowUnquoted?(mt="string",rt):(mt="error",rt(ot,vt,xt))}function ht(ot,vt,xt){return ot=="string"?ht:rt(ot,vt,xt)}return{startState:function(ot){var vt={tokenize:Je,state:me,indented:ot||0,tagName:null,tagStart:null,context:null};return ot!=null&&(vt.baseIndent=ot),vt},token:function(ot,vt){if(!vt.tagName&&ot.sol()&&(vt.indented=ot.indentation()),ot.eatSpace())return null;Ue=null;var xt=vt.tokenize(ot,vt);return(xt||Ue)&&xt!="comment"&&(mt=null,vt.state=vt.state(Ue||xt,ot,vt),mt&&(xt=mt=="error"?xt+" error":mt)),xt},indent:function(ot,vt,xt){var Tt=ot.context;if(ot.tokenize.isInAttribute)return ot.tagStart==ot.indented?ot.stringStartCol+1:ot.indented+Te;if(Tt&&Tt.noIndent)return oe.Pass;if(ot.tokenize!=It&&ot.tokenize!=Je)return xt?xt.match(/^(\s*)/)[0].length:0;if(ot.tagName)return Ge.multilineTagIndentPastTag!==!1?ot.tagStart+ot.tagName.length+2:ot.tagStart+Te*(Ge.multilineTagIndentFactor||1);if(Ge.alignCDATA&&/<!\[CDATA\[/.test(vt))return 0;var _t=vt&&/^<(\/)?([\w_:\.-]*)/.exec(vt);if(_t&&_t[1])for(;Tt;)if(Tt.tagName==_t[2]){Tt=Tt.prev;break}else if(Ge.implicitlyClosed.hasOwnProperty(Tt.tagName))Tt=Tt.prev;else break;else if(_t)for(;Tt;){var Jt=Ge.contextGrabbers[Tt.tagName];if(Jt&&Jt.hasOwnProperty(_t[2]))Tt=Tt.prev;else break}for(;Tt&&Tt.prev&&!Tt.startOfLine;)Tt=Tt.prev;return Tt?Tt.indent+Te:ot.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ge.htmlMode?"html":"xml",helperType:Ge.htmlMode?"html":"xml",skipAttribute:function(ot){ot.state==at&&(ot.state=rt)},xmlCurrentTag:function(ot){return ot.tagName?{name:ot.tagName,close:ot.type=="closeTag"}:null},xmlCurrentContext:function(ot){for(var vt=[],xt=ot.context;xt;xt=xt.prev)xt.tagName&&vt.push(xt.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(He,Ee){"use strict";var ae;Ee.Q=Ie,ae=je;var oe=",",Ce=" ",ke="";function Ie(Te){for(var Ge=[],lt=String(Te||ke),Qe=lt.indexOf(oe),Ue=0,mt=!1,Je;!mt;)Qe===-1&&(Qe=lt.length,mt=!0),Je=lt.slice(Ue,Qe).trim(),(Je||!mt)&&Ge.push(Je),Ue=Qe+1,Qe=lt.indexOf(oe,Ue);return Ge}function je(Te,Ge){var lt=Ge||{},Qe=lt.padLeft===!1?ke:Ce,Ue=lt.padRight?Ce:ke;return Te[Te.length-1]===ke&&(Te=Te.concat(ke)),Te.join(Ue+oe+Qe).trim()}},86204:function(He){"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 Ce(fe){console&&console.warn&&console.warn(fe)}var ke=Number.isNaN||function(me){return me!==me};function Ie(){Ie.init.call(this)}He.exports=Ie,He.exports.once=ee,Ie.EventEmitter=Ie,Ie.prototype._events=void 0,Ie.prototype._eventsCount=0,Ie.prototype._maxListeners=void 0;var je=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(Ie,"defaultMaxListeners",{enumerable:!0,get:function(){return je},set:function(fe){if(typeof fe!="number"||fe<0||ke(fe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+fe+".");je=fe}}),Ie.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ie.prototype.setMaxListeners=function(me){if(typeof me!="number"||me<0||ke(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 Ge(fe){return fe._maxListeners===void 0?Ie.defaultMaxListeners:fe._maxListeners}Ie.prototype.getMaxListeners=function(){return Ge(this)},Ie.prototype.emit=function(me){for(var be=[],Ae=1;Ae<arguments.length;Ae++)be.push(arguments[Ae]);var De=me==="error",Ye=this._events;if(Ye!==void 0)De=De&&Ye.error===void 0;else if(!De)return!1;if(De){var rt;if(be.length>0&&(rt=be[0]),rt instanceof Error)throw rt;var $e=new Error("Unhandled error."+(rt?" ("+rt.message+")":""));throw $e.context=rt,$e}var at=Ye[me];if(at===void 0)return!1;if(typeof at=="function")ae(at,this,be);else for(var ht=at.length,ot=It(at,ht),Ae=0;Ae<ht;++Ae)ae(ot[Ae],this,be);return!0};function lt(fe,me,be,Ae){var De,Ye,rt;if(Te(be),Ye=fe._events,Ye===void 0?(Ye=fe._events=Object.create(null),fe._eventsCount=0):(Ye.newListener!==void 0&&(fe.emit("newListener",me,be.listener?be.listener:be),Ye=fe._events),rt=Ye[me]),rt===void 0)rt=Ye[me]=be,++fe._eventsCount;else if(typeof rt=="function"?rt=Ye[me]=Ae?[be,rt]:[rt,be]:Ae?rt.unshift(be):rt.push(be),De=Ge(fe),De>0&&rt.length>De&&!rt.warned){rt.warned=!0;var $e=new Error("Possible EventEmitter memory leak detected. "+rt.length+" "+String(me)+" listeners added. Use emitter.setMaxListeners() to increase limit");$e.name="MaxListenersExceededWarning",$e.emitter=fe,$e.type=me,$e.count=rt.length,Ce($e)}return fe}Ie.prototype.addListener=function(me,be){return lt(this,me,be,!1)},Ie.prototype.on=Ie.prototype.addListener,Ie.prototype.prependListener=function(me,be){return lt(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}Ie.prototype.once=function(me,be){return Te(be),this.on(me,Ue(this,me,be)),this},Ie.prototype.prependOnceListener=function(me,be){return Te(be),this.prependListener(me,Ue(this,me,be)),this},Ie.prototype.removeListener=function(me,be){var Ae,De,Ye,rt,$e;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(Ye=-1,rt=Ae.length-1;rt>=0;rt--)if(Ae[rt]===be||Ae[rt].listener===be){$e=Ae[rt].listener,Ye=rt;break}if(Ye<0)return this;Ye===0?Ae.shift():Oe(Ae,Ye),Ae.length===1&&(De[me]=Ae[0]),De.removeListener!==void 0&&this.emit("removeListener",me,$e||be)}return this},Ie.prototype.off=Ie.prototype.removeListener,Ie.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 Ye=Object.keys(Ae),rt;for(De=0;De<Ye.length;++De)rt=Ye[De],rt!=="removeListener"&&this.removeAllListeners(rt);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 mt(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):It(De,De.length)}Ie.prototype.listeners=function(me){return mt(this,me,!0)},Ie.prototype.rawListeners=function(me){return mt(this,me,!1)},Ie.listenerCount=function(fe,me){return typeof fe.listenerCount=="function"?fe.listenerCount(me):Je.call(fe,me)},Ie.prototype.listenerCount=Je;function Je(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}Ie.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function It(fe,me){for(var be=new Array(me),Ae=0;Ae<me;++Ae)be[Ae]=fe[Ae];return be}function Oe(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(rt){fe.removeListener(me,Ye),Ae(rt)}function Ye(){typeof fe.removeListener=="function"&&fe.removeListener("error",De),be([].slice.call(arguments))}ue(fe,me,Ye,{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(Ye){Ae.once&&fe.removeEventListener(me,De),be(Ye)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof fe)}},58847:function(He){"use strict";var Ee=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,oe=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,ke=function(lt){return typeof Array.isArray=="function"?Array.isArray(lt):ae.call(lt)==="[object Array]"},Ie=function(lt){if(!lt||ae.call(lt)!=="[object Object]")return!1;var Qe=Ee.call(lt,"constructor"),Ue=lt.constructor&&lt.constructor.prototype&&Ee.call(lt.constructor.prototype,"isPrototypeOf");if(lt.constructor&&!Qe&&!Ue)return!1;var mt;for(mt in lt);return typeof mt=="undefined"||Ee.call(lt,mt)},je=function(lt,Qe){oe&&Qe.name==="__proto__"?oe(lt,Qe.name,{enumerable:!0,configurable:!0,value:Qe.newValue,writable:!0}):lt[Qe.name]=Qe.newValue},Te=function(lt,Qe){if(Qe==="__proto__")if(Ee.call(lt,Qe)){if(Ce)return Ce(lt,Qe).value}else return;return lt[Qe]};He.exports=function Ge(){var lt,Qe,Ue,mt,Je,It,Oe=arguments[0],te=1,ee=arguments.length,he=!1;for(typeof Oe=="boolean"&&(he=Oe,Oe=arguments[1]||{},te=2),(Oe==null||typeof Oe!="object"&&typeof Oe!="function")&&(Oe={});te<ee;++te)if(lt=arguments[te],lt!=null)for(Qe in lt)Ue=Te(Oe,Qe),mt=Te(lt,Qe),Oe!==mt&&(he&&mt&&(Ie(mt)||(Je=ke(mt)))?(Je?(Je=!1,It=Ue&&ke(Ue)?Ue:[]):It=Ue&&Ie(Ue)?Ue:{},je(Oe,{name:Qe,newValue:Ge(he,It,mt)})):typeof mt!="undefined"&&je(Oe,{name:Qe,newValue:mt}));return Oe}},12378:function(He,Ee,ae){"use strict";ae.d(Ee,{$u:function(){return Qe},BD:function(){return nt},E9:function(){return lt},FF:function(){return ii},FJ:function(){return me},Hn:function(){return fe},KX:function(){return Ae},NB:function(){return jt},S0:function(){return tn},UL:function(){return Ue},Vk:function(){return ue},Vm:function(){return Qt},YI:function(){return zn},ZA:function(){return ke},Zt:function(){return mt},al:function(){return Fe},bn:function(){return st},bx:function(){return Be},g2:function(){return Yn},h1:function(){return at},hD:function(){return Et},l4:function(){return Te},rU:function(){return Ut},s_:function(){return Re},uz:function(){return or},z6:function(){return Je}}),He=ae.hmd(He),function(){var _e;function Mr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Tr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Mr(a)}}function sr(a){for(var y,b=[];!(y=a.next()).done;)b.push(y.value);return b}var _r=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Gr;if(typeof Object.setPrototypeOf=="function")Gr=Object.setPrototypeOf;else{var br;e:{var Ci={a:!0},Rn={};try{Rn.__proto__=Ci,br=Rn.a;break e}catch(a){}br=!1}Gr=br?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Pn=Gr;function Sn(a,y){if(a.prototype=_r(y.prototype),a.prototype.constructor=a,Pn)Pn(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 $n=typeof ae.g!="undefined"&&ae.g!=null?ae.g:self,li=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},Yr=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,b){a!=Array.prototype&&a!=Object.prototype&&(a[y]=b.value)};function ci(a,y){if(y){var b=$n;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&&Yr(b,a,{writable:!0,value:y})}}ci("Object.assign",function(a){return a||li}),ci("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 _n=typeof globalThis=="object"&&globalThis||typeof ae.g=="object"&&ae.g.global===ae.g&&ae.g||typeof self=="object"&&self.self===self&&self||{};_n.requestAnimationFrame===void 0&&(_n.setImmediate===void 0?_n.requestAnimationFrame=function(a){_n.setTimeout(a,0)}:_n.requestAnimationFrame=_n.setImmediate);function dr(){}function oi(a,y){var b=-1;return function(){var E=this,x=arguments;b!==-1&&_n.clearTimeout(b),b=bi(function(){b=-1,a.apply(E,x)},y)}}function bi(a,y){return _n.setTimeout(a,y)}function Pr(a){return _n.document.createElement(a)}function Lt(a){throw Error(a)}function ln(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Lt(a)}function Nr(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),Lt(b+" is not in the range "+y+": "+a)}function Er(a){_n.console&&_n.console.log(a)}function Yt(a){return typeof a=="object"&&a!==null}function Nn(a){return Array.isArray(a)||_n.NodeList&&a instanceof _n.NodeList||_n.HTMLCollection&&a instanceof _n.HTMLCollection}function Xr(a){return Array.prototype.slice.call(a)}function Ln(a,y,b){Array.isArray(a)?y>=a.length?a.push(b):a.splice(y,0,b):Lt("Cannot insert an object into an HTMLCollection or NodeList: "+b+" at "+y)}function Ve(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Lt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Rr(){var a=eo.pop();return a===void 0?[]:a}function kr(a){a.length=0,eo.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(Yt(a)&&a.constructor)return jn(a.constructor);return typeof a}function hi(a){var y=a;return Yt(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 jr(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 ar(a,y,b){Object.defineProperty(aa.prototype,a,{get:y,set:b})}function Qr(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 un=_n.navigator!==void 0&&0<_n.navigator.userAgent.indexOf("Trident/7"),Ti=_n.navigator!==void 0&&_n.navigator.platform!==void 0&&_n.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,eo=[];Object.freeze([]),dr.className="Util",dr.Dx="32ab5ff3b26f42dc0ed90f21472913b5",dr.adym="gojs.net",dr.vfo="28e645fdb266",dr.className="Util";function mn(a,y,b){vi(this),this.j=a,this.xa=y,this.o=b}mn.prototype.toString=function(){return"EnumValue."+this.xa};function wi(a,y){return y==null||y===""?null:a[y]}$n.Object.defineProperties(mn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),mn.className="EnumValue";function Di(){this.ew=[]}Di.prototype.toString=function(){return this.ew.join("")},Di.prototype.add=function(a){a!==""&&this.ew.push(a)},Di.className="StringBuilder";function gi(){}gi.className="PropertyCollection";var ki={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){_n.console&&_n.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 zi(){}zi.prototype.reset=function(){},zi.prototype.next=function(){return!1},zi.prototype.Ad=function(){return!1},zi.prototype.first=function(){return null},zi.prototype.any=function(){return!1},zi.prototype.all=function(){return!0},zi.prototype.each=function(){return this},zi.prototype.map=function(){return this},zi.prototype.filter=function(){return this},zi.prototype.de=function(){},zi.prototype.toString=function(){return"EmptyIterator"},$n.Object.defineProperties(zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),zi.prototype.first=zi.prototype.first,zi.prototype.hasNext=zi.prototype.Ad,zi.prototype.next=zi.prototype.next,zi.prototype.reset=zi.prototype.reset;var ro=null;zi.className="EmptyIterator",ro=new zi;function Gi(a){this.key=-1,this.value=a}Gi.prototype.reset=function(){this.key=-1},Gi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Gi.prototype.Ad=function(){return this.next()},Gi.prototype.first=function(){return this.key=0,this.value},Gi.prototype.any=function(a){return this.key=-1,a(this.value)},Gi.prototype.all=function(a){return this.key=-1,a(this.value)},Gi.prototype.each=function(a){return this.key=-1,a(this.value),this},Gi.prototype.map=function(a){return new Gi(a(this.value))},Gi.prototype.filter=function(a){return a(this.value)?new Gi(this.value):ro},Gi.prototype.de=function(){this.value=null},Gi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},$n.Object.defineProperties(Gi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Gi.prototype.first=Gi.prototype.first,Gi.prototype.hasNext=Gi.prototype.Ad,Gi.prototype.next=Gi.prototype.next,Gi.prototype.reset=Gi.prototype.reset,Gi.className="SingletonIterator";function Fi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Fi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Fi.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},Fi.prototype.Ad=function(){return this.next()},Fi.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},Fi.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},Fi.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},Fi.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},Fi.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 qn,a.s=b,a.xb(),a.iterator},Fi.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 qn,a.s=b,a.xb(),a.iterator},Fi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Fi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},$n.Object.defineProperties(Fi.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}}}),Fi.prototype.first=Fi.prototype.first,Fi.prototype.hasNext=Fi.prototype.Ad,Fi.prototype.next=Fi.prototype.next,Fi.prototype.reset=Fi.prototype.reset,Fi.className="ListIterator";function io(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}io.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},io.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)},io.prototype.Ad=function(){return this.next()},io.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},io.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},io.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},io.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},io.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 qn,a.s=b,a.xb(),a.iterator},io.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 qn,a.s=b,a.xb(),a.iterator},io.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},io.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},$n.Object.defineProperties(io.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),io.prototype.first=io.prototype.first,io.prototype.hasNext=io.prototype.Ad,io.prototype.next=io.prototype.next,io.prototype.reset=io.prototype.reset,io.className="ListIteratorBackwards";function qn(a){vi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}_e=qn.prototype,_e.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return this._isFrozen=!1,this},_e.toString=function(){return"List()#"+Oi(this)},_e.add=function(a){return a===null?this:(this._isFrozen&&ln(this,a),this.s.push(a),this.xb(),this)},_e.push=function(a){this.add(a)},_e.addAll=function(a){if(a===null)return this;this._isFrozen&&ln(this);var y=this.s;if(Nn(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},_e.clear=function(){this._isFrozen&&ln(this),this.s.length=0,this.xb()},_e.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},_e.has=function(a){return this.contains(a)},_e.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},_e.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Nr(a,"0 <= i < length",qn,"elt:i"),y[a]},_e.get=function(a){return this.M(a)},_e.cd=function(a,y){var b=this.s;(0>a||a>=b.length)&&Nr(a,"0 <= i < length",qn,"setElt:i"),this._isFrozen&&ln(this,a),b[a]=y},_e.set=function(a,y){this.cd(a,y)},_e.first=function(){var a=this.s;return a.length===0?null:a[0]},_e.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},_e.pop=function(){this._isFrozen&&ln(this);var a=this.s;return 0<a.length?a.pop():null},qn.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},qn.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},qn.prototype.each=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)a(y[E]);return this},qn.prototype.map=function(a){for(var y=new qn,b=[],E=this.s,x=E.length,z=0;z<x;z++)b.push(a(E[z]));return y.s=b,y.xb(),y},qn.prototype.filter=function(a){for(var y=new qn,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},_e=qn.prototype,_e.Gb=function(a,y){0>a&&Nr(a,">= 0",qn,"insertAt:i"),this._isFrozen&&ln(this,a);var b=this.s;a>=b.length?b.push(y):b.splice(a,0,y),this.xb()},_e.remove=function(a){if(a===null)return!1;this._isFrozen&&ln(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)},_e.delete=function(a){return this.remove(a)},_e.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Nr(a,"0 <= i < length",qn,"removeAt:i"),this._isFrozen&&ln(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},_e.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&&ln(this);for(var x=a,z=y+1;z<E;)b[x++]=b[z++];return b.length=E-(y-a+1),this.xb(),this},qn.prototype.copy=function(){var a=new qn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},_e=qn.prototype,_e.Fa=function(){for(var a=this.s,y=this.count,b=Array(y),E=0;E<y;E++)b[E]=a[E];return b},_e.Iv=function(){for(var a=new lr,y=this.s,b=this.count,E=0;E<b;E++)a.add(y[E]);return a},_e.sort=function(a){return this._isFrozen&&ln(this),this.s.sort(a),this.xb(),this},_e.zi=function(a,y,b){var E=this.s,x=E.length;y===void 0&&(y=0),b===void 0&&(b=x),this._isFrozen&&ln(this);var z=b-y;if(1>=z)return this;if((0>y||y>=x-1)&&Nr(y,"0 <= from < length",qn,"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},_e.reverse=function(){return this._isFrozen&&ln(this),this.s.reverse(),this.xb(),this},$n.Object.defineProperties(qn.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 ro;var a=this.Sa;return a!==null?(a.reset(),a):new Fi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return ro;var a=this.Hg;return a!==null?(a.reset(),a):new io(this)}}}),qn.prototype.reverse=qn.prototype.reverse,qn.prototype.sortRange=qn.prototype.zi,qn.prototype.sort=qn.prototype.sort,qn.prototype.toSet=qn.prototype.Iv,qn.prototype.toArray=qn.prototype.Fa,qn.prototype.removeRange=qn.prototype.removeRange,qn.prototype.removeAt=qn.prototype.mb,qn.prototype.delete=qn.prototype.delete,qn.prototype.remove=qn.prototype.remove,qn.prototype.insertAt=qn.prototype.Gb,qn.prototype.pop=qn.prototype.pop,qn.prototype.last=qn.prototype.jc,qn.prototype.first=qn.prototype.first,qn.prototype.set=qn.prototype.set,qn.prototype.setElt=qn.prototype.cd,qn.prototype.get=qn.prototype.get,qn.prototype.elt=qn.prototype.M,qn.prototype.indexOf=qn.prototype.indexOf,qn.prototype.has=qn.prototype.has,qn.prototype.contains=qn.prototype.contains,qn.prototype.clear=qn.prototype.clear,qn.prototype.addAll=qn.prototype.addAll,qn.prototype.push=qn.prototype.push,qn.prototype.add=qn.prototype.add,qn.prototype.thaw=qn.prototype.ka,qn.prototype.freeze=qn.prototype.freeze,qn.className="List";function Ui(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ui.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ui.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)},Ui.prototype.Ad=function(){return this.next()},Ui.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},Ui.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},Ui.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},Ui.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},Ui.prototype.map=function(a){var y=this.eg;y.Sa=null;var b=new qn;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},Ui.prototype.filter=function(a){var y=this.eg;y.Sa=null;var b=new qn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},Ui.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ui.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},$n.Object.defineProperties(Ui.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ui.prototype.first=Ui.prototype.first,Ui.prototype.hasNext=Ui.prototype.Ad,Ui.prototype.next=Ui.prototype.next,Ui.prototype.reset=Ui.prototype.reset,Ui.className="SetIterator";function lr(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"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}_e=lr.prototype,_e.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return this._isFrozen=!1,this},_e.toString=function(){return"Set()#"+Oi(this)},_e.add=function(a){if(a===null)return this;this._isFrozen&&ln(this,a);var y=a;return Yt(a)&&(y=Vi(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},_e.addAll=function(a){if(a===null)return this;if(this._isFrozen&&ln(this),Nn(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},_e.contains=function(a){if(a===null)return!1;var y=a;return Yt(a)&&(y=Oi(a),y===void 0)?!1:this.Tb[y]!==void 0},_e.has=function(a){return this.contains(a)},_e.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},_e.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},_e.first=function(){var a=this.ea;return a===null?null:a.value},lr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},lr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},lr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},lr.prototype.map=function(a){for(var y=new lr,b=this.ea;b!==null;)y.add(a(b.value)),b=b.va;return y},lr.prototype.filter=function(a){for(var y=new lr,b=this.ea;b!==null;){var E=b.value;a(E)&&y.add(E),b=b.va}return y},_e=lr.prototype,_e.remove=function(a){if(a===null)return!1;this._isFrozen&&ln(this,a);var y=a;if(Yt(a)&&(y=Oi(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},_e.delete=function(a){return this.remove(a)},_e.hp=function(a){if(a===null)return this;if(this._isFrozen&&ln(this),Nn(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},_e.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&ln(this);var y=new lr;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},_e.clear=function(){this._isFrozen&&ln(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},lr.prototype.copy=function(){var a=new lr,y=this.Tb,b;for(b in y)a.add(y[b].value);return a},lr.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},lr.prototype.Hv=function(){var a=new qn,y=this.Tb,b;for(b in y)a.add(y[b].value);return a};function vi(a){a.__gohashid=fo++}function Vi(a){var y=a.__gohashid;return y===void 0&&(y=fo++,a.__gohashid=y),y}function Oi(a){return a.__gohashid}$n.Object.defineProperties(lr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return ro;var a=this.Sa;return a!==null?(a.reset(),a):new Ui(this)}}}),lr.prototype.toList=lr.prototype.Hv,lr.prototype.toArray=lr.prototype.Fa,lr.prototype.clear=lr.prototype.clear,lr.prototype.retainAll=lr.prototype.pA,lr.prototype.removeAll=lr.prototype.hp,lr.prototype.delete=lr.prototype.delete,lr.prototype.remove=lr.prototype.remove,lr.prototype.first=lr.prototype.first,lr.prototype.containsAny=lr.prototype.Ty,lr.prototype.containsAll=lr.prototype.Sy,lr.prototype.has=lr.prototype.has,lr.prototype.contains=lr.prototype.contains,lr.prototype.addAll=lr.prototype.addAll,lr.prototype.add=lr.prototype.add,lr.prototype.thaw=lr.prototype.ka,lr.prototype.freeze=lr.prototype.freeze;var fo=1;lr.className="Set",lr.uniqueHash=vi,lr.hashIdUnique=Vi,lr.hashId=Oi;function co(a){this.ma=a,this.qa=a.Ja,this.sa=null}co.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},co.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)},co.prototype.Ad=function(){return this.next()},co.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},co.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},co.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},co.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},co.prototype.map=function(a){var y=this.ma;this.sa=null;var b=new qn;for(y=y.ea;y!==null;)b.add(a(y.key)),y=y.va;return b.iterator},co.prototype.filter=function(a){var y=this.ma;this.sa=null;var b=new qn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&b.add(E),y=y.va}return b.iterator},co.prototype.de=function(){this.value=this.key=null,this.qa=-1},co.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},$n.Object.defineProperties(co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),co.prototype.first=co.prototype.first,co.prototype.hasNext=co.prototype.Ad,co.prototype.next=co.prototype.next,co.prototype.reset=co.prototype.reset,co.className="MapKeySetIterator";function ji(a){lr.call(this),vi(this),this._isFrozen=!0,this.ma=a}Sn(ji,lr),_e=ji.prototype,_e.freeze=function(){return this},_e.ka=function(){return this},_e.toString=function(){return"MapKeySet("+this.ma.toString()+")"},_e.add=function(){Lt("This Set is read-only: "+this.toString())},_e.contains=function(a){return this.ma.contains(a)},_e.has=function(a){return this.contains(a)},_e.remove=function(){Lt("This Set is read-only: "+this.toString())},_e.delete=function(a){return this.remove(a)},_e.clear=function(){Lt("This Set is read-only: "+this.toString())},_e.first=function(){var a=this.ma.ea;return a!==null?a.key:null},ji.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},ji.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},ji.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},ji.prototype.map=function(a){for(var y=new lr,b=this.ma.ea;b!==null;)y.add(a(b.key)),b=b.va;return y},ji.prototype.filter=function(a){for(var y=new lr,b=this.ma.ea;b!==null;){var E=b.key;a(E)&&y.add(E),b=b.va}return y},ji.prototype.copy=function(){return new ji(this.ma)},ji.prototype.Iv=function(){var a=new lr,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},ji.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},ji.prototype.Hv=function(){var a=new qn,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},$n.Object.defineProperties(ji.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?ro:new co(this.ma)}}}),ji.prototype.toList=ji.prototype.Hv,ji.prototype.toArray=ji.prototype.Fa,ji.prototype.toSet=ji.prototype.Iv,ji.prototype.first=ji.prototype.first,ji.prototype.clear=ji.prototype.clear,ji.prototype.delete=ji.prototype.delete,ji.prototype.remove=ji.prototype.remove,ji.prototype.has=ji.prototype.has,ji.prototype.contains=ji.prototype.contains,ji.prototype.add=ji.prototype.add,ji.prototype.thaw=ji.prototype.ka,ji.prototype.freeze=ji.prototype.freeze,ji.className="MapKeySet";function zo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}zo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},zo.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)},zo.prototype.Ad=function(){return this.next()},zo.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},zo.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},zo.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},zo.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},zo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var b=new qn;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},zo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var b=new qn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},zo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},zo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},$n.Object.defineProperties(zo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),zo.prototype.first=zo.prototype.first,zo.prototype.hasNext=zo.prototype.Ad,zo.prototype.next=zo.prototype.next,zo.prototype.reset=zo.prototype.reset,zo.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 mr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}mr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},mr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},mr.prototype.Ad=function(){return this.next()},mr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},mr.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},mr.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},mr.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},mr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new qn;for(y=y.ea;y!==null;)b.add(a(y)),y=y.va;return b.iterator},mr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new qn;for(y=y.ea;y!==null;)a(y)&&b.add(y),y=y.va;return b.iterator},mr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},mr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},$n.Object.defineProperties(mr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),mr.prototype.first=mr.prototype.first,mr.prototype.hasNext=mr.prototype.Ad,mr.prototype.next=mr.prototype.next,mr.prototype.reset=mr.prototype.reset,mr.className="MapIterator";function wn(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"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}_e=wn.prototype,_e.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return this._isFrozen=!1,this},_e.toString=function(){return"Map()#"+Oi(this)},_e.add=function(a,y){this._isFrozen&&ln(this,a);var b=a;Yt(a)&&(b=Vi(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},_e.set=function(a,y){return this.add(a,y)},_e.addAll=function(a){if(a===null)return this;if(Nn(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 wn)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},_e.first=function(){return this.ea},wn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},wn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},wn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},wn.prototype.map=function(a){for(var y=new wn,b=this.ea;b!==null;)y.add(b.key,a(b)),b=b.va;return y},wn.prototype.filter=function(a){for(var y=new wn,b=this.ea;b!==null;)a(b)&&y.add(b.key,b.value),b=b.va;return y},_e=wn.prototype,_e.contains=function(a){var y=a;return Yt(a)&&(y=Oi(a),y===void 0)?!1:this.Tb[y]!==void 0},_e.has=function(a){return this.contains(a)},_e.I=function(a){var y=a;return Yt(a)&&(y=Oi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},_e.get=function(a){return this.I(a)},_e.remove=function(a){if(a===null)return!1;this._isFrozen&&ln(this,a);var y=a;if(Yt(a)&&(y=Oi(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},_e.delete=function(a){return this.remove(a)},_e.clear=function(){this._isFrozen&&ln(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()},wn.prototype.copy=function(){var a=new wn,y=this.Tb,b;for(b in y){var E=y[b];a.add(E.key,E.value)}return a},wn.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},wn.prototype.Lf=function(){return new ji(this)},$n.Object.defineProperties(wn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return ro;var a=this.Sa;return a!==null?(a.reset(),a):new mr(this)}},iteratorKeys:{get:function(){return 0>=this.count?ro:new co(this)}},iteratorValues:{get:function(){if(0>=this.count)return ro;var a=this.jf;return a!==null?(a.reset(),a):new zo(this)}}}),wn.prototype.toKeySet=wn.prototype.Lf,wn.prototype.toArray=wn.prototype.Fa,wn.prototype.clear=wn.prototype.clear,wn.prototype.delete=wn.prototype.delete,wn.prototype.remove=wn.prototype.remove,wn.prototype.get=wn.prototype.get,wn.prototype.getValue=wn.prototype.I,wn.prototype.has=wn.prototype.has,wn.prototype.contains=wn.prototype.contains,wn.prototype.first=wn.prototype.first,wn.prototype.addAll=wn.prototype.addAll,wn.prototype.set=wn.prototype.set,wn.prototype.add=wn.prototype.add,wn.prototype.thaw=wn.prototype.ka,wn.prototype.freeze=wn.prototype.freeze,wn.className="Map";function it(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Lt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Or,Wr,pi,di,ai;it.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},it.prototype.h=function(a,y){return this.x=a,this.y=y,this},it.prototype.sg=function(a,y){return this.x=a,this.y=y,this},it.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},it.prototype.copy=function(){var a=new it;return a.x=this.x,a.y=this.y,a},_e=it.prototype,_e.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function gr(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 it(b,x)}return new it}function pt(a){return a.x.toString()+" "+a.y.toString()}_e.toString=function(){return"Point("+this.x+","+this.y+")"},_e.D=function(a){return a instanceof it?this.x===a.x&&this.y===a.y:!1},_e.hi=function(a,y){return this.x===a&&this.y===y},_e.Xa=function(a){return en.B(this.x,a.x)&&en.B(this.y,a.y)},_e.add=function(a){return this.x+=a.x,this.y+=a.y,this},_e.re=function(a){return this.x-=a.x,this.y-=a.y,this},_e.offset=function(a,y){return this.x+=a,this.y+=y,this},it.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},_e=it.prototype,_e.scale=function(a,y){return this.x*=a,this.y*=y,this},_e.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},_e.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},_e.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},_e.ab=function(a){return yn(a.x-this.x,a.y-this.y)},_e.direction=function(a,y){return yn(a-this.x,y-this.y)};function yn(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}_e.Ry=function(a,y){return en.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},_e.fA=function(a,y,b,E){return en.qh(a,y,b,E,this.x,this.y,this),this},_e.gA=function(a,y){return en.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},_e.uA=function(a,y,b,E){return en.No(this.x,this.y,a,y,b,E,this),this},_e.vA=function(a,y){return en.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},_e.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},_e.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},_e.transform=function(a){return a.Ga(this),this};function xn(a,y){return y.Cd(a),a}function Hn(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 pn(a,y,b,E){return a=b-a,y=E-y,a*a+y*y}function tr(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)}_e.w=function(){return isFinite(this.x)&&isFinite(this.y)},it.alloc=function(){var a=Qn.pop();return a===void 0?new it:a},it.allocAt=function(a,y){var b=Qn.pop();return b===void 0?new it(a,y):(b.x=a,b.y=y,b)},it.free=function(a){Qn.push(a)},it.prototype.isReal=it.prototype.w,it.prototype.setSpot=it.prototype.yi,it.prototype.setRectSpot=it.prototype.xi,it.prototype.snapToGridPoint=it.prototype.vA,it.prototype.snapToGrid=it.prototype.uA,it.prototype.projectOntoLineSegmentPoint=it.prototype.gA,it.prototype.projectOntoLineSegment=it.prototype.fA,it.intersectingLineSegments=function(a,y,b,E,x,z,ne,ie){return en.Rl(a,y,b,E,x,z,ne,ie)},it.prototype.compareWithLineSegmentPoint=it.prototype.Ry,it.compareWithLineSegment=function(a,y,b,E,x,z){return en.Fl(a,y,b,E,x,z)},it.prototype.direction=it.prototype.direction,it.prototype.directionPoint=it.prototype.ab,it.prototype.normalize=it.prototype.normalize,it.prototype.distanceSquared=it.prototype.zd,it.prototype.distanceSquaredPoint=it.prototype.Bf,it.prototype.scale=it.prototype.scale,it.prototype.rotate=it.prototype.rotate,it.prototype.offset=it.prototype.offset,it.prototype.subtract=it.prototype.re,it.prototype.add=it.prototype.add,it.prototype.equalsApprox=it.prototype.Xa,it.prototype.equalTo=it.prototype.hi,it.prototype.equals=it.prototype.D,it.prototype.set=it.prototype.set,it.prototype.setTo=it.prototype.sg;var Qn=[];it.className="Point",it.parse=gr,it.stringify=pt,it.distanceLineSegmentSquared=Hn,it.distanceSquared=pn,it.direction=tr,it.Origin=Or=new it(0,0).ja(),it.InfiniteTopLeft=Wr=new it(-1/0,-1/0).ja(),it.InfiniteBottomRight=pi=new it(1/0,1/0).ja(),it.SixPoint=di=new it(6,6).ja(),it.NoPoint=ai=new it(NaN,NaN).ja(),it.parse=gr,it.stringify=pt,it.distanceLineSegmentSquared=Hn,it.distanceSquared=pn,it.direction=tr;function an(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Lt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var hr,Vr,Ai,si,Si,Ii,Bi;an.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},an.prototype.h=function(a,y){return this.width=a,this.height=y,this},an.prototype.sg=function(a,y){return this.width=a,this.height=y,this},an.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},an.prototype.copy=function(){var a=new an;return a.width=this.width,a.height=this.height,a},_e=an.prototype,_e.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ao(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 an(b,x)}return new an}function wo(a){return a.width.toString()+" "+a.height.toString()}_e.toString=function(){return"Size("+this.width+","+this.height+")"},_e.D=function(a){return a instanceof an?this.width===a.width&&this.height===a.height:!1},_e.hi=function(a,y){return this.width===a&&this.height===y},_e.Xa=function(a){return en.B(this.width,a.width)&&en.B(this.height,a.height)},_e.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},_e.w=function(){return isFinite(this.width)&&isFinite(this.height)},an.alloc=function(){var a=Ho.pop();return a===void 0?new an:a},an.free=function(a){Ho.push(a)},an.prototype.isReal=an.prototype.w,an.prototype.inflate=an.prototype.Bc,an.prototype.equalsApprox=an.prototype.Xa,an.prototype.equalTo=an.prototype.hi,an.prototype.equals=an.prototype.D,an.prototype.set=an.prototype.set,an.prototype.setTo=an.prototype.sg;var Ho=[];an.className="Size",an.parse=ao,an.stringify=wo,an.ZeroSize=hr=new an(0,0).ja(),an.OneSize=Vr=new an(1,1).ja(),an.SixSize=Ai=new an(6,6).ja(),an.EightSize=si=new an(8,8).ja(),an.TenSize=Si=new an(10,10).ja(),an.InfiniteSize=Ii=new an(1/0,1/0).ja(),an.NoSize=Bi=new an(NaN,NaN).ja(),an.parse=ao,an.stringify=wo;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 it?(b=a.x,a=a.y,y instanceof it?(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 an?(this.x=b,this.y=a,this.width=y.width,this.height=y.height):Lt("Incorrect second argument supplied to Rect constructor "+y)):Lt("Invalid arguments to Rect constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}_e=An.prototype,_e.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},_e.h=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this};function ko(a,y,b){a.width=y,a.height=b}_e.sg=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this},_e.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},_e.dd=function(a){return this.x=a.x,this.y=a.y,this},_e.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},_e=An.prototype,_e.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function po(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 Zi(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}_e.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},_e.D=function(a){return a instanceof An?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},_e.hi=function(a,y,b,E){return this.x===a&&this.y===y&&this.width===b&&this.height===E},_e.Xa=function(a){return en.B(this.x,a.x)&&en.B(this.y,a.y)&&en.B(this.width,a.width)&&en.B(this.height,a.height)};function Mi(a,y){return en.$(a.x,y.x)&&en.$(a.y,y.y)&&en.$(a.width,y.width)&&en.$(a.height,y.height)}_e.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},_e.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},_e.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},_e.offset=function(a,y){return this.x+=a,this.y+=y,this},_e.Bc=function(a,y){return Oo(this,y,a,y,a)},_e.Co=function(a){return Oo(this,a.top,a.right,a.bottom,a.left)},_e.Fv=function(a){return Oo(this,-a.top,-a.right,-a.bottom,-a.left)},_e.Hz=function(a,y,b,E){return Oo(this,a,y,b,E)};function Oo(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}_e.Ex=function(a){return Wo(this,a.x,a.y,a.width,a.height)},_e.Uu=function(a,y,b,E){return Wo(this,a,y,b,E)};function Wo(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}_e.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},_e.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 Wn(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))}_e.Ye=function(a){return vo(this,a.x,a.y,0,0)},_e.ed=function(a){return vo(this,a.x,a.y,a.width,a.height)},_e.Kv=function(a,y,b,E){return b===void 0&&(b=0),E===void 0&&(E=0),vo(this,a,y,b,E)};function vo(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}_e.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 za(a,y,b,E,x,z,ne,ie){return a>ne+x||x>b+a?!1:!(y>ie+z||z>E+y)}_e.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},_e.Mz=function(){return this.width===0&&this.height===0},An.alloc=function(){var a=Ls.pop();return a===void 0?new An:a},An.allocAt=function(a,y,b,E){var x=Ls.pop();return x===void 0?new An(a,y,b,E):x.h(a,y,b,E)},An.free=function(a){Ls.push(a)},$n.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 it(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new an(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new it(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 en.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 hs=null,il=null,Ls=[];An.className="Rect",An.parse=po,An.stringify=Zi,An.contains=ia,An.intersects=za,An.ZeroRect=hs=new An(0,0,0,0).ja(),An.NoRect=il=new An(NaN,NaN,NaN,NaN).ja(),An.parse=po,An.stringify=Zi,An.contains=ia,An.intersects=za;function to(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):Lt("Invalid arguments to Margin constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}to.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},to.prototype.sg=function(a,y,b,E){return this.top=a,this.right=y,this.bottom=b,this.left=E,this},to.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},to.prototype.copy=function(){var a=new to;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},_e=to.prototype,_e.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ra(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 to;for(var x=NaN;a[y]==="";)y++;if((E=a[y++])&&(x=parseFloat(E)),isNaN(x))return new to(b);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new to(b,x);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new to(b,x):new to(b,x,z,ne)}return new to}function Ma(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}_e.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},_e.D=function(a){return a instanceof to?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},_e.hi=function(a,y,b,E){return this.top===a&&this.right===y&&this.bottom===b&&this.left===E},_e.Xa=function(a){return en.B(this.top,a.top)&&en.B(this.right,a.right)&&en.B(this.bottom,a.bottom)&&en.B(this.left,a.left)},_e.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},to.alloc=function(){var a=_a.pop();return a===void 0?new to:a},to.free=function(a){_a.push(a)},to.prototype.isReal=to.prototype.w,to.prototype.equalsApprox=to.prototype.Xa,to.prototype.equalTo=to.prototype.hi,to.prototype.equals=to.prototype.D,to.prototype.set=to.prototype.set,to.prototype.setTo=to.prototype.sg;var ts=null,Oa=null,_a=[];to.className="Margin",to.parse=Ra,to.stringify=Ma,to.ZeroMargin=ts=new to(0,0,0,0).ja(),to.TwoMargin=Oa=new to(2,2,2,2).ja(),to.parse=Ra,to.stringify=Ma;function fi(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 Yi,ho,Io,Do,sa,Xi,Ss,pa,Ga,Fo,ga,Hs,da,Rs,ol,Xs,$a,Kl,nc,es,Pl,ll,ul,rc,yc,ns,ic,oc,Mu,Ou,Ms,Qs,fs,ks,yu,zs;fi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fi.prototype.sg=function(a,y,b,E){return this.x=a,this.y=y,this.offsetX=b,this.offsetY=E,this},fi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fi.prototype.copy=function(){var a=new fi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},_e=fi.prototype,_e.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function wa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ma(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Yi;if(a==="TopLeft")return ho;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Io;if(a==="TopRight")return Do;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return sa;if(a==="Center")return Xi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ss;if(a==="BottomLeft")return pa;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ga;if(a==="BottomRight")return Fo;if(a==="TopSide")return ga;if(a==="LeftSide")return Hs;if(a==="RightSide")return da;if(a==="BottomSide")return Rs;if(a==="TopBottomSides")return ol;if(a==="LeftRightSides")return Xs;if(a==="TopLeftSides")return $a;if(a==="TopRightSides")return Kl;if(a==="BottomLeftSides")return nc;if(a==="BottomRightSides")return es;if(a==="NotTopSide")return Pl;if(a==="NotLeftSide")return ll;if(a==="NotRightSide")return ul;if(a==="NotBottomSide")return rc;if(a==="AllSides")return yc;if(a==="Default")return ns;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 fi(b,x,z,ne)}return new fi}function Vo(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}_e.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(Yi)?"None":this.D(ho)?"TopLeft":this.D(Io)?"Top":this.D(Do)?"TopRight":this.D(sa)?"Left":this.D(Xi)?"Center":this.D(Ss)?"Right":this.D(pa)?"BottomLeft":this.D(Ga)?"Bottom":this.D(Fo)?"BottomRight":this.D(ga)?"TopSide":this.D(Hs)?"LeftSide":this.D(da)?"RightSide":this.D(Rs)?"BottomSide":this.D(ol)?"TopBottomSides":this.D(Xs)?"LeftRightSides":this.D($a)?"TopLeftSides":this.D(Kl)?"TopRightSides":this.D(nc)?"BottomLeftSides":this.D(es)?"BottomRightSides":this.D(Pl)?"NotTopSide":this.D(ll)?"NotLeftSide":this.D(ul)?"NotRightSide":this.D(rc)?"NotBottomSide":this.D(yc)?"AllSides":this.D(ns)?"Default":"None"},_e.D=function(a){return a instanceof fi?(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},_e.gv=function(){return new fi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},_e.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ic))a=Hs;else if(a.D(oc))a=da;else if(a.D(Mu))a=ga;else if(a.D(Ou))a=Rs;else return!1;return a=a.offsetY,(this.offsetY&a)===a},_e.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},_e.Mc=function(){return isNaN(this.x)||isNaN(this.y)},_e.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},_e.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},_e.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fi.alloc=function(){var a=cs.pop();return a===void 0?new fi:a},fi.free=function(a){cs.push(a)},fi.prototype.isDefault=fi.prototype.Xb,fi.prototype.isNone=fi.prototype.ys,fi.prototype.isSide=fi.prototype.$c,fi.prototype.isNoSpot=fi.prototype.Mc,fi.prototype.isSpot=fi.prototype.sb,fi.prototype.includesSide=fi.prototype.Hf,fi.prototype.opposite=fi.prototype.gv,fi.prototype.equals=fi.prototype.D,fi.prototype.set=fi.prototype.set,fi.prototype.setTo=fi.prototype.sg;var cs=[];fi.className="Spot",fi.parse=ma,fi.stringify=Vo,fi.None=Yi=wa(new fi(0,0,0,0),0).ja(),fi.Default=ns=wa(new fi(0,0,-1,0),-1).ja(),fi.TopLeft=ho=new fi(0,0,0,0).ja(),fi.TopCenter=Io=new fi(.5,0,0,0).ja(),fi.TopRight=Do=new fi(1,0,0,0).ja(),fi.LeftCenter=sa=new fi(0,.5,0,0).ja(),fi.Center=Xi=new fi(.5,.5,0,0).ja(),fi.RightCenter=Ss=new fi(1,.5,0,0).ja(),fi.BottomLeft=pa=new fi(0,1,0,0).ja(),fi.BottomCenter=Ga=new fi(.5,1,0,0).ja(),fi.BottomRight=Fo=new fi(1,1,0,0).ja(),fi.MiddleTop=Ms=Io,fi.MiddleLeft=Qs=sa,fi.MiddleRight=fs=Ss,fi.MiddleBottom=ks=Ga,fi.Top=Mu=Io,fi.Left=ic=sa,fi.Right=oc=Ss,fi.Bottom=Ou=Ga,fi.TopSide=ga=wa(new fi(0,0,1,1),1).ja(),fi.LeftSide=Hs=wa(new fi(0,0,1,2),1).ja(),fi.RightSide=da=wa(new fi(0,0,1,4),1).ja(),fi.BottomSide=Rs=wa(new fi(0,0,1,8),1).ja(),fi.TopBottomSides=ol=wa(new fi(0,0,1,9),1).ja(),fi.LeftRightSides=Xs=wa(new fi(0,0,1,6),1).ja(),fi.TopLeftSides=$a=wa(new fi(0,0,1,3),1).ja(),fi.TopRightSides=Kl=wa(new fi(0,0,1,5),1).ja(),fi.BottomLeftSides=nc=wa(new fi(0,0,1,10),1).ja(),fi.BottomRightSides=es=wa(new fi(0,0,1,12),1).ja(),fi.NotTopSide=Pl=wa(new fi(0,0,1,14),1).ja(),fi.NotLeftSide=ll=wa(new fi(0,0,1,13),1).ja(),fi.NotRightSide=ul=wa(new fi(0,0,1,11),1).ja(),fi.NotBottomSide=rc=wa(new fi(0,0,1,7),1).ja(),fi.AllSides=yc=wa(new fi(0,0,1,15),1).ja(),yu=new fi(.156,.156).ja(),zs=new fi(.844,.844).ja(),fi.parse=ma,fi.stringify=Vo;function Ri(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ri.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},Ri.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},Ri.prototype.copy=function(){var a=new Ri;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},Ri.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ri.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},Ri.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ri.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ri.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},Ri.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},Ri.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},Ri.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},_e=Ri.prototype,_e.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},_e.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},_e.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)},_e.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))},_e.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))},_e.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,Le=y*ne+b*se+pe,Me=E*z+b*ie+de,ze=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,Me),Se=Math.max(Se,Me),Me=Math.min(Le,ze),Le=Math.max(Le,ze),x=Math.min(x,b),Se=Math.max(Se,b),Me=Math.min(Me,y),Le=Math.max(Le,y),x=Math.min(x,z),Se=Math.max(Se,z),Me=Math.min(Me,E),Le=Math.max(Le,E),a.h(x,Me,Se-x,Le-Me),a},Ri.alloc=function(){var a=ps.pop();return a===void 0?new Ri:a},Ri.free=function(a){ps.push(a)},Ri.prototype.transformRect=Ri.prototype.pp,Ri.prototype.transformPoint=Ri.prototype.Ga,Ri.prototype.scale=Ri.prototype.scale,Ri.prototype.translate=Ri.prototype.translate,Ri.prototype.rotate=Ri.prototype.rotate,Ri.prototype.invert=Ri.prototype.Vj,Ri.prototype.multiplyInverted=Ri.prototype.bv,Ri.prototype.multiply=Ri.prototype.multiply,Ri.prototype.reset=Ri.prototype.reset,Ri.prototype.isIdentity=Ri.prototype.ws,Ri.prototype.equals=Ri.prototype.D,Ri.prototype.setTransform=Ri.prototype.setTransform,Ri.prototype.set=Ri.prototype.set;var ps=[];Ri.className="Transform",Ri.xF="54a702f3e53909c447824c6706603faf4c";var en={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=en.Uv;if(y===null){y=[];for(var b=0;2e3>=b;b++)y[b]=Math.sqrt(b);en.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(en.Yb(a,y,ne,ie,Se,b,E)&&en.Yb(a,y,ne,ie,Se,x,z))return en.Yb(a,y,ne,ie,Se,de,pe);var Le=(a+b)/2,Me=(y+E)/2,ze=(b+x)/2,qe=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(Le+ze)/2,b=(Me+qe)/2,ze=(ze+x)/2,qe=(qe+z)/2;var Ct=(E+ze)/2,yt=(b+qe)/2;return en.cs(a,y,Le,Me,E,b,Ct,yt,se,de,pe,Se)||en.cs(Ct,yt,ze,qe,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 tr(((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(en.Yb(a,y,ne,ie,se,b,E)&&en.Yb(a,y,ne,ie,se,x,z))vo(de,a,y,0,0),vo(de,ne,ie,0,0);else{var pe=(a+b)/2,Se=(y+E)/2,Le=(b+x)/2,Me=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Le)/2,b=(Se+Me)/2,Le=(Le+x)/2,Me=(Me+z)/2;var ze=(E+Le)/2,qe=(b+Me)/2;en.Dl(a,y,pe,Se,E,b,ze,qe,se,de),en.Dl(ze,qe,Le,Me,x,z,ne,ie,se,de)}return de},Qe:function(a,y,b,E,x,z,ne,ie,se,de){if(en.Yb(a,y,ne,ie,se,b,E)&&en.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,Le=(b+x)/2,Me=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Le)/2,b=(Se+Me)/2,Le=(Le+x)/2,Me=(Me+z)/2;var ze=(E+Le)/2,qe=(b+Me)/2;en.Qe(a,y,pe,Se,E,b,ze,qe,se,de),en.Qe(ze,qe,Le,Me,x,z,ne,ie,se,de)}return de},jv:function(a,y,b,E,x,z,ne,ie,se,de){if(en.Yb(a,y,x,z,de,b,E))return en.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 Le=(pe+b)/2,Me=(Se+E)/2;return en.jv(a,y,pe,Se,Le,Me,ne,ie,se,de)||en.jv(Le,Me,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(en.Yb(a,y,x,z,ne,b,E))vo(ie,a,y,0,0),vo(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;en.iv(a,y,se,de,pe,Se,ne,ie),en.iv(pe,Se,b,E,x,z,ne,ie)}return ie},ep:function(a,y,b,E,x,z,ne,ie){if(en.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;en.ep(a,y,se,de,pe,Se,ne,ie),en.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,Le,Me){if(en.Yb(a,y,ne,ie,Le,b,E)&&en.Yb(a,y,ne,ie,Le,x,z))return!en.Rl(a,y,ne,ie,se,de,pe,Se)||(Le=(a-ne)*(de-Se)-(y-ie)*(se-pe),Le===0)?!1:(Me.h(((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Le,((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Le),!0);var ze=(a+b)/2,qe=(y+E)/2,Ct=(b+x)/2,yt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(ze+Ct)/2,b=(qe+yt)/2,Ct=(Ct+x)/2,yt=(yt+z)/2;var Dt=(E+Ct)/2,Ot=(b+yt)/2,zt=1/0,$t=!1,In=0,Jr=0;return en.Eo(a,y,ze,qe,E,b,Dt,Ot,se,de,pe,Se,Le,Me)&&(a=(Me.x-se)*(Me.x-se)+(Me.y-de)*(Me.y-de),a<zt&&(zt=a,$t=!0,In=Me.x,Jr=Me.y)),en.Eo(Dt,Ot,Ct,yt,x,z,ne,ie,se,de,pe,Se,Le,Me)&&(Me.x-se)*(Me.x-se)+(Me.y-de)*(Me.y-de)<zt&&($t=!0,In=Me.x,Jr=Me.y),$t&&(Me.x=In,Me.y=Jr),$t},Fo:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se,Le){var Me=0;if(en.Yb(a,y,ne,ie,Le,b,E)&&en.Yb(a,y,ne,ie,Le,x,z)){if(Le=(a-ne)*(de-Se)-(y-ie)*(se-pe),Le===0)return Me;var ze=((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Le,qe=((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Le;if(ze>=pe)return Me;if((se>pe?se-pe:pe-se)<(de>Se?de-Se:Se-de)){if(y<ie?(se=y,a=ie):(se=ie,a=y),qe<se||qe>a)return Me}else if(a<ne?(se=a,a=ne):se=ne,ze<se||ze>a)return Me;0<Le?Me++:0>Le&&Me--}else{ze=(a+b)/2,qe=(y+E)/2;var Ct=(b+x)/2,yt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(ze+Ct)/2,b=(qe+yt)/2,Ct=(Ct+x)/2,yt=(yt+z)/2;var Dt=(E+Ct)/2,Ot=(b+yt)/2;Me+=en.Fo(a,y,ze,qe,E,b,Dt,Ot,se,de,pe,Se,Le),Me+=en.Fo(Dt,Ot,Ct,yt,x,z,ne,ie,se,de,pe,Se,Le)}return Me},qh:function(a,y,b,E,x,z,ne){return en.$(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)):en.$(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 en.B(a,b)&&en.B(y,E)?(se.h(a,y),!1):en.$(x,ne)?en.$(a,b)?(en.qh(a,y,b,E,x,z,se),!1):en.qh(a,y,b,E,x,(E-y)/(b-a)*(x-a)+y,se):(ie=(ie-z)/(ne-x),en.$(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),en.$(ie,ne)?(en.qh(a,y,b,E,x,z,se),!1):(x=(ne*a-ie*x+z-y)/(ne-ie),en.$(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)):en.qh(a,y,b,E,x,ne*(x-a)+y,se))))},MA:function(a,y,b,E,x){return en.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(Ct,yt){var Dt=(Ct-a)*(Ct-a)+(yt-y)*(yt-y);Dt<Se&&(Se=Dt,se.h(Ct,yt))}var Se=1/0;pe(se.x,se.y);var Le=0,Me=0,ze=0,qe=0;if(x<ne?(Le=x,Me=ne):(Le=ne,Me=x),z<ie?(ze=x,qe=ne):(ze=ne,qe=x),Le=(Me-Le)/2+de,de=(qe-ze)/2+de,x=(x+ne)/2,z=(z+ie)/2,Le===0||de===0)return se;if(.5>(b>a?b-a:a-b)){if(Le=1-(b-x)*(b-x)/(Le*Le),0>Le)return se;Le=Math.sqrt(Le),E=-de*Le+z,pe(b,de*Le+z),pe(b,E)}else{if(b=(E-y)/(b-a),E=1/(Le*Le)+b*b/(de*de),ie=2*b*(y-b*a)/(de*de)-2*b*z/(de*de)-2*x/(Le*Le),Le=ie*ie-4*E*(2*b*a*z/(de*de)-2*y*z/(de*de)+z*z/(de*de)+x*x/(Le*Le)-1+(y-b*a)*(y-b*a)/(de*de)),0>Le)return se;Le=Math.sqrt(Le),de=(-ie+Le)/(2*E),pe(de,b*de-b*a+y),Le=(-ie-Le)/(2*E),pe(Le,b*Le-b*a+y)}return se},Ff:function(a,y,b,E,x,z,ne,ie,se){var de=1e21,pe=a,Se=y;if(en.Ve(a,y,a,E,x,z,ne,ie,se)){var Le=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z);Le<de&&(de=Le,pe=se.x,Se=se.y)}return en.Ve(b,y,b,E,x,z,ne,ie,se)&&(Le=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),Le<de&&(de=Le,pe=se.x,Se=se.y)),en.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)),en.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 en.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)||en.Rl(a,y,se,y,x,z,ne,ie)||en.Rl(se,y,se,de,x,z,ne,ie)||en.Rl(se,de,a,de,x,z,ne,ie)||en.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>=en.Fl(a,y,b,E,x,z)*en.Fl(a,y,b,E,ne,ie)&&0>=en.Fl(x,z,ne,ie,a,y)*en.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(en.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),en.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 gi,um:new gi,Mf:new gi,Nf:0,vm:100};en.za=en.AA;function Ir(a){vi(this),this.l=2,a===void 0&&(a=Ir.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Ir.o?this.ee=new qn:(Ir.V===null&&(Ir.V=new qn().freeze()),this.ee=Ir.V),this.aq=this.ee.Ja,this.Ip=new An().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ho,this.gg=Fo,this.Rk=this.Sk=NaN,this.Uf=Cr}Ir.prototype.copy=function(){var a=new Ir;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===Ir.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},Ir.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Ir.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Ir.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},Ir.prototype.ka=function(){if(Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Ir.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},Ir.prototype.Xa=function(a){if(!(a instanceof Ir))return!1;if(this.type!==a.type)return this.type===Ir.j&&a.type===Ir.o?Tl(this,a):a.type===Ir.j&&this.type===Ir.o?Tl(a,this):!1;if(this.type===Ir.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 en.B(this.startX,a.startX)&&en.B(this.startY,a.startY)&&en.B(this.endX,a.endX)&&en.B(this.endY,a.endY)};function Tl(a,y){return a.type!==Ir.j||y.type!==Ir.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&en.B(a.startX,y.startX)&&en.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Zo&&en.B(a.endX,y.endX)&&en.B(a.endY,y.endY))))}Ir.ia=function(a){return a.toString()},Ir.prototype.qb=function(a){a.classType===Ir&&(this.type=a)},Ir.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Ir.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 Ir.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 Ir.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 Ir.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()}},Ir.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},Ir.parse=function(a,y){function b(){return qe>=zt-1?!0:de[qe+1].match($t)!==null}function E(){return qe++,de[qe]}function x($i){var _i=parseFloat(E()),Uo=parseFloat(E());Ct===Ct.toLowerCase()&&(_i=Ot.x+_i,Uo=Ot.y+Uo),$i.h(_i,Uo)}function z(){return x(Ot),Ot}function ne(){return x(Dt),Dt}function ie(){var $i=yt.toLowerCase();return $i!=="c"&&$i!=="s"&&$i!=="q"&&$i!=="t"?Ot:new it(2*Ot.x-Dt.x,2*Ot.y-Dt.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=Rr();for(var Se="",Le=!1,Me=0;Me<pe.length;Me++){var ze=pe[Me];ze!=="."||Le?ze==="."?(se.push(Se),Se="."):Se+=ze:(Le=!0,Se+=ze)}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,kr(se)}}var qe=-1,Ct="",yt="";se=new it(0,0);var Dt=new it(0,0),Ot=new it(0,0),zt=de.length;a=BS(null),Le=Se=pe=!1,Me=!0,ze=null;for(var $t=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(qe>=zt-1);)if(yt=Ct,Ct=E(),Ct!=="")switch(Ct.toUpperCase()){case"X":Me=!0,Se=pe=!1;break;case"M":for(ze=z(),a.mc===null||Me===!0?(mg(a,ze.x,ze.y,pe,!Se,Le),Me=!1):a.moveTo(ze.x,ze.y),se.assign(Ot);!b();)ze=z(),a.lineTo(ze.x,ze.y);break;case"L":for(;!b();)ze=z(),a.lineTo(ze.x,ze.y);break;case"H":for(;!b();)Ot=new it((Ct===Ct.toLowerCase()?Ot.x:0)+parseFloat(E()),Ot.y),a.lineTo(Ot.x,Ot.y);break;case"V":for(;!b();)Ot=new it(Ot.x,(Ct===Ct.toLowerCase()?Ot.y:0)+parseFloat(E())),a.lineTo(Ot.x,Ot.y);break;case"C":for(;!b();){ze=new it,x(ze);var In=ne(),Jr=z();Th(a,ze.x,ze.y,In.x,In.y,Jr.x,Jr.y)}break;case"S":for(;!b();)ze=ie(),In=ne(),Jr=z(),Th(a,ze.x,ze.y,In.x,In.y,Jr.x,Jr.y);break;case"Q":for(;!b();)ze=ne(),In=z(),d0(a,ze.x,ze.y,In.x,In.y);break;case"T":for(;!b();)Dt=ze=ie(),In=z(),d0(a,ze.x,ze.y,In.x,In.y);break;case"B":for(;!b();){ze=parseFloat(E()),In=parseFloat(E()),Jr=parseFloat(E());var mi=parseFloat(E()),ui=parseFloat(E()),Ur=ui,pr=!1;b()||(Ur=parseFloat(E()),b()||(pr=parseFloat(E())!==0)),Ct===Ct.toLowerCase()&&(Jr+=Ot.x,mi+=Ot.y),a.arcTo(ze,In,Jr,mi,ui,Ur,pr)}break;case"A":for(;!b();)ze=Math.abs(parseFloat(E())),In=Math.abs(parseFloat(E())),Jr=parseFloat(E()),ui=mi=!1,pr=Ur=0,Ur=E(),Ur.length===1?(mi=!!parseFloat(Ur),ui=!!parseFloat(E()),Ur=parseFloat(E())):Ur.length===2?(mi=!!parseFloat(Ur[0]),ui=!!parseFloat(Ur[1]),Ur=parseFloat(E())):(mi=!!parseFloat(Ur[0]),ui=!!parseFloat(Ur[1]),Ur=parseFloat(Ur.slice(2))),pr=parseFloat(E()),Ct===Ct.toLowerCase()&&(Ur=Ot.x+Ur,pr=Ot.y+pr),Ot.h(Ur,pr),dE(a,ze,In,Jr,mi,ui,Ur,pr);break;case"Z":cE(a),Ot.assign(se);break;case"F":for(ze="",In=1;de[qe+In];)if(de[qe+In]==="0")Le=!0,In++;else if(de[qe+In].match(/[Uu]/)!==null)In++;else if(de[qe+In].match($t)===null)In++;else{ze=de[qe+In];break}ze.match(/[Mm]/)?pe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(ze="",In=1;de[qe+In];)if(de[qe+In].match(/[Ff]/)!==null)In++;else if(de[qe+In].match($t)===null)In++;else{ze=de[qe+In];break}ze.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},Ir.Ha=function(a,y){for(var b=a.length,E=it.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}it.free(E)},Ir.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Ir.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},Ir.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Ir.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),Su(this,a,!1),vo(a,0,0,0,0),a.freeze()},Ir.prototype.ix=function(){var a=new An;return Su(this,a,!0),a};function Su(a,y,b){switch(a.type){case Ir.j:case Ir.u:case Ir.F:b?y.h(a.od,a.pd,0,0):vo(y,a.od,a.pd,0,0),vo(y,a.Dc,a.Ec,0,0);break;case Ir.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):vo(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 Zo:case ua:se=Se.endX,de=Se.endY,vo(y,se,de,0,0);break;case Ya:en.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 cl:en.iv(se,de,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,y),se=Se.endX,de=Se.endY;break;case Ia:case Sl:var Le=Se.type===Ia?bs(Se,z):Js(Se,z,se,de),Me=Le.length;if(Me===0){se=Se.type===Ia?Se.centerX:Se.endX,de=Se.type===Ia?Se.centerY:Se.endY,vo(y,se,de,0,0);break}Se=null;for(var ze=0;ze<Me;ze++)Se=Le[ze],en.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:Lt("Unknown Segment type: "+Se.type)}}}break;default:Lt("Unknown Geometry type: "+a.type)}}Ir.prototype.normalize=function(){this._isFrozen&&ln(this);var a=this.ix();return this.offset(-a.x,-a.y),new it(-a.x,-a.y)},Ir.prototype.offset=function(a,y){return this._isFrozen&&ln(this),this.transform(1,0,0,1,a,y),this},Ir.prototype.scale=function(a,y){return this._isFrozen&&ln(this),this.transform(a,0,0,y,0,0),this},Ir.prototype.rotate=function(a,y,b){this._isFrozen&&ln(this),y===void 0&&(y=0),b===void 0&&(b=0);var E=Ri.alloc();return E.reset(),E.rotate(a,y,b),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Ri.free(E),this},_e=Ir.prototype,_e.transform=function(a,y,b,E,x,z){switch(this.type){case Ir.j:case Ir.u:case Ir.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 Ir.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 Le=Se.length,Me=0;Me<Le;Me++){var ze=Se[Me];switch(ze.type){case Zo:case ua:ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z;break;case Ya:ne=ze.point1X,ie=ze.point1Y,ze.point1X=ne*a+ie*b+x,ze.point1Y=ne*y+ie*E+z,ne=ze.point2X,ie=ze.point2Y,ze.point2X=ne*a+ie*b+x,ze.point2Y=ne*y+ie*E+z,ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z;break;case cl:ne=ze.point1X,ie=ze.point1Y,ze.point1X=ne*a+ie*b+x,ze.point1Y=ne*y+ie*E+z,ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z;break;case Ia:ne=ze.centerX,ie=ze.centerY,ze.centerX=ne*a+ie*b+x,ze.centerY=ne*y+ie*E+z,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),ze.startAngle+=ne),0>a&&(ze.startAngle=180-ze.startAngle,ze.sweepAngle=-ze.sweepAngle),0>E&&(ze.startAngle=-ze.startAngle,ze.sweepAngle=-ze.sweepAngle),ze.radiusX*=Math.sqrt(a*a+b*b),ze.radiusY!==void 0&&(ze.radiusY*=Math.sqrt(y*y+E*E));break;case Sl:if(ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z,ze.radiusX===0||ze.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),ze.xAxisRotation+=ne),0>a&&(ze.xAxisRotation=180-ze.xAxisRotation,ze.isClockwiseArc=!ze.isClockwiseArc),0>E&&(ze.xAxisRotation=-ze.xAxisRotation,ze.isClockwiseArc=!ze.isClockwiseArc),ze.radiusX*=Math.sqrt(a*a+b*b),ze.radiusY*=Math.sqrt(y*y+E*E);break;default:Lt("Unknown Segment type: "+ze.type)}}}}return this._isInvalidBounds=!0,this},_e.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 Ir.j:return en.Yb(b,E,x,z,y,a.x,a.y);case Ir.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 Ir.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 Ir.o:return ja(this,a,y,!0,!1);default:return!1}};function ja(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,Le=a.figures.s,Me=Le.length,ze=0;ze<Me;ze++){var qe=Le[ze],Ct=!qe.isEvenOdd;if(qe.isFilled){if(E&&qe.ca(z,y,b))return!0;var yt=qe.segments;se=qe.startX,de=qe.startY;for(var Dt=se,Ot=de,zt=yt.s,$t=0;$t<=yt.length;$t++){var In=void 0;if($t!==yt.length){In=zt[$t];var Jr=In.type;a=In.endX,Se=In.endY}else Jr=Zo,a=Dt,Se=Ot;switch(Jr){case ua:if(Dt=rs(z,y,ne,y,se,de,Dt,Ot),isNaN(Dt))return!0;ie+=Dt,Dt=a,Ot=Se;break;case Zo:if(se=rs(z,y,ne,y,se,de,a,Se),isNaN(se))return!0;ie+=se;break;case Ya:pe=en.Fo(se,de,In.point1X,In.point1Y,In.point2X,In.point2Y,a,Se,ne,y,z,y,.5),ie+=pe;break;case cl:pe=en.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 Sl:Jr=In.type===Ia?bs(In,qe):Js(In,qe,se,de);var mi=Jr.length;if(mi===0){if(se=rs(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 ui=0;ui<mi;ui++){if(In=Jr[ui],ui===0){if(pe=rs(z,y,ne,y,se,de,In[0],In[1]),isNaN(pe))return!0;ie+=pe}pe=en.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:Lt("Unknown Segment type: "+In.type)}se=a,de=Se}if(Ct){if(ie!==0)return!0}else if(ie%2!==0)return!0;ie=0}else if(qe.ca(z,y,x?b:b+2))return!0}return!1}function rs(a,y,b,E,x,z,ne,ie){if(en.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 Al(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}_e.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new it),this.type===Ir.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},_e.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Ir.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},_e.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Ir.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},_e.xx=function(a){if(this.type===Ir.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=it.alloc();return en.qh(y,b,E,x,z,a,ie),a=ie.x,z=ie.y,it.free(ie),Math.sqrt(((a-y)*(a-y)+(z-b)*(z-b))/ne)}}else if(this.type===Ir.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=it.alloc(),x=1/0,ie=ne=0,se=y.length;for(var pe=de=0,Se=0;Se<se;Se++)for(var Le=y[Se],Me=b[Se],ze=Le.length,qe=0;qe<ze;qe+=2){var Ct=Le[qe],yt=Le[qe+1];if(qe!==0){en.qh(de,pe,Ct,yt,a.x,a.y,E);var Dt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Dt<x&&(x=Dt,ne=ie,ne+=Math.sqrt((E.x-de)*(E.x-de)+(E.y-pe)*(E.y-pe))),ie+=Me[(qe-2)/2]}de=Ct,pe=yt}return it.free(E),a=ne/z,0>a?0:1<a?1:a}return 0};function Fl(a){if(a.tk===null){var y=a.tk=[],b=a.ym=[],E=[],x=[];if(a.type===Ir.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===Ir.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===Ir.F){var z=new Wa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new Eo(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=bs(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];en.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(ac(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 Le=de[Se];switch(Le.type){case ua:4<=E.length&&(y.push(E),b.push(ac(E))),E=[],E.push(Le.endX),E.push(Le.endY),ne=Le.endX,z=Le.endY,ie=ne,se=z;break;case Zo:E.push(Le.endX),E.push(Le.endY),ne=Le.endX,z=Le.endY;break;case Ya:en.Qe(ne,z,Le.point1X,Le.point1Y,Le.point2X,Le.point2Y,Le.endX,Le.endY,.5,E),ne=Le.endX,z=Le.endY;break;case cl:en.ep(ne,z,Le.point1X,Le.point1Y,Le.endX,Le.endY,.5,E),ne=Le.endX,z=Le.endY;break;case Ia:var Me=bs(Le,x),ze=Me.length;if(ze===0){E.push(Le.centerX),E.push(Le.centerY),ne=Le.centerX,z=Le.centerY;break}for(var qe=0;qe<ze;qe++){var Ct=Me[qe];en.Qe(ne,z,Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],.5,E),ne=Ct[6],z=Ct[7]}break;case Sl:if(Me=Js(Le,x,ne,z),ze=Me.length,qe=Le.endX,Ct=Le.endY,ze===0){E.push(qe),E.push(Ct),ne=qe,z=Ct;break}for(qe=0;qe<ze;qe++)Ct=Me[qe],en.Qe(ne,z,Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],.5,E),ne=Ct[6],z=Ct[7];break;default:Lt("Segment not of valid type: "+Le.type)}Le.isClosed&&(E.push(ie),E.push(se))}4<=E.length&&(y.push(E),b.push(ac(E)))}}}function ac(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(pn(b,E,ne,ie))),b=ne,E=ie}return y}_e.add=function(a){return this.ee.add(a),this},_e.pm=function(a,y,b,E,x,z,ne,ie){return this._isFrozen&&ln(this),this.fg=new fi(a,y,x,z).freeze(),this.gg=new fi(b,E,ne,ie).freeze(),this},$n.Object.defineProperties(Ir.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 Fl(this),this.tk}},flattenedLengths:{get:function(){return Fl(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Ir.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===Ir.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&&ln(this,a),this.na=a,a===Ir.o?this.ee=new qn:(Ir.V===null&&(Ir.V=new qn().freeze()),this.ee=Ir.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&ln(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&ln(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&ln(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&ln(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&ln(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&ln(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&ln(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&ln(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Ir.prototype.setSpots=Ir.prototype.pm,Ir.prototype.add=Ir.prototype.add,Ir.prototype.getFractionForPoint=Ir.prototype.xx,Ir.prototype.getPointAndAngleAlongPath=Ir.prototype.Qu,Ir.prototype.getAngleAlongPath=Ir.prototype.wx,Ir.prototype.getPointAlongPath=Ir.prototype.Pu,Ir.prototype.containsPoint=Ir.prototype.ca,Ir.prototype.transform=Ir.prototype.transform,Ir.prototype.rotate=Ir.prototype.rotate,Ir.prototype.scale=Ir.prototype.scale,Ir.prototype.offset=Ir.prototype.offset,Ir.prototype.normalize=Ir.prototype.normalize,Ir.prototype.computeBoundsWithoutOrigin=Ir.prototype.ix,Ir.prototype.equalsApprox=Ir.prototype.Xa,Ir.className="Geometry",Ir.j=new mn(Ir,"Line",0),Ir.u=new mn(Ir,"Rectangle",1),Ir.F=new mn(Ir,"Ellipse",2),Ir.o=new mn(Ir,"Path",3),Ir.V=null,Ir.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Ir.className="Geometry",Ir.stringify=Ir.ia,Ir.fillPath=Ir.nb,Ir.parse=Ir.parse,Ir.Line=Ir.j,Ir.Rectangle=Ir.u,Ir.Ellipse=Ir.F,Ir.Path=Ir.o;function Wa(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 qn,this.sr=this.pl.Ja,this.fw=null}Wa.prototype.copy=function(){var a=new Wa;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},_e=Wa.prototype,_e.Xa=function(a){if(!(a instanceof Wa&&en.B(this.startX,a.startX)&&en.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},_e.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},_e.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},_e.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},_e.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},_e.add=function(a){return this.pl.add(a),this},_e.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 ua:z=pe.endX,ne=pe.endY,E=pe.endX,x=pe.endY;break;case Zo:if(en.Yb(E,x,pe.endX,pe.endY,b,a,y))return!0;E=pe.endX,x=pe.endY;break;case Ya:if(en.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 cl:if(en.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 Sl:var Se=pe.type===Ia?bs(pe,this):Js(pe,this,E,x),Le=Se.length,Me=pe.type===Ia?pe.centerX:pe.endX,ze=pe.type===Ia?pe.centerY:pe.endY;if(Le===0){if(en.Yb(E,x,Me,ze,b,a,y))return!0;E=Me,x=ze;break}for(Me=null,ze=0;ze<Le;ze++)if(Me=Se[ze],ze===0&&en.Yb(E,x,Me[0],Me[1],b,a,y)||en.cs(Me[0],Me[1],Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],.5,a,y,b))return!0;Me!==null&&(E=Me[6],x=Me[7]);break;default:Lt("Unknown Segment type: "+pe.type)}if(pe.isClosed&&(E!==z||x!==ne)&&en.Yb(E,x,z,ne,b,a,y))return!0}return!1},$n.Object.defineProperties(Wa.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&&ln(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&ln(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&ln(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&ln(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&ln(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&ln(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Wa.prototype.add=Wa.prototype.add,Wa.prototype.equalsApprox=Wa.prototype.Xa,Wa.className="PathFigure";function Eo(a,y,b,E,x,z,ne,ie){vi(this),a===void 0&&(a=Zo),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===Sl?(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}Eo.prototype.copy=function(){var a=new Eo;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},_e=Eo.prototype,_e.Xa=function(a){if(!(a instanceof Eo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ua:case Zo:return en.B(this.endX,a.endX)&&en.B(this.endY,a.endY);case Ya:return en.B(this.endX,a.endX)&&en.B(this.endY,a.endY)&&en.B(this.point1X,a.point1X)&&en.B(this.point1Y,a.point1Y)&&en.B(this.point2X,a.point2X)&&en.B(this.point2Y,a.point2Y);case cl:return en.B(this.endX,a.endX)&&en.B(this.endY,a.endY)&&en.B(this.point1X,a.point1X)&&en.B(this.point1Y,a.point1Y);case Ia:return en.B(this.startAngle,a.startAngle)&&en.B(this.sweepAngle,a.sweepAngle)&&en.B(this.centerX,a.centerX)&&en.B(this.centerY,a.centerY)&&en.B(this.radiusX,a.radiusX)&&en.B(this.radiusY,a.radiusY);case Sl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&en.B(this.xAxisRotation,a.xAxisRotation)&&en.B(this.endX,a.endX)&&en.B(this.endY,a.endY)&&en.B(this.radiusX,a.radiusX)&&en.B(this.radiusY,a.radiusY);default:return!1}},_e.qb=function(a){a.classType===Eo&&(this.type=a)},_e.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ua:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Zo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ya: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 cl: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 Sl: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":"")},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return this._isFrozen=!1,this},_e.close=function(){return this.isClosed=!0,this};function bs(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=en.jx(0,0,b<E?b:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(b!==E){var ne=Ri.alloc();ne.reset(),b<E?ne.scale(1,E/b):ne.scale(b/E,1),Ir.Ha(z,ne),Ri.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 Js(a,y,b,E){function x(qe,Ct,yt,Dt){return(qe*Dt<Ct*yt?-1:1)*Math.acos((qe*yt+Ct*Dt)/(Math.sqrt(qe*qe+Ct*Ct)*Math.sqrt(yt*yt+Dt*Dt)))}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),Le=Math.sin(ne),Me=Se*(b-de)/2+Le*(E-pe)/2;ne=-Le*(b-de)/2+Se*(E-pe)/2;var ze=Me*Me/(y*y)+ne*ne/(z*z);return 1<ze&&(y*=Math.sqrt(ze),z*=Math.sqrt(ze)),ze=(ie===se?-1:1)*Math.sqrt((y*y*z*z-y*y*ne*ne-z*z*Me*Me)/(y*y*ne*ne+z*z*Me*Me)),isNaN(ze)&&(ze=0),ie=ze*y*ne/z,ze=ze*-z*Me/y,isNaN(ie)&&(ie=0),isNaN(ze)&&(ze=0),b=(b+de)/2+Se*ie-Le*ze,E=(E+pe)/2+Le*ie+Se*ze,pe=x(1,0,(Me-ie)/y,(ne-ze)/z),Se=(Me-ie)/y,de=(ne-ze)/z,Me=(-Me-ie)/y,ie=(-ne-ze)/z,ne=x(Se,de,Me,ie),Me=(Se*Me+de*ie)/(Math.sqrt(Se*Se+de*de)*Math.sqrt(Me*Me+ie*ie)),-1>=Me?ne=Math.PI:1<=Me&&(ne=0),!se&&0<ne&&(ne-=2*Math.PI),se&&0>ne&&(ne+=2*Math.PI),se=y>z?1:y/z,Me=y>z?z/y:1,y=en.jx(0,0,y>z?y:z,pe,pe+ne,!0),z=Ri.alloc(),z.reset(),z.translate(b,E),z.rotate(a.Ne,0,0),z.scale(se,Me),Ir.Ha(y,z),Ri.free(z),a.ae=y,a.ae}$n.Object.defineProperties(Eo.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&&ln(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ln(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&ln(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ln(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ln(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&ln(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&ln(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ln(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ln(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Nr(a,">= zero",Eo,"radiusX"),this._isFrozen&&ln(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Nr(a,">= zero",Eo,"radiusY"),this._isFrozen&&ln(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ln(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&&ln(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&&ln(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&&ln(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&&ln(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Eo.prototype.equalsApprox=Eo.prototype.Xa;var ua=new mn(Eo,"Move",0),Zo=new mn(Eo,"Line",1),Ya=new mn(Eo,"Bezier",2),cl=new mn(Eo,"QuadraticBezier",3),Ia=new mn(Eo,"Arc",4),Sl=new mn(Eo,"SvgArc",4);Eo.className="PathSegment",Eo.Move=ua,Eo.Line=Zo,Eo.Bezier=Ya,Eo.QuadraticBezier=cl,Eo.Arc=Ia,Eo.SvgArc=Sl;function Es(){this.H=null,this.xu=new it(0,0).freeze(),this.mt=new it(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}Es.prototype.copy=function(){var a=new Es;return this.clone(a)},Es.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},Es.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},Es.prototype.So=function(a,y){var b=this.diagram;return b===null||Nf(b,a,y),y},Es.prototype.Bz=function(a,y){var b=this.diagram;return b===null||(Nf(b,a,y),y.assign(b.Ps(y))),y},$n.Object.defineProperties(Es.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}}}),Es.prototype.getMultiTouchDocumentPoint=Es.prototype.Bz,Es.prototype.getMultiTouchViewPoint=Es.prototype.So,Es.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},$n.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 va(){this.Fm=oa,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}va.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},va.prototype.copy=function(){var a=new va;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=Yt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Yt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Yt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Yt(y)&&typeof y.J=="function"?y.J():y,a},va.prototype.qb=function(a){a.classType===va&&(this.change=a)},va.prototype.toString=function(){var a="";return a=this.change===Os?a+"* ":this.change===oa?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===Os?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},va.prototype.I=function(a){return a?this.oldValue:this.newValue},va.prototype.Dz=function(a){return a?this.oldParam:this.newParam},va.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},va.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},va.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},va.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},$n.Object.defineProperties(va.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===Os&&(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}}}),va.prototype.redo=va.prototype.redo,va.prototype.canRedo=va.prototype.canRedo,va.prototype.undo=va.prototype.undo,va.prototype.canUndo=va.prototype.canUndo,va.prototype.getParam=va.prototype.Dz,va.prototype.getValue=va.prototype.I,va.prototype.clear=va.prototype.clear;var Os=new mn(va,"Transaction",-1),oa=new mn(va,"Property",0),Ta=new mn(va,"Insert",1),La=new mn(va,"Remove",2);va.className="ChangedEvent",va.Transaction=Os,va.Property=oa,va.Insert=Ta,va.Remove=La;function Za(){this.o=new qn().freeze(),this.xa="",this.j=!1}Za.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},Za.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()},Za.prototype.canUndo=function(){return this.isComplete},Za.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()}},Za.prototype.canRedo=function(){return this.isComplete},Za.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()}},Za.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new wn,b=0;b<a.count;b++){var E=a.M(b);if(E!==null&&E.change===oa&&E.object){var x=y.get(E.object);x||(x=new wn,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()}},$n.Object.defineProperties(Za.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}}}),Za.prototype.optimize=Za.prototype.ak,Za.prototype.redo=Za.prototype.redo,Za.prototype.canRedo=Za.prototype.canRedo,Za.prototype.undo=Za.prototype.undo,Za.prototype.canUndo=Za.prototype.canUndo,Za.prototype.clear=Za.prototype.clear,Za.className="Transaction";function na(){this.Pt=new lr,this.Jd=!1,this.u=new qn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new qn().freeze(),this.hl=new qn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}na.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},na.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},na.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},_e=na.prototype,_e.Xw=function(a){this.Pt.add(a)},_e.Rx=function(a){this.Pt.remove(a)},_e.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},_e.eb=function(a){return a===void 0&&(a=""),sc(this,!0,a)},_e.Kf=function(){return sc(this,!1,"")};function sc(a,y,b){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Er("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}_e.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()}},na.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},na.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){Er("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},na.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},na.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){Er("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},na.prototype.Ob=function(a,y,b){b===void 0&&(b=null);var E=new va;for(E.change=Os,E.propertyName=a,E.object=b,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},na.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Za);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||Er("Change not within a transaction: "+b.toString()))}},na.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},$n.Object.defineProperties(na.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}}}),na.prototype.handleChanged=na.prototype.Tu,na.prototype.redo=na.prototype.redo,na.prototype.undo=na.prototype.undo,na.prototype.canUndo=na.prototype.canUndo,na.prototype.discardHistoryAfterIndex=na.prototype.lx,na.prototype.rollbackTransaction=na.prototype.Kf,na.prototype.commitTransaction=na.prototype.eb,na.prototype.startTransaction=na.prototype.Ea,na.prototype.removeModel=na.prototype.Rx,na.prototype.addModel=na.prototype.Xw,na.prototype.clear=na.prototype.clear,na.className="UndoManager";function bo(){vi(this),this.H=Jc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Es,this.Zr=-1}bo.prototype.toString=function(){return this.name!==""?this.name+" Tool":jn(this.constructor)},bo.prototype.updateAdornments=function(){},bo.prototype.canStart=function(){return this.isEnabled},bo.prototype.doStart=function(){},bo.prototype.doActivate=function(){this.isActive=!0},bo.prototype.doDeactivate=function(){this.isActive=!1},bo.prototype.doStop=function(){},bo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},bo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},bo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},bo.prototype.doMouseMove=function(){},bo.prototype.doMouseUp=function(){this.stopTool()},bo.prototype.doMouseWheel=function(){},bo.prototype.canStartMultiTouch=function(){return!0},bo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,it.allocAt(NaN,NaN)),E=y.So(1,it.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}it.free(b),it.free(E)},bo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,it.allocAt(NaN,NaN)),E=y.So(1,it.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 it((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}it.free(b),it.free(E)},bo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},bo.prototype.doKeyUp=function(){},bo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},bo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},bo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,b=a.Ol(y.documentPoint,!1);if(b!==null){if(Ti?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||(Ti?y.meta:y.control)||y.shift||a.clearSelection()}},bo.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,Dc(a,E,b),E.handled};function Dc(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)}}}bo.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}},bo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},bo.prototype.doCurrentObjectChanged=function(){},bo.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===bu&&!y.shift||x===Bu&&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===bu&&y.shift||x===Bu&&!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)}}},bo.prototype.doWheelChange=function(a,y,b){a.position.D(y)&&b.event.wheelDeltaX===0||(b.bubbles=!1)},bo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var b=this,E=y.clone(this.yy);this.Zr=bi(function(){b.doWaitAfter(E)},a)},bo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&_n.clearTimeout(this.Zr),this.Zr=-1},bo.prototype.doWaitAfter=function(){},bo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(b){for(;b!==null&&!(b.panel instanceof Mo);)b=b.panel;return b}),a===null?null:a.part.category===y?a:null},bo.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},$n.Object.defineProperties(bo.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}}}),bo.prototype.startTransaction=bo.prototype.Ea,bo.className="Tool";function aa(){bo.call(this),this.name="ToolManager",this.hb=new qn,this.ob=new qn,this.Hb=new qn,this.F=this.V=850,this.o=new an(2,2).ja(),this.Ha=5e3,this.ia=Bu,this.u=Xc,this.Mp=this.j=null,this.zj=-1}Sn(aa,bo),aa.prototype.initializeStandardTools=function(){},aa.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Mo&&this.Mp===a){var b=y.adornedObject;(a!==null?b.part===a:b===null)?this.showToolTip(y,b):this.hideToolTip()}},aa.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Yl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Xl){y.bubbles=!0;return}if(this.gestureBehavior===Yl)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===Bu?this.mouseWheelBehavior=bu:this.mouseWheelBehavior===bu&&(this.mouseWheelBehavior=Bu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},aa.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Xl){y.bubbles=!0;return}if(this.gestureBehavior===Yl)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}}Sc(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Sc(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}aa.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Mo&&(y===a||y.rg(a))||this.hideToolTip()},aa.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()))},aa.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)},aa.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 Mo)||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()},aa.prototype.showToolTip=function(a,y){var b=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Mo){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 Po&&a!==this.currentToolTip&&a.show(y,b,this);if(this.currentToolTip=a,this.zj!==-1&&(_n.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var x=this;this.zj=bi(function(){x.hideToolTip()},a)}},aa.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}},aa.prototype.hideToolTip=function(){this.zj!==-1&&(_n.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Mo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Po&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},aa.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()},aa.prototype.doMouseWheel=function(){this.standardMouseWheel()},aa.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},aa.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},aa.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},aa.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},aa.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)},$n.Object.defineProperties(aa.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 Mo?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}}}),aa.prototype.replaceStandardTool=aa.prototype.gb;var Bu=new mn(aa,"WheelScroll",0),bu=new mn(aa,"WheelZoom",1),Rc=new mn(aa,"WheelNone",2),Xc=new mn(aa,"GestureZoom",3),Yl=new mn(aa,"GestureCancel",4),Xl=new mn(aa,"GestureNone",5);aa.className="ToolManager",aa.WheelScroll=Bu,aa.WheelZoom=bu,aa.WheelNone=Rc,aa.GestureZoom=Xc,aa.GestureCancel=Yl,aa.GestureNone=Xl;function la(){bo.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 it(NaN,NaN),this.Fr=new it,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new lr().freeze(),this.ia=new le,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gs;Sn(la,bo),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,(Ti?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),gs=null,this.isActive=!0,this.tl.set(a.position),du(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&&zl(a),Yh(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,gs=this,lc=this.diagram,this.doSimulatedDragOut()))};function du(a,y){if(a.dragsLink){var b=a.diagram;b.allowRelink&&(b.model.Wj()&&y.count===1&&y.first()instanceof Hr?(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 Il,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 Bc(Or):this.isGridSnapEnabled?new Bc(new it(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Bc(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(),Nl(this),Zd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Gs.count){for(var y=Gs,b=y.length,E=0;E<b;E++){var x=y.M(E);ca(x),$o(x),Nl(x),x.diagram.ug()}y.clear()}ca(this),this.tl.h(NaN,NaN),lc!==null&&(lc.currentCursor=""),gs=lc=null,$o(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),jd(a,!0)},la.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Nl(a){var y=a.diagram,b=y.skipsUndoManager;y.skipsUndoManager=!0,Ll(a,y.lastInput,null),y.skipsUndoManager=b,a.Cg.length=0}function dl(){var a=gs;$o(a),Is(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}la.prototype.doCancel=function(){$o(this),Is(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 bl(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")):Is(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 wn,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 Hr&&E.canCopy()&&b.add(E,a.Pd());a.copiedParts=b,du(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 $o(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 Hr&&(b.value.point=new it(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function ca(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 Va(a,y,b){var E=a.diagram,x=a.startPoint,z=it.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(x),b),it.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(zl(E),E.hk())}la.prototype.moveParts=function(a,y,b){b===void 0&&(b=!1);var E=this.diagram;E!==null&&Wd(E,a,y,this.dragOptions,b)};function Is(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 Hr&&E.suspendsRouting){var x=b.value.point;a.draggedParts.add(E,a.Pd()),Lh(E,-x.x,-x.y)}y.bd()}}function xs(a,y){var b=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),kl(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=Ll(a,x,E),!a.isActive&&gs===null)return;var ie=E!==null?E.part:null;if(ie===null||b.handlesDragDropForTopLevelParts&&ie.isTopLevel&&!(ie instanceof no)){var se=b.mouseDragOver;se!==null&&(se(x),ne=!0)}if(!a.isActive&&gs===null||(a.doDragOver(y,E),!a.isActive&&gs===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 qc(this.diagram,a,null,function(b){return b===null?b=!0:(b=b.part,b=!!(b===null||b instanceof Mo||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 Ll(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&&gs===null||b===null)return E;for(y.handled=!1,x=b;x!==null;)a.Cg.push(x),x=Bl(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 Bl(a){var y=a.panel;return y!==null?y:a instanceof Pi&&!(a instanceof no)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function _l(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=it.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(Xi,a);se=y.Bf(se),se<z&&(ne=ie,z=se)}}return it.free(a),ne}function kl(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=_l(a,b.i(0),!1),z!==null&&(ne=z.part));var ie=null,se=null;b.toNode===null&&(ie=_l(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)):Pe(x,ne,z,se,ie):Pe(x,null,null,null,null)}}}}la.prototype.doDragOver=function(){};function hu(a,y){var b=a.diagram;a.dragsLink&&kl(a,!0),Nl(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;bd(a,x,z),z=Bl(z)}}else z=b.mouseDrop,z!==null&&z(x);if(a.isActive||gs!==null){for(x=(a.copiedParts||a.draggedParts).iterator;x.next();)z=x.key,z instanceof qr&&z.linksConnected.each(function(ie){ie.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||gs!==null){for(a=An.alloc(),y=b.selection.iterator;y.next();)E=y.value,E instanceof qr&&Hd(b,E,a);An.free(a)}}}function bd(a,y,b){a=a.diagram,b=b.part,!a.handlesDragDropForTopLevelParts||!b.isTopLevel||b instanceof no||(b=a.mouseDrop,b!==null&&b(y))}function Hd(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 Hr},!0,function(x){return x instanceof Hr},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()?(bl(this,!1),Yh(a,this.copiedParts),Va(this,this.copiedParts,!1),Zd(a,this.copiedParts)):this.mayMove()?($o(this),Va(this,this.draggedParts,!0)):this.mayDragOut()?(bl(this,!1),Va(this,this.copiedParts,!1)):$o(this),xs(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?($o(this),bl(this,!0),Yh(a,this.copiedParts),Va(this,this.copiedParts,!1),Zd(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,$o(this),this.mayMove()&&(Va(this,this.draggedParts,!0),xs(this,a.lastInput.documentPoint))),this.Ym=!0,hu(this,a.lastInput.documentPoint),this.isActive){var E=b?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ch(this),a.Ya(),Zd(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(gs===null)return!1;var E=gs.diagram;b instanceof kn||(b=null);var x=lc;return b!==x&&(x!==null&&x!==E&&(x.ug(),gs.isDragOutStarted=!1,x=x.toolManager.findTool("Dragging"),x!==null&&x.doSimulatedDragLeave()),lc=b,b!==null&&b!==E&&(dl(),x=b.toolManager.findTool("Dragging"),x!==null&&(Gs.contains(x)||Gs.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(gs===null)return!1;var E=lc,x=gs.diagram;if(b===null)return gs.doCancel(),!0;if(b!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==x&&z!==null)return E.ug(),gs.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;lc=b,E=b.toolManager.findTool("Dragging"),E!==null&&(dl(),Gs.contains(E)||Gs.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 it),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=gs,a!==null&&(b=a.mayCopy(),a.transactionResult=b?"Copy":"Move",a.stopTool()),!0):!1};function ch(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var b=y.key;b instanceof qr&&(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||(Ti?!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 gs},la.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=gs;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},la.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Hu(a),a.animationManager.Cc(),a=gs,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},la.prototype.doSimulatedDragLeave=function(){var a=gs;a!==null&&a.doSimulatedDragOut(),this.doCancel()},la.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=gs;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;dh(this,y.draggedParts.Lf(),!1,a.firstInput),Va(this,this.copiedParts,!1),xs(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},la.prototype.doSimulatedDrop=function(){var a=this.diagram,y=gs;if(y!==null){var b=y.diagram;if(y.Ym=!0,$o(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),dh(this,y.draggedParts.Lf(),!0,a.lastInput),Va(this,this.copiedParts,!1);var E=new lr;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0,E.add(x)})),hu(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 dh(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 wn,ie=it.alloc(),se=y.iterator;se.next();)de=se.value,de instanceof Hr&&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))));it.free(ie),a.copiedParts=ne,du(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 it},$n.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 gs=null,lc=null;la.className="DraggingTool",Gs=new qn,ar("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),aa.prototype.doCancel=function(){gs!==null&&gs.doCancel(),bo.prototype.doCancel.call(this)};function Na(){bo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Hr,y=new oo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new oo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new qr,y=new oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Vr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new qr,y=new oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Vr,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 wn,this.Of=this.gj=this.Pf=null}Sn(Na,bo),Na.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Na.prototype.copyPortProperties=function(a,y,b,E,x){if(a!==null&&y!==null&&b!==null&&E!==null){var z=y.Df(),ne=an.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,E.desiredSize=ne,an.free(ne),x?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),b.locationSpot=Xi,z=it.alloc(),b.location=y.ga(Xi,z),it.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,b,E,x)}},Na.prototype.setNoTargetPortProperties=function(a,y,b){y!==null&&(y.desiredSize=Vr,y.fromSpot=Yi,y.toSpot=Yi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,b)},Na.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Na.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof qr){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)}},Na.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var b=a.part;if(!(b instanceof qr))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof qr)&&(y?this.isValidTo(b,a):this.isValidFrom(b,a)))return a;if(E===!1)break;a=a.panel}return null},Na.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 qr){var se=ne.ga(Xi,it.alloc()),de=b.x-se.x,pe=b.y-se.y;it.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 qr&&(b.layer===null||b.layer.allowLink))?y:null},Na.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},Na.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},Na.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Na.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var b=a.part;if(!(b instanceof qr))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof qr))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},Na.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)},Na.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 lr;return E.add(a),js(this,b,y,E)};function js(a,y,b,E){if(y===b)return!0;var x=y.fromNode;return x!==null&&x.isLinkLabel&&(E.add(x),js(a,x.labeledLink,b,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),js(a,y.labeledLink,b,E))))}Na.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!==$h){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!$s(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!$s(this,a,y,b,!0)}if(E===yp)return a===y?a=!0:(E=new lr,E.add(y),a=qs(this,E,a,y,b)),!a;if(E===Sp)return!$s(this,a,y,b,!1);if(E===bp)return a===y?a=!0:(E=new lr,E.add(y),a=bc(this,E,a,y,b)),!a}return!0};function $s(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&&$s(a,ne,b,E,x)))return!0}return!1}function qs(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&&qs(a,y,ne,E,x)))return!0}return!1}function bc(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&&bc(a,y,ie,E,x))return!0}}return!1}$n.Object.defineProperties(Na.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}}}),Na.className="LinkingBaseTool";function Fs(){Na.call(this),this.name="Linking",this.V={},this.F=null,this.K=Eu,this.Xd=null}Sn(Fs,Na),Fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Fs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof qr)))return null;var b=this.direction;if(b===Eu||b===Qc){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===Eu||b===Ed)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Fs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof qr&&(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 qr&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},Fs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Fs.prototype.doStop=function(){Na.prototype.doStop.call(this),this.startObject=null},Fs.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 qr&&(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)}}},Fs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Hr)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},Fs.prototype.insertLink=function(a,y,b,E){return this.diagram.partManager.insertLink(a,y,b,E)},Fs.prototype.doNoLink=function(){},$n.Object.defineProperties(Fs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Eu=new mn(Fs,"Either",0),Qc=new mn(Fs,"ForwardsOnly",0),Ed=new mn(Fs,"BackwardsOnly",0);Fs.className="LinkingTool",Fs.Either=Eu,Fs.ForwardsOnly=Qc,Fs.BackwardsOnly=Ed;function Il(){Na.call(this),this.name="Relinking";var a=new oo;a.figure="Diamond",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new oo,a.figure="Diamond",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new An}Sn(Il,Na),Il.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hr){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)}},Il.prototype.makeAdornment=function(a,y){var b=new Mo;return b.type=Ar.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&b.add(y.copy()),b.adornedObject=a,b},Il.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},Il.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 Mo&&b.adornedPart instanceof Hr))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=hr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=hr),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},Il.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var b=a.curve;(b===Sg||b===kh)&&(b=iu),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}},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(){Na.prototype.doStop.call(this),this.handle=null},Il.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 qr&&(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()}}},Il.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},Il.prototype.doNoRelink=function(){};function Pe(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)}$n.Object.defineProperties(Il.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 Mo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Il.className="RelinkingTool",ar("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),ar("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Xe(){bo.call(this),this.name="LinkReshaping";var a=new oo;a.figure="Rectangle",a.desiredSize=Ai,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new oo,a.figure="Diamond",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new it,this.Yq=new qn}Sn(Xe,bo),Xe.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:gt},Xe.prototype.om=function(a,y){a.reshapingBehavior=y},Xe.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hr){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)}},Xe.prototype.makeAdornment=function(a){var y=a.part,b=y.pointsCount,E=y.isOrthogonal,x=null;if(y.points!==null&&1<b){x=new Mo,x.type=Ar.Link,b=y.firstPickIndex;var z=y.lastPickIndex,ne=E?1:0;if(y.resegmentable&&y.computeCurve()!==$u)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);en.B(se.x,de.x)&&en.B(se.y,de.y)&&(de=y.i(b-1)),en.B(se.x,de.x)?(this.om(ie,Bt),ie.cursor="n-resize"):en.B(se.y,de.y)&&(this.om(ie,Mt),ie.cursor="w-resize")}else ne===z-1&&E?(se=y.i(z-1),de=y.i(z),en.B(se.x,de.x)&&en.B(se.y,de.y)&&(se=y.i(z+1)),en.B(se.x,de.x)?(this.om(ie,Bt),ie.cursor="n-resize"):en.B(se.y,de.y)&&(this.om(ie,Mt),ie.cursor="w-resize")):ne!==z&&(this.om(ie,sn),ie.cursor="move");x.add(ie)}x.adornedObject=a}return x},Xe.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Xe.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Xe.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},Xe.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 Hr){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}}},Xe.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Xe.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Xe.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Xe.prototype.getResegmentingPoint=function(){return this.handle.ga(Xi)},Xe.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Xe.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 it(ne.x,(z.y+ne.y)/2)),ie.cd(b+1,new it(z.x,(z.y+ne.y)/2))):(ie.cd(b-2,new it((z.x+ne.x)/2,ne.y)),ie.cd(b+1,new it((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 it(E.x,(E.y+ne.y)/2)),ie.cd(b+2,new it(ne.x,(E.y+ne.y)/2))):(ie.cd(b-1,new it((E.x+ne.x)/2,E.y)),ie.cd(b+2,new it((E.x+ne.x)/2,ne.y))),ie.mb(b+1),ie.mb(b),y.points=ie,y.Wb())}}else ne=it.alloc(),en.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()),it.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}Xe.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===Bt?(y.L(b,y.i(b-1).x,a.y),y.L(b+1,y.i(b+2).x,a.y)):E===Mt&&(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===Bt?(y.L(b-1,y.i(b-2).x,a.y),y.L(b,y.i(b+1).x,a.y)):E===Mt&&(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);en.B(z.x,x.x)&&en.B(x.y,ne.y)?(en.B(z.x,y.i(E-2).x)&&!en.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),en.B(ne.y,y.i(E+2).y)&&!en.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)):en.B(z.y,x.y)&&en.B(x.x,ne.x)?(en.B(z.y,y.i(E-2).y)&&!en.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),en.B(ne.x,y.i(E+2).x)&&!en.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):en.B(z.x,x.x)&&en.B(x.x,ne.x)?(en.B(z.x,y.i(E-2).x)&&!en.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),en.B(ne.x,y.i(E+2).x)&&!en.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):en.B(z.y,x.y)&&en.B(x.y,ne.y)&&(en.B(z.y,y.i(E-2).y)&&!en.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),en.B(ne.y,y.i(E+2).y)&&!en.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(Xi,it.alloc()),E=y.getLinkPointFromPoint(E,x,z,a,!0,it.alloc()),y.L(0,E.x,E.y),it.free(z),it.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(Xi,it.alloc()),a=y.getLinkPointFromPoint(E,x,b,a,!1,it.alloc()),y.L(y.pointsCount-1,a.x,a.y),it.free(b),it.free(a));y.zf()},Xe.prototype.computeReshape=function(a){var y=this.adornedLink,b=this.handle.segmentIndex;switch(this.Ru(this.handle)){case sn:return a;case Bt:return new it(y.i(b).x,a.y);case Mt:return new it(a.x,y.i(b).y);default:case gt:return y.i(b)}},$n.Object.defineProperties(Xe.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 Mo))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}}}),Xe.prototype.setReshapingBehavior=Xe.prototype.om,Xe.prototype.getReshapingBehavior=Xe.prototype.Ru;var gt=new mn(Xe,"None",0),Mt=new mn(Xe,"Horizontal",1),Bt=new mn(Xe,"Vertical",2),sn=new mn(Xe,"All",3);Xe.className="LinkReshapingTool",Xe.None=gt,Xe.Horizontal=Mt,Xe.Vertical=Bt,Xe.All=sn,ar("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Cn(){bo.call(this),this.name="Resizing",this.o=new an(1,1).freeze(),this.j=new an(9999,9999).freeze(),this.yg=new an(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new oo;a.alignmentFocus=Xi,a.figure="Rectangle",a.desiredSize=Ai,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new it,this.Dw=new an,this.Tn=new it,this.rt=new an(0,0),this.qt=new an(1/0,1/0),this.pt=new an(1,1)}Sn(Cn,bo),Cn.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Hr)){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)}},Cn.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Mo,y.type=Ar.Spot,y.locationSpot=Xi;var b=new ru;b.isPanelMain=!0,y.add(b),y.add(this.makeHandle(a,ho)),y.add(this.makeHandle(a,Do)),y.add(this.makeHandle(a,Fo)),y.add(this.makeHandle(a,pa)),y.add(this.makeHandle(a,Ms)),y.add(this.makeHandle(a,fs)),y.add(this.makeHandle(a,ks)),y.add(this.makeHandle(a,Qs))}else if(Tc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Cn.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Cn.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=Xi),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 Ar)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Cn.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},Cn.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))},Cn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Cn.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Cn.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Cn.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,it.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),a.bd(),it.free(x)}},Cn.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,it.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),it.free(x),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Cn.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 no){var E=new qn;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()}},Cn.prototype.computeResize=function(a,y,b,E,x,z){y.Mc()&&(y=Xi);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 Le=ne.height;0>=Se&&(Se=1),0>=Le&&(Le=1),Se=Le/Se}return Le=it.alloc(),en.No(a.x,a.y,ie,se,x.width,x.height,Le),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Le.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(Le.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(Le.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(Le.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(Le.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(Le.x-ie,E.width),b.width),a.y=Math.max(Le.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(Le.x-ie,E.width),b.width),a.height=Math.max(Math.min(Le.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(Le.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(Le.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(Le.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))),it.free(Le),a},Cn.prototype.computeReshape=function(){var a=vr;return this.adornedObject instanceof oo&&(a=Bv(this.adornedObject)),!(a===yi||this.diagram.lastInput.shift)},Cn.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},Cn.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},Cn.prototype.computeCellSize=function(){var a=new an(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},$n.Object.defineProperties(Cn.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 Mo))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 Mo)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}}}),Cn.className="ResizingTool",ar("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function yr(){bo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new it,this.ue=null;var a=new oo;a.figure="Ellipse",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new it(NaN,NaN),this.u=0,this.F=50}Sn(yr,bo),yr.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)}},yr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Mo,y.type=Ar.Position,y.locationSpot=Xi;var b=this.handleArchetype;b!==null&&y.add(b.copy())}else if(Tc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},yr.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},yr.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)},yr.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(Xi)},yr.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)},yr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new it(NaN,NaN),this.isActive=a.isMouseCaptured=!1},yr.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},yr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},yr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},yr.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()},yr.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()}},yr.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},$n.Object.defineProperties(yr.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 Mo))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 Mo)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}}}),yr.className="RotatingTool",ar("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function xr(){bo.call(this),this.name="ClickSelecting"}Sn(xr,bo),xr.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},xr.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},xr.className="ClickSelectingTool";function nr(){bo.call(this),this.name="Action",this.pk=null}Sn(nr,bo),nr.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},nr.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()},nr.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))}},nr.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()},nr.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())},nr.prototype.doStop=function(){this.pk=null},nr.className="ActionTool";function Zr(){bo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new it(0,0)}Sn(Zr,bo),Zr.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)},Zr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Zr.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 Pi)b.Zc()&&(Tc(b),E=b.copy(),E!==null&&y.add(E));else if(b!==null){var x=y.model.copyNodeData(b);Yt(x)&&(y.model.xf(x),E=y.Lc(x))}if(E!==null){var z=it.allocAt(a.x,a.y);this.isGridSnapEnabled&&If(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),it.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},$n.Object.defineProperties(Zr.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}}}),Zr.className="ClickCreatingTool";function zr(){bo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Pi;a.layerName="Tool",a.selectable=!1;var y=new oo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Sn(zr,bo),zr.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))},zr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},zr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},zr.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=an.alloc().h(y.width,y.height);b.desiredSize=E,this.box.mm(y.x,y.y,!1),an.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},zr.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()},zr.prototype.computeBoxBounds=function(){var a=this.diagram;return new An(a.firstInput.documentPoint,a.lastInput.documentPoint)},zr.prototype.selectInRect=function(a){var y=this.diagram,b=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Ti?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 qn,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)}},$n.Object.defineProperties(zr.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}}}),zr.className="DragSelectingTool";function ur(){bo.call(this),this.name="Panning",this.Xt=new it,this.xy=new it,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(_n.document,"scroll",a.Kw,!1),a.stopTool()}}Sn(ur,bo),ur.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())},ur.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(_n.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},ur.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},ur.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},ur.prototype.doMouseMove=function(){this.move()},ur.prototype.doMouseUp=function(){this.move(),this.stopTool()},ur.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)}},$n.Object.defineProperties(ur.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),ur.className="PanningTool",ar("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),ar("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),ar("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),ar("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),ar("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Po(){this.F=this.u=this.j=this.o=null}$n.Object.defineProperties(Po.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}}}),Po.className="HTMLInfo";function jo(a,y,b){this.text=a,this.hx=y,this.visible=b}jo.className="ContextMenuButtonInfo";function ea(){bo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new it,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Sn(ea,bo);function so(a){var y=new Po;y.show=function(x,z,ne){ne.showDefaultContextMenu()},y.hide=function(x,z){z.hideDefaultContextMenu()},Wi=y,a.tu=function(){a.stopTool()},y=Pr("div");var b=Pr("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=Pr("style");_n.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",To,!1),E.addEventListener(y,"selectstart",To,!1),E.addEventListener(b,"contextmenu",To,!1)),y.className="goCXforeground",b.className="goCXbackground",_n.document.body&&(_n.document.body.appendChild(y),_n.document.body.appendChild(b)),Ua=y,ws=b,ka=!0}function To(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 on?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(bo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Mo){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 Mo){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 Po||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(b)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Xa(a,!0),a.isActive||a.stopTool())}ea.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Xa(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=Wi,b===null&&(b=a.findObjectWithContextMenu()),b!==null){var E=b.contextMenu;E!==null?(a.currentObject=b instanceof on?b:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Mo&&!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 Mo){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 Po&&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 Mo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Po&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Qa(a){var y=new qn;return y.add(new jo("Copy",function(b){b.commandHandler.copySelection()},function(b){return b.commandHandler.canCopySelection()})),y.add(new jo("Cut",function(b){b.commandHandler.cutSelection()},function(b){return b.commandHandler.canCutSelection()})),y.add(new jo("Delete",function(b){b.commandHandler.deleteSelection()},function(b){return b.commandHandler.canDeleteSelection()})),y.add(new jo("Paste",function(b){b.commandHandler.pasteSelection(a.mouseDownPoint)},function(b){return b.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new jo("Select All",function(b){b.commandHandler.selectAll()},function(b){return b.commandHandler.canSelectAll()})),y.add(new jo("Undo",function(b){b.commandHandler.undo()},function(b){return b.commandHandler.canUndo()})),y.add(new jo("Redo",function(b){b.commandHandler.redo()},function(b){return b.commandHandler.canRedo()})),y.add(new jo("Scroll To Part",function(b){b.commandHandler.scrollToPart()},function(b){return b.commandHandler.canScrollToPart()})),y.add(new jo("Zoom To Fit",function(b){b.commandHandler.zoomToFit()},function(b){return b.commandHandler.canZoomToFit()})),y.add(new jo("Reset Zoom",function(b){b.commandHandler.resetZoom()},function(b){return b.commandHandler.canResetZoom()})),y.add(new jo("Group Selection",function(b){b.commandHandler.groupSelection()},function(b){return b.commandHandler.canGroupSelection()})),y.add(new jo("Ungroup Selection",function(b){b.commandHandler.ungroupSelection()},function(b){return b.commandHandler.canUngroupSelection()})),y.add(new jo("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=Qa(this)),Ua.innerHTML="",ws.addEventListener("pointerdown",this.tu,!1);var y=this,b=Pr("ul");b.className="goCXul",Ua.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=Pr("li"),z.className="goCXli";var ne=Pr("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)}}Ua.style.display="block",ws.style.display="block"},ea.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Wi){Ua.style.display="none",ws.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ws,"pointerdown",this.tu,!1),this.currentContextMenu=null}},$n.Object.defineProperties(ea.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Mo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ka===!1&&Wi===null&&Fa&&so(this),Wi},set:function(a){a===null&&(ka=!0),Wi=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Wi=null,ka=!1,ws=null,Ua=null;ea.className="ContextMenuTool",ar("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function xo(){bo.call(this),this.name="TextEditing",this.Zh=new Sa,this.ia=null,this.V=El,this.vj=null,this.qa=Lr,this.u=1,this.F=!0,this.o=null,this.j=new Po,this.kt=null,Dl(this,this.j)}Sn(xo,bo);function Dl(a,y){if(Fa){var b=Pr("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(ds)):x==="Tab"?(a.acceptText(Ea),E.preventDefault()):x==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),b.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Lr){var E=a.kt;a.qa===hl&&(a.qa=Ql),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),b.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Lr){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 Sa&&z instanceof xo)if(z.state===xl)b.style.border="3px solid red",b.focus();else{var ne=E.ga(Xi),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,Le=(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=(Le-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)}}}xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||_u&&_u!==this&&(_u.acceptText(Yo),_u&&_u!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Sa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===El&&!y.isSelected||this.starting===Ul&&2>a.lastInput.clickCount)):!1},xo.prototype.doStart=function(){_u=this,this.textBlock!==null&&this.doActivate()},xo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Sa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=hl;var b=this.defaultTextEditor;y.textEditor!==null&&(b=y.textEditor),this.Zh=this.textBlock.copy();var E=new An(this.textBlock.ga(ho),this.textBlock.ga(Fo));a.tv(E),b.show(y,a,this),this.currentTextEditor=b}}}},xo.prototype.doCancel=function(){this.stopTool()},xo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},xo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Yo)},xo.prototype.acceptText=function(a){switch(a){case Yo:this.qa===Jl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===hl||this.qa===xl||this.qa===Ql)&&(this.qa=Br,is(this));break;case Ko:case ds:case Ea:(ds!==a||this.textBlock.isMultiline!==!0)&&(this.qa===hl||this.qa===xl||this.qa===Ql)&&(this.qa=Br,is(this))}};function is(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=Jl,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=xl,a.doError(x,z))}}xo.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)},xo.prototype.doSuccess=function(a,y){var b=this.textBlock;b.textEdited!==null&&b.textEdited(b,a,y)},xo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Lr,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},xo.prototype.doStop=function(){_u=null},xo.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)))},xo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},$n.Object.defineProperties(xo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),xo.prototype.measureTemporaryTextBlock=xo.prototype.Lx;var Ko=new mn(xo,"LostFocus",0),Yo=new mn(xo,"MouseDown",1),Ea=new mn(xo,"Tab",2),ds=new mn(xo,"Enter",3),al=new mn(xo,"SingleClick",0),El=new mn(xo,"SingleClickSelected",1),Ul=new mn(xo,"DoubleClick",2),Lr=new mn(xo,"StateNone",0),hl=new mn(xo,"StateActive",1),Ql=new mn(xo,"StateEditing",2),Br=new mn(xo,"StateValidating",3),xl=new mn(xo,"StateInvalid",4),Jl=new mn(xo,"StateValidated",5),_u=null;xo.className="TextEditingTool",xo.LostFocus=Ko,xo.MouseDown=Yo,xo.Tab=Ea,xo.Enter=ds,xo.SingleClick=al,xo.SingleClickSelected=El,xo.DoubleClick=Ul,xo.StateNone=Lr,xo.StateActive=hl,xo.StateEditing=Ql,xo.StateValidating=Br,xo.StateInvalid=xl,xo.StateValidated=Jl,ar("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function el(a){$r||(rn(),$r=!0),this.H=Jc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Ni,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new lr,this.ce=new ni,this.ce.Yd=this,this.Ei=new lr,this.pu=new lr,this.Sr=new lr,this.pr=new lr,a&&Object.assign(this,a)}el.prototype.Xe=function(a){this.H=a},el.prototype.canStart=function(){return!0};function ms(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ps(a.H),a.zb=!0)}function ql(a){if(a.Jd&&a.zb){var y=a.ce,b=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Ni?(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===Xo&&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(),Qi(y,b),a.Ok=!1,b.N()):(a.Zd.clear(),b.kg=!1,E=y.vc.get(b),b.autoScale!==pl&&E!==null&&(delete E.start.scale,delete E.end.scale),_n.requestAnimationFrame(function(){a.zb===!1||y.bc||(b.Gf("temporaryPixelRatio")&&zl(b),tp(b),a.zb=!1,y.start(),y.bc&&(wl(a),b.Ya(),Uu(y,0),Hu(b,!0),Ju(a),b.R("AnimationStarting",a)))}))}}function fl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qu(a,y,b,E){a.isTicking||fl(a)||y instanceof Hr&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",b,E,!1)}_e=el.prototype,_e.fv=function(a){return this.ce.fv(a)},_e.Xu=function(a){return this.ce.Xu(a)};function uc(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 on&&se.diagram!==null||se instanceof kn){ie=!0;break e}}ie=!1}ie?os(ne,!1):ne.Xk=!0}}x.pu.clear(),x.bc!==!1&&(wl(x),Hu(x.H),Ju(x)),_n.requestAnimationFrame(b)}}var E=a.Ei,x=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),_n.requestAnimationFrame(function(){b()}))}function cc(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function wl(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 Ju(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}_e.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(),Qi(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Qi(y,this.H)},_e.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))},_e.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ge(this,a))},_e.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ta(this.ce,y,"position",y.position,y.position),ge(this,a))};function zd(a,y,b){!a.zb||y.D(b)||fl(a)||(a.H.pi||(y=b.copy()),ta(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 rn(){function a(b,E,x,z,ne,ie){b.position=new it(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}var y=new wn;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 it(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 it(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 it(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 it(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)}),Sr=y}$n.Object.defineProperties(el.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&&Nr(a,">= 1",el,"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}}}),el.prototype.stopAnimation=el.prototype.Cc;var Sr=null,$r=!1,Ni=new mn(el,"Default",1),Lo=new mn(el,"AnimateLocations",2),Xo=new mn(el,"None",3);el.className="AnimationManager",el.defineAnimationEffect=function(a,y){$r||(rn(),$r=!0),Sr.add(a,y)},el.Default=Ni,el.AnimateLocations=Lo,el.None=Xo;function ni(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=xu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Or,this.vc=new wn,this.Tt=new wn,this.yl=new lr,this.Ut=new lr,this.dw=Ad,a&&Object.assign(this,a)}ni.prototype.suspend=function(){this.Xk=!0},ni.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,os(this,!0),wl(this.Yd),Hu(this.H),Ju(this.Yd),this.H.redraw()};function Qi(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}_e=ni.prototype,_e.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 on&&(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===Ni&&this===y.defaultAnimation&&(this.Lp=wu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Sh),wl(y),this.yl.each(function(E){E.data=null,a.add(E)}),Ju(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,uc(y,this),this)},_e.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},_e.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 on&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Pi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ta(this,a,y,b,E,x),this};function ta(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")&&(Pc(E),Bf(),E=[Ml.j,Ml.u,Ml.o,Ml.F],Pc(x),Bf(),x=[Ml.j,Ml.u,Ml.o,Ml.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 on&&ie instanceof it&&!ie.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ie.assign(de.position),ie=new dc(se,de,z),ne.add(y,ie);ne=se[b],ne instanceof it&&!ne.w()&&ne.assign(a.o),z&&b.indexOf("position:")===0&&y instanceof Pi?ie.Ku.location=Aa(y.location):z&&(ie.Ku[b]=Aa(E))}function Aa(a){return a instanceof it||a instanceof an?a.copy():a}_e.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},_e.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function os(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),wl(b),Uu(a,x),Hu(a.H,!0),Ju(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 Uu(a,y){for(var b=a.Gd,E=a.vc.iterator,x=a.Wk;E.next();){var z=E.key;if(!(z instanceof on&&z.diagram===null)){var ne=E.value,ie=x?ne.end:ne.start;ne=x?ne.start:ne.end;var se=Sr,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)}}}_e.stop=function(){return this.bc?(this.Ml(!0),this):this},_e.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,wl(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=Sr;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 Le=Se;!ie.Hu||Le!=="position:nodeCollapse"&&Le!=="position:placeholder"||(Le="position"),z.get(Le)(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 Pi&&(ne.location=pe.location),ie.nv&&ne instanceof Pi&&ne.Zb(!1)}if(y.As.clear(),jd(y,!1),y.Ya(),y.N(),Hu(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()}Hu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ju(b),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Qi(this,null),b.Ml(this),y.$b())}},_e.Cj=function(a,y){var b=y.actualBounds,E=null;if(y instanceof no&&(E=y.placeholder),E!==null?(b=E.ga(ho),E=E.padding,b.x+=E.left,b.y+=E.top,this.add(a,"position",b,a.position,!1)):this.add(a,"position",new it(b.x+b.width/2,b.y+b.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof no)for(a=a.memberParts;a.next();)E=a.value,E instanceof qr&&this.Cj(E,y)},_e.Aj=function(a,y){if(a.isVisible()){var b=null;if(y instanceof no&&(b=y.placeholder),b!==null){var E=b.ga(ho);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 no)for(a=a.memberParts;a.next();)E=a.value,E instanceof qr&&this.Aj(E,y)}},_e.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},$n.Object.defineProperties(ni.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Nr(a,">= 1",ni,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:Lt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),ni.prototype.getTemporaryState=ni.prototype.Ez,ni.prototype.stop=ni.prototype.stop,ni.prototype.add=ni.prototype.add,ni.prototype.addTemporaryPart=ni.prototype.Iy;function xu(a,y,b,E){return a/=E/2,1>a?b/2*a*a+y:-b/2*(--a*(a-2)-1)+y}function wu(a,y,b,E){return a===E?y+b:b*(-Math.pow(2,-10*a/E)+1)+y}ni.className="Animation",ni.EaseLinear=function(a,y,b,E){return b*a/E+y},ni.EaseInOutQuad=xu,ni.EaseInQuad=function(a,y,b,E){return b*(a/=E)*a+y},ni.EaseOutQuad=function(a,y,b,E){return-b*(a/=E)*(a-2)+y},ni.EaseInExpo=function(a,y,b,E){return a===0?y:b*Math.pow(2,10*(a/E-1))+y},ni.EaseOutExpo=wu;function dc(a,y,b){this.start=a,this.end=y,this.Ku={},this.Hu=b,this.nv=!1}dc.className="AnimationState";function Hl(a,y,b){this.xd=null,this.rf=a,this.so=b||Mc,this.uk=null,y!==void 0&&(this.uk=y,b===void 0&&(this.so=fu))}Hl.prototype.copy=function(){var a=new Hl(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))}$n.Object.defineProperties(Hl.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 Mc=new mn(Hl,"Default",1),fu=new mn(Hl,"Immediate",2),hh=new mn(Hl,"Bundled",3);Hl.className="AnimationTrigger",Hl.Default=Mc,Hl.Immediate=fu,Hl.Bundled=hh;function Cs(a){vi(this),this.H=null,this.Pa=new qn,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)}_e=Cs.prototype,_e.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var b=a.s[y];b.Ig=null,tl(b)}a.clear(),this.Zq.length=0},_e.Xe=function(a){this.H=a},_e.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 no?x++:se instanceof qr?E++:se instanceof Hr?z++:se instanceof Mo?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&&Oi(E)&&(ie+=" #"+Oi(E)),b instanceof qr?ie+=" "+hi(E):b instanceof Hr&&(ie+=" "+hi(b.fromNode)+" "+hi(b.toNode));return y+" "+this.Pa.count+": "+ie},_e.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=it.alloc(),z=this.Pa.s,ne=z.length;ne--;){var ie=z[ne];if((E!==!0||of(ie)!==!1)&&ie.isVisible()&&(x.assign(a),xn(x,ie.oe),ie=ie.ic(x,y,b),ie!==null&&(y!==null&&(ie=y(ie)),ie!==null&&(b===null||b(ie)))))return it.free(x),ie}return it.free(x),null},_e.ji=function(a,y,b,E){if(y===void 0&&(y=null),b===void 0&&(b=null),E instanceof qn||E instanceof lr||(E=new lr),this.Uh===!1)return E;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var z=it.alloc(),ne=this.Pa.s,ie=ne.length;ie--;){var se=ne[ie];if((x!==!0||of(se)!==!1)&&se.isVisible()){z.assign(a),xn(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 it.free(z),E},_e.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 qn||x instanceof lr||(x=new lr),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},_e.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},_e.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 qn||x instanceof lr)&&(z=x),x=!0),z instanceof qn||z instanceof lr||(z=new lr),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var ie=it.alloc(),se=it.alloc(),de=this.Pa.s,pe=de.length;pe--;){var Se=de[pe];if((ne!==!0||of(Se)!==!1)&&Se.isVisible()){ie.assign(a),xn(ie,Se.oe),se.h(a.x+y,a.y),xn(se,Se.oe);var Le=Se;Se.og(ie,se,b,E,x,z)&&(b!==null&&(Le=b(Le)),Le===null||E!==null&&!E(Le)||z.add(Le))}}return it.free(ie),it.free(se),z},_e.Fd=function(a,y){if(this.visible){var b=this.Pa.s,E=b.length;if(E!==0){a=Rr();for(var x=Rr(),z=0;z<E;z++){var ne=b[z];if(ne.vw=z,ne instanceof Hr){if(ne.fd===!1)continue}else if(ne instanceof Mo&&ne.adornedPart!==null)continue;var ie=ne.actualBounds;ne.isVisible()&&Wn(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]);kr(a),kr(x)}}};function ud(a,y){var b=1;return a.pb!==1&&(b=y.globalAlpha,y.globalAlpha=b*a.pb),b}_e.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=ud(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 Kp(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=ud(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}}}_e.Oj=function(a,y,b,E,x,z,ne){if(ne&&!of(y))a.Hs(y);else{if(E!==null&&y instanceof Hr&&(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&&(Ba(y,a,y.areaBackground,!0,!0,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.areaBackground===null&&y.background===null&&(Ba(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),Ba(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))}},_e.g=function(a,y,b,E,x){var z=this.diagram;z!==null&&z.cb(oa,a,this,y,b,E,x)},_e.oi=function(a,y,b){var E=this.Pa;if(y.Ig=this,this===null&&tl(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)),Gd(this,a,y),a},_e.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,tl(y),a};function Gd(a,y,b){if(y=Yp(a,y,b),b instanceof no&&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&&Gd(a,-1,y)}b.svg!==null&&b.svg.remove()}function Yp(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}$n.Object.defineProperties(Cs.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===""&&Lt("Cannot rename default Layer to: "+a),b=b.layers;b.next();)b.value.name===a&&Lt("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)&&Nr(a,"0 <= value <= 1",Cs,"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))}}}),Cs.prototype.findObjectsNear=Cs.prototype.og,Cs.prototype.findObjectsIn=Cs.prototype.Cf,Cs.prototype.findObjectsAt=Cs.prototype.ji,Cs.prototype.findObjectAt=Cs.prototype.ic,Cs.className="Layer";function kn(a,y){if(ag||(gl(),ag=!0),vi(this),Jc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Fa){var b=this,E=function(){b.removeEventListener(_n.document,"DOMContentLoaded",E,!1),b.setRTL()};_n.document.body!==null?this.setRTL():b.addEventListener(_n.document,"DOMContentLoaded",E,!1)}this.ol=null,Mf.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===oa&&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,$p(this),this.layout=new Pa,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 Ff,a!==void 0&&(typeof a=="string"||_n.Element&&a instanceof Element?qp(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var xd,Jc;function Xp(a){a.Yd=new el,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new qn,a.pj=new wn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new it(NaN,NaN).freeze(),a.du=new it(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new it(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ri,a.zu=new it(NaN,NaN).freeze(),a.ut=new An(NaN,NaN,NaN,NaN).freeze(),a.rj=new to(0,0,0,0).freeze(),a.sj=Ad,a.nu=!1,a.Zt=null,a.fu=null,a.yh=pl,a.zk=ns,a.Fg=pl,a.pq=ns,a.yt=ho,a.Bt=ho,a.Fc=!0,a.pn=!1,a.De=new lr,a.Eh=new wn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new to(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Es,a.bq.diagram=a,a.Qg=new Es,a.Qg.diagram=a,a.cj=new Es,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,jg(a),a.ai=new lr,a.Ht=!0,a.uu=Fc,a.pw=!1,a.wu=$h,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new wn,a.Xn=new qn,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 to(5).freeze(),a.Hw=new lr().freeze(),a.Nt=999999999,a.nw=new lr().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 lr,a.ow=new lr,a.Xh=null,a.aw=new an(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new it,bounds:new An,Py:new an,bA:new an,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 an(NaN,NaN).freeze(),a.Sp=new An(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new wn;var y=new qr,b=new Sa;b.bind(new ss("text","",hi)),y.add(b),a.ny=y,a.Lg.add("",y),y=new qr,b=new Sa,b.stroke="brown",b.bind(new ss("text","",hi)),y.add(b),a.Lg.add("Comment",y),y=new qr,y.selectable=!1,y.avoidable=!1,b=new oo,b.figure="Ellipse",b.fill="black",b.stroke=null,b.desiredSize=new an(3,3).ja(),y.add(b),a.Lg.add("LinkLabel",y),a.Yi=new wn,y=new no,y.selectionObjectName="GROUPPANEL",y.type=Ar.Vertical,b=new Sa,b.font="bold 12pt sans-serif",b.bind(new ss("text","",hi)),y.add(b),b=new Ar(Ar.Auto),b.name="GROUPPANEL";var E=new oo;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",b.add(E),E=new ru,E.padding=new to(5,5,5,5).ja(),b.add(E),y.add(b),a.ly=y,a.Yi.add("",y),a.Kh=new wn,y=new Hr,b=new oo,b.isPanelMain=!0,y.add(b),b=new oo,b.toArrow="Standard",b.fill="black",b.stroke=null,b.strokeWidth=0,y.add(b),a.my=y,a.Kh.add("",y),y=new Hr,b=new oo,b.isPanelMain=!0,b.stroke="brown",y.add(b),a.Kh.add("Comment",y),y=new Mo,y.type=Ar.Auto,b=new oo,b.fill=null,b.stroke="dodgerblue",b.strokeWidth=3,y.add(b),b=new ru,b.margin=new to(1.5,1.5,1.5,1.5).ja(),y.add(b),a.St=y,a.wt=y,y=new Mo,y.type=Ar.Link,b=new oo,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 aa,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=Jp(),a.eq=null,a.fq=ai,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 it,a.zy=500,a.wp=new it,a.wq=!1}kn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Yd=null,Xd="",Qp(this,!1),this.Xn.clear(),pg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Qp(a,y){a.animationManager.Cc(!0),a.Hw=new lr().freeze(),a.nw=new lr().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(),pg(),a.Og.clear(),eo=[],x!==null&&(a.add(x),a.partManager.parts.remove(x)),E&&(a.skipsUndoManager=b),z}function Jp(){return null}kn.prototype.reset=function(){this.clear(),this.vb=!0,Xp(this),Oc(this),this.Wg=!0,$p(this),this.layout=new Pa,this.Wg=!1,this.model=wy(),this.model.undoManager=new na,this.vb=this.rn=!1,this.N()},kn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=_n.document.body);var y=Pr("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=_n.document.body);var y=0;if(Fa){var b=vp;y=xd,b===null&&(b=vp=Pr("p"),b.style.width="100%",b.style.height="200px",b.style.boxSizing="content-box",y=xd=Pr("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||Ti||(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 qp(a,y){if(Fa){if(y!=null||Lt("Diagram setup requires an argument DIV."),a.Ka!==null&&Lt("Diagram has already completed setup."),typeof y=="string"?a.Ka=_n.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Lt("No DIV or DIV id supplied: "+y),a.Ka===null&&Lt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Lt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&_n.ResizeObserver){var b=oi(function(){a.$b()},250);a.ol=new _n.ResizeObserver(function(){b()}),a.ol.observe(a.Ka)}_n.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=_n.go;var x=new nu(a);if(x.style!==void 0&&(x.style.position="absolute",x.style.top="0px",x.style.left="0px",_n.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),sp(a,a.Aa,a.ya),a.Ka.insertBefore(x.Oa,a.Ka.firstChild),x=new nu(null),x.width=1,x.height=1,a.jw=x,a.oy=x.context,Fa){x=Pr("div");var z=Pr("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=Pf,x.addEventListener("pointerdown",np),x.H=a,x.uy=!0,x.vy=!0,a.ku=x,a.hu=z}a.hk=oi(function(){a.Yh=null,a.N()},300),a.Ov=oi(function(){tp(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var ie=$l(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(),Pu(ie,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,$l(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=Af(a,ne,!0,!1,!0,de),Vd(a,ne,se),se.targetDiagram=op(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():Pu(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=Af(a,ne,!1,!1,!1,ie[1]!==null);var se=_n.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,Vd(a,pe,ie),ie.targetObject=null,a.doMouseMove(),Pu(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=Af(a,ne,!1,!0,!0,!1);var de=_n.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&&Vd(de.H,ne,se),de===null&&(de=ne.target),Vd(a,ne,se),se.clickCount=a.yq,se.targetDiagram=op(ne,de),se.targetObject=null,a.doMouseUp(),Pu(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"+qd[1]+qd[2]+"wI"+bh.slice(1,5)]["b"+EE.slice(1,y)](E.Z,tf,y,y),E.Vc(!0),Vh(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 Vh(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(_n,"resize",a.Ov,!1)}function zl(a){30<a.Sq&&(a.Yh=1)}function jd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ki&&ki.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}kn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:_n.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=_n.scrollX||_n.pageXOffset,y=_n.scrollY||_n.pageYOffset;this.ta.focus(),_n.scrollTo(a,y)}},kn.prototype.Oy=function(){this.H.R("GainedFocus")},kn.prototype.Ny=function(){this.H.R("LostFocus")};function tp(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===pl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function $p(a){var y=new Cs;y.name="Background",a.Al(y),y=new Cs,y.name="",a.Al(y),y=new Cs,y.name="Foreground",a.Al(y),y=new Cs,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Cs,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Cs,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function eg(a){var y=new Ar(Ar.Grid);y.name="GRID";var b=new oo;return b.figure="LineH",b.stroke="lightgray",b.strokeWidth=.5,b.interval=1,y.add(b),b=new oo,b.figure="LineH",b.stroke="gray",b.strokeWidth=.5,b.interval=5,y.add(b),b=new oo,b.figure="LineH",b.stroke="gray",b.strokeWidth=1,b.interval=10,y.add(b),b=new oo,b.figure="LineV",b.stroke="lightgray",b.strokeWidth=.5,b.interval=1,y.add(b),b=new oo,b.figure="LineV",b.stroke="gray",b.strokeWidth=.5,b.interval=5,y.add(b),b=new oo,b.figure="LineV",b.stroke="gray",b.strokeWidth=1,b.interval=10,y.add(b),b=new Pi,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 Pf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):gh(this.H)}function np(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):gh(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 Le=x.width,Me=x.height,ze=x.right,qe=x.bottom;x=this.scale;var Ct=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ct=Ct+a.scrollWidth-a.clientWidth;break;case"reverse":Ct=a.scrollWidth-Ct-a.clientWidth}var yt=Ct;Le<se||Me<de?(Ct=it.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==yt&&(Ct.x=yt/x+ne,this.ju=yt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ct.y=a.scrollTop/x+ie,this.lu=a.scrollTop),this.position=Ct,it.free(Ct),this.Ee=this.qr=!1):(Ct=it.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Se&&(this.position=Ct.h(yt+ne,this.position.y)),pe>ze&&(this.position=Ct.h(-(y.scrollWidth-this.Aa)+yt-this.Aa/x+pe,this.position.y))),a.vy&&this.allowVerticalScroll&&(ie<E&&(this.position=Ct.h(this.position.x,a.scrollTop+ie)),z>qe&&(this.position=Ct.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/x+z))),it.free(Ct),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,x=this.viewportBounds,pe=E.right,ze=x.right,z=E.bottom,qe=x.bottom,ne=E.x,Se=x.x,ie=E.y,E=x.y,Le>=se&&ne>=Se&&pe<=ze&&(b.style.width="1px"),Me>=de&&ie>=E&&z<=qe&&(b.style.height="1px"))}},kn.prototype.computeBounds=function(a){return a===void 0&&(a=new An),Ps(this),rp(this,a)};function rp(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(Nn(a))for(var E=0;E<a.length;E++){var x=a[E];!y&&x instanceof Hr||(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 Hr||(E.Va(),b===null?b=E.actualBounds.copy():b.ed(E.actualBounds));return b===null?new An(NaN,NaN,0,0):b};function qu(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=it.alloc(),b.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=An.allocAt(0,0,E.width,E.height);var x=it.alloc();x.xi(E,a.initialViewportSpot),x.h(b.x-x.x,b.y-x.y),a.position=x,An.free(E),it.free(x),it.free(b)}b=a.yh,y&&a.Fg!==pl&&(b=a.Fg);var z=b!==pl?fh(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()?Xi:se),ip(a,a.documentBounds,x,ne,ie,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,en.B(z.x,b)&&en.B(z.y,E)&&en.B(z.width,x)&&en.B(z.height,ne)||a.onViewportBoundsChanged(new An(b,E,x,ne),z,y,!1)}}function fh(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===zu?(y=Math.min(se,ie),y>b&&(y=b),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===cd?(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=Ad,this.scale=fh(this,zu),a!==Ad&&(qu(this,!1),ip(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},_e=kn.prototype,_e.BA=function(a,y){y===void 0&&(y=zu);var b=a.width,E=a.height;if(!(b===0||E===0||isNaN(b)&&isNaN(E))){var x=1;if(y===zu||y===cd)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===cd?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 it(a.x,a.y)}},_e.Jy=function(a,y){this.Va();var b=this.documentBounds,E=this.viewportBounds;this.position=new it(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))},_e.zz=function(a){if(a instanceof on){this.eq=a;var y=it.alloc();this.fq=this.op(a.ga(ho,y)),it.free(y)}else this.eq=null,this.fq=ai};function ip(a,y,b,E,x,z){var ne=it.allocAt(a.pa.x,a.pa.y),ie=ne.x,se=ne.y;if(a.eq!==null){var de=it.alloc();de=a.eq.ga(ho,de),ie=de.x-a.fq.x/a.scale,se=de.y-a.fq.y/a.scale,x=Yi,it.free(de)}(z||a.scrollMode===Ad)&&(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),zd(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Oc(a),it.free(ne)}_e.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=qc(this,a,function(b){return b.part},function(b){return b.canSelect()}),a instanceof Pi)return a}else if(a=qc(this,a,function(b){return b.part}),a instanceof Pi)return a;return null},_e.ic=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null),Ps(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 qc(a,y,b,E){for(b===void 0&&(b=null),E===void 0&&(E=null),Ps(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}_e.lz=function(a,y,b){return y===void 0&&(y=!0),Wh(this,a,function(E){return E.part},y?function(E){return E instanceof Pi&&E.canSelect()}:null,b)};function Wh(a,y,b,E,x){for(b===void 0&&(b=null),E===void 0&&(E=null),x instanceof qn||x instanceof lr||(x=new lr),Ps(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,b,E,x)}return x}_e.ji=function(a,y,b,E){y===void 0&&(y=null),b===void 0&&(b=null),E instanceof qn||E instanceof lr||(E=new lr),Ps(this);for(var x=this.Wa.iteratorBackwards;x.next();){var z=x.value;z.visible&&z.ji(a,y,b,E)}return E},_e.ux=function(a,y,b,E){return y===void 0&&(y=!1),b===void 0&&(b=!0),Tf(this,a,function(x){return x instanceof Pi&&(!b||x.canSelect())},y,E)},_e.Cf=function(a,y,b,E,x){y===void 0&&(y=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof qn||x instanceof lr||(x=new lr),Ps(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,b,E,x)}return x},_e.Nu=function(a,y,b,E,x,z){var ne=new lr;Ps(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 Tf(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 qn||x instanceof lr||(x=new lr),Ps(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,b,E,x)}return x}_e.mz=function(a,y,b,E,x){return b===void 0&&(b=!0),E===void 0&&(E=!0),Zh(this,a,y,function(z){return z instanceof Pi&&(!E||z.canSelect())},b,x)},_e.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 qn||x instanceof lr)&&(z=x),x=!0),z instanceof qn||z instanceof lr||(z=new lr),Ps(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 Zh(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 qn||x instanceof lr)&&(z=x),x=!0),z instanceof qn||z instanceof lr||(z=new lr),Ps(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 $l(this,a,a instanceof MouseEvent)};function $l(a,y,b){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,b?Vd(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),Ti&&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=op(y,y.target),E.targetObject=null,E}function op(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 Af(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,Ti&&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 Pu(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=$l(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(),Pu(b,a)},kn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=$l(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(),Pu(b,a)},kn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=$l(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(b),y.currentTool.standardMouseOver(),Pu(b,a)},kn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=$l(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(b),Pu(b,a)},kn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new it(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?xn(new it(y,a),this.Ab):new it(y,a)};function Vd(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=it.allocAt(ne,ie),a.Ab.Cd(y),b.documentPoint.assign(y),it.free(y)):b.documentPoint.h(ne,ie)}function Nf(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 tg(a){a.ld||Ps(a),a.Va()}kn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},_e=kn.prototype,_e.Pz=function(){return this.kg},_e.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,b=y.isEnabled;y.Cc(),y.isEnabled=!1,Hu(this),this.hf=!1,this.du=new it(NaN,NaN),y.isEnabled=b,this.ld=!0;var E=this;a!==null&&bi(function(){E.ld=!1,ms(y,"Model"),a(E)},1)},_e.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;_n.requestAnimationFrame(function(){y.kg&&y.bd()})}},_e.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Hu(this))};function wd(a,y,b){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||gh(a)||(y&&Ps(a),b&&qu(a,!1))}function Hu(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];Ft(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||tp(a),wd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Ec(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ps(a),z=!1,(!a.hf||a.xh)&&(a.hf?pp(a,!a.Jk):(a.Ea("Initial Layout"),b.isEnabled===!1&&b.Cc(),pp(a,!1)),z=!0),a.Jk=!1,Ps(a),a.ou||tg(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,ap(a)),a.R("LayoutCompleted"),wd(a,!0,!1),An.free(b)):b.Ok&&b.Qw&&(a.Fg!==pl?a.scale=fh(a,a.Fg):a.yh!==pl?a.scale=fh(a,a.yh):(b=a.initialScale,isFinite(b)&&0<b&&(a.scale=b)),qu(a,!0)),z&&ne&&a.eb("Initial Layout"),Ps(a),y||a.gc(a.ib),x&&(a.skipsUndoManager=E),a.ld=!1}}function ap(a){if(a.Fg!==pl)a.scale=fh(a,a.Fg);else if(a.yh!==pl)a.scale=fh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}qu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Ec(a)}function Ps(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 lr,a.Nv(b,a.De)}a.nodes.each(function(E){E instanceof no&&E.U&65536&&(E.U=E.U^65536)})}}_e.Nv=function(a,y){for(a.reset();a.next();){var b=a.value;!b.Zc()||b instanceof no||(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))}for(a.reset();a.next();)b=a.value,b instanceof no&&b.isVisible()&&Kh(this,b);for(a.reset();a.next();)b=a.value,b instanceof Hr&&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 Mo&&b.isVisible()&&(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))};function Kh(a,y){for(var b=Rr(),E=Rr(),x=y.memberParts;x.next();){var z=x.value;z.isVisible()&&(z instanceof no?(Nt(z)||Kt(z)||rf(z))&&Kh(a,z):z instanceof Hr?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(kr(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();kr(E)}_e.Fd=function(a,y,b,E){if(this.vd||this.animationManager.isAnimating)for(var x=0;x<y;x++)a[x].Fd(b,E)},_e.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Lt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Pd(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,Ha(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?Jd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ri.prototype.Cd=Ri.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(b=new Date,Pd(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?Jd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ri.prototype.Cd=Ri.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+b,E=ki&&ki.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 Lf(a,y,b,E,x,z,ne,ie,se,de){if(a.Ka!==null){a.ta===null&&Lt("No canvas specified"),ne===void 0&&(ne=null),ie===void 0&&(ie=null),se===void 0&&(se=!1),de===void 0&&(de=!1),Pd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var pe=a.Ca;a.Ca=x;var Se=a.Wa.s,Le=Se.length;try{var Me=new An(z.x,z.y,E.width/x,E.height/x),ze=Me.copy();ze.Co(b),Ec(a,ze),Ps(a),a.Fd(Se,Le,a,Me),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 qe=a.Mb;y.scale(qe,qe);var Ct=Ri.alloc();Ct.reset(),Ct.translate(b.left,b.top),Ct.scale(x),z.x===0&&z.y===0||Ct.translate(-z.x,-z.y),y.setTransform(Ct.m11,Ct.m12,Ct.m21,Ct.m22,Ct.dx,Ct.dy),y.yc(),y instanceof Go&&Ha(y,Ct.m11,Ct.m12,Ct.m21,Ct.m22,Ct.dx,Ct.dy),Ri.free(Ct),Cd(a,y),y.globalAlpha=a.pb;var yt=a.Qj("Grid");if(ne){var Dt=new lr,Ot=ne.iterator;for(Ot.reset();Ot.next();){var zt=Ot.value;zt instanceof Pi&&(de||zt.layer!==yt)&&(zt.Gj(),Dt.add(zt))}for(de=0;de<Le;de++)Kp(Se[de],y,a,Dt,se);Dt.each(function(In){return In.Gj()})}else for(Dt=0;Dt<Le;Dt++){var $t=Se[Dt];$t===yt?de&&$t.gc(y,a,!0):$t.gc(y,a,se)}a.$i=!1,a.Yf&&Jd(a.Yf,a)&&a.Vp()}finally{a.Ca=pe,a.ib.Vc(!0),a.vd=!0,a.Fd(Se,Le,a,a.viewportBounds),Ec(a),a.ib instanceof Go&&(a.ib.Nj.PA(),a.redraw())}}}_e.Gf=function(a){return this.Rg[a]},_e.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},_e.Tx=function(){this.Rg=new gi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Ti||un),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))}_e.Ql=function(a){return this.on[a]},_e.sA=function(a,y){this.on[a]=y},_e.Sx=function(){this.on=new gi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},_e.set=function(a){return Object.assign(this,a),this},_e.Du=function(a){return this.nm(a)},_e.nm=function(a){return ph(this,a),this};function ph(a,y){var b=a instanceof Ar,E=a instanceof kn,x;for(x in y){x===""&&Lt("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])),Yt(z)?ne=x.substr(ie+1):Lt("Unable to find object named: "+se+" in "+a.toString()+" when trying to set property: "+x)}}if(ne[0]!=="_"&&!jr(z,ne))if(E&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(E&&ne==="Changed"){a.Pe(y[ne]);continue}else if(E&&jr(a.toolManager,ne))z=a.toolManager;else if(E&&yh(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof Ei&&ne==="Changed"){a.Pe(y[ne]);continue}else Lt('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[x],ne[0]==="_"&&z instanceof on&&z.Vw(ne)}}_e.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new wn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},_e.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!==Sh&&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(),vh(this,this.computeBounds(E)),An.free(E)),E=this.ta,E===null||E instanceof ra)))){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),Le=Math.floor(x-pe),Me=Math.floor(ie-Se);a.drawImage(E.Oa,pe,Se,Le,Me,0,0,Le,Me),Jd(this.Yf,this)&&a.clearRect(0,0,se,de),E=Rr(),a=Rr(),Me=Math.abs(z),Le=Math.abs(y);var ze=pe===0?0:x-Me;pe=it.allocAt(ze,0),Me=it.allocAt(Me+ze,ie),a.push(new An(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y)));var qe=this.Ab;if(qe.reset(),qe.scale(ne,ne),this.Ca!==1&&qe.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&qe.translate(-ne.x,-ne.y),xn(pe,qe),xn(Me,qe),E.push(new An(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),ze=Se===0?0:ie-Le,pe.h(0,ze),Me.h(x,Le+ze),a.push(new An(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),xn(pe,qe),xn(Me,qe),E.push(new An(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),Jd(this.Yf,this)&&(x=0<z?0:-z,ie=0<y?0:-y,pe.h(x,ie),Me.h(se+x,de+ie),a.push(new An(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),xn(pe,qe),xn(Me,qe),E.push(new An(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y)))),it.free(pe),it.free(Me),wd(this,!1,!0),this.Ka===null&&Lt("No div specified"),this.ta===null&&Lt("No canvas specified"),!this.animationManager.zb&&(x=this.ib,this.Fc)){for(Pd(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=ud(ne,x),Se=ne.Zq,Se.length=0,pe=this.scale,Le=An.alloc(),Me=ne.Pa.s,qe=Me.length,ze=se.length;for(var Ct=0;Ct<qe;Ct++){var yt=Me[Ct],Dt=jf(yt,yt.actualBounds);e:{for(var Ot=2/pe,zt=4/pe,$t=0;$t<ze;$t++){var In=se[$t];if(In.width!==0&&In.height!==0&&Dt.Vu(In.x-Ot,In.y-Ot,In.width+zt,In.height+zt)){Dt=!0;break e}}Dt=!1}Dt&&ne.Oj(x,yt,this,Se,pe,Le,!0)}An.free(Le),x.globalAlpha=de}x.restore(),x.Vc(!0),this.Yf&&Jd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}kr(E),kr(a),this.ld=!1}}else this.bd();b&&(zl(this),this.bd(),jd(this,!0))}else b?(zl(this),this.bd(),jd(this,!0)):this.bd()}};function Pd(a){a.pn!==!1&&(a.pn=!1,sp(a,a.Aa,a.ya))}function sp(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 gh(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,Le=pe.width,Me=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 ze=a.ku,qe=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Ct=a.documentBounds,yt=0,Dt=0,Ot=0,zt=0,$t=pe.width,In=pe.height,Jr=a.rj;a.contentAlignment.sb()?(Ct.width>$t&&(yt=Jr.left,Dt=Jr.right),Ct.height>In&&(Ot=Jr.top,zt=Jr.bottom)):(yt=Jr.left,Dt=Jr.right,Ot=Jr.top,zt=Jr.bottom);var mi=Ct.width+yt+Dt,ui=Ct.height+Ot+zt;Jr=a.scale;var Ur=mi>se/Jr,pr=ui>de/Jr;if(!(z||a.gf||a.Be||Ur||pr))return!0;yt=Ct.x-yt,se=pe.x,Dt=Ct.right+Dt,de=pe.right+ne,Ot=Ct.y-Ot;var $i=pe.y;Ct=Ct.bottom+zt,pe=pe.bottom+ie;var _i="1px";if(zt="1px",a.scrollMode===Ad&&(Ur||pr)&&(Ur&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ur=1,yt+1<se&&(Ur=Math.max((se-yt)*Jr+a.Aa,Ur)),Dt>de+1&&(Ur=Math.max((Dt-de)*Jr+a.Aa,Ur)),$t+ne+1<mi&&(Ur=Math.max((mi-$t)*Jr+a.Aa,Ur)),_i=Ur.toString()+"px"),pr&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ur=1,Ot+1<$i&&(Ur=Math.max(($i-Ot)*Jr+a.ya,Ur)),Ct>pe+1&&(Ur=Math.max((Ct-pe)*Jr+a.ya,Ur)),In+ie+1<ui&&(Ur=Math.max((ui-In)*Jr+a.ya,Ur)),zt=Ur.toString()+"px")),Ur=_i!=="1px",pr=zt!=="1px",Ur&&pr||!Ur&&!pr||(pr&&(de-=a.Db),Ur&&(pe-=a.Db),mi<$t+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,yt+1<se&&(ne=Math.max((se-yt)*Jr+a.Aa,ne)),Dt>de+1&&(ne=Math.max((Dt-de)*Jr+a.Aa,ne)),$t+1<mi&&(ne=Math.max((mi-$t)*Jr+a.Aa,ne)),_i=ne.toString()+"px"),Ur=_i!=="1px",ne=a.ya,Ur!==a.Be&&(ne=Ur?a.ya-a.Db:a.ya+a.Db),ui<In+ie||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ie=1,Ot+1<$i&&(ie=Math.max(($i-Ot)*Jr+ne,ie)),Ct>pe+1&&(ie=Math.max((Ct-pe)*Jr+ne,ie)),In+1<ui&&(ie=Math.max((ui-In)*Jr+ne,ie)),zt=ie.toString()+"px"),pr=zt!=="1px"),a.qr&&Ur===a.Be&&pr===a.gf)return b===a.Aa&&E===a.ya||a.bd(),!1;if(Ur!==a.Be&&(_i==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Ur,qe.style.width=_i,pr!==a.gf&&(zt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ie=it.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)),it.free(ie))),z&&Oc(a),a.gf=pr,qe.style.height=zt,a.gu=!0,z&&(a.pn=!0),y=ze.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($t+1<mi?y=(a.position.x-yt)*Jr:yt+1<se?y=ze.scrollWidth-ze.clientWidth:Dt>de+1&&(y=a.position.x*Jr)),a.tn)switch(a.bu){case"negative":y=-(ze.scrollWidth-y-ze.clientWidth);break;case"reverse":y=ze.scrollWidth-y-ze.clientWidth}return ze.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(In+1<ui?ze.scrollTop=(a.position.y-Ot)*Jr:Ot+1<$i?ze.scrollTop=ze.scrollHeight-ze.clientHeight:Ct>pe+1&&(ze.scrollTop=a.position.y*Jr)),se=a.Aa,de=a.ya,ze.style.width=se+(a.gf?a.Db:0)+"px",ze.style.height=de+(a.Be?a.Db:0)+"px",b!==se||E!==de||a.animationManager.zb?(b=An.allocAt(x,Se,Le,Me),a.onViewportBoundsChanged(b,a.viewportBounds,Jr,z),An.free(b),!1):!0}_e=kn.prototype,_e.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Lt("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&&Lt('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)}},_e.oi=function(a){this.partManager.oi(a);var y=this;Hf(a,function(b){mh(y,b)}),(a instanceof Mo||a instanceof no&&a.placeholder!==null)&&a.v(),a.data!==null&&Hf(a,function(b){by(y.partManager,b)}),Kt(a)!==!0&&rf(a)!==!0||this.De.add(a),VS(a,!0,this),ZS(a)?(a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.$b()},_e.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Hf(a,function(b){Ey(y.partManager,b,y)}),this.De.remove(a),ZS(a)?(a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.$b()},_e.remove=function(a){lp(this,a,!0)};function lp(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(La,"parts",E,y,null,b,null),a=y.layerChanged,a!==null&&a(y,E,null))}_e.Is=function(a,y){if(y===void 0&&(y=!1),Nn(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 lr,b.addAll(a),a=b.iterator;a.next();)b=a.value,y&&!b.canDelete()||this.remove(b)},_e.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=kf(this)),this.toolManager!==null){var x=new wn;if(a!==null)if(Nn(a))for(var z=0;z<a.length;z++)$c(this,x,a[z],b,E);else for(a=a.iterator;a.next();)$c(this,x,a.value,b,E);else{for(a=this.parts;a.next();)$c(this,x,a.value,b,E);for(a=this.nodes;a.next();)$c(this,x,a.value,b,E);for(a=this.links;a.next();)$c(this,x,a.value,b,E)}Wd(this,x,y,E,b)}};function $c(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=kf(a)),b instanceof qr){if(y.add(b,a.Pd(x,b,b.location)),b instanceof no&&(b.placeholder!==null||x.dragsMembers))for(z=b.memberParts;z.next();)$c(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)&&$c(a,y,ne,E,x)}}if(x.dragsTree)for(b=b.Ou();b.next();)$c(a,y,b.value,E,x)}else if(b instanceof Hr)for(y.add(b,a.Pd(x,b)),b=b.labelNodes;b.next();)$c(a,y,b.value,E,x);else b instanceof Mo||y.add(b,a.Pd(x,b,b.location))}function Wd(a,y,b,E,x){if(y!==null&&y.count!==0){var z=it.alloc(),ne=it.alloc();ne.assign(b),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(b=a.Mr)||Yh(a,y);for(var ie=Rr(),se=Rr(),de=y.iterator,pe=it.alloc();de.next();){var Se=de.key,Le=de.value;if(Se.Zc()){var Me=up(a,Se,y);Me!==null?ie.push(new re(Se,Le,Me)):(!x||Se.canMove())&&(Me=Le.point,z.assign(Me),a.computeMove(Se,z.add(ne),E,pe),Se.location=pe,Le.shifted===void 0&&(Le.shifted=new it),Le.shifted.assign(pe.re(Me)))}else de.key instanceof Hr&&se.push(de.sa)}for(it.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 it),Se.node.location=z.add(Se.Su.shifted);for(x=it.alloc(),de=it.alloc(),Se=se.length,Le=0;Le<Se;Le++){var ze=se[Le];if(Me=ze.key,Me instanceof Hr)if(Me.suspendsRouting){Me.Tg=null,pe=Me.fromNode;var qe=Me.toNode;if(a.draggedLink!==null&&E.dragsLink)if(qe=ze.value.point,Me.dragComputation===null)y.add(Me,a.Pd(E,Me,ne)),Lh(Me,ne.x-qe.x,ne.y-qe.y);else{ze=it.allocAt(0,0),(pe=Me.i(0))&&pe.w()&&ze.assign(pe);var Ct=pe=it.alloc().assign(ze).add(ne);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Ct=it.alloc(),If(a,Me,pe,Ct,E)),pe.assign(Me.dragComputation(Me,pe,Ct)).re(ze),y.add(Me,a.Pd(E,Me,pe)),Lh(Me,pe.x-qe.x,pe.y-qe.y),it.free(ze),it.free(pe),Ct!==pe&&it.free(Ct)}else pe!==null&&(x.assign(pe.location),Ct=y.I(pe),Ct!==null&&x.re(Ct.point)),qe!==null&&(de.assign(qe.location),Ct=y.I(qe),Ct!==null&&de.re(Ct.point)),pe!==null&&qe!==null?x.Xa(de)?(pe=ze.value.point,qe=z,qe.assign(x),qe.re(pe),y.add(Me,a.Pd(E,Me,x)),Lh(Me,qe.x,qe.y)):(Me.suspendsRouting=!1,Me.bb()):(ze=ze.value.point,pe=pe!==null?x:qe!==null?de:ne,y.add(Me,a.Pd(E,Me,pe)),Lh(Me,pe.x-ze.x,pe.y-ze.y))}else(Me.fromNode===null||Me.toNode===null)&&(pe=ze.value.point,y.add(Me,a.Pd(E,Me,ne)),Lh(Me,ne.x-pe.x,ne.y-pe.y))}it.free(z),it.free(ne),it.free(x),it.free(de),kr(ie),kr(se),b||(Ps(a),Zd(a,y))}}kn.prototype.computeMove=function(a,y,b,E){if(E===void 0&&(E=new it),E.assign(y),a===null)return E;var x=y,z=b.isGridSnapEnabled;z&&(b.isGridSnapRealtime||this.lastInput.up)&&(x=it.alloc(),If(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&&it.free(x),E};function kf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function If(a,y,b,E,x){if(x===void 0&&(x=kf(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=it.allocAt(0,0),z.yi(0,0,a,y,x),en.No(b.x,b.y,ie+z.x,ne+z.y,a,y,E),it.free(z)}}function Yh(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Hr&&(y.suspendsRouting=!0)}function Zd(a,y){if(y!==null){for(y=y.iterator;y.next();){var b=y.key;b instanceof Hr&&(b.suspendsRouting=!1,ay(b)&&b.bb())}a.Mr=!1}}function up(a,y,b){return y=y.containingGroup,y!==null&&(a=up(a,y,b),a!==null||(a=b.I(y),a!==null))?a:null}_e=kn.prototype,_e.Pd=function(a,y,b){if(b===void 0)return new Bc(Or);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Bc(new it(Math.round(1e3*b.x)/1e3,Math.round(1e3*b.y)/1e3)):new Bc(b.copy())};function cp(a,y,b){if(y.diagram!==null&&y.diagram!==a&&Lt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),b===null?y.diagram!==null&&Lt("Cannot add an existing Layer to this Diagram again: "+y):(b.diagram!==a&&Lt("Existing Layer must be in this Diagram: "+b+" not in "+b.diagram),y===b&&Lt("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&&Lt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}_e.Al=function(a){cp(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},_e.Ww=function(a,y){cp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(La,"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},_e.Cy=function(a,y){cp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(La,"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},_e.kA=function(a){if(a.diagram!==this&&Lt("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(La,"layers",this,a,null,b,null),this.N(),this.Ya()}}},_e.Qj=function(a){for(var y=this.layers;y.next();){var b=y.value;if(b.name===a)return b}return null},_e.Yw=function(a){return this.pf===null&&(this.pf=new qn),this.pf.add(a),this.model.Pe(a),this},_e.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},_e.Pe=function(a){return this.zg===null&&(this.zg=new qn),this.zg.add(a),this},_e.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},_e.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Os&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,b=y.length,E=0;E<b;E++)y.M(E)(a)},_e.cb=function(a,y,b,E,x,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var ie=new va;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)},_e.g=function(a,y,b,E,x){this.cb(oa,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===oa){var x=a.object;if(Ca(x,a.propertyName,a.I(y)),x instanceof on){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 Ar)if(typeof ie=="number"&&se instanceof on){y?ne.pc(ie):ne.Gb(ie,se);var de=ne.part;de!==null&&de.Wb()}else typeof ie=="number"&&se instanceof vs&&(se.isRow?mS(ne,ie,y?void 0:se):vS(ne,ie,y?void 0:se));else if(ne instanceof Cs){var pe=a.oldParam===!0;typeof ie=="number"&&se instanceof Pi&&(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 Cs&&(y?this.Wa.mb(ie):(se.Xe(this),this.Wa.Gb(ie,se))):Lt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===La){var Se=a.object,Le=a.oldParam,Me=a.oldValue;if(Se instanceof Ar)typeof Le=="number"&&Me instanceof on?y?Se.Gb(Le,Me):Se.pc(Le):typeof Le=="number"&&Me instanceof vs&&(Me.isRow?mS(Se,Le,y?Me:void 0):vS(Se,Le,y?Me:void 0));else if(Se instanceof Cs){var ze=a.newParam===!0;typeof Le=="number"&&Me instanceof Pi&&(y?0>Se.Pa.indexOf(Me)&&Se.oi(Le,Me,ze):(Me.isSelected=!1,Me.isHighlighted=!1,Me.Wb(),Se.pc(ze?Le:-1,Me,ze)))}else Se instanceof kn?typeof Le=="number"&&Me instanceof Cs&&(y?(Me.Xe(this),this.Wa.Gb(Le,Me)):this.Wa.mb(Le)):Lt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Os&&Lt("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 dp(a,y,b){var E=a.animationManager;if(a.vb||a.ld)a.Ca=b,Oc(a),a.N(),a.Ee=!0,E.zb&&(fl(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(Hs)?ie=0:de.Hf(da)&&(ie=z-1):ie=de.sb()?de.x*(z-1):z/2),isNaN(se)&&(de.$c()?de.Hf(ga)?se=0:de.Hf(Rs)&&(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=it.allocAt(a.pa.x+ie/y-ie/b,a.pa.y+se/y-se/b),a.position=z,it.free(z),a.Ca=b,Oc(a),a.vb=!1,a.onViewportBoundsChanged(x,a.viewportBounds,y,!1),qu(a,!1),E.zb&&(fl(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!==pl||a.width===y.width&&a.height===y.height||x.C(),x=this.currentTool,this.Vk===!0&&x instanceof aa&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Sc(x,this)),this.vb||this.invalidateViewport(a,y),Ec(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 Ec(a,y){var b=a.fe;if(b!==null&&b.visible){for(var E=an.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/en.vx(z,pe):x=x*pe/en.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=it.alloc(),en.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),an.free(E),b.part.location=y,it.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),Nn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];E instanceof Pi||Lt("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Pi||Lt("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()}},_e=kn.prototype,_e.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},_e.Jz=function(a){a=new lr().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 Pi||Lt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},_e.scroll=function(a,y,b){b===void 0&&(b=1);var E=y==="up"||y==="down",x=0,z=it.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)),it.free(z);return}Lt("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):Lt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),it.free(z)},_e.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)},_e.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},_e.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)},_e.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,Le=b*ne+E*se+pe;y=b*ie+E*de+Se;var Me=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(Le,Me),Le=Math.max(Le,Me),Me=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Le=Math.max(Le,E),Me=Math.min(Me,b),y=Math.max(y,b),z=Math.min(z,ne),Le=Math.max(Le,ne),Me=Math.min(Me,x),y=Math.max(y,x),new An(z,Me,Le-z,y-Me)},_e.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),xn(a.copy(),this.Ab)};function ng(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function hp(a){return a=Mf.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===Os&&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===Os){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ps(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ql(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&&(ng(this),this.As.clear(),cc(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var ie=this;bi(function(){ie.currentTool.standardMouseOver(),ie.Rt=!1},10)}}}finally{this.aa=!0}}}};function mh(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 gu){var b=y.element;if(b!==null&&b instanceof HTMLImageElement){b.Bg instanceof lr&&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 fp(a,y){if(y instanceof gu){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 lr&&b.Bg.remove(a),pg(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)},_e=kn.prototype,_e.Lc=function(a){return this.partManager.Lc(a)},_e.ii=function(a){return this.partManager.ii(a)},_e.Kc=function(a){return this.partManager.Kc(a)},_e.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:sr(Tr(y)))},_e.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:sr(Tr(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 vh(a,y){a.Zi=!1;var b=a.Sp;b.D(y)||(b=b.copy(),a.Sp.assign(y),qu(a,!1),a.R("DocumentBoundsChanged",void 0,b),a.Ee=!0,a.N())}_e.Va=function(){if(this.Zi){var a=An.alloc();vh(this,this.computeBounds(a)),An.free(a)}},_e.rz=function(){for(var a=new lr,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},_e.qz=function(){return this.ai.iterator},_e.Uz=function(a){Ps(this),a&&Xh(this,!0),this.ld?pp(this,!1):(this.Jk=!0,Hu(this))};function Xh(a,y){for(var b=a.ai.iterator;b.next();)rg(a,b.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function rg(a,y,b){if(y!==null){for(var E=y.gl.iterator;E.next();)rg(a,E.value,b);y.layout!==null&&(b?y.layout.isValidLayout=!1:y.layout.C())}}function pp(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||ms(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)gp(a,ne.value,y,E);x.isValidLayout||(!y||x.isRealtime||x.isRealtime===null||E===0?(x.doLayout(a),Ps(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||ql(z),a.aa=b}}}function gp(a,y,b,E){if(y!==null){for(var x=y.gl.iterator;x.next();)gp(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),Kh(a,y),x.isValidLayout=!0):a.xh=!0)}}_e.yz=function(){for(var a=new qn,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 qn;b.add(x,ne),b.add(z,ne),E.add(x,x),E.add(z,x)}var b=new wn,E=new wn;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 yh(a,y){var b=a.hw.I(y);return b!==null?b:a.hw.I(y.toLowerCase())}function Df(a,y){var b=a.iw.I(y);if(b!==null||(b=a.iw.I(y.toLowerCase()),b!==null))return b;Lt("Unknown DiagramEvent name: "+y)}_e.Bj=function(a,y){return a=Df(this,a),a!==null&&a.add(y),this},_e.am=function(a,y){a=Df(this,a),a!==null&&a.remove(y)},_e.R=function(a,y,b){var E=Df(this,a),x=new Fu;if(x.diagram=this,a=yh(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 Qh(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}_e.Yj=function(a,y){return Rf(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?rp(this,a):a.assign(this.documentBounds)};function Rf(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=ig(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&&mp(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 qr&&mp(a,ne,E,y);An.free(y)}x.group=b,x.Yx=E,x.vs=!1}else y&&d1(x);return x}function ig(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ig(a,y.containingGroup):null}function mp(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(bg(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 no)for(y=y.memberParts;y.next();)x=y.value,x instanceof qr&&mp(a,x,b,E)}}function Td(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():Jh(this)};function Jh(a){a.vk===-1&&(a.vk=bi(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),vh(a,y),An.free(y),a.Fc=!0,a.bd(),Jh(a))}},a.vp))}kn.prototype.ug=function(){this.vk!==-1&&(_n.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=it.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(Or)||(y=new it(y.x+z.x/x,y.y+z.y/x)),An.free(E),it.free(z),y},_e=kn.prototype,_e.Cs=function(){return null},_e.av=function(){return null},_e.bs=function(a,y){this.pj.add(a,y)},_e.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof no&&(y.$p=null)})};function qh(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):_n.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 _n.requestAnimationFrame(function(){E()}),null}_e.Wz=function(a){return Fa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},_e.Jx=function(a){return a===void 0&&(a={}),qh(this,this.Xz,a)},_e.Xz=function(a,y,b){var E=og(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 bh+"data":x=E.getImageData(0,0,b.width,b.height);break;case bh:E=(a.document||document).createElement("img"),E.src=b.toDataURL(a.type,a.details),x=E;break;case"blob":return typeof y!="function"&&Lt('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 og(a,y,b,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Lt("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 an(1/0,1/0):new an(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 Le=y.document||document,Me=y.elementFinished||null,ze=y.showTemporary;ze===void 0&&(ze=!Se),y=y.showGrid,y===void 0&&(y=ze),x!==null&&isNaN(x.width)&&isNaN(x.height)&&(x=null),typeof de=="number"?de=new to(de):de instanceof to||Lt("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 nu(null,Le,void 0,!0);var qe=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=Le,E.hs=Me,Lf(a,E.context,de,new an(Se.width,Se.height),a.Ca,a.pa,se,pe,ze,y),E.context):(a.Xm=!1,Lf(a,qe,de,new an(Se.width,Se.height),a.Ca,a.pa,se,pe,ze,y),a.Xm=!0,Se.context);var Ct=a.Pp,yt=a.documentBounds.copy();if(yt.Fv(a.yb),ze)for(var Dt=a.Wa.s,Ot=Dt.length,zt=0;zt<Ot;zt++){var $t=Dt[zt];if($t.visible&&$t.isTemporary){$t=$t.Pa.s;for(var In=$t.length,Jr=0;Jr<In;Jr++){var mi=$t[Jr];mi.isInDocumentBounds&&mi.isVisible()&&(mi=mi.actualBounds,mi.w()&&yt.ed(mi))}}}if(Dt=new it(yt.x,yt.y),se!==null){for(Ot=new An(0,0,0,0),zt=!0,$t=se.iterator,$t.reset();$t.next();)In=$t.value,In instanceof Pi&&(Jr=In.layer,Jr!==null&&!Jr.visible||Jr!==null&&!ze&&Jr.isTemporary||!In.isVisible()||(In=In.actualBounds,In.w()&&(zt?(zt=!1,Ot.assign(In)):Ot.ed(In))));yt.width=Ot.width,yt.height=Ot.height,Dt.x=Ot.x,Dt.y=Ot.y}return ie!==null&&ie.w()&&(Dt=ie,z||(z=Ct)),Ot=ie=0,de!==null&&(ie=de.left+de.right,Ot=de.top+de.bottom),zt=$t=0,x!==null&&($t=x.width,zt=x.height,isFinite($t)&&($t=Math.max(0,$t-ie)),isFinite(zt)&&(zt=Math.max(0,zt-Ot))),x!==null&&z!==null?(z==="NaN"&&(z=Ct),x.w()?(x=$t,yt=zt):isNaN(zt)?(x=$t,yt=yt.height*z):(x=yt.width*z,yt=zt)):x!==null?x.w()?(z=Math.min($t/yt.width,zt/yt.height),x=$t,yt=zt):isNaN(zt)?(z=$t/yt.width,x=$t,yt=yt.height*z):(z=zt/yt.height,x=yt.width*z,yt=zt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-ie)/yt.width,(ne.height-Ot)/yt.height),z>Ct?(z=Ct,x=yt.width,yt=yt.height):(x=ne.width,yt=ne.height)):(x=yt.width*z,yt=yt.height*z):(z=Ct,x=yt.width,yt=yt.height),de!==null?(x+=ie,yt+=Ot):de=new to(0),ne!==null&&(Ct=ne.width,ne=ne.height,isNaN(Ct)&&(Ct=2e3),isNaN(ne)&&(ne=2e3),isFinite(Ct)&&(x=Math.min(x,Ct)),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=Le,E.hs=Me,Lf(a,E.context,de,new an(Math.ceil(x),Math.ceil(yt)),z,Dt,se,pe,ze,y),E.context):(a.Xm=!1,Lf(a,qe,de,new an(Math.ceil(x),Math.ceil(yt)),z,Dt,se,pe,ze,y),a.Xm=!0,Se.context)}$n.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 ra(this,_n.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 ra(this,_n.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(_n,"resize",this.Ov,!1),this.removeEventListener(_n,"wheel",this.$j,!0),Jc===this&&(Jc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),qp(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)&&Nr(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),qu(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),qu(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),qu(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),qu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Nr(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&&Nr(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 Nr(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||ng(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&&Lt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var b=Qp(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,ms(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=hp(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(_n,"pointermove",this.dk,!0),this.addEventListener(_n,"pointerdown",this.ui,!0),this.addEventListener(_n,"pointerup",this.fk,!0),this.addEventListener(_n,"pointerout",this.ek,!0),this.addEventListener(_n,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(_n,"wheel",this.$j,!0),this.addEventListener(_n,"selectstart",this.preventDefault,!1)):(this.removeEventListener(_n,"pointermove",this.dk,!0),this.removeEventListener(_n,"pointerdown",this.ui,!0),this.removeEventListener(_n,"pointerup",this.fk,!0),this.removeEventListener(_n,"pointerout",this.ek,!0),this.removeEventListener(_n,"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(_n,"wheel",this.$j,!0),this.removeEventListener(_n,"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=it.alloc().assign(this.pa);if(!y.D(a)){var b=this.viewportBounds.copy();this.pa.assign(a),zd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Oc(this):(this.vb=!0,a=this.scale,ip(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)}it.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=eg(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=eg(this)),a.type!==Ar.Grid&&Lt("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),Ec(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||Lt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new to(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===Ad&&qu(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,qu(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,dp(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&&dp(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!==pl&&qu(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||Lt("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||Lt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Nr(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)):Nr(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),qu(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 to(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&&Lt("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!==Fc&&a!==Ja&&a!==Of&&Lt("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 an(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 to(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),$n.Object.defineProperties(kn,{licenseKey:{get:function(){return ef.jc()},set:function(a){ef.add(a.replace(/\s/g,""))}},version:{get:function(){return Qd}}}),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 Mf=new wn,vp=null,Fa=_n.document!==void 0,Yd=null,Xd="",pl=new mn(kn,"None",0),zu=new mn(kn,"Uniform",1),cd=new mn(kn,"UniformToFill",2),$h=new mn(kn,"CycleAll",10),yp=new mn(kn,"CycleNotDirected",11),Sp=new mn(kn,"CycleNotDirectedFast",12),bp=new mn(kn,"CycleNotUndirected",13),Ep=new mn(kn,"CycleDestinationTree",14),xp=new mn(kn,"CycleSourceTree",15),Ad=new mn(kn,"DocumentScroll",1),Sh=new mn(kn,"InfiniteScroll",2),Fc=new mn(kn,"TreeParentCollapsed",21),Ja=new mn(kn,"AllParentsCollapsed",22),Of=new mn(kn,"AnyParentsCollapsed",23),ef=new qn,Qd="2.3.10",bh="image",tf=null,ag=!1;function gl(){if(Fa){var a=_n.document.createElement("canvas"),y=a.getContext("2d"),b=Qr("7ca11abfd022028846");y[b]=Qr("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",dr.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ri.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",en.za],x=1;5>x;x++)y[Qr("7ca11abfd7330390")](Qr(E[x-1]),10,15*x);for(y[b]=Qr("39f046ebb36e4b"),b=1;5>b;b++)y[Qr("7ca11abfd7330390")](Qr(E[b-1]),10,15*b);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Ri.prototype.Cd=Ri.prototype.Eu),tf=a}}kn.className="Diagram",kn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=_n.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){Fa=a?_n.document!==void 0:!1},kn.isUsingDOM=function(){return Fa},kn.None=pl,kn.Uniform=zu,kn.UniformToFill=cd,kn.CycleAll=$h,kn.CycleNotDirected=yp,kn.CycleNotDirectedFast=Sp,kn.CycleNotUndirected=bp,kn.CycleDestinationTree=Ep,kn.CycleSourceTree=xp,kn.DocumentScroll=Ad,kn.InfiniteScroll=Sh,kn.TreeParentCollapsed=Fc,kn.AllParentsCollapsed=Ja,kn.AnyParentsCollapsed=Of;function Ff(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Jd(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=_n[Qr("76a715b2f73f148a")][Qr("72ba13b5")]||"";if(a.Rc=!0,Fa){var E=kn[Qr("76a115b6ed251eaf4692")];if(E)for(var x=ef.iterator;x.next()&&(E=x.value,E=Qr(E).split(Qr("39e9")),!(6>E.length));){var z=Qr(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=Qr(dr[Qr("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var ie=_n[Qr("74a900bae4370f8b51")][Qr("6fbb13a1c2311e8a57")].toLowerCase();if(ne=ie[Qr("73a612b6fb191d")](Qr("3aad1ab6e022098b4dc4")),z=Qr(E[2]),-1<ne&&(ie=ie[Qr("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ie&&ie<ne),!a.Rc))break;for(ne=b[Qr("76ad18b4f73e")],ie=b[Qr("73a612b6fb191d")](Qr("35e7"))+2;ie<ne;ie++)y+=b[ie];if(ne=y[Qr("73a612b6fb191d")](z),0>ne&&z!==Qr("7da71ca0ad381e90")&&(ne=y[Qr("73a612b6fb191d")](Qr("76a715b2ef3e149757"))),0>ne&&(ne=y[Qr("73a612b6fb191d")](Qr("76a715b2ef3e149757"))),0>ne&&(ne=y[Qr("73a612b6fb191d")](Qr("2bfa41fdb3784bca12"))),0>ne&&(ne=b[Qr("73a612b6fb191d")](Qr("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[Qr("73a612b6fb191d")](Qr("35"))||y[Qr("73a612b6fb191d")](Qr("35"))===-1),!a.Rc||b[Qr("73a612b6fb191d")](Qr("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<b[Qr("73a612b6fb191d")](z)),!a.Rc)||(ne=_n[Qr("76a715b2f73f148a")][Qr("69ad17a1e03e")],ie=ne[Qr("73a612b6fb191d")](Qr("7fb002b6ed25128b4da25b2e")),-1<ie&&(a.Rc=!(ne[Qr("73a612b6fb191d")](z)>ie),!a.Rc)))break;if(z[0]==="#"){ne=_n.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[Qr("79a417a0f0181a8946")]=E,_n.document[Qr("78a712aa")]){_n.document[Qr("78a712aa")][Qr("7bb806b6ed32388c4a875b")](ne),se=_n.getComputedStyle(ne).getPropertyValue(Qr("78a704b7e62456904c9b12701b6532a8"));var de=_n.getComputedStyle(ne).getPropertyValue(Qr("75b817b0ea2202"));if(_n.document[Qr("78a712aa")][Qr("68ad1bbcf533388c4a875b")](ne),se){if(ne=_n[Qr("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(Qr("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[Qr("76ad18b4f73e")],x=b[Qr("73a612b6fb191d")](Qr("35e7"))+2;x<pe;x++)y+=b[x];b=y[Qr("73a612b6fb191d")](Qr("7da71ca0ad381e90")),a.Rc=!(0<=b&&b<y[Qr("73a612b6fb191d")](Qr("35")))}}}return 0<a.Rc&&a!==a.wy}Ff.className="DiagramHelper";function Bc(a){this.j=a===void 0?new it:a,this.o=new it}$n.Object.defineProperties(Bc.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 qd="DraggingInfo";Bc.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 an(NaN,NaN).freeze(),this.gridSnapCellSpot=ho,this.gridSnapOrigin=new it(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"||_n.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}Sn(ye,kn);function ve(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Io,a.layout=new nl}ye.prototype.reset=function(){kn.prototype.reset.call(this),ve(this)},ye.className="Palette";function xe(a,y){if(typeof a=="string"||_n.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 Pi;var x=new oo;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 to(0,0,0,0),b.pa.h(0,0),b.toolManager.gb("Dragging",new Pt,b.toolManager.mouseMoveTools),b.click=function(){var z=E.observed;if(z!==null){var ne=z.viewportBounds,ie=E.lastInput.documentPoint;z.position=new it(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=zu,b.vb=!1,y&&Object.assign(b,y),b}Sn(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(Pd(this),this.ql===null){var b=new nu(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&&Lt("No div specified"),this.ta===null&&Lt("No canvas specified"),!(this.ta instanceof ra)&&(Yv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Pd(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),Ec(y,x),An.free(x),Ps(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=ud(ie,x),de.gc(x,se),x.globalAlpha=ie);else{for(var pe=ud(ie,x),Se=se.scale,Le=An.alloc(),Me=ie.Pa.s,ze=Me.length,qe=0;qe<ze;qe++){var Ct=Me[qe];(E||Ct!==de)&&ie.Oj(x,Ct,se,null,Se,Le,!1)}An.free(Le),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=an.alloc();x.h(b.width,b.height),E.desiredSize=x,an.free(x),a=2/a.scale,E instanceof oo&&(E.strokeWidth=a),y.location=new it(b.x-a/2,b.y-a/2),y.isSelected=!0}}}xe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return hs;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))},$n.Object.defineProperties(xe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xe&&Lt("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 Pt(){la.call(this),this.j=null}Sn(Pt,la),Pt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var 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 it(b.width/2,b.height/2),a=a.firstInput.documentPoint,y.position=new it(a.x-this.j.x,a.y-this.j.y)),!0)},Pt.prototype.doActivate=function(){this.j=null,la.prototype.doActivate.call(this)},Pt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Pt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var b=a.box;if(b!==null){if(this.j===null){var E=a.firstInput.documentPoint;b=b.location,this.j=new it(E.x-b.x,E.y-b.y)}a=a.lastInput.documentPoint,y.position=new it(a.x-this.j.x,a.y-this.j.y)}}},Pt.className="OverviewDraggingTool";function wt(){vi(this),this.H=Jc,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=hs,this.hb=!0,this.cg=null,this.ob=200}wt.prototype.toString=function(){return"CommandHandler"},wt.prototype.Xe=function(a){this.H=a},wt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,b=Ti?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()},wt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},wt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof aa&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},wt.prototype.canStopCommand=function(){return!0},wt.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=""}},wt.prototype.canSelectAll=function(){return this.diagram.allowSelect},wt.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 lr,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=""}},wt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},wt.prototype.copySelection=function(){var a=this.diagram,y=new lr;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)},wt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},wt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},wt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},wt.prototype.copyToClipboard=function(a){var y=this.diagram,b=null;if(a===null)Yd=null,Xd="";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 qn,b.addAll(z),Yd=b,Xd=y.model.dataFormat}}y.R("ClipboardChanged",b)},wt.prototype.pasteFromClipboard=function(){var a=new lr,y=Yd;if(y===null)return a;var b=this.diagram;if(Xd!==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},wt.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);Wd(y,z,new it(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=""}},wt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Yd===null||Yd.count===0||Xd!==a.model.dataFormat)},wt.prototype.undo=function(){this.diagram.undoManager.undo()},wt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},wt.prototype.redo=function(){this.diagram.undoManager.redo()},wt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},wt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===pl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},wt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==pl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},wt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===pl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},wt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==pl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},wt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},wt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},wt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var b=a.position,E=a.scale;ms(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=hs):(this.Jt=E,this.sw=b.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ql(y)},wt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},wt.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;ms(b,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var x=Vt(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 qr&&se.isTreeExpanded&&(!(se instanceof no)||se.isSubGraphExpanded);)se=x.pop();0<x.length?(se instanceof Pi&&y.tv(se.actualBounds),se instanceof qr&&!se.isTreeExpanded&&(se.isTreeExpanded=!0),se instanceof no&&!se.isSubGraphExpanded&&(se.isSubGraphExpanded=!0)):(se instanceof Pi&&y.es(se.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){bi(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 Vt(a,y,b){if(y.isVisible())return b;if(y instanceof Mo)Vt(a,y.adornedPart,b);else if(y instanceof Hr){var E=y.fromNode;E!==null&&Vt(a,E,b),y=y.toNode,y!==null&&Vt(a,y,b)}else y instanceof qr&&(E=y.labeledLink,E!==null&&Vt(a,E,b),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||b.push(E),Vt(a,E,b))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||b.push(y),Vt(a,y,b));return b}wt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Pi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},wt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ms(y.animationManager,"Collapse Tree");var b=new qn;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 qr&&x.isTreeExpanded&&(x.collapseTree(),b.add(x))}y.R("TreeCollapsed",b)}finally{y.eb("Collapse Tree")}},wt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof qr&&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 qr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},wt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ms(y.animationManager,"Expand Tree");var b=new qn;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 qr&&!x.isTreeExpanded&&(x.expandTree(),b.add(x))}y.R("TreeExpanded",b)}finally{y.eb("Expand Tree")}},wt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof qr)||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 qr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},wt.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 qn,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&x.add(ne)}for(var ie=new qn,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 Le=ie.iterator;Le.next();)if(!Le.value.Td(Se)){x=!0;break}if(x)Se=Se.containingGroup;else break}if(b instanceof no)Tc(b),E=b.copy(),E!==null&&a.add(E);else if(y.Yu(b)){var Me=y.copyNodeData(b);Yt(Me)&&(y.xf(Me),E=a.ii(Me))}if(E!==null){Se!==null&&this.isValidMember(Se,E)&&(E.containingGroup=Se);for(var ze=ie.iterator;ze.next();){var qe=ze.value;this.isValidMember(E,qe)&&(qe.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},wt.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 Kn(a){var y=Rr();for(a=a.iterator;a.next();){var b=a.value;b instanceof Hr||y.push(b)}a=new lr,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 kr(y),a}wt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Hr)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},wt.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 qn;if(a!==null)E.add(a);else for(var x=y.selection.iterator;x.next();){var z=x.value;z instanceof no&&z.canUngroup()&&E.add(z)}var ne=new qn;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 Le=Se.value;if(Le.isSelected=!0,!(Le instanceof Hr)){var Me=Le.data;Me!==null?b.mp(Me,pe):Le.containingGroup=de}}y.remove(se)}}y.R("SelectionUngrouped",E,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},wt.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 no))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof no&&y.canUngroup())return!0;return!1},wt.prototype.addTopLevelParts=function(a,y){var b=!0;for(a=Kn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:b=!1)}return b},wt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ms(y.animationManager,"Collapse SubGraph");var b=new qn;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 no&&x.isSubGraphExpanded&&(x.collapseSubGraph(),b.add(x))}y.R("SubGraphCollapsed",b)}finally{y.eb("Collapse SubGraph")}},wt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof no&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof no&&y.isSubGraphExpanded)return!0;return!1},wt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ms(y.animationManager,"Expand SubGraph");var b=new qn;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 no&&!x.isSubGraphExpanded&&(x.expandSubGraph(),b.add(x))}y.R("SubGraphExpanded",b)}finally{y.eb("Expand SubGraph")}},wt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof no&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof no&&!y.isSubGraphExpanded)return!0;return!1},wt.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 Sa&&z.editable})}a!==null&&(y.currentTool=null,b.textBlock=a,y.currentTool=b)}},wt.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 Sa))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 Sa&&b.editable}),a!==null))return!0;return!1},wt.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 on?x=a.ga(Xi):y.viewportBounds.ca(E.documentPoint)||(x=y.viewportBounds,x=new it(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,Xa(b,!1,a)}},wt.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)},wt.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 wn,a===null)return E;for(var z=a.iterator;z.next();)$c(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 Hr&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},$n.Object.defineProperties(wt.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||Lt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),wt.className="CommandHandler",Jp=function(){return new wt};function on(){vi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new it(NaN,NaN).freeze(),this.jd=Bi,this.Ab=new Ri,this.wh=new Ri,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ts,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=ns,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,vr,yi,xi,Li,Ji,yo,lo,Ao,Qo;on.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=Xr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},on.prototype.Vw=function(a){var y=this.Dh;if(Nn(y)){for(var b=0;b<y.length;b++)if(y[b]===a)return}else this.Dh=y=[];y.push(a)},on.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},on.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},on.prototype.copy=function(){return this.clone()},_e=on.prototype,_e.qb=function(a){a.classType===Hr?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Lt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===on&&(this.stretch=a)},_e.toString=function(){return jn(this.constructor)+"#"+Oi(this)},_e.th=function(){this.A!==null&&(this.A.nc=!0)};function uo(a){a.A===null?a.A=new Ki:a.A.nc&&(a.A=a.A.copy())}_e.Xc=function(){if(this.ba===null){var a=new So;a.Xi=Yi,a.yj=Yi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},_e.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===oa&&Ne(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 wn),ne=z.undoManager.transactionLevel===0,a.startCondition===fu?ne=!0:a.startCondition===hh&&(ne=!1),ne?(z=new ni,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()):(ms(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,x)))),this instanceof Ar&&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 Ar&&Hf(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))}}_e.ks=function(a){return this.bindingId===a?this:null},_e.g=function(a,y,b){this.cb(oa,a,this,y,b)},_e.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 Ri);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),z.pp(x)}};function Ts(a,y,b,E){return a.pickable===!1?!1:(E.multiply(a.transform),b?a.Yc(y,E):a.fh(y,E))}_e.tx=function(a,y,b){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),b?Hn(a.x,a.y,0,0,0,E.height)<=y||Hn(a.x,a.y,0,E.height,E.width,E.height)<=y||Hn(a.x,a.y,E.width,E.height,E.width,0)<=y||Hn(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},_e.se=function(){return!0},_e.ca=function(a){var y=it.alloc();y.assign(a),this.transform.Ga(y);var b=this.actualBounds;if(!b.w())return it.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),it.free(y),a}return x=!1,(this instanceof Mo||this instanceof oo?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)),it.free(y),x},_e.gh=function(a){var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},_e.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=it.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)))),it.free(x),An.free(y),E},_e.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var b=this.naturalBounds,E=!1,x=it.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)))),it.free(x),E},_e.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var b=this.naturalBounds,E=it.allocAt(0,0),x=it.allocAt(0,b.height),z=it.allocAt(b.width,b.height),ne=it.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=it.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)))),it.free(se),An.free(b),!ie&&(en.us(a,E,x)||en.us(a,x,z)||en.us(a,z,ne)||en.us(a,ne,E))&&(ie=!0)}return it.free(E),it.free(x),it.free(z),it.free(ne),ie},_e.ga=function(a,y){if(y===void 0&&(y=new it),a instanceof fi){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},_e.mi=function(a){a===void 0&&(a=new An);var y=this.naturalBounds,b=this.oe,E=it.allocAt(0,0).transform(b);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(b),vo(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(b),vo(a,E.x,E.y,0,0),E.h(0,y.height).transform(b),vo(a,E.x,E.y,0,0),it.free(E),a},_e.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},_e.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},_e.qs=function(a,y){return y===void 0&&(y=new it),y.assign(a),this.oe.Cd(y),y},_e.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},_e.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),Le=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,en.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+Le,y=b*ie+E*de+Se,b=b*se+E*pe+Le,x.h(0,0),E=this.naturalBounds,b=en.Ff(0,0,E.width,E.height,ne,a,y,b,x),x.transform(z),b)},on.prototype.measure=function(a,y,b,E){if(Nt(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 Ar;switch(jl(this,!0)){case vr: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 xi:isFinite(a)&&a>b&&(x=a),ne=0,ie&&(y=1/0);break;case Li: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()||Lt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ft(this,!1)}},on.prototype.Wl=function(){},on.prototype.Dd=function(){return!1},on.prototype.arrange=function(a,y,b,E,x){this.Uk();var z=An.alloc();z.assign(this.Ib),this.Ib.ka(),Kt(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 Sa&&(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()||Lt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Bn(this,!1),An.free(z)},_e=on.prototype,_e.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=jl(a,!0),b===E&&z===x&&(y=vr),y){case vr:(b>E||z>x)&&(Ft(a,!0),a.measure(b>E?E:b,z>x?x:z,0,0));break;case Cr:Ft(a,!0),a.measure(E,x,0,0);break;case xi:Ft(a,!0),a.measure(E,z,0,0);break;case Li:Ft(a,!0),a.measure(b,x,0,0)}}}_e.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(),Mi(a,y)||(b.oh(),this.Pn(b)))},_e.Pn=function(a){this.portId!==null&&(Jv(a,!0),a instanceof qr&&QS(a,this))},_e.gc=function(a,y){if(!Gu(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 Ar&&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&&(Ba(this,a,de,!0,!0,se,ie),de instanceof _o&&de.type===hc?(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&&(Ba(this,a,pe,!0,!1,se,ie),pe instanceof _o&&pe.type===hc?(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&&Vs(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 Le;if(!(Le=y.$i||!pe)){var Me=this.naturalBounds;Le=this.wh;var ze=Le.m11,qe=Le.m21,Ct=Le.dx,yt=Le.m12,Dt=Le.m22,Ot=Le.dy,zt,$t=zt=0;Le=zt*ze+$t*qe+Ct;var In=zt*yt+$t*Dt+Ot;zt=Me.width+Se,$t=0;var Jr=zt*ze+$t*qe+Ct;zt=zt*yt+$t*Dt+Ot,$t=Math.min(Le,Jr);var mi=Math.min(In,zt),ui=Math.max(Le+0,Jr)-$t,Ur=Math.max(In+0,zt)-mi;Le=$t,In=mi,zt=Me.width+Se,$t=Me.height+Se,Jr=zt*ze+$t*qe+Ct,zt=zt*yt+$t*Dt+Ot,$t=Math.min(Le,Jr),mi=Math.min(In,zt),ui=Math.max(Le+ui,Jr)-$t,Ur=Math.max(In+Ur,zt)-mi,Le=$t,In=mi,zt=0,$t=Me.height+Se,Jr=zt*ze+$t*qe+Ct,zt=zt*yt+$t*Dt+Ot,$t=Math.min(Le,Jr),mi=Math.min(In,zt),ui=Math.max(Le+ui,Jr)-$t,Ur=Math.max(In+Ur,zt)-mi,Le=$t,In=mi,Se=y.viewportBounds,Me=Se.x,ze=Se.y,Le=!(Le>Se.width+Me||Me>ui+Le||In>Se.height+ze||ze>Ur+In)}if(Le){if(Le=(this.l&256)!==0,a.clipInsteadOfFill&&(Le=!1),this instanceof Sa&&(a.font=this.font),Le){if(In=ie.se()?ie.naturalBounds:ie.actualBounds,ui=Math.max(ne.x,In.x),Ur=Math.max(ne.y,In.y),Se=Math.min(ne.right,In.right)-ui,Me=Math.min(ne.bottom,In.bottom)-Ur,ze=this.tb,ze!==null&&(ui=ze.x,Ur=ze.y,Se=ze.width,Me=ze.height),ui>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(ui,Ur,Se,Me),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),Nu(a),a.shadowColor=de.shadowColor)}se&&this.shadowVisible===!0?Nu(a):se&&this.shadowVisible===!1&&Zs(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&&Bs(this,ie)&&this.shadowVisible===null&&Zs(a),this.Ma!==null&&(a.yc(),eu(this,a,de,ne)),se&&(this.Ma!==null||this.areaBackground!==null||Bs(this,ie))?(we(this,!0),this.shadowVisible===null&&Zs(a)):we(this,!1),this.hh(a,y),se&&this.l&512&&Nu(a),pe&&se&&Zs(a),Le&&(a.restore(),a.Vc(this instanceof Ar)),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 Bs(a,y){return y===null?!1:(Ph(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ar.Auto||y.type===Ar.Spot)&&y.Pb()!==a)}_e.Dv=function(){};function Tu(a,y,b,E){Ba(a,y,a.areaBackground,!0,!0,b,E),a.areaBackground instanceof _o&&a.areaBackground.type===hc?(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 eu(a,y,b,E){var x=a.kq(),z=b.x,ne=b.y,ie=b.width+x,se=b.height+x;Ba(a,y,a.Ma,!0,!1,b,E),a.Ma instanceof _o&&a.Ma.type===hc?(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 sl(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===Ar.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 Gu(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&&sl(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),Nu(y),y.shadowColor=a.shadowColor}a instanceof Sa&&(y.font=a.font),y.yd=null;var ne=a.transform;z=a instanceof Ar;var ie=a instanceof Ar?Ph(a):!1;a.l&4096&&Vs(a);var se=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,x&&(y.o=!0,z&&ie?(ju(y,1,0,0,1,0,0),a.svg=y.ad):z?(ju(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):ju(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]),eu(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],eu(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&&Nu(y),ie&&a.shadowVisible===!0?Nu(y):ie&&a.shadowVisible===!1&&Zs(y),x=a.panel,ie&&Bs(a,x)&&a.shadowVisible===null&&Zs(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||Bs(a,x))?(we(a,!0),a.shadowVisible===null&&Zs(y)):we(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),Gl(y,de),!0):(a.svg=ie,ne!==null&&ie===null&&(Uc(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&&Nu(y),a.Dd()&&Zs(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&&sl(a,E,ie),ne!==null&&ne(a,ie)),!0)}_e.$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"+fo++,ie=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:x,width:ne,height:b}),this instanceof Ar&&(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"),Gl(a,E)};function Gl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function tl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),b=a.svg.ownerDocument;if(y!==null){y=Tr(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()}}_e.hh=function(){},_e.lv=function(){this.Uc=!0},_e.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 Ar?Ph(this):!1;if(!(this instanceof Ar&&x))if(this instanceof gu){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&ml(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),b?y.lastElementChild.setAttributeNS(null,"transform",Ka(a)):y.setAttributeNS(null,"transform",Ka(a))}else if(!b||this instanceof Ar)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof oo){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&&Hc(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Hc(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((x||b&&!(this instanceof Ar))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),eu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Hc(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&&Hc(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},_e.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 Ba(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 wc)&&b.xe&&(b.type===ug||b.yk===ie&&b.ft===se))var pe=b.xe;else{var Se=0,Le=0,Me=0,ze=0,qe=0,Ct=0;if(Ct=qe=0,x?(qe=ne.x,Ct=ne.y):E||(qe-=de/2,Ct-=de/2),Se=b.start.x*ie+b.start.offsetX,Le=b.start.y*se+b.start.offsetY,Me=b.end.x*ie+b.end.offsetX,ze=b.end.y*se+b.end.offsetY,Se+=qe,Me+=qe,Le+=Ct,ze+=Ct,b.type===eh)pe=y.createLinearGradient(Se,Le,Me,ze);else if(b.type===hc)Ct=isNaN(b.endRadius)?Math.max(ie,se)/2:b.endRadius,isNaN(b.startRadius)?(qe=0,Ct=Math.max(ie,se)/2):qe=b.startRadius,pe=y.createRadialGradient(Se,Le,qe,Me,ze,Ct);else if(b.type===ug)try{pe=y.createPattern(b.pattern,"repeat")}catch(Dt){pe=null}if(b.type!==ug&&(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===ug&&b.yk!==-1)){b.yk=-1;var yt=a.diagram;yt!==null&&b.yk===-1&&bi(function(){yt.redraw()},600)}}E?y.fillStyle=pe:y.strokeStyle=pe}}}_e.rg=function(a){if(a instanceof Ar)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},_e.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},_e.If=function(){for(var a=this instanceof Ar?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Vs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){ut(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)}ut(a,!1),At(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,At(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,At(a,!1)))}_e.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=it.alloc();z.yi(y,b,E,x,Xi),a.rotate(this.Kb,z.x,z.y),it.free(z)}},_e.v=function(a){if(!Nt(this)){a===void 0&&(a=!1),Ft(this,!0),Bn(this,!0);var y=this.panel;y===null||a||y.v()}},_e.Uj=function(){Nt(this)||(Ft(this,!0),Bn(this,!0))};function Rl(a){if(!Kt(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof qr&&a.Bd(),y.$b())),Bn(a,!0)}}_e.Uk=function(){!(this.l&2048)&&(ut(this,!0),At(this,!0))},_e.Wu=function(){At(this,!0)},_e.N=function(){var a=this.part;a!==null&&a.N()};function jl(a,y){var b=a.stretch,E=a.panel;return E!==null&&E.type===Ar.Table?xc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===Ar.Auto&&E.Pb()===a?Ds(a,Cr,y):b===Ji?E!==null?E.type===Ar.Spot&&E.Pb()===a?Ds(a,Cr,y):(b=E.defaultStretch,b===Ji?Ds(a,vr,y):Ds(a,b,y)):Ds(a,vr,y):Ds(a,b,y)}function xc(a,y,b,E){var x=a.stretch;if(x!==Ji)return Ds(a,x,E);var z=x=null;switch(y.stretch){case Li:z=!0;break;case Cr:z=!0}switch(b.stretch){case xi:x=!0;break;case Cr:x=!0}return y=a.panel.defaultStretch,x===null&&(x=y===xi||y===Cr),z===null&&(z=y===Li||y===Cr),x===!0&&z===!0?Ds(a,Cr,E):x===!0?Ds(a,xi,E):z===!0?Ds(a,Li,E):Ds(a,vr,E)}function Ds(a,y,b){if(b)return y;if(y===vr||(b=a.desiredSize,b.w()))return vr;if(a=a.angle,!isNaN(b.width))if(a!==90&&a!==270){if(y===xi)return vr;if(y===Cr)return Li}else{if(y===Li)return vr;if(y===Cr)return xi}if(!isNaN(b.height))if(a!==90&&a!==270){if(y===Li)return vr;if(y===Cr)return xi}else{if(y===xi)return vr;if(y===Cr)return Li}return y}function we(a,y){a.l=y?a.l|512:a.l&-513}function Ne(a){return(a.l&1024)!==0}function We(a,y){a.l=y?a.l|1024:a.l&-1025}function ut(a,y){a.l=y?a.l|2048:a.l&-2049}function At(a,y){a.l=y?a.l|4096:a.l&-4097}function Nt(a){return(a.l&8192)!==0}function Ft(a,y){a.l=y?a.l|8192:a.l&-8193}function Kt(a){return(a.l&16384)!==0}function Bn(a,y){a.l=y?a.l|16384:a.l&-16385}_e.Gj=function(){this.svg=null},_e.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},_e.Av=function(){},_e.zv=function(a){return this.pa=a,Rl(this),!0},_e.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},_e.kq=function(){return 0};function rr(a){var y=a.part;if(y instanceof qr&&(a.portId!==null||a===y.port)){var b=y.diagram;b===null||b.undoManager.isUndoingRedoing||QS(y,a)}}function er(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Ar?a instanceof qr?a.Bd():a.qm(a,function(b){rr(b)}):rr(a))}_e.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new ss(a,y,b,E):x=a,x.xd=this,a=this.ih(),a!==null&&yS(a)&&Lt("Cannot add a Binding to a template that has already been copied: "+x),this.localBindings===null&&(this.localBindings=new qn),this.localBindings.add(x),this},_e.set=function(a){return Object.assign(this,a),this},_e.Du=function(a){return Xn(this,a),this},_e.apply=function(a){return a(this),this},_e.nm=function(a){return ph(this,a),this},_e.pz=function(){return this.ih()},_e.ih=function(){for(var a=this instanceof Ar?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},_e.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new wn),this.animationTriggers.add(a.propertyName,a),this};function Un(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=Hi.I(a);typeof z=="function"?(b=Xr(arguments),E=z(b),Yt(E)||Lt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):x=_n.go[a]}if(E===null&&(x!=null&&x.constructor||Lt("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)&&(qp(z,ne),x++)}for(;x<b.length;x++)z=b[x],z===void 0?Lt("Undefined value at argument "+x+" for object being constructed by GraphObject.make: "+E):Xn(E,z);return E}function Xn(a,y){if(typeof y=="string")if(a instanceof Sa)a.text=y;else if(a instanceof oo)a.figure=y;else if(a instanceof gu)a.source=y;else if(a instanceof Ar)y=zc.I(y),y!==null&&(a.type=y);else if(a instanceof _o){var b=wi(_o,y);b!==null?a.type=b:Lt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Ir?(y=wi(Ir,y),y!==null&&(a.type=y)):a instanceof Eo&&(y=wi(Eo,y),y!==null&&(a.type=y));else if(y instanceof on)a instanceof Ar||Lt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof vs){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 vs?e0(E,y):Lt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof mn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof As)a.type=y;else if(y instanceof ss)a instanceof on||a instanceof vs?a.bind(y):Lt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Hl)a instanceof on?a.Jv(y):Lt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Wa)a instanceof Ir&&a.type===Ir.o?a.figures.add(y):Lt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Eo)a instanceof Wa?a.segments.add(y):Lt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Pa)a instanceof kn||a instanceof no?a.layout=y:Lt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(b=0;b<y.length;b++)Xn(a,y[b]);else if(typeof y=="object"&&y!==null)if(a instanceof _o){b=new gi;for(var x in y)E=parseFloat(x),isNaN(E)?b[x]=y[x]:a.addColorStop(E,y[x]);ph(a,b)}else if(a instanceof vs){y.row!==void 0?(x=y.row,(x==null||x===1/0||isNaN(x)||0>x)&&Lt("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)&&Lt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+x),a.isRow=!1,a.index=x),x=new gi;for(b in y)b!=="row"&&b!=="column"&&(x[b]=y[b]);ph(a,x)}else ph(a,y);else Lt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function fr(a,y){Hi.add(a,y)}function ti(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}$n.Object.defineProperties(on.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Ki),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 Ki),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 Ki),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(uo(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&&(uo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:iu},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new qi),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===iu&&(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 qi),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 qi),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Or},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new qi),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&&(uo(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&&(uo(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)&&Nr(a,"0 <= value <= 1",on,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(jf(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(jf(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(),er(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&&xh(a,"GraphObject.areaBackground"),a instanceof _o&&a.freeze(),uo(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&&xh(a,"GraphObject.background"),a instanceof _o&&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 Pi)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 it(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&&Lt("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,er(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 oo&&this.qc(),this.g("desiredSize",E,a),Ne(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 an(a,this.jd.height).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),Ne(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 an(this.jd.width,a).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),Ne(this)&&(a=this.part,a!==null&&ya(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:hr},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(),uo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ii},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(),uo(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 to(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&&Vs(this),this.Ab}},oe:{get:function(){return this.l&4096&&Vs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(uo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:vr},set:function(a){this.reshapingBehavior!==a&&(uo(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()&&Lt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Rl(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&&Nr(a,">= 0",on,"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&&Nr(a,">= 1",on,"columnSpan"),uo(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&&Nr(a,">= 0",on,"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&&Nr(a,">= 1",on,"rowSpan"),uo(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&&(uo(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 qr||Lt("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:Yi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),rr(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Nr(a,">= 0",on,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),rr(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),rr(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&&Nr(a,">= 0",on,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Yi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),rr(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Nr(a,">= 0",on,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),rr(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),rr(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&&Nr(a,">= 0",on,"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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),on.prototype.trigger=on.prototype.Jv,on.prototype.findBindingPanel=on.prototype.ih,on.prototype.findTemplateBinder=on.prototype.pz,on.prototype.setProperties=on.prototype.nm,on.prototype.apply=on.prototype.apply,on.prototype.attach=on.prototype.Du,on.prototype.set=on.prototype.set,on.prototype.isEnabledObject=on.prototype.If,on.prototype.isVisibleObject=on.prototype.Ed,on.prototype.isContainedBy=on.prototype.rg,on.prototype.getNearestIntersectionPoint=on.prototype.rs,on.prototype.getLocalPoint=on.prototype.qs,on.prototype.getDocumentScale=on.prototype.Df,on.prototype.getDocumentAngle=on.prototype.li,on.prototype.getDocumentBounds=on.prototype.mi,on.prototype.getDocumentPoint=on.prototype.ga,on.prototype.intersectsRect=on.prototype.Yc,on.prototype.containedInRect=on.prototype.fh,on.prototype.containsRect=on.prototype.Re,on.prototype.containsPoint=on.prototype.ca,on.prototype.raiseChanged=on.prototype.g,on.prototype.raiseChangedEvent=on.prototype.cb,on.prototype.addCopyProperty=on.prototype.Vw;var Hi=null;on.className="GraphObject",Hi=new wn,fr("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=Un(Ar,Ar.Auto,{isActionable:!0,enabledChanged:function(b,E){if(b instanceof Ar){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"},Un(oo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new fi(0,0,2.76142374915397,2.761423749153969),spot2:new fi(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 Ar&&(b=E.fb("ButtonBorder"),b instanceof oo)){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 Ar&&(b=E.fb("ButtonBorder"),b instanceof oo&&(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal))},y.actionDown=function(b,E){if(E.If()&&E instanceof Ar&&E._buttonFillPressed!==null&&b.button===0){var x=E.fb("ButtonBorder");if(x instanceof oo){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 Ar&&E._buttonFillPressed!==null&&b.button===0){var x=E.fb("ButtonBorder");if(x instanceof oo){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 Ar&&E._buttonFillPressed!==null){var x=E.fb("ButtonBorder");if(x instanceof oo){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 Ar&&E._buttonFillPressed!==null){var x=b.diagram;if(x.firstInput.button===0&&(x.currentTool.standardMouseOver(),a(b,E)&&(b=E.fb("ButtonBorder"),b instanceof oo))){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}),fr("TreeExpanderButton",function(){var a=Un("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Un(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:si},new ss("figure","isTreeExpanded",function(y,b){return b=b.panel,y?b._treeExpandedFigure:b._treeCollapsedFigure}).cp()),{visible:!1},new ss("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,b){if(b=b.part,b instanceof Mo&&(b=b.adornedPart),b instanceof qr){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}),fr("SubGraphExpanderButton",function(){var a=Un("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Un(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:si},new ss("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 Mo&&(b=b.adornedPart),b instanceof no){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}),fr("ToolTip",function(){return Un(Mo,Ar.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new it(0,3),shadowBlur:5},Un(oo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new fi(0,0,4,6),spot2:new fi(1,1,-4,-4)}))}),fr("ContextMenu",function(){return Un(Mo,Ar.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new it(0,3),shadowBlur:5},new ss("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),fr("ContextMenuButton",function(){var a=Un("Button");a.stretch=xi;var y=a.fb("ButtonBorder");return y instanceof oo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new fi(0,0,2,3),y.spot2=new fi(1,1,-2,-2)),a}),fr("PanelExpanderButton",function(a){var y=ti(a,"COLLAPSIBLE"),b=Un("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},Un(oo,{name:"ButtonIcon",strokeWidth:2},new ss("geometryString","visible",function(E){return E?b._buttonExpandedFigure:b._buttonCollapsedFigure}).cp(y)));return a=b.fb("ButtonBorder"),a instanceof oo&&(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}),fr("CheckBoxButton",function(a){var y=ti(a);return a=Un("Button",{desiredSize:new an(14,14)},Un(oo,{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:yi,visible:!1},y!==""?new ss("visible",y).Kx():[])),a.click=function(b,E){if(E instanceof Ar){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}),fr("CheckBox",function(a){a=ti(a),a=Un("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new to(0,1,0,0)});var y=Un(Ar,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new to(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}),on.None=vr=new mn(on,"None",0),on.Default=Ji=new mn(on,"Default",0),on.Vertical=Li=new mn(on,"Vertical",4),on.Horizontal=xi=new mn(on,"Horizontal",5),on.Fill=Cr=new mn(on,"Fill",3),on.Uniform=yi=new mn(on,"Uniform",1),on.UniformToFill=yo=new mn(on,"UniformToFill",2),on.FlipVertical=lo=new mn(on,"FlipVertical",1),on.FlipHorizontal=Ao=new mn(on,"FlipHorizontal",2),on.FlipBoth=Qo=new mn(on,"FlipBoth",3),on.make=Un,on.getBuilders=function(){var a=new wn,y;for(y in Hi)if(y!==y.toLowerCase()){var b=Hi.I(y);typeof b=="function"&&a.add(y,b)}return a.freeze(),a},on.defineBuilder=fr,on.build=function(a,y,b){for(var E=[],x=2;x<arguments.length;++x)E[x-2]=arguments[x];if(x=Hi.I(a),typeof x=="function"&&(E=x([a].concat(E)),E instanceof on))return y&&E.set(y),E;Lt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},on.takeBuilderArgument=ti;function Ki(){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=hr,this.o=Ii,this.hg=Ji,this.ob=this.Bi=1,this.Pf=vr,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Ki.prototype.copy=function(){var a=new Ki;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 qi(){this.u=-1/0,this.o=0,this.F=Or,this.rr=iu,this.j=this.V="None"}qi.prototype.copy=function(){var a=new qi;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},qi.className="LinkElementSettings";function So(){this.yj=this.Xi=ns,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}So.prototype.copy=function(){var a=new So;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},So.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 Ro(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Ro.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Ro.className="SGradient";function ra(a,y,b){this.ownerDocument=a=y===void 0?_n.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)}ra.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},ra.prototype.Ud=function(a,y,b){if(a=this.ownerDocument.createElementNS(this.cA,a),Yt(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},ra.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ra.prototype.focus=function(){this.Oa.focus()},ra.prototype.mx=function(){this.ownerDocument=null},$n.Object.defineProperties(ra.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}}}),ra.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=Uc(this),this.Nj=Uc(this,"gojs-diagram"),this.Hl=this.ti=null;var b=fo++,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 Ha(a,y,b,E,x,z,ne){a.Nj===void 0?ju(a,y,b,E,x,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+b+", "+E+", "+x+", "+z+", "+ne+")")}_e=Go.prototype,_e.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),Le=a+pe,Me=y+Se,ze=z?0:1;E=z?E-x:x-E,(1e-6<Math.abs(ne-Le)||1e-6<Math.abs(ie-Me))&&this.path.push(["L",Le,+Me]),0>E&&(E=E%se+se),E>de?(this.path.push(["A",b,b,0,1,ze,a-pe,y-Se]),this.path.push(["A",b,b,0,1,ze,Le,Me])):1e-6<E&&this.path.push(["A",b,b,0,+(E>=Math.PI),ze,a+b*Math.cos(x),y+b*Math.sin(x)])},_e.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},_e.Se=function(a){this.addPath(this.path,this.rb,a||0)},_e.bezierCurveTo=function(a,y,b,E,x,z){this.path.push(["C",a,y,b,E,x,z])},_e.clearRect=function(){},_e.clip=function(){this.Yl.clipPath=!0},_e.closePath=function(){this.path.push(["z"])},_e.createLinearGradient=function(a,y,b,E){var x=new Ro("linear");return x.x1=a,x.y1=y,x.x2=b,x.y2=E,x},_e.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"+fo++,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(bh,x)),this.svg.appendChild(a),b[y]=E,"url(#"+E+")"},_e.createRadialGradient=function(a,y,b,E,x,z){var ne=new Ro("radial");return ne.x1=a,ne.y1=y,ne.r1=b,ne.x2=E,ne.y2=x,ne.r2=z,ne};function ml(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)}_e.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,ml(this,y,b,E,x,z||0,ne||0,ie,se),z={x:0,y:0,width:pe||E,height:a||x,href:de},en.$(E,ie)&&en.$(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')"),Ws(this,bh,z,this.rb),this.addElement(bh,z)},_e.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),tu(this,this.Yl)},_e.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},_e.fillRect=function(a,y,b,E){a=[a,y,b,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Ws(this,"fill",a,this.rb),this.addElement("rect",a)},_e.ox=function(a,y,b,E){a={x:a,y,width:b,height:E},Ws(this,"fill",a,this.rb),tu(this,a),this.svg.prepend(this.Ud("rect",a))},_e.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},Ws(this,"fill",y,this.rb),this.addElement("text",y,a[0])},_e.lineTo=function(a,y){this.path.push(["L",a,y])},_e.moveTo=function(a,y){this.path.push(["M",a,y])},_e.quadraticCurveTo=function(a,y,b,E){this.path.push(["Q",a,y,b,E])},_e.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"])},_e.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},_e.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())},_e.setTransform=function(a,y,b,E,x,z){a===1&&y===0&&b===0&&E===1&&x===0&&z===0||ju(this,a,y,b,E,x,z)};function Ka(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}_e.scale=function(a,y){this.rb.scale(a,y)},_e.translate=function(a,y){this.rb.translate(a,y)},_e.transform=function(){},_e.yc=function(){},_e.stroke=function(){dd(this,this.Yl)},_e.jk=function(){this.clipInsteadOfFill||this.stroke()},_e.Ud=function(a,y,b){return this.Gv.Ud(a,y,b)},_e.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 Ws(a,y,b,E){y==="fill"?tu(a,b):y==="stroke"&&dd(a,b),E!==null&&(a=E.ha,b.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function tu(a,y){a.fillStyle instanceof Ro?y.fill=_c(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 Au(a,y,b){b=b?"fill":"stroke",a.fillStyle instanceof Ro?y.setAttributeNS(null,"fill",_c(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 dd(a,y){if(a.strokeStyle instanceof Ro)y.stroke=_c(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 _c(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"+fo++,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+")"}_e.addPath=function(a,y,b){for(var E=[],x=0;x<a.length;x++){var z=Xr(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,Ws(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 ju(a,y,b,E,x,z,ne){var ie=new Co;ie.ha=[y,b,E,x,z,ne],y={},Ws(a,"g",y,ie),ie=a.addElement("g",y),a.nh.push(ie)}function Uc(a,y){var b={};return y&&(b.class=y),y=a.addElement("g",b),a.nh.push(y),y}_e.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b};function Zs(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Nu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}_e.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},_e.fs=function(){this.Ct=!1},_e.Vc=function(){},_e.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 Hc(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 ra(this,_n.document));var y=new ra(this,_n.document,!0);a===void 0&&(a=new gi);var b=this;return qh(this,function(E,x){return E=og(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 nu(a,y,b,E){this.ownerDocument=y=y===void 0?_n.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new wc(y,b,E),y.H=a}nu.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},nu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},nu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},nu.prototype.focus=function(){this.Oa.focus()},nu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},$n.Object.defineProperties(nu.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}}}),nu.className="CanvasSurface";function wc(a,y,b){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Lt("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 Ri,this.isTemporary=!!b}_e=wc.prototype,_e.Wx=function(a){this.Z.imageSmoothingEnabled=a},_e.arc=function(a,y,b,E,x,z){this.Z.arc(a,y,b,E,x,z)},_e.beginPath=function(){this.Z.beginPath()},_e.Se=function(){},_e.bezierCurveTo=function(a,y,b,E,x,z){this.Z.bezierCurveTo(a,y,b,E,x,z)},_e.clearRect=function(a,y,b,E){this.yc(),this.Z.clearRect(a,y,b,E)},_e.clip=function(){this.Z.clip()},_e.closePath=function(){this.Z.closePath()},_e.createLinearGradient=function(a,y,b,E){return this.Z.createLinearGradient(a,y,b,E)},_e.createPattern=function(a,y){return this.Z.createPattern(a,y)},_e.createRadialGradient=function(a,y,b,E,x,z){return this.Z.createRadialGradient(a,y,b,E,x,z)},_e.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)},_e.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},_e.fillRect=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},_e.ox=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},_e.fillText=function(a,y,b){this.Z.fillText(a,y,b)},_e.getImageData=function(a,y,b,E){return this.Z.getImageData(a,y,b,E)},_e.lineTo=function(a,y){this.Z.lineTo(a,y)},_e.measureText=function(a){return this.Z.measureText(a)},_e.moveTo=function(a,y){this.Z.moveTo(a,y)},_e.quadraticCurveTo=function(a,y,b,E){this.Z.quadraticCurveTo(a,y,b,E)},_e.rect=function(a,y,b,E){this.Z.rect(a,y,b,E)},_e.restore=function(){this.Z.restore()},_e.save=function(){this.yc(),this.Z.save()},wc.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},_e=wc.prototype,_e.setTransform=function(a,y,b,E,x,z){this.El.setTransform(a,y,b,E,x,z)},_e.scale=function(a,y){this.El.scale(a,y)},_e.translate=function(a,y){this.El.translate(a,y)},_e.stroke=function(){this.Z.stroke()},_e.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}},_e.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},_e.ng=function(a,y){if(a instanceof _o&&a.type===hc){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)},_e.jk=function(){this.Hm||this.stroke()},_e.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b},_e.js=function(a,y){var b=this.Z;b.setLineDash!==void 0&&(b.setLineDash(a),b.lineDashOffset=y)},_e.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Eh),a.lineDashOffset=0)},_e.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},_e.Hs=function(){},$n.Object.defineProperties(wc.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 Eh=Object.freeze([]);wc.className="CanvasSurfaceContext";function Cc(){this.F=this.o=this.u=this.j=0}Cc.className="ColorNumbers";function _o(a,y){lg||(Cp(),lg=!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===eh?(this.Qd=Io,this.Lk=Ga):this.Lk=a===hc?this.Qd=Xi:this.Qd=Yi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}_o.prototype.copy=function(){var a=new _o;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},_e=_o.prototype,_e.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},_e.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},_e.qb=function(a){a.classType===_o&&(this.type=a)},_e.toString=function(){var a="Brush(";if(this.type===Ch)a+=this.color;else if(a=this.type===eh?a+"Linear ":this.type===hc?a+"Radial ":this.type===ug?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+")"},_e.addColorStop=function(a,y){return this._isFrozen&&ln(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Nr(a,"0 <= loc <= 1",_o,"addColorStop:loc"),this.we===null&&(this.we=new wn),this.we.add(a,y),this.na===Ch&&(this.type=eh),this.xe=null,this},_e.Vz=function(a,y){if(this._isFrozen&&ln(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cg:y,this.type===Ch)Pc(this.color),this.color=fd(a,y);else if((this.type===eh||this.type===hc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)Pc(b.value),this.addColorStop(b.key,fd(a,y));return this};function wp(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?cg:b,Pc(a),fd(y,b)}_e.Wy=function(a,y){if(this._isFrozen&&ln(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cg:y,this.type===Ch)Pc(this.color),this.color=fd(-a,y);else if((this.type===eh||this.type===hc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)Pc(b.value),this.addColorStop(b.key,fd(-a,y));return this};function hd(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?cg:b,Pc(a),fd(-y,b)}function nf(a,y,b){Pc(a),a=ha.j;var E=ha.u,x=ha.o,z=ha.F;return Pc(y),b===void 0&&(b=.5),"rgba("+Math.round((ha.j-a)*b+a)+", "+Math.round((ha.u-E)*b+E)+", "+Math.round((ha.o-x)*b+x)+", "+Math.round((ha.F-z)*b+z)+")"}_e.Gx=function(){if(this.type===Ch)return $d(this.color);if((this.type===eh||this.type===hc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===hc)return $d(a.first().value);if(a.get(.5)!==null)return $d(a.get(.5));if(a.count===2)return a=a.Fa(),$d(nf(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,$d(nf(a.get(b),a.get(E),1-z/x))}return!1};function $d(a){return a?a instanceof _o?a.Gx():(Pc(a),128>(299*ha.j+587*ha.u+114*ha.o)/1e3):!1}function fd(a,y){switch(y){case cg:y=100*sg(ha.j);var b=100*sg(ha.u),E=100*sg(ha.o);return vl.j=.4124564*y+.3575761*b+.1804375*E,vl.u=.2126729*y+.7151522*b+.072175*E,vl.o=.0193339*y+.119192*b+.9503041*E,vl.F=ha.F,y=_f(vl.j/wh[0]),b=_f(vl.u/wh[1]),E=_f(vl.o/wh[2]),Nd.j=116*b-16,Nd.u=500*(y-b),Nd.o=200*(b-E),Nd.F=vl.F,Nd.j=Math.min(100,Math.max(0,Nd.j+100*a)),a=(Nd.j+16)/116,y=a-Nd.o/200,vl.j=wh[0]*Um(Nd.u/500+a),vl.u=wh[1]*(Nd.j>Pp*Uf?Math.pow(a,3):Nd.j/Pp),vl.o=wh[2]*Um(y),vl.F=Nd.F,a=-.969266*vl.j+1.8760108*vl.u+.041556*vl.o,y=.0556434*vl.j+-.2040259*vl.u+1.0572252*vl.o,ha.j=255*Vg((3.2404542*vl.j+-1.5371385*vl.u+-.4985314*vl.o)/100),ha.u=255*Vg(a/100),ha.o=255*Vg(y/100),ha.F=vl.F,ha.j=Math.round(ha.j),255<ha.j?ha.j=255:0>ha.j&&(ha.j=0),ha.u=Math.round(ha.u),255<ha.u?ha.u=255:0>ha.u&&(ha.u=0),ha.o=Math.round(ha.o),255<ha.o?ha.o=255:0>ha.o&&(ha.o=0),"rgba("+ha.j+", "+ha.u+", "+ha.o+", "+ha.F+")";case lS:return Bf(),Ml.o=Math.min(100,Math.max(0,Ml.o+100*a)),"hsla("+Ml.j+", "+Ml.u+"%, "+Ml.o+"%, "+Ml.F+")";default:Lt("Unknown color space: "+y)}}function Pc(a){lg||(Cp(),lg=!0);var y=Tp;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,ha.j=a[0],ha.u=a[1],ha.o=a[2],ha.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ha.j=0,ha.u=0,ha.o=0,ha.F=1)}}function Bf(){var a=ha.j/255,y=ha.u/255,b=ha.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))}Ml.j=Math.round(ne),Ml.u=Math.round(100*a),Ml.o=Math.round(100*x),Ml.F=ha.F}function sg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Vg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function _f(a){return a>Uf?Math.pow(a,1/3):(Pp*a+16)/116}function Um(a){var y=a*a*a;return y>Uf?y:(116*a-16)/Pp}function xh(a,y){typeof a!="string"&&(a instanceof _o||Lt("Value for "+y+" must be a color string or a Brush, not "+a))}function Cp(){Tp=Fa?new nu(null,void 0,{willReadFrequently:!0}).context:null}$n.Object.defineProperties(_o.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&ln(this,a),this.na=a,this.start.Mc()&&(a===eh?this.start=Io:a===hc&&(this.start=Xi)),this.end.Mc()&&(a===eh?this.end=Ga:a===hc&&(this.end=Xi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&ln(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&ln(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&ln(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&ln(this,a),0>a&&Nr(a,">= zero",_o,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&ln(this,a),0>a&&Nr(a,">= zero",_o,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&ln(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&ln(this,a),this.cr=a,this.xe=null}}}),_o.prototype.isDark=_o.prototype.Gx,_o.prototype.darkenBy=_o.prototype.Wy,_o.prototype.lightenBy=_o.prototype.Vz,_o.prototype.addColorStop=_o.prototype.addColorStop;var Uf=216/24389,Pp=24389/27,wh=[95.047,100,108.883],Tp=null,ha=new Cc,Ml=new Cc,vl=new Cc,Nd=new Cc,lg=!1;_o.className="Brush";var Ch;_o.Solid=Ch=new mn(_o,"Solid",0);var eh;_o.Linear=eh=new mn(_o,"Linear",1);var hc;_o.Radial=hc=new mn(_o,"Radial",2);var ug;_o.Pattern=ug=new mn(_o,"Pattern",4);var cg;_o.Lab=cg=new mn(_o,"Lab",5);var lS;_o.HSL=lS=new mn(_o,"HSL",6),_o.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},_o.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;lg||(Cp(),lg=!0);var y=Tp;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)},_o.lighten=function(a){return wp(a)},_o.lightenBy=wp,_o.darken=function(a){return hd(a)},_o.darkenBy=hd,_o.mix=nf,_o.isDark=$d;function As(){this.xa="Base"}As.prototype.measure=function(){},As.prototype.Yz=function(a,y,b,E,x){a.measure(y,b,E,x)},As.prototype.arrange=function(){},As.prototype.Ly=function(a,y,b,E,x,z){a.arrange(y,b,E,x,z)},As.prototype.iA=function(a){a.Uj()},As.prototype.gc=function(){},$n.Object.defineProperties(As.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ar}}}),As.prototype.remeasureObject=As.prototype.iA,As.prototype.arrangeElement=As.prototype.Ly,As.prototype.measureElement=As.prototype.Yz,As.className="PanelLayout";function Hm(){this.xa="Base"}Sn(Hm,As),Hm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;a=th(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 Le=de.measuredBounds;Se=Math.max(Le.width+Se,0),pe=Math.max(Le.height+pe,0),Le=de.position.x;var Me=de.position.y;isFinite(Le)||(Le=0),isFinite(Me)||(Me=0),de instanceof oo&&de.isGeometryPositioned&&(de=de.strokeWidth/2,Le-=de,Me-=de),vo(x,Le,Me,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 oo&&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"}Sn(zm,As),zm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;y=Rr(),z=th(a);for(var se=0;se<ie;se++){var de=E[se];if(de.visible||de===z){var pe=jl(de,!1);if(pe!==vr&&pe!==xi)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));kr(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,Le=pe.margin,Me=Le.top+Le.bottom,ze=z+x.bottom,qe=Se.height,Ct=jl(pe,!1);(isNaN(pe.desiredSize.height)&&Ct===Cr||Ct===Li)&&(qe=Math.max(b.height-Me-ze,0)),Me=qe+Me+ze,ze=pe.alignment,ze.Xb()&&(ze=a.defaultAlignment),ze.sb()||(ze=Xi),ne&&(ie-=Se.width+Le.left+Le.right),pe.arrange(ie+ze.offsetX+Le.left,de+ze.offsetY+Le.top+(b.height*ze.y-Me*ze.y),Se.width,qe),ne||(ie+=Se.width+Le.left+Le.right)}}};function Gm(){this.xa="Base"}Sn(Gm,As),Gm.prototype.measure=function(a,y,b,E,x,z){var ne=E.length;b=Rr();for(var ie=th(a),se=0;se<ne;se++){var de=E[se];if(de.visible||de===ie){var pe=jl(de,!1);if(pe!==vr&&pe!==Li)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,ko(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);kr(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,Le=pe.margin,Me=Le.left+Le.right,ze=z+x.right,qe=Se.width,Ct=jl(pe,!1);(isNaN(pe.desiredSize.width)&&Ct===Cr||Ct===xi)&&(qe=Math.max(b.width-Me-ze,0)),Me=qe+Me+ze,ze=pe.alignment,ze.Xb()&&(ze=a.defaultAlignment),ze.sb()||(ze=Xi),ne&&(ie-=Se.height+Le.bottom+Le.top),pe.arrange(de+ze.offsetX+Le.left+(b.width*ze.x-Me*ze.x),ie+ze.offsetY+Le.top,qe,Se.height),ne||(ie+=Se.height+Le.bottom+Le.top)}}};function jm(){this.xa="Base"}Sn(jm,As),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 Le=se.measuredBounds;z=Le.width,ne=Le.height;var Me=Math.max(z+pe,0),ze=Math.max(ne+Se,0),qe=a.isClipping,Ct=An.allocAt(-de.left,-de.top,Me,ze),yt=An.allocAt(0,0,z,ne);Tv(se,yt,!0),z=yt.width,ne=yt.height;for(var Dt=!0,Ot=th(a),zt=0;zt<ie;zt++){var $t=E[zt];Le=y;var In=b;if($t!==se&&($t.visible||$t===Ot)){de=$t.margin;var Jr=de.left,mi=de.top;switch(Me=de.right+de.left,ze=de.top+de.bottom,de=jl($t,!1),de){case Cr:Le=z,In=ne,mi=Jr=ze=Me=0;break;case xi:Le=z,Jr=Me=0;break;case Li:In=ne,mi=ze=0}$t.measure(Le,In,0,0),Le=$t.measuredBounds,Me=Math.max(Le.width+Me,0),ze=Math.max(Le.height+ze,0),de=$t.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=Xi);var ui=$t.alignmentFocus;if(ui.Xb()&&(ui=Xi),In=null,$t instanceof Ar&&$t.$e!==""&&(In=$t.fb($t.$e),In===$t&&(In=null)),Jr=yt.x-Jr,mi=yt.y-mi,In!==null){for($t.arrange(0,0,Le.width,Le.height),Le=In.actualBounds,Le=it.allocAt(Le.x+(ui.x*Le.width-ui.offsetX),Le.y+(ui.y*Le.height-ui.offsetY)),In=In.panel;In!==$t;)In.transform.Ga(Le),In=In.panel;Jr+=de.x*z+de.offsetX-Le.x,mi+=de.y*ne+de.offsetY-Le.y,it.free(Le)}else Jr+=de.x*z+de.offsetX-(ui.x*Le.width+ui.offsetX),mi+=de.y*ne+de.offsetY-(ui.y*Le.height+ui.offsetY);Dt?(Dt=!1,x.h(Jr,mi,Me,ze)):vo(x,Jr,mi,Me,ze)}}switch(Dt?x.assign(Ct):qe?x.Uu(yt.x,yt.y,yt.width,yt.height):vo(x,Ct.x,Ct.y,Ct.width,Ct.height),An.free(Ct),An.free(yt),de=se.stretch,de===Ji&&(de=jl(se,!1)),de){case vr:return;case Cr:if(!isFinite(y)&&!isFinite(b))return;break;case xi:if(!isFinite(y))return;break;case Li:if(!isFinite(b))return}for(Le=se.measuredBounds,z=Le.width,ne=Le.height,Me=Math.max(z+pe,0),ze=Math.max(ne+Se,0),de=se.margin,yt=An.allocAt(-de.left,-de.top,Me,ze),Tv(se,yt,!0),z=yt.width,ne=yt.height,y=0;y<ie;y++)b=E[y],b===se||!b.visible&&b!==Ot||(de=b.margin,Me=de.right+de.left,ze=de.top+de.bottom,Le=b.measuredBounds,Me=Math.max(Le.width+Me,0),ze=Math.max(Le.height+ze,0),pe=b.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=Xi),b=b.alignmentFocus,b.Xb()&&(b=Xi),Dt?(Dt=!1,x.h(pe.x*z+pe.offsetX-(b.x*Le.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Le.height+b.offsetY)-de.top,Me,ze)):vo(x,pe.x*z+pe.offsetX-(b.x*Le.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Le.height+b.offsetY)-de.top,Me,ze));Dt?x.assign(Ct):qe?x.Uu(yt.x,yt.y,yt.width,yt.height):vo(x,Ct.x,Ct.y,Ct.width,Ct.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 Le=de.width,Me=de.height;pe=Se.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=Xi);var ze=Se.alignmentFocus;if(ze.Xb()&&(ze=Xi),de=null,Se instanceof Ar&&Se.$e!==""&&(de=Se.fb(Se.$e),de===Se&&(de=null)),de!==null){var qe=de.actualBounds;for(ze=it.allocAt(qe.x+(ze.x*qe.width-ze.offsetX),qe.y+(ze.y*qe.height-ze.offsetY)),de=de.panel;de!==Se;)de.transform.Ga(ze),de=de.panel;de=pe.x*ne.width+pe.offsetX-ze.x,pe=pe.y*ne.height+pe.offsetY-ze.y,it.free(ze)}else de=pe.x*ne.width+pe.offsetX-(ze.x*Le+ze.offsetX),pe=pe.y*ne.height+pe.offsetY-(ze.y*Me+ze.offsetY);de+=ne.x-b.x,pe+=ne.y-b.y,Se.visible&&Se.arrange(z+de,se+pe,Le,Me)}}An.free(ne)};function Tv(a,y,b){var E=null;if(a instanceof Ar&&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"}Sn(Vm,As),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,Le=de.right+de.left,Me=de.top+de.bottom;se.measure(y,b,z,ne),de=se.measuredBounds;var ze=0,qe=null;se instanceof oo&&(qe=se,ze=qe.strokeWidth*qe.scale);var Ct=Math.max(de.width+Le,0);de=Math.max(de.height+Me,0);var yt=kv(se),Dt=yt.x*Ct+yt.offsetX;yt=yt.y*de+yt.offsetY;var Ot=Iv(se),zt=Ot.x*Ct+Ot.offsetX;for(Ot=Ot.y*de+Ot.offsetY,isFinite(y)&&(pe=Math.max(Math.abs(Dt-zt)-ze,0)),isFinite(b)&&(Se=Math.max(Math.abs(yt-Ot)-ze,0)),ze=an.alloc(),ze.h(0,0),a=th(a),Ot=0;Ot<ie;Ot++)yt=E[Ot],yt===se||!yt.visible&&yt!==a||(de=yt.margin,Ct=de.right+de.left,Dt=de.top+de.bottom,yt.measure(pe,Se,0,0),de=yt.measuredBounds,Ct=Math.max(de.width+Ct,0),de=Math.max(de.height+Dt,0),ze.h(Math.max(Ct,ze.width),Math.max(de,ze.height)));if(ie===1)x.width=Ct,x.height=de,an.free(ze);else{switch(yt=kv(se),Ot=Iv(se),ie=E=0,Ot.x!==yt.x&&Ot.y!==yt.y&&(E=ze.width/Math.abs(Ot.x-yt.x),ie=ze.height/Math.abs(Ot.y-yt.y)),an.free(ze),ze=0,qe!==null&&(ze=qe.strokeWidth*qe.scale,Bv(qe)===yi&&(E=ie=Math.max(E,ie))),E+=Math.abs(yt.offsetX)+Math.abs(Ot.offsetX)+ze,ie+=Math.abs(yt.offsetY)+Math.abs(Ot.offsetY)+ze,qe=se.stretch,qe===Ji&&(qe=jl(se,!1)),qe){case vr:ne=z=0;break;case Cr:isFinite(y)&&(E=y),isFinite(b)&&(ie=b);break;case xi:isFinite(y)&&(E=y),ne=0;break;case Li:z=0,isFinite(b)&&(ie=b)}se.Uj(),se.measure(E,ie,z,ne),x.width=se.measuredBounds.width+Le,x.height=se.measuredBounds.height+Me}},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),Le=pe.y*x.height+pe.offsetY,Me=Se.x*x.width+Se.offsetX;for(Se=Se.y*x.height+Se.offsetY,z.x=pe.x*x.width+pe.offsetX,z.y=Le,vo(z,Me,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),Le=ie.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=Xi),se=z.width*Le.x+Le.offsetX-se*Le.x+ne.left+z.x,ne=z.height*Le.y+Le.offsetY-pe*Le.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"}Sn(Wm,As),Wm.prototype.measure=function(a,y,b,E,x){for(var z=E.length,ne=Rr(),ie=Rr(),se=0;se<z;se++){var de=E[se],pe=de instanceof Ar?de:null;if(pe!==null&&Ph(pe)&&de.visible){ie.push(pe);for(var Se=pe.O.s,Le=Se.length,Me=0;Me<Le;Me++){var ze=Se[Me];pe.type===Ar.TableRow?ze.row=de.row:pe.type===Ar.TableColumn&&(ze.column=de.column),ne.push(ze)}}else ne.push(de)}z=ne.length,z===0&&(a.Fb(0),a.Eb(0));for(var qe=[],Ct=0;Ct<z;Ct++){var yt=ne[Ct];yt.visible&&(Ft(yt,!0),Bn(yt,!0),qe[yt.row]||(qe[yt.row]=[]),qe[yt.row][yt.column]||(qe[yt.row][yt.column]=[]),qe[yt.row][yt.column].push(yt))}kr(ne);var Dt=Rr(),Ot=Rr(),zt=Rr(),$t={count:0},In={count:0},Jr=y,mi=b,ui=a.rowDefs,Ur=a.colDefs,pr=null;z=ui.length;for(var $i=0;$i<z;$i++)pr=ui[$i],pr!==void 0&&(pr.actual=0);z=Ur.length;for(var _i=0;_i<z;_i++)pr=Ur[_i],pr!==void 0&&(pr.actual=0);for(var Uo=qe.length,fa=0,_s=0;_s<Uo;_s++)qe[_s]&&(fa=Math.max(fa,qe[_s].length));var Ys=Math.min(a.topIndex,Uo-1),Vl=Math.min(a.leftIndex,fa-1),Us=0;Uo=qe.length;for(var Oh=th(a),ls=0;ls<Uo;ls++)if(qe[ls]){fa=qe[ls].length;var id=a.Fb(ls);id.actual=0;for(var Wl=id.oc=0;Wl<fa;Wl++)if(qe[ls][Wl]){var Fh=a.Eb(Wl);Dt[Wl]===void 0&&(Fh.actual=0,Fh.oc=0,Dt[Wl]=!0);for(var tc=qe[ls][Wl],Lc=tc.length,Zu=0;Zu<Lc;Zu++){var ku=tc[Zu];if(ku.visible||ku===Oh){var vf=1<ku.rowSpan||1<ku.columnSpan;vf&&(ls<Ys||Wl<Vl||Ot.push(ku));var od=ku.margin,Rg=od.right+od.left,Ku=od.top+od.bottom,Zl=xc(ku,id,Fh,!1),Im=ku.desiredSize,_p=!isNaN(Im.height),md=!isNaN(Im.width)&&_p;if(vf||Zl===vr||md||ls<Ys||Wl<Vl||($t[Wl]!==void 0||Zl!==Cr&&Zl!==xi||($t[Wl]=-1,$t.count++),In[ls]!==void 0||Zl!==Cr&&Zl!==Li||(In[ls]=-1,In.count++),zt.push(ku)),ku.measure(1/0,1/0,0,0),!(ls<Ys||Wl<Vl)){var Iu=ku.measuredBounds,Yf=Math.max(Iu.width+Rg,0),Yu=Math.max(Iu.height+Ku,0);if(ku.rowSpan===1&&(Zl===vr||Zl===xi)){pr=a.Fb(ls);var yf=pr.Wc();Us=Math.max(Yu-pr.actual,0),Us+yf>mi&&(Us=Math.max(mi-yf,0));var pv=pr.oa===0;pr.oc=pr.oc+Us,pr.actual=pr.oa+Us,mi=Math.max(mi-(Us+(pv?yf:0)),0)}if(ku.columnSpan===1&&(Zl===vr||Zl===Li)){pr=a.Eb(Wl);var Dm=pr.Wc();Us=Math.max(Yf-pr.actual,0),Us+Dm>Jr&&(Us=Math.max(Jr-Dm,0));var $y=pr.oa===0;pr.oc=pr.oc+Us,pr.actual=pr.oa+Us,Jr=Math.max(Jr-(Us+($y?Dm:0)),0)}vf&&ku.Uj()}}}}}kr(Dt);var Bd=0,ih=0;z=a.columnCount;for(var Up=0;Up<z;Up++){var Sf=Ur[Up];Sf!==void 0&&(Bd+=isNaN(Sf.Hc)?Sf.oc:Sf.Hc,Sf.oc!==0&&(Bd+=Sf.Wc()))}z=a.rowCount;for(var Mg=0;Mg<z;Mg++){var bf=ui[Mg];bf!==void 0&&(ih+=isNaN(bf.Hc)?bf.oc:bf.Hc,bf.oc!==0&&(ih+=bf.Wc()))}Jr=Math.max(y-Bd,0);var _d=mi=Math.max(b-ih,0),Bh=Jr;z=zt.length;for(var Du=0;Du<z;Du++){var vd=zt[Du],gv=a.Fb(vd.row),oh=a.Eb(vd.column),Og=vd.measuredBounds,ad=vd.margin,Xf=ad.right+ad.left,yd=ad.top+ad.bottom;$t[vd.column]=oh.oc===0&&$t[vd.column]!==void 0?Math.max(Og.width+Xf,$t[vd.column]):null,In[vd.row]=gv.oc===0&&In[vd.row]!==void 0?Math.max(Og.height+yd,In[vd.row]):null}var Hp=0,Fg=0,Kc;for(Kc in In)Kc!=="count"&&(Hp+=In[Kc]);for(Kc in $t)Kc!=="count"&&(Fg+=$t[Kc]);for(var rl=an.alloc(),Rm=0;Rm<z;Rm++){var uu=zt[Rm];if(uu.visible||uu===Oh){var us=a.Fb(uu.row),cu=a.Eb(uu.column),ah=0;isFinite(cu.width)?ah=cu.width:(isFinite(Jr)&&$t[uu.column]!==null?Fg===0?ah=cu.actual+Jr:ah=$t[uu.column]/Fg*Bh:$t[uu.column]!==null?ah=Jr:ah=cu.actual||Jr,ah=Math.max(0,ah-cu.Wc()));var _h=0;switch(isFinite(us.height)?_h=us.height:(isFinite(mi)&&In[uu.row]!==null?Hp===0?_h=us.actual+mi:_h=In[uu.row]/Hp*_d:In[uu.row]!==null?_h=mi:_h=us.actual||mi,_h=Math.max(0,_h-us.Wc())),rl.h(Math.max(cu.minimum,Math.min(ah,cu.maximum)),Math.max(us.minimum,Math.min(_h,us.maximum))),Zl=xc(uu,us,cu,!1),Zl){case xi:rl.height=Math.max(rl.height,us.actual+mi);break;case Li:rl.width=Math.max(rl.width,cu.actual+Jr)}var Qf=uu.margin,eS=Qf.right+Qf.left,mv=Qf.top+Qf.bottom;uu.Uj(),uu.measure(rl.width,rl.height,cu.minimum,us.minimum);var Bg=uu.measuredBounds,Jf=Math.max(Bg.width+eS,0),zp=Math.max(Bg.height+mv,0);isFinite(Jr)&&(Jf=Math.min(Jf,rl.width)),isFinite(mi)&&(zp=Math.min(zp,rl.height));var Ru=0;Ru=us.actual,us.actual=Math.max(us.actual,zp),us.oc=Math.max(us.oc,zp),Us=us.actual-Ru,mi=Math.max(mi-Us,0),In[uu.row]===null&&(_d=Math.max(_d-Us,0)),Ru=cu.actual,cu.actual=Math.max(cu.actual,Jf),cu.oc=Math.max(cu.oc,Jf),Us=cu.actual-Ru,Jr=Math.max(Jr-Us,0),$t[uu.column]===null&&(Bh=Math.max(Bh-Us,0))}}kr(zt);var sh=an.alloc(),sd=Rr(),vc=Rr();if(z=Ot.length,z!==0){for(var Ef=0;Ef<Uo;Ef++)if(qe[Ef]){fa=qe[Ef].length;var _g=a.Fb(Ef);sd[Ef]=_g.actual;for(var xf=0;xf<fa;xf++)if(qe[Ef][xf]){var vv=a.Eb(xf);vc[xf]=vv.actual}}}for(var Ug=0;Ug<z;Ug++){var qa=Ot[Ug];if(qa.visible||qa===Oh){var Yc=a.Fb(qa.row),kc=a.Eb(qa.column);switch(rl.h(Math.max(kc.minimum,Math.min(y,kc.maximum)),Math.max(Yc.minimum,Math.min(b,Yc.maximum))),Zl=xc(qa,Yc,kc,!1),Zl){case Cr:vc[kc.index]!==0&&(rl.width=Math.min(rl.width,vc[kc.index])),sd[Yc.index]!==0&&(rl.height=Math.min(rl.height,sd[Yc.index]));break;case xi:vc[kc.index]!==0&&(rl.width=Math.min(rl.width,vc[kc.index]));break;case Li:sd[Yc.index]!==0&&(rl.height=Math.min(rl.height,sd[Yc.index]))}isFinite(kc.width)&&(rl.width=kc.width),isFinite(Yc.height)&&(rl.height=Yc.height),sh.h(0,0);for(var yv=kc.minimum,Xu=Yc.minimum,Uh=1;Uh<qa.rowSpan&&!(qa.row+Uh>=a.rowCount);Uh++)pr=a.Fb(qa.row+Uh),Us=0,Us=Zl===Cr||Zl===Li?Math.max(pr.minimum,sd[qa.row+Uh]===0?pr.maximum:Math.min(sd[qa.row+Uh],pr.maximum)):Math.max(pr.minimum,isNaN(pr.Hc)?pr.maximum:Math.min(pr.Hc,pr.maximum)),sh.height+=Us,Xu+=pr.minimum;for(var Ic=1;Ic<qa.columnSpan&&!(qa.column+Ic>=a.columnCount);Ic++)pr=a.Eb(qa.column+Ic),Us=0,Us=Zl===Cr||Zl===xi?Math.max(pr.minimum,vc[qa.column+Ic]===0?pr.maximum:Math.min(vc[qa.column+Ic],pr.maximum)):Math.max(pr.minimum,isNaN(pr.Hc)?pr.maximum:Math.min(pr.Hc,pr.maximum)),sh.width+=Us,yv+=pr.minimum;rl.width+=sh.width,rl.height+=sh.height;var Hg=qa.margin,wf=Hg.right+Hg.left,Mm=Hg.top+Hg.bottom;qa.measure(rl.width,rl.height,yv,Xu);for(var zg=qa.measuredBounds,Sd=Math.max(zg.width+wf,0),qf=Math.max(zg.height+Mm,0),Cf=0,Gg=0;Gg<qa.rowSpan&&!(qa.row+Gg>=a.rowCount);Gg++)pr=a.Fb(qa.row+Gg),Cf+=pr.total||0;if(Cf<qf){var Hh=qf-Cf,Ud=qf-Cf;if(qa.spanAllocation!==null)for(var zh=qa.spanAllocation,lh=0;lh<qa.rowSpan&&!(0>=Hh)&&!(qa.row+lh>=a.rowCount);lh++){pr=a.Fb(qa.row+lh);var Gh=pr.oa||0,$f=zh(qa,pr,Ud);pr.actual=Math.min(pr.maximum,Gh+$f),pr.oa!==Gh&&(Hh-=pr.oa-Gh)}for(;0<Hh;){var ld=pr.oa||0;if(isNaN(pr.height)&&pr.maximum>ld&&(pr.actual=Math.min(pr.maximum,ld+Hh),pr.oa!==ld&&(Hh-=pr.oa-ld)),pr.index===0)break;pr=a.Fb(pr.index-1)}}for(var Gp=0,jh=0;jh<qa.columnSpan&&!(qa.column+jh>=a.columnCount);jh++)pr=a.Eb(qa.column+jh),Gp+=pr.total||0;if(Gp<Sd){var jp=Sd-Gp,tS=Sd-Gp;if(qa.spanAllocation!==null)for(var uh=qa.spanAllocation,ep=0;ep<qa.columnSpan&&!(0>=jp)&&!(qa.column+ep>=a.columnCount);ep++){pr=a.Eb(qa.column+ep);var Om=pr.oa||0,nS=uh(qa,pr,tS);pr.actual=Math.min(pr.maximum,Om+nS),pr.oa!==Om&&(jp-=pr.oa-Om)}for(;0<jp;){var Sv=pr.oa||0;if(isNaN(pr.width)&&pr.maximum>Sv&&(pr.actual=Math.min(pr.maximum,Sv+jp),pr.oa!==Sv&&(jp-=pr.oa-Sv)),pr.index===0)break;pr=a.Eb(pr.index-1)}}}}kr(Ot),an.free(sh),an.free(rl),sd!==void 0&&kr(sd),vc!==void 0&&kr(vc);var Vp=0,Wp=0,bv=a.desiredSize,eE=a.maxSize;Zl=jl(a,!0);var Fm=ih=Bd=0,Bm=0;z=a.columnCount;for(var Ev=0;Ev<z;Ev++)Ur[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&&(Bd+=pr.oa,Bd+=pr.Wc()));isFinite(bv.width)?Vp=Math.min(bv.width,eE.width):Vp=Zl!==vr&&isFinite(y)?y:Bd,Vp=Math.max(Vp,a.minSize.width),Vp=Math.max(Vp-Fm,0);for(var HE=Bd===0?1:Math.max(Vp/Bd,1),xv=0;xv<z;xv++)Ur[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++)ui[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&&(ih+=pr.oa,ih+=pr.Wc()));isFinite(bv.height)?Wp=Math.min(bv.height,eE.height):Wp=Zl!==vr&&isFinite(b)?b:ih,Wp=Math.max(Wp,a.minSize.height),Wp=Math.max(Wp-Bm,0);for(var zE=ih===0?1:Math.max(Wp/ih,1),Cv=0;Cv<z;Cv++)ui[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===Ar.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),Ft(_m,!1)}kr(ie),a.inRowsCols=qe},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 Le=Se=0,Me=Math.min(a.topIndex,de-1);if(0<se.length){for(;Me!==de&&(se[Me]===void 0||se[Me].oa===0);)Me++;Me=Math.max(Math.min(Me,de-1),0),Se=-se[Me].position}var ze=Math.min(a.leftIndex,pe-1);if(0<ie.length){for(;ze!==pe&&(ie[ze]===void 0||ie[ze].oa===0);)ze++;ze=Math.max(Math.min(ze,pe-1),0),Le=-ie[ze].position}for(var qe=0,Ct=0;qe!==de&&se[qe]===void 0;)qe++;for(;Ct!==de&&ie[Ct]===void 0;)Ct++;pe=a.part,a.Fb(qe),a.Eb(Ct);for(var yt=0;yt<y.length;yt++){var Dt=y[yt];if(Dt instanceof Ar&&Dt.visible&&Ph(Dt)){if(Dt.type===Ar.TableRow){ie=a.Fb(Dt.row);var Ot=a.Eb(Ct)}else ie=a.Fb(qe),Ot=a.Eb(Dt.column);se=ie.position+Se+x,ie.oa!==0&&(se+=ie.Io(Math.max(qe,Me))),ie=Ot.position+Le+z,Ot.oa!==0&&(ie+=Ot.Io(Math.max(Ct,ze))),Ot=Dt.measuredBounds,Dt.Uk(),Dt.actualBounds.ka();var zt=Dt.actualBounds,$t=An.allocAt(zt.x,zt.y,zt.width,zt.height);zt.x=Dt.type===Ar.TableRow?z:ie,zt.y=Dt.type===Ar.TableColumn?x:se,zt.width=Ot.width,zt.height=Ot.height,Dt.actualBounds.freeze(),Bn(Dt,!1),Mi($t,zt)||pe===null||(pe.oh(),Dt.Pn(pe)),An.free($t)}}for(yt=an.alloc(),Dt=0;Dt<de;Dt++)if(ne[Dt]){for(pe=ne[Dt].length,Ot=a.Fb(Dt),se=Ot.position+Se+x,Ot.oa!==0&&(se+=Ot.Io(Math.max(qe,Me))),zt=0;zt<pe;zt++)if(ne[Dt][zt]){$t=a.Eb(zt),ie=$t.position+Le+z,$t.oa!==0&&(ie+=$t.Io(Math.max(Ct,ze)));for(var In=ne[Dt][zt],Jr=In.length,mi=0;mi<Jr;mi++){var ui=In[mi],Ur=ui.measuredBounds;yt.h(0,0);for(var pr=1;pr<ui.rowSpan&&!(Dt+pr>=a.rowCount);pr++){var $i=a.Fb(Dt+pr);$i.oa!==0&&(yt.height+=$i.total)}for(pr=1;pr<ui.columnSpan&&!(zt+pr>=a.columnCount);pr++)$i=a.Eb(zt+pr),$i.oa!==0&&(yt.width+=$i.total);var _i=$t.oa+yt.width,Uo=Ot.oa+yt.height;pr=ie,$i=se;var fa=_i,_s=Uo,Ys=ie,Vl=se,Us=_i,Oh=Uo;ie+_i>b.width&&(Us=Math.max(b.width-ie,0)),se+Uo>b.height&&(Oh=Math.max(b.height-se,0));var ls=ui.alignment;if(ls.Xb()){ls=a.defaultAlignment,ls.sb()||(ls=Xi);var id=ls.x,Wl=ls.y,Fh=ls.offsetX;ls=ls.offsetY;var tc=$t.alignment,Lc=Ot.alignment;tc.sb()&&(id=tc.x,Fh=tc.offsetX),Lc.sb()&&(Wl=Lc.y,ls=Lc.offsetY)}else id=ls.x,Wl=ls.y,Fh=ls.offsetX,ls=ls.offsetY;(isNaN(id)||isNaN(Wl))&&(Wl=id=.5,ls=Fh=0),tc=Ur.width,Lc=Ur.height;var Zu=ui.margin,ku=Zu.left+Zu.right,vf=Zu.top+Zu.bottom,od=xc(ui,Ot,$t,!1);!isNaN(ui.desiredSize.width)||od!==Cr&&od!==xi||(tc=Math.max(_i-ku,0)),!isNaN(ui.desiredSize.height)||od!==Cr&&od!==Li||(Lc=Math.max(Uo-vf,0)),_i=ui.maxSize,Uo=ui.minSize,tc=Math.min(_i.width,tc),Lc=Math.min(_i.height,Lc),tc=Math.max(Uo.width,tc),Lc=Math.max(Uo.height,Lc),_i=Lc+vf,pr+=fa*id-(tc+ku)*id+Fh+Zu.left,$i+=_s*Wl-_i*Wl+ls+Zu.top,ui.visible&&(ia(Ys,Vl,Us,Oh,pr,$i,Ur.width,Ur.height)?ui.arrange(pr,$i,tc,Lc):ui.arrange(pr,$i,tc,Lc,new An(Ys,Vl,Us,Oh)))}}}for(an.free(yt),a=0;a<E;a++)b=y[a],z=b instanceof Ar?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"}Sn(Zm,As),Zm.prototype.measure=function(){},Zm.prototype.arrange=function(){};function Km(){this.xa="Base"}Sn(Km,As),Km.prototype.measure=function(){},Km.prototype.arrange=function(){};function Ym(){this.xa="Base"}Sn(Ym,As),Ym.prototype.measure=function(a,y,b,E,x,z,ne){1<E.length&&Lt("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 Le=Math.max(y-de,0),Me=Math.max(b-se,0),ze=1;a.viewboxStretch===yi?Se!==0&&ie!==0&&(ze=Math.min(Le/Se,Me/ie)):Se!==0&&ie!==0&&(ze=Math.max(Le/Se,Me/ie)),ze===0&&(ze=1e-4),E.Ca*=ze,pe!==E.scale&&(Ft(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=Xi),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"}Sn(Wg,As),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,Le=Se.x;Se=Se.y,y.save(),y.beginPath(),y.rect(0,0,ie,se),y.clip(),y.Se();for(var Me=[],ze=a.O.s,qe=ze.length,Ct=0;Ct<qe;Ct++){var yt=ze[Ct],Dt=[];if(Me.push(Dt),yt.visible){var Ot=yt.interval;if(!(0>Ot)){yt=Nv(yt.figure);for(var zt=0;zt<qe;zt++)if(zt!==Ct){var $t=ze[zt];$t.visible&&Nv($t.figure)===yt&&($t=$t.interval,$t>Ot&&Dt.push($t))}}}}for(ze=a.O.s,qe=ze.length,Ct=0;Ct<qe;Ct++){var In=ze[Ct];if(In.visible&&(Dt=In.interval||1,yt=Math.abs(Dt),!(2>x*yt*b))){if(Ot=In.segmentIndex,(!isFinite(Ot)||isNaN(Ot))&&(Ot=0),0>Ot&&(Ot=yt-Math.min(-Ot,yt)),Ot=Math.round(Ot%yt),yt=In.opacity,zt=1,yt!==1){if(yt===0)continue;zt=y.globalAlpha,y.globalAlpha=zt*yt}$t=Me[Ct];var Jr=!1,mi=In.strokeDashArray;if(mi!==null&&(Jr=!0,y.js(mi,In.strokeDashOffset)),In.figure==="LineV"&&In.stroke!==null&&0<In.strokeWidth){for(y.lineWidth=In.strokeWidth,Ba(a,y,In.stroke,!1,!1,z,ne),y.beginPath(),mi=In=Math.floor((Le-x)/x);mi<=In+de;mi++){var ui=mi*x+Le;0<=ui&&ui<=ie&&Xm(mi,Dt,Ot,$t)&&(y.moveTo(ui,0),y.lineTo(ui,se))}y.stroke(),y.Se()}else if(In.figure==="LineH"&&In.stroke!==null&&0<In.strokeWidth){for(y.lineWidth=In.strokeWidth,Ba(a,y,In.stroke,!1,!1,z,ne),y.beginPath(),mi=In=Math.floor((Se-E)/E);mi<=In+pe;mi++)ui=mi*E+Se,0<=ui&&ui<=se&&Xm(mi,Dt,Ot,$t)&&(y.moveTo(0,ui),y.lineTo(ie,ui));y.stroke(),y.Se()}else if(In.figure==="BarV"&&In.fill!==null)for(Ba(a,y,In.fill,!0,!1,z,ne),In=In.width,isNaN(In)&&(In=x),ui=mi=Math.floor((Le-x)/x);ui<=mi+de;ui++){var Ur=ui*x+Le;0<=Ur+In&&Ur<=ie&&Xm(ui,Dt,Ot,$t)&&y.fillRect(Ur,0,In,se)}else if(In.figure==="BarH"&&In.fill!==null)for(Ba(a,y,In.fill,!0,!1,z,ne),In=In.height,isNaN(In)&&(In=E),ui=mi=Math.floor((Se-E)/E);ui<=mi+pe;ui++)Ur=ui*E+Se,0<=Ur+In&&Ur<=se&&Xm(ui,Dt,Ot,$t)&&y.fillRect(0,Ur,ie,In);Jr&&y.fs(),yt!==1&&(y.globalAlpha=zt)}}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"}Sn(Qm,As),Qm.prototype.measure=function(a,y,b,E,x){var z=E.length;if(a instanceof Mo||a instanceof Hr){var ne=null,ie=null;if(a instanceof Hr&&(ne=a),a instanceof Mo&&(ie=a,ne=ie.adornedPart,a.j===null&&(a.j=[])),ne instanceof Hr){var se=ne;if(z===0)ko(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var de=a instanceof Mo?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 Le=y.height,Me=a.j;if(Me.length=0,de!==null){uS(a,ie,Le,de);var ze=de.measuredBounds;b.ed(ze),Me.push(ze)}ze=Ri.alloc();for(var qe=it.alloc(),Ct=it.alloc(),yt=0;yt<z;yt++){var Dt=E[yt];if(Dt!==de)if(Dt.isPanelMain&&Dt instanceof oo){uS(a,ie,Le,Dt);var Ot=Dt.measuredBounds;b.ed(Ot),Me.push(Ot)}else if(2>Se)Dt.measure(1/0,1/0,0,0),Ot=Dt.measuredBounds,b.ed(Ot),Me.push(Ot);else{var zt=Dt.segmentIndex,$t=Dt.segmentFraction,In=Dt.alignmentFocus;In.Mc()&&(In=Xi);var Jr=Dt.segmentOrientation,mi=Dt.segmentOffset;if(isNaN(zt)){var ui=se.ua;Ot=Rr(),ui.Qu($t,Ot);var Ur=it.allocAt(Ot[0],Ot[1]);if(Ur.add(se.i(0)),ui.type===Ir.j?Ur.offset(-ui.startX,-ui.startY):(ui=ui.figures.first(),ui!==null&&Ur.offset(-ui.startX,-ui.startY)),ui=Ot[2],Jr!==iu){var pr=se.computeAngle(Dt,Jr,ui);Dt.Kb=pr}pr=Ur.x-y.x;var $i=Ur.y-y.y;it.free(Ur),kr(Ot)}else if(zt<-Se||zt>=Se)Ot=it.alloc(),se.vg(),se.computeMidPoint(Ot),ui=se.midAngle,Jr!==iu&&(pr=se.computeAngle(Dt,Jr,ui),Dt.Kb=pr),pr=Ot.x-y.x,$i=Ot.y-y.y,it.free(Ot);else{if(pr=0,0<=zt?($i=pe.M(zt),Ot=zt<Se-1?pe.M(zt+1):$i):(pr=Se+zt,$i=pe.M(pr),Ot=0<pr?pe.M(pr-1):$i),$i.Xa(Ot)){0<=zt?(ui=0<zt?pe.M(zt-1):$i,pr=zt<Se-2?pe.M(zt+2):Ot):(ui=pr<Se-1?pe.M(pr+1):$i,pr=1<pr?pe.M(pr-2):Ot),Ur=ui.Bf($i);var _i=Ot.Bf(pr);ui=Ur>_i+10?0<=zt?ui.ab($i):$i.ab(ui):_i>Ur+10?0<=zt?Ot.ab(pr):pr.ab(Ot):0<=zt?ui.ab(pr):pr.ab(ui)}else ui=0<=zt?$i.ab(Ot):Ot.ab($i);Jr!==iu&&(pr=se.computeAngle(Dt,Jr,ui),Dt.Kb=pr),pr=$i.x+(Ot.x-$i.x)*$t-y.x,$i=$i.y+(Ot.y-$i.y)*$t-y.y}Dt.measure(1/0,1/0,0,0),Ot=Dt.measuredBounds,Ur=Dt.naturalBounds;var Uo=0;Dt instanceof oo&&(Uo=Dt.strokeWidth),_i=Ur.width+Uo;var fa=Ur.height+Uo;ze.reset(),ze.translate(-Ot.x,-Ot.y),ze.scale(Dt.scale,Dt.scale),ze.rotate(Jr===iu?Dt.angle:ui,_i/2,fa/2),Jr!==im&&Jr!==am||ze.rotate(90,_i/2,fa/2),Jr!==om&&Jr!==sm||ze.rotate(-90,_i/2,fa/2),Jr===T0&&(45<ui&&135>ui||225<ui&&315>ui)&&ze.rotate(-ui,_i/2,fa/2),Ur=new An(0,0,_i,fa),qe.xi(Ur,In),ze.Ga(qe),In=-qe.x+Uo/2*Dt.scale,Dt=-qe.y+Uo/2*Dt.scale,Ct.assign(mi),Uo=isNaN(mi.x);var _s=isNaN(mi.y);if(Uo||_s){_i=_i/2+3,fa=fa/2+3;var Ys=45<=ui&&135>=ui,Vl=225<=ui&&315>=ui;Jr===iu&&(Ys||Vl)?(Ct.x=_s?_i:mi.y,Ct.y=Uo?fa:mi.x,Ys?0<=zt||isNaN(zt)&&.5>$t||!Uo||(Ct.y=-fa):Vl&&((0<=zt||isNaN(zt)&&.5>$t)&&Uo&&(Ct.y=-fa),_s&&(Ct.x=-_i))):(Uo&&(Ct.x=0<=zt||isNaN(zt)&&.5>$t?_i:-_i),_s&&(Ct.y=-fa),Ct.rotate(ui))}else Ct.rotate(ui);pr+=Ct.x,$i+=Ct.y,Ur.set(Ot),Ur.h(pr+In,$i+Dt,Ot.width,Ot.height),Me.push(Ur),b.ed(Ur)}}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),ko(x,b.width||0,b.height||0),Ri.free(ze),it.free(qe),it.free(Ct)}}}},Qm.prototype.arrange=function(a,y){var b=y.length;if(a instanceof Mo||a instanceof Hr){var E=a,x=null;a instanceof Mo&&(x=a,E=x.adornedPart);var z=a instanceof Mo?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 Hr)for(z=a.labelNodes;z.next();){var Se=a;ne=z.value,ie=ne.segmentIndex,se=ne.segmentFraction;var Le=ne.alignmentFocus;if(de=ne.segmentOrientation,pe=ne.segmentOffset,isNaN(ie)){var Me=Se.ua,ze=Rr();Me.Qu(se,ze);var qe=it.allocAt(ze[0],ze[1]);qe.add(Se.i(0)),Me.type===Ir.j||(Me=Me.figures.first()),qe.offset(-Me.startX,-Me.startY),Me=ze[2],de!==iu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=qe.x;var Ct=qe.y;it.free(qe),kr(ze)}else if(ie<-b||ie>=b)ze=it.alloc(),Me=Se,Ct=ze,Me.vg(),Me.computeMidPoint(Ct),Me=Se.midAngle,de!==iu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=ze.x,Ct=ze.y,it.free(ze);else{if(qe=0,0<=ie?(ze=y.s[ie],Ct=ie<b-1?y.s[ie+1]:ze):(qe=b+ie,ze=y.s[qe],Ct=0<qe?y.s[qe-1]:ze),ze.Xa(Ct)){0<=ie?(Me=0<ie?y.s[ie-1]:ze,qe=ie<b-2?y.s[ie+2]:Ct):(Me=qe<b-1?y.s[qe+1]:ze,qe=1<qe?y.s[qe-2]:Ct);var yt=Me.Bf(ze),Dt=Ct.Bf(qe);Me=yt>Dt+10?0<=ie?Me.ab(ze):ze.ab(Me):Dt>yt+10?0<=ie?Ct.ab(qe):qe.ab(Ct):0<=ie?Me.ab(qe):qe.ab(Me)}else Me=0<=ie?ze.ab(Ct):Ct.ab(ze);de!==iu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=ze.x+(Ct.x-ze.x)*se,Ct=ze.y+(Ct.y-ze.y)*se}if(Le.ys())ne.location=new it(Se,Ct);else{Le.Mc()&&(Le=Xi),ze=Ri.alloc(),ze.reset(),ze.scale(ne.scale,ne.scale),ze.rotate(ne.angle,0,0);var Ot=ne.naturalBounds;qe=An.allocAt(0,0,Ot.width,Ot.height),yt=it.alloc(),yt.xi(qe,Le),ze.Ga(yt),Le=-yt.x,Dt=-yt.y;var zt=Ot.width,$t=Ot.height;Ot=it.alloc(),Ot.assign(pe);var In=isNaN(pe.x),Jr=isNaN(pe.y);if(In||Jr){zt=zt/2+3,$t=$t/2+3;var mi=45<=Me&&135>=Me,ui=225<=Me&&315>=Me;de===iu&&(mi||ui)?(Ot.x=Jr?zt:pe.y,Ot.y=In?$t:pe.x,mi?0<=ie||isNaN(ie)&&.5>se||!In||(Ot.y=-$t):ui&&((0<=ie||isNaN(ie)&&.5>se)&&In&&(Ot.y=-$t),Jr&&(Ot.x=-zt))):(In&&(Ot.x=0<=ie||isNaN(ie)&&.5>se?zt:-zt),Jr&&(Ot.y=-$t),Ot.rotate(Me))}else Ot.rotate(Me);Se+=Ot.x,Ct+=Ot.y,ze.pp(qe),Le+=qe.x,Dt+=qe.y,ie=it.allocAt(Se+Le,Ct+Dt),ne.move(ie),it.free(ie),it.free(Ot),it.free(yt),An.free(qe),Ri.free(ze)}}x!==null?x.Ul(!1):E.Ul(!1),E=US(a),a.location.h(a.position.x+E.x,a.position.y+E.y),it.free(E)}};function uS(a,y,b,E){if(Nt(E)!==!1){var x=E.strokeWidth;x===0&&a instanceof Mo&&a.type===Ar.Link&&a.adornedObject instanceof oo&&(x=a.adornedObject.strokeWidth),x*=E.Ca,a instanceof Hr&&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 Mo&&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),Ft(E,!1)}}function Zg(){this.xa="Base"}Sn(Zg,As),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,Le=new An(-se.left,-se.top,Math.max(Se.width+de,0),Math.max(Se.height+pe,0));a.graduatedBounds.push(Le),x.assign(Le);for(var Me=ie.geometry,ze=ie.strokeWidth,qe=Me.flattenedSegments,Ct=Me.flattenedLengths,yt=Me.flattenedTotalLength,Dt=qe.length,Ot=0,zt=0,$t=Rr(),In=0;In<Dt;In++){var Jr=qe[In],mi=[];zt=Ot=0;for(var ui=Jr.length,Ur=0;Ur<ui;Ur+=2){var pr=Jr[Ur],$i=Jr[Ur+1];if(Ur!==0){var _i=180*Math.atan2($i-zt,pr-Ot)/Math.PI;0>_i&&(_i+=360),mi.push(_i)}Ot=pr,zt=$i}$t.push(mi)}if(a.graduatedIntervals===null){for(var Uo=[],fa=a.O.s,_s=fa.length,Ys=0;Ys<_s;Ys++){var Vl=fa[Ys],Us=[];if(Uo.push(Us),Vl.visible){var Oh=Vl.interval;if(!(0>Oh)){for(var ls=0;ls<_s;ls++)if(ls!==Ys){var id=fa[ls];if(id.visible&&Vl.constructor===id.constructor){var Wl=id.interval;Wl>Oh&&Us.push(Wl)}}}}}a.graduatedIntervals=Uo}var Fh=a.graduatedIntervals,tc=a.O.s,Lc=tc.length,Zu=0,ku=0,vf=yt;a.graduatedMarks=[];for(var od,Rg=0;Rg<Lc;Rg++){var Ku=tc[Rg];if(od=[],Ku.visible&&Ku!==ie){var Zl=Math.abs(Ku.interval),Im=a.graduatedTickUnit;if(!(2>Im*Zl*yt/a.graduatedRange&&Ku.graduatedSkip===null)){var _p=Ct[0][0],md=0,Iu=0;ku=yt*Ku.graduatedStart-1e-4,vf=yt*Ku.graduatedEnd+1e-4;var Yf=Im*Zl,Yu=a.graduatedTickBase;if(Yu<a.graduatedMin){var yf=(a.graduatedMin-Yu)/Yf;yf=yf%1===0?yf:Math.floor(yf+1),Yu+=yf*Yf}else Yu>a.graduatedMin+Yf&&(Yu-=Math.floor((Yu-a.graduatedMin)/Yf)*Yf);for(var pv=Fh[Rg],Dm=Yu,$y=1e-6*a.graduatedMax,Bd=1;Yu<=a.graduatedMax+$y;Bd++){e:{for(var ih=pv.length,Up=0;Up<ih;Up++){var Sf=(Yu-a.graduatedTickBase)%(pv[Up]*a.graduatedTickUnit),Mg=1e-6*a.graduatedTickUnit;if(Sf<Mg&&Sf>-Mg){var bf=!1;break e}}bf=!0}if(bf&&(Yu>a.graduatedMax&&(Yu=a.graduatedMax),Ku.graduatedSkip===null||Ku instanceof Sa&&!Ku.graduatedSkip(Yu,Ku)||Ku instanceof oo&&!Ku.graduatedSkip(Yu,Ku))&&(Zu=(Yu-a.graduatedMin)*yt/a.graduatedRange,Zu>yt&&(Zu=yt),ku<=Zu&&Zu<=vf)){for(var _d=$t[md][Iu],Bh=Ct[md][Iu];md<Ct.length;){for(;Zu>_p&&Iu<Ct[md].length-1;)Iu++,_d=$t[md][Iu],Bh=Ct[md][Iu],_p+=Bh;if(Zu<=_p)break;md++,Iu=0,_d=$t[md][Iu],Bh=Ct[md][Iu],_p+=Bh}var Du=qe[md],vd=Du[2*Iu],gv=Du[2*Iu+1],oh=(Zu-(_p-Bh))/Bh,Og=new it(vd+(Du[2*Iu+2]-vd)*oh+ze/2-Me.bounds.x,gv+(Du[2*Iu+3]-gv)*oh+ze/2-Me.bounds.y);Og.scale(ie.scale,ie.scale);e:{var ad=_d,Xf=$t[md];if(!(.5005>oh&&.4995<oh)){var yd=ad;if(.5>oh?0<Iu?yd=Xf[Iu-1]:en.$(Du[0],Du[Du.length-2])&&en.$(Du[1],Du[Du.length-1])&&(yd=Xf[Xf.length-1]):.5<oh&&(Iu+1<Xf.length?yd=Xf[Iu+1]:en.$(Du[0],Du[Du.length-2])&&en.$(Du[1],Du[Du.length-1])&&(yd=Xf[0])),ad!==yd){var Hp=Math.abs(ad-yd);if(180<Hp&&(ad<yd?ad+=360:yd+=360,Hp=Math.abs(ad-yd)),5e-4>oh||.9995<oh){_d=(ad+yd)/2%360;break e}if(10>Hp){var Fg=1-Math.abs(.5-oh);_d=(ad*Fg+yd*(1-Fg))%360;break e}}}_d=ad}if(Ku instanceof Sa){var Kc="";Ku.graduatedFunction!==null?(Kc=Ku.graduatedFunction(Yu,Ku),Kc=Kc!=null?Kc.toString():""):Kc=(+Yu.toFixed(2)).toString(),Kc!==""&&od.push({$l:Og,angle:_d,text:Kc})}else od.push({$l:Og,angle:_d})}Yu=Dm+Bd*Yf}}}a.graduatedMarks.push(od)}kr($t);var rl=a.graduatedMarks;if(rl!==null)for(var Rm=E.length,uu=0;uu<Rm;uu++){var us=E[uu],cu=rl[uu];if(us.visible&&us!==ie&&cu.length!==0){if(us instanceof oo){var ah=a,_h=x,Qf=us.alignmentFocus;Qf.Mc()&&(Qf=Io);var eS=us.angle;us.Kb=0,us.measure(1/0,1/0,0,0),us.Kb=eS;var mv=us.measuredBounds,Bg=mv.width,Jf=mv.height,zp=An.allocAt(0,0,Bg,Jf),Ru=it.alloc();Ru.xi(zp,Qf),An.free(zp);for(var sh=-Ru.x,sd=-Ru.y,vc=new An,Ef=cu.length,_g=0;_g<Ef;_g++)for(var xf=cu[_g],vv=xf.$l.x,Ug=xf.$l.y,qa=xf.angle,Yc=0;4>Yc;Yc++){switch(Yc){case 0:Ru.h(sh,sd);break;case 1:Ru.h(sh+Bg,sd);break;case 2:Ru.h(sh,sd+Jf);break;case 3:Ru.h(sh+Bg,sd+Jf)}Ru.rotate(qa+us.angle),Ru.offset(vv,Ug),_g===0&&Yc===0?vc.h(Ru.x,Ru.y,0,0):vc.Ye(Ru),Ru.offset(-vv,-Ug),Ru.rotate(-qa-us.angle)}it.free(Ru),ah.graduatedBounds!==null&&ah.graduatedBounds.push(vc),vo(_h,vc.x,vc.y,vc.width,vc.height)}else if(us instanceof Sa){var kc=a,yv=x;kc.temporaryTextBlock===null&&(kc.temporaryTextBlock=new Sa);var Xu=kc.temporaryTextBlock;CS(Xu,us);var Uh=us.alignmentFocus;Uh.Mc()&&(Uh=Io);for(var Ic=us.segmentOrientation,Hg=us.segmentOffset,wf=new An,Mm=0,zg=0,Sd=0,qf=0,Cf=0,Gg=cu.length,Hh=0;Hh<Gg;Hh++){var Ud=cu[Hh];Mm=Ud.$l.x,zg=Ud.$l.y,Sd=Ud.angle,Cf=qf=us.angle,Ic!==iu&&(Cf=Ic===rm||Ic===P0?Sd+us.angle:Sd,qf=Hr.computeAngle(Ic,Cf)),Xu.Kb=qf,Xu.text=Ud.text||"",Xu.measure(1/0,1/0,0,0);var zh=Xu.measuredBounds,lh=Xu.naturalBounds,Gh=lh.width,$f=lh.height,ld=Ri.alloc();ld.reset(),ld.translate(-zh.x,-zh.y),ld.scale(Xu.scale,Xu.scale),ld.rotate(Cf,Gh/2,$f/2),Ic!==im&&Ic!==am||ld.rotate(90,Gh/2,$f/2),Ic!==om&&Ic!==sm||ld.rotate(-90,Gh/2,$f/2),Ic===T0&&(45<Sd&&135>Sd||225<Sd&&315>Sd)&&ld.rotate(-Sd,Gh/2,$f/2);var Gp=An.allocAt(0,0,Gh,$f),jh=it.alloc();jh.xi(Gp,Uh),ld.Ga(jh);var jp=-jh.x,tS=-jh.y,uh=it.alloc();uh.assign(Hg),isNaN(uh.x)&&(uh.x=Gh/2+3),isNaN(uh.y)&&(uh.y=-($f/2+3)),uh.rotate(Sd),Mm+=uh.x+jp,zg+=uh.y+tS;var ep=new An(Mm,zg,zh.width,zh.height),Om=new An(zh.x,zh.y,zh.width,zh.height),nS=new An(lh.x,lh.y,lh.width,lh.height);Ud.Sz=qf,Ud.lineCount=Xu.lineCount,Ud.lines=[Xu.Cb,Xu.Ih,Xu.df,Xu.Le,Xu.Qc,Xu.Qb,Xu.ze],Ud.actualBounds=ep,Ud.measuredBounds=Om,Ud.naturalBounds=nS,Hh===0?wf.assign(ep):wf.ed(ep),it.free(uh),it.free(jh),An.free(Gp),Ri.free(ld)}kc.graduatedBounds!==null&&kc.graduatedBounds.push(wf),vo(yv,wf.x,wf.y,wf.width,wf.height)}Ft(us,!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 Le=se[Se],Me=de[Se],ze=Me.length;if(Le.visible&&Le!==z&&Me.length!==0){if(Le instanceof oo){if(!(2>a.graduatedTickUnit*Le.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&Le.graduatedSkip===null)){var qe=Le.measuredBounds,Ct=Le.strokeWidth*Le.scale,yt=Le.alignmentFocus;yt.Mc()&&(yt=Io);for(var Dt=0;Dt<ze;Dt++){var Ot=Me[Dt].$l,zt=Me[Dt].angle,$t=yt,In=Le.Ab;In.reset(),In.translate(Ot.x+ie.x,Ot.y+ie.y),In.rotate(zt+Le.angle,0,0),In.translate(-qe.width*$t.x+$t.offsetX+Ct/2,-qe.height*$t.y+$t.offsetY+Ct/2),In.scale(Le.scale,Le.scale),ut(Le,!1),Le.wh.set(Le.Ab),Le.Kk=Le.scale,At(Le,!1),Le.gc(y,b),x&&(a.svg.appendChild(Le.svg),Le.svg=null),Le.Ab.reset()}}}else if(Le instanceof Sa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Sa),qe=a.temporaryTextBlock,CS(qe,Le),Ct=0;Ct<ze;Ct++)yt=Me[Ct],yt.actualBounds&&yt.measuredBounds&&yt.naturalBounds&&(qe.ec=yt.text||"",qe.Kb=yt.Sz||0,qe.Gc=yt.lineCount||0,Dt=yt.lines,Dt!==void 0&&(qe.Cb=Dt[0],qe.Ih=Dt[1],qe.df=Dt[2],qe.Le=Dt[3],qe.Qc=Dt[4],qe.Qb=Dt[5],qe.ze=Dt[6]),yt.naturalBounds&&(qe.dc=yt.naturalBounds),yt.actualBounds&&(Dt=yt.actualBounds,qe.arrange(Dt.x,Dt.y,Dt.width,Dt.height)),Dt=yt.actualBounds,qe.arrange(Dt.x,Dt.y,Dt.width,Dt.height),Ot=yt.measuredBounds,yt=yt.naturalBounds,zt=qe.Ab,zt.reset(),zt.translate(Dt.x+ie.x,Dt.y+ie.y),zt.translate(-Ot.x,-Ot.y),qe.no(zt,yt.x,yt.y,yt.width,yt.height),ut(qe,!1),qe.wh.set(qe.Ab),qe.Kk=qe.scale,At(qe,!1),qe.Ng=Le.part,qe.Me=Le.panel,qe.gc(y,b),qe.Me=null,qe.Ng=null,x&&(a.svg.appendChild(qe.svg),qe.svg=null))}}b.$i=E,y.restore(),y.Vc(!0)};function Ar(a,y){if(on.call(this),this.na=null,a===void 0)this.na=Ar.Position;else if(typeof a=="string"){var b=zc.I(a);b!==null&&(this.na=b)}else a instanceof As?this.na=a:a&&(this.na=Ar.Position,y=a);this.na===null&&Lt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Ar.Grid?1048576:0),this.O=new qn,this.yb=ts,this.Tm=ns,this.Uf=Ji,this.$g=null,this.$e="",this.jg=new An(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=yi,this.jn=Si,this.kn=Or,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Sn(Ar,on),Ar.prototype.cloneProtected=function(a){on.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},Ar.prototype.Af=function(a){on.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},Ar.prototype.copy=function(){var a=on.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 qr&&(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},_e=Ar.prototype,_e.toString=function(){return"Panel("+this.type.name+")#"+Oi(this)},_e.Pn=function(a){on.prototype.Pn.call(this,a);for(var y=this.O.s,b=y.length,E=0;E<b;E++)y[E].Pn(a)},_e.hh=function(a,y){if(this.na===Ar.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Ar.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Ar.Table)if(a.yc(),a instanceof Go){var b=a.yd;a.yd=Uc(a,"gojs-ts"),Av(this,a),a.nh.pop(),a.yd=b}else Av(this,a);(b=this.isClipping&&this.na===Ar.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){Ba(a,y,Se,!1,!1,ne,z),Se=!1;var Le=de.separatorDashArray;Le===null&&(Le=b?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Le!==null&&(Se=!0,y.js(Le,0)),y.beginPath(),Le=de.position+pe,b?Le>ne.height&&(pe-=Le-ne.height):Le>ne.width&&(pe-=Le-ne.width),de=de.position+pe/2,y.lineWidth=pe,pe=a.yb,b?(de+=pe.top,Le=ne.width-pe.right,y.moveTo(pe.left,de),y.lineTo(Le,de)):(de+=pe.left,Le=ne.height-pe.bottom,y.moveTo(de,pe.top),y.lineTo(de,Le)),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 Le=b?ne.height:ne.width;if(!(Se.position>Le)){var Me=Se.Wc(),ze=Se.separatorStrokeWidth;isNaN(ze)&&(ze=b?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var qe=Se.separatorStroke;qe===null&&(qe=b?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(qe===null||Se.index===(b?se:de))&&(ze=0),Me-=ze,ze=Se.position+ze,Me+=Se.actual,ze+Me>Le&&(Me=Le-ze),0>=Me||(Le=a.yb,Ba(a,y,Se.background,!0,!1,ie,ne),b?y.fillRect(Le.left,ze+Le.top,ne.width-(Le.left+Le.right),Me):y.fillRect(ze+Le.left,Le.top,Me,ne.height-(Le.top+Le.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"}_e.lv=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].lv();this.Uc=!0},_e.kk=function(a,y,b){if(!on.prototype.kk.call(this,a,y,b))return!1;if(this.type===Ar.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===Ar.Grid||this.na===Ar.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},_e.nk=function(){return!0},_e.$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 on.prototype.$o.call(this,a,y,b,E)},_e.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,Le=ie*(ne.m21*ne.dy-ne.m22*ne.dx),Me=ie*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,en.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,b,E,x);if(this.background!==null)return z=a*se+y*pe+Le,ie=a*de+y*Se+Me,a=b*se+E*pe+Le,se=b*de+E*Se+Me,x.h(0,0),b=this.naturalBounds,z=en.Ff(0,0,b.width,b.height,z,ie,a,se,x),x.transform(ne),z;z||(se=1,pe=de=0,Se=1,Me=Le=0),ie=a*se+y*pe+Le,a=a*de+y*Se+Me,se=b*se+E*pe+Le,b=b*de+E*Se+Me,x.h(se,b),E=(se-ie)*(se-ie)+(b-a)*(b-a),de=!1,Se=this.O.s,Me=Se.length,pe=it.alloc(),Le=null,y=1/0;var ze=null,qe=this.isClipping&&this.na===Ar.Spot;qe&&(ze=it.alloc(),Le=this.Pb(),(de=Le.Sj(ie,a,se,b,ze))&&(y=(ie-ze.x)*(ie-ze.x)+(a-ze.y)*(a-ze.y)));for(var Ct=0;Ct<Me;Ct++){var yt=Se[Ct];yt.visible&&yt!==Le&&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 qe&&(y>E&&x.set(ze),it.free(ze)),it.free(pe),z&&x.transform(ne),de},_e.Gj=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Gj();on.prototype.Gj.call(this)},_e.v=function(a){if(!Nt(this)){on.prototype.v.call(this,a),a=null,(this.na===Ar.Auto||this.na===Ar.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=jl(x,!1);(x instanceof ru||x instanceof Ar||x instanceof Sa||z!==vr)&&x.v(!0)}}}},_e.Uj=function(){if(!Nt(this)){Ft(this,!0),Bn(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Uj()}},_e.Uk=function(){if(!(this.l&2048)){ut(this,!0),At(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()}},_e.Wu=function(){At(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()},_e.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),ko(x,a,se),ko(this.naturalBounds,a,se),this.Ge(0,0,a,se)},_e.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 th(a){return a.part!==null?a.part.locationObject:null}_e.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=jl(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=vr),a){case vr:(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 xi:this.v(!0),this.measure(b+ie,z+ne,0,0);break;case Li:this.v(!0),this.measure(y+ie,E+ne,0,0)}}this.na.arrange(this,x,this.jg)}},_e.gh=function(a){var y=this.naturalBounds,b=th(this);if(ia(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,x=it.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===b)&&(xn(x.set(a),z.transform),z.ca(x)))return it.free(x),!0}return it.free(x),!(this.Ma===null&&this.areaBackground===null)}return!1},_e.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},_e.qm=function(a,y){if(y(this,a),a instanceof Ar){a=a.O.s;for(var b=a.length,E=0;E<b;E++)this.qm(a[E],y)}};function Hf(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 Ar&&hS(a,z,b)}}function aE(a,y){fS(a,a,y)}function fS(a,y,b){if(b(y),y instanceof Ar){y=y.O.s;for(var E=y.length,x=0;x<E;x++)fS(a,y[x],b)}}_e.Nl=function(a){return pS(this,this,a)};function pS(a,y,b){if(b(y))return y;if(y instanceof Ar){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}_e.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 Ar){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 Ar?b=Math.max(b,gS(x)):x instanceof oo&&(b=Math.max(b,x.ig/2*x.strokeMiterLimit*x.Df()))}return b}_e.se=function(){return!(this.type===Ar.TableRow||this.type===Ar.TableColumn)};function Ph(a){return a.type===Ar.TableRow||a.type===Ar.TableColumn}_e.ic=function(a,y,b){if(this.pickable===!1||(y===void 0&&(y=null),b===void 0&&(b=null),Kt(this)))return null;var E=this.naturalBounds,x=1/this.Df(),z=this.se(),ne=z?a:xn(it.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=it.alloc(),de=(se=this.isClipping&&this.na===Ar.Spot)?this.Pb():null,se&&(de.se()?xn(ie.set(a),de.transform):ie.set(a),!de.ca(ie)))return it.free(ie),z||it.free(ne),null;for(var Se=th(this);pe--;){var Le=x[pe];if((Le.visible||Le===Se)&&(Le.se()?xn(ie.set(a),Le.transform):ie.set(a),!se||Le!==de)){var Me=null;if(Le instanceof Ar?Me=Le.ic(ie,y,b):Le.pickable===!0&&Le.ca(ie)&&(Me=Le),Me!==null&&(y!==null&&(Me=y(Me)),Me!==null&&(b===null||b(Me))))return it.free(ie),z||it.free(ne),Me}}it.free(ie)}return this.background===null&&this.areaBackground===null?(z||it.free(ne),null):(a=ia(0,0,E.width,E.height,ne.x,ne.y)?this:null,z||it.free(ne),a)}return z||it.free(ne),null},_e.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:xn(it.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=it.alloc(),pe=th(this);se--;){var Se=ie[se];if(Se.visible||Se===pe){Se.se()?xn(de.set(a),Se.transform):de.set(a);var Le=Se;Se=Se instanceof Ar?Se:null,(Se!==null?Se.ji(de,y,b,E):Le.ca(de))&&Le.pickable!==!1&&(y!==null&&(Le=y(Le)),Le===null||b!==null&&!b(Le)||E.add(Le))}}it.free(de)}return z||it.free(ne),x&&(this.background!==null||this.areaBackground!==null)}return z||it.free(ne),!1},_e.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=Ri.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Ri.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var ie=th(this),se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===ie){var Se=pe.actualBounds,Le=this.naturalBounds;Se.x>Le.width||Se.y>Le.height||0>Se.x+Se.width||0>Se.y+Se.height||(Se=pe,pe=pe instanceof Ar?pe:null,Le=Ri.alloc(),Le.set(ne),(pe!==null?pe.Cf(a,y,b,E,x,Le):Ts(Se,a,E,Le))&&(y!==null&&(Se=y(Se)),Se===null||b!==null&&!b(Se)||x.add(Se)),Ri.free(Le))}}return z===void 0&&Ri.free(ne),E}return z===void 0&&Ri.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 Ar&&Lv(ne,y,b,E),y!==null&&(ne=y(ne)),ne===null||b!==null&&!b(ne)||E.add(ne))}}}_e.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:xn(it.allocAt(a.x,a.y),this.transform),de=ie?y:xn(it.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||Hn(se.x,se.y,0,0,0,ne.height)<=pe||Hn(se.x,se.y,0,ne.height,ne.width,ne.height)<=pe||Hn(se.x,se.y,ne.width,ne.height,ne.width,0)<=pe||Hn(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||(it.free(se),it.free(de)),Se){if(!this.isAtomic){se=it.alloc(),de=it.alloc(),pe=th(this);for(var Le=this.O.s,Me=Le.length;Me--;){var ze=Le[Me];if(ze.visible||ze===pe){var qe=ze.actualBounds,Ct=this.naturalBounds;(!ie||!(qe.x>Ct.width||qe.y>Ct.height||0>qe.x+qe.width||0>qe.y+qe.height))&&(ze.se()?(qe=ze.transform,xn(se.set(a),qe),xn(de.set(y),qe)):(se.set(a),de.set(y)),qe=ze,ze=ze instanceof Ar?ze:null,(ze!==null?ze.og(se,de,b,E,x,z):qe.tx(se,de,x))&&(b!==null&&(qe=b(qe)),qe===null||E!==null&&!E(qe)||z.add(qe)))}}it.free(se),it.free(de)}return x?Se:ne}return!1};function kv(a){var y=null;return a instanceof oo&&(y=a.spot1,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ho),y}function Iv(a){var y=null;return a instanceof oo&&(y=a.spot2,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Fo),y}_e.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},_e.M=function(a){return this.O.M(a)},_e.Gb=function(a,y){y instanceof Pi&&Lt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Lt("Cannot make a Panel contain itself: "+this.toString()),Lt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var b=y.panel;if(b!==null&&b!==this&&Lt("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!==Ar.Grid||y instanceof oo||Lt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Ar.Graduated||y instanceof oo||y instanceof Sa||Lt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new wn),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 Lt("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),Nt(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ar&&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 qr&&(b.Te=!0),b.Te&&b instanceof qr&&(b.wc=null),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||(E!==-1&&b.cb(La,"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}_e.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)},_e.mb=function(a){0<=a&&this.pc(a,!0)},_e.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),Ft(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 qr&&(E instanceof Ar?E.qm(E,function(ne,ie){ty(z,ie,y)}):ty(z,E,y)),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||z.cb(La,"elements",this,E,null,a,null))},_e.Fb=function(a){0>a&&Nr(a,">= 0",Ar,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var b=new vs;b.wi(this),b.isRow=!0,b.index=a,y[a]=b,this.cb(Ta,"rowdefs",this,null,b,null,a)}return y[a]},_e.oA=function(a){if(0>a&&Nr(a,">= 0",Ar,"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(La,"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 vs?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}_e.Eb=function(a){0>a&&Nr(a,">= 0",Ar,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var b=new vs;b.wi(this),b.isRow=!1,b.index=a,y[a]=b,this.cb(Ta,"coldefs",this,null,b,null,a)}return y[a]},_e.jA=function(a){if(0>a&&Nr(a,">= 0",Ar,"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(La,"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 vs?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}_e.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},_e.Hy=function(a,y){return(a=this.Fb(a))&&e0(a,new vs(y)),this},_e.By=function(a,y){return(a=this.Eb(a))&&e0(a,new vs(y)),this},_e.nz=function(a){if(0>a||this.type!==Ar.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},_e.fz=function(a){if(0>a||this.type!==Ar.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},_e.Fz=function(a,y){if(y===void 0&&(y=new it(NaN,NaN)),this.type!==Ar.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)},_e.Gz=function(a){if(this.type!==Ar.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 Tc(a){var y=a.allBindings;if(y===null)a.data!==null&&Lt("Template cannot have .data be non-null: "+a),a.allBindings=y=new qn;else if(y._isFrozen)return;var b=new qn;Dv(a,!1),a.qm(a,function(de,pe){pe.th();var Se=pe.localBindings;if(Se!==null)for(We(pe,!1),Se=Se.iterator;Se.next();){var Le=Se.value;Le.mode===gm&&We(pe,!0);var Me=Le.sourceName;Me!==null&&(Me==="/"&&Dv(de,!0),Me=R1(Le,de,pe),Me!==null&&(b.add(Me),Me.srcBindings===null&&(Me.srcBindings=new qn),Me.srcBindings.add(Le))),y.add(Le)}if(pe instanceof Ar&&pe.type===Ar.Table){if(0<pe.rowCount){for(de=pe.rowDefs,Se=de.length,Le=0;Le<Se;Le++)if(Me=de[Le],Me!==void 0&&Me.be!==null)for(var ze=Me.be.iterator;ze.next();){var qe=ze.value;qe.xd=Me,qe.to=2,qe.wl=Me.index,y.add(qe)}}if(0<pe.columnCount){for(pe=pe.colDefs,de=pe.length,Se=0;Se<de;Se++)if(Le=pe[Se],Le!==void 0&&Le.be!==null)for(Me=Le.be.iterator;Me.next();)ze=Me.value,ze.xd=Le,ze.to=1,ze.wl=Le.index,y.add(ze)}}});for(var E=b.iterator;E.next();){var x=E.value;if(x.srcBindings!==null){We(x,!0);for(var z=x.srcBindings.iterator;z.next();){var ne=z.value;x.localBindings===null&&(x.localBindings=new qn),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 Ar&&(ne=ie.substring(0,se),ie=ie.substr(se+1),se=z.fb(ne),se!==null?(z=se,x.targetProperty=ie):Er('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+x.toString())),z instanceof vs?(ne=Oi(z.panel),x.Ai=ne===void 0?-1:ne,z.panel.bindingId=x.Ai):z instanceof on?(ne=Oi(z),x.Ai=ne===void 0?-1:ne,z.bindingId=x.Ai):Lt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Pi&&a.Zc()&&a.Va()}_e.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return aE(y,function(b){b instanceof Ar&&(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&&Tc(y),y},_e.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 Ar))continue;x===1?z=z.Eb(b.wl):x===2&&(z=z.Fb(b.wl))}z!==void 0&&b.Mv(z,E)}}},_e.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 Ar&&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 Ar)||z.data!==y[ne])return!0;x++,ne++}return!1}function Kg(a){if(a.type===Ar.Spot||a.type===Ar.Auto)return Math.min(a.O.length,1);if(a.type===Ar.Link){a=a.O;for(var y=a.length,b=0;b<y;b++){var E=a.M(b);if(!(E instanceof oo&&E.isPanelMain))break}return b}return a.type===Ar.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Ar&&Ph(a))?1:0}_e.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 Ar){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),Nt(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 qr&&(y.Te=!0),y.Te&&y instanceof qr&&(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(Tc(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 wn),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 Ar){var x=y,z=b;E.type===Ar.TableRow?E.row=x:E.type===Ar.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=as(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Lt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function 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,Er('No item template Panel found for category "'+y+'" on '+a),Er(" Using default item template."),a=new Ar,y=new Sa,y.bind(new ss("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 Ar){y=y.O.s,E=y.length;for(var x=0;x<E;x++){var z=y[x];b&&z instanceof Ar&&!z.isEnabled||$m(a,z,b)}}}function pd(a,y){y.name=a,zc.add(a,y)}$n.Object.defineProperties(Ar.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Ar.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&&Nr(a,">= 0",Ar,"padding"),a=new to(a)):(0>a.left&&Nr(a.left,">= 0",Ar,"padding:value.left"),0>a.right&&Nr(a.right,">= 0",Ar,"padding:value.right"),0>a.top&&Nr(a.top,">= 0",Ar,"padding:value.top"),0>a.bottom&&Nr(a.bottom,">= 0",Ar,"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:ts},set:function(a){typeof a=="number"&&(a=new to(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new fc),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 _o)&&(a instanceof _o&&a.freeze(),this.T===null&&(this.T=new fc),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 fc),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)||Lt("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 fc),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 _o)&&(a instanceof _o&&a.freeze(),this.T===null&&(this.T=new fc),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 fc),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)||Lt("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 fc),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 fc),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||Lt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Ec(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()||Lt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Ec(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 nh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Ne(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 nh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Ne(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 nh),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 nh),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 nh,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 nh,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 nh,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 nh,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 fc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new fc),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 fc),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 fc),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)&&Lt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new fc),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)&&Lt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new fc),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 Pi&&!(this instanceof Mo);Tc(this),this.ub=a;var E=this.diagram;E!==null&&(b?(b=E.partManager,this instanceof Hr?(y!==null&&b.bf.remove(y),a!==null&&b.bf.add(a,this)):this instanceof Pi&&(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 Ki),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 wn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Pi||a.isPanelMain)&&Lt("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(););uo(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&&(uo(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 no&&(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))}}}),$n.Object.defineProperties(Ar,{Position:{get:function(){return zc.I("Position")}},Horizontal:{get:function(){return zc.I("Horizontal")}},Vertical:{get:function(){return zc.I("Vertical")}},Spot:{get:function(){return zc.I("Spot")}},Auto:{get:function(){return zc.I("Auto")}},Table:{get:function(){return zc.I("Table")}},Viewbox:{get:function(){return zc.I("Viewbox")}},TableRow:{get:function(){return zc.I("TableRow")}},TableColumn:{get:function(){return zc.I("TableColumn")}},Link:{get:function(){return zc.I("Link")}},Grid:{get:function(){return zc.I("Grid")}},Graduated:{get:function(){return zc.I("Graduated")}}}),Ar.prototype.rebuildItemElements=Ar.prototype.mv,Ar.prototype.findItemPanelForData=Ar.prototype.sx,Ar.prototype.updateTargetBindings=Ar.prototype.La,Ar.prototype.copyTemplate=Ar.prototype.Uy,Ar.prototype.graduatedValueForPoint=Ar.prototype.Gz,Ar.prototype.graduatedPointForValue=Ar.prototype.Fz,Ar.prototype.findColumnForLocalX=Ar.prototype.fz,Ar.prototype.findRowForLocalY=Ar.prototype.nz,Ar.prototype.addColumnDefinition=Ar.prototype.By,Ar.prototype.addRowDefinition=Ar.prototype.Hy,Ar.prototype.addRowColumnDefinition=Ar.prototype.Gy,Ar.prototype.removeColumnDefinition=Ar.prototype.jA,Ar.prototype.getColumnDefinition=Ar.prototype.Eb,Ar.prototype.removeRowDefinition=Ar.prototype.oA,Ar.prototype.getRowDefinition=Ar.prototype.Fb,Ar.prototype.removeAt=Ar.prototype.mb,Ar.prototype.remove=Ar.prototype.remove,Ar.prototype.insertAt=Ar.prototype.Gb,Ar.prototype.elt=Ar.prototype.M,Ar.prototype.add=Ar.prototype.add,Ar.prototype.findObject=Ar.prototype.fb,Ar.prototype.findInVisualTree=Ar.prototype.Nl,Ar.prototype.walkVisualTreeFrom=Ar.prototype.qm,Ar.prototype.findMainElement=Ar.prototype.Pb;var bS=!1,ES=null,zc=new wn;Ar.className="Panel",Ar.definePanelLayout=pd,pd("Position",new Hm),pd("Vertical",new Gm),pd("Auto",new Vm),pd("Link",new Qm);function nh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}nh.prototype.copy=function(){var a=new nh;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},nh.className="GradPanelSettings";function fc(){this.Pc=[],this.Oc=[],this.j=this.ob=n0,this.hb=this.Hb=0,this.Qp=ts,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}fc.prototype.copy=function(a){for(var y=new fc,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},fc.className="TablePanelSettings";function vs(a){vi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ns,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))}vs.prototype.copy=function(){var a=new vs;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=Xr(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=Xr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}_e=vs.prototype,_e.qb=function(a){a.classType===vs&&(this.sizing=a)},_e.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Oi(this)},_e.wi=function(a){this.Me=a},_e.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)},_e.Wc=function(){var a=0,y=this.Me,b=0,E=this.isRow;if(y!==null&&y.type===Ar.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)},_e.Ob=function(a,y,b){var E=this.Me;if(E!==null&&(E.cb(oa,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}_e.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new ss(a,y,b,E):x=a,x.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&yS(y)&&Lt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+x+" on "+a)),this.be===null&&(this.be=new qn),this.be.add(x),this},$n.Object.defineProperties(vs.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&&Nr(a,">= 0",vs,"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&&Nr(a,">= 0",vs,"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))&&Nr(a,">= 0",vs,"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&&Nr(a,">= 0",vs,"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 to(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&&xh(a,"RowColumnDefinition.separatorStroke"),a instanceof _o&&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)||Lt("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&&xh(a,"RowColumnDefinition.background"),a instanceof _o&&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}}}),vs.prototype.computeEffectiveSpacing=vs.prototype.Wc,vs.prototype.computeEffectiveSpacingTop=vs.prototype.Io;var Fv=new mn(vs,"Default",0),Yg=new mn(vs,"None",1),n0=new mn(vs,"ProportionalExtra",2);vs.className="RowColumnDefinition",vs.Default=Fv,vs.None=Yg,vs.ProportionalExtra=n0;function oo(a,y){on.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)}Sn(oo,on),oo.prototype.cloneProtected=function(a){on.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=Xr(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 zf(a){a.Na===null?a.Na=new Uv:a.Na.nc&&(a.Na=a.Na.copy())}_e=oo.prototype,_e.th=function(){on.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},_e.qb=function(a){a===vr||a===yi||a===yo||a===Ji?this.geometryStretch=a:on.prototype.qb.call(this,a)},_e.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Oi(this)};function dg(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,Le,Me,ze,qe=0,Ct=Rr(),yt=2;yt<x;yt+=2)de=b[yt],pe=b[yt+1],Se=de-ie,ie=pe-se,Se===0&&(Se=.001),Le=ie/Se,Me=Math.atan2(ie,Se),ze=Math.sqrt(Se*Se+ie*ie),Ct.push([Se,Me,Le,ze]),qe+=ze,ie=de,se=pe;ie=b[0],se=b[1],Se=E.measuredBounds.width,E instanceof oo&&(Se-=E.strokeWidth),1>Se&&(Se=1),x=b=Se,de=ne/2,pe=de!==0,yt=0,ze=Ct[yt],Se=ze[0],Me=ze[1],Le=ze[2],ze=ze[3];for(var Dt=0;.1<=qe;){if(Dt===0&&(pe?(x=b,x-=de,qe-=de,pe=!1):x=b,x===0&&(x=1)),x>qe){kr(Ct);return}x>ze?(Dt=x-ze,x=ze):Dt=0;var Ot=Math.sqrt(x*x/(1+Le*Le));if(0>Se&&(Ot=-Ot),ie+=Ot,se+=Le*Ot,a.translate(ie,se),a.rotate(Me),a.translate(-(ne/2),-(z/2)),Dt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Me),a.translate(-ie,-se),qe-=x,ze-=x,Dt!==0){if(yt++,yt===Ct.length){kr(Ct);return}ze=Ct[yt],Se=ze[0],Me=ze[1],Le=ze[2],ze=ze[3],x=Dt}}kr(Ct)}}_e.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&&Ba(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===Ar.Link&&ie instanceof Mo&&ie.category==="Selection"&&ie.adornedObject instanceof oo&&ie.adornedPart.Pb()===ie.adornedObject?ie.adornedObject.strokeWidth:0),se===0&&(b=null),b!==null&&se!==0&&(Ba(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===Ir.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===Ir.u){var de=x.startX;se=x.startY;var pe=x.endX,Se=x.endY;x=Math.min(de,pe);var Le=Math.min(se,Se);de=Math.abs(pe-de),se=Math.abs(Se-se),a.beginPath(),a.rect(x,Le,de,se),E!==null&&a.ng(E),b!==null&&(ie&&z&&Zs(a),a.jk(),ie&&z&&Nu(a)),a.Se()}else if(x.type===Ir.F)de=x.startX,se=x.startY,pe=x.endX,Se=x.endY,x=Math.abs(pe-de)/2,Le=Math.abs(Se-se)/2,de=Math.min(de,pe)+x,se=Math.min(se,Se)+Le,a.beginPath(),a.moveTo(de,se-Le),a.bezierCurveTo(de+en.wg*x,se-Le,de+x,se-en.wg*Le,de+x,se),a.bezierCurveTo(de+x,se+en.wg*Le,de+en.wg*x,se+Le,de,se+Le),a.bezierCurveTo(de-en.wg*x,se+Le,de-x,se+en.wg*Le,de-x,se),a.bezierCurveTo(de-x,se-en.wg*Le,de-en.wg*x,se-Le,de,se-Le),a.closePath(),E!==null&&a.ng(E),b!==null&&(ie&&z&&Zs(a),a.jk(),ie&&z&&Nu(a)),a.Se();else if(x.type===Ir.o)for(x=x.figures,se=x.length,Le=0;Le<se;Le++){de=x.s[Le],a.beginPath(),a.moveTo(de.startX,de.startY),pe=de.segments.s,Se=pe.length;for(var Me=null,ze=0;ze<Se;ze++){var qe=pe[ze];switch(qe.type){case ua:a.moveTo(qe.endX,qe.endY);break;case Zo:a.lineTo(qe.endX,qe.endY);break;case Ya:a.bezierCurveTo(qe.point1X,qe.point1Y,qe.point2X,qe.point2Y,qe.endX,qe.endY);break;case cl:a.quadraticCurveTo(qe.point1X,qe.point1Y,qe.endX,qe.endY);break;case Ia:if(qe.radiusX===qe.radiusY){var Ct=Math.PI/180;a.arc(qe.point1X,qe.point1Y,qe.radiusX,qe.startAngle*Ct,(qe.startAngle+qe.sweepAngle)*Ct,0>qe.sweepAngle,Me!==null?Me.endX:de.startX,Me!==null?Me.endY:de.startY)}else if(Me=bs(qe,de),Ct=Me.length,Ct===0)a.lineTo(qe.centerX,qe.centerY);else for(var yt=0;yt<Ct;yt++){var Dt=Me[yt];yt===0&&a.lineTo(Dt[0],Dt[1]),a.bezierCurveTo(Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7])}break;case Sl:if(yt=Ct=0,Me!==null&&Me.type===Ia){if(Me=bs(Me,de),Dt=Me.length,Dt===0){a.lineTo(qe.endX,qe.endY);break}Me=Me[Dt-1]||null,Me!==null&&(Ct=Me[6],yt=Me[7])}else Ct=Me!==null?Me.endX:de.startX,yt=Me!==null?Me.endY:de.startY;if(Me=Js(qe,de,Ct,yt),Ct=Me.length,Ct===0){a.lineTo(qe.endX,qe.endY);break}for(yt=0;yt<Ct;yt++)Dt=Me[yt],a.bezierCurveTo(Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7]);break;default:Lt("Segment not of valid type: "+qe.type)}qe.isClosed&&a.closePath(),Me=qe}pe=de.isFilled,z?de.isShadowed?(pe===!0&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&(pe&&ie&&Zs(a),a.jk(),pe&&ie&&Nu(a))):(Zs(a),pe&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk(),Nu(a)):(pe&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk()),a.Se(Le)}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=Rr(),z.type===Ir.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),dg(a,y,E,b);else if(z.type===Ir.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,Le=x,de=ie.segments.s,pe=de.length,Se=0;Se<pe;Se++){switch(ze=de[Se],ze.type){case ua:dg(a,y,E,b),E.length=0,E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY,se=ne,Le=x;break;case Zo:E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY;break;case Ya:en.Qe(ne,x,ze.point1X,ze.point1Y,ze.point2X,ze.point2Y,ze.endX,ze.endY,.5,E),ne=ze.endX,x=ze.endY;break;case cl:en.ep(ne,x,ze.point1X,ze.point1Y,ze.endX,ze.endY,.5,E),ne=ze.endX,x=ze.endY;break;case Ia:if(qe=bs(ze,ie),Me=qe.length,Me===0){E.push(ze.centerX),E.push(ze.centerY),ne=ze.centerX,x=ze.centerY;break}for(Ct=0;Ct<Me;Ct++)yt=qe[Ct],en.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 Sl:if(qe=Js(ze,ie,ne,x),Me=qe.length,Me===0){E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY;break}for(Ct=0;Ct<Me;Ct++)yt=qe[Ct],en.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:Lt("Segment not of valid type: "+ze.type)}ze.isClosed&&(E.push(se),E.push(Le),dg(a,y,E,b))}dg(a,y,E,b)}else if(z.type===Ir.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),dg(a,y,E,b);else if(z.type===Ir.F){if(x=new Wa,x.startX=z.endX,x.startY=(z.startY+z.endY)/2,ne=new Eo(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=bs(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++)Le=z[se],en.Qe(ne,x,Le[2],Le[3],Le[4],Le[5],Le[6],Le[7],.5,E),ne=Le[6],x=Le[7];dg(a,y,E,b)}kr(E),a.restore(),a.Vc(!1)}}}},_e.kk=function(a,y,b){return!on.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)},_e.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:on.prototype.nk.call(this,a)},_e.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)}},_e.ga=function(a,y){if(y===void 0&&(y=new it),a instanceof fi){a.Mc()&&Lt("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},_e.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=it.allocAt(y.x,y.y).transform(b),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(b),vo(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(b),vo(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(b),vo(a,E.x,E.y,0,0),An.free(y),it.free(E),a},_e.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!==Ir.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===Ir.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),en.Yb(b.startX,b.startY,b.endX,b.endY,x,a.x,a.y));if(b.type===Ir.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===Ir.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===Ir.o)return An.free(z),this.fill===null?Al(b,a.x,a.y,x):ja(b,a,x,1<this.strokeWidth,y);Lt("Unknown Geometry type: "+b.type)},_e.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=en.Ze[ie];typeof de=="string"&&(de=en.Ze[de]),typeof de=="function"?(se=de(null,100,100),_v[ie]=se):Lt("Unsupported Figure: "+ie)}ne=se.bounds}ie=ne.width,se=ne.height,de=ne.width;var pe=ne.height;switch(jl(this,!0)){case vr:E=b=0;break;case Cr:de=Math.max(a-z,0),pe=Math.max(y-z,0);break;case xi:de=Math.max(a-z,0),E=0;break;case Li:b=0,pe=Math.max(y-z,0)}isFinite(x.width)&&(de=x.width),isFinite(x.height)&&(pe=x.height);var Se=this.maxSize,Le=this.minSize;switch(b=Math.max(b-z,Le.width),E=Math.max(E-z,Le.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 vr:break;case Cr:ie=de,se=pe;break;case yi:b=Math.min(de/ie,pe/se),isFinite(b)||(b=1),ie*=b,se*=b;break;default:Lt(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&&en.$(this.ua.Sk,a-z)&&en.$(this.ua.Rk,y-z)||(this.ua=oo.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(Le.width,de),pe=Math.max(Le.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}_e.eh=function(a,y,b,E){Cl(this,a,y,b,E)},_e.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},_e.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),Le=ne*(z.m12*z.dx-z.m11*z.dy);z=a*ie+y*de+Se,ne=a*se+y*pe+Le,ie=b*ie+E*de+Se,se=b*se+E*pe+Le,Se=this.ig/2,de=this.ua,de===null&&(this.measure(1/0,1/0),de=this.ua);var Me=de.bounds;if(pe=!1,de.type===Ir.j)if(1.5>=this.strokeWidth)pe=en.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=Rr(),a=new it,en.Ve(de.startX+E,de.startY+pe,de.endX+E,de.endY+pe,z,ne,ie,se,a)&&y.push(a),a=new it,en.Ve(de.startX-E,de.startY-pe,de.endX-E,de.endY-pe,z,ne,ie,se,a)&&y.push(a),a=new it,en.Ve(de.startX+E,de.startY+pe,de.startX-E,de.startY-pe,z,ne,ie,se,a)&&y.push(a),a=new it,en.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 kr(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);kr(y)}else if(de.type===Ir.u)pe=en.Ff(Me.x-Se,Me.y-Se,Me.x+Me.width+Se,Me.y+Me.height+Se,z,ne,ie,se,x);else if(de.type===Ir.F){y=An.allocAt(Me.x,Me.y,Me.width,Me.height).Bc(Se,Se);e:if(y.width===0)pe=en.Ve(y.x,y.y,y.x,y.y+y.height,z,ne,ie,se,x);else if(y.height===0)pe=en.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===Ir.o){Le=it.alloc();var ze=ie-z,qe=se-ne,Ct=ze*ze+qe*qe,yt=z,Dt=ne;if(0<Ct&&Me.contains(yt,Dt)&&(Le.x=yt,Le.y=Dt,this.ca(Le)))for(ze!==0&&.5>Math.abs(ze)?(qe*=.5/ze,ze=.5):qe!==0&&.5>Math.abs(qe)&&(ze*=.5/qe,qe=.5),yt-=ze,Dt-=qe;Me.contains(yt,Dt);)yt-=ze,Dt-=qe;for(x.x=ie,x.y=se,qe=0;qe<de.figures.count;qe++){var Ot=de.figures.s[qe],zt=Ot.isFilled?yt:z,$t=Ot.isFilled?Dt:ne,In=Ot.segments;Me=Ot.startX,ze=Ot.startY;for(var Jr=Me,mi=ze,ui=0;ui<In.count;ui++){var Ur=In.s[ui],pr=Ur.type,$i=Ur.endX,_i=Ur.endY,Uo=!1;switch(pr){case ua:Jr=$i,mi=_i;break;case Zo:Uo=i0(Me,ze,$i,_i,zt,$t,ie,se,Le);break;case Ya:Uo=en.Eo(Me,ze,Ur.point1X,Ur.point1Y,Ur.point2X,Ur.point2Y,$i,_i,zt,$t,ie,se,.6,Le);break;case cl:Uo=en.Eo(Me,ze,Me+2/3*(Ur.point1X-Me),ze+2/3*(Ur.point1Y-ze),$i+2/3*(Ur.point1X-$i),_i+2/3*(Ur.point1Y-_i),$i,_i,zt,$t,ie,se,.6,Le);break;case Ia:case Sl:pr=Ur.type===Ia?bs(Ur,Ot):Js(Ur,Ot,Me,ze);var fa=pr.length;if(fa===0){Uo=i0(Me,ze,Ur.type===Ia?Ur.centerX:Ur.endX,Ur.type===Ia?Ur.centerY:Ur.endY,zt,$t,ie,se,Le);break}for(_i=null,$i=0;$i<fa;$i++){if(_i=pr[$i],$i===0&&i0(Me,ze,_i[0],_i[1],zt,$t,ie,se,Le)){var _s=r0(zt,$t,Le,Ct,x);_s<Ct&&(Ct=_s,pe=!0)}en.Eo(_i[0],_i[1],_i[2],_i[3],_i[4],_i[5],_i[6],_i[7],zt,$t,ie,se,.6,Le)&&(_s=r0(zt,$t,Le,Ct,x),_s<Ct&&(Ct=_s,pe=!0))}$i=_i[6],_i=_i[7];break;default:Lt("Unknown Segment type: "+pr)}Me=$i,ze=_i,Uo&&(Uo=r0(zt,$t,Le,Ct,x),Uo<Ct&&(Ct=Uo,pe=!0)),Ur.isClosed&&($i=Jr,_i=mi,i0(Me,ze,$i,_i,zt,$t,ie,se,Le)&&(Ur=r0(zt,$t,Le,Ct,x),Ur<Ct&&(Ct=Ur,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,it.free(Le)}else Lt("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(en.$(a,b)&&en.$(y,E)||en.$(x,ne)&&en.$(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||en.$(se.y,a))&&(se.y<y||en.$(se.y,y))&&(de=!0)):(y=a<b?a:b,a=a<b?b:a,(se.x>y||en.$(se.x,y))&&(se.x<a||en.$(se.x,a))&&(de=!0)),de)}_e.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=it.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)))),it.free(z),x},_e.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var b=Ri.alloc();b.set(y),b.Vj();var E=a.left,x=a.right,z=a.top;a=a.bottom;var ne=it.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 it.free(ne),!0;var ie=it.alloc(),se=it.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,Gf(this,ne,ie,se)?y=!0:(ne.x=x,ne.y=a,ne.transform(b),Gf(this,ne,ie,se)?y=!0:(ie.x=E,ie.y=a,ie.transform(b),Gf(this,ne,ie,se)?y=!0:(ne.x=E,ne.y=z,ne.transform(b),Gf(this,ne,ie,se)&&(y=!0)))),it.free(ne),Ri.free(b),it.free(ie),it.free(se),y};function Gf(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)}_e.tx=function(a,y,b){function E(Ct,yt){for(var Dt=Ct.length,Ot=0;Ot<Dt;Ot+=2)if(yt.zd(Ct[Ot],Ct[Ot+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,pn(a.x,a.y,ie,se)<=x&&pn(a.x,a.y,de,se)<=x&&pn(a.x,a.y,ie,ne)<=x&&pn(a.x,a.y,de,ne)<=x)return!0}if(ie=y.startX,se=y.startY,de=y.endX,ne=y.endY,y.type===Ir.j){if(b=(ie-de)*(a.x-de)+(se-ne)*(a.y-ne),Hn(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===Ir.u)return y=!1,b&&(y=Hn(a.x,a.y,ie,se,ie,ne)<=x||Hn(a.x,a.y,ie,se,de,se)<=x||Hn(a.x,a.y,de,se,de,ne)<=x||Hn(a.x,a.y,ie,ne,de,ne)<=x),y;if(y.type===Ir.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 Hn(a.x,a.y,ie,se,de,ne)<=x;if(b){if(a=en.$y(pe,Se,y,z),a*a<=x)return!0}else return!(pn(y,z,-pe,0)>=x||pn(y,z,0,-Se)>=x||pn(y,z,0,Se)>=x||pn(y,z,pe,0)>=x)}else if(y.type===Ir.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&&Hn(a.x,a.y,z,ie,z,de)>x&&Hn(a.x,a.y,z,ie,se,ie)>x&&Hn(a.x,a.y,se,de,z,de)>x&&Hn(a.x,a.y,se,de,se,ie)>x)return!1;if(z=Math.sqrt(x),b){if(this.fill===null?Al(y,a.x,a.y,z):ja(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 ua:case Zo:if(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x)return!1;break;case Ya:var Le=Rr();if(en.Qe(ne,pe,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.8,Le),ne=E(Le,a),kr(Le),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case cl:if(Le=Rr(),en.ep(ne,pe,Se.point1X,Se.point1Y,Se.endX,Se.endY,.8,Le),ne=E(Le,a),kr(Le),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case Ia:case Sl:Le=Se.type===Ia?bs(Se,z):Js(Se,z,ne,pe);var Me=Le.length;if(Me===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 ze=Rr(),qe=0;qe<Me;qe++)if(Se=Le[qe],ze.length=0,en.Qe(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.8,ze),E(ze,a))return kr(ze),!1;kr(ze),Se!==null&&(ne=Se[6],pe=Se[7]);break;default:Lt("Unknown Segment type: "+Se.type)}}return!0}}}return!1},_e.qc=function(){this.ua=null},_e.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=fs):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fi(1-fs.x,fs.y)))}oo.makeGeometry=function(a,y,b){if(a.toArrow!=="None")var E=Ld[a.toArrow];else a.fromArrow!=="None"?E=Ld[a.fromArrow]:(E=en.Ze[a.figure],typeof E=="string"&&(E=en.Ze[E]),E===void 0&&Lt("Unknown Shape.figure: "+a.figure),E=E(a,y,b),E.Sk=y,E.Rk=b);if(E===null){var x=en.Ze.Rectangle;typeof x=="function"&&(E=x(a,y,b))}return E};function wS(a){var y=Ld[a];if(y===void 0){var b=a.toLowerCase();if(b==="none")return"None";if(y=Ld[b],y===void 0){var E=null,x;for(x in en.um)if(x.toLowerCase()===b){E=x;break}if(E!==null)return a=Ir.parse(en.um[E],!1),Ld[E]=a,b!==E&&(Ld[b]=E),E}}return typeof y=="string"?y:y instanceof Ir?a:null}$n.Object.defineProperties(oo.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),Ne(this)&&(a=this.part,a!==null&&ya(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Ir.parse(a);var y=a.normalize();this.geometry=a,this.position=a=it.allocAt(-y.x,-y.y),it.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&&xh(a,"Shape.fill"),a instanceof _o&&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&&xh(a,"Shape.stroke"),a instanceof _o&&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 Nr(a,"value >= 0",oo,"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"?Nr(a,'"butt", "round", or "square"',oo,"strokeCap"):(zf(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"?Nr(a,'"miter", "bevel", or "round"',oo,"strokeJoin"):(zf(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){zf(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)||Lt("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&&(zf(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=en.Ze[a];typeof b=="function"?b=a:(b=en.Ze[a.toLowerCase()])||Lt("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?Lt("Unknown Shape.toArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new qi),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?Lt("Unknown Shape.fromArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new qi),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:ns},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),zf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ns},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),zf(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&&(zf(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&&(zf(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 kd),this.fa.Tk=a;var b=this.diagram;b!==null&&this.panel===b.grid&&Ec(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 kd),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 kd),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 kd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),oo.prototype.intersectsRect=oo.prototype.Yc,oo.prototype.containedInRect=oo.prototype.fh,oo.prototype.getNearestIntersectionPoint=oo.prototype.rs,oo.prototype.getDocumentBounds=oo.prototype.mi,oo.prototype.getDocumentPoint=oo.prototype.ga;var Ld=new gi,_v=new gi;oo.className="Shape",oo.getFigureGenerators=function(){var a=new wn,y;for(y in en.Ze)y!==y.toLowerCase()&&a.add(y,en.Ze[y]);return a.freeze(),a},oo.defineFigureGenerator=function(a,y){var b=a.toLowerCase(),E=en.Ze;E[a]=y,E[b]=a},oo.getArrowheadGeometries=function(){var a=new wn;for(E in en.um)if(Ld[E]===void 0){var y=Ir.parse(en.um[E],!1);Ld[E]=y,y=E.toLowerCase(),y!==E&&(Ld[y]=E)}for(var b in Ld)if(b!==b.toLowerCase()){var E=Ld[b];E instanceof Ir&&a.add(b,E)}return a.freeze(),a},oo.defineArrowheadGeometry=function(a,y){var b=null;typeof y=="string"?b=Ir.parse(y,!1):b=y,y=a.toLowerCase(),y!=="none"&&a!==y||Lt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Ld;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=ns}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 Sa(a,y){return on.call(this),u0||(pu=Fa?new nu(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}Sn(Sa,on),Sa.prototype.cloneProtected=function(a){on.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 gd(a){a.da===null?a.da=new Zv:a.da.nc&&(a.da=a.da.copy())}_e=Sa.prototype,_e.th=function(){on.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}_e.qb=function(a){a.classType===Sa?this.wrap=a:on.prototype.qb.call(this,a)},_e.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},_e.v=function(){on.prototype.v.call(this)},_e.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;Ba(this,a,this.xc,!0,!1,b,E),(se||de)&&Ba(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 Le=y.scale;switch(8>(Se*Se+pe*pe)*Le*Le&&(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 Ao:a.translate(x,0),a.scale(-1,1);break;case lo: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,Le=(y+ne+Se)*pe,z>Le&&(E=this.verticalAlignment,E=E.y*z-E.y*Le+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(Le=0;Le<pe;Le++){var Me=this.Qc[Le];Me>x&&(Me=x),E+=y,this.Oj(this.Qb[Le],a,0,E,x,ne,Me,b,ie,se,de),E+=ne+Se}switch(this.flip){case Ao:a.scale(-1,1),a.translate(-x,0);break;case lo:a.scale(1,-1),a.translate(0,-z);break;case Qo:a.scale(-1,-1),a.translate(-x,-z)}}},_e.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 Le=a;y.beginPath(),y.lineWidth=Le,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"))}},_e.kk=function(a,y,b){if(!on.prototype.kk.call(this,a,y,b))return!1;if(Ba(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++)Au(a,y[b],!1)}else y=this.svg,y.innerHTML=this.text,Au(a,y,!0);return!0},_e.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:on.prototype.nk.call(this,a)},_e.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)}},_e.Wl=function(a,y,b,E){var x=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;pu!==null&&DS!==z&&(DS=pu.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,Gc(ie)),ie=de+1}z=ne}else ne=z.indexOf(`
`,0),0<=ne&&(z=z.substr(0,ne)),z=Gc(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);Gc(de)>y&&1<de.length;)de=de.substr(0,de.length-1);de+=qg,y=Gc(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),ko(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&x!==this.Gc&&(this.Uc=!0)},_e.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=Gc(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=hg(a,ne),ne=ne.substr(z.length),y=hg(a,ne),de=Gc(z+y);0<y.length&&de<=b;)z+=y,ne=ne.substr(y.length),y=hg(a,ne),de=z+y,x&&(de=de.trim()),de=Gc(de);for(x&&(y=y.trim()),z+=y,b=Math.max(1,b-se);Gc(z)>b&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=qg;var pe=Gc(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=hg(a,ne),ne=ne.substr(y.length);Gc(y)>b;){var Se=1;for(de=Gc(y.substr(0,Se)),pe=0;de<=b;)Se++,pe=de,de=Gc(y.substr(0,Se));if(Se===1){var Le=de;z=Math.max(z,de)}else Le=pe,z=Math.max(z,pe);if(Se--,1>Se&&(Se=1),Xg(a,y.substr(0,Se),Le),se++,y=y.substr(Se),a.Gc+se>a.maxLines)break}for(pe=hg(a,ne),de=Gc(y+pe);0<pe.length&&de<=b;)y+=pe,ne=ne.substr(pe.length),pe=hg(a,ne),de=y+pe,x&&(de=de.trim()),de=Gc(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=Gc(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 hg(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 Gc(a){return pu===null?8*a.length:pu.measureText(a).width}function Qg(a){if(a.df!==null)return a.df;var y=a.Ae;if(pu===null){var b=16;return a.df=b}return Vv[y]!==void 0&&5e3>IS?b=Vv[y]:(b=1.3*pu.measureText("M").width,Vv[y]=b,IS++),a.df=b}function PS(a){if(pu===null)return 6;if(l0[a]!==void 0&&5e3>Wv)var y=l0[a];else y=pu.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=an.alloc();Hv(a,z,y,se),x+=se.height,an.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}$n.Object.defineProperties(Sa.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"||(gd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:vr},set:function(a){var y=this.flip;y!==a&&(gd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Mu},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),gd(this),this.da.Yr=a,Rl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=an.alloc();Hv(this,this.ec,999999,a);var y=a.width;an.free(a),a=TS(this,y);var b=this.desiredSize;isNaN(b.width)||(y=b.width),isNaN(b.height)||(a=b.height),ko(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&&(gd(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&&(gd(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&&xh(a,"TextBlock.stroke"),a instanceof _o&&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&&(gd(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&&(gd(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 kd),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 kd),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 kd),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 kd),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 kd),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&&(gd(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&&(gd(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&&(gd(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&&(gd(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&&(gd(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&&Nr(a,"> 0",Sa,"maxLines"),gd(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 mn(Sa,"None",0),AS=new mn(Sa,"WrapFit",1),Gv=new mn(Sa,"WrapDesiredSize",2),LS=new mn(Sa,"WrapBreakAll",3),jv=new mn(Sa,"OverflowClip",0),s0=new mn(Sa,"OverflowEllipsis",1),Jg=new mn(Sa,"FormatTrim",0),kS=new mn(Sa,"FormatNone",0),lE=/[ \u200b\u00ad]/,Vv=new gi,IS=0,l0=new gi,Wv=0,qg="...",DS="",pu=null,u0=!1;Sa.className="TextBlock";function Zv(){this.nc=!1,this.Hd=null,this.Xf=vr,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=Mu,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},Sa.getEllipsis=function(){return qg},Sa.setEllipsis=function(a){qg=a,l0=new gi,Wv=0},Sa.getBaseline=function(){return o0},Sa.setBaseline=function(a){o0=a},Sa.getUnderline=function(){return a0},Sa.setUnderline=function(a){a0=a},Sa.isValidFont=function(a){if(u0||(pu=Fa?new nu(null).context:null,u0=!0),pu===null)return!0;var y=pu.font;if(a===y||a==="10px sans-serif")return!0;pu.font="10px sans-serif",pu.font=a;var b=pu.font;if(b!=="10px sans-serif")return pu.font=y,!0;pu.font="19px serif";var E=pu.font;return pu.font=a,b=pu.font,pu.font=y,b!==E},Sa.FormatNone=kS,Sa.FormatTrim=Jg,Sa.None=zv,Sa.OverflowClip=jv,Sa.OverflowEllipsis=s0,Sa.WrapBreakAll=LS,Sa.WrapDesiredSize=Gv,Sa.WrapFit=AS;function kd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}kd.prototype.copy=function(){var a=new kd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},kd.className="GradElementSettings";function gu(a,y){on.call(this),this.Eg=null,this.qo="",this.Xg=il,this.Nk=Cr,this.Zg=this.Hd=null,this.Mk=Xi,this.Xf=vr,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 fg;Sn(gu,on),gu.prototype.cloneProtected=function(a){on.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},gu.prototype.qb=function(a){a===vr||a===yi||a===yo?this.imageStretch=a:on.prototype.qb.call(this,a)},gu.prototype.toString=function(){return"Picture("+this.source+")#"+Oi(this)};function pg(a){a===void 0&&(a=""),a!==""?fg[a]&&(delete fg[a],c0--):(fg=new gi,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()||(Ft(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=Rr();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);kr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}gu.prototype.hA=function(){if(this.source!==""){pg(this.source);var a=this.source;this.source="",this.source=a}},gu.prototype.redraw=function(){this.N(),this.Uc=!0},gu.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 wc)){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,Le=ie,Me=this.Nk,ze=this.Mk;switch(Me){case vr:if(this.sourceRect.w())break;Se>=E.width&&(z=z+ze.offsetX+(Se*ze.x-E.width*ze.x)),Le>=E.height&&(ne=ne+ze.offsetY+(Le*ze.y-E.height*ze.y)),se=Math.min(E.width,Se),ie=Math.min(E.height,Le);break;case Cr:Se=E.width,Le=E.height;break;case yi:case yo:Me===yi?(Me=Math.min(E.height/Le,E.width/Se),Se*=Me,Le*=Me):Me===yo&&(Me=Math.max(E.height/Le,E.width/Se),Se*=Me,Le*=Me,Se>=E.width&&(z=(z+ze.offsetX+(Se*ze.x-E.width*ze.x)/Se)*se),Le>=E.height&&(ne=(ne+ze.offsetY+(Le*ze.y-E.height*ze.y)/Le)*ie),se*=1/(Se/E.width),ie*=1/(Le/E.height),Se=E.width,Le=E.height)}Me=this.Df()*y.scale;var qe=Se*Me*Le*Me,Ct=se*ie/qe,yt=b.__goCache;Me=null;var Dt=uE;if(!x){if(b.sq&&yt!==void 0&&4<qe&&Ct>Dt*Dt)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<Ct;pe++)Me=x[pe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{x=new nu(null).context;try{x.drawImage(this.Eg,0,0)}catch(Ot){this.en=!1}try{x.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Ot){this.vl=!0}}if(this.vl)return}}switch(x=Se<E.width?ze.offsetX+(E.width*ze.x-Se*ze.x):0,ze=Le<E.height?ze.offsetY+(E.height*ze.y-Le*ze.y):0,this.flip){case Ao:a.translate(Math.min(E.width,Se),0),a.scale(-1,1);break;case lo:a.translate(0,Math.min(E.height,Le)),a.scale(1,-1);break;case Qo:a.translate(Math.min(E.width,Se),Math.min(E.height,Le)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&yt!==void 0&&Me!==null&&Me.ratio!==1){a.save(),y=Me.ratio;try{a.drawImage(Me.source,z/y,ne/y,Math.min(Me.source.width,se/y),Math.min(Me.source.height,ie/y),x,ze,Math.min(E.width,Se),Math.min(E.height,Le)),a instanceof Go&&(this.bt=[z/y,ne/y,Math.min(Me.source.width,se/y),Math.min(Me.source.height,ie/y),x,ze,Math.min(E.width,Se),Math.min(E.height,Le)])}catch(Ot){this.en=!1}a.restore()}else try{a.drawImage(b,z,ne,se,ie,x,ze,Math.min(E.width,Se),Math.min(E.height,Le)),a instanceof Go&&(this.bt=[z,ne,se,ie,x,ze,Math.min(E.width,Se),Math.min(E.height,Le)])}catch(Ot){this.en=!1}switch(this.flip){case Ao:a.scale(-1,1),a.translate(-Math.min(E.width,Se),0);break;case lo:a.scale(1,-1),a.translate(0,-Math.min(E.height,Le));break;case Qo:a.scale(-1,-1),a.translate(-Math.min(E.width,Se),-Math.min(E.height,Le))}}}}},gu.prototype.Wl=function(a,y,b,E){var x=this.desiredSize,z=jl(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===xi?(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===Li?(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)),ko(this.dc,a,y),this.Ge(0,0,a,y)},gu.prototype.eh=function(a,y,b,E){Cl(this,a,y,b,E)},$n.Object.defineProperties(gu.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||Lt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&fp(E,this),this.Eg=a,a!==null&&b&&a.Bg===void 0&&(a.Bg=new lr),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()||(Ft(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=fg;if(Fa){var E=null;if(b[a]!==void 0)E=b[a];else if(a!==""){30<c0&&(pg(),b=fg),E=Pr("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}}}),gu.prototype.redraw=gu.prototype.redraw,gu.prototype.reloadSource=gu.prototype.hA;var c0=0,uE=4;gu.className="Picture",fg=new gi,gu.clearCache=pg;function MS(){this.gi=null}function OS(a,y,b,E,x){a.gi===null&&(a.gi=[]);var z=new nu(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 gg(){this.os=new Ir,this.mc=null}gg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Ir,this.mc=null};function mg(a,y,b,E,x,z){a.mc=new Wa,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()}gg.prototype.moveTo=function(a,y,b){b===void 0&&(b=!1);var E=new Eo(ua);E.endX=a,E.endY=y,b&&E.close(),this.mc.segments.add(E)},gg.prototype.lineTo=function(a,y,b){b===void 0&&(b=!1);var E=new Eo(Zo);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 Eo(Ya);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 Eo(cl);ne.point1X=y,ne.point1Y=b,ne.endX=E,ne.endY=x,z&&ne.close(),a.mc.segments.add(ne)}gg.prototype.arcTo=function(a,y,b,E,x,z,ne){z===void 0&&(z=0),ne===void 0&&(ne=!1);var ie=new Eo(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 Eo(Sl,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 gg,y.reset(a),y)}var h0=null;gg.className="StreamGeometryContext";function Ol(a,y){var b=a.toLowerCase(),E=en.Ze;E[a]=y,E[b]=a}Ol("Rectangle",function(a,y,b){a="r"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ir(Ir.u),E.endX=y,E.endY=b,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Ol("Square",function(a,y,b){a="s"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ir(Ir.u),E.endX=y,E.endY=b,E.defaultStretch=yi,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Ol("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=en.Mf[E];if(x!==void 0)return x;var z=a*en.wg;return x=new Ir().add(new Wa(a,0,!0).add(new Eo(Zo,y-a,0)).add(new Eo(Ya,y,a,y-z,0,y,z)).add(new Eo(Zo,y,b-a)).add(new Eo(Ya,y-a,b,y,b-z,y-z,b)).add(new Eo(Zo,a,b)).add(new Eo(Ya,0,b-a,z,b,0,b-z)).add(new Eo(Zo,0,a)).add(new Eo(Ya,a,0,0,z,z,0).close())),1<z&&(x.spot1=new fi(0,0,z,z),x.spot2=new fi(1,1,-z,-z)),en.Nf<en.vm&&(en.Mf[E]=x,en.Nf++),x}),Ol("Border","RoundedRectangle"),Ol("Ellipse",function(a,y,b){a="e"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ir(Ir.F),E.endX=y,E.endY=b,E.spot1=yu,E.spot2=zs,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Ol("Circle",function(a,y,b){a="c"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ir(Ir.F),E.endX=y,E.endY=b,E.spot1=yu,E.spot2=zs,E.defaultStretch=yi,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Ol("TriangleRight",function(a,y,b){return new Ir().add(new Wa(0,0).add(new Eo(Zo,y,.5*b)).add(new Eo(Zo,0,b).close())).pm(0,.25,.5,.75)}),Ol("TriangleDown",function(a,y,b){return new Ir().add(new Wa(0,0).add(new Eo(Zo,y,0)).add(new Eo(Zo,.5*y,b).close())).pm(.25,0,.75,.5)}),Ol("TriangleLeft",function(a,y,b){return new Ir().add(new Wa(y,b).add(new Eo(Zo,0,.5*b)).add(new Eo(Zo,y,0).close())).pm(.5,.25,1,.75)}),Ol("TriangleUp",function(a,y,b){return new Ir().add(new Wa(y,b).add(new Eo(Zo,0,b)).add(new Eo(Zo,.5*y,0).close())).pm(.25,.5,.75,1)}),Ol("Triangle","TriangleUp"),Ol("Diamond",function(a,y,b){return new Ir().add(new Wa(.5*y,0).add(new Eo(Zo,0,.5*b)).add(new Eo(Zo,.5*y,b)).add(new Eo(Zo,y,.5*b).close())).pm(.25,.25,.75,.75)}),Ol("LineH",function(a,y,b){return a=new Ir(Ir.j),a.startX=0,a.startY=b/2,a.endX=y,a.endY=b/2,a}),Ol("LineV",function(a,y,b){return a=new Ir(Ir.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=b,a}),Ol("None","Rectangle"),Ol("BarH","Rectangle"),Ol("BarV","Rectangle"),Ol("MinusLine","LineH"),Ol("PlusLine",function(a,y,b){return new Ir().add(new Wa(0,b/2,!1).add(new Eo(Zo,y,b/2)).add(new Eo(ua,y/2,0)).add(new Eo(Zo,y/2,b)))}),Ol("XLine",function(a,y,b){return new Ir().add(new Wa(0,b,!1).add(new Eo(Zo,y,0)).add(new Eo(ua,0,0)).add(new Eo(Zo,y,b)))}),Ol("LineRight",function(a,y,b){return new Ir().add(new Wa(.25*y,0,!1).add(new Eo(Zo,.75*y,.5*b)).add(new Eo(Zo,.25*y,b)))}),Ol("LineDown",function(a,y,b){return new Ir().add(new Wa(0,.25*b,!1).add(new Eo(Zo,.5*y,.75*b)).add(new Eo(Zo,y,.25*b)))}),Ol("LineLeft",function(a,y,b){return new Ir().add(new Wa(.75*y,0,!1).add(new Eo(Zo,.25*y,.5*b)).add(new Eo(Zo,.75*y,b)))}),Ol("LineUp",function(a,y,b){return new Ir().add(new Wa(0,.75*b,!1).add(new Eo(Zo,.5*y,.25*b)).add(new Eo(Zo,y,.75*b)))}),en.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=Bi,this.ir=null,this.jr="",this.lr=ns,this.Gq="",this.Hq=ho,this.Pq=Wr,this.Kq=pi,this.Up=null,this.Cq=127,this.zr=di,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 Pi(a,y){a===void 0||a instanceof As||typeof a=="string"?Ar.call(this,a):(Ar.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 it(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)}Sn(Pi,Ar),Pi.prototype.cloneProtected=function(a){Ar.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},_e=Pi.prototype,_e.Af=function(a){Ar.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},_e.toString=function(){var a=jn(this.constructor)+"#"+Oi(this);return this.data!==null&&(a+="("+hi(this.data)+")"),a};function mu(a){a.P===null?a.P=new Kv:a.P.nc&&(a.P=a.P.copy())}_e.th=function(){Ar.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},_e.gk=function(a,y,b,E,x,z,ne){var ie=this.diagram;ie!==null&&(a===Ta&&y==="elements"?x instanceof Ar?Hf(x,function(se){by(ie.partManager,se),mh(ie,se)}):Kd(ie,x):a===La&&y==="elements"&&(x instanceof Ar?Hf(x,function(se){Ey(ie.partManager,se,ie)}):fp(ie,x)),ie.cb(a,y,b,E,x,z,ne))},_e.La=function(a){if(Ar.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 Ar&&Hf(x,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Pi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Pi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Pi.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 wn),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)))}}},Pi.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)}},Pi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Rr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var b=0;b<a;b++)this.Jf(y[b]);kr(y)}},Pi.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 no?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(b instanceof Mo))break e;Tc(b),b=b.copy(),b!==null&&(this.ph()&&this.selectionObject===this.path&&(b.type=Ar.Link),b.adornedObject=y)}if(b!==null){b.type===Ar.Link&&b.v(),this.bh("Selection",b);break e}}this.Jf("Selection")}for(hE(this,a),y=this.adornments;y.next();)y.value.La()}},Pi.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)}}Pi.prototype.Ge=function(a,y,b,E){var x=this.uc;x.h(a,y,b,E),this.Lb===null&&(this.Lb=new Ri);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),this.Lb=z,z.ws()||z.pp(x)},Pi.prototype.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Xi;this.locationSpot.sb()&&(z=this.locationSpot);var ne=it.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),it.free(ne)}},Pi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Pi.prototype.moveTo=function(a,y,b){a=it.allocAt(a,y),this.move(a,b),it.free(a)},Pi.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())},Pi.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())},Pi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new wn),y.I(a)!==null)return y.I(a);var b=Ar.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 it),b=b.Mc()?Xi: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}Pi.prototype.mi=function(a){return a===void 0&&(a=new An),a.assign(this.actualBounds)},Pi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function US(a){var y=it.alloc(),b=a.locationObject,E=b.naturalBounds,x=b instanceof oo?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 jf(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}Pi.prototype.arrange=function(){if(Kt(this)===!1)_S(this);else{Bn(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()||en.B(y.width,a.width)&&en.B(y.height,a.height)||0<=this.vw&&this.C(16),An.free(y),Qv(this,!1)}},_e=Pi.prototype,_e.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()||Mi(a,y)||(this instanceof qr&&!b.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},_e.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 it(E.x+(a.x-y),E.y+(a.y-b)),this.g("location",E,this.ke.copy())),rf(this)===!1&&Kt(this)===!1&&(f0(this),_S(this)),!0};function HS(a,y,b,E,x){y===null||a instanceof Mo||(y=y.animationManager,y.zb&&Qu(y,a,new it(E,x),b))}_e.mm=function(a,y,b){var E=this.ke,x=this.pa;if(b){if(E.x===a&&E.y===y)return;rf(this)||Kt(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)},_e.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,it.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 Mo||Qu(b,a,new it(z,ne),y),E||y.x===z&&y.y===ne||a.g("position",new it(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 qr&&Td(b,a),a.layer.isTemporary||y||b.Ya(),y=a.Ib;var E=b.viewportBounds;E.w()?of(a)?(Wn(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():b.vd=!0}_e.si=function(){return!0},_e.Zc=function(){return!0},_e.ph=function(){return!1},_e.Dd=function(){return!0};function Xv(a,y,b,E){y.constructor===a.constructor||KS||(KS=!0,Er('Should not change the class of the Part when changing category from "'+b+'" to "'+E+'"'),Er(" 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 qr&&(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 qr&&(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)}Pi.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},Pi.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},Pi.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},Pi.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},Pi.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},Pi.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},Pi.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},Pi.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},Pi.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}_e=Pi.prototype,_e.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}_e.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},_e.N=function(){var a=this.diagram;a!==null&&!Kt(this)&&!rf(this)&&this.isVisible()&&this.Ib.w()&&a.N(jf(this,this.Ib))},_e.v=function(){Ar.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof qr&&this.labeledLink!==null&&Rl(this.labeledLink),a.$b(!0))},_e.Vo=function(a){a||(a=this.Ah,a!==null&&ry(a,this))},_e.Wo=function(a){a||(a=this.Ah,a!==null&&iy(a,this))},_e.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},_e.oz=function(){return qv(this,this)};function qv(a,y){var b=y.containingGroup;return b!==null?1+qv(a,b):y instanceof qr&&(y=y.labeledLink,y!==null)?qv(a,y):0}_e.sz=function(){return WS(this,this)};function WS(a,y){var b=y.containingGroup;return b!==null||y instanceof qr&&(b=y.labeledLink,b!==null)?WS(a,b):y}_e.Td=function(a){return a instanceof no?$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 qr&&(y=y.labeledLink,y!==null)?$v(a,y,b):!1:!0}_e.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof no&&p0(y,!0),y instanceof qr){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 qr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof no&&p0(y,!1),y instanceof qr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return b},Pi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof qr&&this.isLinkLabel)},Pi.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 qr&&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 Mo)){if(a.add(y),y instanceof qr){if(b&&y instanceof no)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 Hr)for(y=y.labelNodes;y.next();)af(a,y.value,b,E,x,z)}}$n.Object.defineProperties(Pi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?ro: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(La,"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&&(mu(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&&Gd(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 Mo?this.type!==Ar.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:Wr},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),mu(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:pi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),mu(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&&(mu(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:ho},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),mu(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,Kt(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 Mo)){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 Mo?this instanceof Mo&&(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&&(Tc(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&&(Tc(b),b=b.copy(),b===null||b instanceof Hr||(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&&(mu(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&&(mu(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&&(mu(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 Hr?(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&&(mu(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&&(mu(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&&(mu(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:Bi},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),mu(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&&(mu(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&&(mu(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:ns},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),mu(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&&Lt("Cannot make a Group a member of itself: "+this.toString()),Lt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var b=this.diagram;if(y!==null?iy(y,this):this instanceof no&&b!==null&&b.ai.remove(this),this.Ah=a,a!==null?ry(a,this):this instanceof no&&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 no){for(b=new lr,af(b,this,!0,0,!0),b=b.iterator;b.next();)if(E=b.value,E instanceof qr)for(E=E.linksConnected;E.next();)vg(E.value)}if(this instanceof qr){for(b=this.linksConnected;b.next();)vg(b.value);b=this.labeledLink,b!==null&&vg(b)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Gd(y,-1,a))}}else Lt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(mu(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof qr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(mu(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&&(mu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:di},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),mu(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&&(mu(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&&(mu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Pi.prototype.invalidateLayout=Pi.prototype.C,Pi.prototype.findCommonContainingGroup=Pi.prototype.px,Pi.prototype.isMemberOf=Pi.prototype.Td,Pi.prototype.findTopLevelPart=Pi.prototype.sz,Pi.prototype.findSubGraphLevel=Pi.prototype.oz,Pi.prototype.ensureBounds=Pi.prototype.Va,Pi.prototype.getDocumentBounds=Pi.prototype.mi,Pi.prototype.findObject=Pi.prototype.fb,Pi.prototype.moveTo=Pi.prototype.moveTo,Pi.prototype.invalidateAdornments=Pi.prototype.Wb,Pi.prototype.clearAdornments=Pi.prototype.Ej,Pi.prototype.removeAdornment=Pi.prototype.Jf,Pi.prototype.addAdornment=Pi.prototype.bh,Pi.prototype.findAdornment=Pi.prototype.Pj,Pi.prototype.updateTargetBindings=Pi.prototype.La;var KS=!1;Pi.className="Part",Pi.LayoutNone=0,Pi.LayoutAdded=1,Pi.LayoutRemoved=2,Pi.LayoutShown=4,Pi.LayoutHidden=8,Pi.LayoutNodeSized=16,Pi.LayoutGroupLayout=32,Pi.LayoutNodeReplaced=64,Pi.LayoutStandard=127,Pi.LayoutAll=16777215;function Mo(a,y){a===void 0||a instanceof As||typeof a=="string"?Pi.call(this,a):(Pi.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)}Sn(Mo,Pi),Mo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Mo.prototype.updateRelationshipsFromData=function(){},Mo.prototype.Ul=function(a){var y=this.adornedObject,b=y==null?void 0:y.part;if(b instanceof Hr&&y instanceof oo){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 oo&&(x.ua=a)}}},Mo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Kt(a))},Mo.prototype.Zc=function(){return!1},Mo.prototype.gk=function(a,y,b,E,x,z,ne){if(a===Ta&&y==="elements"){if(x instanceof ru)this.$a===null&&(this.$a=x);else if(x instanceof Ar){var ie=x.Nl(function(se){return se instanceof ru});ie instanceof ru&&this.$a===null&&(this.$a=ie)}}else a===La&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Ar&&this.$a.rg(E)&&(this.$a=null));Pi.prototype.gk.call(this,a,y,b,E,x,z,ne)},Mo.prototype.updateAdornments=function(){},Mo.prototype.Lj=function(){},$n.Object.defineProperties(Mo.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}}}),Mo.className="Adornment";function ey(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Oa,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 qr(a,y){a===void 0||a instanceof As||typeof a=="string"?Pi.call(this,a):(Pi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new qn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Sn(qr,Pi),qr.prototype.cloneProtected=function(a){Pi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},_e=qr.prototype,_e.Af=function(a){Pi.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())}_e.th=function(){Pi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function YS(a,y){y!==null&&(a.af===null&&(a.af=new lr),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}_e.Lz=function(a,y,b){y==null&&(y=""),b==null&&(b=""),a=XS(this,a,y,b),a!==null&&a.Sl()},_e.gk=function(a,y,b,E,x,z,ne){a===Ta&&y==="elements"?this.wc=null:a===La&&y==="elements"&&(this.wc=null),Pi.prototype.gk.call(this,a,y,b,E,x,z,ne)},_e.Bd=function(a){for(var y=this.linksConnected;y.next();){var b=y.value;a!==void 0&&a.contains(b)||(Vu(b.fromPort),Vu(b.toPort),b.bb())}};function QS(a,y){for(a=a.linksConnected;a.next();){var b=a.value;(b.fromPort===y||b.toPort===y)&&(Vu(b.fromPort),Vu(b.toPort),b.bb())}}function Vu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Vu(y.port)}}_e.si=function(){return!0},qr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},qr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},qr.prototype.isVisible=function(){if(!Pi.prototype.isVisible.call(this))return!1;var a=!0,y=Fc,b=this.diagram;if(b!==null&&(a=b.isTreePathToChildren,y=b.treeCollapsePolicy),y===Fc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Ja){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Of&&(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},qr.prototype.Zb=function(a){Pi.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)}},qr.prototype.qx=function(){var a=new lr,y=new lr;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)})}}qr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Fi(this.jb),b=this;return y.predicate=function(E){return E.fromNode===b&&E.fromPortId===a||E.toNode===b&&E.toPortId===a},y},_e=qr.prototype,_e.Mo=function(a){a===void 0&&(a=null);var y=new Fi(this.jb),b=this;return y.predicate=function(E){return E.fromNode!==b?!1:a===null?!0:E.fromPortId===a},y},_e.Sd=function(a){a===void 0&&(a=null);var y=new Fi(this.jb),b=this;return y.predicate=function(E){return E.toNode!==b?!1:a===null?!0:E.toPortId===a},y},_e.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 lr,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 lr,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Gi(b):ro},_e.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 lr,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Gi(b):ro},_e.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 lr,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Gi(b):ro},_e.jz=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null);var E=new Fi(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},_e.kz=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null);var E=new Fi(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){Vu(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){Vu(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}}}qr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},_e=qr.prototype,_e.Vo=function(a){Pi.prototype.Vo.call(this,a),a||($g(this),a=this.Yk,a!==null&&a1(a,this))},_e.Wo=function(a){Pi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},_e.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,Pi.prototype.Lj.call(this)},_e.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 wn: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=Rr()),b.push(E);if(b!==null){for(a=0;a<b.length;a++)y.remove(b[a]);kr(b)}}}_e.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},_e.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}},_e.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},_e.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},_e.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof qr)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},_e.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 lr;return a(this,y),y},_e.uz=function(){return e1(this,this)};function e1(a,y){return y=y.pg(),y===null?0:1+e1(a,y)}_e.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Fi(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},_e.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 qn,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 qn,y.add(b),y.add(a)):b=a);return y!==null?y.iterator:b!==null?new Gi(b):ro},_e.wz=function(a){a===void 0&&(a=1/0);var y=new lr;return af(y,this,!1,a,!0),y},qr.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 lr;b.add(this),t1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Fc),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(Le){return function(Me){return Me===Le.uv||!Me.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}qr.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 lr;b.add(this),r1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Fc),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(Le){return function(Me){return Me===Le.vv||!Me.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}$n.Object.defineProperties(qr.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&&Td(b,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Oa},set:function(a){typeof a=="number"&&(a=new to(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Nh(this),this.Ba.yp=a;var b=this.diagram;b!==null&&Td(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),Rl(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))}}}),qr.prototype.expandTree=qr.prototype.expandTree,qr.prototype.collapseTree=qr.prototype.collapseTree,qr.prototype.findTreeParts=qr.prototype.wz,qr.prototype.findTreeChildrenNodes=qr.prototype.Ou,qr.prototype.findTreeChildrenLinks=qr.prototype.Qo,qr.prototype.findTreeLevel=qr.prototype.uz,qr.prototype.findTreeParentChain=qr.prototype.vz,qr.prototype.findTreeParentNode=qr.prototype.pg,qr.prototype.findTreeParentLink=qr.prototype.kh,qr.prototype.findCommonTreeParent=qr.prototype.gz,qr.prototype.findTreeRoot=qr.prototype.xz,qr.prototype.isInTreeOf=qr.prototype.Nz,qr.prototype.findPort=qr.prototype.ns,qr.prototype.findLinksTo=qr.prototype.kz,qr.prototype.findLinksBetween=qr.prototype.jz,qr.prototype.findNodesInto=qr.prototype.Oo,qr.prototype.findNodesOutOf=qr.prototype.Po,qr.prototype.findNodesConnected=qr.prototype.Mu,qr.prototype.findLinksInto=qr.prototype.Sd,qr.prototype.findLinksOutOf=qr.prototype.Mo,qr.prototype.findExternalTreeLinksConnected=qr.prototype.qx,qr.prototype.invalidateConnectedLinks=qr.prototype.Bd,qr.prototype.invalidateLinkBundle=qr.prototype.Lz;var fE=new mn(qr,"SpreadingNone",10),v0=new mn(qr,"SpreadingEvenly",11),ny=new mn(qr,"SpreadingPacked",12);qr.className="Node",qr.SpreadingNone=fE,qr.SpreadingEvenly=v0,qr.SpreadingPacked=ny;function no(a,y){a===void 0||a instanceof As||typeof a=="string"?qr.call(this,a):(qr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new lr,this.$a=null,this.Sc=new Pa,this.Sc.group=this,this.gl=new lr,this.tb=this.$p=null,y&&Object.assign(this,y)}Sn(no,qr),no.prototype.cloneProtected=function(a){qr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(b){return b instanceof ru});y instanceof ru?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())},_e=no.prototype,_e.Af=function(a){qr.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 qr)b.Bd(y);else if(b instanceof Hr)for(b=b.labelNodes;b.next();)b.value.Bd(y)}},_e.gk=function(a,y,b,E,x,z,ne){if(a===Ta&&y==="elements"){if(x instanceof ru)this.$a===null?this.$a=x:this.$a!==x&&Lt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(x instanceof Ar){var ie=x.Nl(function(se){return se instanceof ru});ie instanceof ru&&(this.$a===null?this.$a=ie:this.$a!==ie&&Lt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===La&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Ar&&this.$a.rg(E)&&(this.$a=null));qr.prototype.gk.call(this,a,y,b,E,x,z,ne)},_e.Xl=function(a,y){qr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Ar.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Ar&&(a=a.Pb()),this.tb===null&&(this.tb=new An),a.mi(this.tb),a instanceof oo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},_e.eh=function(a,y,b,E){this.nf=this.$a,qr.prototype.eh.call(this,a,y,b,E)},_e.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Hr||y.Va()}),qr.prototype.Va.call(this)},_e.si=function(){if(!qr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof qr){if(y.isVisible()&&Kt(y))return!1}else if(y instanceof Hr&&y.isVisible()&&Kt(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function ry(a,y){if(a.Gn.add(y)){y instanceof no&&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 Hr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function iy(a,y){if(a.Gn.remove(y)){y instanceof no&&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 Hr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}_e.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)}qr.prototype.Lj.call(this)},no.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Kn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},no.prototype.addMembers=function(a,y){var b=this.diagram;if(b===null)return!1;b=b.commandHandler;var E=!0;for(a=Kn(a).iterator;a.next();){var x=a.value;!y||b.isValidMember(this,x)?x.containingGroup=this:E=!1}return E},no.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))},_e=no.prototype,_e.Bd=function(a){var y=(this.U&65536)!==0;if(qr.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()?(Vu(b.fromPort),Vu(b.toPort),b.bb()):(E=b.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Vu(b.fromPort),Vu(b.toPort),b.bb()))}}},_e.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 lr,E=y.iterator;E.next();){var x=E.value;if(x instanceof qr)for(x=x.linksConnected;x.next();){var z=x.value;y.contains(z)||b.add(z)}}return a&&(this.$p=b),b.iterator},_e.iz=function(){var a=this.Rj();a.add(this);for(var y=new lr,b=a.iterator;b.next();){var E=b.value;if(E instanceof qr)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},_e.hz=function(){function a(b,E){b!==null&&(E.add(b),a(b.containingGroup,E))}var y=new lr;return a(this,y),y},_e.Rj=function(){var a=new lr;return af(a,this,!0,0,!0),a.remove(this),a},_e.Zb=function(a){qr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},no.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 no&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,i1(z,y,b,E)),z instanceof qr)z.Bd(y),b.Aj(z,E);else if(z instanceof Hr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}no.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 no&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,b,E)),z instanceof qr)z.Bd(y),b.Cj(z,E);else if(z instanceof Hr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}no.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=it.alloc(),qr.prototype.move.call(this,a,y),a=new lr,y=this.Rj().iterator;y.next();)x=y.value,x instanceof Hr&&(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 qr&&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 Hr&&(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());it.free(z)}},$n.Object.defineProperties(no.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&&Lt("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)}}}),no.prototype.expandSubGraph=no.prototype.expandSubGraph,no.prototype.collapseSubGraph=no.prototype.collapseSubGraph,no.prototype.findSubGraphParts=no.prototype.Rj,no.prototype.findContainingGroupChain=no.prototype.hz,no.prototype.findExternalNodesConnected=no.prototype.iz,no.prototype.findExternalLinksConnected=no.prototype.Lu,no.prototype.ensureBounds=no.prototype.Va,no.className="Group";function ru(a){on.call(this),this.yb=ts,this.ko=new An(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Sn(ru,on),ru.prototype.cloneProtected=function(a){on.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},ru.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)},ru.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof no||a instanceof Mo)||Lt("Placeholder is not inside a Group or Adornment."),a instanceof no){var y=this.computeBorder(this.ko),b=this.minSize,E=this.dc;for(ko(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=it.alloc(),b.xi(y,a.locationSpot),b.D(a.location)||(a.location=b),it.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 oo&&(ne=z.strokeWidth);var ie=z.Df(),se=z.naturalBounds,de=(se.width+ne)*ie;ne=(se.height+ne)*ie,a.type!==Ar.Link&&(ie=z.ga(a.category==="Selection"?ho:a.locationSpot,it.alloc()),a.location=ie,it.free(ie)),isNaN(de)||isNaN(ne)?(a=z.ga(ho,it.alloc()),de=An.allocAt(a.x,a.y,0,0),de.Ye(z.ga(Fo,a)),de.Ye(z.ga(Do,a)),de.Ye(z.ga(pa,a)),ko(y,de.width+E||0,de.height+x||0),this.Ge(-b.left,-b.top,y.width,y.height),it.free(a),An.free(de)):(ko(y,de+E||0,ne+x||0),this.Ge(-b.left,-b.top,y.width,y.height))}},ru.prototype.eh=function(a,y,b,E){this.actualBounds.h(a,y,b,E)},ru.prototype.computeBorder=function(a){var y=this.part,b=y.diagram,E=b===null||!b.animationManager.isAnimating;if(b!==null&&y instanceof no&&!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 no&&!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 no&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ru.prototype.computeMemberBounds=function(a){if(!(this.part instanceof no))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 Hr&&(!y.computesBoundsIncludingLinks||Nt(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},$n.Object.defineProperties(ru.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new to(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ru.className="Placeholder";function Hr(a){Pi.call(this,Ar.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=iu,this.Om=0,this.Qm=iu,this.Rm=NaN,this.qj=uy,this.po=.5,this.wd=null,this.Nb=new qn().freeze(),this.Tg=this.Mg=null,this.ml=new An,this.ua=new Ir,this.u=this.o=this.Sf=this.Wf=null,this.su=new it,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Sn(Hr,Pi),Hr.prototype.cloneProtected=function(a){Pi.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())},_e=Hr.prototype,_e.Af=function(a){Pi.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&&Vu(y),a=a.toPort,a!==null&&Vu(a)},_e.qb=function(a){a.classType===Hr?(a.value&2)===2?this.routing=a:a===$u||a===kh||a===Sg?this.curve=a:a===nm||a===w0||a===C0?this.adjusting=a:a!==uy&&a!==iu&&Lt("Unknown Link enum value for a Link property: "+a):Pi.prototype.qb.call(this,a)},_e.Xc=function(){this.ba===null&&(this.ba=new So)},_e.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Kt(a)||rf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Kt(a)||rf(a)))},_e.zv=function(){return!1},_e.Av=function(){},_e.Zc=function(){return!1},Hr.prototype.computeAngle=function(a,y,b){return Hr.computeAngle(y,b)},Hr.computeAngle=function(a,y){switch(a){default:case iu: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=en.bp(y),90<a&&270>a&&(a-=180);break;case am:a=en.bp(y+90),90<a&&270>a&&(a-=180);break;case sm:a=en.bp(y-90),90<a&&270>a&&(a-=180);break;case T0:if(a=en.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return en.bp(a)};function vg(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}_e=Hr.prototype,_e.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Pi.prototype.oh.call(this)},_e.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},_e.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function a1(a,y){a.wd===null&&(a.wd=new lr),a.wd.add(y),a.v()}_e.Vo=function(a){if(Pi.prototype.Vo.call(this,a),Vf(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)}},_e.Wo=function(a){if(Pi.prototype.Wo.call(this,a),Vf(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)}},_e.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))},Hr.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Hr.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?Pi.prototype.move.call(this,a,!1):(a=it.allocAt(b.x+E,b.y+x),Pi.prototype.move.call(this,a,!1),it.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)},Hr.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},Hr.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},Hr.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ai),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()===$u))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()===$u){if(y===3){b=this.i(0),E=this.i(1);var x=this.i(2);return en.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),en.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},Hr.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()===$u))return this.ua.wx(.5);if(this.computeCurve()===$u&&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),en.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)},_e=Hr.prototype,_e.i=function(a){return this.Nb.s[a]},_e.dd=function(a,y){this.Nb.cd(a,y)},_e.L=function(a,y,b){this.Nb.cd(a,new it(y,b))},_e.Kz=function(a,y){this.Nb.Gb(a,y)},_e.m=function(a,y,b){this.Nb.Gb(a,new it(y,b))},_e.ne=function(a){this.Nb.add(a)},_e.yf=function(a,y){this.Nb.add(new it(a,y))},_e.pv=function(a){this.Nb.mb(a)},_e.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 qn,z=a.Nb.iterator;z.next();){var ne=z.value;x.add(new it(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),Rl(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)}}_e.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},_e.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)}},_e.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))}_e.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())}},_e.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()}}},Hr.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Lp||(Lp=new qr,Lp.desiredSize=hr,Lp.Va()),this.defaultFromPoint&&(Lp.location=this.defaultFromPoint,Lp.Va(),y=a=Lp)):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?(kp||(kp=new qr,kp.desiredSize=hr,kp.Va()),this.defaultToPoint&&(kp.location=this.defaultToPoint,kp.Va(),x=E=kp)):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=yg(ne),se=yg(b),de=y===x&&y!==null,pe=this.isOrthogonal,Se=this.curve===$u;this.Wf=de&&!pe?Se=!0:!1;var Le=this.computeAdjusting()===iu||de;if(!pe&&!de&&ie&&se){if(ie=!1,!Le&&3<=z&&(Le=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=this.adjustPoints(0,Le,z-1,se))&&(Le=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),this.adjustPoints(0,Le,z-1,se)),!ie)if(this.Fj(),Se){z=this.getLinkPoint(a,y,ne,!0,!1,E,x),Le=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=Le.x-z.x,se=Le.y-z.y,de=this.computeCurviness(),Se=pe=0;var Me=z.x+ie/3,ze=z.y+se/3,qe=Me,Ct=ze;en.B(se,0)?Ct=0<ie?Ct-de:Ct+de:(pe=-ie/se,Se=Math.sqrt(de*de/(pe*pe+1)),0>de&&(Se=-Se),qe=(0>se?-1:1)*Se+Me,Ct=pe*(qe-Me)+ze),Me=z.x+2*ie/3,ze=z.y+2*se/3;var yt=Me,Dt=ze;en.B(se,0)?Dt=0<ie?Dt-de:Dt+de:(yt=(0>se?-1:1)*Se+Me,Dt=pe*(yt-Me)+ze),this.Fj(),this.ne(z),this.yf(qe,Ct),this.yf(yt,Dt),this.ne(Le),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,Le=x,E=this.getLinkPoint(a,y,ne,!0,!1,z,Le),x=this.getLinkPoint(z,Le,b,!1,!1,a,y),this.hasCurviness()?(Le=x.x-E.x,b=x.y-E.y,ne=this.computeCurviness(),a=E.x+Le/2,y=E.y+b/2,z=a,ie=y,en.B(b,0)?ie=0<Le?ie-ne:ie+ne:(Le=-Le/b,z=Math.sqrt(ne*ne/(Le*Le+1)),0>ne&&(z=-z),z=(0>b?-1:1)*z+a,ie=Le*(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),Le.mi(ie),de=ie.ca(E),(se||de)&&(ne=y.ga(b0(ne),new it),this.dd(0,this.getLinkPointFromPoint(a,y,ne,x,!0,ne)),b=Le.ga(b0(b),new it),this.dd(1,this.getLinkPointFromPoint(z,Le,b,E,!1,b))),An.free(ie))}else{Se=this.isAvoiding,Le&&(pe&&Se||de)&&this.Fj();var Ot=de?this.computeCurviness():0;Se=this.getLinkPoint(a,y,ne,!0,pe,E,x),Me=qe=ze=0,(pe||!ie||de)&&(Ct=this.computeEndSegmentLength(a,y,ne,!0),Me=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)&&(Me-=pe?90:30,0>Ot&&(Me-=180)),0>Me?Me+=360:360<=Me&&(Me-=360),de&&(Ct+=Math.abs(Ot)*(pe?1:2)),Me===0?ze=Ct:Me===90?qe=Ct:Me===180?ze=-Ct:Me===270?qe=-Ct:(ze=Ct*Math.cos(Me*Math.PI/180),qe=Ct*Math.sin(Me*Math.PI/180)),ne.Mc()&&de&&(Ct=y.ga(Xi,it.alloc()),yt=it.allocAt(Ct.x+1e3*ze,Ct.y+1e3*qe),this.getLinkPointFromPoint(a,y,Ct,yt,!0,Se),it.free(Ct),it.free(yt))),Ct=this.getLinkPoint(E,x,b,!1,pe,a,y);var zt=Dt=yt=0;if(pe||!se||de){var $t=this.computeEndSegmentLength(E,x,b,!1);zt=this.getLinkDirection(E,x,Ct,b,!1,pe,a,y),de&&(se||ne.D(b)||!pe&&ne.x+b.x===1&&ne.y+b.y===1)&&(zt+=pe?0:30,0>Ot&&(zt+=180)),0>zt?zt+=360:360<=zt&&(zt-=360),de&&($t+=Math.abs(Ot)*(pe?1:2)),zt===0?yt=$t:zt===90?Dt=$t:zt===180?yt=-$t:zt===270?Dt=-$t:(yt=$t*Math.cos(zt*Math.PI/180),Dt=$t*Math.sin(zt*Math.PI/180)),b.Mc()&&de&&(b=x.ga(Xi,it.alloc()),ne=it.allocAt(b.x+1e3*yt,b.y+1e3*Dt),this.getLinkPointFromPoint(E,x,b,ne,!1,Ct),it.free(b),it.free(ne))}b=Se,(pe||!ie||de)&&(b=new it(Se.x+ze,Se.y+qe)),ne=Ct,(pe||!se||de)&&(ne=new it(Ct.x+yt,Ct.y+Dt)),!Le&&!pe&&ie&&3<z&&this.adjustPoints(0,Se,z-2,ne)?this.dd(z-1,Ct):!Le&&!pe&&se&&3<z&&this.adjustPoints(1,b,z-1,Ct)?this.dd(0,Se):!Le&&(pe?6<=z:4<z)&&this.adjustPoints(1,b,z-2,ne)?(this.dd(0,Se),this.dd(z-1,Ct)):(this.Fj(),this.ne(Se),(pe||!ie||de)&&this.ne(b),pe&&this.addOrthoPoints(b,Me,ne,zt,a,E),(pe||!se||de)&&this.ne(ne),this.ne(Ct))}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}Hr.prototype.getLinkPointFromPoint=function(a,y,b,E,x,z){if(z===void 0&&(z=new it),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 Ip,b.port=y,b.node=y.part,y.Zn=b),p1(b,a)}Hr.prototype.getLinkPoint=function(a,y,b,E,x,z,ne,ie){if(ie===void 0&&(ie=new it),b.sb()&&!yg(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=it.alloc(),de=it.alloc();var pe=new An(y.ga(ho,se),y.ga(Fo,de)),Se=this.computeSpot(!E,ne);a=this.getLinkPoint(z,ne,Se,!E,x,a,y,de),(b.Hf(Hs)||b.Hf(da))&&a.y>=pe.y&&a.y<=pe.y+pe.height?ie.y=a.y:(b.Hf(ga)||b.Hf(Rs))&&a.x>=pe.x&&a.x<=pe.x+pe.width&&(ie.x=a.x),it.free(se),it.free(de)}}return ie}}return b=y.ga(b0(b),it.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=it.alloc(),ne=ne.ga(b0(se),z),x&&(ne=oy(b,ne)),it.free(z)),this.getLinkPointFromPoint(a,y,b,ne,E,ie),it.free(b),ie},Hr.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(Xi,it.alloc()),this.pointsCount>(z?6:2)?(ie=x?this.i(1):this.i(this.pointsCount-2),ie=z?oy(se,ie.copy()):b):(b=it.alloc(),ie=ie.ga(Xi,b),it.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,it.free(se),se=b}return E.Mc()&&ne.Td(a)&&(se+=180,360<=se&&(se-=360)),yg(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},Hr.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)},Hr.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Xi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ns?Yi:y)):(a=y||this.toPort,a===null?a=Xi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ns?Yi:y)),a};function yg(a){return a===Yi||a.x===.5&&a.y===.5}function b0(a){return a.x===.5&&a.y===.5?a:Xi}Hr.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==iu&&4<this.pointsCount?this.computeMidPoint(new it):(a=y.Zn,a=a!==null?p1(a,this):null,a!==null?a.Zo:y.ga(Xi))},Hr.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},Hr.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=Ri.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Ri.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,Le=this.naturalBounds;if(!(Se.x>Le.width||Se.y>Le.height||0>Se.x+Se.width||0>Se.y+Se.height)){if(Se=Ri.alloc(),Se.set(ne),pe instanceof Ar)ie=pe.Cf(a,y,b,E,x,Se);else if(this.path===pe){if(pe instanceof oo)if(ie=a,Le=E,pe.pickable===!1)ie=!1;else if(Se.multiply(pe.transform),Le)e:{var Me=ie,ze=Se;if(pe.fh(Me,ze))ie=!0;else{if(ze===void 0&&(ze=pe.transform,Me.Re(pe.actualBounds))){ie=!0;break e}ie=Me.left,Le=Me.right;var qe=Me.top;Me=Me.bottom;var Ct=it.alloc(),yt=it.alloc(),Dt=it.alloc(),Ot=Ri.alloc();Ot.set(ze),Ot.bv(pe.transform),Ot.Vj(),yt.x=Le,yt.y=qe,yt.transform(Ot),Ct.x=ie,Ct.y=qe,Ct.transform(Ot),ze=!1,Gf(pe,Ct,yt,Dt)?ze=!0:(Ct.x=Le,Ct.y=Me,Ct.transform(Ot),Gf(pe,Ct,yt,Dt)?ze=!0:(yt.x=ie,yt.y=Me,yt.transform(Ot),Gf(pe,Ct,yt,Dt)?ze=!0:(Ct.x=ie,Ct.y=qe,Ct.transform(Ot),Gf(pe,Ct,yt,Dt)&&(ze=!0)))),Ri.free(Ot),it.free(Ct),it.free(yt),it.free(Dt),ie=ze}}else ie=pe.fh(ie,Se)}else ie=Ts(pe,a,E,Se);ie&&(Le=pe,y!==null&&(Le=y(pe)),Le&&(b===null||b(Le))&&x.add(Le)),Ri.free(Se)}}}return z===void 0&&Ri.free(ne),ie||this.background!==null||this.areaBackground!==null}return z===void 0&&Ri.free(ne),!1},Hr.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?$u:this.curve},Hr.prototype.computeCorner=function(){if(this.curve===$u)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Hr.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},Hr.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(Xi).ab(b.ga(Xi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*x)+1)),this.curve===$u&&(a*=1.333)}}return a},Hr.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var b=a[y];b.computeAdjusting()===iu&&b.bb()}},Hr.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var b=Rr(),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),kr(b)}}return a},Hr.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Hr.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Hr.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(!en.$(de,0)){if(en.$(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 Le=E.y-Se;for(se=Math.sqrt(ie*ie+Le*Le),en.$(ie,0)?Le=0>Le?-Math.PI/2:Math.PI/2:(Le=Math.atan(Le/Math.abs(ie)),0>ie&&(Le=Math.PI-Le)),de=se/de,pe=Le-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),en.$(y,0)||(en.$(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,Le=E.y;var Me=1;if(se-ie!==0){var ze=(Le-pe)/(se-ie);Me=Math.sqrt(1+1/(ze*ze))}else ze=9e9;for(this.dd(a,y),a+=1;a<b;a++){y=this.i(a);var qe=y.x,Ct=y.y,yt=.5;de!==0&&(yt=((x-qe)*(x-ne)+(z-Ct)*(z-Se))/de);var Dt=x+yt*(ne-x),Ot=z+yt*(Se-z);y=Math.sqrt((qe-Dt)*(qe-Dt)+(Ct-Ot)*(Ct-Ot)),Ct<ze*(qe-Dt)+Ot&&(y=-y),0<ze&&(y=-y),qe=ie+yt*(se-ie),yt=pe+yt*(Le-pe),ze!==0?(y=qe+y/Me,this.L(a,y,yt-(y-qe)/ze)):this.L(a,qe,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,en.B(x.y,z.y)?en.B(z.x,ne.x)?pe=y.y:en.B(z.y,ne.y)&&(ie=y.x):en.B(x.x,z.x)&&(en.B(z.y,ne.y)?ie=y.x:en.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,Le=pe,en.B(x.y,z.y)?en.B(z.x,ne.x)?pe=E.y:en.B(z.y,ne.y)&&(ie=E.x):en.B(x.x,z.x)&&(en.B(z.y,ne.y)?ie=E.x:en.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,Le),b=!1;break e}this.dd(a,y),this.dd(b,E),b=!0}return b;default:return!1}},Hr.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=it.alloc(),pe=it.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 Le=this.diagram;if(Le===null||x===z||this.layer.isTemporary||!Qh(Le)||ie.ca(Se)&&!z.Td(x)||se.ca(a)&&!x.Td(z))y=!1;else{var Me=Rf(Le,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Me.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))&&Me.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))&&Me.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 ze=b=null;if(Le.isVirtualized){Le=Me.bounds.copy(),Le.Bc(-Me.Ho,-Me.Go);var qe=it.alloc();bg(Me,a.x,a.y)||(en.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,a.x,a.y,de.x,de.y,qe)?(b=a=qe.copy(),y=qe.ab(de)):en.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,de.x,de.y,pe.x,pe.y,qe)?(b=a=qe.copy(),y=qe.ab(pe)):en.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,pe.x,pe.y,Se.x,Se.y,qe)&&(b=a=qe.copy(),y=qe.ab(Se))),bg(Me,Se.x,Se.y)||(en.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,Se.x,Se.y,pe.x,pe.y,qe)?(ze=Se=qe.copy(),E=pe.ab(qe)):en.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,pe.x,pe.y,de.x,de.y,qe)?(ze=Se=qe.copy(),E=de.ab(qe)):en.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,de.x,de.y,a.x,a.y,qe)&&(ze=Se=qe.copy(),E=a.ab(qe))),it.free(qe)}ie=ie.copy().ed(se),ie.Bc(Me.Ho*Me.Os,Me.Go*Me.Os),h1(Me,a,y,Se,E,ie,!0),se=Id(Me,Se.x,Se.y),!Me.abort&&se>=Eg&&(d1(Me),ie.Bc(Me.Ho*Me.Hx,Me.Go*Me.Ix),h1(Me,a,y,Se,E,ie,!1),se=Id(Me,Se.x,Se.y)),!Me.abort&&se<Eg&&Id(Me,Se.x,Se.y)!==Ih?(sy(this,Me,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?en.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)):en.B(ie.y,ne.y)?(Math.abs(a.y-ie.y)<=Me.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)&&(en.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)):en.B(ie.x,ne.x)?(Math.abs(a.x-ie.x)<=Me.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)),ze!==null&&(E===0||E===180?this.yf(z.x,ze.y):this.yf(ze.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(de.copy()),this.ne(pe.copy())),it.free(de),it.free(pe)}},Hr.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||!Qh(a.diagram))return!1;var y=a.points.s,b=y.length;if(4>b)return!1;a=Rf(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=Id(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>Wf&&Id(y,pe,Se)!==de-1&&(Id(y,b-ie,E)===de-1?(x=180,pe=b-ie,Se=E):Id(y,b+ie,E)===de-1?(x=0,pe=b+ie,Se=E):Id(y,b,E-se)===de-1?(x=270,pe=b,Se=E-se):Id(y,b,E+se)===de-1&&(x=90,pe=b,Se=E+se));de>Wf&&Id(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>Wf&&(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>Wf&&(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),Id(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),Id(y,ne,pe)===de-1&&sy(a,y,ne,pe,z,!1,z))),a.yf(b,E)}Hr.prototype.ez=function(a){var y=a.x;a=a.y;for(var b=this.i(0),E=this.i(1),x=Hn(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=Hn(y,a,E.x,E.y,b.x,b.y);E=b,ie<x&&(z=ne,x=ie)}return z},Hr.prototype.qc=function(){this.lk=!1,this.v()},Hr.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 oo&&(x.ua=this.ua)}}},Hr.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,b=!1,E=this.diagram;E!==null&&Vf(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===$u&&3<=y&&!en.$(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||Vf(this)){if(a.type=Ir.o,ie=BS(a),this.computeShortLength(!0)!==0&&(x=Ap(this,x,!0,z)),mg(ie,x.x,x.y,!1),ne===$u&&3<=y&&!en.$(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=Ap(this,x,!1,z)),Th(ie,y,b,y,b,x.x,x.y);else if(this.isOrthogonal){y=it.allocAt(E,se),b=it.alloc(),b.assign(this.i(1)),z=it.allocAt(E,se),x=it.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 Le=ne,Me=de,ze=this.i(ly(this,de,Se,!1));if((!en.$(Le.x,Me.x)||!en.$(Me.x,ze.x))&&(!en.$(Le.y,Me.y)||!en.$(Me.y,ze.y))){var qe=pe;isNaN(qe)&&(qe=this.smoothness/3);var Ct=Le.x;Le=Le.y;var yt=Me.x;Me=Me.y;var Dt=ze.x;ze=ze.y;var Ot=qe*E0(Ct,Le,yt,Me);qe*=E0(yt,Me,Dt,ze),en.$(Le,Me)&&en.$(yt,Dt)&&(yt>Ct?ze>Me?(z.x=yt-Ot,z.y=Me-Ot,x.x=yt+qe,x.y=Me+qe):(z.x=yt-Ot,z.y=Me+Ot,x.x=yt+qe,x.y=Me-qe):ze>Me?(z.x=yt+Ot,z.y=Me-Ot,x.x=yt-qe,x.y=Me+qe):(z.x=yt+Ot,z.y=Me+Ot,x.x=yt-qe,x.y=Me-qe)),en.$(Ct,yt)&&en.$(Me,ze)&&(Me>Le?(Dt>yt?(z.x=yt-Ot,z.y=Me-Ot,x.x=yt+qe):(z.x=yt+Ot,z.y=Me-Ot,x.x=yt-qe),x.y=Me+qe):(Dt>yt?(z.x=yt-Ot,z.y=Me+Ot,x.x=yt+qe):(z.x=yt+Ot,z.y=Me+Ot,x.x=yt-qe),x.y=Me-qe)),(en.$(Ct,yt)&&en.$(yt,Dt)||en.$(Le,Me)&&en.$(Me,ze))&&(Ct=.5*(Ct+Dt),Le=.5*(Le+ze),z.x=Ct,z.y=Le,x.x=Ct,x.y=Le),(Se===1||Se===2&&en.$(ne.x,this.i(0).x)&&en.$(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=Ap(this,pe.copy(),!1,Or)),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),it.free(y),it.free(b),it.free(z),it.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=Ap(this,ne.copy(),!1,Or)),Th(ie,z.x-E,z.y-se,x.x-E,x.y-se,ne.x-E,ne.y-se);else{for(z=it.alloc(),z.assign(this.i(0)),x=it.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=Ap(this,pe.copy(),!1,Or)),Np(this,ie,-E,-se,z,pe,b);else if(de===0)for(Se=1;Se<y;)x.assign(z),pe=this.i(Se++),Np(this,ie,-E,-se,z,pe,b),z.assign(pe);break}if(de=ly(this,pe,Se+1,Se<y-3),Se=-E,Ct=-se,Le=pe,yt=this.i(de),qe=b,en.B(z.y,Le.y)&&en.B(Le.x,yt.x))if(ze=Math.min(ne,Math.abs(Le.x-x.x)/2),ze=Ot=Math.min(ze,Math.abs(yt.y-Le.y)/2),en.B(ze,0))Np(this,ie,Se,Ct,z,Le,qe),z.assign(Le);else{var zt=Le.x,$t=Le.y;Me=zt,Dt=$t,Le.x>z.x?zt=Le.x-ze:zt=Le.x+ze,yt.y>Le.y?Dt=Le.y+Ot:Dt=Le.y-Ot,yt=it.allocAt(zt,$t),Np(this,ie,Se,Ct,z,yt,qe),it.free(yt),d0(ie,Le.x+Se,Le.y+Ct,Me+Se,Dt+Ct),z.h(Me,Dt)}else en.B(z.x,Le.x)&&en.B(Le.y,yt.y)?(ze=Math.min(ne,Math.abs(Le.y-x.y)/2),ze=Ot=Math.min(ze,Math.abs(yt.x-Le.x)/2),en.B(Ot,0)?(Np(this,ie,Se,Ct,z,Le,qe),z.assign(Le)):(zt=Le.x,$t=Le.y,Me=zt,Dt=$t,Le.y>z.y?$t=Le.y-ze:$t=Le.y+ze,yt.x>Le.x?Me=Le.x+Ot:Me=Le.x-Ot,yt=it.allocAt(zt,$t),Np(this,ie,Se,Ct,z,yt,qe),it.free(yt),d0(ie,Le.x+Se,Le.y+Ct,Me+Se,Dt+Ct),z.h(Me,Dt))):(Np(this,ie,Se,Ct,z,Le,qe),z.assign(Le));x.assign(pe),Se=de}it.free(z)}h0=ie}else ie=this.i(1).copy(),ie.x-=E,ie.y-=se,this.computeShortLength(!0)!==0&&(x=Ap(this,x,!0,z)),this.computeShortLength(!1)!==0&&(ie=Ap(this,ie,!1,z)),a.type=Ir.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),en.$(a,0)?y:en.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Ap(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;en.$(y.x,z.x)&&en.$(y.y,z.y);){if(b>=x)return x-1;z=a.i(b++)}if(!en.$(y.x,z.x)&&!en.$(y.y,z.y))return b-1;for(var ne=z;en.$(y.x,z.x)&&en.$(z.x,ne.x)&&(!E||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||en.$(y.y,z.y)&&en.$(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}Hr.prototype.computeJumpLength=function(){return 10};function Np(a,y,b,E,x,z,ne){if(!ne&&Vf(a)){ne=a.computeJumpLength();var ie=ne/2,se=[],de=0;if(a.isVisible()&&(de=pE(a,x,z,se)),0<de){if(en.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 Le=Se+b,Me=Math.min(Se+ne,z.x);pe<de&&(Se=se[pe],Se<Me+ne);)pe++,Me=Math.min(Se+ie,z.x);Se=z.y-ne+E,Me+=b;var ze=z.y+E;a.curve===kh?mg(y,Me,ze,!1):Th(y,Le,Se,Me,Se,Me,ze)}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),Le=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,Me=z.y+E,a.curve===kh?mg(y,Se,Me,!1):Th(y,Le,pe,Se,pe,Se,Me)}else if(en.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),Le=Se+E,Se=Math.min(Se+ne,z.y);pe<de&&(Me=se[pe],Me<Se+ne);)pe++,Se=Math.min(Me+ie,z.y);Me=z.x-ne+b,ze=z.x+b,Se+=E,a.curve===kh?mg(y,ze,Se,!1):Th(y,Me,Le,Me,Se,ze,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),Le=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,Me=z.x+b,pe+=E,a.curve===kh?mg(y,Me,pe,!1):Th(y,Se,Le,Se,pe,Me,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 Hr){if(se===a)return 0<E.length&&E.sort(function(pe,Se){return pe-Se}),E.length;if(se.isVisible()&&Vf(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=en.B(a.y,y.y),z=E.pointsCount,ne=E.i(0),ie=it.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,Le=y.x,Me=y.y,ze=ne.x;ne=ne.y;var qe=de.x,Ct=de.y;if(en.B(pe,Le)){if(!en.B(Se,Me)&&en.B(ne,Ct)&&Math.min(Se,Me)<ne&&Math.max(Se,Me)>ne&&Math.min(ze,qe)<pe&&Math.max(ze,qe)>pe&&!en.B(ze,qe)){ie.x=pe,ie.y=ne,pe=!0;break e}}else if(en.B(Se,Me)&&en.B(ze,qe)&&Math.min(pe,Le)<ze&&Math.max(pe,Le)>ze&&Math.min(ne,Ct)<Se&&Math.max(ne,Ct)>Se&&!en.B(ne,Ct)){ie.x=ze,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}it.free(ie)}function Vf(a){return a=a.curve,a===Sg||a===kh}function x0(a,y){(y||Vf(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()))}Hr.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 Hr&&(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 Hr&&s1(this,ie,a)}}}}};function s1(a,y,b){if(y!==null&&y.lk&&y.fd&&Vf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||b.Yc(E))&&(a.usesSamePort(y)||y.qc())}}Hr.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},Hr.prototype.isVisible=function(){if(!Pi.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},Hr.prototype.Zb=function(a){if(Pi.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)},Hr.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&&(Ve(y.links,a),y.Sl()))}Hr.prototype.ph=function(){return!0},$n.Object.defineProperties(Hr.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),vg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var b=this.fromPort;b!==null&&Vu(b),tm(this),this.ff=a;var E=this.fromPort;E!==null&&Vu(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),vg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var b=this.toPort;b!==null&&Vu(b),tm(this),this.vf=a;var E=this.toPort;E!==null&&Vu(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:ns},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&&Vu(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&&Nr(a,">= 0",Hr,"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:ns},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&&Vu(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&&Nr(a,">= 0",Hr,"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?ro: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 oo?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()===$u&&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),en.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);en.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 it)}},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);en.$(E.x,x.x)?(E=x.y-E.y,0>E&&(E=-E)):en.$(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 qn,E=0;E<a.length/2;E++)x=new it(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(!Yt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(b=new qn,E=0;E<a.length;E++)x=a[E],b.add(new it(x.x,x.y).freeze())}}else if(a instanceof qn)for(b=a.copy(),a=b.iterator;a.next();)a.value.freeze();else Lt("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||!yg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!yg(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===Sg||a===kh||a===Sg),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)}}}),Hr.prototype.invalidateOtherJumpOvers=Hr.prototype.Xo,Hr.prototype.findClosestSegment=Hr.prototype.ez,Hr.prototype.updateRoute=Hr.prototype.vg,Hr.prototype.invalidateRoute=Hr.prototype.bb,Hr.prototype.rollbackRoute=Hr.prototype.rv,Hr.prototype.commitRoute=Hr.prototype.zf,Hr.prototype.startRoute=Hr.prototype.uh,Hr.prototype.clearPoints=Hr.prototype.Fj,Hr.prototype.removePoint=Hr.prototype.pv,Hr.prototype.addPointAt=Hr.prototype.yf,Hr.prototype.addPoint=Hr.prototype.ne,Hr.prototype.insertPointAt=Hr.prototype.m,Hr.prototype.insertPoint=Hr.prototype.Kz,Hr.prototype.setPointAt=Hr.prototype.L,Hr.prototype.setPoint=Hr.prototype.dd,Hr.prototype.getPoint=Hr.prototype.i,Hr.prototype.getOtherPort=Hr.prototype.Cz,Hr.prototype.getOtherNode=Hr.prototype.To;var Lp=null,kp=null,uy=new mn(Hr,"Normal",1),mE=new mn(Hr,"Orthogonal",2),vE=new mn(Hr,"AvoidsNodes",6),l1=new mn(Hr,"AvoidsNodesStraight",7),iu=new mn(Hr,"None",0),$u=new mn(Hr,"Bezier",9),kh=new mn(Hr,"JumpGap",10),Sg=new mn(Hr,"JumpOver",11),nm=new mn(Hr,"End",17),w0=new mn(Hr,"Scale",18),C0=new mn(Hr,"Stretch",19),rm=new mn(Hr,"OrientAlong",21),im=new mn(Hr,"OrientPlus90",22),om=new mn(Hr,"OrientMinus90",23),cy=new mn(Hr,"OrientOpposite",24),P0=new mn(Hr,"OrientUpright",25),am=new mn(Hr,"OrientPlus90Upright",26),sm=new mn(Hr,"OrientMinus90Upright",27),T0=new mn(Hr,"OrientUpright45",28),u1=16,c1=14,lm=8;Hr.className="Link",Hr.Normal=uy,Hr.Orthogonal=mE,Hr.AvoidsNodes=vE,Hr.AvoidsNodesStraight=l1,Hr.None=iu,Hr.Bezier=$u,Hr.JumpGap=kh,Hr.JumpOver=Sg,Hr.End=nm,Hr.Scale=w0,Hr.Stretch=C0,Hr.OrientAlong=rm,Hr.OrientPlus90=im,Hr.OrientMinus90=om,Hr.OrientOpposite=cy,Hr.OrientUpright=P0,Hr.OrientPlus90Upright=am,Hr.OrientMinus90Upright=sm,Hr.OrientUpright45=T0,Hr.EndSegmentStep=8,Hr.CurvinessStart=u1,Hr.SpacingMin=c1,Hr.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 bg(a,y,b){return a.Nd<=y&&y<=a.En&&a.Od<=b&&b<=a.Fn}function Id(a,y,b){return bg(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]>=Wf&&(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 Dd(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>=Wf&&Se<Eg)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)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(a,y,b,-1,!x,z,ne,ie,se);else for(b+=E;b>de;b+=E)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(a,y,b,-1,!x,z,ne,ie,se);else if(0<E)for(y+=E;y<de;y+=E)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(a,y,b,-1,!x,z,ne,ie,se);else for(y+=E;y>de;y+=E)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(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=Wf;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=Eg;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(bg(a,ie,se)){ie-=a.Nd,ie/=a.rc,se-=a.Od,se/=a.sc;var de=E.x,pe=E.y;if(bg(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 Le=z.y+z.height;Se-=a.Nd,Se/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Le-=a.Od,Le/=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)),Le=Math.min(a.ei,Math.max(0,Le|0)),E=a.ac,ie|=0,se|=0,de|=0,pe|=0;var Me=b===0||b===90?1:-1;if(b=b===90||b===270,E[ie][se]===Ih?(N0(a,ie,se,Me,b,z,y,Se,Le),N0(a,ie,se,1,!b,z,y,Se,Le),N0(a,ie,se,-1,!b,z,y,Se,Le)):N0(a,ie,se,Me,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,Le),L0(a,de,pe,1,!(x===90||x===270),z,y,Se,Le),L0(a,de,pe,-1,!(x===90||x===270),z,y,Se,Le)):L0(a,de,pe,Me,b,de,pe,de,pe),b=Rr(),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=Wf,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 Dd(a,ie,se,1,!1,z,y,Se,Le),Dd(a,ie,se,-1,!1,z,y,Se,Le),Dd(a,ie,se,1,!0,z,y,Se,Le),Dd(a,ie,se,-1,!0,z,y,Se,Le);kr(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 Le=ie[pe][Se];if(Le===0||Le===hy)break;se=pe,de=Se}for(;;){if(pe=E,Se=se,Le=de,E===0?Le<z?(pe=90,Le++):Le>z&&(pe=270,Le--):E===90?Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--):E===180?Le<z?(pe=90,Le++):Le>z&&(pe=270,Le--):Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--),Se=ie[Se][Le],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++}}}$n.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,Wf=1,Eg=999999,dy=Eg+1,hy=Eg+2;um.className="PositionArray";function Ip(){vi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Ip.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}Ip.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 no?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(ho,it.alloc()),se=a.port.ga(Fo,it.alloc());for(x=An.allocAt(ie.x,ie.y,0,0),x.Ye(se),it.free(ie),it.free(se),ie=it.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 Le=pe.part;if(Le!==null){var Me=Le.findVisibleNode();Me!==null&&Me!==Le&&(Le=Me,pe=Le.port),pe=de.computeOtherPoint(Le,pe),Le=ie.ab(pe),Le-=se,0>Le?Le+=360:360<=Le&&(Le-=360),Se=yE(x,Se,Le,de.isOrthogonal),Se===0?(Se=4,180<Le&&(Le-=360)):Se===90?(Se=8,270<Le&&(Le-=360)):Se===180?Se=2:(Se=1,90>Le&&(Le+=360)),Me=a.pe[z],Me===void 0?(Me=new fy(de,Le,Se),a.pe[z]=Me):(Me.link=de,Me.angle=Le,Me.Nc=Se),Me.hv.set(pe),z++}}}}for(it.free(ie),a.pe.sort(Ip.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=it.alloc(),se=it.alloc(),ne=it.alloc(),de=it.alloc(),Se.ga(ho,ie),Se.ga(Do,se),Se.ga(Fo,ne),Se.ga(pa,de),Me=Le=pe=Se=0,E===ny)for(var ze=0;ze<z.length;ze++){var qe=z[ze];if(qe!==null){var Ct=qe.link.computeThickness();switch(qe.Nc){case 8:Le+=Ct;break;case 2:Me+=Ct;break;case 1:Se+=Ct;break;default:case 4:pe+=Ct}}}var yt=ze=0,Dt=1,Ot=qe=0;for(Ct=0;Ct<z.length;Ct++){var zt=z[Ct];if(zt!==null){if(ze!==zt.Nc){switch(ze=zt.Nc,ze){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(qe=yt.x-$t.x,Ot=yt.y-$t.y,ze){case 8:Le>Math.abs(qe)?(Dt=Math.abs(qe)/Le,Le=Math.abs(qe)):Dt=1;break;case 2:Me>Math.abs(Ot)?(Dt=Math.abs(Ot)/Me,Me=Math.abs(Ot)):Dt=1;break;case 1:Se>Math.abs(qe)?(Dt=Math.abs(qe)/Se,Se=Math.abs(qe)):Dt=1;break;default:case 4:pe>Math.abs(Ot)?(Dt=Math.abs(Ot)/pe,pe=Math.abs(Ot)):Dt=1}yt=0}var In=zt.Zo;if(E===ny){switch(zt=zt.link.computeThickness(),zt*=Dt,In.set($t),ze){case 8:In.x=$t.x+qe/2+Le/2-yt-zt/2;break;case 2:In.y=$t.y+Ot/2+Me/2-yt-zt/2;break;case 1:In.x=$t.x+qe/2-Se/2+yt+zt/2;break;default:case 4:In.y=$t.y+Ot/2-pe/2+yt+zt/2}yt+=zt}else{var Jr=.5;E===v0&&(Jr=(zt.Uo+1)/(zt.Gl+1)),In.x=$t.x+qe*Jr,In.y=$t.y+Ot*Jr}}}for(it.free(ie),it.free(se),it.free(ne),it.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}Ip.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},Ip.prototype.computeEndSegmentLength=function(a){var y=a.link,b=y.computeEndSegmentLength(this.node,this.port,Yi,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)},Ip.className="Knot";function fy(a,y,b){this.link=a,this.angle=y,this.Nc=b,this.hv=new it,this.Gl=this.Uo=0,this.Zo=new it,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 Pa(a){vi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new it(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Pa.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},Pa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Pa.prototype.qb=function(){},Pa.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+")"},Pa.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())}}},Pa.prototype.createNetwork=function(){return new ba(this)},Pa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof kn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof no?y.lg(a.memberParts):y.lg(a.iterator),y},Pa.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")}},Pa.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()}},Pa.prototype.doLayout=function(a){var y=new lr;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 no?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},Pa.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 no&&(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++}},Pa.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 Hr)&&(cm(ie),this.rh(ie))){var se=ie.measuredBounds,de=se.width;se=se.height,ie.moveTo(b,E),ie instanceof no&&(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++}}},Pa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof no&&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 qr?se.isLinkLabel||(se instanceof no&&se.layout===null?sf(a,y,se.memberParts,!1,x,z,ne,ie):(cm(se),y.add(se))):ne&&se instanceof Hr?y.add(se):!ie||!se.Zc()||se instanceof qr||(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()}Pa.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},Pa.prototype.ex=function(a){var y=new lr;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 no?sf(this,y,a.memberParts,!1,null,!0,!0,!0):sf(this,y,a.iterator,!1,null,!0,!0,!0),y},Pa.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(ho),(isNaN(b.x)||isNaN(b.y))&&b.set(a),a=y.padding,b.x+=a.left,b.y+=a.top),b}return a},$n.Object.defineProperties(Pa.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())}}}),Pa.prototype.collectParts=Pa.prototype.ex,Pa.prototype.getLayoutBounds=Pa.prototype.ni,Pa.prototype.invalidateLayout=Pa.prototype.C,Pa.className="Layout";function ba(a){vi(this),this.Sc=a,this.wf=new lr,this.ye=new lr,this.Es=new wn,this.zs=new wn}ba.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 lr,this.ye=new lr,this.Es=new wn,this.zs=new wn},ba.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},ba.prototype.createVertex=function(){return new Ns(this)},ba.prototype.createEdge=function(){return new Wu(this)},ba.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 qr)return!ne.isLinkLabel;if(ne instanceof Hr){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 qr&&(!y||E.isTopLevel)&&E.canLayout()&&b(E)){if(E instanceof no&&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 Hr&&(!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))}}},ba.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},_e=ba.prototype,_e.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},_e.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},_e.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}_e.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},_e.ki=function(a){return a===null?null:this.Es.I(a)},_e.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}}_e.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},_e.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))}_e.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},_e.Lo=function(a){return a===null?null:this.zs.I(a)},_e.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},_e.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))}},_e.Ko=function(){for(var a=Rr(),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]);kr(a)},ba.prototype.deleteArtificialVertexes=function(){for(var a=Rr(),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=Rr(),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]);kr(a),kr(y)};function SE(a){for(var y=Rr(),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]);kr(y)}ba.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),SE(this),this.Ko()),a=new qn;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))}}ba.prototype.dz=function(){for(var a=new lr,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},$n.Object.defineProperties(ba.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}}}),ba.prototype.findAllParts=ba.prototype.dz,ba.prototype.splitIntoSubNetworks=ba.prototype.Zx,ba.prototype.deleteSelfEdges=ba.prototype.Ko,ba.prototype.reverseEdge=ba.prototype.gm,ba.prototype.linkVertexes=ba.prototype.Zj,ba.prototype.findEdge=ba.prototype.Lo,ba.prototype.deleteLink=ba.prototype.Yy,ba.prototype.deleteEdge=ba.prototype.Mj,ba.prototype.addLink=ba.prototype.Dy,ba.prototype.addEdge=ba.prototype.Bo,ba.prototype.findVertex=ba.prototype.ki,ba.prototype.deleteNode=ba.prototype.Zy,ba.prototype.deleteVertex=ba.prototype.Iu,ba.prototype.addNode=ba.prototype.Bl,ba.prototype.addVertex=ba.prototype.dh,ba.prototype.addParts=ba.prototype.lg,ba.className="LayoutNetwork";function Ns(a){vi(this),this.ob=a,this.j=new An(0,0,10,10).freeze(),this.o=new it(5,5).freeze(),this.Sh=this.ub=null,this.tg=new qn,this.mg=new qn}Ns.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new qn,this.mg=new qn},Ns.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Oi(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},Ns.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,b=a.bounds;Yt(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 no)){b=An.alloc(),a.Va();var E=this.network.layout.ni(a,b),x=a.locationObject.ga(Xi);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)}},Ns.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ns.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ns.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ns.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}$n.Object.defineProperties(Ns.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 no)&&(a=a.locationObject.ga(Xi),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 lr,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new lr,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new lr,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 qn,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}}}),Ns.prototype.deleteDestinationEdge=Ns.prototype.Jl,Ns.prototype.addDestinationEdge=Ns.prototype.zl,Ns.prototype.deleteSourceEdge=Ns.prototype.Kl,Ns.prototype.addSourceEdge=Ns.prototype.Cl,Ns.className="LayoutVertex",Ns.standardComparer=vy,Ns.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 Wu(a){vi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Wu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Wu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Oi(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},Wu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Wu.prototype.commit=function(){},Wu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},$n.Object.defineProperties(Wu.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)}}}),Wu.prototype.getOtherVertex=Wu.prototype.Ax,Wu.className="LayoutEdge";function nl(a){Pa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new an(NaN,NaN).freeze(),this.tf=new an(10,10).freeze(),this.Jb=dm,this.Rb=I0,this.nd=hm,this.hd=m1,a&&Object.assign(this,a)}Sn(nl,Pa),nl.prototype.cloneProtected=function(a){Pa.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},nl.prototype.qb=function(a){a.classType===nl?a===hm||a===R0||a===yy||a===D0?this.sorting=a:a===I0||a===ed?this.arrangement=a:a===dm||a===k0?this.alignment=a:Lt("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},nl.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 no)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 Le=this.ni(x[Se],de);pe=Math.max(pe,Le.width)}if(pe=Math.max(pe+ie,1),Se=Math.max(this.cellSize.height,1),!isFinite(Se))for(Le=Se=0;Le<x.length;Le++){var Me=this.ni(x[Le],de);Se=Math.max(Se,Me.height)}Se=Math.max(Se+se,1),Le=this.arrangement;for(var ze=Me=this.arrangementOrigin.x,qe=this.arrangementOrigin.y,Ct=0,yt=0,Dt=0;Dt<x.length;Dt++){var Ot=x[Dt],zt=this.ni(Ot,de),$t=Math.ceil((zt.width+ie)/pe)*pe,In=Math.ceil((zt.height+se)/Se)*Se;switch(Le){case ed:var Jr=Math.abs(ze-zt.width);break;default:Jr=ze+zt.width}switch((0<z&&Ct>z-1||0<ne&&0<Ct&&Jr-Me>ne)&&(E.push(new An(0,qe,ne+ie,yt)),Ct=0,ze=Me,qe+=yt,yt=0),yt=Math.max(yt,In),Le){case ed:zt=-zt.width;break;default:zt=0}switch(Ot.moveTo(ze+zt,qe),Le){case ed:ze-=$t;break;default:ze+=$t}Ct++}E.push(new An(0,qe,ne+ie,yt)),An.free(de);break;case dm:for(se=ne,pe=z,Se=y,Le=b,ne=An.alloc(),Me=Math.max(this.cellSize.width,1),z=qe=de=0,ie=it.alloc(),ze=0;ze<x.length;ze++)yt=x[ze],Ct=this.ni(yt,ne),yt=Ah(yt,yt.locationObject,yt.locationSpot,ie),de=Math.max(de,yt.x),qe=Math.max(qe,Ct.width-yt.x),z=Math.max(z,yt.y);switch(ze=this.arrangement,ze){case ed:de+=Se;break;default:qe+=Se}Me=isFinite(Me)?Math.max(Me+Se,1):Math.max(de+qe,1);var mi=yt=this.arrangementOrigin.x;for(Dt=this.arrangementOrigin.y,qe=0,se>=de&&(se-=de),de=Ot=0,$t=Math.max(this.cellSize.height,1),zt=z=0,In=!0,Ct=it.alloc(),Jr=0;Jr<x.length;Jr++){var ui=x[Jr],Ur=this.ni(ui,ne),pr=Ah(ui,ui.locationObject,ui.locationSpot,ie);if(0<qe)switch(ze){case ed:mi=(mi-yt-(Ur.width-pr.x))/Me,mi=en.$(Math.round(mi),mi)?Math.round(mi):Math.floor(mi),mi=mi*Me+yt;break;default:mi=(mi-yt+pr.x)/Me,mi=en.$(Math.round(mi),mi)?Math.round(mi):Math.ceil(mi),mi=mi*Me+yt}else switch(ze){case ed:Ot=mi+pr.x+Ur.width;break;default:Ot=mi-pr.x}switch(ze){case ed:var $i=-(mi+pr.x)+Ot;break;default:$i=mi+Ur.width-pr.x-Ot}if(0<pe&&qe>pe-1||0<se&&0<qe&&$i>se){for(E.push(new An(0,In?Dt-z:Dt,se+Se,zt+z+Le)),mi=0;mi<qe&&Jr!==qe;mi++){$i=x[Jr-qe+mi];var _i=Ah($i,$i.locationObject,$i.locationSpot,Ct);$i.moveTo($i.position.x,$i.position.y+z-_i.y)}zt+=Le,Dt=In?Dt+zt:Dt+(zt+z),qe=zt=z=0,mi=yt,In=!1}switch(mi===yt&&(de=ze===ed?Math.max(de,Ur.width-pr.x):Math.min(de,-pr.x)),z=Math.max(z,pr.y),zt=Math.max(zt,Ur.height-pr.y),isFinite($t)&&(zt=Math.max(zt,Math.max(Ur.height,$t)-pr.y)),In?ui.moveTo(mi-pr.x,Dt-pr.y):ui.moveTo(mi-pr.x,Dt),ze){case ed:mi-=pr.x+Se;break;default:mi+=Ur.width-pr.x+Se}qe++}if(E.push(new An(0,Dt,se+Se,(In?zt:zt+z)+Le)),x.length!==qe)for(se=0;se<qe;se++)pe=x[x.length-qe+se],Se=Ah(pe,pe.locationObject,pe.locationSpot,ie),pe.moveTo(pe.position.x,pe.position.y+z-Se.y);if(it.free(ie),it.free(Ct),ze===ed)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===ed?this.commitLayers(E,new it(x+y/2-(z+x),ne-b/2)):this.commitLayers(E,new it(x-y/2,ne-b/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},nl.prototype.commitLayers=function(){};function m1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}$n.Object.defineProperties(nl.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!==ed||(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 mn(nl,"Position",0),dm=new mn(nl,"Location",1),I0=new mn(nl,"LeftToRight",2),ed=new mn(nl,"RightToLeft",3),yy=new mn(nl,"Forward",4),D0=new mn(nl,"Reverse",5),hm=new mn(nl,"Ascending",6),R0=new mn(nl,"Descending",7);nl.className="GridLayout",nl.standardComparer=m1,nl.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},nl.Position=k0,nl.Location=dm,nl.LeftToRight=I0,nl.RightToLeft=ed,nl.Forward=yy,nl.Reverse=D0,nl.Ascending=hm,nl.Descending=R0;function Jo(){this.On=new lr,this.Dn=new lr,this.Pa=new lr,this.cf=new wn,this.bf=new wn,this.aj=new wn,this.H=null,this.tp=!1}_e=Jo.prototype,_e.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},_e.Xe=function(a){this.H=a},_e.oi=function(a){if(a instanceof qr){if(this.On.add(a),a instanceof no){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 Hr?this.Dn.add(a):a instanceof Mo||this.Pa.add(a);y=a.data,y===null||a instanceof Mo||(a instanceof Hr?this.bf.add(y,a):this.cf.add(y,a))},_e.pc=function(a){if(a.Ej(),a instanceof qr){if(this.On.remove(a),a instanceof no){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 Hr?this.Dn.remove(a):a instanceof Mo||this.Pa.remove(a);y=a.data,y===null||a instanceof Mo||(a instanceof Hr?this.bf.remove(y):this.cf.remove(y))},_e.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 no)&&Lt('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 no||Lt('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 Hr||Lt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+b);for(y=Rr(),b=a.selection.iterator;b.next();)(E=b.value.data)&&y.push(E);for(b=Rr(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&b.push(E);for(a=Rr(),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]);kr(y),kr(b),kr(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&&Xh(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&&(Tc(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,Er('No Group template found for category "'+b+'"'),Er(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(b),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(b1||(b1=!0,Er('No Node template found for category "'+b+'"'),Er(" 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,Er('No Link template found for category "'+a+'"'),Er(" 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&&(lp(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 qr?a:null)},Jo.prototype.findLinkForKey=function(){return null},_e=Jo.prototype,_e.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},_e.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof qr?a:null)},_e.Kc=function(a){return a===null?null:this.bf.I(a)},_e.ms=function(a){for(var y=0;y<arguments.length;++y);y=new lr;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(Yt(ne)&&Sy(this,x,ne)){y.add(E);break}}}return y.iterator},_e.ls=function(a){for(var y=0;y<arguments.length;++y);y=new lr;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(Yt(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(Nn(z)){if(!Nn(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(Yt(y)&&Yt(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===oa){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"&&Yt(ne)&&v1(this,ne),y.isModified=!0}else if(b===La){var ie=a.oldValue;E==="nodeDataArray"&&Yt(ie)&&this.ip(ie),y.isModified=!0}else b===Os&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(b===oa){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===La){var pe=a.change===Ta,Se=pe?a.newParam:a.oldParam,Le=pe?a.newValue:a.oldValue,Me=this.aj.I(a.object);if(Array.isArray(Me))for(a=0;a<Me.length;a++){var ze=Me[a];if(pe)qm(ze,Le,Se,!0);else if(!(0>Se)){var qe=Se+Kg(ze);ze.pc(qe,!0),Rv(ze,qe,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 lr,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=Rr()),b.push(ne))}if(b!==null)break}if(b!==null){for(E=0;E<b.length;E++)b[E].La(y);kr(b)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function by(a,y){var b=y.Hh;if(Nn(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){Hf(y,function(ne){ne=ne.O.s;for(var ie=ne.length,se=0;se<ie;se++)fp(b,ne[se])});var E=y.Hh;if(Nn(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 wn;if(Nn(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 lr;for(var z=new wn,ne=E.iterator;ne.next();){var ie=ne.value;if(ie instanceof Hr)a||ie.fromNode!==null&&ie.toNode!==null||x.add(ie);else if(ie instanceof qr&&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 wn;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 Pi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof qr){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 no&&z instanceof no)for(y=y.memberParts;y.next();)ne=M0(a,y.value,b,E,x),ne instanceof Hr||ne===null||(ne.containingGroup=z)}else if(y instanceof Hr&&z instanceof Hr)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 qr&&(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 Hr||(E=x.copyNodeData(E),Yt(E)&&(x.xf(E),b=y.Lc(E)))}else Tc(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 Hr||(x=y.copyNodeData(E)),Yt(x)&&(b.data=x)));return b},$n.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 Ks(a){Jo.apply(this,arguments)}Sn(Ks,Jo),Ks.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),w1(this,a.linkDataArray)},Ks.prototype.addModeledParts=function(a){for(Jo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)vg(a.value);Xh(this.diagram,!1)};function w1(a,y){y.forEach(function(b){C1(a,b)}),Xh(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){Tc(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=ec(b,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof qr&&(x.fromNode=z)),z=_0(b,y,!1),z!==""&&(x.toPortId=z),z=ec(b,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof qr&&(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}}}}Ks.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)})}Ks.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Ks.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Ks.prototype.setFromNodeForLink=function(a,y){var b=this.diagram.model;b.wv(a.data,b.wa(y!==null?y.data:null))},Ks.prototype.setToNodeForLink=function(a,y){var b=this.diagram.model;b.Bv(a.data,b.wa(y!==null?y.data:null))},Ks.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Ks.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},Ks.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Ks.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===oa){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 Le=a.newValue;typeof Le=="string"&&(Se.toPortId=Le)}}else if(x==="nodeGroupKey"){var Me=this.Lc(a.object);if(Me!==null){var ze=a.newValue;if(ze!==void 0){var qe=this.Vb(ze);qe instanceof no?Me.containingGroup=qe:Me.containingGroup=null}else Me.containingGroup=null}}else if(x==="linkLabelKeys"){var Ct=this.Kc(a.object);if(Ct!==null){var yt=a.oldValue,Dt=a.newValue;Array.isArray(yt)&&yt.forEach(function(pr){0<=Dt.indexOf(pr)||(pr=y.Vb(pr),pr!==null&&(pr.labeledLink=null))}),Array.isArray(Dt)&&Dt.forEach(function(pr){pr=y.Vb(pr),pr!==null&&(pr.labeledLink=Ct)})}}else if(x==="linkCategory"){var Ot=this.Kc(a.object),zt=a.newValue;Ot!==null&&typeof zt=="string"&&(Ot.category=zt)}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),Jr=this.Vb($t);In!==null&&Jr!==null&&(Jr.labeledLink=In)}b.isModified=!0}else if(E===La){var mi=a.oldValue;if(x==="linkDataArray"&&typeof mi=="object"&&mi!==null)this.ip(mi);else if(x==="linkLabelKeys"&&uf(mi)){var ui=this.Vb(mi);ui!==null&&(ui.labeledLink=null)}b.isModified=!0}}else if(E===oa){var Ur=a.propertyName;a.object!==b.model||Ur!=="linkFromKeyProperty"&&Ur!=="linkToKeyProperty"&&Ur!=="linkFromPortIdProperty"&&Ur!=="linkToPortIdProperty"&&Ur!=="linkLabelKeysProperty"&&Ur!=="nodeIsGroupProperty"&&Ur!=="nodeGroupKeyProperty"&&Ur!=="linkCategoryProperty"||b.undoManager.isUndoingRedoing||this.Wd(),b.isModified=!0}}finally{b.aa=!0}}}}},Ks.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,b=new lr,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)})},Ks.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 Hr){var x=ec(E,y,!0);if(x=b.Vb(x),a.fromNode=x,x=ec(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 lr().addAll(y);var ne=new lr;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 Mo)&&(y=E.lh(y),y=b.findPartForKey(y),y===null||y instanceof no)&&(a.containingGroup=y)}}},Ks.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 no&&y.lh(ne)===b&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=x)):(z.link=this.Kc(ne),z.link!==null&&x instanceof qr&&(ec(y,ne,!0)===b&&(z.link.fromNode=x),ec(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}}nd(y,b)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof no&&(x.containingGroup=a))}},Ks.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof qr){var b=y.wa(a.data);if(b!==void 0){for(var E=a.linksConnected;E.next();)td(y,b,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&td(y,b,E.data)),a instanceof no)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&td(y,b,E)}}},Ks.prototype.copyPartData=function(a,y){var b=Jo.prototype.copyPartData.call(this,a,y);if(a instanceof Hr)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},Ks.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 Hr){if(Tc(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 qr&&(Tc(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&&wg(z,E,z.wa(a.data),!0),Cg(z,E,ie,!0),b!==null&&wg(z,E,z.wa(b.data),!1),Cg(z,E,y,!1),z.fi(E),a=ne.archetypeLabelNodeData,a===null||a instanceof qr||(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},Ks.prototype.findLinkForKey=Ks.prototype.findLinkForKey,Ks.prototype.findPartForKey=Ks.prototype.findPartForKey,Ks.prototype.removeAllModeledParts=Ks.prototype.removeAllModeledParts,Ks.prototype.addModeledParts=Ks.prototype.addModeledParts,Ks.prototype.addAllModeledParts=Ks.prototype.addAllModeledParts,Ks.className="GraphLinksPartManager";function pc(){Jo.apply(this,arguments),this.Sg=null}Sn(pc,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||!$s(E,x,z,null,!0))&&(y=a.getLinkCategoryForData(b.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Tc(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}}}pc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},pc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},pc.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}},pc.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))},pc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},pc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},pc.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===oa){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===oa){var Se=a.propertyName;a.object===y.model&&Se==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},pc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var b=a.diagram;if(b!==null){var E=b.model;a instanceof qr&&(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&&lp(b,E,!1)))}}},pc.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))},pc.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 qr&&y.mh(z)===b&&O0(this,x,this.ii(z))}nd(y,b)}a=y.mh(a),a!==void 0&&x instanceof qr&&(a=this.Vb(a),O0(this,a,x))}},pc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof qr){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(La,"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)&&td(y,b,x)}},pc.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},pc.prototype.findLinkForKey=pc.prototype.findLinkForKey,pc.className="TreePartManager";function Ei(a,y){this.kl=new lr,this.il=new lr,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 wn,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 wn,this.Lt=new qn,this.Wg=!1,this.o=null,this.undoManager=new na,a!==void 0&&(Nn(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!==Os&&Lt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Za?(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 lr,z=new lr,ne=new lr,ie=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="nodeDataArray"?Se.change===Ta?x.add(Se.newValue):Se.change===La&&ne.add(Se.oldValue):b.lb(Se.object)?z.add(Se.object):Se.change!==oa||b.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(ie&&ie.contains(Se.object)?ie.get(Se.object).each(function(Le){b.lb(Le)&&z.add(Le)}):Se.object instanceof Ei||b.ri()&&b.Jc(Se.object)||N1(b,Se.object).each(function(Le){z.add(Le)})):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 xg(this,a,!0)};function xg(a,y,b,E,x,z){function ne(Se,Le){ie?(Se.__gohashid===void 0&&z.push(Se),E.set(Se,Le)):(Se=fo++,E.set(Se,Le),x.set(Se,y))}if(!Yt(y))return y;z||(z=[]);var ie=Object.isExtensible(y);if(E||(E=new wn),ie){var se=E.get(y);if(se)return se}else for(x||(x=new wn),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(xg(a,y[pe],!1,E,x,z))}else if(y instanceof it||y instanceof an||y instanceof An||y instanceof to||y instanceof fi)se=y.copy(),ne(y,se);else{if(y instanceof _o||y instanceof Ir||y instanceof mn)return y;if(y instanceof qn)se=new qn().addAll(xg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof lr)se=new lr().addAll(xg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof wn)se=new wn().addAll(xg(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]=xg(a,y[pe],!1,E,x,z))}return b&&z.forEach(function(Se){delete Se.__gohashid}),se}_e=Ei.prototype,_e.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},_e.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},_e.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,Yt(y)&&(a.dm(y),a.modelData=y)}_e.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)},_e.kv=function(a){T1(this,a),a=a.nodeDataArray,Nn(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 lr,ne.add(z),E.add(x,ne)):ne.add(z)}}var E=a.vh;E===null&&(E=new wn,y.changes.each(function(x){if(x.diagram!==null){var z=x.change;z===oa?(x=x.object.panel)&&(z=x.data)&&b(z,x):(z===Ta||z===La)&&(x=x.object,(z=x.itemArray)&&b(z,x))}}),a.vh=E)}function N1(a,y){for(var b=new lr,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(Yt(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}_e.Pv=function(a,y){var b=this,E=!1,x=new lr,z=new lr,ne=new lr,ie=this.vh;a.changes.each(function(pe){pe.model===b&&(pe.modelChange==="nodeDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===La&&ne.add(pe.oldValue):b.lb(pe.object)?z.add(pe.object):pe.change!==oa||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},_e.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)&&Lt("applyIncrementalJson cannot change Model properties"),T1(this,a);var y=a.insertedNodeKeys,b=a.modifiedNodeData,E=new wn;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)},_e.$x=function(a,y){a.change!==Os&&Lt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var b=a.object;return a.isTransactionFinished&&b instanceof Za?(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 }'},_e.yA=function(a,y){return this.$x(a,y)},_e.np=function(a){return a===void 0&&(a=pm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},_e.toJSON=function(a){return this.np(a)},_e.Zw=function(a){var y=null;if(typeof a=="string")try{y=_n.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:Lt("Unable to modify a Model from: "+a);var b=y.incremental;typeof b!="number"&&Lt("Unable to apply non-incremental changes to Model: "+a),b!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},_e.Ky=function(a){return this.Zw(a)},Ei.constructGraphLinksModel=function(){return new Ei},_e=Ei.prototype,_e.dm=function(a){if(Nn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];if(Yt(E)){var x=b;E=this.dm(E),Array.isArray(a)?a[x]=E:Lt("Cannot replace an object in an HTMLCollection or NodeList at "+x)}}else if(Yt(a)){for(y in a)if(b=a[y],Yt(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 qn,E=0;E<b.length/2;E++)x.add(new it(b[2*E],b[2*E+1]));x.freeze(),a[y]=x}}return bE(a)}return a},_e.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()):Nn(a)?lf(this,a):Yt(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 Di;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 ou(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function xy(a,y){var b=y;if(b instanceof it)y={class:"go.Point",x:ou(b.x),y:ou(b.y)};else if(b instanceof an)y={class:"go.Size",width:ou(b.width),height:ou(b.height)};else if(b instanceof An)y={class:"go.Rect",x:ou(b.x),y:ou(b.y),width:ou(b.width),height:ou(b.height)};else if(b instanceof to)y={class:"go.Margin",top:ou(b.top),right:ou(b.right),bottom:ou(b.bottom),left:ou(b.left)};else if(b instanceof fi)b.sb()?y={class:"go.Spot",x:ou(b.x),y:ou(b.y),offsetX:ou(b.offsetX),offsetY:ou(b.offsetY)}:y={class:"go.Spot",enum:b.toString()};else if(b instanceof _o){if(y={class:"go.Brush",type:b.type.name},b.type===Ch?y.color=b.color:(b.type===eh||b.type===hc)&&(y.start=b.start,y.end=b.end,b.type===hc&&(b.startRadius!==0&&(y.startRadius=ou(b.startRadius)),isNaN(b.endRadius)||(y.endRadius=ou(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 Ir?(y={class:"go.Geometry",type:b.type.name},b.startX!==0&&(y.startX=ou(b.startX)),b.startY!==0&&(y.startY=ou(b.startY)),b.endX!==0&&(y.endX=ou(b.endX)),b.endY!==0&&(y.endY=ou(b.endY)),b.spot1.D(ho)||(y.spot1=b.spot1),b.spot2.D(Fo)||(y.spot2=b.spot2),b.type===Ir.o&&(y.path=Ir.ia(b))):b instanceof mn&&(y={class:"go.EnumValue",classType:pm(a,b.classType),name:b.name});E="{",b=!0;for(var x in y){var z=as(y,x);if(!L1(x,z))if(b?b=!1:E+=",",E+=a.quote(x)+":",x==="points"&&z instanceof qn){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 au(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 it(au(a.x),au(a.y));else if(y==="Size")b=new an(au(a.width),au(a.height));else if(y==="Rect")b=new An(au(a.x),au(a.y),au(a.width),au(a.height));else if(y==="Margin")b=new to(au(a.top),au(a.right),au(a.bottom),au(a.left));else if(y==="Spot")typeof a.enum=="string"?b=ma(a.enum):b=new fi(au(a.x),au(a.y),au(a.offsetX),au(a.offsetY));else if(y==="Brush"){if(b=new _o,b.type=wi(_o,a.type),typeof a.color=="string"&&(b.color=a.color),a.start instanceof fi&&(b.start=a.start),a.end instanceof fi&&(b.end=a.end),typeof a.startRadius=="number"&&(b.startRadius=au(a.startRadius)),typeof a.endRadius=="number"&&(b.endRadius=au(a.endRadius)),a=a.colorStops,Yt(a))for(var E in a)b.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(b=null,typeof a.path=="string"?b=Ir.parse(a.path):b=new Ir,b.type=wi(Ir,a.type),typeof a.startX=="number"&&(b.startX=au(a.startX)),typeof a.startY=="number"&&(b.startY=au(a.startY)),typeof a.endX=="number"&&(b.endX=au(a.endX)),typeof a.endY=="number"&&(b.endY=au(a.endY)),a.spot1 instanceof fi&&(b.spot1=a.spot1),a.spot2 instanceof fi&&(b.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=Cy(E),typeof E=="function"&&(b=wi(E,a.name)));return b}_e.Pe=function(a){return this.Lt.add(a),this},_e.ik=function(a){this.Lt.remove(a)},_e.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)},_e.cb=function(a,y,b,E,x,z,ne){ys(this,"",a,y,b,E,x,z,ne)},_e.g=function(a,y,b,E,x){ys(this,"",oa,a,this,y,b,E,x)},_e.Fs=function(a,y,b,E,x,z){ys(this,"",oa,y,a,b,E,x,z)};function ys(a,y,b,E,x,z,ne,ie,se){ie===void 0&&(ie=null),se===void 0&&(se=null);var de=new va;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===oa){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)),Ca(b,E,x)}else a.change===Ta?(b=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Yt(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]===a&&Ve(this.Tc,b),E!==void 0&&this.kb.remove(E)):(this.Tc[b]!==a&&Ln(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Nn(E)&&a.propertyName&&(E=as(a.object,a.propertyName)),Nn(E)&&typeof b=="number"&&(a=a.newValue,y?Ve(E,b):Ln(E,b,a))):Lt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===La?(b=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Yt(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]!==a&&Ln(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[b]===a&&Ve(this.Tc,b),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Nn(E)&&a.propertyName&&(E=as(a.object,a.propertyName)),Nn(E)&&typeof b=="number"&&(a=a.oldValue,y?Ln(E,b,a):Ve(E,b))):Lt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Os&&Lt("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}},_e=Ei.prototype,_e.La=function(a,y){y===void 0&&(y=""),ys(this,"SourceChanged",Os,y,a,null,null)},_e.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("Key value for node data "+a+" is not a number or a string: "+y)}}},_e.km=function(a,y){if(a!==null){var b=this.Th;if(b!=="")if(this.lb(a)){var E=as(a,b);E!==y&&this.hc(y)===null&&(Ca(a,b,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),ys(this,"nodeKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b),this.jp(E,y))}else Ca(a,b,y)}};function uf(a){return typeof a=="number"||typeof a=="string"}_e.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},_e.hc=function(a){return a===null&&Lt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&uf(a)?this.kb.I(a):null},_e.$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))){Ca(a,y,b);return}if(typeof b=="string"){for(E=2;this.kb.contains(b+E);)E++;Ca(a,y,b+E)}else if(b===void 0||typeof b=="number"){for(b=-this.kb.count-1;this.kb.contains(b);)b--;Ca(a,y,b)}}}}},_e.xf=function(a){a!==null&&(Vi(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&&Lt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,b&&(E=a.Tc.length,Ln(a.Tc,E,y)),ys(a,"nodeDataArray",Ta,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}_e.Fy=function(a){if(Nn(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)},_e.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;Ve(a.Tc,E)}ys(a,"nodeDataArray",La,"nodeDataArray",a,y,null,E,null),a.qp(y)}_e.nA=function(a){if(Nn(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)},_e.$z=function(a){if(a!==this.nodeDataArray&&Nn(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()}},_e.jp=function(a,y){y!==void 0&&(a=fm(this,a),a instanceof lr&&this.Vf.add(y,a))},_e.Lv=function(){},_e.fm=function(){},_e.em=function(){},_e.qp=function(){};function td(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new lr,a.Vf.add(y,E)),E.add(b)}}function nd(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E instanceof lr&&(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 lr?a:null)}_e.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),Yt(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&&Yt(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=as(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 na||z instanceof Za||z instanceof va||(z=B0(a,z,!1)),Ca(b,E,z)}return vi(b),b}return y instanceof it||y instanceof an||y instanceof An||y instanceof fi||y instanceof to?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 on&&(D1=!0,Er('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Er(" Is that really your intent?"));var E=as(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},_e=Ei.prototype,_e.set=function(a,y,b){this.setDataProperty(a,y,b)},_e.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])}},_e.Ay=function(a,y){this.ts(a,-1,y)},_e.ts=function(a,y,b){0>y&&(y=a.length),Ln(a,y,b),ys(this,"",Ta,"",a,null,b,null,y)},_e.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Lt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var b=a[y];Ve(a,y),ys(this,"",La,"",a,b,null,y,null)},_e.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=as(a,y),y===void 0))return"";if(typeof y=="string")return y;Lt("getCategoryForNodeData found a non-string category for "+a+": "+y)},_e.jm=function(a,y){if(a!==null){var b=this.lj;if(b!=="")if(this.lb(a)){var E=as(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),ys(this,"nodeCategory",oa,b,a,E,y))}else Ca(a,b,y)}},_e.lm=function(a,y){this.jm(y,this.Ro(a))},_e.Tl=function(){return!1},_e.Wj=function(){return!1},_e.ri=function(){return!1},_e.xs=function(){return!1},_e.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 jc[a]?jc[a]:_n.go!==void 0&&_n.go[a]?_n.go[a]:null}function as(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 Ca(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){}}$n.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===""&&Lt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Lt("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];Yt(x)||Lt("Model.nodeDataArray must only contain Objects, not: "+x),Vi(x)}for(this.Tc=a,E=new qn,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(ys(this,"nodeDataArray",oa,"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,jc={};Ei.className="Model",Ei.fromJSON=Ei.fromJson=function(a,y){y===void 0&&(y=null);var b=null;if(typeof a=="string")try{b=_n.JSON.parse(a)}catch(z){}else typeof a=="object"?b=a:Lt("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=_n[E])),typeof x=="function"&&(a=new x)}catch(z){}a===null||a instanceof Ei?y=a:Lt("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=as,Ei.safePropertySet=Ca,jc.Brush=_o,jc.ChangedEvent=va,jc.Geometry=Ir,jc.Margin=to,jc.Panel=Ar,jc.Point=it,jc.Rect=An,jc.Size=an,jc.Spot=fi,jc.Transaction=Za,jc.UndoManager=na;function ss(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 lr}ss.prototype.copy=function(){var a=new ss;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},_e=ss.prototype,_e.qb=function(a){a.classType===ss&&(this.mode=a)},_e.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},_e.freeze=function(){return this._isFrozen=!0,this},_e.ka=function(){return this._isFrozen=!1,this},_e.Kx=function(a){return a===void 0&&(a=null),this.mode=gm,this.backConverter=a,this},_e.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},_e.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)}_e.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==="")Er("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=as(y,E)),z!==void 0)if(x===null)b!==""&&Ca(a,b,z);else try{if(b!==""){var ne=x(z,a);Ca(a,b,ne)}else x(z,a)}catch(ie){}}}},_e.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=as(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):Ca(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):Ca(y,b,Se)}else{var Le=z(ne,y,se);if(Le!==void 0&&se!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Me=E.itemIndex,ze=E.panel.itemArray;se.ov(ze,Me),se.ts(ze,Me,Le)}}}catch(qe){}}finally{this.st.remove(a)}}}},$n.Object.defineProperties(ss.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&ln(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&ln(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&ln(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&ln(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&ln(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&ln(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&ln(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&ln(this),this.el=a}}}),ss.prototype.updateSource=ss.prototype.sp,ss.prototype.updateTarget=ss.prototype.Mv,ss.prototype.ofModel=ss.prototype.dA,ss.prototype.ofObject=ss.prototype.cp,ss.prototype.makeTwoWay=ss.prototype.Kx;var EE="Binding",M1=new mn(ss,"OneWay",1),gm=new mn(ss,"TwoWay",2);ss.className="Binding",ss.parseEnum=function(a,y){return function(b){return b=wi(a,b),b===null?y:b}},ss.toString=hi,ss.OneWay=M1,ss.TwoWay=gm;function No(a,y,b){Ei.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new lr,this.wb=new wn,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&&(Nn(a)?this.nodeDataArray=a:b=a),b&&(Object.assign(this,b),a=b.Changed)&&(delete this.Changed,this.Pe(a))}Sn(No,Ei),No.constructGraphLinksModel=Ei.constructGraphLinksModel,No.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},_e=No.prototype,_e.clear=function(){Ei.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},_e.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+=" "+ec(this,x,!0)+"-->"+ec(this,x,!1)}return y},_e.Qv=function(a,y){this.linkKeyProperty===""&&Lt("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 lr,z=new lr,ne=new lr,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===La&&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},_e.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},_e.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)},_e.Rv=function(){var a=Ei.prototype.Rv.call(this),y=`,
"linkDataArray": `+lf(this,this.linkDataArray,!0);return a+y},_e.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 lr,E=0;E<a.linkDataArray.length;E++){var x=a.linkDataArray[E];F0(a,y,x,x,b)}return b}_e.Pv=function(a,y){this.linkKeyProperty===""&&Lt("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 lr,z=new lr,ne=new lr,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===La&&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},_e.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)&&Lt("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)},No.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===oa){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),Ca(b,E,x);return}}else if(a.change===Ta){if(b=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Yt(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===La){if(b=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Yt(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)}},_e=No.prototype,_e.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),Ca(b,this.nodeKeyProperty,a),this.xf(b))}return a}},_e.yx=function(a){return ec(this,a,!0)},_e.wv=function(a,y){wg(this,a,y,!0)},_e.Bx=function(a){return ec(this,a,!1)},_e.Bv=function(a,y){wg(this,a,y,!1)};function ec(a,y,b){if(y!==null&&(a=b?a.lf:a.mf,a!==""&&(a=as(y,a),a!==void 0))){if(uf(a))return a;Lt((b?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function wg(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=as(y,x);z!==b&&(nd(a,z,y),Ca(y,x,b),a.hc(b)===null&&td(a,b,y),ys(a,E?"linkFromKey":"linkToKey",oa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Ca(y,x,b)}}_e.zx=function(a){return _0(this,a,!0)},_e.xv=function(a,y){Cg(this,a,y,!0)},_e.Cx=function(a){return _0(this,a,!1)},_e.Cv=function(a,y){Cg(this,a,y,!1)};function _0(a,y,b){return y===null||(a=b?a.ej:a.fj,a==="")?"":(y=as(y,a),y===void 0?"":y)}function Cg(a,y,b,E){if(y!==null){var x=E?a.ej:a.fj;if(x!=="")if(a.Jc(y)){var z=as(y,x);z===void 0&&(z=""),z!==b&&(Ca(y,x,b),ys(a,E?"linkFromPortId":"linkToPortId",oa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Ca(y,x,b)}}_e.Ef=function(a){if(a===null)return U0;var y=this.je;return y===""?U0:(a=as(a,y),a===void 0?U0:a)},_e.Ls=function(a,y){if(a!==null){var b=this.je;if(b!=="")if(this.Jc(a)){var E=as(a,b);if(E===void 0&&(E=U0),E!==y){if(Array.isArray(E))for(var x=E.length,z=0;z<x;z++)nd(this,E[z],a);for(Ca(a,b,y),x=y.length,z=0;z<x;z++){var ne=y[z];this.hc(ne)===null&&td(this,ne,a)}ys(this,"linkLabelKeys",oa,b,a,E,y),typeof b=="string"&&this.La(a,b)}}else Ca(a,b,y)}},_e.Bu=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=as(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&&td(this,y,a),ys(this,"linkLabelKeys",Ta,b,a,null,y,null,x)))}else Lt(b+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},_e.Qx=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=as(a,b);if(Array.isArray(E)){var x=E.indexOf(y);0>x||(E.splice(x,1),this.Jc(a)&&(nd(this,y,a),ys(this,"linkLabelKeys",La,b,a,y,null,x,null)))}else E!==void 0&&Lt(b+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},_e.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("Key value for link data "+a+" is not a number or a string: "+y)}}},_e.Ks=function(a,y){if(a!==null){var b=this.Jh;if(b!=="")if(this.Jc(a)){var E=as(a,b);E!==y&&this.jh(y)===null&&(Ca(a,b,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),ys(this,"linkKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},_e.jh=function(a){return a===null&&Lt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&uf(a)?this.wb.I(a):null},_e.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))){Ca(a,y,b);return}if(typeof b=="string"){for(E=2;this.wb.contains(b+E);)E++;Ca(a,y,b+E)}else if(b===void 0||typeof b=="number"){for(b=-this.wb.count-1;this.wb.contains(b);)b--;Ca(a,y,b)}}}}},_e.Jc=function(a){return a===null?!1:this.$f.contains(a)},_e.fi=function(a){a!==null&&(Vi(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&&Lt("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)),ys(a,"linkDataArray",Ta,"linkDataArray",a,null,y,null,E),Py(a,y)}_e.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)},_e.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(ys(a,"linkDataArray",La,"linkDataArray",a,y,null,E,null),b=ec(a,y,!0),nd(a,b,y),b=ec(a,y,!1),nd(a,b,y),E=a.Ef(y),Array.isArray(E))for(var x=E.length,z=0;z<x;z++)b=E[z],nd(a,b,y)}_e.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)},_e.Zz=function(a){if(this.linkKeyProperty===""&&Lt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Nn(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=ec(a,y,!0);b=a.Vl(b),a.hc(b)===null&&td(a,b,y),b=ec(a,y,!1),b=a.Vl(b),a.hc(b)===null&&td(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&&td(a,b,y)}_e.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):B0(this,a,!0),Yt(a)&&(vi(a),this.lf!==""&&Ca(a,this.lf,void 0),this.mf!==""&&Ca(a,this.mf,void 0),this.je!==""&&Ca(a,this.je,[])),a},_e.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!as(a,y)},_e.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},_e.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var b=this.Je;if(b!=="")if(this.lb(a)){var E=as(a,b);E!==y&&(nd(this,E,a),Ca(a,b,y),this.hc(y)===null&&td(this,y,a),ys(this,"nodeGroupKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},No.prototype.copyNodeData=function(a){return a===null?null:(a=Ei.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||as(a,this.Je)===void 0||Ca(a,this.Je,void 0),a)},No.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){wg(this,a,b,!0);return}if(y===this.linkToKeyProperty){wg(this,a,b,!1);return}if(y===this.linkFromPortIdProperty){Cg(this,a,b,!0);return}if(y===this.linkToPortIdProperty){Cg(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=as(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},_e=No.prototype,_e.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&&as(a,x)===y[x]||E&&x===this.linkKeyProperty||this.setDataProperty(a,x,y[x])}},_e.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(ec(this,E,!0)===x){var ne=this.lf;Ca(E,ne,z),ys(this,"linkFromKey",oa,ne,E,x,z),typeof ne=="string"&&this.La(E,ne)}if(ec(this,E,!1)===x&&(ne=this.mf,Ca(E,ne,z),ys(this,"linkToKey",oa,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,ys(this,"linkLabelKeys",Ta,se,E,x,z,de,de))}},_e.qv=function(a,y,b){if(this.lh(a)===y){var E=this.Je;Ca(a,E,b),ys(this,"nodeGroupKey",oa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},_e.Lv=function(){Ei.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,b=0;b<y;b++)Py(this,a[b])},_e.fm=function(a){Ei.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Rr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var x=this.Je;ys(this,"nodeGroupKey",oa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}else if(ec(this,E,!0)===a&&(x=this.lf,ys(this,"linkFromKey",oa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)),ec(this,E,!1)===a&&(x=this.mf,ys(this,"linkToKey",oa,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&&(ys(this,"linkLabelKeys",Ta,ne,E,a,a,ie,ie),b.push(E))}for(y=0;y<b.length;y++)nd(this,a,b[y]);kr(b)}},_e.em=function(a){Ei.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&td(this,y,a)},_e.qp=function(a){Ei.prototype.qp.call(this,a);var y=this.lh(a);nd(this,y,a)},_e.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=as(a,y),y===void 0))return"";if(typeof y=="string")return y;Lt("getCategoryForLinkData found a non-string category for "+a+": "+y)},No.prototype.getLinkCategoryForData=function(a){return this.ps(a)},No.prototype.lp=function(a,y){if(a!==null){var b=this.dj;if(b!=="")if(this.Jc(a)){var E=as(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),ys(this,"linkCategory",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},No.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},_e=No.prototype,_e.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))}_e.Wj=function(){return!0},_e.ri=function(){return!0},_e.xs=function(){return!0},_e.Xj=function(){return!0},$n.Object.defineProperties(No.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];Yt(x)||Lt("GraphLinksModel.linkDataArray must only contain Objects, not: "+x),Vi(x)}if(this.md=a,this.linkKeyProperty!==""){for(E=new qn,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 lr,x=0;x<b;x++)E.add(a[x]);for(this.$f=E,ys(this,"linkDataArray",oa,"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"}}}),No.prototype.setCategoryForLinkData=No.prototype.lp,No.prototype.getCategoryForLinkData=No.prototype.ps,No.prototype.assignAllDataProperties=No.prototype.Do,No.prototype.setGroupKeyForNodeData=No.prototype.mp,No.prototype.getGroupKeyForNodeData=No.prototype.lh,No.prototype.isGroupForNodeData=No.prototype.Yu,No.prototype.copyLinkData=No.prototype.Jo,No.prototype.mergeLinkDataArray=No.prototype.Zz,No.prototype.removeLinkDataCollection=No.prototype.lA,No.prototype.removeLinkData=No.prototype.bm,No.prototype.addLinkDataCollection=No.prototype.Ey,No.prototype.addLinkData=No.prototype.fi,No.prototype.containsLinkData=No.prototype.Jc,No.prototype.makeLinkDataKeyUnique=No.prototype.Bs,No.prototype.findLinkDataForKey=No.prototype.jh,No.prototype.setKeyForLinkData=No.prototype.Ks,No.prototype.getKeyForLinkData=No.prototype.Ac,No.prototype.removeLabelKeyForLinkData=No.prototype.Qx,No.prototype.addLabelKeyForLinkData=No.prototype.Bu,No.prototype.setLabelKeysForLinkData=No.prototype.Ls,No.prototype.getLabelKeysForLinkData=No.prototype.Ef,No.prototype.setToPortIdForLinkData=No.prototype.Cv,No.prototype.getToPortIdForLinkData=No.prototype.Cx,No.prototype.setFromPortIdForLinkData=No.prototype.xv,No.prototype.getFromPortIdForLinkData=No.prototype.zx,No.prototype.setToKeyForLinkData=No.prototype.Bv,No.prototype.getToKeyForLinkData=No.prototype.Bx,No.prototype.setFromKeyForLinkData=No.prototype.wv,No.prototype.getFromKeyForLinkData=No.prototype.yx,No.prototype.clear=No.prototype.clear;var U0=Object.freeze([]);No.className="GraphLinksModel",jc.GraphLinksModel=No,Ei.constructGraphLinksModel=Ei.constructGraphLinksModel=function(){return new No},Ei.initDiagramModel=wy=function(){return new No};function su(a,y){Ei.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Nn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Sn(su,Ei),su.constructGraphLinksModel=Ei.constructGraphLinksModel,su.prototype.cloneProtected=function(a){Ei.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},_e=su.prototype,_e.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},_e.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},_e.gp=function(a){Ei.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},_e.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Lt("applyIncrementalJson cannot change Model properties"),Ei.prototype.fp.call(this,a)},_e.Vl=function(a){return a},_e.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},_e.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=as(a,b);E!==y&&(nd(this,E,a),Ca(a,b,y),this.hc(y)===null&&td(this,y,a),ys(this,"nodeParentKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},_e.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=as(a,y),y===void 0)?"":typeof y=="string"?y:(Lt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},su.prototype.getLinkCategoryForData=function(a){return this.ss(a)},su.prototype.Ms=function(a,y){if(a!==null){var b=this.nj;if(b!=="")if(this.lb(a)){var E=as(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),ys(this,"parentLinkCategory",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},su.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},su.prototype.copyNodeData=function(a){return a===null?null:(a=Ei.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||as(a,this.Ke)===void 0||Ca(a,this.Ke,void 0),a)},su.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=as(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},_e=su.prototype,_e.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)},_e.qv=function(a,y,b){if(this.mh(a)===y){var E=this.Ke;Ca(a,E,b),ys(this,"nodeParentKey",oa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},_e.fm=function(a){Ei.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Rr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var x=this.Ke;ys(this,"nodeParentKey",oa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}for(y=0;y<b.length;y++)nd(this,a,b[y]);kr(b)}},_e.em=function(a){Ei.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&td(this,y,a)},_e.qp=function(a){Ei.prototype.qp.call(this,a);var y=this.mh(a);nd(this,y,a)},_e.lm=function(a,y){Ei.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},_e.Tl=function(){return!0},_e.xs=function(){return!0},$n.Object.defineProperties(su.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"}}}),su.prototype.setParentLinkCategoryForNodeData=su.prototype.Ms,su.prototype.getParentLinkCategoryForNodeData=su.prototype.ss,su.prototype.setParentKeyForNodeData=su.prototype.qe,su.prototype.getParentKeyForNodeData=su.prototype.mh,su.className="TreeModel",jc.TreeModel=su;function Da(a){Pa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Vc,this.Ti=0,this.Zv=new it,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=Vc,this.K=lu,this.nd=Tg,this.hd=vy,this.tf=6,this.Nn=Z0,a&&Object.assign(this,a)}Sn(Da,Pa),Da.prototype.cloneProtected=function(a){Pa.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},Da.prototype.qb=function(a){a.classType===Da?a===V0||a===W0||a===G0||a===j0||a===Tg?this.sorting=a:a===Zf||a===Pg||a===lu||a===df?this.direction=a:a===Dh||a===cf||a===Vc||a===Wc?this.arrangement=a:(a===Dp||a===Z0)&&(this.nodeDiameterFormula=a):Pa.prototype.qb.call(this,a)},Da.prototype.createNetwork=function(){return new Ag(this)},Da.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 qn;y.addAll(a.iterator),a=new qn;var b=new qn,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 Le=this.sweepAngle;if((!isFinite(Le)||360<Le||1>Le)&&(Le=360),y=this.spacing,isFinite(y)||(y=NaN),ie===Wc&&se===Dp?ie=Vc:ie===Wc&&se!==Dp&&(ie=this.arrangement),(this.direction===Zf||this.direction===Pg)&&this.sorting!==Tg){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===Zf?(this.arrangement===Wc&&a.reverse(),E=new qn,E.addAll(a),E.addAll(b)):(this.arrangement===Wc&&b.reverse(),E=new qn,E.addAll(b),E.addAll(a))}se=E.length;for(var Me=z=x=0;Me<E.length;Me++){var ze=Se+Le*z*(this.direction===lu?1:-1)/se,qe=E.M(Me).diameter;isNaN(qe)&&(qe=hf(E.M(Me),ze)),360>Le&&(Me===0||Me===E.length-1)&&(qe/=2),x+=qe,z++}if(isNaN(de)||ie===Wc){if(isNaN(y)&&(y=6),ie!==Vc&&ie!==Wc){for(z=-1/0,ne=0;ne<se;ne++)Me=E.M(ne),x=E.M(ne===se-1?0:ne+1),isNaN(Me.diameter)&&hf(Me,0),isNaN(x.diameter)&&hf(x,0),z=Math.max(z,(Me.diameter+x.diameter)/2);ne=z+y,ie===Dh?de=(z+y)/(2*Math.PI/se):de=H0(this,ne*(360<=Le?se:se-1),pe,Se*Math.PI/180,Le*Math.PI/180)}else de=H0(this,x+(360<=Le?se:se-1)*(ie!==Wc?y:1.6*y),pe,Se*Math.PI/180,Le*Math.PI/180);z=de*pe}else if(z=de*pe,Me=Ty(this,de,z,Se*Math.PI/180,Le*Math.PI/180),isNaN(y))(ie===Vc||ie===Wc)&&(y=(Me-x)/(360<=Le?se:se-1));else if(ie===Vc||ie===Wc)Me=(Me-x)/(360<=Le?se:se-1),Me<y?(de=H0(this,x+y*(360<=Le?se:se-1),pe,Se*Math.PI/180,Le*Math.PI/180),z=de*pe):y=Me;else{for(ne=-1/0,x=0;x<se;x++)ze=E.M(x),qe=E.M(x===se-1?0:x+1),isNaN(ze.diameter)&&hf(ze,0),isNaN(qe.diameter)&&hf(qe,0),ne=Math.max(ne,(ze.diameter+qe.diameter)/2);ne+=y,x=H0(this,ne*(360<=Le?se:se-1),pe,Se*Math.PI/180,Le*Math.PI/180),x>de?(de=x,z=de*pe):ne=Me/(360<=Le?se:se-1)}if(this.kw=ie,this.lc=de,this.Zm=pe,this.lw=Se,this.Wp=Le,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,Le=this.me,se=this.Jp,this.direction!==Zf&&this.direction!==Pg||E!==Wc)if(this.direction===Zf||this.direction===Pg){switch(ne=0,E){case cf:ne=180*z0(this,ie,Le,de,se)/Math.PI;break;case Vc: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,Le,de,Se+(y+se)/2)/Math.PI;break;case Dh:ne=pe/y.length}if(this.direction===Zf){switch(E){case cf:ym(this,a,de,df);break;case Vc:vm(this,a,de,df);break;case Dh:mm(this,a,pe/2,de,df)}switch(E){case cf:ym(this,b,de+ne,lu);break;case Vc:vm(this,b,de+ne,lu);break;case Dh:mm(this,b,pe/2,de+ne,lu)}}else{switch(E){case cf:ym(this,b,de,df);break;case Vc:vm(this,b,de,df);break;case Dh:mm(this,b,pe/2,de,df)}switch(E){case cf:ym(this,a,de+ne,lu);break;case Vc:vm(this,a,de+ne,lu);break;case Dh:mm(this,a,pe/2,de+ne,lu)}}}else switch(E){case cf:ym(this,y,de,this.direction);break;case Vc:vm(this,y,de,this.direction);break;case Dh:mm(this,y,pe,de,this.direction);break;case Wc:U1(this,y,pe,de,this.direction)}else U1(this,y,pe,de-pe/2,lu)}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===lu?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===lu?b:-b,(de.diameter+pe.diameter)/2+ne),b+=E===lu?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===lu?b:-b,ne),b+=E===lu?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===lu?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=it.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(it.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 Le=Math.abs(se-z)-((pe[0].width+pe[pe.length-1].width)/2+ne),Me=Math.abs(de-Se)-((pe[0].height+pe[pe.length-1].height)/2+ne);ne=0,1>Math.abs(Me)?Math.abs(se-z)<(pe[0].width+pe[pe.length-1].width)/2&&(ne=0):ne=0<Me?Me:1>Math.abs(Le)?0:Le,se=Math.abs(z)>Math.abs(Se)?0<z!=de>Se:0<Se!=se<z,(se=x===lu?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=it.alloc(),Se=y.Fa(),Le=0;Le<Se.length&&(Se[Le].centerX=se,Se[Le].centerY=de,!(Le>=Se.length-1));Le++)G1(a,se,de,Se,Le,x,pe)||j1(a,se,de,Se,Le,x,pe),se=pe.x,de=pe.y;if(it.free(pe),a.mj++,!(23<a.mj)){if(se=Math.atan2(de,se),se=x===lu?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===lu)){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===lu)){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}Da.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Da.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 it(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))},Da.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}}Da.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 Tg:return this.ak(xE(a));default:Lt("Invalid sorting type.")}return a};function xE(a){for(var y=[],b=0;b<a.length;b++)y.push(0);b=new qn;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}Da.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 qn;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,Le=-1,Me=[],ze=0;ze<b.length;ze++)0>y[b[ze]].indexOf(b[ze===b.length-1?0:ze+1])&&Me.push(ze===b.length-1?0:ze+1);if(Me.length===0)for(ze=0;ze<b.length;ze++)Me.push(ze);for(ze=0;ze<Me.length;ze++){for(var qe=Me[ze],Ct=y[de],yt=0,Dt=0;Dt<ne.length;Dt++){var Ot=z[ne[Dt]],zt=z[ie[Dt]];if(Ot<zt){var $t=Ot;Ot=zt}else $t=zt;if($t<qe&&qe<=Ot)for(zt=0;zt<Ct.length;zt++){var In=Ct[zt];0>b.indexOf(In)||$t<z[In]&&z[In]<Ot||$t===z[In]||Ot===z[In]||yt++}else for(zt=0;zt<Ct.length;zt++)In=Ct[zt],0>b.indexOf(In)||$t<z[In]&&z[In]<Ot&&$t!==z[In]&&Ot!==z[In]&&yt++}for(Ct=yt,Dt=yt=0;Dt<y[de].length;Dt++)$t=b.indexOf(y[de][Dt]),0<=$t&&($t=Math.abs(qe-($t>=qe?$t+1:$t)),yt+=$t<b.length+1-$t?$t:b.length+1-$t);for(Dt=0;Dt<ne.length;Dt++)$t=z[ne[Dt]],Ot=z[ie[Dt]],$t>=qe&&$t++,Ot>=qe&&Ot++,$t>Ot&&(zt=Ot,Ot=$t,$t=zt),Ot-$t<(b.length+2)/2==($t<qe&&qe<=Ot)&&yt++;(Ct<pe||Ct===pe&&yt<Se)&&(pe=Ct,Se=yt,Le=qe)}for(b.splice(Le,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(Le=Se=0;Le<y[de].length;Le++)Me=b.indexOf(y[de][Le]),0>Me||Me===pe||(ze=Me>pe?Me-pe:pe-Me,Se+=Me<pe!=ze>ne-ze?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},$n.Object.defineProperties(Da.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!==Wc&&a!==Vc&&a!==cf&&a!==Dh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==lu&&a!==df&&a!==Zf&&a!==Pg||(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!==Tg||(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!==Dp||(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 Vc=new mn(Da,"ConstantSpacing",0),cf=new mn(Da,"ConstantDistance",1),Dh=new mn(Da,"ConstantAngle",2),Wc=new mn(Da,"Packed",3),lu=new mn(Da,"Clockwise",4),df=new mn(Da,"Counterclockwise",5),Zf=new mn(Da,"BidirectionalLeft",6),Pg=new mn(Da,"BidirectionalRight",7),G0=new mn(Da,"Forwards",8),j0=new mn(Da,"Reverse",9),V0=new mn(Da,"Ascending",10),W0=new mn(Da,"Descending",11),Tg=new mn(Da,"Optimized",12),Z0=new mn(Da,"Pythagorean",13),Dp=new mn(Da,"Circular",14);Da.className="CircularLayout",Da.ConstantSpacing=Vc,Da.ConstantDistance=cf,Da.ConstantAngle=Dh,Da.Packed=Wc,Da.Clockwise=lu,Da.Counterclockwise=df,Da.BidirectionalLeft=Zf,Da.BidirectionalRight=Pg,Da.Forwards=G0,Da.Reverse=j0,Da.Ascending=V0,Da.Descending=W0,Da.Optimized=Tg,Da.Pythagorean=Z0,Da.Circular=Dp;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 Ag(a){ba.call(this,a)}Sn(Ag,ba),Ag.prototype.createVertex=function(){return new bm(this)},Ag.prototype.createEdge=function(){return new K0(this)},Ag.className="CircularNetwork";function bm(a){Ns.call(this,a),this.u=this.Si=NaN}Sn(bm,Ns);function hf(a,y){var b=a.network;if(b===null)return NaN;if(b=b.layout,b===null)return NaN;if(b.arrangement===Wc)if(b.nodeDiameterFormula===Dp)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===Dp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}$n.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){Wu.call(this,a)}Sn(K0,Wu),K0.className="CircularEdge";function yl(a){Pa.call(this),this.ah=null,this.An=0,this.$d=new an(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)}Sn(yl,Pa),yl.prototype.cloneProtected=function(a){Pa.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 Rp(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=Rr(),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 it(Se.x+Se.width+E.width,Se.y),de[1]=new it(Se.x,Se.y+Se.height+E.height),ie=2;else{var Le=W1(de,ie,x,z,Se.width,Se.height,E),Me=de[Le],ze=new it(Me.x+Se.width+E.width,Me.y),qe=new it(Me.x,Me.y+Se.height+E.height);for(Le+1<ie&&de.splice(Le+1,0,null),de[Le]=ze,de[Le+1]=qe,ie++,Le=Me.x-Se.x,Me=Me.y-Se.y,pe=pe.vertexes.iterator;pe.next();)ze=pe.value,ze.centerX+=Le,ze.centerY+=Me}for(An.free(Se),pe=y.vertexes.iterator;pe.next();)ne=pe.value,Le=ne.bounds,2>ie?(x=Le.x+Le.width/2,z=Le.y+Le.height/2,de[0]=new it(Le.x+Le.width+E.width,Le.y),de[1]=new it(Le.x,Le.y+Le.height+E.height),ie=2):(se=W1(de,ie,x,z,Le.width,Le.height,E),Se=de[se],Me=new it(Se.x+Le.width+E.width,Se.y),Le=new it(Se.x,Se.y+Le.height+E.height),se+1<ie&&de.splice(se+1,0,null),de[se]=Me,de[se+1]=Le,ie++,ne.centerX=Se.x+ne.width/2,ne.centerY=Se.y+ne.height/2);for(kr(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 Rp(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 qn),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 qn,x.Hj=ie),ie.add(ne),x.Vd--,x.sh+=ne.sh):ne.network===E&&(ie=ne.Hj,ie===null&&(ie=new qn,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,en.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),Le=null;for(z=Se.edges.iterator;z.next();){var Me=z.value;if(Me.Ax(Se)===x){Le=Me;break}}Le!==null&&(de+=Le.length,ie+=Se.width*Se.height)}z=x.centerX,se=x.centerY,pe=x.width,Se=x.height,Le=x.focus,Me=pe*Se,1>Me&&(Me=1),ie=en.sqrt((ie+Me+de*de*4/(ne*ne))/Me),ne=(ie-1)*pe/2,ie=(ie-1)*Se/2,x.bounds=new An(z-Le.x-ne,se-Le.y-ie,pe+2*ne,Se+2*ie),x.focus=new it(Le.x+ne,Le.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 it(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=en.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(Me,ze){return Me===null||ze===null||Me===ze?0:ze.width*ze.height-Me.width*Me.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 Le=se.height;Se=en.sqrt(Se*Se+Le*Le)/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,Le=pe.y-E;if(Se=Se*Se+Le*Le,Se<ie){for(Le=de-1;0<=Le;Le--)if(a[Le].y>pe.y&&a[Le].x-pe.x<x+ne.width)continue e;for(Le=de+1;Le<y;Le++)if(a[Le].x>pe.x&&a[Le].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,en.sqrt(b*b+a*a)):a+b<y?(E=E+x-ne,a=a+b-y,en.sqrt(E*E+a*a)):ne-(E+x):E>ne+ie?a>y+z?(b=E-ne-ie,a=a-y-z,en.sqrt(b*b+a*a)):a+b<y?(E=E-ne-ie,a=a+b-y,en.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(qe,Ct){return qe===null||Ct===null||qe===Ct?0:qe.centerX-Ct.centerX}):y.sort(function(qe,Ct){return qe===null||Ct===null||qe===Ct?0:qe.centerY-Ct.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 Le=y[Se];if(Le!==ne){E=Le.bounds,ie=Le.focus,de=E.x+ie.x;var Me=E.y+ie.y;if(se-de>b||de-se>b){if(x)break}else if(pe-Me>b||Me-pe>b){if(!x)break}else{var ze=Z1(ne,Le);1>ze?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Y0),ze=E.random(),ie=E.random(),se>de?(E=Math.abs(Le.bounds.right-ne.bounds.x),E=(1+E)*ze):se<de?(E=Math.abs(Le.bounds.x-ne.bounds.right),E=-(1+E)*ze):(E=Math.max(Le.width,ne.width),E=(1+E)*ze-E/2),pe>Me?(de=Math.abs(Le.bounds.bottom-ne.bounds.y),de=(1+de)*ie):se<de?(de=Math.abs(Le.bounds.y-ne.bounds.bottom),de=-(1+de)*ie):(de=Math.max(Le.height,ne.height),de=(1+de)*ie-de/2)):(ie=-(ne.charge*Le.charge)/(ze*ze),E=(de-se)/ze*ie,de=(Me-pe)/ze*ie),ne.forceX+=E,ne.forceY+=de,Le.forceX-=E,Le.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=ns,y.toSpot=ns)}},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},$n.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"&&Lt('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 Rp(a){ba.call(this,a)}Sn(Rp,ba),Rp.prototype.createVertex=function(){return new Em(this)},Rp.prototype.createEdge=function(){return new xm(this)},Rp.className="ForceDirectedNetwork";function Em(a){Ns.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}Sn(Em,Ns),$n.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){Wu.call(this,a),this.j=this.o=NaN}Sn(xm,Wu),$n.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){Pa.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 it,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Sn(qo,Pa),qo.prototype.cloneProtected=function(a){Pa.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:Lt("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},qo.prototype.createNetwork=function(){return new Lg(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 Le=ie.fromPort;Le!==null&&!Le.Ed();)Le=Le.panel;for(ie=ie.toPort;ie!==null&&!ie.Ed();)ie=ie.panel;if(E.rev){de=Se;var Me=Le;Se=se,Le=ie,se=de,ie=Me}var ze=x.focus;de=z.focus;var qe=E.rev?z.bounds:x.bounds;Me=it.alloc(),pe!==Se?qe.w()&&Se.isVisible()?Se.actualBounds.w()?(Ah(Se,Le,Xi,Me),Me.x+=Se.actualBounds.x-qe.x,Me.y+=Se.actualBounds.y-qe.y):(Ah(Se,Le,Xi,Me),Me.w()||Me.assign(ze)):Me.assign(ze):qe.w()?(Ah(Se,Le,Xi,Me),Me.w()||Me.assign(ze)):Me.assign(ze),Se=E.rev?x.bounds:z.bounds,pe=it.alloc(),ne!==se?Se.w()&&se.isVisible()?se.actualBounds.w()?(Ah(se,ie,Xi,pe),pe.x+=se.actualBounds.x-Se.x,pe.y+=se.actualBounds.y-Se.y):(Ah(se,ie,Xi,pe),pe.w()||pe.assign(de)):pe.assign(de):Se.w()?(Ah(se,ie,Xi,pe),pe.w()||pe.assign(de)):pe.assign(de),this.K===90||this.K===270?(ne=Math.round((Me.x-ze.x)/this.kc),se=Me.x,ie=Math.round((pe.x-de.x)/this.kc),de=pe.x):(ne=Math.round((Me.y-ze.y)/this.kc),se=Me.y,ie=Math.round((pe.y-de.y)/this.kc),de=pe.y),it.free(Me),it.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(Me=x.layer,pe=z.layer,Se=0,qe=E.link,qe!==null){var Ct=qe.fromPort,yt=qe.toPort;if(Ct!==null&&yt!==null){var Dt=qe.fromNode;if(Le=qe.toNode,Dt!==null&&Le!==null){var Ot=q0(this,!0),zt=q0(this,!1),$t=this.setsPortSpots?Ot:qe.computeSpot(!0,Ct);ze=this.setsPortSpots?zt:qe.computeSpot(!1,yt);var In=qe.isOrthogonal;$t.$c()&&$t.Hf(zt)&&ze.$c()&&ze.Hf(Ot)?Se=0:(Ot=qe.getLinkPoint(Dt,Ct,$t,!0,In,Le,yt,it.alloc()),zt=qe.getLinkDirection(Dt,Ct,Ot,$t,!0,In,Le,yt),it.free(Ot),$t.ys()||zt!==Nb(this,E,!0)?this.setsPortSpots&&Dt!==null&&Dt.ports.count===1&&E.rev&&(Se+=1):Se+=1,$t=qe.getLinkPoint(Le,yt,ze,!1,In,Dt,Ct,it.alloc()),qe=qe.getLinkDirection(Le,yt,$t,ze,!1,In,Dt,Ct),it.free($t),ze.ys()||qe!==Nb(this,E,!1)?this.setsPortSpots&&Le!==null&&Le.ports.count===1&&E.rev&&(Se+=2):Se+=2)}}}if(Le=Se,Se=Le===1||Le===3,(Le=Le===2||Le===3)&&(ze=a.createVertex(),ze.node=null,ze.Dj=1,ze.layer=Me,ze.near=x,a.dh(ze),x=a.Zj(x,ze,E.link),x.valid=!1,x.rev=E.rev,x.portFromColOffset=ne,x.portToColOffset=0,x.portFromPos=se,x.portToPos=0,x=ze),qe=1,Se&&qe--,Me-pe>qe&&0<Me){for(E.valid=!1,ze=a.createVertex(),ze.node=null,ze.Dj=2,ze.layer=Me-1,a.dh(ze),x=a.Zj(x,ze,E.link),x.valid=!0,x.rev=E.rev,x.portFromColOffset=Le?0:ne,x.portToColOffset=0,x.portFromPos=Le?0:se,x.portToPos=0,x=ze,Me--;Me-pe>qe&&0<Me;)ze=a.createVertex(),ze.node=null,ze.Dj=3,ze.layer=Me-1,a.dh(ze),x=a.Zj(x,ze,E.link),x.valid=!0,x.rev=E.rev,x.portFromColOffset=0,x.portToColOffset=0,x.portFromPos=0,x.portToPos=0,x=ze,Me--;x=a.Zj(ze,z,E.link),x.valid=!Se,Se&&(ze.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 vu(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 gc(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 Le;if(0<=b)for(se=E[ne].sourceEdgesArrayAccess,de=0;de<se.length;de++){var Me=se[de];if(Me.valid&&Me.fromVertex.layer!==y)for(Se=Me.fromVertex.index,pe=Me.portToPos,Me=Me.portFromPos,Le=de+1;Le<se.length;Le++){var ze=se[Le];if(ze.valid&&ze.fromVertex.layer!==y){var qe=ze.fromVertex.index,Ct=ze.portToPos;ze=ze.portFromPos,pe<Ct&&(Se>qe||Se===qe&&Me>ze)&&ie++,Ct<pe&&(qe>Se||qe===Se&&ze>Me)&&ie++}}}if(0>=b){for(se=E[ne].destinationEdgesArrayAccess,de=0;de<se.length;de++)if(Me=se[de],Me.valid&&Me.toVertex.layer!==y)for(Se=Me.toVertex.index,pe=Me.portToPos,Me=Me.portFromPos,Le=de+1;Le<se.length;Le++)ze=se[Le],ze.valid&&ze.toVertex.layer!==y&&(qe=ze.toVertex.index,Ct=ze.portToPos,ze=ze.portFromPos,Me<ze&&(Se>qe||Se===qe&&pe>Ct)&&ie++,ze<Me&&(qe>Se||qe===Se&&Ct>pe)&&ie++)}for(z[ne*x+ne]=ie,se=ne+1;se<x;se++){var yt=0,Dt=0;if(0<=b){ie=E[ne].sourceEdgesArrayAccess;var Ot=E[se].sourceEdgesArrayAccess;for(de=0;de<ie.length;de++)if(Me=ie[de],Me.valid&&Me.fromVertex.layer!==y)for(Se=Me.fromVertex.index,Me=Me.portFromPos,Le=0;Le<Ot.length;Le++)ze=Ot[Le],ze.valid&&ze.fromVertex.layer!==y&&(qe=ze.fromVertex.index,ze=ze.portFromPos,(Se<qe||Se===qe&&Me<ze)&&Dt++,(qe<Se||qe===Se&&ze<Me)&&yt++)}if(0>=b){for(ie=E[ne].destinationEdgesArrayAccess,Ot=E[se].destinationEdgesArrayAccess,de=0;de<ie.length;de++)if(Me=ie[de],Me.valid&&Me.toVertex.layer!==y)for(Se=Me.toVertex.index,pe=Me.portToPos,Le=0;Le<Ot.length;Le++)ze=Ot[Le],ze.valid&&ze.toVertex.layer!==y&&(qe=ze.toVertex.index,Ct=ze.portToPos,(Se<qe||Se===qe&&pe<Ct)&&Dt++,(qe<Se||qe===Se&&Ct<pe)&&yt++)}z[ne*x+se]=yt,z[se*x+ne]=Dt}}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 Le=Se.fromVertex.column+Se.portFromColOffset,Me=Se.toVertex.column+Se.portToColOffset;ie+=(Math.abs(Le-Me)+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,Le=ie.near;if(Le!==null&&Le.layer===ie.layer&&(pe+=Le.column-1,Se++),se!==null)for(Le=0;Le<se.length;Le++){ie=se[Le];var Me=ie.fromVertex;ie.valid&&!ie.rev&&Me.layer!==y&&(pe+=Me.column,Se++)}if(de!==null)for(se=0;se<de.length;se++)ie=de[se],Le=ie.toVertex,ie.valid&&!ie.rev&&Le.layer!==y&&(pe+=Le.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=[],Le=ie.near;if(Le!==null&&Le.layer===ie.layer&&(Se[pe]=Le.column-1,pe++),ie=void 0,se!==null)for(Le=0;Le<se.length;Le++){ie=se[Le];var Me=ie.fromVertex;ie.valid&&!ie.rev&&Me.layer!==y&&(Se[pe]=Me.column+ie.portFromColOffset,pe++)}if(de!==null)for(se=0;se<de.length;se++)ie=de[se],Le=ie.toVertex,ie.valid&&!ie.rev&&Le.layer!==y&&(Se[pe]=Le.column+ie.portToColOffset,pe++);pe===0?z[ne]=-1:(Se.sort(function(ze,qe){return ze-qe}),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,Le=de.sourceEdgesArrayAccess;x=Le.length;for(var Me=0;Me<x;Me++){var ze=Le[Me],qe=ze.fromVertex;pe+=1,qe.component!==1&&(z+=1,qe=qe.layer-de.layer,ze=a.linkMinLength(ze),E=Math.min(E,qe-ze))}for(Le=de.destinationEdgesArrayAccess,x=Le.length,Me=0;Me<x;Me++)ze=Le[Me].toVertex,--pe,ze.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,Le=ne.sourceEdgesArrayAccess,Se=Le.length,Me=0;Me<Se;Me++)ze=Le[Me].fromVertex,de+=1,ze.component!==1?E+=1:pe=!0;for(Le=ne.destinationEdgesArrayAccess,Se=Le.length,Me=0;Me<Se;Me++)ze=Le[Me],qe=ze.toVertex,--de,qe.component!==1&&(--E,qe=ne.layer-qe.layer,ze=a.linkMinLength(ze),x=Math.min(x,qe-ze));(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=vu(this),b,E;for(b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,1),Ac(this,E,1);var x=this.countCrossings();for(x<a&&(a=x,y=vu(this)),E=this.Ia;0<=E;E--)Q0(this,E,-1),Ac(this,E,-1);x=this.countCrossings(),x<a&&(a=x,y=vu(this))}for(gc(this,y),b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,0),Ac(this,E,0);for(x=this.countCrossings(),x<a&&(a=x,y=vu(this)),E=this.Ia;0<=E;E--)Q0(this,E,0),Ac(this,E,0);x=this.countCrossings(),x<a&&(a=x,y=vu(this))}gc(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=Ac(this,E,-1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,-1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,0)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,0)||z;x>=a?gc(this,y):(a=x,y=vu(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=Ac(this,E,-1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,-1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,0)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,0)||z;x>=a?gc(this,y):(a=x,y=vu(this))}}gc(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 Ac(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],Le=0,Me=0,ze=E[z].column,qe=E[z+1].column,Ct=a.nodeMinColumnSpace(E[z],!0),yt=a.nodeMinColumnSpace(E[z],!1),Dt=a.nodeMinColumnSpace(E[z+1],!0),Ot=a.nodeMinColumnSpace(E[z+1],!1);Ct=ze-Ct+Dt,yt=qe-yt+Ot;var zt=E[z].sourceEdges.iterator;for(zt.reset();zt.next();)if(Dt=zt.value,Ot=Dt.fromVertex,Dt.valid&&Ot.layer===y){for(Dt=0;E[Dt]!==Ot;)Dt++;Dt<z&&(Le+=2*(z-Dt),Me+=2*(z+1-Dt)),Dt===z+1&&(Le+=1),Dt>z+1&&(Le+=4*(Dt-z),Me+=4*(Dt-(z+1)))}for(zt=E[z].destinationEdges.iterator,zt.reset();zt.next();)if(Dt=zt.value,Ot=Dt.toVertex,Dt.valid&&Ot.layer===y){for(Dt=0;E[Dt]!==Ot;)Dt++;Dt===z+1&&(Me+=1)}for(zt=E[z+1].sourceEdges.iterator,zt.reset();zt.next();)if(Dt=zt.value,Ot=Dt.fromVertex,Dt.valid&&Ot.layer===y){for(Dt=0;E[Dt]!==Ot;)Dt++;Dt<z&&(Le+=2*(z+1-Dt),Me+=2*(z-Dt)),Dt===z&&(Me+=1),Dt>z+1&&(Le+=4*(Dt-(z+1)),Me+=4*(Dt-z))}for(zt=E[z+1].destinationEdges.iterator,zt.reset();zt.next();)if(Dt=zt.value,Ot=Dt.toVertex,Dt.valid&&Ot.layer===y){for(Dt=0;E[Dt]!==Ot;)Dt++;Dt===z&&(Le+=1)}Dt=Ot=0,zt=ne[E[z].index];var $t=ie[E[z].index],In=ne[E[z+1].index],Jr=ie[E[z+1].index];zt!==-1&&(Ot+=Math.abs(zt-ze),Dt+=Math.abs(zt-yt)),$t!==-1&&(Ot+=Math.abs($t-ze),Dt+=Math.abs($t-yt)),In!==-1&&(Ot+=Math.abs(In-qe),Dt+=Math.abs(In-Ct)),Jr!==-1&&(Ot+=Math.abs(Jr-qe),Dt+=Math.abs(Jr-Ct)),(Me<Le-.5||Me===Le&&Se<pe-.5||Me===Le&&Se===pe&&Dt<Ot-.5)&&(de=se=!0,E[z].column=yt,E[z+1].column=Ct,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=Ng(this,y,1)||b;for(y=this.Md-1;0<=y;y--)b=Ng(this,y,-1)||b;b=Ng(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=Ng(this,this.Md,0)||b,y=this.Md+1;y<=this.Ia;y++)b=Ng(this,y,0)||b;for(y=this.Md-1;0<=y;y--)b=Ng(this,y,0)||b}}else DE(this)};function Ng(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),Le=a.nodeMinColumnSpace(x[E],!1),Me=0;0>E-1||pe-x[E-1].column-1>Se+a.nodeMinColumnSpace(x[E-1],!1)?Me=pe-1:Me=pe,Se=E+1>=z||x[E+1].column-pe-1>Le+a.nodeMinColumnSpace(x[E+1],!0)?pe+1:pe;var ze=Le=0,qe=0;if(0>=b)for(var Ct=x[E].sourceEdges.iterator;Ct.next();){var yt=Ct.value,Dt=yt.fromVertex;if(yt.valid&&Dt.layer!==y){var Ot=Ay(yt),zt=yt.portFromColOffset;yt=yt.portToColOffset,Dt=Dt.column,Le+=(Math.abs(pe+yt-(Dt+zt))+1)*Ot,ze+=(Math.abs(Me+yt-(Dt+zt))+1)*Ot,qe+=(Math.abs(Se+yt-(Dt+zt))+1)*Ot}}if(0<=b)for(Ct=x[E].destinationEdges.iterator;Ct.next();)yt=Ct.value,Dt=yt.toVertex,yt.valid&&Dt.layer!==y&&(Ot=Ay(yt),zt=yt.portFromColOffset,yt=yt.portToColOffset,Dt=Dt.column,Le+=(Math.abs(pe+zt-(Dt+yt))+1)*Ot,ze+=(Math.abs(Me+zt-(Dt+yt))+1)*Ot,qe+=(Math.abs(Se+zt-(Dt+yt))+1)*Ot);yt=zt=Ot=0,Ct=ne[x[E].index],Dt=ie[x[E].index],Ct!==-1&&(Ot+=Math.abs(Ct-pe),zt+=Math.abs(Ct-Me),yt+=Math.abs(Ct-Se)),Dt!==-1&&(Ot+=Math.abs(Dt-pe),zt+=Math.abs(Dt-Me),yt+=Math.abs(Dt-Se)),ze<Le||ze===Le&&zt<Ot?(de=se=!0,x[E].column=Me):(qe<Le||qe===Le&&yt<Ot)&&(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=vu(a),z=X0(a);for(E=z+1;z<E;){E=z,Mb(a,b,1);var ne=X0(a);ne>z?gc(a,x):ne<z&&(z=ne,x=vu(a))}}if(0>y)for(b=a.Ra;0<=b;b--)for(x=vu(a),z=X0(a),E=z+1;z<E;)E=z,Mb(a,b,-1),ne=X0(a),ne>z?gc(a,x):ne<z&&(z=ne,x=vu(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=Rr(),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 lr,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,Le=(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=Tr(y),x=E.next();!x.done;x=E.next())x.value.reverse();Le&&(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)),kr(y),a.u(z,ne,ie,se),a.network.vertexes.each(function(Me){var ze=Rr();de&&ze.push(z.get(Me)),pe&&ze.push(ne.get(Me)),Se&&ze.push(ie.get(Me)),Le&&ze.push(se.get(Me)),ze.sort(function(Ct,yt){return Ct-yt});var qe=ze.length;qe=(ze[Math.floor((qe-1)/2)]+ze[Math.ceil((qe-1)/2)])/2,kr(ze),Me.zc=qe})}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 Le=Tr(de.sourceEdgesArrayAccess),Me=Le.next();!Me.done;Me=Le.next())Me=Me.value,Me.valid&&Se.push(Me);de.bo=Se}for(de=Tr(de.bo),Se=de.next();!Se.done;Se=de.next())Se=Se.value,Le=Se.fromVertex.index,(Le<x||Le>pe)&&y.add(Se);z++}x=pe}}}qo.prototype.verticalAlignment=function(a,y,b){ME(a),a=Tr(a);for(var E=a.next();!E.done;E=a.next()){var x=-1;E=Tr(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,Le){return Se.vi-Le.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=Tr(y),ne=z.next();!ne.done;ne=z.next()){var ie=Tr(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=Tr(y),ie=z.next();!ie.done;ie=z.next()){ie=Tr(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,Le=ne?pe.width:pe.height,Me=ne?Se.width:Se.height;if(b){var ze=rv(pe,Se),qe=ze.portFromPos,Ct=ze.portToPos;ze.link!==null&&(pe.node&&pe.node!==ze.link.fromNode&&(qe=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==ze.link.toNode&&(Ct=ne?Se.focusX:Se.focusY))}else ze=rv(Se,pe),qe=ze.portToPos,Ct=ze.portFromPos,ze.link!==null&&(pe.node&&pe.node!==ze.link.toNode&&(qe=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==ze.link.fromNode&&(Ct=ne?Se.focusX:Se.focusY));Le=E?pe.qg+(Le-qe)-(Me-Ct):pe.qg+qe-Ct,Se.qg=Le,de=Math.min(de,Le),pe=pe.align}pe=se;do pe.qg=pe.qg-de,pe=pe.align;while(pe!==se)}}for(b=Tr(y),ne=b.next();!ne.done;ne=b.next())for(z=Tr(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 wn,y=Tr(y),ne=y.next();!ne.done;ne=y.next())for(b=Tr(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&&Lt("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=Rr(),x=Rr(),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)));kr(E),kr(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?Ms:ks:a.K===90?y?ks:Ms:a.K===180?y?Qs:fs:y?fs:Qs}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 it(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===$u&&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===Yi&&(E=!0),ie!==null&&se===Yi&&(b=!0),(E||b)&&(se=null,E&&(se=y.getLinkPointFromPoint(x,ne,ne.ga(Xi),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(Xi),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 Le=!1,Me=!1,ze=this.ie,qe=y.firstPickIndex+1;if(y.isOrthogonal){Me=!0;var Ct=y.pointsCount;4<Ct&&y.points.removeRange(2,Ct-3)}else if(y.curve===$u)Le=!0,Ct=y.pointsCount,4<Ct&&y.points.removeRange(2,Ct-3),Ct===4&&(qe=2);else{Ct=y.pointsCount;var yt=de===Yi,Dt=se===Yi;2<Ct&&yt&&Dt?y.points.removeRange(1,Ct-2):3<Ct&&yt&&!Dt?y.points.removeRange(1,Ct-3):3<Ct&&!yt&&Dt?y.points.removeRange(2,Ct-2):4<Ct&&!yt&&!Dt&&y.points.removeRange(2,Ct-3)}if(b.rev){for(;Se!==null&&pe!==Se;){var Ot=Ct=null;for(yt=Se.sourceEdges.iterator;yt.next()&&(Dt=yt.value,Dt.link!==b.link||(Ct=Dt.fromVertex,Ot=Dt.toVertex,Ct.node!==null)););if(Ct===null)break;if(Ct!==pe){yt=y.i(qe-1).x,Dt=y.i(qe-1).y;var zt=Ct.centerX,$t=Ct.centerY;if(Me)this.K===180||this.K===0?qe===y.firstPickIndex+1?(y.m(qe++,yt,Dt),y.m(qe++,yt,$t)):(Ot!==null?Ot.centerY:Dt)!==$t&&(Ot=this.Ta[Ct.layer-1]+this.Rf.x,y.m(qe++,Ot,Dt),y.m(qe++,Ot,$t)):qe===y.firstPickIndex+1?(y.m(qe++,yt,Dt),y.m(qe++,zt,Dt)):(Ot!==null?Ot.centerX:yt)!==zt&&(Ot=this.Ta[Ct.layer-1]+this.Rf.y,y.m(qe++,yt,Ot),y.m(qe++,zt,Ot));else if(qe===y.firstPickIndex+1){Ot=Math.max(10,this.he[Se.layer]);var In=Math.max(10,this.Ld[Se.layer]);if(Le)this.K===180?zt<=Se.bounds.x?(Se=Se.bounds.x,y.m(qe++,Se-Ot,$t),y.m(qe++,Se,$t),y.m(qe++,Se+In,$t)):(y.m(qe++,zt-Ot,$t),y.m(qe++,zt,$t),y.m(qe++,zt+In,$t)):this.K===90?$t>=Se.bounds.bottom?(Se=Se.bounds.y+Se.bounds.height,y.m(qe++,zt,Se+In),y.m(qe++,zt,Se),y.m(qe++,zt,Se-Ot)):(y.m(qe++,zt,$t+In),y.m(qe++,zt,$t),y.m(qe++,zt,$t-Ot)):this.K===270?$t<=Se.bounds.y?(Se=Se.bounds.y,y.m(qe++,zt,Se-Ot),y.m(qe++,zt,Se),y.m(qe++,zt,Se+In)):(y.m(qe++,zt,$t-Ot),y.m(qe++,zt,$t),y.m(qe++,zt,$t+In)):this.K===0&&(zt>=Se.bounds.right?(Se=Se.bounds.x+Se.bounds.width,y.m(qe++,Se+In,$t),y.m(qe++,Se,$t),y.m(qe++,Se-Ot,$t)):(y.m(qe++,zt+In,$t),y.m(qe++,zt,$t),y.m(qe++,zt-Ot,$t)));else{y.m(qe++,yt,Dt);var Jr=0;this.K===180||this.K===0?((this.K===180?zt>=Se.bounds.right:zt<=Se.bounds.x)&&(Jr=(this.K===0?-Ot:In)/2),y.m(qe++,yt+Jr,$t)):((this.K===270?$t>=Se.bounds.bottom:$t<=Se.bounds.y)&&(Jr=(this.K===90?-Ot:In)/2),y.m(qe++,zt,Dt+Jr)),y.m(qe++,zt,$t)}}else Ot=Math.max(10,this.he[Ct.layer]),In=Math.max(10,this.Ld[Ct.layer]),Le?this.K===180?(y.m(qe++,zt-Ot-ze,$t),y.m(qe++,Math.min(zt-Ot+ze/2,zt),$t),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,Math.max(zt+In-ze/2,zt),$t),y.m(qe++,zt+In+ze,$t)):this.K===90?(y.m(qe++,zt,$t+In+ze),y.m(qe++,zt,Math.max($t+In-ze/2,$t)),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,zt,Math.min($t-Ot+ze/2,$t)),y.m(qe++,zt,$t-Ot-ze)):this.K===270?(y.m(qe++,zt,$t-Ot-ze),y.m(qe++,zt,Math.min($t-Ot+ze/2,$t)),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,zt,Math.max($t+In-ze/2,$t)),y.m(qe++,zt,$t+In+ze)):(y.m(qe++,zt+In+ze,$t),y.m(qe++,Math.max(zt+In-ze/2,zt),$t),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,Math.min(zt-Ot+ze/2,zt),$t),y.m(qe++,zt-Ot-ze,$t)):y.m(qe++,zt,$t)}Se=Ct}(ie===null||de!==Yi||Me)&&(yt=y.i(qe-1).x,Dt=y.i(qe-1).y,zt=y.i(qe).x,$t=y.i(qe).y,Me?(ze=this.Ld[pe.layer],this.K===180||this.K===0?(Me=Dt,Me>=pe.bounds.y&&Me<=pe.bounds.bottom&&(this.K===180?zt>=pe.bounds.x:zt<=pe.bounds.right)&&(Se=pe.centerX+(this.K===180?-ze:ze),Me<pe.bounds.y+pe.bounds.height/2?Me=pe.bounds.y-this.kc/2:Me=pe.bounds.bottom+this.kc/2,y.m(qe++,Se,Dt),y.m(qe++,Se,Me)),y.m(qe++,zt,Me)):(Me=yt,Me>=pe.bounds.x&&Me<=pe.bounds.right&&(this.K===270?$t>=pe.bounds.y:$t<=pe.bounds.bottom)&&(Se=pe.centerY+(this.K===270?-ze:ze),Me<pe.bounds.x+pe.bounds.width/2?Me=pe.bounds.x-this.kc/2:Me=pe.bounds.right+this.kc/2,y.m(qe++,yt,Se),y.m(qe++,Me,Se)),y.m(qe++,Me,$t)),y.m(qe++,zt,$t)):Le?(Ot=Math.max(10,this.he[pe.layer]),In=Math.max(10,this.Ld[pe.layer]),this.K===180&&zt>=pe.bounds.x?(Se=pe.bounds.x+pe.bounds.width,y.L(qe-2,Se,Dt),y.L(qe-1,Se+In,Dt)):this.K===90&&$t<=pe.bounds.bottom?(Se=pe.bounds.y,y.L(qe-2,yt,Se),y.L(qe-1,yt,Se-Ot)):this.K===270&&$t>=pe.bounds.y?(Se=pe.bounds.y+pe.bounds.height,y.L(qe-2,yt,Se),y.L(qe-1,yt,Se+In)):this.K===0&&zt<=pe.bounds.right&&(Se=pe.bounds.x,y.L(qe-2,Se,Dt),y.L(qe-1,Se-Ot,Dt))):(Ot=Math.max(10,this.he[pe.layer]),In=Math.max(10,this.Ld[pe.layer]),Me=0,this.K===180||this.K===0?((this.K===180?zt<=pe.bounds.x:zt>=pe.bounds.right)&&(Me=(this.K===0?In:-Ot)/2),y.m(qe++,zt+Me,Dt)):((this.K===270?$t<=pe.bounds.y:$t>=pe.bounds.bottom)&&(Me=(this.K===90?In:-Ot)/2),y.m(qe++,yt,$t+Me)),y.m(qe++,zt,$t)))}else{for(;pe!==null&&pe!==Se;){for(Ot=Ct=null,pe=pe.destinationEdges.iterator;pe.next()&&(yt=pe.value,yt.link!==b.link||(Ct=yt.toVertex,Ot=yt.fromVertex,Ot.node!==null&&(Ot=null),Ct.node!==null)););if(Ct===null)break;Ct!==Se&&(yt=y.i(qe-1).x,Dt=y.i(qe-1).y,zt=Ct.centerX,$t=Ct.centerY,Me?this.K===180||this.K===0?(Ot!==null?Ot.centerY:Dt)!==$t&&(Ot=this.Ta[Ct.layer]+this.Rf.x,qe===y.firstPickIndex+1&&(Ot=this.K===0?Math.max(Ot,yt):Math.min(Ot,yt)),y.m(qe++,Ot,Dt),y.m(qe++,Ot,$t)):(Ot!==null?Ot.centerX:yt)!==zt&&(Ot=this.Ta[Ct.layer]+this.Rf.y,qe===y.firstPickIndex+1&&(Ot=this.K===90?Math.max(Ot,Dt):Math.min(Ot,Dt)),y.m(qe++,yt,Ot),y.m(qe++,zt,Ot)):(Ot=Math.max(10,this.he[Ct.layer]),In=Math.max(10,this.Ld[Ct.layer]),Le?this.K===180?(y.m(qe++,zt+In+ze,$t),y.m(qe++,Math.max(zt+In-ze/2,zt),$t),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,Math.min(zt-Ot+ze/2,zt),$t),y.m(qe++,zt-Ot-ze,$t)):this.K===90?(y.m(qe++,zt,$t-Ot-ze),y.m(qe++,zt,Math.min($t-Ot+ze/2,$t)),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,zt,Math.max($t+In-ze/2,$t)),y.m(qe++,zt,$t+In+ze)):this.K===270?(y.m(qe++,zt,$t+In+ze),y.m(qe++,zt,Math.max($t+In-ze/2,$t)),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,zt,Math.min($t-Ot+ze/2,$t)),y.m(qe++,zt,$t-Ot-ze)):(y.m(qe++,zt-Ot-ze,$t),y.m(qe++,Math.min(zt-Ot+ze/2,zt),$t),y.m(qe++,zt,$t),y.m(qe++,zt,$t),y.m(qe++,Math.max(zt+In-ze/2,zt),$t),y.m(qe++,zt+In+ze,$t)):this.K===180?(y.m(qe++,zt+In,$t),y.m(qe++,zt-Ot,$t)):this.K===90?(y.m(qe++,zt,$t-Ot),y.m(qe++,zt,$t+In)):this.K===270?(y.m(qe++,zt,$t+In),y.m(qe++,zt,$t-Ot)):(y.m(qe++,zt-Ot,$t),y.m(qe++,zt+In,$t)))),pe=Ct}Me&&(yt=y.i(qe-1).x,Dt=y.i(qe-1).y,zt=y.i(qe).x,$t=y.i(qe).y,this.K===180||this.K===0?Dt!==$t&&(Ot=this.K===0?Math.min(Math.max((zt+yt)/2,this.Ta[Se.layer]+this.Rf.x),zt):Math.max(Math.min((zt+yt)/2,this.Ta[Se.layer]+this.Rf.x),zt),y.m(qe++,Ot,Dt),y.m(qe++,Ot,$t)):yt!==zt&&(Ot=this.K===90?Math.min(Math.max(($t+Dt)/2,this.Ta[Se.layer]+this.Rf.y),$t):Math.max(Math.min(($t+Dt)/2,this.Ta[Se.layer]+this.Rf.y),$t),y.m(qe++,yt,Ot),y.m(qe++,zt,Ot)))}E!==null&&Le&&4<=y.pointsCount&&(ne!==null&&(ne=de===Yi?y.getLinkPointFromPoint(x,ne,ne.ga(Xi),y.i(3),!0):y.i(0),de===Yi&&(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===Yi?y.getLinkPointFromPoint(z,ie,ie.ga(Xi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),se===Yi&&(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 qn,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 Le=b[Se];(se?Le.first:Le.jc)!==ie&&(pe++,ie=se?Le.first:Le.jc);var Me=Le.link;z=Me.i(Le.index),ne=Me.i(Le.index+1);var ze=this.linkSpacing*(pe-(de-1)/2);y++,Me.uh(),Me.L(Le.index,z.x,z.y+ze),Me.L(Le.index+1,ne.x,ne.y+ze),Me.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++)Le=b[Se],(se?Le.first:Le.jc)!==ie&&(pe++,ie=se?Le.first:Le.jc),Me=Le.link,z=Me.i(Le.index),ne=Me.i(Le.index+1),ze=this.linkSpacing*(pe-(de-1)/2),y++,Me.uh(),Me.L(Le.index,z.x+ze,z.y),Me.L(Le.index+1,ne.x+ze,ne.y),Me.zf()}z=x}a=E}}}},_e=qo.prototype,_e.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},_e.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},_e.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},_e.B=function(a,y){return a-=y,-1<a&&1>a},_e.zi=function(a,y,b,E){var x=a.length,z=E-b;if(!(1>=z))if((0>b||b>=x-1)&&Lt("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}$n.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()):Lt("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 mn(qo,"CycleDepthFirst",0),Dy=new mn(qo,"CycleGreedy",1),Cm=new mn(qo,"CycleFromLayers",2),ev=new mn(qo,"LayerOptimalLinkLength",0),Ry=new mn(qo,"LayerLongestPathSink",1),My=new mn(qo,"LayerLongestPathSource",2),tv=new mn(qo,"InitDepthFirstOut",0),Oy=new mn(qo,"InitDepthFirstIn",1),Fy=new mn(qo,"InitNaive",2),By=new mn(qo,"AggressiveNone",0),nv=new mn(qo,"AggressiveLess",1),_y=new mn(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 Lg(a){ba.call(this,a)}Sn(Lg,ba),Lg.prototype.createVertex=function(){return new mc(this)},Lg.prototype.createEdge=function(){return new Pm(this)},Lg.className="LayeredDigraphNetwork";function mc(a){Ns.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}Sn(mc,Ns);function Ub(a,y){return a.index-y.index}function rv(a,y){if(!a.$n){for(var b=[],E=Tr(a.destinationEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&b.push(x);a.$n=b}for(a=Tr(a.$n),b=a.next();!b.done;b=a.next())if(b=b.value,b.toVertex===y)return b;Lt("Unable to find destination edge to given vertex")}function Uy(a){if(!a.co){for(var y=[],b=Tr(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=Tr(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}mc.prototype.Cl=function(a){Ns.prototype.Cl.call(this,a),this.bo=this.co=null},mc.prototype.Kl=function(a){Ns.prototype.Kl.call(this,a),this.bo=this.co=null},mc.prototype.zl=function(a){Ns.prototype.zl.call(this,a),this.$n=this.ao=null},mc.prototype.Jl=function(a){Ns.prototype.Jl.call(this,a),this.$n=this.ao=null},$n.Object.defineProperties(mc.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)}}}),mc.prototype.deleteDestinationEdge=mc.prototype.Jl,mc.prototype.addDestinationEdge=mc.prototype.zl,mc.prototype.deleteSourceEdge=mc.prototype.Kl,mc.prototype.addSourceEdge=mc.prototype.Cl,mc.className="LayeredDigraphVertex";function Pm(a){Wu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Sn(Pm,Wu),$n.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 mo(a){Pa.call(this),this.Ub=new lr,this.Wn=sv,this.ud=Rd,this.vo=uv,this.Bq=Qy,this.$v=[],this.td=!0,this.Rb=cv,this.$d=new an(10,10).freeze();var y=new Bp(this);this.W=new Nc(y),this.Y=new Nc(y),this.ru=[],a&&Object.assign(this,a)}Sn(mo,Pa),mo.prototype.cloneProtected=function(a){Pa.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)},mo.prototype.qb=function(a){a.classType===mo?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Lt("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},mo.prototype.createNetwork=function(){return new Bp(this)},mo.prototype.makeNetwork=function(a){function y(E){if(E instanceof qr)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Hr){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 no?b.lg(a.memberParts,!1,y):b.lg(a.iterator,!1,y),b},mo.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?Rd:Op:this.ud=this.path===sv?Rd: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 lr,y=this.Ub.iterator;y.next();){var b=y.value;b instanceof qr?(b=this.network.ki(b),b!==null&&a.add(b)):b instanceof Nc&&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 Nc&&Wb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Nc&&Zb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Nc&&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 Nc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new lr,this.isValidLayout=!0};function _E(a){var y=new lr;for(a=a.iterator;a.next();){var b=a.value;b.initialized||y.add(b)}return y}mo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var b=y.value;switch(this.ud){case Rd:b.sourceEdges.count===0&&this.Ub.add(b);break;case Op:b.destinationEdges.count===0&&this.Ub.add(b);break;default:Lt("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 Rd:x.sourceEdges.count<b&&(b=x.sourceEdges.count,E=x);break;case Op:x.destinationEdges.count<b&&(b=x.destinationEdges.count,E=x);break;default:Lt("Unhandled path value "+a.ud.toString())}}return E}function Hy(a,y){if(y!==null){switch(a.ud){case Rd:if(0<y.destinationEdges.count){for(var b=new qn,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 Op:if(0<y.sourceEdges.count){for(b=new qn,E=y.sourceVertexes;E.next();)x=E.value,Vb(a,y,x)&&b.add(x);0<b.count&&(y.children=b.Fa())}break;default:Lt("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}mo.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===Fd&&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}}mo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(UE(this,a)),a.parent!==null&&a.parent.alignment===Fd){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])}}mo.prototype.assignTreeVertexValues=function(){};function Kb(a,y){if(y!==null){y.alignment!==Fd&&a.sortTreeVertexChildren(y),y=y.children;for(var b=y.length,E=0;E<b;E++)Kb(a,y[E])}}mo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case kg: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:Lt("Unhandled sorting value "+a.sorting.toString())}},mo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},mo.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===Fd||a===Mh||a===rh}function Tm(a){return a===Rh||a===Fd}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}mo.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=it.alloc(),Le=0;Le<pe;Le++){var Me=de[Le],ze=Me.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-ze.width,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();){var qe=Me.value;qe.fromSpot=Qs,qe.toSpot=fs}else for(Se.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=fs,qe.toSpot=Qs;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=fs,qe.toSpot=Qs;else for(Se.h(a.bounds.x+a.commentMargin-ze.width,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=Qs,qe.toSpot=fs;se=0<=a.commentSpacing?se+(ze.height+a.commentSpacing):se+(a.commentSpacing-ze.height)}else{if(135<x&&!z||!b&&ie)if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y-a.commentMargin-ze.height),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=Ms,qe.toSpot=ks;else for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y-a.commentMargin),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=ks,qe.toSpot=Ms;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y+a.commentMargin),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=ks,qe.toSpot=Ms;else for(Se.h(a.bounds.x+se,a.bounds.y+a.commentMargin-ze.height),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=Ms,qe.toSpot=ks;se=0<=a.commentSpacing?se+(ze.width+a.commentSpacing):se+(a.commentSpacing-ze.width)}}if(it.free(Se),y=se-a.commentSpacing-(E?y.height:y.width),this.ud===Rd)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)}},mo.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===Fd)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===Md;var de=se===Od,pe=mf(se),Se=Math.max(0,a.breadthLimit);b=this.computeLayerSpacing(a);var Le=a.nodeSpacing,Me=this.computeNodeIndent(a),ze=a.rowSpacing,qe=0;(E||de||a.hm||a.im&&a.maxGenerationCount===1)&&(qe=Math.max(0,a.rowIndent)),E=a.width;var Ct=a.height,yt=0,Dt=0,Ot=0,zt=null,$t=null,In=0,Jr=0,mi=0,ui=0,Ur=0,pr=0,$i=0,_i=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&&(_i=Math.max(_i,y?ne[Uo].Da.width:ne[Uo].Da.height));else ie===1&&(_i=y?ne[0].Da.width:ne[0].Da.height);if(pe){switch(se){case Rh:Dt=135>x?Xb(this,a,ne,_i,yt,Dt):Qb(this,a,ne,_i,yt,Dt),_i=Dt.x,yt=Dt.width,Dt=Dt.height;break;case Mh:for(zt=0;zt<ie;zt++)$t=ne[zt],Se=$t.Da,Ot=pr===0?0:ze,y?($t.S.h(z-Se.width,ui+Ot),yt=Math.max(yt,Se.width),Dt=Math.max(Dt,ui+Ot+Se.height),ui+=Ot+Se.height):($t.S.h(mi+Ot,z-Se.height),yt=Math.max(yt,mi+Ot+Se.width),Dt=Math.max(Dt,Se.height),mi+=Ot+Se.width),pr++;break;case rh:for(zt=0;zt<ie;zt++)$t=ne[zt],z=$t.Da,Se=pr===0?0:ze,y?($t.S.h(Le/2+a.focus.x,ui+Se),yt=Math.max(yt,z.width),Dt=Math.max(Dt,ui+Se+z.height),ui+=Se+z.height):($t.S.h(mi+Se,Le/2+a.focus.y),yt=Math.max(yt,mi+Se+z.width),Dt=Math.max(Dt,z.height),mi+=Se+z.width),pr++}zt=Lu(this,2),$t=Lu(this,2),y?(zt[0].h(0,0),zt[1].h(0,Dt),$t[0].h(yt,0)):(zt[0].h(0,0),zt[1].h(yt,0),$t[0].h(0,Dt)),$t[1].h(yt,Dt)}else for(Uo=0;Uo<ie;Uo++){var fa=ne[Uo],_s=fa.Da;if(y){0<Se&&0<pr&&mi+Le+_s.width>Se&&(mi<z&&Kf(a,se,z-mi,0,$i,Uo-1),Ur++,pr=0,$i=Uo,Ot=Dt,mi=0,ui=135<x?-Dt-ze:Dt+ze),ov(this,fa,0,ui);var Ys=0;if(pr===0)zt=fa.Yo,$t=fa.kp,In=_s.width,Jr=_s.height,(zt===null||$t===null||x!==Zc(fa))&&(zt=Lu(this,2),$t=Lu(this,2),zt[0].h(0,0),zt[1].h(0,Jr),$t[0].h(In,0),$t[1].h(In,Jr));else{var Vl=Rr();Jr=Jb(this,a,fa,zt,$t,In,Jr,Vl),Ys=Jr.x,zt=Vl[0],$t=Vl[1],In=Jr.width,Jr=Jr.height,kr(Vl),mi<_s.width&&0>Ys&&(Mp(a,-Ys,0,$i,Uo-1),av(zt,-Ys,0),av($t,-Ys,0),Ys=0)}fa.S.h(Ys,ui),yt=Math.max(yt,In),Dt=Math.max(Dt,Ot+(Ur===0?0:ze)+_s.height),mi=In}else 0<Se&&0<pr&&ui+Le+_s.height>Se&&(ui<z&&Kf(a,se,0,z-ui,$i,Uo-1),Ur++,pr=0,$i=Uo,Ot=yt,ui=0,mi=135<x?-yt-ze:yt+ze),ov(this,fa,mi,0),Ys=0,pr===0?(zt=fa.Yo,$t=fa.kp,In=_s.width,Jr=_s.height,(zt===null||$t===null||x!==Zc(fa))&&(zt=Lu(this,2),$t=Lu(this,2),zt[0].h(0,0),zt[1].h(In,0),$t[0].h(0,Jr),$t[1].h(In,Jr))):(Vl=Rr(),Jr=Jb(this,a,fa,zt,$t,In,Jr,Vl),Ys=Jr.x,zt=Vl[0],$t=Vl[1],In=Jr.width,Jr=Jr.height,kr(Vl),ui<_s.height&&0>Ys&&(Mp(a,0,-Ys,$i,Uo-1),av(zt,0,-Ys),av($t,0,-Ys),Ys=0)),fa.S.h(mi,Ys),Dt=Math.max(Dt,Jr),yt=Math.max(yt,Ot+(Ur===0?0:ze)+_s.width),ui=Jr;pr++}switch(0<Ur&&(y?(Dt+=Math.max(0,b),mi<yt&&Kf(a,se,yt-mi,0,$i,ie-1),0<qe&&(de||Mp(a,qe,0,0,ie-1),yt+=qe)):(yt+=Math.max(0,b),ui<Dt&&Kf(a,se,0,Dt-ui,$i,ie-1),0<qe&&(de||Mp(a,0,qe,0,ie-1),Dt+=qe))),qe=de=0,se){case Ig:y?de+=yt/2-a.focus.x-Me/2:qe+=Dt/2-a.focus.y-Me/2;break;case Fp:0<Ur?y?de+=yt/2-a.focus.x-Me/2:qe+=Dt/2-a.focus.y-Me/2:y?(_i=ne[0].S.x+ne[0].la.x,de+=_i+(ne[ie-1].S.x+ne[ie-1].la.x+2*ne[ie-1].focus.x-_i)/2-a.focus.x-Me/2):(_i=ne[0].S.y+ne[0].la.y,qe+=_i+(ne[ie-1].S.y+ne[ie-1].la.y+2*ne[ie-1].focus.y-_i)/2-a.focus.y-Me/2);break;case Md:y?(de-=Me,yt+=Me):(qe-=Me,Dt+=Me);break;case Od:y?(de+=yt-a.width+Me,yt+=Me):(qe+=Dt-a.height+Me,Dt+=Me);break;case Rh:y?1<ie?de+=_i+Le/2-a.focus.x:de+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<ie?qe+=_i+Le/2-a.focus.y:qe+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case Mh:y?de+=yt+Le/2-a.focus.x:qe+=Dt+Le/2-a.focus.y;break;case rh:break;default:Dt=this.customAlignment(a,de,qe,yt,Dt),de=Dt[0],qe=Dt[1],yt=Dt[2],Dt=Dt[3]}for(Me=0;Me<ie;Me++)_i=ne[Me],y?_i.S.h(_i.S.x+_i.la.x-de,_i.S.y+(135<x?(pe?-Dt:-_i.Da.height)+_i.la.y-b:Ct+b+_i.la.y)):_i.S.h(_i.S.x+(135<x?(pe?-yt:-_i.Da.width)+_i.la.x-b:E+b+_i.la.x),_i.S.y+_i.la.y-qe);if(ie=ne=0,pe?y?(yt=Gy(a,yt,de),0>de&&(de=0),135<x&&(qe+=Dt+b),Dt+=Ct+b,se===rh&&(ne+=Le/2+a.focus.x),ie+=Ct+b):(135<x&&(de+=yt+b),yt+=E+b,Dt=jy(a,Dt,qe),0>qe&&(qe=0),se===rh&&(ie+=Le/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&&(qe+=Dt+b),Dt=Math.max(Math.max(Dt,Ct),Dt+Ct+b),ie+=Ct+b):(135<x&&(de+=yt+b),yt=Math.max(Math.max(yt,E),yt+E+b),a.comments===null?Ct>Dt&&(Dt=Vy(se,0,Ct-Dt),ne=Dt.x,ie=Dt.y,Dt=Ct,qe=0):Dt=jy(a,Dt,qe),0>qe&&(ie-=qe,qe=0),ne+=E+b),0<Ur)x=Lu(this,4),Ur=Lu(this,4),y?(x[2].h(0,Ct+b),x[3].h(x[2].x,Dt),Ur[2].h(yt,x[2].y),Ur[3].h(Ur[2].x,x[3].y)):(x[2].h(E+b,0),x[3].h(yt,x[2].y),Ur[2].h(x[2].x,Dt),Ur[3].h(x[3].x,Ur[2].y));else{for(x=Lu(this,zt.length+2),Ur=Lu(this,$t.length+2),se=0;se<zt.length;se++)pe=zt[se],x[se+2].h(pe.x+ne,pe.y+ie);for(se=0;se<$t.length;se++)pe=$t[se],Ur[se+2].h(pe.x+ne,pe.y+ie)}y?(x[0].h(de,0),x[1].h(x[0].x,Ct),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])),Ur[0].h(de+E,0),Ur[1].h(Ur[0].x,Ct),Ur[2].y<Ur[1].y&&(Ur[2].x<Ur[0].x?Ur[2].assign(Ur[1]):Ur[1].assign(Ur[2])),Ur[3].y<Ur[2].y&&(Ur[3].x<Ur[0].x?Ur[3].assign(Ur[2]):Ur[2].assign(Ur[3])),x[2].y-=b/2,Ur[2].y-=b/2):(x[0].h(0,qe),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])),Ur[0].h(0,qe+Ct),Ur[1].h(E,Ur[0].y),Ur[2].x<Ur[1].x&&(Ur[2].y<Ur[0].y?Ur[2].assign(Ur[1]):Ur[1].assign(Ur[2])),Ur[3].x<Ur[2].x&&(Ur[3].y<Ur[0].y?Ur[3].assign(Ur[2]):Ur[2].assign(Ur[3])),x[2].x-=b/2,Ur[2].x-=b/2),rd(this,zt),rd(this,$t),a.Yo=x,a.kp=Ur,a.la.h(de,qe),a.Da.h(yt,Dt)}break;default:Lt("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===Md,Se=de===Od;ie=mf(de);var Le=Math.max(0,y.breadthLimit);se=a.computeLayerSpacing(y);var Me=y.nodeSpacing,ze=a.computeNodeIndent(y),qe=pe||Se?0:ze/2,Ct=y.rowSpacing,yt=0;(pe||Se||y.hm||y.im&&y.maxGenerationCount===1)&&(yt=Math.max(0,y.rowIndent)),pe=y.width;var Dt=y.height,Ot=0,zt=0,$t=0,In=0,Jr=0,mi=0,ui=0,Ur=0,pr=0,$i=0;if(ie&&!Tm(de)&&135<E&&x.reverse(),Tm(de))if(1<ne)for(var _i=0;_i<ne;_i++){var Uo=x[_i],fa=Uo.Da;_i%2===0&&_i!==ne-1?pr=Math.max(pr,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Uo)-Me):_i%2!==0&&($i=Math.max($i,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Uo)-Me))}else ne===1&&(pr=b?x[0].Da.width:x[0].Da.height);if(ie)switch(de){case Rh:case Fd:zt=135>E?Xb(a,y,x,pr,Ot,zt):Qb(a,y,x,pr,Ot,zt),pr=zt.x,Ot=zt.width,zt=zt.height;break;case Mh:for(Le=0;Le<ne;Le++)qe=x[Le],$t=qe.Da,$i=ui===0?0:Ct,b?(qe.S.h(z-$t.width,Jr+$i),Ot=Math.max(Ot,$t.width),zt=Math.max(zt,Jr+$i+$t.height),Jr+=$i+$t.height):(qe.S.h(In+$i,z-$t.height),Ot=Math.max(Ot,In+$i+$t.width),zt=Math.max(zt,$t.height),In+=$i+$t.width),ui++;break;case rh:for(z=0;z<ne;z++)Le=x[z],qe=Le.Da,$t=ui===0?0:Ct,b?(Le.S.h(Me/2+y.focus.x,Jr+$t),Ot=Math.max(Ot,qe.width),zt=Math.max(zt,Jr+$t+qe.height),Jr+=$t+qe.height):(Le.S.h(In+$t,Me/2+y.focus.y),Ot=Math.max(Ot,In+$t+qe.width),zt=Math.max(zt,qe.height),In+=$t+qe.width),ui++}else for($i=0;$i<ne;$i++)_i=x[$i],Uo=_i.Da,b?(0<Le&&0<ui&&In+Me+Uo.width>Le&&(In<z&&Kf(y,de,z-In,0,Ur,$i-1),mi++,ui=0,Ur=$i,$t=zt,In=0,Jr=135<E?-zt-Ct:zt+Ct),fa=ui===0?qe:Me,ov(a,_i,0,Jr),_i.S.h(In+fa,Jr),Ot=Math.max(Ot,In+fa+Uo.width),zt=Math.max(zt,$t+(mi===0?0:Ct)+Uo.height),In+=fa+Uo.width):(0<Le&&0<ui&&Jr+Me+Uo.height>Le&&(Jr<z&&Kf(y,de,0,z-Jr,Ur,$i-1),mi++,ui=0,Ur=$i,$t=Ot,Jr=0,In=135<E?-Ot-Ct:Ot+Ct),fa=ui===0?qe:Me,ov(a,_i,In,0),_i.S.h(In,Jr+fa),zt=Math.max(zt,Jr+fa+Uo.height),Ot=Math.max(Ot,$t+(mi===0?0:Ct)+Uo.width),Jr+=fa+Uo.height),ui++;switch(0<mi&&(b?(zt+=Math.max(0,se),In<Ot&&Kf(y,de,Ot-In,0,Ur,ne-1),0<yt&&(Se||Mp(y,yt,0,0,ne-1),Ot+=yt)):(Ot+=Math.max(0,se),Jr<zt&&Kf(y,de,0,zt-Jr,Ur,ne-1),0<yt&&(Se||Mp(y,0,yt,0,ne-1),zt+=yt))),yt=Se=0,de){case Ig:b?Se+=Ot/2-y.focus.x-ze/2:yt+=zt/2-y.focus.y-ze/2;break;case Fp:0<mi?b?Se+=Ot/2-y.focus.x-ze/2:yt+=zt/2-y.focus.y-ze/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-ze/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-ze/2);break;case Md:b?(Se-=ze,Ot+=ze):(yt-=ze,zt+=ze);break;case Od:b?(Se+=Ot-y.width+ze,Ot+=ze):(yt+=zt-y.height+ze,zt+=ze);break;case Rh:case Fd:b?1<ne?Se+=pr+Me/2-y.focus.x:Se+=x[0].focus.x-y.focus.x+x[0].la.x:1<ne?yt+=pr+Me/2-y.focus.y:yt+=x[0].focus.y-y.focus.y+x[0].la.y;break;case Mh:b?Se+=Ot+Me/2-y.focus.x:yt+=zt+Me/2-y.focus.y;break;case rh:break;default:a=a.customAlignment(y,Se,yt,Ot,zt),Se=a[0],yt=a[1],Ot=a[2],zt=a[3]}for(a=0;a<ne;a++)ze=x[a],b?ze.S.h(ze.S.x+ze.la.x-Se,ze.S.y+(135<E?(ie?-zt:-ze.Da.height)+ze.la.y-se:Dt+se+ze.la.y)):ze.S.h(ze.S.x+(135<E?(ie?-Ot:-ze.Da.width)+ze.la.x-se:pe+se+ze.la.x),ze.S.y+ze.la.y-yt);b?(Ot=Gy(y,Ot,Se),0>Se&&(Se=0),135<E&&(yt+=zt+se),zt=Math.max(Math.max(zt,Dt),zt+Dt+se)):(135<E&&(Se+=Ot+se),Ot=Math.max(Math.max(Ot,pe),Ot+pe+se),zt=jy(y,zt,yt),0>yt&&(yt=0)),y.la.h(Se,yt),y.Da.h(Ot,zt)}}mo.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,Le=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var ze=b[Me],qe=ze.Da,Ct=pe===0?0:se;if(de){var yt=a.computeBusNodeSpacing(ze)-ie;ze.S.h(E-(qe.width+yt),Le+Ct),x=Math.max(x,qe.width+yt),z=Math.max(z,Le+Ct+qe.height),Le+=Ct+qe.height}else yt=a.computeBusNodeSpacing(ze)-ie,ze.S.h(Se+Ct,E-(qe.height+yt)),z=Math.max(z,qe.height+yt),x=Math.max(x,Se+Ct+qe.width),Se+=Ct+qe.width;pe++}for(pe=0,ze=Se,Me=Le,de?(Se=E+ie,Le=0):(Se=0,Le=E+ie),qe=0;qe<ne;qe++)if(qe%2!==0){Ct=b[qe],yt=Ct.Da;var Dt=pe===0?0:se;if(de){var Ot=a.computeBusNodeSpacing(Ct)-ie;Ct.S.h(Se+Ot,Le+Dt),x=Math.max(x,Se+yt.width+Ot),z=Math.max(z,Le+Dt+yt.height),Le+=Dt+yt.height}else Ot=a.computeBusNodeSpacing(Ct)-ie,Ct.S.h(Se+Dt,Le+Ot),x=Math.max(x,Se+Dt+yt.width),z=Math.max(z,Le+yt.height+Ot),Se+=Dt+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(Me),Math.abs(Le)):Math.max(Math.abs(ze),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(Me,Le)+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(ze,Se)+a+ne.width),Le=E+ie/2-b.focus.y-b.la.y,z=Math.max(z,Le+ne.height),0>Le&&(z-=Le),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,Le=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var ze=b[Me],qe=ze.Da,Ct=pe===0?0:se;if(de){var yt=a.computeBusNodeSpacing(ze)-ie;Le-=Ct+qe.height,ze.S.h(E-(qe.width+yt),Le),x=Math.max(x,qe.width+yt),z=Math.max(z,Math.abs(Le))}else yt=a.computeBusNodeSpacing(ze)-ie,Se-=Ct+qe.width,ze.S.h(Se,E-(qe.height+yt)),z=Math.max(z,qe.height+yt),x=Math.max(x,Math.abs(Se));pe++}for(pe=0,ze=Se,Me=Le,de?(Se=E+ie,Le=0):(Se=0,Le=E+ie),qe=0;qe<ne;qe++)if(qe%2!==0){Ct=b[qe],yt=Ct.Da;var Dt=pe===0?0:se;if(de){var Ot=a.computeBusNodeSpacing(Ct)-ie;Le-=Dt+yt.height,Ct.S.h(Se+Ot,Le),x=Math.max(x,Se+yt.width+Ot),z=Math.max(z,Math.abs(Le))}else Ot=a.computeBusNodeSpacing(Ct)-ie,Se-=Dt+yt.width,Ct.S.h(Se,Le+Ot),z=Math.max(z,Le+yt.height+Ot),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(Me),Math.abs(Le)):Math.max(Math.abs(ze),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(Me,Le))+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(ze,Se))+a+pe.width),Le=E+ie/2-se.focus.y-se.la.y,z=Math.max(z,Le+pe.height),0>Le&&(z-=Le),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)}mo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},mo.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 Fp:case Ig:return b+a.width>y&&(y=b+a.width),0>b&&(y-=b),y;case Md:return a.width>y?a.width:y;case Od:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Rh:case Fd: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 rh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function jy(a,y,b){switch(a.alignment){case Fp:case Ig:return b+a.height>y&&(y=b+a.height),0>b&&(y-=b),y;case Md:return a.height>y?a.height:y;case Od:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Rh:case Fd: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 rh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Vy(a,y,b){switch(a){case Ig:y/=2,b/=2;break;case Fp:y/=2,b/=2;break;case Md:b=y=0;break;case Od:break;default:Lt("Unhandled alignment value "+a.toString())}return new it(y,b)}function Kf(a,y,b,E,x,z){y=Vy(y,b,E),Mp(a,y.x,y.y,x,z)}function Mp(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 Rd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===x&&y.relativePoint.h(b,E);break;case Op:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===x&&y.relativePoint.h(b,E);break;default:Lt("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 Le=ne,Me=b.Yo,ze=b.kp;ne=b.Da;var qe=de?Math.max(Le,ne.height):Math.max(E,ne.width);if((Me===null||se!==Zc(b))&&(Me=Lu(a,2),ze=Lu(a,2),de?(Me[0].h(0,0),Me[1].h(0,ne.height),ze[0].h(ne.width,0),ze[1].h(ze[0].x,Me[1].y)):(Me[0].h(0,0),Me[1].h(ne.width,0),ze[0].h(0,ne.height),ze[1].h(Me[1].x,ze[0].y))),de){if(Le=9999999,!(Se===null||2>Se.length||Me===null||2>Me.length))for(x=b=0;b<Se.length&&x<Me.length;){z=Se[b];var Ct=Me[x];se=Ct.x,de=Ct.y,se+=E;var yt=z;b+1<Se.length&&(yt=Se[b+1]);var Dt=Ct;Ct=Dt.x,Dt=Dt.y,x+1<Me.length&&(Dt=Me[x+1],Ct=Dt.x,Dt=Dt.y,Ct+=E);var Ot=Le;z.y===de?Ot=se-z.x:z.y>de&&z.y<Dt?Ot=se+(z.y-de)/(Dt-de)*(Ct-se)-z.x:de>z.y&&de<yt.y&&(Ot=se-(z.x+(de-z.y)/(yt.y-z.y)*(yt.x-z.x))),Ot<Le&&(Le=Ot),yt.y<=z.y?b++:Dt<=de?x++:(yt.y<=Dt&&b++,Dt<=yt.y&&x++)}if(Le=E-Le,Le+=pe,b=Me,x=Le,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=Lu(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=Lu(a,E),se=0;se<E;se++)b[se].assign(pe[se]);rd(a,pe),E=b}if(z=ze,se=Le,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Lu(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=Lu(a,x),b=0;b<x;b++)z[b].assign(pe[b]);rd(a,pe),x=z}return z=Math.max(0,Le)+ne.width,ne=qe,rd(a,y),rd(a,Me),rd(a,Se),rd(a,ze),ie[0]=E,ie[1]=x,new An(Le,0,z,ne)}if(E=9999999,!(Se===null||2>Se.length||Me===null||2>Me.length))for(x=b=0;b<Se.length&&x<Me.length;)z=Se[b],Ct=Me[x],se=Ct.x,de=Ct.y,de+=Le,yt=z,b+1<Se.length&&(yt=Se[b+1]),Dt=Ct,Ct=Dt.x,Dt=Dt.y,x+1<Me.length&&(Dt=Me[x+1],Ct=Dt.x,Dt=Dt.y,Dt+=Le),Ot=E,z.x===se?Ot=de-z.y:z.x>se&&z.x<Ct?Ot=de+(z.x-se)/(Ct-se)*(Dt-de)-z.y:se>z.x&&se<yt.x&&(Ot=de-(z.y+(se-z.x)/(yt.x-z.x)*(yt.y-z.y))),Ot<E&&(E=Ot),yt.x<=z.x?b++:Ct<=se?x++:(yt.x<=Ct&&b++,Ct<=yt.x&&x++);if(Le-=E,Le+=pe,b=Me,x=Le,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=Lu(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=Lu(a,E),se=0;se<E;se++)b[se].assign(pe[se]);rd(a,pe),E=b}if(z=ze,se=Le,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Lu(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=Lu(a,x),b=0;b<x;b++)z[b].assign(pe[b]);rd(a,pe),x=z}return z=qe,ne=Math.max(0,Le)+ne.height,rd(a,y),rd(a,Me),rd(a,Se),rd(a,ze),ie[0]=E,ie[1]=x,new An(Le,0,z,ne)}function Lu(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 it;return a}function rd(a,y){var b=y.length,E=a.ru[b];E===void 0&&(E=[],a.ru[b]=E),E.push(y)}mo.prototype.arrangeTrees=function(){if(this.Rb===dv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Nc){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 Nc&&a.push(b);switch(this.sorting){case kg:break;case Am:a.reverse();break;case Nm:a.sort(this.comparer);break;case Lm:a.sort(this.comparer),a.reverse();break;default:Lt("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:Lt("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)}}}mo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},mo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},mo.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 it(-this.nodeSpacing/2,-this.layerSpacing/2)):(b.Bc(this.layerSpacing,this.nodeSpacing/2),E=new it(-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)}},mo.prototype.commitLayers=function(){},mo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},mo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Nc&&$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])}}mo.prototype.setPortSpots=function(a){var y=a.alignment;if(mf(y)){var b=this.ud===Rd,E=Zc(a);switch(E){case 0:var x=fs;break;case 90:x=ks;break;case 180:x=Qs;break;default:x=Ms}var z=a.children,ne=z.length;switch(y){case Rh:case Fd: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?Qs:Ms;if(ne===1||y===ne-1&&ne%2===1)switch(E){case 0:se=Qs;break;case 90:se=Ms;break;case 180:se=fs;break;default:se=ks}else y%2===0&&(se=E===90||E===270?fs:ks);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?fs:ks,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 rh:for(E=E===90||E===270?Qs:Ms,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===Rd){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=fs;break;case 90:E.fromSpot=ks;break;case 180:E.fromSpot=Qs;break;default:E.fromSpot=Ms}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.toSpot=Qs;break;case 90:E.toSpot=Ms;break;case 180:E.toSpot=fs;break;default:E.toSpot=ks}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=fs;break;case 90:E.toSpot=ks;break;case 180:E.toSpot=Qs;break;default:E.toSpot=Ms}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.fromSpot=Qs;break;case 90:E.fromSpot=Ms;break;case 180:E.fromSpot=fs;break;default:E.fromSpot=ks}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}mo.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},mo.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)},$n.Object.defineProperties(mo.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!==kg&&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()):Lt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==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!==kg&&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 mn(mo,"PathDefault",-1),Rd=new mn(mo,"PathDestination",0),Op=new mn(mo,"PathSource",1),kg=new mn(mo,"SortingForwards",10),Am=new mn(mo,"SortingReverse",11),Nm=new mn(mo,"SortingAscending",12),Lm=new mn(mo,"SortingDescending",13),Ig=new mn(mo,"AlignmentCenterSubtrees",20),Fp=new mn(mo,"AlignmentCenterChildren",21),Md=new mn(mo,"AlignmentStart",22),Od=new mn(mo,"AlignmentEnd",23),Rh=new mn(mo,"AlignmentBus",24),Fd=new mn(mo,"AlignmentBusBranching",25),Mh=new mn(mo,"AlignmentTopLeftBus",26),rh=new mn(mo,"AlignmentBottomRightBus",27),lv=new mn(mo,"CompactionNone",30),km=new mn(mo,"CompactionBlock",31),uv=new mn(mo,"StyleLayered",40),Zy=new mn(mo,"StyleLastParents",41),Ky=new mn(mo,"StyleAlternating",42),Yy=new mn(mo,"StyleRootOnly",43),cv=new mn(mo,"ArrangementVertical",50),Xy=new mn(mo,"ArrangementHorizontal",51),dv=new mn(mo,"ArrangementFixedRoots",52),Qy=new mn(mo,"LayerIndividual",60),Jy=new mn(mo,"LayerSiblings",61),hv=new mn(mo,"LayerUniform",62);mo.className="TreeLayout",mo.PathDefault=sv,mo.PathDestination=Rd,mo.PathSource=Op,mo.SortingForwards=kg,mo.SortingReverse=Am,mo.SortingAscending=Nm,mo.SortingDescending=Lm,mo.AlignmentCenterSubtrees=Ig,mo.AlignmentCenterChildren=Fp,mo.AlignmentStart=Md,mo.AlignmentEnd=Od,mo.AlignmentBus=Rh,mo.AlignmentBusBranching=Fd,mo.AlignmentTopLeftBus=Mh,mo.AlignmentBottomRightBus=rh,mo.CompactionNone=lv,mo.CompactionBlock=km,mo.StyleLayered=uv,mo.StyleLastParents=Zy,mo.StyleAlternating=Ky,mo.StyleRootOnly=Yy,mo.ArrangementVertical=cv,mo.ArrangementHorizontal=Xy,mo.ArrangementFixedRoots=dv,mo.LayerIndividual=Qy,mo.LayerSiblings=Jy,mo.LayerUniform=hv;function Bp(a){ba.call(this,a)}Sn(Bp,ba),Bp.prototype.createVertex=function(){return new Nc(this)},Bp.prototype.createEdge=function(){return new Dg(this)},Bp.className="TreeNetwork";function Nc(a){Ns.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 it(0,0),this.Da=new an(0,0),this.la=new it(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=kg,this.hd=vy,this.Kb=0,this.Jb=Fp,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=ns,this.wr=!0,this.Dp=ns}Sn(Nc,Ns),Nc.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)},$n.Object.defineProperties(Nc.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)}}}),Nc.className="TreeVertex";function Dg(a){Wu.call(this,a),this.$t=new it(0,0)}Sn(Dg,Wu),Dg.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 Rd:b=this.fromVertex,E=this.toVertex;break;case Op:b=this.toVertex,E=this.fromVertex;break;default:Lt("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===$u,de=a.isOrthogonal,pe;if(a.uh(),de||se){for(pe=2;4<a.pointsCount;)a.pv(2);var Se=a.i(1),Le=a.i(2)}else{for(pe=1;3<a.pointsCount;)a.pv(1);Se=a.i(0),Le=a.i(a.pointsCount-1)}var Me=a.i(a.pointsCount-1);z===0?(b.alignment===Od?(z=E.bottom+x.y,x.y===0&&Se.y>Me.y+b.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.top+x.y,x.y===0&&Se.y<Me.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,Le.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,Le.y))):z===90?(b.alignment===Od?(z=E.right+x.x,x.x===0&&Se.x>Me.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.left+x.x,x.x===0&&Se.x<Me.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,Le.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,Le.x,a.i(pe-1).y))):z===180?(b.alignment===Od?(z=E.bottom+x.y,x.y===0&&Se.y>Me.y+b.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.top+x.y,x.y===0&&Se.y<Me.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,Le.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,Le.y))):z===270?(b.alignment===Od?(z=E.right+x.x,x.x===0&&Se.x>Me.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.left+x.x,x.x===0&&Se.x<Me.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,Le.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,Le.x,a.i(pe-1).y))):Lt("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===$u,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()))}}},$n.Object.defineProperties(Dg.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)}}}),Dg.className="TreeEdge",aa.prototype.initializeStandardTools=function(){this.gb("Action",new nr,this.mouseDownTools),this.gb("Relinking",new Il,this.mouseDownTools),this.gb("LinkReshaping",new Xe,this.mouseDownTools),this.gb("Rotating",new yr,this.mouseDownTools),this.gb("Resizing",new Cn,this.mouseDownTools),this.gb("Linking",new Fs,this.mouseMoveTools),this.gb("Dragging",new la,this.mouseMoveTools),this.gb("DragSelecting",new zr,this.mouseMoveTools),this.gb("Panning",new ur,this.mouseMoveTools),this.gb("ContextMenu",new ea,this.mouseUpTools),this.gb("TextEditing",new xo,this.mouseUpTools),this.gb("ClickCreating",new Zr,this.mouseUpTools),this.gb("ClickSelecting",new xr,this.mouseUpTools)},pd("Horizontal",new zm),pd("Spot",new jm),pd("Table",new Wm),pd("Viewbox",new Ym),pd("TableRow",new Zm),pd("TableColumn",new Km),pd("Graduated",new Zg),pd("Grid",new Wg),Mf.add("GraphLinksModel",Ks),Mf.add("TreeModel",pc);var fv=_n.go,qy={get licenseKey(){return kn.licenseKey},set licenseKey(a){kn.licenseKey=a},get version(){return kn.version},Group:no,EnumValue:mn,List:qn,Set:lr,Map:wn,Point:it,Size:an,Rect:An,Margin:to,Spot:fi,Geometry:Ir,PathFigure:Wa,PathSegment:Eo,InputEvent:Es,DiagramEvent:Fu,ChangedEvent:va,Model:Ei,GraphLinksModel:No,TreeModel:su,Binding:ss,Transaction:Za,UndoManager:na,CommandHandler:wt,Tool:bo,DraggingTool:la,DraggingInfo:Bc,DraggingOptions:le,LinkingBaseTool:Na,LinkingTool:Fs,RelinkingTool:Il,LinkReshapingTool:Xe,ResizingTool:Cn,RotatingTool:yr,ClickSelectingTool:xr,ActionTool:nr,ClickCreatingTool:Zr,HTMLInfo:Po,ContextMenuTool:ea,DragSelectingTool:zr,PanningTool:ur,TextEditingTool:xo,ToolManager:aa,Animation:ni,AnimationManager:el,AnimationTrigger:Hl,Layer:Cs,Diagram:kn,Palette:ye,Overview:xe,Brush:_o,GraphObject:on,Panel:Ar,RowColumnDefinition:vs,Shape:oo,TextBlock:Sa,Picture:gu,Part:Pi,Adornment:Mo,Node:qr,Link:Hr,Placeholder:ru,Layout:Pa,LayoutNetwork:ba,LayoutVertex:Ns,LayoutEdge:Wu,GridLayout:nl,PanelLayout:As,CircularLayout:Da,CircularNetwork:Ag,CircularVertex:bm,CircularEdge:K0,ForceDirectedLayout:yl,ForceDirectedNetwork:Rp,ForceDirectedVertex:Em,ForceDirectedEdge:xm,LayeredDigraphLayout:qo,LayeredDigraphNetwork:Lg,LayeredDigraphVertex:mc,LayeredDigraphEdge:Pm,TreeLayout:mo,TreeNetwork:Bp,TreeVertex:Nc,TreeEdge:Dg};typeof fv=="object"&&fv.version&&Er("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,_n.go=qy,typeof He.exports=="object"&&(He.exports=typeof ae.g!="undefined"?ae.g.go:self.go)}();var oe=typeof ae.g!="undefined"?ae.g.go:self.go;const Ce=typeof ae.g!="undefined"?ae.g.go:self.go,ke=Ce.Group,Ie=Ce.EnumValue,je=Ce.List,Te=Ce.Set,Ge=Ce.Map,lt=Ce.Point,Qe=Ce.Size,Ue=Ce.Rect,mt=Ce.Margin,Je=Ce.Spot,It=Ce.Geometry,Oe=Ce.PathFigure,te=Ce.PathSegment,ee=Ce.InputEvent,he=Ce.DiagramEvent,ue=Ce.ChangedEvent,fe=Ce.Model,me=Ce.GraphLinksModel,be=Ce.TreeModel,Ae=Ce.Binding,De=Ce.Transaction,Ye=Ce.UndoManager,rt=Ce.CommandHandler,$e=Ce.Tool,at=Ce.DraggingTool,ht=Ce.DraggingInfo,ot=Ce.LinkingBaseTool,vt=Ce.LinkingTool,xt=Ce.RelinkingTool,Tt=Ce.LinkReshapingTool,_t=Ce.ResizingTool,Jt=Ce.RotatingTool,Zt=Ce.ClickSelectingTool,vn=Ce.ActionTool,bt=Ce.ClickCreatingTool,ft=Ce.HTMLInfo,ct=Ce.ContextMenuTool,qt=Ce.DragSelectingTool,dn=Ce.PanningTool,kt=Ce.TextEditingTool,bn=Ce.ToolManager,gn=Ce.Animation,Zn=Ce.AnimationManager,Gt=Ce.AnimationTrigger,Rt=Ce.Layer,tn=Ce.Diagram,zn=Ce.Palette,Yn=Ce.Overview,nt=Ce.Brush,Be=Ce.GraphObject,Re=Ce.Panel,Ze=Ce.RowColumnDefinition,st=Ce.Shape,Fe=Ce.TextBlock,St=Ce.TextBlockMetrics,hn=Ce.Picture,On=Ce.Part,or=Ce.Adornment,jt=Ce.Node,Ut=Ce.Link,Qt=Ce.Placeholder,En=Ce.Layout,Mn=Ce.LayoutNetwork,Tn=Ce.LayoutVertex,Ht=Ce.LayoutEdge,Vn=Ce.GridLayout,Xt=Ce.PanelLayout,nn=Ce.CircularLayout,fn=Ce.CircularNetwork,Gn=Ce.CircularVertex,cn=Ce.CircularEdge,Et=Ce.ForceDirectedLayout,Jn=Ce.ForceDirectedNetwork,ir=Ce.ForceDirectedVertex,Wt=Ce.ForceDirectedEdge,wr=Ce.LayeredDigraphLayout,ei=Ce.LayeredDigraphNetwork,Fr=Ce.LayeredDigraphVertex,Dn=Ce.LayeredDigraphEdge,ii=Ce.TreeLayout,Kr=Ce.TreeNetwork,cr=Ce.TreeVertex,Dr=Ce.TreeEdge,ri=Ce.version},46963:function(He){"use strict";He.exports=ae;var Ee=/[#.]/g;function ae(oe,Ce){for(var ke=oe||"",Ie=Ce||"div",je={},Te=0,Ge,lt,Qe;Te<ke.length;)Ee.lastIndex=Te,Qe=Ee.exec(ke),Ge=ke.slice(Te,Qe?Qe.index:ke.length),Ge&&(lt?lt==="#"?je.id=Ge:je.className?je.className.push(Ge):je.className=[Ge]:Ie=Ge,Te+=Ge.length),Qe&&(lt=Qe[0],Te++);return{type:"element",tagName:Ie,properties:je,children:[]}}},5641:function(He,Ee,ae){"use strict";var oe=ae(88914),Ce=ae(47178),ke=ae(46963),Ie=ae(92848).Q,je=ae(58951).Q;He.exports=Ge;var Te={}.hasOwnProperty;function Ge(te,ee,he){var ue=he?Oe(he):null;return fe;function fe(be,Ae){var De=ke(be,ee),Ye=Array.prototype.slice.call(arguments,2),rt=De.tagName.toLowerCase(),$e;if(De.tagName=ue&&Te.call(ue,rt)?ue[rt]:rt,Ae&&lt(Ae,De)&&(Ye.unshift(Ae),Ae=null),Ae)for($e in Ae)me(De.properties,$e,Ae[$e]);return Ue(De.children,Ye),De.tagName==="template"&&(De.content={type:"root",children:De.children},De.children=[]),De}function me(be,Ae,De){var Ye,rt,$e;De==null||De!==De||(Ye=oe(te,Ae),rt=Ye.property,$e=De,typeof $e=="string"&&(Ye.spaceSeparated?$e=Ie($e):Ye.commaSeparated?$e=je($e):Ye.commaOrSpaceSeparated&&($e=Ie(je($e).join(" ")))),rt==="style"&&typeof De!="string"&&($e=It($e)),rt==="className"&&be.className&&($e=be.className.concat($e)),be[rt]=mt(Ye,rt,$e))}}function lt(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 mt(te,ee,he){var ue,fe,me;if(typeof he!="object"||!("length"in he))return Je(te,ee,he);for(fe=he.length,ue=-1,me=[];++ue<fe;)me[ue]=Je(te,ee,he[ue]);return me}function Je(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===""||Ce(he)===Ce(ee))&&(ue=!0),ue}function It(te){var ee=[],he;for(he in te)ee.push([he,te[he]].join(": "));return ee.join("; ")}function Oe(te){for(var ee=te.length,he=-1,ue={},fe;++he<ee;)fe=te[he],ue[fe.toLowerCase()]=fe;return ue}},82073:function(He,Ee,ae){"use strict";var oe=ae(18795),Ce=ae(5641),ke=Ce(oe,"div");ke.displayName="html",He.exports=ke},43621:function(He,Ee,ae){"use strict";He.exports=ae(82073)},93193:function(He){var Ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ae=/\n/g,oe=/^\s*/,Ce=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ke=/^:\s*/,Ie=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,je=/^[;\s]*/,Te=/^\s+|\s+$/g,Ge=`
`,lt="/",Qe="*",Ue="",mt="comment",Je="declaration";He.exports=function(Oe,te){if(typeof Oe!="string")throw new TypeError("First argument must be a string");if(!Oe)return[];te=te||{};var ee=1,he=1;function ue(ot){var vt=ot.match(ae);vt&&(ee+=vt.length);var xt=ot.lastIndexOf(Ge);he=~xt?ot.length-xt:he+ot.length}function fe(){var ot={line:ee,column:he};return function(vt){return vt.position=new me(ot),Ye(),vt}}function me(ot){this.start=ot,this.end={line:ee,column:he},this.source=te.source}me.prototype.content=Oe;var be=[];function Ae(ot){var vt=new Error(te.source+":"+ee+":"+he+": "+ot);if(vt.reason=ot,vt.filename=te.source,vt.line=ee,vt.column=he,vt.source=Oe,te.silent)be.push(vt);else throw vt}function De(ot){var vt=ot.exec(Oe);if(vt){var xt=vt[0];return ue(xt),Oe=Oe.slice(xt.length),vt}}function Ye(){De(oe)}function rt(ot){var vt;for(ot=ot||[];vt=$e();)vt!==!1&&ot.push(vt);return ot}function $e(){var ot=fe();if(!(lt!=Oe.charAt(0)||Qe!=Oe.charAt(1))){for(var vt=2;Ue!=Oe.charAt(vt)&&(Qe!=Oe.charAt(vt)||lt!=Oe.charAt(vt+1));)++vt;if(vt+=2,Ue===Oe.charAt(vt-1))return Ae("End of comment missing");var xt=Oe.slice(2,vt-2);return he+=2,ue(xt),Oe=Oe.slice(vt),he+=2,ot({type:mt,comment:xt})}}function at(){var ot=fe(),vt=De(Ce);if(vt){if($e(),!De(ke))return Ae("property missing ':'");var xt=De(Ie),Tt=ot({type:Je,property:It(vt[0].replace(Ee,Ue)),value:xt?It(xt[0].replace(Ee,Ue)):Ue});return De(je),Tt}}function ht(){var ot=[];rt(ot);for(var vt;vt=at();)vt!==!1&&(ot.push(vt),rt(ot));return ot}return Ye(),ht()};function It(Oe){return Oe?Oe.replace(Te,Ue):Ue}},91241:function(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(91241),Ce=ae(22347);He.exports=ke;function ke(Ie){return oe(Ie)||Ce(Ie)}},22347:function(He){"use strict";He.exports=Ee;function Ee(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=48&&oe<=57}},65207:function(He){"use strict";He.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(He,Ee,ae){var oe,Ce;(function(ke,Ie){He.exports=Ie(ke)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(ke){"use strict";ke=ke||{};var Ie=ke.Base64,je="2.6.4",Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=function(xt){for(var Tt={},_t=0,Jt=xt.length;_t<Jt;_t++)Tt[xt.charAt(_t)]=_t;return Tt}(Te),lt=String.fromCharCode,Qe=function(xt){if(xt.length<2){var Tt=xt.charCodeAt(0);return Tt<128?xt:Tt<2048?lt(192|Tt>>>6)+lt(128|Tt&63):lt(224|Tt>>>12&15)+lt(128|Tt>>>6&63)+lt(128|Tt&63)}else{var Tt=65536+(xt.charCodeAt(0)-55296)*1024+(xt.charCodeAt(1)-56320);return lt(240|Tt>>>18&7)+lt(128|Tt>>>12&63)+lt(128|Tt>>>6&63)+lt(128|Tt&63)}},Ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,mt=function(xt){return xt.replace(Ue,Qe)},Je=function(xt){var Tt=[0,2,1][xt.length%3],_t=xt.charCodeAt(0)<<16|(xt.length>1?xt.charCodeAt(1):0)<<8|(xt.length>2?xt.charCodeAt(2):0),Jt=[Te.charAt(_t>>>18),Te.charAt(_t>>>12&63),Tt>=2?"=":Te.charAt(_t>>>6&63),Tt>=1?"=":Te.charAt(_t&63)];return Jt.join("")},It=ke.btoa&&typeof ke.btoa=="function"?function(xt){return ke.btoa(xt)}:function(xt){if(xt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return xt.replace(/[\s\S]{1,3}/g,Je)},Oe=function(xt){return It(mt(String(xt)))},te=function(xt){return xt.replace(/[+\/]/g,function(Tt){return Tt=="+"?"-":"_"}).replace(/=/g,"")},ee=function(xt,Tt){return Tt?te(Oe(xt)):Oe(xt)},he=function(xt){return ee(xt,!0)},ue;ke.Uint8Array&&(ue=function(xt,Tt){for(var _t="",Jt=0,Zt=xt.length;Jt<Zt;Jt+=3){var vn=xt[Jt],bt=xt[Jt+1],ft=xt[Jt+2],ct=vn<<16|bt<<8|ft;_t+=Te.charAt(ct>>>18)+Te.charAt(ct>>>12&63)+(typeof bt!="undefined"?Te.charAt(ct>>>6&63):"=")+(typeof ft!="undefined"?Te.charAt(ct&63):"=")}return Tt?te(_t):_t});var fe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(xt){switch(xt.length){case 4:var Tt=(7&xt.charCodeAt(0))<<18|(63&xt.charCodeAt(1))<<12|(63&xt.charCodeAt(2))<<6|63&xt.charCodeAt(3),_t=Tt-65536;return lt((_t>>>10)+55296)+lt((_t&1023)+56320);case 3:return lt((15&xt.charCodeAt(0))<<12|(63&xt.charCodeAt(1))<<6|63&xt.charCodeAt(2));default:return lt((31&xt.charCodeAt(0))<<6|63&xt.charCodeAt(1))}},be=function(xt){return xt.replace(fe,me)},Ae=function(xt){var Tt=xt.length,_t=Tt%4,Jt=(Tt>0?Ge[xt.charAt(0)]<<18:0)|(Tt>1?Ge[xt.charAt(1)]<<12:0)|(Tt>2?Ge[xt.charAt(2)]<<6:0)|(Tt>3?Ge[xt.charAt(3)]:0),Zt=[lt(Jt>>>16),lt(Jt>>>8&255),lt(Jt&255)];return Zt.length-=[0,0,2,1][_t],Zt.join("")},De=ke.atob&&typeof ke.atob=="function"?function(xt){return ke.atob(xt)}:function(xt){return xt.replace(/\S{1,4}/g,Ae)},Ye=function(xt){return De(String(xt).replace(/[^A-Za-z0-9\+\/]/g,""))},rt=function(xt){return be(De(xt))},$e=function(xt){return String(xt).replace(/[-_]/g,function(Tt){return Tt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},at=function(xt){return rt($e(xt))},ht;ke.Uint8Array&&(ht=function(xt){return Uint8Array.from(Ye($e(xt)),function(Tt){return Tt.charCodeAt(0)})});var ot=function(){var xt=ke.Base64;return ke.Base64=Ie,xt};if(ke.Base64={VERSION:je,atob:Ye,btoa:It,fromBase64:at,toBase64:ee,utob:mt,encode:ee,encodeURI:he,btou:be,decode:at,noConflict:ot,fromUint8Array:ue,toUint8Array:ht},typeof Object.defineProperty=="function"){var vt=function(xt){return{value:xt,enumerable:!1,writable:!0,configurable:!0}};ke.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",vt(function(){return at(this)})),Object.defineProperty(String.prototype,"toBase64",vt(function(xt){return ee(this,xt)})),Object.defineProperty(String.prototype,"toBase64URI",vt(function(){return ee(this,!0)}))}}return ke.Meteor&&(Base64=ke.Base64),He.exports?He.exports.Base64=ke.Base64:(oe=[],Ce=function(){return ke.Base64}.apply(Ee,oe),Ce!==void 0&&(He.exports=Ce)),{Base64:ke.Base64}})},2859:function(He,Ee,ae){"use strict";ae.d(Ee,{hP:function(){return Yn}});var oe=function(nt,Be){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Re,Ze){Re.__proto__=Ze}||function(Re,Ze){for(var st in Ze)Object.prototype.hasOwnProperty.call(Ze,st)&&(Re[st]=Ze[st])})(nt,Be)};function Ce(nt,Be){function Re(){this.constructor=nt}oe(nt,Be),nt.prototype=Be===null?Object.create(Be):(Re.prototype=Be.prototype,new Re)}function ke(nt,Be,Re,Ze){return new(Re||(Re=Promise))(function(st,Fe){function St(or){try{On(Ze.next(or))}catch(jt){Fe(jt)}}function hn(or){try{On(Ze.throw(or))}catch(jt){Fe(jt)}}function On(or){var jt;or.done?st(or.value):(jt=or.value,jt instanceof Re?jt:new Re(function(Ut){Ut(jt)})).then(St,hn)}On((Ze=Ze.apply(nt,Be||[])).next())})}function Ie(nt,Be){var Re,Ze,st,Fe,St={label:0,sent:function(){if(1&st[0])throw st[1];return st[1]},trys:[],ops:[]};return Fe={next:hn(0),throw:hn(1),return:hn(2)},typeof Symbol=="function"&&(Fe[Symbol.iterator]=function(){return this}),Fe;function hn(On){return function(or){return function(jt){if(Re)throw new TypeError("Generator is already executing.");for(;St;)try{if(Re=1,Ze&&(st=2&jt[0]?Ze.return:jt[0]?Ze.throw||((st=Ze.return)&&st.call(Ze),0):Ze.next)&&!(st=st.call(Ze,jt[1])).done)return st;switch(Ze=0,st&&(jt=[2&jt[0],st.value]),jt[0]){case 0:case 1:st=jt;break;case 4:return St.label++,{value:jt[1],done:!1};case 5:St.label++,Ze=jt[1],jt=[0];continue;case 7:jt=St.ops.pop(),St.trys.pop();continue;default:if(st=St.trys,!((st=st.length>0&&st[st.length-1])||jt[0]!==6&&jt[0]!==2)){St=0;continue}if(jt[0]===3&&(!st||jt[1]>st[0]&&jt[1]<st[3])){St.label=jt[1];break}if(jt[0]===6&&St.label<st[1]){St.label=st[1],st=jt;break}if(st&&St.label<st[2]){St.label=st[2],St.ops.push(jt);break}st[2]&&St.ops.pop(),St.trys.pop();continue}jt=Be.call(nt,St)}catch(Ut){jt=[6,Ut],Ze=0}finally{Re=st=0}if(5&jt[0])throw jt[1];return{value:jt[0]?jt[1]:void 0,done:!0}}([On,or])}}}function je(){for(var nt=0,Be=0,Re=arguments.length;Be<Re;Be++)nt+=arguments[Be].length;var Ze=Array(nt),st=0;for(Be=0;Be<Re;Be++)for(var Fe=arguments[Be],St=0,hn=Fe.length;St<hn;St++,st++)Ze[st]=Fe[St];return Ze}var Te=function(){function nt(){}return nt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},nt.setAttributes=function(Be,Re){for(var Ze=0,st=Re;Ze<st.length;Ze++){var Fe=st[Ze],St=Fe[0],hn=Fe[1];Be.setAttribute(St,hn)}},nt.createRect=function(Be,Re,Ze){var st=document.createElementNS("http://www.w3.org/2000/svg","rect");return st.setAttribute("width",Be.toString()),st.setAttribute("height",Re.toString()),Ze&&nt.setAttributes(st,Ze),st},nt.createLine=function(Be,Re,Ze,st,Fe){var St=document.createElementNS("http://www.w3.org/2000/svg","line");return St.setAttribute("x1",Be.toString()),St.setAttribute("y1",Re.toString()),St.setAttribute("x2",Ze.toString()),St.setAttribute("y2",st.toString()),Fe&&nt.setAttributes(St,Fe),St},nt.createPolygon=function(Be,Re){var Ze=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ze.setAttribute("points",Be),Re&&nt.setAttributes(Ze,Re),Ze},nt.createCircle=function(Be,Re){var Ze=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ze.setAttribute("cx",(Be/2).toString()),Ze.setAttribute("cy",(Be/2).toString()),Ze.setAttribute("r",Be.toString()),Re&&nt.setAttributes(Ze,Re),Ze},nt.createEllipse=function(Be,Re,Ze){var st=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return st.setAttribute("cx",(Be/2).toString()),st.setAttribute("cy",(Re/2).toString()),st.setAttribute("rx",(Be/2).toString()),st.setAttribute("ry",(Re/2).toString()),Ze&&nt.setAttributes(st,Ze),st},nt.createGroup=function(Be){var Re=document.createElementNS("http://www.w3.org/2000/svg","g");return Be&&nt.setAttributes(Re,Be),Re},nt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},nt.createMarker=function(Be,Re,Ze,st,Fe,St,hn){var On=document.createElementNS("http://www.w3.org/2000/svg","marker");return nt.setAttributes(On,[["id",Be],["orient",Re],["markerWidth",Ze.toString()],["markerHeight",st.toString()],["refX",Fe.toString()],["refY",St.toString()]]),On.appendChild(hn),On},nt.createText=function(Be){var Re=document.createElementNS("http://www.w3.org/2000/svg","text");return Re.setAttribute("x","0"),Re.setAttribute("y","0"),Be&&nt.setAttributes(Re,Be),Re},nt.createTSpan=function(Be,Re){var Ze=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ze.textContent=Be,Re&&nt.setAttributes(Ze,Re),Ze},nt.createImage=function(Be){var Re=document.createElementNS("http://www.w3.org/2000/svg","image");return Be&&nt.setAttributes(Re,Be),Re},nt.createPoint=function(Be,Re){var Ze=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ze.x=Be,Ze.y=Re,Ze},nt.createPath=function(Be,Re){var Ze=document.createElementNS("http://www.w3.org/2000/svg","path");return Ze.setAttribute("d",Be),Re&&nt.setAttributes(Ze,Re),Ze},nt}(),Ge=function(){function nt(){}return nt.addKey=function(Be){nt.key=Be},Object.defineProperty(nt,"isLicensed",{get:function(){return!!nt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(nt.key)},enumerable:!1,configurable:!0}),nt}(),lt=function(){function nt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return nt.prototype.rasterize=function(Be,Re,Ze){var st=this;return new Promise(function(Fe){var St=Ze!==void 0?Ze:document.createElement("canvas");Be===null&&(st.markersOnly=!0,st.naturalSize=!1);var hn=document.createElementNS("http://www.w3.org/2000/svg","svg");hn.setAttribute("xmlns","http://www.w3.org/2000/svg"),hn.setAttribute("width",Re.width.baseVal.valueAsString),hn.setAttribute("height",Re.height.baseVal.valueAsString),hn.setAttribute("viewBox","0 0 "+Re.viewBox.baseVal.width.toString()+" "+Re.viewBox.baseVal.height.toString()),hn.innerHTML=Re.innerHTML,st.naturalSize===!0?(hn.width.baseVal.value=Be.naturalWidth,hn.height.baseVal.value=Be.naturalHeight):st.width!==void 0&&st.height!==void 0&&(hn.width.baseVal.value=st.width,hn.height.baseVal.value=st.height),St.width=hn.width.baseVal.value,St.height=hn.height.baseVal.value;var On=hn.outerHTML,or=St.getContext("2d");st.markersOnly!==!0&&or.drawImage(Be,0,0,St.width,St.height);var jt=window.URL,Ut=new Image(St.width,St.height);Ut.setAttribute("crossOrigin","anonymous");var Qt=new Blob([On],{type:"image/svg+xml"}),En=jt.createObjectURL(Qt);Ut.onload=function(){or.drawImage(Ut,0,0),jt.revokeObjectURL(En);var Mn=St.toDataURL(st.imageType,st.imageQuality);Fe(Mn)},Ut.src=En})},nt}(),Qe=function(){},Ue=function(){function nt(Be){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Be+"_"}return Object.defineProperty(nt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(nt.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(nt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),nt.prototype.addClass=function(Be){return this.styleSheet===void 0&&this.addStyleSheet(),Be.name=""+this.classNamePrefix+Be.localName,this.classes.push(Be),this.styleSheet.sheet.insertRule("."+Be.name+" {"+Be.style+"}",this.styleSheet.sheet.cssRules.length),Be},nt.prototype.addRule=function(Be){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Be),this.styleSheet.sheet.insertRule(Be.selector+" {"+Be.style+"}",this.styleSheet.sheet.cssRules.length)},nt.prototype.addStyleSheet=function(){var Be;this.styleSheet=document.createElement("style"),((Be=this.styleSheetRoot)!==null&&Be!==void 0?Be:document.head).appendChild(this.styleSheet),this.addRule(new mt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new mt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new mt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Je("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Je("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},nt.prototype.removeStyleSheet=function(){var Be;this.styleSheet&&(((Be=this.styleSheetRoot)!==null&&Be!==void 0?Be:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},nt}(),mt=function(nt,Be){this.selector=nt,this.style=Be},Je=function(nt,Be){this.localName=nt,this.style=Be},It=function(){function nt(Be,Re,Ze,st,Fe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Be,this.displayMode=Re,this.markerItems=Ze,this.uiStyleSettings=st,this.styles=Fe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return nt.prototype.show=function(Be){var Re=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Be,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ze=document.createElement("div");Ze.className=this.toolbarBlockStyleClass.name,Ze.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ze),this.addActionButton(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Fe){var St=document.createElement("div");St.className=""+Re.toolbarButtonStyleClass.name,St.setAttribute("data-type-name",Fe.typeName),St.innerHTML=Fe.icon,St.addEventListener("click",function(){Re.markerToolbarButtonClicked(St,Fe)}),Re.buttons.push(St),Re.markerButtons.push(St)}),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 st=document.createElement("div");st.className=this.toolbarBlockStyleClass.name,st.style.whiteSpace="nowrap",st.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(st),this.addActionButton(st,'<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(st,'<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()},nt.prototype.addButtonClickListener=function(Be){this.buttonClickListeners.push(Be)},nt.prototype.removeButtonClickListener=function(Be){this.buttonClickListeners.indexOf(Be)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Be),1)},nt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},nt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Be=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<Be||Re===Be&&this.markerButtons.length-1===Be?this.markerButtonBlock.appendChild(this.markerButtons[Re]):(Re===Be&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Re]))}},nt.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")},nt.prototype.resetButtonStyles=function(){var Be=this;this.buttons.forEach(function(Re){Re.className=Re.className.replace(Be.uiStyleSettings.toolbarButtonStyleColorsClassName?Be.uiStyleSettings.toolbarButtonStyleColorsClassName:Be.toolbarButtonStyleColorsClass.name,"").trim(),Re.className=Re.className.replace(Be.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Be.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Be.toolbarActiveButtonStyleColorsClass.name,"").trim(),Re.className+=" "+(Be.uiStyleSettings.toolbarButtonStyleColorsClassName?Be.uiStyleSettings.toolbarButtonStyleColorsClassName:Be.toolbarButtonStyleColorsClass.name)})},nt.prototype.addActionButton=function(Be,Re,Ze){var st=this,Fe=document.createElement("div");switch(Fe.className=""+this.toolbarButtonStyleClass.name,Fe.innerHTML=Re,Fe.setAttribute("data-action",Ze),Fe.addEventListener("click",function(){st.actionToolbarButtonClicked(Fe,Ze)}),Ze){case"select":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Fe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Fe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Fe.style.fill=this.uiStyleSettings.closeButtonColor}Be.appendChild(Fe),this.buttons.push(Fe)},nt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Je("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 Je("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Je("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Je("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 Je("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Be=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Je("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Be)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Be)+`px;
padding: `+Be+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Je("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Je("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new mt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new mt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},nt.prototype.markerToolbarButtonClicked=function(Be,Re){this.setActiveButton(Be),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ze){return Ze("marker",Re)}),this.markerButtonOverflowBlock.style.display="none"},nt.prototype.actionToolbarButtonClicked=function(Be,Re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ze){return Ze("action",Re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},nt.prototype.setActiveButton=function(Be){this.resetButtonStyles(),Be.className=Be.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Be.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},nt.prototype.setActiveMarkerButton=function(Be){var Re=this.markerButtons.find(function(Ze){return Ze.getAttribute("data-type-name")===Be});Re&&this.setActiveButton(Re)},nt.prototype.setCurrentMarker=function(Be){var Re=this;this.currentMarker=Be,this.buttons.filter(function(Ze){return/delete|notes/.test(Ze.getAttribute("data-action"))}).forEach(function(Ze){Re.currentMarker===void 0?(Ze.style.fillOpacity="0.4",Ze.style.pointerEvents="none"):(Ze.style.fillOpacity="1",Ze.style.pointerEvents="all")})},nt}(),Oe=function(){function nt(Be,Re,Ze,st){this.panels=[],this.panelButtons=[],this.markerjsContainer=Be,this.displayMode=Re,this.uiStyleSettings=Ze,this.styles=st,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return nt.prototype.addStyles=function(){var Be;this.toolboxStyleClass=this.styles.addClass(new Je("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 Je("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Je("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Je("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Je("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 Je("toolbox-panel-row_colors",`
background-color: `+((Be=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Be!==void 0?Be:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Je("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 Je("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Je("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new mt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new mt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},nt.prototype.show=function(Be){var Re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Be,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},nt.prototype.setPanelButtons=function(Be){var Re,Ze,st=this;this.panels=Be,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+" "+((Ze=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ze!==void 0?Ze:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Fe){var St;Fe.uiStyleSettings=st.uiStyleSettings;var hn=document.createElement("div");hn.className=st.toolboxButtonStyleClass.name+" "+((St=st.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&St!==void 0?St:st.toolboxButtonStyleColorsClass.name),hn.innerHTML=Fe.icon,hn.title=Fe.title,hn.addEventListener("click",function(){st.panelButtonClick(Fe)}),st.panelButtons.push(hn),st.buttonRow.appendChild(hn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},nt.prototype.panelButtonClick=function(Be){var Re=this,Ze=-1;if(Be!==this.activePanel){Ze=this.panels.indexOf(Be),this.panelRow.innerHTML="";var st=Be.getUi();st.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(st),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=Be}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(Fe,St){var hn,On;Fe.className=Re.toolboxButtonStyleClass.name+" "+(St===Ze?""+((hn=Re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&hn!==void 0?hn:Re.toolboxActiveButtonStyleColorsClass.name):""+((On=Re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&On!==void 0?On:Re.toolboxButtonStyleColorsClass.name))})},nt}(),te=function(nt,Be){this.title=nt,this.icon=Be},ee=function(nt){function Be(Re,Ze,st,Fe){var St=nt.call(this,Re,Fe||'<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 St.colors=[],St.addTransparent=!1,St.colorBoxes=[],St.colors=Ze,St.currentColor=st,St.setCurrentColor=St.setCurrentColor.bind(St),St.getColorBox=St.getColorBox.bind(St),St}return Ce(Be,nt),Be.prototype.getUi=function(){var Re=this,Ze=document.createElement("div");return Ze.style.overflow="hidden",Ze.style.whiteSpace="nowrap",this.colors.forEach(function(st){var Fe=Re.getColorBox(st);Ze.appendChild(Fe),Re.colorBoxes.push(Fe)}),Ze},Be.prototype.getColorBox=function(Re){var Ze=this,st=this.uiStyleSettings.toolbarHeight/4,Fe=this.uiStyleSettings.toolbarHeight-st,St=document.createElement("div");St.style.display="inline-block",St.style.boxSizing="content-box",St.style.width=Fe-2+"px",St.style.height=Fe-2+"px",St.style.padding="1px",St.style.marginRight="2px",St.style.marginBottom="2px",St.style.borderWidth="2px",St.style.borderStyle="solid",St.style.borderRadius=(Fe+2)/2+"px",St.style.borderColor=Re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){Ze.setCurrentColor(Re,St)});var hn=document.createElement("div");return hn.style.display="inline-block",hn.style.width=Fe-2+"px",hn.style.height=Fe-2+"px",hn.style.backgroundColor=Re,hn.style.borderRadius=Fe/2+"px",Re==="transparent"&&(hn.style.fill=this.uiStyleSettings.toolboxAccentColor,hn.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>`),St.appendChild(hn),St},Be.prototype.setCurrentColor=function(Re,Ze){var st=this;this.currentColor=Re,this.colorBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ze?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Re)},Be}(te),he=function(){function nt(Be,Re,Ze){this._state="new",this._isSelected=!1,this._container=Be,this._overlayContainer=Re,this.globalSettings=Ze,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(nt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),nt.prototype.ownsTarget=function(Be){return!1},Object.defineProperty(nt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),nt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},nt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},nt.prototype.pointerDown=function(Be,Re){},nt.prototype.dblClick=function(Be,Re){},nt.prototype.manipulate=function(Be){},nt.prototype.pointerUp=function(Be){this.stateChanged()},nt.prototype.dispose=function(){},nt.prototype.addMarkerVisualToContainer=function(Be){this.container.childNodes.length>0?this.container.insertBefore(Be,this.container.childNodes[0]):this.container.appendChild(Be)},nt.prototype.getState=function(){return{typeName:nt.typeName,state:this.state,notes:this.notes}},nt.prototype.restoreState=function(Be){this._state=Be.state,this.notes=Be.notes},nt.prototype.scale=function(Be,Re){},nt.prototype.colorChanged=function(Be){this.onColorChanged&&this.onColorChanged(Be),this.stateChanged()},nt.prototype.fillColorChanged=function(Be){this.onFillColorChanged&&this.onFillColorChanged(Be),this.stateChanged()},nt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Be=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Be.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Be)&&this.onStateChanged(this)}},nt.typeName="MarkerBase",nt}(),ue=function(){function nt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return nt.prototype.findGripByVisual=function(Be){return this.topLeft.ownsTarget(Be)?this.topLeft:this.topCenter.ownsTarget(Be)?this.topCenter:this.topRight.ownsTarget(Be)?this.topRight:this.centerLeft.ownsTarget(Be)?this.centerLeft:this.centerRight.ownsTarget(Be)?this.centerRight:this.bottomLeft.ownsTarget(Be)?this.bottomLeft:this.bottomCenter.ownsTarget(Be)?this.bottomCenter:this.bottomRight.ownsTarget(Be)?this.bottomRight:void 0},nt}(),fe=function(){function nt(){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 nt.prototype.ownsTarget=function(Be){return Be===this.visual||Be===this.visual.childNodes[0]||Be===this.visual.childNodes[1]},nt}(),me=function(){function nt(){}return nt.toITransformMatrix=function(Be){return{a:Be.a,b:Be.b,c:Be.c,d:Be.d,e:Be.e,f:Be.f}},nt.toSVGMatrix=function(Be,Re){return Be.a=Re.a,Be.b=Re.b,Be.c=Re.c,Be.d=Re.d,Be.e=Re.e,Be.f=Re.f,Be},nt}(),be=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.left=0,Fe.top=0,Fe.width=0,Fe.height=0,Fe.defaultSize={x:50,y:20},Fe.offsetX=0,Fe.offsetY=0,Fe.rotationAngle=0,Fe.CB_DISTANCE=10,Fe._suppressMarkerCreateEvent=!1,Fe.container.transform.baseVal.appendItem(Te.createTransform()),Fe.setupControlBox(),Fe}return Ce(Be,nt),Object.defineProperty(Be.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"visual",{get:function(){return this._visual},set:function(Re){this._visual=Re;var Ze=Te.createTransform();this._visual.transform.baseVal.appendItem(Ze)},enumerable:!1,configurable:!0}),Be.prototype.ownsTarget=function(Re){return!!nt.prototype.ownsTarget.call(this,Re)||!!(this.controlGrips.findGripByVisual(Re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Re))},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),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 st=this.unrotatePoint(Re);if(this.manipulationStartX=st.x,this.manipulationStartY=st.y,this.offsetX=st.x-this.left,this.offsetY=st.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ze),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ze)){this.activeGrip=this.rotatorGrip;var Fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Fe.x-this.width/2,this.top=Fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var St=this.container.transform.baseVal.getItem(0);St.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(St,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Be.prototype.pointerUp=function(Re){var Ze=this.state;nt.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",Ze==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Be.prototype.moveVisual=function(Re){this.visual.style.transform="translate("+Re.x+"px, "+Re.y+"px)"},Be.prototype.manipulate=function(Re){var Ze=this.unrotatePoint(Re);this.state==="creating"?this.resize(Re):this.state==="move"?(this.left=this.manipulationStartLeft+(Ze.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ze.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ze):this.state==="rotate"&&this.rotate(Re)},Be.prototype.resize=function(Re){var Ze=this.manipulationStartLeft,st=this.manipulationStartWidth,Fe=this.manipulationStartTop,St=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ze=this.manipulationStartLeft+Re.x-this.manipulationStartX,st=this.manipulationStartWidth+this.manipulationStartLeft-Ze;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:st=this.manipulationStartWidth+Re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Fe=this.manipulationStartTop+Re.y-this.manipulationStartY,St=this.manipulationStartHeight+this.manipulationStartTop-Fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:St=this.manipulationStartHeight+Re.y-this.manipulationStartY}st>=0?(this.left=Ze,this.width=st):(this.left=Ze+st,this.width=-st),St>=0?(this.top=Fe,this.height=St):(this.top=Fe+St,this.height=-St),this.setSize()},Be.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Be.prototype.rotate=function(Re){if(Math.abs(Re.x-this.centerX)>.1){var Ze=Math.sign(Re.x-this.centerX);this.rotationAngle=180*Math.atan((Re.y-this.centerY)/(Re.x-this.centerX))/Math.PI+90*Ze,this.applyRotation()}},Be.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)},Be.prototype.rotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Ze=this.container.getCTM(),st=Te.createPoint(Re.x,Re.y);return{x:(st=st.matrixTransform(Ze)).x,y:st.y}},Be.prototype.unrotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Ze=this.container.getCTM();Ze=Ze.inverse();var st=Te.createPoint(Re.x,Re.y);return{x:(st=st.matrixTransform(Ze)).x,y:st.y}},Be.prototype.select=function(){nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Be.prototype.deselect=function(){nt.prototype.deselect.call(this),this.controlBox.style.display="none"},Be.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"},Be.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()},Be.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()},Be.prototype.createGrip=function(){var Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},Be.prototype.positionGrips=function(){var Re=this.controlGrips.topLeft.GRIP_SIZE,Ze=-Re/2,st=Ze,Fe=(this.width+this.CB_DISTANCE)/2-Re/2,St=(this.height+this.CB_DISTANCE)/2-Re/2,hn=this.height+this.CB_DISTANCE-Re/2,On=this.width+this.CB_DISTANCE-Re/2;this.positionGrip(this.controlGrips.topLeft.visual,Ze,st),this.positionGrip(this.controlGrips.topCenter.visual,Fe,st),this.positionGrip(this.controlGrips.topRight.visual,On,st),this.positionGrip(this.controlGrips.centerLeft.visual,Ze,St),this.positionGrip(this.controlGrips.centerRight.visual,On,St),this.positionGrip(this.controlGrips.bottomLeft.visual,Ze,hn),this.positionGrip(this.controlGrips.bottomCenter.visual,Fe,hn),this.positionGrip(this.controlGrips.bottomRight.visual,On,hn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Fe,st-3*this.CB_DISTANCE)},Be.prototype.positionGrip=function(Re,Ze,st){var Fe=Re.transform.baseVal.getItem(0);Fe.setTranslate(Ze,st),Re.transform.baseVal.replaceItem(Fe,0)},Be.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Be.prototype.showControlBox=function(){this.controlBox.style.display=""},Be.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)},nt.prototype.getState.call(this))},Be.prototype.restoreState=function(Re){nt.prototype.restoreState.call(this,Re);var Ze=Re;this.left=Ze.left,this.top=Ze.top,this.width=Ze.width,this.height=Ze.height,this.rotationAngle=Ze.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ze.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ze.containerTransformMatrix))},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze);var st=this.rotatePoint({x:this.left,y:this.top}),Fe=this.unrotatePoint({x:st.x*Re,y:st.y*Ze});this.left=Fe.x,this.top=Fe.y,this.width=this.width*Re,this.height=this.height*Ze,this.adjustControlBox()},Be}(he),Ae=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},Be.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)},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},Be.prototype.manipulate=function(Re){nt.prototype.manipulate.call(this,Re)},Be.prototype.resize=function(Re){nt.prototype.resize.call(this,Re),this.setSize()},Be.prototype.setSize=function(){nt.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Be.prototype.pointerUp=function(Re){nt.prototype.pointerUp.call(this,Re),this.setSize()},Be.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},Be.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Be.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Be.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Be.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},nt.prototype.getState.call(this))},Be.prototype.restoreState=function(Re){var Ze=Re;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.opacity=Ze.opacity,this.createVisual(),nt.prototype.restoreState.call(this,Re),this.setSize()},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze),this.setSize()},Be.title="Rectangle marker",Be}(be),De=function(nt){function Be(Re,Ze,st,Fe){var St=nt.call(this,Re,Fe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return St.widths=[],St.widthBoxes=[],St.widths=Ze,St.currentWidth=st,St.setCurrentWidth=St.setCurrentWidth.bind(St),St}return Ce(Be,nt),Be.prototype.getUi=function(){var Re=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.widths.forEach(function(st){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.flexGrow="2",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=st===Re.currentWidth?Re.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){Re.setCurrentWidth(st,Fe)}),Ze.appendChild(Fe);var St=document.createElement("div");St.innerText=st.toString(),St.style.marginRight="5px",Fe.appendChild(St);var hn=document.createElement("div");hn.style.minHeight="20px",hn.style.flexGrow="2",hn.style.display="flex",hn.style.alignItems="center";var On=document.createElement("hr");On.style.minWidth="20px",On.style.border="0px",On.style.borderTop=st+"px solid "+Re.uiStyleSettings.toolboxColor,On.style.flexGrow="2",hn.appendChild(On),Fe.appendChild(hn),Re.widthBoxes.push(Fe)}),Ze},Be.prototype.setCurrentWidth=function(Re,Ze){var st=this;this.currentWidth=Re,this.widthBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ze?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Be}(te),Ye=function(nt){function Be(Re,Ze,st,Fe){var St=nt.call(this,Re,Fe||'<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 St.styles=[],St.styleBoxes=[],St.styles=Ze,St.currentStyle=st,St.setCurrentStyle=St.setCurrentStyle.bind(St),St}return Ce(Be,nt),Be.prototype.getUi=function(){var Re=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.styles.forEach(function(st){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/Re.styles.length-5+"%",Fe.style.borderColor=st===Re.currentStyle?Re.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){Re.setCurrentStyle(st,Fe)}),Ze.appendChild(Fe);var St=document.createElement("div");St.style.minHeight="20px",St.style.flexGrow="2",St.style.overflow="hidden";var hn=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(st!==""?'stroke-dasharray="'+st+'"':"")+` />
</svg>`;St.innerHTML=hn,Fe.appendChild(St),Re.styleBoxes.push(Fe)}),Ze},Be.prototype.setCurrentStyle=function(Re,Ze){var st=this;this.currentStyle=Re,this.styleBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ze?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Be}(te),rt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.strokeColor=st.defaultColor,Fe.strokeWidth=st.defaultStrokeWidth,Fe.strokeDasharray=st.defaultStrokeDasharray,Fe.strokePanel=new ee("Line color",st.defaultColorSet,st.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return Ce(Be,nt),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=nt.prototype.getState.call(this);return Re.typeName=Be.typeName,Re},Be.typeName="FrameMarker",Be.title="Frame marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Be}(Ae),$e=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"},at=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.x1=0,Fe.y1=0,Fe.x2=0,Fe.y2=0,Fe.defaultLength=50,Fe.manipulationStartX=0,Fe.manipulationStartY=0,Fe.manipulationStartX1=0,Fe.manipulationStartY1=0,Fe.manipulationStartX2=0,Fe.manipulationStartY2=0,Fe.setupControlBox(),Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!!nt.prototype.ownsTarget.call(this,Re)||!(!this.grip1.ownsTarget(Re)&&!this.grip2.ownsTarget(Re))},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),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(Ze)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ze)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Be.prototype.pointerUp=function(Re){var Ze=this.state;nt.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",Ze==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Be.prototype.adjustVisual=function(){},Be.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)},Be.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()},Be.prototype.select=function(){nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Be.prototype.deselect=function(){nt.prototype.deselect.call(this),this.controlBox.style.display="none"},Be.prototype.setupControlBox=function(){this.controlBox=Te.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Be.prototype.adjustControlBox=function(){this.positionGrips()},Be.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Be.prototype.createGrip=function(){var Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},Be.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)},Be.prototype.positionGrip=function(Re,Ze,st){var Fe=Re.transform.baseVal.getItem(0);Fe.setTranslate(Ze,st),Re.transform.baseVal.replaceItem(Fe,0)},Be.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},nt.prototype.getState.call(this))},Be.prototype.restoreState=function(Re){nt.prototype.restoreState.call(this,Re);var Ze=Re;this.x1=Ze.x1,this.y1=Ze.y1,this.x2=Ze.x2,this.y2=Ze.y2},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze),this.x1=this.x1*Re,this.y1=this.y1*Ze,this.x2=this.x2*Re,this.y2=this.y2*Ze,this.adjustVisual(),this.adjustControlBox()},Be}(he),ht=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.strokeColor=st.defaultColor,Fe.strokeWidth=st.defaultStrokeWidth,Fe.strokeDasharray=st.defaultStrokeDasharray,Fe.strokePanel=new ee("Line color",st.defaultColorSet,st.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorLine&&Re!==this.visibleLine)},Be.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)},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Be.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()]]))},Be.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},Be.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},Be.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},nt.prototype.getState.call(this));return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){nt.prototype.restoreState.call(this,Re);var Ze=Re;this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.createVisual(),this.adjustVisual()},Be.typeName="LineMarker",Be.title="Line marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Be}(at),ot=function(nt){function Be(Re,Ze,st,Fe){var St=nt.call(this,Re,Fe||'<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 St.fonts=[],St.fontBoxes=[],St.fonts=Ze,St.currentFont=st,St.setCurrentFont=St.setCurrentFont.bind(St),St}return Ce(Be,nt),Be.prototype.getUi=function(){var Re=this,Ze=document.createElement("div");return Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.fonts.forEach(function(st){var Fe=document.createElement("div");Fe.style.display="inline-block",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/Re.fonts.length-5+"%",Fe.style.borderColor=st===Re.currentFont?Re.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){Re.setCurrentFont(st,Fe)}),Ze.appendChild(Fe);var St=document.createElement("div");St.style.display="flex",St.style.minHeight="20px",St.style.flexGrow="2",St.style.fontFamily=st,St.style.overflow="hidden";var hn=document.createElement("div");hn.style.whiteSpace="nowrap",hn.style.overflow="hidden",hn.style.textOverflow="ellipsis",hn.innerHTML="The quick brown fox jumps over the lazy dog",St.appendChild(hn),Fe.appendChild(St),Re.fontBoxes.push(Fe)}),Ze},Be.prototype.setCurrentFont=function(Re,Ze){var st=this;this.currentFont=Re,this.fontBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ze?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Be}(te),vt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.color="transparent",Fe.padding=5,Fe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Fe.text=Fe.DEFAULT_TEXT,Fe.isMoved=!1,Fe.color=st.defaultColor,Fe.fontFamily=st.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setColor=Fe.setColor.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.renderText=Fe.renderText.bind(Fe),Fe.sizeText=Fe.sizeText.bind(Fe),Fe.textEditDivClicked=Fe.textEditDivClicked.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.setSize=Fe.setSize.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.colorPanel=new ee("Color",st.defaultColorSet,st.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.fontFamilyPanel=new ot("Font",st.defaultFontFamilies,st.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){if(nt.prototype.ownsTarget.call(this,Re)||Re===this.visual||Re===this.textElement||Re===this.bgRectangle)return!0;var Ze=!1;return this.textElement.childNodes.forEach(function(st){st===Re&&(Ze=!0)}),Ze},Be.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()},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},Be.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(Ze){Re.textElement.appendChild(Te.createTSpan(Ze.trim()===""?" ":Ze.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Be.prototype.getTextScale=function(){var Re=this.textElement.getBBox(),Ze=1;if(Re.width>0&&Re.height>0){var st=(1*this.width-this.width*this.padding*2/100)/Re.width,Fe=(1*this.height-this.height*this.padding*2/100)/Re.height;Ze=Math.min(st,Fe)}return Ze},Be.prototype.getTextPosition=function(Re){var Ze=this.textElement.getBBox(),st=0,Fe=0;return Ze.width>0&&Ze.height>0&&(st=(this.width-Ze.width*Re)/2,Fe=this.height/2-Ze.height*Re/2),{x:st,y:Fe}},Be.prototype.sizeText=function(){var Re=this.textElement.getBBox(),Ze=this.getTextScale(),st=this.getTextPosition(Ze);st.y-=Re.y*Ze,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+st.x+"px, "+st.y+"px) scale("+Ze+", "+Ze+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(st.x,st.y),this.textElement.transform.baseVal.getItem(1).setScale(Ze,Ze))},Be.prototype.manipulate=function(Re){nt.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)},Be.prototype.resize=function(Re){nt.prototype.resize.call(this,Re),this.isMoved=!0,this.setSize(),this.sizeText()},Be.prototype.setSize=function(){nt.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()]]))},Be.prototype.pointerUp=function(Re){var Ze=this.state;Ze==="creating"&&(this._suppressMarkerCreateEvent=!0),nt.prototype.pointerUp.call(this,Re),this.setSize(),(Ze==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Be.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(Ze){Ze.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ze=Number.parseFloat(Re.textEditor.style.fontSize);Re.textEditor.clientWidth>=Number.parseInt(Re.textEditor.style.maxWidth)&&Ze>.9;)Ze-=.1,Re.textEditor.style.fontSize=Math.max(Ze,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ze){Ze.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ze){if(Ze.clipboardData){var st=Ze.clipboardData.getData("text"),Fe=window.getSelection();if(!Fe.rangeCount)return!1;Fe.deleteFromDocument(),Fe.getRangeAt(0).insertNode(document.createTextNode(st)),Ze.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")},Be.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Re=this.getTextScale(),Ze=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),st=this.textElement.getBBox(),Fe={x:st.width*Re,y:st.height*Re};Ze.x-=Fe.x/2,Ze.y-=Fe.y/2,this.textEditor.style.top=Ze.y+"px",this.textEditor.style.left=Ze.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ze.x+"px",this.textEditor.style.fontSize=Math.max(16*Re,12)+"px",this.textElement.style.display="none"}},Be.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()},Be.prototype.select=function(){nt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Be.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),nt.prototype.deselect.call(this)},Be.prototype.dblClick=function(Re,Ze){nt.prototype.dblClick.call(this,Re,Ze),this.showTextEditor()},Be.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)},Be.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()},Be.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Be.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},nt.prototype.getState.call(this));return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){var Ze=Re;this.color=Ze.color,this.fontFamily=Ze.fontFamily,this.padding=Ze.padding,this.text=Ze.text,this.createVisual(),nt.prototype.restoreState.call(this,Re),this.setSize()},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze),this.setSize(),this.sizeText(),this.positionTextEditor()},Be.typeName="TextMarker",Be.title="Text marker",Be.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>',Be}(be),xt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.color="transparent",Fe.lineWidth=3,Fe.drawing=!1,Fe.pixelRatio=1,Fe.color=st.defaultColor,Fe.lineWidth=st.defaultStrokeWidth,Fe.pixelRatio=st.freehandPixelRatio,Fe.setColor=Fe.setColor.bind(Fe),Fe.addCanvas=Fe.addCanvas.bind(Fe),Fe.finishCreation=Fe.finishCreation.bind(Fe),Fe.setLineWidth=Fe.setLineWidth.bind(Fe),Fe.colorPanel=new ee("Color",st.defaultColorSet,st.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.lineWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Fe.lineWidthPanel.onWidthChanged=Fe.setLineWidth,Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.drawingImage)},Be.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)},Be.prototype.pointerDown=function(Re,Ze){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):nt.prototype.pointerDown.call(this,Re,Ze)},Be.prototype.manipulate=function(Re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Re.x,Re.y),this.canvasContext.stroke()):nt.prototype.manipulate.call(this,Re)},Be.prototype.resize=function(Re){nt.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()]])},Be.prototype.pointerUp=function(Re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):nt.prototype.pointerUp.call(this,Re)},Be.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)},Be.prototype.select=function(){this.state==="creating"&&this.finishCreation(),nt.prototype.select.call(this)},Be.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),nt.prototype.deselect.call(this)},Be.prototype.finishCreation=function(){for(var Re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ze=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],st=Ze[0],Fe=Ze[1],St=Ze[2],hn=Ze[3],On=!1,or=0;or<this.canvasElement.height;or++)for(var jt=0;jt<this.canvasElement.width;jt++)Re.data[or*this.canvasElement.width*4+4*jt+3]>0&&(On=!0,or<Fe&&(Fe=or),jt<st&&(st=jt),or>hn&&(hn=or),jt>St&&(St=jt));if(On){this.left=st/this.pixelRatio,this.top=Fe/this.pixelRatio,this.width=(St-st)/this.pixelRatio,this.height=(hn-Fe)/this.pixelRatio;var Ut=document.createElement("canvas");Ut.width=St-st,Ut.height=hn-Fe,Ut.getContext("2d").putImageData(this.canvasContext.getImageData(st,Fe,St-st,hn-Fe),0,0),this.drawingImgUrl=Ut.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Be.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})},Be.prototype.setColor=function(Re){this.color=Re,this.colorChanged(Re)},Be.prototype.setLineWidth=function(Re){this.lineWidth=Re},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=Object.assign({drawingImgUrl:this.drawingImgUrl},nt.prototype.getState.call(this));return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){this.createVisual(),nt.prototype.restoreState.call(this,Re),this.drawingImgUrl=Re.drawingImgUrl,this.setDrawingImage()},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze),this.setDrawingImage()},Be.typeName="FreehandMarker",Be.title="Freehand marker",Be.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>',Be}(be),Tt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,st||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Fe.typeBoxes=[],Fe.currentType=Ze,Fe.setCurrentType=Fe.setCurrentType.bind(Fe),Fe}return Ce(Be,nt),Be.prototype.getUi=function(){var Re=this,Ze=document.createElement("div");Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2";for(var st=function(hn){var On="both";switch(hn){case 0:On="both";break;case 1:On="start";break;case 2:On="end";break;case 3:On="none"}var or=document.createElement("div");if(or.style.display="flex",or.style.flexGrow="2",or.style.alignItems="center",or.style.justifyContent="space-between",or.style.padding="5px",or.style.borderWidth="2px",or.style.borderStyle="solid",or.style.borderColor=On===Fe.currentType?Fe.uiStyleSettings.toolboxAccentColor:"transparent",or.addEventListener("click",function(){Re.setCurrentType(On,or)}),Ze.appendChild(or),On==="both"||On==="start"){var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.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="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,jt.style.marginLeft="5px",or.appendChild(jt)}var Ut=document.createElement("div");Ut.style.display="flex",Ut.style.alignItems="center",Ut.style.minHeight="20px",Ut.style.flexGrow="2";var Qt=document.createElement("hr");if(Qt.style.minWidth="20px",Qt.style.border="0px",Qt.style.borderTop="3px solid "+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee"),Qt.style.flexGrow="2",Ut.appendChild(Qt),or.appendChild(Ut),On==="both"||On==="end"){var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,En.style.marginRight="5px",or.appendChild(En)}Fe.typeBoxes.push(or)},Fe=this,St=0;St<4;St++)st(St);return Ze},Be.prototype.setCurrentType=function(Re,Ze){var st=this;this.currentType=Re,this.typeBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ze?st.uiStyleSettings!==void 0?st.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Be}(te),_t=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.arrowType="end",Fe.arrowBaseHeight=10,Fe.arrowBaseWidth=10,Fe.getArrowPoints=Fe.getArrowPoints.bind(Fe),Fe.setArrowType=Fe.setArrowType.bind(Fe),Fe.arrowTypePanel=new Tt("Arrow type","end"),Fe.arrowTypePanel.onArrowTypeChanged=Fe.setArrowType,Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.arrow1&&Re!==this.arrow2)},Be.prototype.getArrowPoints=function(Re,Ze){var st=this.arrowBaseWidth+2*this.strokeWidth,Fe=this.arrowBaseHeight+2*this.strokeWidth;return Re-st/2+","+(Ze+Fe/2)+" "+Re+","+(Ze-Fe/2)+" "+(Re+st/2)+","+(Ze+Fe/2)},Be.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)},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),this.state==="creating"&&this.createTips()},Be.prototype.adjustVisual=function(){if(nt.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 Ze=this.arrow1.transform.baseVal.getItem(0);Ze.setRotate(Re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ze,0);var st=this.arrow2.transform.baseVal.getItem(0);st.setRotate(Re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(st,0)}},Be.prototype.setArrowType=function(Re){this.arrowType=Re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=Object.assign({arrowType:this.arrowType},nt.prototype.getState.call(this));return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){nt.prototype.restoreState.call(this,Re);var Ze=Re;this.arrowType=Ze.arrowType,this.createTips(),this.adjustVisual()},Be.typeName="ArrowMarker",Be.title="Arrow marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Be}(ht),Jt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.fillColor=st.defaultFillColor,Fe.strokeWidth=0,Fe.fillPanel=new ee("Color",st.defaultColorSet,st.defaultFillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe}return Ce(Be,nt),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=nt.prototype.getState.call(this);return Re.typeName=Be.typeName,Re},Be.typeName="CoverMarker",Be.title="Cover marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Be}(Ae),Zt=function(nt){function Be(Re,Ze,st,Fe){var St=nt.call(this,Re,Fe||'<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 St.opacities=[],St.opacityBoxes=[],St.opacities=Ze,St.currentOpacity=st,St.setCurrentOpacity=St.setCurrentOpacity.bind(St),St}return Ce(Be,nt),Be.prototype.getUi=function(){var Re=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",Ze.style.justifyContent="space-between",this.opacities.forEach(function(st){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="center",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=st===Re.currentOpacity?Re.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){Re.setCurrentOpacity(st,Fe)}),Ze.appendChild(Fe);var St=document.createElement("div");St.innerText=100*st+"%",Fe.appendChild(St),Re.opacityBoxes.push(Fe)}),Ze},Be.prototype.setCurrentOpacity=function(Re,Ze){var st=this;this.currentOpacity=Re,this.opacityBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===Ze?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Be}(te),vn=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.fillColor=st.defaultHighlightColor,Fe.strokeWidth=0,Fe.opacity=st.defaultHighlightOpacity,Fe.fillPanel=new ee("Color",st.defaultColorSet,Fe.fillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.opacityPanel=new Zt("Opacity",st.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return Ce(Be,nt),Be.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=nt.prototype.getState.call(this);return Re.typeName=Be.typeName,Re},Be.typeName="HighlightMarker",Be.title="Highlight marker",Be.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>',Be}(Jt),bt='<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>',ft='<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(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.bgColor="transparent",Fe.tipPosition={x:0,y:0},Fe.tipBase1Position={x:0,y:0},Fe.tipBase2Position={x:0,y:0},Fe.tipMoving=!1,Fe.color=st.defaultStrokeColor,Fe.bgColor=st.defaultFillColor,Fe.fontFamily=st.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setBgColor=Fe.setBgColor.bind(Fe),Fe.getTipPoints=Fe.getTipPoints.bind(Fe),Fe.positionTip=Fe.positionTip.bind(Fe),Fe.setTipPoints=Fe.setTipPoints.bind(Fe),Fe.colorPanel=new ee("Text color",st.defaultColorSet,Fe.color,bt),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.bgColorPanel=new ee("Fill color",st.defaultColorSet,Fe.bgColor,ft),Fe.bgColorPanel.onColorChanged=Fe.setBgColor,Fe.fontFamilyPanel=new ot("Font",st.defaultFontFamilies,st.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.tipGrip=new fe,Fe.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),Fe.controlBox.appendChild(Fe.tipGrip.visual),Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return nt.prototype.ownsTarget.call(this,Re)||this.tipGrip.ownsTarget(Re)||this.tip===Re},Be.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)},Be.prototype.pointerDown=function(Re,Ze){this.state==="new"&&nt.prototype.pointerDown.call(this,Re,Ze),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ze)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):nt.prototype.pointerDown.call(this,Re,Ze)},Be.prototype.pointerUp=function(Re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,nt.prototype.pointerUp.call(this,Re);else{var Ze=this.state==="creating";nt.prototype.pointerUp.call(this,Re),this.setTipPoints(Ze),this.positionTip()}},Be.prototype.manipulate=function(Re){if(this.tipMoving){var Ze=this.unrotatePoint(Re);this.tipPosition={x:Ze.x-this.manipulationStartLeft,y:Ze.y-this.manipulationStartTop},this.positionTip()}else nt.prototype.manipulate.call(this,Re)},Be.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)},Be.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},Be.prototype.setTipPoints=function(Re){Re===void 0&&(Re=!1);var Ze=Math.min(this.height/2,15),st=this.height/5;Re&&(this.tipPosition={x:Ze+st/2,y:this.height+20});var Fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(st=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:Ze,y:0},this.tipBase2Position={x:Ze+st,y:0}):(this.tipBase1Position={x:0,y:Ze},this.tipBase2Position={x:0,y:Ze+st}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(st=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ze-st,y:0},this.tipBase2Position={x:this.width-Ze,y:0}):(this.tipBase1Position={x:this.width,y:Ze},this.tipBase2Position={x:this.width,y:Ze+st}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(st=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ze-st,y:this.height},this.tipBase2Position={x:this.width-Ze,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ze-st},this.tipBase2Position={x:this.width,y:this.height-Ze}):Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(st=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:Ze,y:this.height},this.tipBase2Position={x:Ze+st,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ze},this.tipBase2Position={x:0,y:this.height-Ze-st})},Be.prototype.resize=function(Re){nt.prototype.resize.call(this,Re),this.positionTip()},Be.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(Be.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Be.prototype.select=function(){this.positionTip(),nt.prototype.select.call(this)},Be.prototype.getState=function(){var Re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},nt.prototype.getState.call(this));return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){var Ze=Re;this.bgColor=Ze.bgColor,this.tipPosition=Ze.tipPosition,nt.prototype.restoreState.call(this,Re),this.createTip(),this.setTipPoints()},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze),this.tipPosition={x:this.tipPosition.x*Re,y:this.tipPosition.y*Ze},this.positionTip()},Be.typeName="CalloutMarker",Be.title="Callout marker",Be.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>',Be}(vt),qt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.strokeColor=st.defaultColor,Fe.strokeWidth=st.defaultStrokeWidth,Fe.strokeDasharray=st.defaultStrokeDasharray,Fe.fillColor=st.defaultFillColor,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.strokePanel=new ee("Line color",je(st.defaultColorSet,["transparent"]),st.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new ee("Fill color",je(st.defaultColorSet,["transparent"]),Fe.fillColor,ft),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.opacityPanel=new Zt("Opacity",st.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},Be.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)},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},Be.prototype.manipulate=function(Re){nt.prototype.manipulate.call(this,Re)},Be.prototype.resize=function(Re){nt.prototype.resize.call(this,Re),this.setSize()},Be.prototype.setSize=function(){nt.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()]])},Be.prototype.pointerUp=function(Re){nt.prototype.pointerUp.call(this,Re),this.setSize()},Be.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},Be.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},Be.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Be.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Be.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},nt.prototype.getState.call(this));return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){var Ze=Re;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.opacity=Ze.opacity,this.createVisual(),nt.prototype.restoreState.call(this,Re),this.setSize()},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze),this.setSize()},Be.typeName="EllipseMarker",Be.title="Ellipse marker",Be.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>',Be}(be),dn=function(nt){function Be(Re,Ze,st){return nt.call(this,Re,Ze,st)||this}return Ce(Be,nt),Object.defineProperty(Be.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.tip1&&Re!==this.tip2)},Be.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)},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),this.state==="creating"&&this.createTips()},Be.prototype.adjustVisual=function(){if(nt.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),Ze=this.tip1.transform.baseVal.getItem(0);Ze.setRotate(Re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ze,0);var st=this.tip2.transform.baseVal.getItem(0);st.setRotate(Re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(st,0)}},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=nt.prototype.getState.call(this);return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){nt.prototype.restoreState.call(this,Re),this.createTips(),this.adjustVisual()},Be.typeName="MeasurementMarker",Be.title="Measurement marker",Be.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>',Be}(ht),kt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.strokePanel.colors=st.defaultColorSet,Fe.fillColor="transparent",Fe}return Ce(Be,nt),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=nt.prototype.getState.call(this);return Re.typeName=Be.typeName,Re},Be.typeName="EllipseFrameMarker",Be.title="Ellipse frame marker",Be.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>',Be}(qt),bn=function(){function nt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(nt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),nt.prototype.addUndoStep=function(Be){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Be)||(this.undoStack.push(Be),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Be)&&this.redoStack.splice(0,this.redoStack.length))},nt.prototype.replaceLastUndoStep=function(Be){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Be)},nt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},nt.prototype.undo=function(){if(this.undoStack.length>1){var Be=this.undoStack.pop();return Be!==void 0&&this.redoStack.push(Be),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},nt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},nt}(),gn=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.curveX=0,Fe.curveY=0,Fe.manipulationStartCurveX=0,Fe.manipulationStartCurveY=0,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.positionGrips=Fe.positionGrips.bind(Fe),Fe.addControlGrips=Fe.addControlGrips.bind(Fe),Fe.adjustVisual=Fe.adjustVisual.bind(Fe),Fe.setupControlBox=Fe.setupControlBox.bind(Fe),Fe.resize=Fe.resize.bind(Fe),Fe.strokeColor=st.defaultColor,Fe.strokeWidth=st.defaultStrokeWidth,Fe.strokeDasharray=st.defaultStrokeDasharray,Fe.strokePanel=new ee("Line color",st.defaultColorSet,st.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorCurve&&Re!==this.visibleCurve&&!this.curveGrip.ownsTarget(Re))},Be.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Be.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)},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),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(Ze)&&(this.activeGrip=this.curveGrip,this._state="resize")},Be.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()]]))},Be.prototype.setupControlBox=function(){nt.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)},Be.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,nt.prototype.addControlGrips.call(this)},Be.prototype.positionGrips=function(){nt.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()))},Be.prototype.manipulate=function(Re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Re.y-this.manipulationStartY),nt.prototype.manipulate.call(this,Re)},Be.prototype.resize=function(Re){this.activeGrip===this.curveGrip&&(this.curveX=Re.x,this.curveY=Re.y),nt.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)},Be.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},Be.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},Be.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.adjustVisual()},Be.prototype.scale=function(Re,Ze){this.curveX=this.curveX*Re,this.curveY=this.curveY*Ze,nt.prototype.scale.call(this,Re,Ze)},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},nt.prototype.getState.call(this));return Re.typeName=Be.typeName,Re},Be.prototype.restoreState=function(Re){nt.prototype.restoreState.call(this,Re);var Ze=Re;this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.curveX=Ze.curveX,this.curveY=Ze.curveY,this.createVisual(),this.adjustVisual()},Be.typeName="CurveMarker",Be.title="Curve marker",Be.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>',Be}(at),Zn=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,Ze,st)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.textColor="transparent",Fe.fontSize="1rem",Fe.isMoved=!1,Fe.captionText="Caption",Fe.PADDING=5,Fe.captionBoxWidth=0,Fe.captionBoxHeight=0,Fe.strokeColor=st.defaultColor,Fe.strokeWidth=st.defaultStrokeWidth,Fe.strokeDasharray=st.defaultStrokeDasharray,Fe.fillColor=st.defaultFillColor,Fe.textColor=st.defaultStrokeColor,Fe.fontFamily=st.defaultFontFamily,Fe.fontSize=st.defaultCaptionFontSize,Fe.captionText=st.defaultCaptionText,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.sizeCaption=Fe.sizeCaption.bind(Fe),Fe.setCaptionText=Fe.setCaptionText.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.finishTextEditing=Fe.finishTextEditing.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.setTextColor=Fe.setTextColor.bind(Fe),Fe.strokePanel=new ee("Line color",je(st.defaultColorSet,["transparent"]),Fe.strokeColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new ee("Fill color",je(st.defaultColorSet,["transparent"]),Fe.fillColor,ft),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.fontFamilyPanel=new ot("Font",st.defaultFontFamilies,st.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.textColorPanel=new ee("Text color",st.defaultColorSet,Fe.textColor,bt),Fe.textColorPanel.onColorChanged=Fe.setTextColor,Fe}return Ce(Be,nt),Be.prototype.ownsTarget=function(Re){return!(!nt.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.frame&&Re!==this.captionBg&&Re!==this.captionElement)},Be.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()},Be.prototype.setCaptionText=function(Re){this.captionText=Re,this.captionElement.textContent=this.captionText,this.sizeCaption()},Be.prototype.pointerDown=function(Re,Ze){nt.prototype.pointerDown.call(this,Re,Ze),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},Be.prototype.manipulate=function(Re){nt.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)},Be.prototype.resize=function(Re){nt.prototype.resize.call(this,Re),this.setSize()},Be.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')"]])},Be.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(Ze){Ze.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ze){Ze.key==="Enter"&&Re.finishTextEditing(Re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ze){Ze.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()},Be.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"))},Be.prototype.finishTextEditing=function(Re){this.setCaptionText(Re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Be.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()},Be.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()},Be.prototype.setSize=function(){nt.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Be.prototype.pointerUp=function(Re){nt.prototype.pointerUp.call(this,Re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Be.prototype.dblClick=function(Re,Ze){nt.prototype.dblClick.call(this,Re,Ze),this.showTextEditor()},Be.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},Be.prototype.setFillColor=function(Re){this.fillColor=Re,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},Be.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Be.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.frame&&Te.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Be.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},nt.prototype.getState.call(this));return Re.typeName=this.typeName,Re},Be.prototype.restoreState=function(Re){var Ze=Re;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.textColor=Ze.textColor,this.fontFamily=Ze.fontFamily,this.captionText=Ze.captionText,this.fontSize=Ze.fontSize,this.createVisual(),nt.prototype.restoreState.call(this,Re),this.setSize()},Be.prototype.scale=function(Re,Ze){nt.prototype.scale.call(this,Re,Ze),this.setSize()},Be.typeName="CaptionFrameMarker",Be.title="Caption frame marker",Be.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>',Be}(be),Gt=function(){function nt(Be,Re){Re===void 0&&(Re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Be,this.cancelable=Re}return Object.defineProperty(nt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),nt.prototype.preventDefault=function(){this._defaultPrevented=!0},nt}(),Rt=function(nt){function Be(Re,Ze,st){var Fe=nt.call(this,Re,!1)||this;return Fe.dataUrl=Ze,Fe.state=st,Fe}return Ce(Be,nt),Be}(Gt),tn=function(nt){function Be(Re,Ze,st){st===void 0&&(st=!1);var Fe=nt.call(this,Re,st)||this;return Fe.marker=Ze,Fe}return Ce(Be,nt),Be}(Gt),zn=function(){function nt(){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 nt.prototype.addEventListener=function(Be,Re){this[Be].push(Re)},nt.prototype.removeEventListener=function(Be,Re){var Ze=this[Be].indexOf(Re);Ze>-1&&this[Be].splice(Ze,1)},nt}(),Yn=function(){function nt(Be){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new $e,this._isOpen=!1,this.undoRedoManager=new bn,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 zn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=nt.instanceCounter++,this.styles=new Ue(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Be,this.targetRoot=document.body,this.width=Be.clientWidth,this.height=Be.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(nt.prototype,"ALL_MARKER_TYPES",{get:function(){return[rt,xt,_t,vt,kt,qt,vn,ct,dn,Jt,ht,gn,Zn]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[rt,xt,_t,vt,qt,vn,ct]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[rt,xt,_t,vt,vn]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Be){var Re=this;this._availableMarkerTypes.splice(0),Be.forEach(function(Ze){if(typeof Ze=="string"){var st=Re.ALL_MARKER_TYPES.find(function(Fe){return Fe.typeName===Ze});st!==void 0&&Re._availableMarkerTypes.push(st)}else Re._availableMarkerTypes.push(Ze)})},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Be){this._zoomLevel=Be,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(nt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),nt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ge.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},nt.prototype.show=function(){var Be=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 Gt(Be))})},nt.prototype.render=function(){return ke(this,void 0,void 0,function(){var Be;return Ie(this,function(Re){switch(Re.label){case 0:return this.setCurrentMarker(),(Be=new lt).naturalSize=this.renderAtNaturalSize,Be.imageType=this.renderImageType,Be.imageQuality=this.renderImageQuality,Be.markersOnly=this.renderMarkersOnly,Be.width=this.renderWidth,Be.height=this.renderHeight,[4,Be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Re.sent(),[4,Be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Re.sent()]}})})},nt.prototype.close=function(Be){var Re=this;if(Be===void 0&&(Be=!1),this.isOpen){var Ze=!1;Be||this.eventListeners.beforeclose.forEach(function(st){var Fe=new Gt(Re,!0);st(Fe),Fe.defaultPrevented&&(Ze=!0)}),Ze||(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(st){return st(new Gt(Re))}),this.detachEvents(),this._isOpen=!1)}},nt.prototype.addMarkersToToolbar=function(){for(var Be,Re=[],Ze=0;Ze<arguments.length;Ze++)Re[Ze]=arguments[Ze];(Be=this._availableMarkerTypes).push.apply(Be,Re)},nt.prototype.addRenderEventListener=function(Be){this.addEventListener("render",function(Re){Be(Re.dataUrl,Re.state)})},nt.prototype.removeRenderEventListener=function(Be){},nt.prototype.addCloseEventListener=function(Be){this.addEventListener("close",function(){Be()})},nt.prototype.removeCloseEventListener=function(Be){},nt.prototype.setupResizeObserver=function(){var Be=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Be.resize(Be.target.clientWidth,Be.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Be.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},nt.prototype.onPopupTargetResize=function(){var Be=1*this.target.clientWidth/this.target.clientHeight,Re=this.editorCanvas.clientWidth/Be>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Be:this.editorCanvas.clientWidth,Ze=Re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Be;this.resize(Re,Ze)},nt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},nt.prototype.resize=function(Be,Re){this._isResizing=!0;var Ze=Be/this.imageWidth,st=Re/this.imageHeight;this.imageWidth=Math.round(Be),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(Ze,st),this._isResizing=!1},nt.prototype.scaleMarkers=function(Be,Re){var Ze,st=this;this._currentMarker&&this._currentMarker instanceof vt?this._currentMarker.scale(Be,Re):(Ze=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Fe){Fe!==st._currentMarker&&Fe.scale(Be,Re)}),Ze!==void 0&&this.setCurrentMarker(Ze)},nt.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"},nt.prototype.setTopLeft=function(){var Be=this.editingTarget.getBoundingClientRect(),Re=this.editorCanvas.getBoundingClientRect();this.left=Be.left-Re.left,this.top=Be.top-Re.top},nt.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)},nt.prototype.addDefs=function(){for(var Be,Re=[],Ze=0;Ze<arguments.length;Ze++)Re[Ze]=arguments[Ze];this.defs=Te.createDefs(),this.addDefsToImage(),(Be=this.defs).append.apply(Be,Re)},nt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},nt.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)},nt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},nt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},nt.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)},nt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},nt.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)},nt.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 Be=document.createElement("a");Be.href="https://markerjs.com/",Be.target="_blank",Be.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>',Be.title="Powered by marker.js",Be.style.display="grid",Be.style.alignItems="center",Be.style.justifyItems="center",Be.style.padding="3px",Be.style.width="20px",Be.style.height="20px",this.logoUI.appendChild(Be),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},nt.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")},nt.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"},nt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},nt.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 Be=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=Be+"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 It(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 Oe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},nt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},nt.prototype.removeMarker=function(Be){this.markerImage.removeChild(Be.container),this.markers.indexOf(Be)>-1&&this.markers.splice(this.markers.indexOf(Be),1),Be.dispose()},nt.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())},nt.prototype.toolbarButtonClicked=function(Be,Re){if(Be==="marker"&&Re!==void 0)this.createNewMarker(Re);else if(Be==="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()}},nt.prototype.deleteSelectedMarker=function(){var Be=this;if(this._currentMarker!==void 0){var Re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(st){var Fe=new tn(Be,Be._currentMarker,!0);st(Fe),Fe.defaultPrevented&&(Re=!0)}),!Re){var Ze=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(st){return st(new tn(Be,Ze))})}}},nt.prototype.clear=function(){var Be=this,Re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(St){var hn=new tn(Be,void 0,!0);St(hn),hn.defaultPrevented&&(Re=!0)}),!Re)){this.setCurrentMarker();for(var Ze=function(St){var hn=st.markers[St];st.setCurrentMarker(st.markers[St]),st._currentMarker.dispose(),st.markerImage.removeChild(st._currentMarker.container),st.markers.splice(st.markers.indexOf(st._currentMarker),1),st.eventListeners.markerdelete.forEach(function(On){return On(new tn(Be,hn))})},st=this,Fe=this.markers.length-1;Fe>=0;Fe--)Ze(Fe);this.addUndoStep()}},Object.defineProperty(nt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),nt.prototype.showNotesEditor=function(){var Be;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=(Be=this._currentMarker.notes)!==null&&Be!==void 0?Be:"",this.overlayContainer.appendChild(this.notesArea))},nt.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)},nt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},nt.prototype.addUndoStep=function(){var Be=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Re=this.getState(),Ze=this.undoRedoManager.getLastUndoStep();if(!Ze||Ze.width===Re.width&&Ze.height===Re.height){var st=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Re),st<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Fe){return Fe(new Gt(Be))})}else this.undoRedoManager.replaceLastUndoStep(Re),this.eventListeners.statechange.forEach(function(Fe){return Fe(new Gt(Be))})}},nt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},nt.prototype.undoStep=function(){var Be=this,Re=this.undoRedoManager.undo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ze){return Ze(new Gt(Be))}))},nt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},nt.prototype.redoStep=function(){var Be=this,Re=this.undoRedoManager.redo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ze){return Ze(new Gt(Be))}))},nt.prototype.stepZoom=function(){var Be=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Be<this.zoomSteps.length-1?this.zoomSteps[Be+1]:this.zoomSteps[0]},nt.prototype.panTo=function(Be){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Be.x,top:this.prevPanPoint.y-Be.y}),this.prevPanPoint=Be},nt.prototype.startRenderAndClose=function(){return ke(this,void 0,void 0,function(){var Be,Re,Ze=this;return Ie(this,function(st){switch(st.label){case 0:return[4,this.render()];case 1:return Be=st.sent(),Re=this.getState(),this.eventListeners.render.forEach(function(Fe){return Fe(new Rt(Ze,Be,Re))}),this.close(!0),[2]}})})},nt.prototype.getState=function(Be){Be===!0&&this.setCurrentMarker();var Re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ze){return Re.markers.push(Ze.getState())}),Re},nt.prototype.restoreState=function(Be){var Re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Be.markers.forEach(function(Ze){var st=Re._availableMarkerTypes.find(function(St){return St.typeName===Ze.typeName});if(st!==void 0){var Fe=Re.addNewMarker(st);Fe.restoreState(Ze),Re.markers.push(Fe)}}),Be.width&&Be.height&&(Be.width!==this.imageWidth||Be.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Be.width,this.imageHeight/Be.height),this.eventListeners.restorestate.forEach(function(Ze){return Ze(new Gt(Re))})},nt.prototype.addNewMarker=function(Be){var Re=Te.createGroup();return this.markerImage.appendChild(Re),new Be(Re,this.overlayContainer,this.settings)},nt.prototype.createNewMarker=function(Be){var Re,Ze=this;(Re=typeof Be=="string"?this._availableMarkerTypes.find(function(st){return st.typeName===Be}):Be)&&(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(st){return st(new tn(Ze,Ze._currentMarker))}))},nt.prototype.markerCreated=function(Be){var Re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Be),this.setCurrentMarker(Be),Be instanceof xt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(xt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ze){return Ze(new tn(Re,Re._currentMarker))})},nt.prototype.colorChanged=function(Be){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Be,this.settings.defaultStrokeColor=Be)},nt.prototype.fillColorChanged=function(Be){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Be)},nt.prototype.markerStateChanged=function(Be){var Re=this;this.eventListeners.markerchange.forEach(function(Ze){return Ze(new tn(Re,Be))})},nt.prototype.setCurrentMarker=function(Be){var Re=this;this._currentMarker!==Be&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ze){return Ze(new tn(Re,Re._currentMarker))})),this._currentMarker=Be,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(Ze){return Ze(new tn(Re,Re._currentMarker))}))},nt.prototype.onPointerDown=function(Be){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Be.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(Ze){return Ze.ownsTarget(Be.target)});Re!==void 0?(this.setCurrentMarker(Re),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Be.clientX,Be.clientY),Be.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Be.clientX,y:Be.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Be.clientX,Be.clientY))},nt.prototype.onDblClick=function(Be){if(this._isFocused||this.focus(),this.mode==="select"){var Re=this.markers.find(function(Ze){return Ze.ownsTarget(Be.target)});Re!==void 0&&Re!==this._currentMarker&&this.setCurrentMarker(Re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Be.clientX,Be.clientY),Be.target):this.setCurrentMarker()}},nt.prototype.onPointerMove=function(Be){this.touchPoints!==1&&Be.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Be.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Be.clientX,Be.clientY)):this.zoomLevel>1&&this.panTo({x:Be.clientX,y:Be.clientY}))},nt.prototype.onPointerUp=function(Be){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Be.clientX,Be.clientY)),this.isDragging=!1,this.addUndoStep()},nt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},nt.prototype.onKeyUp=function(Be){this._currentMarker===void 0||this.notesArea!==void 0||Be.key!=="Delete"&&Be.key!=="Backspace"||this.deleteSelectedMarker()},nt.prototype.clientToLocalCoordinates=function(Be,Re){var Ze=this.markerImage.getBoundingClientRect();return{x:(Be-Ze.left)/this.zoomLevel,y:(Re-Ze.top)/this.zoomLevel}},nt.prototype.onWindowResize=function(){this.positionUI()},nt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Be=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Be+"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()},nt.prototype.addLicenseKey=function(Be){Ge.addKey(Be)},nt.prototype.addEventListener=function(Be,Re){this.eventListeners.addEventListener(Be,Re)},nt.prototype.removeEventListener=function(Be,Re){this.eventListeners.removeEventListener(Be,Re)},nt.prototype.renderState=function(Be){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Be),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(nt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),nt.prototype.focus=function(){var Be=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 Gt(Be))}))},nt.prototype.blur=function(){var Be=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Re){return Re(new Gt(Be))}))},nt.instanceCounter=0,nt}()},67842:function(He){"use strict";var Ee,ae=59;He.exports=oe;function oe(Ce){var ke="&"+Ce+";",Ie;return Ee=Ee||document.createElement("i"),Ee.innerHTML=ke,Ie=Ee.textContent,Ie.charCodeAt(Ie.length-1)===ae&&Ce!=="semi"||Ie===ke?!1:Ie}},12256:function(He,Ee,ae){"use strict";var oe=ae(47854),Ce=ae(80501),ke=ae(22347),Ie=ae(65207),je=ae(21127),Te=ae(67842);He.exports=vn;var Ge={}.hasOwnProperty,lt=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},mt=9,Je=10,It=12,Oe=32,te=38,ee=59,he=60,ue=61,fe=35,me=88,be=120,Ae=65533,De="named",Ye="hexadecimal",rt="decimal",$e={};$e[Ye]=16,$e[rt]=10;var at={};at[De]=je,at[rt]=ke,at[Ye]=Ie;var ht=1,ot=2,vt=3,xt=4,Tt=5,_t=6,Jt=7,Zt={};Zt[ht]="Named character references must be terminated by a semicolon",Zt[ot]="Numeric character references must be terminated by a semicolon",Zt[vt]="Named character references cannot be empty",Zt[xt]="Numeric character references cannot be empty",Zt[Tt]="Named character references must be known",Zt[_t]="Numeric character references cannot be disallowed",Zt[Jt]="Numeric character references cannot be outside the permissible Unicode range";function vn(qt,dn){var kt={},bn,gn;dn||(dn={});for(gn in Ue)bn=dn[gn],kt[gn]=bn==null?Ue[gn]:bn;return(kt.position.indent||kt.position.start)&&(kt.indent=kt.position.indent||[],kt.position=kt.position.start),bt(qt,kt)}function bt(qt,dn){var kt=dn.additional,bn=dn.nonTerminated,gn=dn.text,Zn=dn.reference,Gt=dn.warning,Rt=dn.textContext,tn=dn.referenceContext,zn=dn.warningContext,Yn=dn.position,nt=dn.indent||[],Be=qt.length,Re=0,Ze=-1,st=Yn.column||1,Fe=Yn.line||1,St="",hn=[],On,or,jt,Ut,Qt,En,Mn,Tn,Ht,Vn,Xt,nn,fn,Gn,cn,Et,Jn,ir,Wt;for(typeof kt=="string"&&(kt=kt.charCodeAt(0)),Et=wr(),Tn=Gt?ei:Qe,Re--,Be++;++Re<Be;)if(Qt===Je&&(st=nt[Ze]||1),Qt=qt.charCodeAt(Re),Qt===te){if(Mn=qt.charCodeAt(Re+1),Mn===mt||Mn===Je||Mn===It||Mn===Oe||Mn===te||Mn===he||Mn!==Mn||kt&&Mn===kt){St+=lt(Qt),st++;continue}for(fn=Re+1,nn=fn,Wt=fn,Mn===fe?(Wt=++nn,Mn=qt.charCodeAt(Wt),Mn===me||Mn===be?(Gn=Ye,Wt=++nn):Gn=rt):Gn=De,On="",Xt="",Ut="",cn=at[Gn],Wt--;++Wt<Be&&(Mn=qt.charCodeAt(Wt),!!cn(Mn));)Ut+=lt(Mn),Gn===De&&Ge.call(oe,Ut)&&(On=Ut,Xt=oe[Ut]);jt=qt.charCodeAt(Wt)===ee,jt&&(Wt++,or=Gn===De?Te(Ut):!1,or&&(On=Ut,Xt=or)),ir=1+Wt-fn,!jt&&!bn||(Ut?Gn===De?(jt&&!Xt?Tn(Tt,1):(On!==Ut&&(Wt=nn+On.length,ir=1+Wt-nn,jt=!1),jt||(Ht=On?ht:vt,dn.attribute?(Mn=qt.charCodeAt(Wt),Mn===ue?(Tn(Ht,ir),Xt=null):je(Mn)?Xt=null:Tn(Ht,ir)):Tn(Ht,ir))),En=Xt):(jt||Tn(ot,ir),En=parseInt(Ut,$e[Gn]),ft(En)?(Tn(Jt,ir),En=lt(Ae)):En in Ce?(Tn(_t,ir),En=Ce[En]):(Vn="",ct(En)&&Tn(_t,ir),En>65535&&(En-=65536,Vn+=lt(En>>>10|55296),En=56320|En&1023),En=Vn+lt(En))):Gn!==De&&Tn(xt,ir)),En?(Fr(),Et=wr(),Re=Wt-1,st+=Wt-fn+1,hn.push(En),Jn=wr(),Jn.offset++,Zn&&Zn.call(tn,En,{start:Et,end:Jn},qt.slice(fn-1,Wt)),Et=Jn):(Ut=qt.slice(fn-1,Wt),St+=Ut,st+=Ut.length,Re=Wt-1)}else Qt===10&&(Fe++,Ze++,st=0),Qt===Qt?(St+=lt(Qt),st++):Fr();return hn.join("");function wr(){return{line:Fe,column:st,offset:Re+(Yn.offset||0)}}function ei(Dn,ii){var Kr=wr();Kr.column+=ii,Kr.offset+=ii,Gt.call(zn,Zt[Dn],Kr,Dn)}function Fr(){St&&(hn.push(St),gn&&gn.call(Rt,St,{start:Et,end:wr()}),St="")}}function ft(qt){return qt>=55296&&qt<=57343||qt>1114111}function ct(qt){return qt>=1&&qt<=8||qt===11||qt>=13&&qt<=31||qt>=127&&qt<=159||qt>=64976&&qt<=65007||(qt&65535)===65535||(qt&65535)===65534}},68398:function(He,Ee,ae){var oe=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Ce=function(ke){var Ie=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,je=0,Te={},Ge={manual:ke.Prism&&ke.Prism.manual,disableWorkerMessageHandler:ke.Prism&&ke.Prism.disableWorkerMessageHandler,util:{encode:function ue(fe){return fe instanceof lt?new lt(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:++je}),ue.__id},clone:function ue(fe,me){me=me||{};var be,Ae;switch(Ge.util.type(fe)){case"Object":if(Ae=Ge.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=Ge.util.objId(fe),me[Ae]?me[Ae]:(be=[],me[Ae]=be,fe.forEach(function(Ye,rt){be[rt]=ue(Ye,me)}),be);default:return fe}},getLanguage:function(ue){for(;ue;){var fe=Ie.exec(ue.className);if(fe)return fe[1].toLowerCase();ue=ue.parentElement}return"none"},setLanguage:function(ue,fe){ue.className=ue.className.replace(RegExp(Ie,"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=Ge.util.clone(Ge.languages[ue]);for(var be in fe)me[be]=fe[be];return me},insertBefore:function(ue,fe,me,be){be=be||Ge.languages;var Ae=be[ue],De={};for(var Ye in Ae)if(Ae.hasOwnProperty(Ye)){if(Ye==fe)for(var rt in me)me.hasOwnProperty(rt)&&(De[rt]=me[rt]);me.hasOwnProperty(Ye)||(De[Ye]=Ae[Ye])}var $e=be[ue];return be[ue]=De,Ge.languages.DFS(Ge.languages,function(at,ht){ht===$e&&at!=ue&&(this[at]=De)}),De},DFS:function ue(fe,me,be,Ae){Ae=Ae||{};var De=Ge.util.objId;for(var Ye in fe)if(fe.hasOwnProperty(Ye)){me.call(fe,Ye,fe[Ye],be||Ye);var rt=fe[Ye],$e=Ge.util.type(rt);$e==="Object"&&!Ae[De(rt)]?(Ae[De(rt)]=!0,ue(rt,me,null,Ae)):$e==="Array"&&!Ae[De(rt)]&&(Ae[De(rt)]=!0,ue(rt,me,Ye,Ae))}}},plugins:{},highlightAll:function(ue,fe){Ge.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'};Ge.hooks.run("before-highlightall",be),be.elements=Array.prototype.slice.apply(be.container.querySelectorAll(be.selector)),Ge.hooks.run("before-all-elements-highlight",be);for(var Ae=0,De;De=be.elements[Ae++];)Ge.highlightElement(De,fe===!0,be.callback)},highlightElement:function(ue,fe,me){var be=Ge.util.getLanguage(ue),Ae=Ge.languages[be];Ge.util.setLanguage(ue,be);var De=ue.parentElement;De&&De.nodeName.toLowerCase()==="pre"&&Ge.util.setLanguage(De,be);var Ye=ue.textContent,rt={element:ue,language:be,grammar:Ae,code:Ye};function $e(ht){rt.highlightedCode=ht,Ge.hooks.run("before-insert",rt),rt.element.innerHTML=rt.highlightedCode,Ge.hooks.run("after-highlight",rt),Ge.hooks.run("complete",rt),me&&me.call(rt.element)}if(Ge.hooks.run("before-sanity-check",rt),De=rt.element.parentElement,De&&De.nodeName.toLowerCase()==="pre"&&!De.hasAttribute("tabindex")&&De.setAttribute("tabindex","0"),!rt.code){Ge.hooks.run("complete",rt),me&&me.call(rt.element);return}if(Ge.hooks.run("before-highlight",rt),!rt.grammar){$e(Ge.util.encode(rt.code));return}if(fe&&ke.Worker){var at=new Worker(Ge.filename);at.onmessage=function(ht){$e(ht.data)},at.postMessage(JSON.stringify({language:rt.language,code:rt.code,immediateClose:!0}))}else $e(Ge.highlight(rt.code,rt.grammar,rt.language))},highlight:function(ue,fe,me){var be={code:ue,grammar:fe,language:me};if(Ge.hooks.run("before-tokenize",be),!be.grammar)throw new Error('The language "'+be.language+'" has no grammar.');return be.tokens=Ge.tokenize(be.code,be.grammar),Ge.hooks.run("after-tokenize",be),lt.stringify(Ge.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 mt;return Je(Ae,Ae.head,ue),Ue(ue,Ae,fe,Ae.head,0),Oe(Ae)},hooks:{all:{},add:function(ue,fe){var me=Ge.hooks.all;me[ue]=me[ue]||[],me[ue].push(fe)},run:function(ue,fe){var me=Ge.hooks.all[ue];if(!(!me||!me.length))for(var be=0,Ae;Ae=me[be++];)Ae(fe)}},Token:lt};ke.Prism=Ge;function lt(ue,fe,me,be){this.type=ue,this.content=fe,this.alias=me,this.length=(be||"").length|0}lt.stringify=function ue(fe,me){if(typeof fe=="string")return fe;if(Array.isArray(fe)){var be="";return fe.forEach(function($e){be+=ue($e,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)),Ge.hooks.run("wrap",Ae);var Ye="";for(var rt in Ae.attributes)Ye+=" "+rt+'="'+(Ae.attributes[rt]||"").replace(/"/g,"&quot;")+'"';return"<"+Ae.tag+' class="'+Ae.classes.join(" ")+'"'+Ye+">"+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 Ye in me)if(!(!me.hasOwnProperty(Ye)||!me[Ye])){var rt=me[Ye];rt=Array.isArray(rt)?rt:[rt];for(var $e=0;$e<rt.length;++$e){if(De&&De.cause==Ye+","+$e)return;var at=rt[$e],ht=at.inside,ot=!!at.lookbehind,vt=!!at.greedy,xt=at.alias;if(vt&&!at.pattern.global){var Tt=at.pattern.toString().match(/[imsuy]*$/)[0];at.pattern=RegExp(at.pattern.source,Tt+"g")}for(var _t=at.pattern||at,Jt=be.next,Zt=Ae;Jt!==fe.tail&&!(De&&Zt>=De.reach);Zt+=Jt.value.length,Jt=Jt.next){var vn=Jt.value;if(fe.length>ue.length)return;if(!(vn instanceof lt)){var bt=1,ft;if(vt){if(ft=Qe(_t,Zt,ue,ot),!ft||ft.index>=ue.length)break;var kt=ft.index,ct=ft.index+ft[0].length,qt=Zt;for(qt+=Jt.value.length;kt>=qt;)Jt=Jt.next,qt+=Jt.value.length;if(qt-=Jt.value.length,Zt=qt,Jt.value instanceof lt)continue;for(var dn=Jt;dn!==fe.tail&&(qt<ct||typeof dn.value=="string");dn=dn.next)bt++,qt+=dn.value.length;bt--,vn=ue.slice(Zt,qt),ft.index-=Zt}else if(ft=Qe(_t,0,vn,ot),!ft)continue;var kt=ft.index,bn=ft[0],gn=vn.slice(0,kt),Zn=vn.slice(kt+bn.length),Gt=Zt+vn.length;De&&Gt>De.reach&&(De.reach=Gt);var Rt=Jt.prev;gn&&(Rt=Je(fe,Rt,gn),Zt+=gn.length),It(fe,Rt,bt);var tn=new lt(Ye,ht?Ge.tokenize(bn,ht):bn,xt,bn);if(Jt=Je(fe,Rt,tn),Zn&&Je(fe,Jt,Zn),bt>1){var zn={cause:Ye+","+$e,reach:Gt};Ue(ue,fe,me,Jt.prev,Zt,zn),De&&zn.reach>De.reach&&(De.reach=zn.reach)}}}}}}function mt(){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 Je(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 It(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 Oe(ue){for(var fe=[],me=ue.head.next;me!==ue.tail;)fe.push(me.value),me=me.next;return fe}if(!ke.document)return ke.addEventListener&&(Ge.disableWorkerMessageHandler||ke.addEventListener("message",function(ue){var fe=JSON.parse(ue.data),me=fe.language,be=fe.code,Ae=fe.immediateClose;ke.postMessage(Ge.highlight(be,Ge.languages[me],me)),Ae&&ke.close()},!1)),Ge;var te=Ge.util.currentScript();te&&(Ge.filename=te.src,te.hasAttribute("data-manual")&&(Ge.manual=!0));function ee(){Ge.manual||Ge.highlightAll()}if(!Ge.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 Ge}(oe);He.exports&&(He.exports=Ce),typeof ae.g!="undefined"&&(ae.g.Prism=Ce)},88914:function(He,Ee,ae){"use strict";var oe=ae(47178),Ce=ae(19095),ke=ae(1969),Ie="data";He.exports=lt;var je=/^data[-\w.:]+$/i,Te=/-[a-z]/g,Ge=/[A-Z]/g;function lt(It,Oe){var te=oe(Oe),ee=Oe,he=ke;return te in It.normal?It.property[It.normal[te]]:(te.length>4&&te.slice(0,4)===Ie&&je.test(Oe)&&(Oe.charAt(4)==="-"?ee=Qe(Oe):Oe=Ue(Oe),he=Ce),new he(ee,Oe))}function Qe(It){var Oe=It.slice(5).replace(Te,Je);return Ie+Oe.charAt(0).toUpperCase()+Oe.slice(1)}function Ue(It){var Oe=It.slice(4);return Te.test(Oe)?It:(Oe=Oe.replace(Ge,mt),Oe.charAt(0)!=="-"&&(Oe="-"+Oe),Ie+Oe)}function mt(It){return"-"+It.toLowerCase()}function Je(It){return It.charAt(1).toUpperCase()}},18795:function(He,Ee,ae){"use strict";var oe=ae(83576),Ce=ae(8179),ke=ae(59780),Ie=ae(68244),je=ae(20019),Te=ae(38567);He.exports=oe([ke,Ce,Ie,je,Te])},20019:function(He,Ee,ae){"use strict";var oe=ae(70167),Ce=ae(79318),ke=oe.booleanish,Ie=oe.number,je=oe.spaceSeparated;He.exports=Ce({transform:Te,properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:Ie,ariaColIndex:Ie,ariaColSpan:Ie,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:je,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:Ie,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:Ie,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:je,ariaRowCount:Ie,ariaRowIndex:Ie,ariaRowSpan:Ie,ariaSelected:ke,ariaSetSize:Ie,ariaSort:null,ariaValueMax:Ie,ariaValueMin:Ie,ariaValueNow:Ie,ariaValueText:null,role:null}});function Te(Ge,lt){return lt==="role"?lt:"aria-"+lt.slice(4).toLowerCase()}},38567:function(He,Ee,ae){"use strict";var oe=ae(70167),Ce=ae(79318),ke=ae(85804),Ie=oe.boolean,je=oe.overloadedBoolean,Te=oe.booleanish,Ge=oe.number,lt=oe.spaceSeparated,Qe=oe.commaSeparated;He.exports=Ce({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ke,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qe,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:lt,autoFocus:Ie,autoPlay:Ie,capture:Ie,charSet:null,checked:Ie,cite:null,className:lt,cols:Ge,colSpan:null,content:null,contentEditable:Te,controls:Ie,controlsList:lt,coords:Ge|Qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:je,draggable:Te,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:lt,height:Ge,hidden:Ie,high:Ge,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:Qe,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:lt,itemRef:lt,itemScope:Ie,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:Ge,manifest:null,max:null,maxLength:Ge,media:null,method:null,min:null,minLength:Ge,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ie,optimum:Ge,pattern:null,ping:lt,placeholder:null,playsInline:Ie,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:lt,required:Ie,reversed:Ie,rows:Ge,rowSpan:Ge,sandbox:lt,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shape:null,size:Ge,sizes:null,slot:null,span:Ge,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:Qe,start:Ge,step:null,style:null,tabIndex:Ge,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Te,width:Ge,wrap:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:Ge,borderColor:null,bottomMargin:Ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:Ge,leftMargin:Ge,link:null,longDesc:null,lowSrc:null,marginHeight:Ge,marginWidth:Ge,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:Ge,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:Ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:Ge,security:null,unselectable:null}})},85804:function(He,Ee,ae){"use strict";var oe=ae(56432);He.exports=Ce;function Ce(ke,Ie){return oe(ke,Ie.toLowerCase())}},56432:function(He){"use strict";He.exports=Ee;function Ee(ae,oe){return oe in ae?ae[oe]:oe}},79318:function(He,Ee,ae){"use strict";var oe=ae(47178),Ce=ae(44347),ke=ae(19095);He.exports=Ie;function Ie(je){var Te=je.space,Ge=je.mustUseProperty||[],lt=je.attributes||{},Qe=je.properties,Ue=je.transform,mt={},Je={},It,Oe;for(It in Qe)Oe=new ke(It,Ue(lt,It),Qe[It],Te),Ge.indexOf(It)!==-1&&(Oe.mustUseProperty=!0),mt[It]=Oe,Je[oe(It)]=It,Je[oe(Oe.attribute)]=It;return new Ce(mt,Je,Te)}},19095:function(He,Ee,ae){"use strict";var oe=ae(1969),Ce=ae(70167);He.exports=je,je.prototype=new oe,je.prototype.defined=!0;var ke=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ie=ke.length;function je(Ge,lt,Qe,Ue){var mt=-1,Je;for(Te(this,"space",Ue),oe.call(this,Ge,lt);++mt<Ie;)Je=ke[mt],Te(this,Je,(Qe&Ce[Je])===Ce[Je])}function Te(Ge,lt,Qe){Qe&&(Ge[lt]=Qe)}},1969:function(He){"use strict";He.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,Ce){this.property=oe,this.attribute=Ce}},83576:function(He,Ee,ae){"use strict";var oe=ae(97270),Ce=ae(44347);He.exports=ke;function ke(Ie){for(var je=Ie.length,Te=[],Ge=[],lt=-1,Qe,Ue;++lt<je;)Qe=Ie[lt],Te.push(Qe.property),Ge.push(Qe.normal),Ue=Qe.space;return new Ce(oe.apply(null,Te),oe.apply(null,Ge),Ue)}},44347:function(He){"use strict";He.exports=ae;var Ee=ae.prototype;Ee.space=null,Ee.normal={},Ee.property={};function ae(oe,Ce,ke){this.property=oe,this.normal=Ce,ke&&(this.space=ke)}},70167:function(He,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(He,Ee,ae){"use strict";var oe=ae(79318);He.exports=oe({space:"xlink",transform:Ce,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Ce(ke,Ie){return"xlink:"+Ie.slice(5).toLowerCase()}},59780:function(He,Ee,ae){"use strict";var oe=ae(79318);He.exports=oe({space:"xml",transform:Ce,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ce(ke,Ie){return"xml:"+Ie.slice(3).toLowerCase()}},68244:function(He,Ee,ae){"use strict";var oe=ae(79318),Ce=ae(85804);He.exports=oe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ce,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(He){"use strict";He.exports=Ee;function Ee(ae){return ae.toLowerCase()}},63727:function(He,Ee,ae){"use strict";ae.d(Ee,{s:function(){return jt},default:function(){return Vn}});var oe=ae(67711),Ce=ae(98506),ke=ae(15142),Ie=ae(16886),je=ae(33346),Te=ae(37463),Ge=ae(6551),lt=ae(6089),Qe=ae(18929),Ue=ae(59301),mt=Ue.createContext({}),Je=mt,It=ae(26420),Oe=ae(52873),te="__rc_cascader_search_mark__",ee=function(nn,fn,Gn){var cn=Gn.label,Et=cn===void 0?"":cn;return fn.some(function(Jn){return String(Jn[Et]).toLowerCase().includes(nn.toLowerCase())})},he=function(nn,fn,Gn,cn){return fn.map(function(Et){return Et[cn.label]}).join(" / ")},ue=function(nn,fn,Gn,cn,Et,Jn){var ir=Et.filter,Wt=ir===void 0?ee:ir,wr=Et.render,ei=wr===void 0?he:wr,Fr=Et.limit,Dn=Fr===void 0?50:Fr,ii=Et.sort;return Ue.useMemo(function(){var Kr=[];if(!nn)return[];function cr(Dr,ri){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Dr.forEach(function(Mr){if(!(!ii&&Dn!==!1&&Dn>0&&Kr.length>=Dn)){var Tr=[].concat((0,ke.Z)(ri),[Mr]),sr=Mr[Gn.children],_r=_e||Mr.disabled;if((!sr||sr.length===0||Jn)&&Wt(nn,Tr,{label:Gn.label})){var Gr;Kr.push((0,Ce.Z)((0,Ce.Z)({},Mr),{},(Gr={disabled:_r},(0,Oe.Z)(Gr,Gn.label,ei(nn,Tr,cn,Gn)),(0,Oe.Z)(Gr,te,Tr),(0,Oe.Z)(Gr,Gn.children,void 0),Gr)))}sr&&cr(Mr[Gn.children],Tr,_r)}})}return cr(fn,[]),ii&&Kr.sort(function(Dr,ri){return ii(Dr[te],ri[te],nn,Gn)}),Dn!==!1&&Dn>0?Kr.slice(0,Dn):Kr},[nn,fn,Gn,cn,ei,Jn,Wt,ii,Dn])},fe=ue,me="__RC_CASCADER_SPLIT__",be="SHOW_PARENT",Ae="SHOW_CHILD";function De(Xt){return Xt.join(me)}function Ye(Xt){return Xt.map(De)}function rt(Xt){return Xt.split(me)}function $e(Xt){var nn=Xt||{},fn=nn.label,Gn=nn.value,cn=nn.children,Et=Gn||"value";return{label:fn||"label",value:Et,key:Et,children:cn||"children"}}function at(Xt,nn){var fn,Gn;return(fn=Xt.isLeaf)!==null&&fn!==void 0?fn:!((Gn=Xt[nn.children])!==null&&Gn!==void 0&&Gn.length)}function ht(Xt){var nn=Xt.parentElement;if(nn){var fn=Xt.offsetTop-nn.offsetTop;fn-nn.scrollTop<0?nn.scrollTo({top:fn}):fn+Xt.offsetHeight-nn.scrollTop>nn.offsetHeight&&nn.scrollTo({top:fn+Xt.offsetHeight-nn.offsetHeight})}}function ot(Xt,nn){return Xt.map(function(fn){var Gn;return(Gn=fn[te])===null||Gn===void 0?void 0:Gn.map(function(cn){return cn[nn.value]})})}function vt(Xt){return Array.isArray(Xt)&&Array.isArray(Xt[0])}function xt(Xt){return Xt?vt(Xt)?Xt:(Xt.length===0?[]:[Xt]).map(function(nn){return Array.isArray(nn)?nn:[nn]}):[]}function Tt(Xt,nn,fn){var Gn=new Set(Xt),cn=nn();return Xt.filter(function(Et){var Jn=cn[Et],ir=Jn?Jn.parent:null,Wt=Jn?Jn.children:null;return Jn&&Jn.node.disabled?!0:fn===Ae?!(Wt&&Wt.some(function(wr){return wr.key&&Gn.has(wr.key)})):!(ir&&!ir.node.disabled&&Gn.has(ir.key))})}function _t(Xt,nn,fn){for(var Gn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,cn=nn,Et=[],Jn=function(){var wr,ei,Fr,Dn=Xt[ir],ii=(wr=cn)===null||wr===void 0?void 0:wr.findIndex(function(cr){var Dr=cr[fn.value];return Gn?String(Dr)===String(Dn):Dr===Dn}),Kr=ii!==-1?(ei=cn)===null||ei===void 0?void 0:ei[ii]:null;Et.push({value:(Fr=Kr==null?void 0:Kr[fn.value])!==null&&Fr!==void 0?Fr:Dn,index:ii,option:Kr}),cn=Kr==null?void 0:Kr[fn.children]},ir=0;ir<Xt.length;ir+=1)Jn();return Et}var Jt=function(Xt,nn,fn,Gn,cn){return Ue.useMemo(function(){var Et=cn||function(Jn){var ir=Gn?Jn.slice(-1):Jn,Wt=" / ";return ir.every(function(wr){return["string","number"].includes((0,It.Z)(wr))})?ir.join(Wt):ir.reduce(function(wr,ei,Fr){var Dn=Ue.isValidElement(ei)?Ue.cloneElement(ei,{key:Fr}):ei;return Fr===0?[Dn]:[].concat((0,ke.Z)(wr),[Wt,Dn])},[])};return Xt.map(function(Jn){var ir,Wt=_t(Jn,nn,fn),wr=Et(Wt.map(function(Fr){var Dn,ii=Fr.option,Kr=Fr.value;return(Dn=ii==null?void 0:ii[fn.label])!==null&&Dn!==void 0?Dn:Kr}),Wt.map(function(Fr){var Dn=Fr.option;return Dn})),ei=De(Jn);return{label:wr,value:ei,key:ei,valueCells:Jn,disabled:(ir=Wt[Wt.length-1])===null||ir===void 0||(ir=ir.option)===null||ir===void 0?void 0:ir.disabled}})},[Xt,nn,fn,cn,Gn])};function Zt(Xt,nn){return Ue.useCallback(function(fn){var Gn=[],cn=[];return fn.forEach(function(Et){var Jn=_t(Et,Xt,nn);Jn.every(function(ir){return ir.option})?cn.push(Et):Gn.push(Et)}),[cn,Gn]},[Xt,nn])}var vn=ae(34061),bt=function(Xt,nn){var fn=Ue.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Gn=Ue.useCallback(function(){return fn.current.options!==Xt&&(fn.current.options=Xt,fn.current.info=(0,vn.I8)(Xt,{fieldNames:nn,initWrapper:function(Et){return(0,Ce.Z)((0,Ce.Z)({},Et),{},{pathKeyEntities:{}})},processEntity:function(Et,Jn){var ir=Et.nodes.map(function(Wt){return Wt[nn.value]}).join(me);Jn.pathKeyEntities[ir]=Et,Et.key=ir}})),fn.current.info.pathKeyEntities},[nn,Xt]);return Gn};function ft(Xt,nn){var fn=Ue.useMemo(function(){return nn||[]},[nn]),Gn=bt(fn,Xt),cn=Ue.useCallback(function(Et){var Jn=Gn();return Et.map(function(ir){var Wt=Jn[ir].nodes;return Wt.map(function(wr){return wr[Xt.value]})})},[Gn,Xt]);return[fn,Gn,cn]}var ct=ae(48736);function qt(Xt){return Ue.useMemo(function(){if(!Xt)return[!1,{}];var nn={matchInputWidth:!0,limit:50};return Xt&&(0,It.Z)(Xt)==="object"&&(nn=(0,Ce.Z)((0,Ce.Z)({},nn),Xt)),nn.limit<=0&&(nn.limit=!1),[!0,nn]},[Xt])}var dn=ae(34643);function kt(Xt,nn,fn,Gn,cn,Et,Jn,ir){return function(Wt){if(!Xt)nn(Wt);else{var wr=De(Wt),ei=Ye(fn),Fr=Ye(Gn),Dn=ei.includes(wr),ii=cn.some(function(_r){return De(_r)===wr}),Kr=fn,cr=cn;if(ii&&!Dn)cr=cn.filter(function(_r){return De(_r)!==wr});else{var Dr=Dn?ei.filter(function(_r){return _r!==wr}):[].concat((0,ke.Z)(ei),[wr]),ri=Et(),_e;if(Dn){var Mr=(0,dn.S)(Dr,{checked:!1,halfCheckedKeys:Fr},ri);_e=Mr.checkedKeys}else{var Tr=(0,dn.S)(Dr,!0,ri);_e=Tr.checkedKeys}var sr=Tt(_e,Et,ir);Kr=Jn(sr)}nn([].concat((0,ke.Z)(cr),(0,ke.Z)(Kr)))}}}function bn(Xt,nn,fn,Gn,cn){return Ue.useMemo(function(){var Et=cn(nn),Jn=(0,Ie.Z)(Et,2),ir=Jn[0],Wt=Jn[1];if(!Xt||!nn.length)return[ir,[],Wt];var wr=Ye(ir),ei=fn(),Fr=(0,dn.S)(wr,!0,ei),Dn=Fr.checkedKeys,ii=Fr.halfCheckedKeys;return[Gn(Dn),Gn(ii),Wt]},[Xt,nn,fn,Gn,cn])}var gn=ae(92310),Zn=ae.n(gn),Gt=Ue.memo(function(Xt){var nn=Xt.children;return nn},function(Xt,nn){return!nn.open}),Rt=Gt;function tn(Xt){var nn,fn=Xt.prefixCls,Gn=Xt.checked,cn=Xt.halfChecked,Et=Xt.disabled,Jn=Xt.onClick,ir=Xt.disableCheckbox,Wt=Ue.useContext(Je),wr=Wt.checkable,ei=typeof wr!="boolean"?wr:null;return Ue.createElement("span",{className:Zn()("".concat(fn),(nn={},(0,Oe.Z)(nn,"".concat(fn,"-checked"),Gn),(0,Oe.Z)(nn,"".concat(fn,"-indeterminate"),!Gn&&cn),(0,Oe.Z)(nn,"".concat(fn,"-disabled"),Et||ir),nn)),onClick:Jn},ei)}var zn="__cascader_fix_label__";function Yn(Xt){var nn=Xt.prefixCls,fn=Xt.multiple,Gn=Xt.options,cn=Xt.activeValue,Et=Xt.prevValuePath,Jn=Xt.onToggleOpen,ir=Xt.onSelect,Wt=Xt.onActive,wr=Xt.checkedSet,ei=Xt.halfCheckedSet,Fr=Xt.loadingKeys,Dn=Xt.isSelectable,ii=Xt.disabled,Kr="".concat(nn,"-menu"),cr="".concat(nn,"-menu-item"),Dr=Ue.useContext(Je),ri=Dr.fieldNames,_e=Dr.changeOnSelect,Mr=Dr.expandTrigger,Tr=Dr.expandIcon,sr=Dr.loadingIcon,_r=Dr.dropdownMenuColumnStyle,Gr=Dr.optionRender,br=Mr==="hover",Ci=function(Sn){return ii||Sn},Rn=Ue.useMemo(function(){return Gn.map(function(Pn){var Sn,$n=Pn.disabled,li=Pn.disableCheckbox,Yr=Pn[te],ci=(Sn=Pn[zn])!==null&&Sn!==void 0?Sn:Pn[ri.label],_n=Pn[ri.value],dr=at(Pn,ri),oi=Yr?Yr.map(function(Nr){return Nr[ri.value]}):[].concat((0,ke.Z)(Et),[_n]),bi=De(oi),Pr=Fr.includes(bi),Lt=wr.has(bi),ln=ei.has(bi);return{disabled:$n,label:ci,value:_n,isLeaf:dr,isLoading:Pr,checked:Lt,halfChecked:ln,option:Pn,disableCheckbox:li,fullPath:oi,fullPathKey:bi}})},[Gn,wr,ri,ei,Fr,Et]);return Ue.createElement("ul",{className:Kr,role:"menu"},Rn.map(function(Pn){var Sn,$n=Pn.disabled,li=Pn.label,Yr=Pn.value,ci=Pn.isLeaf,_n=Pn.isLoading,dr=Pn.checked,oi=Pn.halfChecked,bi=Pn.option,Pr=Pn.fullPath,Lt=Pn.fullPathKey,ln=Pn.disableCheckbox,Nr=function(){if(!Ci($n)){var Xr=(0,ke.Z)(Pr);br&&ci&&Xr.pop(),Wt(Xr)}},Er=function(){Dn(bi)&&!Ci($n)&&ir(Pr,ci)},Yt;return typeof bi.title=="string"?Yt=bi.title:typeof li=="string"&&(Yt=li),Ue.createElement("li",{key:Lt,className:Zn()(cr,(Sn={},(0,Oe.Z)(Sn,"".concat(cr,"-expand"),!ci),(0,Oe.Z)(Sn,"".concat(cr,"-active"),cn===Yr||cn===Lt),(0,Oe.Z)(Sn,"".concat(cr,"-disabled"),Ci($n)),(0,Oe.Z)(Sn,"".concat(cr,"-loading"),_n),Sn)),style:_r,role:"menuitemcheckbox",title:Yt,"aria-checked":dr,"data-path-key":Lt,onClick:function(){Nr(),!ln&&(!fn||ci)&&Er()},onDoubleClick:function(){_e&&Jn(!1)},onMouseEnter:function(){br&&Nr()},onMouseDown:function(Xr){Xr.preventDefault()}},fn&&Ue.createElement(tn,{prefixCls:"".concat(nn,"-checkbox"),checked:dr,halfChecked:oi,disabled:Ci($n)||ln,disableCheckbox:ln,onClick:function(Xr){ln||(Xr.stopPropagation(),Er())}}),Ue.createElement("div",{className:"".concat(cr,"-content")},Gr?Gr(bi):li),!_n&&Tr&&!ci&&Ue.createElement("div",{className:"".concat(cr,"-expand-icon")},Tr),_n&&sr&&Ue.createElement("div",{className:"".concat(cr,"-loading-icon")},sr))}))}var nt=function(nn,fn){var Gn=Ue.useContext(Je),cn=Gn.values,Et=cn[0],Jn=Ue.useState([]),ir=(0,Ie.Z)(Jn,2),Wt=ir[0],wr=ir[1];return Ue.useEffect(function(){nn||wr(Et||[])},[fn,Et]),[Wt,wr]},Be=nt,Re=ae(10228),Ze=function(Xt,nn,fn,Gn,cn,Et,Jn){var ir=Jn.direction,Wt=Jn.searchValue,wr=Jn.toggleOpen,ei=Jn.open,Fr=ir==="rtl",Dn=Ue.useMemo(function(){for(var _r=-1,Gr=nn,br=[],Ci=[],Rn=Gn.length,Pn=ot(nn,fn),Sn=function(_n){var dr=Gr.findIndex(function(oi,bi){return(Pn[bi]?De(Pn[bi]):oi[fn.value])===Gn[_n]});if(dr===-1)return 1;_r=dr,br.push(_r),Ci.push(Gn[_n]),Gr=Gr[_r][fn.children]},$n=0;$n<Rn&&Gr&&!Sn($n);$n+=1);for(var li=nn,Yr=0;Yr<br.length-1;Yr+=1)li=li[br[Yr]][fn.children];return[Ci,_r,li,Pn]},[Gn,fn,nn]),ii=(0,Ie.Z)(Dn,4),Kr=ii[0],cr=ii[1],Dr=ii[2],ri=ii[3],_e=function(Gr){cn(Gr)},Mr=function(Gr){var br=Dr.length,Ci=cr;Ci===-1&&Gr<0&&(Ci=br);for(var Rn=0;Rn<br;Rn+=1){Ci=(Ci+Gr+br)%br;var Pn=Dr[Ci];if(Pn&&!Pn.disabled){var Sn=Kr.slice(0,-1).concat(ri[Ci]?De(ri[Ci]):Pn[fn.value]);_e(Sn);return}}},Tr=function(){if(Kr.length>1){var Gr=Kr.slice(0,-1);_e(Gr)}else wr(!1)},sr=function(){var Gr,br=((Gr=Dr[cr])===null||Gr===void 0?void 0:Gr[fn.children])||[],Ci=br.find(function(Pn){return!Pn.disabled});if(Ci){var Rn=[].concat((0,ke.Z)(Kr),[Ci[fn.value]]);_e(Rn)}};Ue.useImperativeHandle(Xt,function(){return{onKeyDown:function(Gr){var br=Gr.which;switch(br){case Re.Z.UP:case Re.Z.DOWN:{var Ci=0;br===Re.Z.UP?Ci=-1:br===Re.Z.DOWN&&(Ci=1),Ci!==0&&Mr(Ci);break}case Re.Z.LEFT:{if(Wt)break;Fr?sr():Tr();break}case Re.Z.RIGHT:{if(Wt)break;Fr?Tr():sr();break}case Re.Z.BACKSPACE:{Wt||Tr();break}case Re.Z.ENTER:{if(Kr.length){var Rn=Dr[cr],Pn=(Rn==null?void 0:Rn[te])||[];Pn.length?Et(Pn.map(function(Sn){return Sn[fn.value]}),Pn[Pn.length-1]):Et(Kr,Dr[cr])}break}case Re.Z.ESC:wr(!1),ei&&Gr.stopPropagation()}},onKeyUp:function(){}}})},st=Ue.forwardRef(function(Xt,nn){var fn,Gn,cn,Et=Xt.prefixCls,Jn=Xt.multiple,ir=Xt.searchValue,Wt=Xt.toggleOpen,wr=Xt.notFoundContent,ei=Xt.direction,Fr=Xt.open,Dn=Xt.disabled,ii=Ue.useRef(null),Kr=ei==="rtl",cr=Ue.useContext(Je),Dr=cr.options,ri=cr.values,_e=cr.halfValues,Mr=cr.fieldNames,Tr=cr.changeOnSelect,sr=cr.onSelect,_r=cr.searchOptions,Gr=cr.dropdownPrefixCls,br=cr.loadData,Ci=cr.expandTrigger,Rn=Gr||Et,Pn=Ue.useState([]),Sn=(0,Ie.Z)(Pn,2),$n=Sn[0],li=Sn[1],Yr=function(hi){if(!(!br||ir)){var jr=_t(hi,Dr,Mr),ar=jr.map(function(Ti){var eo=Ti.option;return eo}),Qr=ar[ar.length-1];if(Qr&&!at(Qr,Mr)){var un=De(hi);li(function(Ti){return[].concat((0,ke.Z)(Ti),[un])}),br(ar)}}};Ue.useEffect(function(){$n.length&&$n.forEach(function(jn){var hi=rt(jn),jr=_t(hi,Dr,Mr,!0).map(function(Qr){var un=Qr.option;return un}),ar=jr[jr.length-1];(!ar||ar[Mr.children]||at(ar,Mr))&&li(function(Qr){return Qr.filter(function(un){return un!==jn})})})},[Dr,$n,Mr]);var ci=Ue.useMemo(function(){return new Set(Ye(ri))},[ri]),_n=Ue.useMemo(function(){return new Set(Ye(_e))},[_e]),dr=Be(Jn,Fr),oi=(0,Ie.Z)(dr,2),bi=oi[0],Pr=oi[1],Lt=function(hi){Pr(hi),Yr(hi)},ln=function(hi){if(Dn)return!1;var jr=hi.disabled,ar=at(hi,Mr);return!jr&&(ar||Tr||Jn)},Nr=function(hi,jr){var ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;sr(hi),!Jn&&(jr||Tr&&(Ci==="hover"||ar))&&Wt(!1)},Er=Ue.useMemo(function(){return ir?_r:Dr},[ir,_r,Dr]),Yt=Ue.useMemo(function(){for(var jn=[{options:Er}],hi=Er,jr=ot(hi,Mr),ar=function(){var Ti=bi[Qr],eo=hi.find(function(wi,Di){return(jr[Di]?De(jr[Di]):wi[Mr.value])===Ti}),mn=eo==null?void 0:eo[Mr.children];if(!(mn!=null&&mn.length))return 1;hi=mn,jn.push({options:mn})},Qr=0;Qr<bi.length&&!ar();Qr+=1);return jn},[Er,bi,Mr]),Nn=function(hi,jr){ln(jr)&&Nr(hi,at(jr,Mr),!0)};Ze(nn,Er,Mr,bi,Lt,Nn,{direction:ei,searchValue:ir,toggleOpen:Wt,open:Fr}),Ue.useEffect(function(){if(!ir)for(var jn=0;jn<bi.length;jn+=1){var hi,jr=bi.slice(0,jn+1),ar=De(jr),Qr=(hi=ii.current)===null||hi===void 0?void 0:hi.querySelector('li[data-path-key="'.concat(ar.replace(/\\{0,2}"/g,'\\"'),'"]'));Qr&&ht(Qr)}},[bi,ir]);var Xr=!((fn=Yt[0])!==null&&fn!==void 0&&(fn=fn.options)!==null&&fn!==void 0&&fn.length),Ln=[(Gn={},(0,Oe.Z)(Gn,Mr.value,"__EMPTY__"),(0,Oe.Z)(Gn,zn,wr),(0,Oe.Z)(Gn,"disabled",!0),Gn)],Ve=(0,Ce.Z)((0,Ce.Z)({},Xt),{},{multiple:!Xr&&Jn,onSelect:Nr,onActive:Lt,onToggleOpen:Wt,checkedSet:ci,halfCheckedSet:_n,loadingKeys:$n,isSelectable:ln}),Rr=Xr?[{options:Ln}]:Yt,kr=Rr.map(function(jn,hi){var jr=bi.slice(0,hi),ar=bi[hi];return Ue.createElement(Yn,(0,oe.Z)({key:hi},Ve,{prefixCls:Rn,options:jn.options,prevValuePath:jr,activeValue:ar}))});return Ue.createElement(Rt,{open:Fr},Ue.createElement("div",{className:Zn()("".concat(Rn,"-menus"),(cn={},(0,Oe.Z)(cn,"".concat(Rn,"-menu-empty"),Xr),(0,Oe.Z)(cn,"".concat(Rn,"-rtl"),Kr),cn)),ref:ii},kr))}),Fe=st,St=Ue.forwardRef(function(Xt,nn){var fn=(0,Te.lk)();return Ue.createElement(Fe,(0,oe.Z)({},Xt,fn,{ref:nn}))}),hn=St,On=ae(70425);function or(){}function jt(Xt){var nn,fn=Xt,Gn=fn.prefixCls,cn=Gn===void 0?"rc-cascader":Gn,Et=fn.style,Jn=fn.className,ir=fn.options,Wt=fn.checkable,wr=fn.defaultValue,ei=fn.value,Fr=fn.fieldNames,Dn=fn.changeOnSelect,ii=fn.onChange,Kr=fn.showCheckedStrategy,cr=fn.loadData,Dr=fn.expandTrigger,ri=fn.expandIcon,_e=ri===void 0?">":ri,Mr=fn.loadingIcon,Tr=fn.direction,sr=fn.notFoundContent,_r=sr===void 0?"Not Found":sr,Gr=fn.disabled,br=!!Wt,Ci=(0,On.C8)(wr,{value:ei,postState:xt}),Rn=(0,Ie.Z)(Ci,2),Pn=Rn[0],Sn=Rn[1],$n=Ue.useMemo(function(){return $e(Fr)},[JSON.stringify(Fr)]),li=ft($n,ir),Yr=(0,Ie.Z)(li,3),ci=Yr[0],_n=Yr[1],dr=Yr[2],oi=Zt(ci,$n),bi=bn(br,Pn,_n,dr,oi),Pr=(0,Ie.Z)(bi,3),Lt=Pr[0],ln=Pr[1],Nr=Pr[2],Er=(0,On.zX)(function(Rr){if(Sn(Rr),ii){var kr=xt(Rr),jn=kr.map(function(ar){return _t(ar,ci,$n).map(function(Qr){return Qr.option})}),hi=br?kr:kr[0],jr=br?jn:jn[0];ii(hi,jr)}}),Yt=kt(br,Er,Lt,ln,Nr,_n,dr,Kr),Nn=(0,On.zX)(function(Rr){Yt(Rr)}),Xr=Ue.useMemo(function(){return{options:ci,fieldNames:$n,values:Lt,halfValues:ln,changeOnSelect:Dn,onSelect:Nn,checkable:Wt,searchOptions:[],dropdownPrefixCls:void 0,loadData:cr,expandTrigger:Dr,expandIcon:_e,loadingIcon:Mr,dropdownMenuColumnStyle:void 0}},[ci,$n,Lt,ln,Dn,Nn,Wt,cr,Dr,_e,Mr]),Ln="".concat(cn,"-panel"),Ve=!ci.length;return Ue.createElement(Je.Provider,{value:Xr},Ue.createElement("div",{className:Zn()(Ln,(nn={},(0,Oe.Z)(nn,"".concat(Ln,"-rtl"),Tr==="rtl"),(0,Oe.Z)(nn,"".concat(Ln,"-empty"),Ve),nn),Jn),style:Et},Ve?_r:Ue.createElement(Fe,{prefixCls:cn,searchValue:"",multiple:br,toggleOpen:or,open:!0,direction:Tr,disabled:Gr})))}function Ut(Xt){var nn=Xt.onPopupVisibleChange,fn=Xt.popupVisible,Gn=Xt.popupClassName,cn=Xt.popupPlacement;warning(!nn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(fn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Gn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(cn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Qt(Xt,nn){if(Xt){var fn=function Gn(cn){for(var Et=0;Et<cn.length;Et++){var Jn=cn[Et];if(Jn[nn==null?void 0:nn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Jn[nn==null?void 0:nn.children])&&Gn(Jn[nn==null?void 0:nn.children]))return!0}};fn(Xt)}}var En=null,Mn=["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"],Tn=Ue.forwardRef(function(Xt,nn){var fn=Xt.id,Gn=Xt.prefixCls,cn=Gn===void 0?"rc-cascader":Gn,Et=Xt.fieldNames,Jn=Xt.defaultValue,ir=Xt.value,Wt=Xt.changeOnSelect,wr=Xt.onChange,ei=Xt.displayRender,Fr=Xt.checkable,Dn=Xt.autoClearSearchValue,ii=Dn===void 0?!0:Dn,Kr=Xt.searchValue,cr=Xt.onSearch,Dr=Xt.showSearch,ri=Xt.expandTrigger,_e=Xt.options,Mr=Xt.dropdownPrefixCls,Tr=Xt.loadData,sr=Xt.popupVisible,_r=Xt.open,Gr=Xt.popupClassName,br=Xt.dropdownClassName,Ci=Xt.dropdownMenuColumnStyle,Rn=Xt.dropdownStyle,Pn=Xt.popupPlacement,Sn=Xt.placement,$n=Xt.onDropdownVisibleChange,li=Xt.onPopupVisibleChange,Yr=Xt.expandIcon,ci=Yr===void 0?">":Yr,_n=Xt.loadingIcon,dr=Xt.children,oi=Xt.dropdownMatchSelectWidth,bi=oi===void 0?!1:oi,Pr=Xt.showCheckedStrategy,Lt=Pr===void 0?be:Pr,ln=Xt.optionRender,Nr=(0,je.Z)(Xt,Mn),Er=(0,Ge.ZP)(fn),Yt=!!Fr,Nn=(0,Qe.Z)(Jn,{value:ir,postState:xt}),Xr=(0,Ie.Z)(Nn,2),Ln=Xr[0],Ve=Xr[1],Rr=Ue.useMemo(function(){return $e(Et)},[JSON.stringify(Et)]),kr=ft(Rr,_e),jn=(0,Ie.Z)(kr,3),hi=jn[0],jr=jn[1],ar=jn[2],Qr=(0,Qe.Z)("",{value:Kr,postState:function(pi){return pi||""}}),un=(0,Ie.Z)(Qr,2),Ti=un[0],eo=un[1],mn=function(pi,di){eo(pi),di.source!=="blur"&&cr&&cr(pi)},wi=qt(Dr),Di=(0,Ie.Z)(wi,2),gi=Di[0],ki=Di[1],zi=fe(Ti,hi,Rr,Mr||cn,ki,Wt||Yt),ro=Zt(hi,Rr),Gi=bn(Yt,Ln,jr,ar,ro),Fi=(0,Ie.Z)(Gi,3),io=Fi[0],qn=Fi[1],Ui=Fi[2],lr=Ue.useMemo(function(){var Wr=Ye(io),pi=Tt(Wr,jr,Lt);return[].concat((0,ke.Z)(Ui),(0,ke.Z)(ar(pi)))},[io,jr,ar,Ui,Lt]),vi=Jt(lr,hi,Rr,Yt,ei),Vi=(0,lt.Z)(function(Wr){if(Ve(Wr),wr){var pi=xt(Wr),di=pi.map(function(pt){return _t(pt,hi,Rr).map(function(yn){return yn.option})}),ai=Yt?pi:pi[0],gr=Yt?di:di[0];wr(ai,gr)}}),Oi=kt(Yt,Vi,io,qn,Ui,jr,ar,Lt),fo=(0,lt.Z)(function(Wr){(!Yt||ii)&&eo(""),Oi(Wr)}),co=function(pi,di){if(di.type==="clear"){Vi([]);return}var ai=di.values[0],gr=ai.valueCells;fo(gr)},ji=_r!==void 0?_r:sr,zo=br||Gr,Fn=Sn||Pn,mr=function(pi){$n==null||$n(pi),li==null||li(pi)},wn=Ue.useMemo(function(){return{options:hi,fieldNames:Rr,values:io,halfValues:qn,changeOnSelect:Wt,onSelect:fo,checkable:Fr,searchOptions:zi,dropdownPrefixCls:Mr,loadData:Tr,expandTrigger:ri,expandIcon:ci,loadingIcon:_n,dropdownMenuColumnStyle:Ci,optionRender:ln}},[hi,Rr,io,qn,Wt,fo,Fr,zi,Mr,Tr,ri,ci,_n,Ci,ln]),it=!(Ti?zi:hi).length,Or=Ti&&ki.matchInputWidth||it?{}:{minWidth:"auto"};return Ue.createElement(Je.Provider,{value:wn},Ue.createElement(Te.Ac,(0,oe.Z)({},Nr,{ref:nn,id:Er,prefixCls:cn,autoClearSearchValue:ii,dropdownMatchSelectWidth:bi,dropdownStyle:(0,Ce.Z)((0,Ce.Z)({},Or),Rn),displayValues:vi,onDisplayValuesChange:co,mode:Yt?"multiple":void 0,searchValue:Ti,onSearch:mn,showSearch:gi,OptionList:hn,emptyOptions:it,open:ji,dropdownClassName:zo,placement:Fn,onDropdownVisibleChange:mr,getRawInputElement:function(){return dr}})))});Tn.SHOW_PARENT=be,Tn.SHOW_CHILD=Ae,Tn.Panel=jt;var Ht=Tn,Vn=Ht},98535:function(He,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{Panel:function(){return xt},default:function(){return vt}});var oe=ae(67711),Ce=ae(15142),ke=ae(16886),Ie=ae(26420),je=ae(92310),Te=ae.n(je),Ge=ae(18929),lt=ae(48736),Qe=ae(59301),Ue=ae(33346),mt=ae(11592),Je=ae(98506),It=ae(52873),Oe=ae(77900),te=ae(10228),ee=Qe.forwardRef(function(Tt,_t){var Jt=Tt.prefixCls,Zt=Tt.forceRender,vn=Tt.className,bt=Tt.style,ft=Tt.children,ct=Tt.isActive,qt=Tt.role,dn=Tt.classNames,kt=Tt.styles,bn=Qe.useState(ct||Zt),gn=(0,ke.Z)(bn,2),Zn=gn[0],Gt=gn[1];return Qe.useEffect(function(){(Zt||ct)&&Gt(!0)},[Zt,ct]),Zn?Qe.createElement("div",{ref:_t,className:Te()("".concat(Jt,"-content"),(0,It.Z)((0,It.Z)({},"".concat(Jt,"-content-active"),ct),"".concat(Jt,"-content-inactive"),!ct),vn),style:bt,role:qt},Qe.createElement("div",{className:Te()("".concat(Jt,"-content-box"),dn==null?void 0:dn.body),style:kt==null?void 0:kt.body},ft)):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(Tt,_t){var Jt=Tt.showArrow,Zt=Jt===void 0?!0:Jt,vn=Tt.headerClass,bt=Tt.isActive,ft=Tt.onItemClick,ct=Tt.forceRender,qt=Tt.className,dn=Tt.classNames,kt=dn===void 0?{}:dn,bn=Tt.styles,gn=bn===void 0?{}:bn,Zn=Tt.prefixCls,Gt=Tt.collapsible,Rt=Tt.accordion,tn=Tt.panelKey,zn=Tt.extra,Yn=Tt.header,nt=Tt.expandIcon,Be=Tt.openMotion,Re=Tt.destroyInactivePanel,Ze=Tt.children,st=(0,Ue.Z)(Tt,ue),Fe=Gt==="disabled",St=zn!=null&&typeof zn!="boolean",hn=(0,It.Z)((0,It.Z)((0,It.Z)({onClick:function(){ft==null||ft(tn)},onKeyDown:function(Mn){(Mn.key==="Enter"||Mn.keyCode===te.Z.ENTER||Mn.which===te.Z.ENTER)&&(ft==null||ft(tn))},role:Rt?"tab":"button"},"aria-expanded",bt),"aria-disabled",Fe),"tabIndex",Fe?-1:0),On=typeof nt=="function"?nt(Tt):Qe.createElement("i",{className:"arrow"}),or=On&&Qe.createElement("div",(0,oe.Z)({className:"".concat(Zn,"-expand-icon")},["header","icon"].includes(Gt)?hn:{}),On),jt=Te()("".concat(Zn,"-item"),(0,It.Z)((0,It.Z)({},"".concat(Zn,"-item-active"),bt),"".concat(Zn,"-item-disabled"),Fe),qt),Ut=Te()(vn,"".concat(Zn,"-header"),(0,It.Z)({},"".concat(Zn,"-collapsible-").concat(Gt),!!Gt),kt.header),Qt=(0,Je.Z)({className:Ut,style:gn.header},["header","icon"].includes(Gt)?{}:hn);return Qe.createElement("div",(0,oe.Z)({},st,{ref:_t,className:jt}),Qe.createElement("div",Qt,Zt&&or,Qe.createElement("span",(0,oe.Z)({className:"".concat(Zn,"-header-text")},Gt==="header"?hn:{}),Yn),St&&Qe.createElement("div",{className:"".concat(Zn,"-extra")},zn)),Qe.createElement(Oe.default,(0,oe.Z)({visible:bt,leavedClassName:"".concat(Zn,"-content-hidden")},Be,{forceRender:ct,removeOnLeave:Re}),function(En,Mn){var Tn=En.className,Ht=En.style;return Qe.createElement(he,{ref:Mn,prefixCls:Zn,className:Tn,classNames:kt,style:Ht,styles:gn,isActive:bt,forceRender:ct,role:Rt?"tabpanel":void 0},Ze)}))}),me=fe,be=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ae=function(_t,Jt){var Zt=Jt.prefixCls,vn=Jt.accordion,bt=Jt.collapsible,ft=Jt.destroyInactivePanel,ct=Jt.onItemClick,qt=Jt.activeKey,dn=Jt.openMotion,kt=Jt.expandIcon;return _t.map(function(bn,gn){var Zn=bn.children,Gt=bn.label,Rt=bn.key,tn=bn.collapsible,zn=bn.onItemClick,Yn=bn.destroyInactivePanel,nt=(0,Ue.Z)(bn,be),Be=String(Rt!=null?Rt:gn),Re=tn!=null?tn:bt,Ze=Yn!=null?Yn:ft,st=function(hn){Re!=="disabled"&&(ct(hn),zn==null||zn(hn))},Fe=!1;return vn?Fe=qt[0]===Be:Fe=qt.indexOf(Be)>-1,Qe.createElement(me,(0,oe.Z)({},nt,{prefixCls:Zt,key:Be,panelKey:Be,isActive:Fe,accordion:vn,openMotion:dn,expandIcon:kt,header:Gt,collapsible:Re,onItemClick:st,destroyInactivePanel:Ze}),Zn)})},De=function(_t,Jt,Zt){if(!_t)return null;var vn=Zt.prefixCls,bt=Zt.accordion,ft=Zt.collapsible,ct=Zt.destroyInactivePanel,qt=Zt.onItemClick,dn=Zt.activeKey,kt=Zt.openMotion,bn=Zt.expandIcon,gn=_t.key||String(Jt),Zn=_t.props,Gt=Zn.header,Rt=Zn.headerClass,tn=Zn.destroyInactivePanel,zn=Zn.collapsible,Yn=Zn.onItemClick,nt=!1;bt?nt=dn[0]===gn:nt=dn.indexOf(gn)>-1;var Be=zn!=null?zn:ft,Re=function(Fe){Be!=="disabled"&&(qt(Fe),Yn==null||Yn(Fe))},Ze={key:gn,panelKey:gn,header:Gt,headerClass:Rt,isActive:nt,prefixCls:vn,destroyInactivePanel:tn!=null?tn:ct,openMotion:kt,accordion:bt,children:_t.props.children,onItemClick:Re,expandIcon:bn,collapsible:Be};return typeof _t.type=="string"?_t:(Object.keys(Ze).forEach(function(st){typeof Ze[st]=="undefined"&&delete Ze[st]}),Qe.cloneElement(_t,Ze))};function Ye(Tt,_t,Jt){return Array.isArray(Tt)?Ae(Tt,Jt):(0,mt.Z)(_t).map(function(Zt,vn){return De(Zt,vn,Jt)})}var rt=Ye,$e=ae(26112);function at(Tt){var _t=Tt;if(!Array.isArray(_t)){var Jt=(0,Ie.Z)(_t);_t=Jt==="number"||Jt==="string"?[_t]:[]}return _t.map(function(Zt){return String(Zt)})}var ht=Qe.forwardRef(function(Tt,_t){var Jt=Tt.prefixCls,Zt=Jt===void 0?"rc-collapse":Jt,vn=Tt.destroyInactivePanel,bt=vn===void 0?!1:vn,ft=Tt.style,ct=Tt.accordion,qt=Tt.className,dn=Tt.children,kt=Tt.collapsible,bn=Tt.openMotion,gn=Tt.expandIcon,Zn=Tt.activeKey,Gt=Tt.defaultActiveKey,Rt=Tt.onChange,tn=Tt.items,zn=Te()(Zt,qt),Yn=(0,Ge.Z)([],{value:Zn,onChange:function(St){return Rt==null?void 0:Rt(St)},defaultValue:Gt,postState:at}),nt=(0,ke.Z)(Yn,2),Be=nt[0],Re=nt[1],Ze=function(St){return Re(function(){if(ct)return Be[0]===St?[]:[St];var hn=Be.indexOf(St),On=hn>-1;return On?Be.filter(function(or){return or!==St}):[].concat((0,Ce.Z)(Be),[St])})};(0,lt.ZP)(!dn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var st=rt(tn,dn,{prefixCls:Zt,accordion:ct,openMotion:bn,expandIcon:gn,collapsible:kt,destroyInactivePanel:bt,onItemClick:Ze,activeKey:Be});return Qe.createElement("div",(0,oe.Z)({ref:_t,className:zn,style:ft,role:ct?"tablist":void 0},(0,$e.Z)(Tt,{aria:!0,data:!0})),st)}),ot=Object.assign(ht,{Panel:me}),vt=ot,xt=ot.Panel},66042:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return vt}});var oe=ae(98506),Ce=ae(16886),ke=ae(43403),Ie=ae(34280),je=ae(59301),Te=je.createContext(null),Ge=je.createContext({}),lt=Te,Qe=ae(52873),Ue=ae(67711),mt=ae(92310),Je=ae.n(mt),It=ae(77900),Oe=ae(10228),te=ae(26112),ee=ae(33346),he=ae(8654),ue=["prefixCls","className","containerRef"],fe=function(Tt){var _t=Tt.prefixCls,Jt=Tt.className,Zt=Tt.containerRef,vn=(0,ee.Z)(Tt,ue),bt=je.useContext(Ge),ft=bt.panel,ct=(0,he.x1)(ft,Zt);return je.createElement("div",(0,Ue.Z)({className:Je()("".concat(_t,"-content"),Jt),role:"dialog",ref:ct},(0,te.Z)(Tt,{aria:!0}),{"aria-modal":"true"},vn))},me=fe,be=ae(48736);function Ae(xt){return typeof xt=="string"&&String(Number(xt))===xt?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(xt)):xt}function De(xt){warning(!("wrapperClassName"in xt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!xt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ye={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function rt(xt,Tt){var _t,Jt,Zt,vn=xt.prefixCls,bt=xt.open,ft=xt.placement,ct=xt.inline,qt=xt.push,dn=xt.forceRender,kt=xt.autoFocus,bn=xt.keyboard,gn=xt.classNames,Zn=xt.rootClassName,Gt=xt.rootStyle,Rt=xt.zIndex,tn=xt.className,zn=xt.id,Yn=xt.style,nt=xt.motion,Be=xt.width,Re=xt.height,Ze=xt.children,st=xt.mask,Fe=xt.maskClosable,St=xt.maskMotion,hn=xt.maskClassName,On=xt.maskStyle,or=xt.afterOpenChange,jt=xt.onClose,Ut=xt.onMouseEnter,Qt=xt.onMouseOver,En=xt.onMouseLeave,Mn=xt.onClick,Tn=xt.onKeyDown,Ht=xt.onKeyUp,Vn=xt.styles,Xt=xt.drawerRender,nn=je.useRef(),fn=je.useRef(),Gn=je.useRef();je.useImperativeHandle(Tt,function(){return nn.current});var cn=function(Tr){var sr=Tr.keyCode,_r=Tr.shiftKey;switch(sr){case Oe.Z.TAB:{if(sr===Oe.Z.TAB){if(!_r&&document.activeElement===Gn.current){var Gr;(Gr=fn.current)===null||Gr===void 0||Gr.focus({preventScroll:!0})}else if(_r&&document.activeElement===fn.current){var br;(br=Gn.current)===null||br===void 0||br.focus({preventScroll:!0})}}break}case Oe.Z.ESC:{jt&&bn&&(Tr.stopPropagation(),jt(Tr));break}}};je.useEffect(function(){if(bt&&kt){var Mr;(Mr=nn.current)===null||Mr===void 0||Mr.focus({preventScroll:!0})}},[bt]);var Et=je.useState(!1),Jn=(0,Ce.Z)(Et,2),ir=Jn[0],Wt=Jn[1],wr=je.useContext(lt),ei;typeof qt=="boolean"?ei=qt?{}:{distance:0}:ei=qt||{};var Fr=(_t=(Jt=(Zt=ei)===null||Zt===void 0?void 0:Zt.distance)!==null&&Jt!==void 0?Jt:wr==null?void 0:wr.pushDistance)!==null&&_t!==void 0?_t:180,Dn=je.useMemo(function(){return{pushDistance:Fr,push:function(){Wt(!0)},pull:function(){Wt(!1)}}},[Fr]);je.useEffect(function(){if(bt){var Mr;wr==null||(Mr=wr.push)===null||Mr===void 0||Mr.call(wr)}else{var Tr;wr==null||(Tr=wr.pull)===null||Tr===void 0||Tr.call(wr)}},[bt]),je.useEffect(function(){return function(){var Mr;wr==null||(Mr=wr.pull)===null||Mr===void 0||Mr.call(wr)}},[]);var ii=st&&je.createElement(It.default,(0,Ue.Z)({key:"mask"},St,{visible:bt}),function(Mr,Tr){var sr=Mr.className,_r=Mr.style;return je.createElement("div",{className:Je()("".concat(vn,"-mask"),sr,gn==null?void 0:gn.mask,hn),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},_r),On),Vn==null?void 0:Vn.mask),onClick:Fe&&bt?jt:void 0,ref:Tr})}),Kr=typeof nt=="function"?nt(ft):nt,cr={};if(ir&&Fr)switch(ft){case"top":cr.transform="translateY(".concat(Fr,"px)");break;case"bottom":cr.transform="translateY(".concat(-Fr,"px)");break;case"left":cr.transform="translateX(".concat(Fr,"px)");break;default:cr.transform="translateX(".concat(-Fr,"px)");break}ft==="left"||ft==="right"?cr.width=Ae(Be):cr.height=Ae(Re);var Dr={onMouseEnter:Ut,onMouseOver:Qt,onMouseLeave:En,onClick:Mn,onKeyDown:Tn,onKeyUp:Ht},ri=je.createElement(It.default,(0,Ue.Z)({key:"panel"},Kr,{visible:bt,forceRender:dn,onVisibleChanged:function(Tr){or==null||or(Tr)},removeOnLeave:!1,leavedClassName:"".concat(vn,"-content-wrapper-hidden")}),function(Mr,Tr){var sr=Mr.className,_r=Mr.style,Gr=je.createElement(me,(0,Ue.Z)({id:zn,containerRef:Tr,prefixCls:vn,className:Je()(tn,gn==null?void 0:gn.content),style:(0,oe.Z)((0,oe.Z)({},Yn),Vn==null?void 0:Vn.content)},(0,te.Z)(xt,{aria:!0}),Dr),Ze);return je.createElement("div",(0,Ue.Z)({className:Je()("".concat(vn,"-content-wrapper"),gn==null?void 0:gn.wrapper,sr),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},cr),_r),Vn==null?void 0:Vn.wrapper)},(0,te.Z)(xt,{data:!0})),Xt?Xt(Gr):Gr)}),_e=(0,oe.Z)({},Gt);return Rt&&(_e.zIndex=Rt),je.createElement(lt.Provider,{value:Dn},je.createElement("div",{className:Je()(vn,"".concat(vn,"-").concat(ft),Zn,(0,Qe.Z)((0,Qe.Z)({},"".concat(vn,"-open"),bt),"".concat(vn,"-inline"),ct)),style:_e,tabIndex:-1,ref:nn,onKeyDown:cn},ii,je.createElement("div",{tabIndex:0,ref:fn,style:Ye,"aria-hidden":"true","data-sentinel":"start"}),ri,je.createElement("div",{tabIndex:0,ref:Gn,style:Ye,"aria-hidden":"true","data-sentinel":"end"})))}var $e=je.forwardRef(rt),at=$e,ht=function(Tt){var _t=Tt.open,Jt=_t===void 0?!1:_t,Zt=Tt.prefixCls,vn=Zt===void 0?"rc-drawer":Zt,bt=Tt.placement,ft=bt===void 0?"right":bt,ct=Tt.autoFocus,qt=ct===void 0?!0:ct,dn=Tt.keyboard,kt=dn===void 0?!0:dn,bn=Tt.width,gn=bn===void 0?378:bn,Zn=Tt.mask,Gt=Zn===void 0?!0:Zn,Rt=Tt.maskClosable,tn=Rt===void 0?!0:Rt,zn=Tt.getContainer,Yn=Tt.forceRender,nt=Tt.afterOpenChange,Be=Tt.destroyOnClose,Re=Tt.onMouseEnter,Ze=Tt.onMouseOver,st=Tt.onMouseLeave,Fe=Tt.onClick,St=Tt.onKeyDown,hn=Tt.onKeyUp,On=Tt.panelRef,or=je.useState(!1),jt=(0,Ce.Z)(or,2),Ut=jt[0],Qt=jt[1],En=je.useState(!1),Mn=(0,Ce.Z)(En,2),Tn=Mn[0],Ht=Mn[1];(0,Ie.Z)(function(){Ht(!0)},[]);var Vn=Tn?Jt:!1,Xt=je.useRef(),nn=je.useRef();(0,Ie.Z)(function(){Vn&&(nn.current=document.activeElement)},[Vn]);var fn=function(ir){var Wt;if(Qt(ir),nt==null||nt(ir),!ir&&nn.current&&!((Wt=Xt.current)!==null&&Wt!==void 0&&Wt.contains(nn.current))){var wr;(wr=nn.current)===null||wr===void 0||wr.focus({preventScroll:!0})}},Gn=je.useMemo(function(){return{panel:On}},[On]);if(!Yn&&!Ut&&!Vn&&Be)return null;var cn={onMouseEnter:Re,onMouseOver:Ze,onMouseLeave:st,onClick:Fe,onKeyDown:St,onKeyUp:hn},Et=(0,oe.Z)((0,oe.Z)({},Tt),{},{open:Vn,prefixCls:vn,placement:ft,autoFocus:qt,keyboard:kt,width:gn,mask:Gt,maskClosable:tn,inline:zn===!1,afterOpenChange:fn,ref:Xt},cn);return je.createElement(Ge.Provider,{value:Gn},je.createElement(ke.Z,{open:Vn||Yn||Ut,autoDestroy:!1,getContainer:zn,autoLock:Gt&&(Vn||Ut)},je.createElement(at,Et)))},ot=ht,vt=ot},91574:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Mn}});var oe=ae(67711),Ce=ae(98506),ke=ae(52873),Ie=ae(16886),je=ae(26420),Te=ae(33346),Ge=ae(92310),lt=ae.n(Ge),Qe=/margin|padding|width|height|max|min|offset/,Ue={left:!0,top:!0},mt={cssFloat:1,styleFloat:1,float:1};function Je(Tn){return Tn.nodeType===1?Tn.ownerDocument.defaultView.getComputedStyle(Tn,null):{}}function It(Tn,Ht,Vn){if(Ht=Ht.toLowerCase(),Vn==="auto"){if(Ht==="height")return Tn.offsetHeight;if(Ht==="width")return Tn.offsetWidth}return Ht in Ue||(Ue[Ht]=Qe.test(Ht)),Ue[Ht]?parseFloat(Vn)||0:Vn}function Oe(Tn,Ht){var Vn=arguments.length,Xt=Je(Tn);return Ht=mt[Ht]?"cssFloat"in Tn.style?"cssFloat":"styleFloat":Ht,Vn===1?Xt:It(Tn,Ht,Xt[Ht]||Tn.style[Ht])}function te(Tn,Ht,Vn){var Xt=arguments.length;if(Ht=mt[Ht]?"cssFloat"in Tn.style?"cssFloat":"styleFloat":Ht,Xt===3)return typeof Vn=="number"&&Qe.test(Ht)&&(Vn="".concat(Vn,"px")),Tn.style[Ht]=Vn,Vn;for(var nn in Ht)Ht.hasOwnProperty(nn)&&te(Tn,nn,Ht[nn]);return Je(Tn)}function ee(Tn){return Tn===document.body?document.documentElement.clientWidth:Tn.offsetWidth}function he(Tn){return Tn===document.body?window.innerHeight||document.documentElement.clientHeight:Tn.offsetHeight}function ue(){var Tn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ht=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Tn,height:Ht}}function fe(){var Tn=document.documentElement.clientWidth,Ht=window.innerHeight||document.documentElement.clientHeight;return{width:Tn,height:Ht}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(Tn){var Ht=Tn.getBoundingClientRect(),Vn=document.documentElement;return{left:Ht.left+(window.pageXOffset||Vn.scrollLeft)-(Vn.clientLeft||document.body.clientLeft||0),top:Ht.top+(window.pageYOffset||Vn.scrollTop)-(Vn.clientTop||document.body.clientTop||0)}}var Ae=ae(18929),De=ae(59301),Ye=ae(55311),rt=ae(8224),$e=ae(10228),at=ae(43403),ht=ae(77900),ot=De.createContext(null),vt=function(Ht){var Vn=Ht.visible,Xt=Ht.maskTransitionName,nn=Ht.getContainer,fn=Ht.prefixCls,Gn=Ht.rootClassName,cn=Ht.icons,Et=Ht.countRender,Jn=Ht.showSwitch,ir=Ht.showProgress,Wt=Ht.current,wr=Ht.transform,ei=Ht.count,Fr=Ht.scale,Dn=Ht.minScale,ii=Ht.maxScale,Kr=Ht.closeIcon,cr=Ht.onActive,Dr=Ht.onClose,ri=Ht.onZoomIn,_e=Ht.onZoomOut,Mr=Ht.onRotateRight,Tr=Ht.onRotateLeft,sr=Ht.onFlipX,_r=Ht.onFlipY,Gr=Ht.onReset,br=Ht.toolbarRender,Ci=Ht.zIndex,Rn=Ht.image,Pn=(0,De.useContext)(ot),Sn=cn.rotateLeft,$n=cn.rotateRight,li=cn.zoomIn,Yr=cn.zoomOut,ci=cn.close,_n=cn.left,dr=cn.right,oi=cn.flipX,bi=cn.flipY,Pr="".concat(fn,"-operations-operation");De.useEffect(function(){var jn=function(jr){jr.keyCode===$e.Z.ESC&&Dr()};return Vn&&window.addEventListener("keydown",jn),function(){window.removeEventListener("keydown",jn)}},[Vn]);var Lt=function(hi,jr){hi.preventDefault(),hi.stopPropagation(),cr(jr)},ln=De.useCallback(function(jn){var hi=jn.type,jr=jn.disabled,ar=jn.onClick,Qr=jn.icon;return De.createElement("div",{key:hi,className:lt()(Pr,"".concat(fn,"-operations-operation-").concat(hi),(0,ke.Z)({},"".concat(fn,"-operations-operation-disabled"),!!jr)),onClick:ar},Qr)},[Pr,fn]),Nr=Jn?ln({icon:_n,onClick:function(hi){return Lt(hi,-1)},type:"prev",disabled:Wt===0}):void 0,Er=Jn?ln({icon:dr,onClick:function(hi){return Lt(hi,1)},type:"next",disabled:Wt===ei-1}):void 0,Yt=ln({icon:bi,onClick:_r,type:"flipY"}),Nn=ln({icon:oi,onClick:sr,type:"flipX"}),Xr=ln({icon:Sn,onClick:Tr,type:"rotateLeft"}),Ln=ln({icon:$n,onClick:Mr,type:"rotateRight"}),Ve=ln({icon:Yr,onClick:_e,type:"zoomOut",disabled:Fr<=Dn}),Rr=ln({icon:li,onClick:ri,type:"zoomIn",disabled:Fr===ii}),kr=De.createElement("div",{className:"".concat(fn,"-operations")},Yt,Nn,Xr,Ln,Ve,Rr);return De.createElement(ht.default,{visible:Vn,motionName:Xt},function(jn){var hi=jn.className,jr=jn.style;return De.createElement(at.Z,{open:!0,getContainer:nn!=null?nn:document.body},De.createElement("div",{className:lt()("".concat(fn,"-operations-wrapper"),hi,Gn),style:(0,Ce.Z)((0,Ce.Z)({},jr),{},{zIndex:Ci})},Kr===null?null:De.createElement("button",{className:"".concat(fn,"-close"),onClick:Dr},Kr||ci),Jn&&De.createElement(De.Fragment,null,De.createElement("div",{className:lt()("".concat(fn,"-switch-left"),(0,ke.Z)({},"".concat(fn,"-switch-left-disabled"),Wt===0)),onClick:function(Qr){return Lt(Qr,-1)}},_n),De.createElement("div",{className:lt()("".concat(fn,"-switch-right"),(0,ke.Z)({},"".concat(fn,"-switch-right-disabled"),Wt===ei-1)),onClick:function(Qr){return Lt(Qr,1)}},dr)),De.createElement("div",{className:"".concat(fn,"-footer")},ir&&De.createElement("div",{className:"".concat(fn,"-progress")},Et?Et(Wt+1,ei):"".concat(Wt+1," / ").concat(ei)),br?br(kr,(0,Ce.Z)((0,Ce.Z)({icons:{prevIcon:Nr,nextIcon:Er,flipYIcon:Yt,flipXIcon:Nn,rotateLeftIcon:Xr,rotateRightIcon:Ln,zoomOutIcon:Ve,zoomInIcon:Rr},actions:{onActive:cr,onFlipY:_r,onFlipX:sr,onRotateLeft:Tr,onRotateRight:Mr,onZoomOut:_e,onZoomIn:ri,onReset:Gr,onClose:Dr},transform:wr},Pn?{current:Wt,total:ei}:{}),{},{image:Rn})):kr)))})},xt=vt,Tt=ae(13697),_t=ae(16089),Jt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Zt(Tn,Ht,Vn,Xt){var nn=(0,De.useRef)(null),fn=(0,De.useRef)([]),Gn=(0,De.useState)(Jt),cn=(0,Ie.Z)(Gn,2),Et=cn[0],Jn=cn[1],ir=function(Fr){Jn(Jt),(0,Tt.Z)(Jt,Et)||Xt==null||Xt({transform:Jt,action:Fr})},Wt=function(Fr,Dn){nn.current===null&&(fn.current=[],nn.current=(0,_t.Z)(function(){Jn(function(ii){var Kr=ii;return fn.current.forEach(function(cr){Kr=(0,Ce.Z)((0,Ce.Z)({},Kr),cr)}),nn.current=null,Xt==null||Xt({transform:Kr,action:Dn}),Kr})})),fn.current.push((0,Ce.Z)((0,Ce.Z)({},Et),Fr))},wr=function(Fr,Dn,ii,Kr,cr){var Dr=Tn.current,ri=Dr.width,_e=Dr.height,Mr=Dr.offsetWidth,Tr=Dr.offsetHeight,sr=Dr.offsetLeft,_r=Dr.offsetTop,Gr=Fr,br=Et.scale*Fr;br>Vn?(br=Vn,Gr=Vn/Et.scale):br<Ht&&(br=cr?br:Ht,Gr=br/Et.scale);var Ci=ii!=null?ii:innerWidth/2,Rn=Kr!=null?Kr:innerHeight/2,Pn=Gr-1,Sn=Pn*ri*.5,$n=Pn*_e*.5,li=Pn*(Ci-Et.x-sr),Yr=Pn*(Rn-Et.y-_r),ci=Et.x-(li-Sn),_n=Et.y-(Yr-$n);if(Fr<1&&br===1){var dr=Mr*br,oi=Tr*br,bi=fe(),Pr=bi.width,Lt=bi.height;dr<=Pr&&oi<=Lt&&(ci=0,_n=0)}Wt({x:ci,y:_n,scale:br},Dn)};return{transform:Et,resetTransform:ir,updateTransform:Wt,dispatchZoomChange:wr}}var vn=ae(48736);function bt(Tn,Ht,Vn,Xt){var nn=Ht+Vn,fn=(Vn-Xt)/2;if(Vn>Xt){if(Ht>0)return(0,ke.Z)({},Tn,fn);if(Ht<0&&nn<Xt)return(0,ke.Z)({},Tn,-fn)}else if(Ht<0||nn>Xt)return(0,ke.Z)({},Tn,Ht<0?fn:-fn);return{}}function ft(Tn,Ht,Vn,Xt){var nn=fe(),fn=nn.width,Gn=nn.height,cn=null;return Tn<=fn&&Ht<=Gn?cn={x:0,y:0}:(Tn>fn||Ht>Gn)&&(cn=(0,Ce.Z)((0,Ce.Z)({},bt("x",Vn,Tn,fn)),bt("y",Xt,Ht,Gn))),cn}var ct=1,qt=1;function dn(Tn,Ht,Vn,Xt,nn,fn,Gn){var cn=nn.rotate,Et=nn.scale,Jn=nn.x,ir=nn.y,Wt=(0,De.useState)(!1),wr=(0,Ie.Z)(Wt,2),ei=wr[0],Fr=wr[1],Dn=(0,De.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),ii=function(_e){!Ht||_e.button!==0||(_e.preventDefault(),_e.stopPropagation(),Dn.current={diffX:_e.pageX-Jn,diffY:_e.pageY-ir,transformX:Jn,transformY:ir},Fr(!0))},Kr=function(_e){Vn&&ei&&fn({x:_e.pageX-Dn.current.diffX,y:_e.pageY-Dn.current.diffY},"move")},cr=function(){if(Vn&&ei){Fr(!1);var _e=Dn.current,Mr=_e.transformX,Tr=_e.transformY,sr=Jn!==Mr&&ir!==Tr;if(!sr)return;var _r=Tn.current.offsetWidth*Et,Gr=Tn.current.offsetHeight*Et,br=Tn.current.getBoundingClientRect(),Ci=br.left,Rn=br.top,Pn=cn%180!==0,Sn=ft(Pn?Gr:_r,Pn?_r:Gr,Ci,Rn);Sn&&fn((0,Ce.Z)({},Sn),"dragRebound")}},Dr=function(_e){if(!(!Vn||_e.deltaY==0)){var Mr=Math.abs(_e.deltaY/100),Tr=Math.min(Mr,qt),sr=ct+Tr*Xt;_e.deltaY>0&&(sr=ct/sr),Gn(sr,"wheel",_e.clientX,_e.clientY)}};return(0,De.useEffect)(function(){var ri,_e,Mr,Tr;if(Ht){Mr=(0,rt.Z)(window,"mouseup",cr,!1),Tr=(0,rt.Z)(window,"mousemove",Kr,!1);try{window.top!==window.self&&(ri=(0,rt.Z)(window.top,"mouseup",cr,!1),_e=(0,rt.Z)(window.top,"mousemove",Kr,!1))}catch(sr){(0,vn.Kp)(!1,"[rc-image] ".concat(sr))}}return function(){var sr,_r,Gr,br;(sr=Mr)===null||sr===void 0||sr.remove(),(_r=Tr)===null||_r===void 0||_r.remove(),(Gr=ri)===null||Gr===void 0||Gr.remove(),(br=_e)===null||br===void 0||br.remove()}},[Vn,ei,Jn,ir,cn,Ht]),{isMoving:ei,onMouseDown:ii,onMouseMove:Kr,onMouseUp:cr,onWheel:Dr}}function kt(Tn){return new Promise(function(Ht){if(!Tn){Ht(!1);return}var Vn=document.createElement("img");Vn.onerror=function(){return Ht(!1)},Vn.onload=function(){return Ht(!0)},Vn.src=Tn})}function bn(Tn){var Ht=Tn.src,Vn=Tn.isCustomPlaceholder,Xt=Tn.fallback,nn=(0,De.useState)(Vn?"loading":"normal"),fn=(0,Ie.Z)(nn,2),Gn=fn[0],cn=fn[1],Et=(0,De.useRef)(!1),Jn=Gn==="error";(0,De.useEffect)(function(){var ei=!0;return kt(Ht).then(function(Fr){!Fr&&ei&&cn("error")}),function(){ei=!1}},[Ht]),(0,De.useEffect)(function(){Vn&&!Et.current?cn("loading"):Jn&&cn("normal")},[Ht]);var ir=function(){cn("normal")},Wt=function(Fr){Et.current=!1,Gn==="loading"&&Fr!==null&&Fr!==void 0&&Fr.complete&&(Fr.naturalWidth||Fr.naturalHeight)&&(Et.current=!0,ir())},wr=Jn&&Xt?{src:Xt}:{onLoad:ir,src:Ht};return[Wt,wr,Gn]}function gn(Tn,Ht){var Vn=Tn.x-Ht.x,Xt=Tn.y-Ht.y;return Math.hypot(Vn,Xt)}function Zn(Tn,Ht,Vn,Xt){var nn=gn(Tn,Vn),fn=gn(Ht,Xt);if(nn===0&&fn===0)return[Tn.x,Tn.y];var Gn=nn/(nn+fn),cn=Tn.x+Gn*(Ht.x-Tn.x),Et=Tn.y+Gn*(Ht.y-Tn.y);return[cn,Et]}function Gt(Tn,Ht,Vn,Xt,nn,fn,Gn){var cn=nn.rotate,Et=nn.scale,Jn=nn.x,ir=nn.y,Wt=(0,De.useState)(!1),wr=(0,Ie.Z)(Wt,2),ei=wr[0],Fr=wr[1],Dn=(0,De.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),ii=function(_e){Dn.current=(0,Ce.Z)((0,Ce.Z)({},Dn.current),_e)},Kr=function(_e){if(Ht){_e.stopPropagation(),Fr(!0);var Mr=_e.touches,Tr=Mr===void 0?[]:Mr;Tr.length>1?ii({point1:{x:Tr[0].clientX,y:Tr[0].clientY},point2:{x:Tr[1].clientX,y:Tr[1].clientY},eventType:"touchZoom"}):ii({point1:{x:Tr[0].clientX-Jn,y:Tr[0].clientY-ir},eventType:"move"})}},cr=function(_e){var Mr=_e.touches,Tr=Mr===void 0?[]:Mr,sr=Dn.current,_r=sr.point1,Gr=sr.point2,br=sr.eventType;if(Tr.length>1&&br==="touchZoom"){var Ci={x:Tr[0].clientX,y:Tr[0].clientY},Rn={x:Tr[1].clientX,y:Tr[1].clientY},Pn=Zn(_r,Gr,Ci,Rn),Sn=(0,Ie.Z)(Pn,2),$n=Sn[0],li=Sn[1],Yr=gn(Ci,Rn)/gn(_r,Gr);Gn(Yr,"touchZoom",$n,li,!0),ii({point1:Ci,point2:Rn,eventType:"touchZoom"})}else br==="move"&&(fn({x:Tr[0].clientX-_r.x,y:Tr[0].clientY-_r.y},"move"),ii({eventType:"move"}))},Dr=function(){if(Vn){if(ei&&Fr(!1),ii({eventType:"none"}),Xt>Et)return fn({x:0,y:0,scale:Xt},"touchZoom");var _e=Tn.current.offsetWidth*Et,Mr=Tn.current.offsetHeight*Et,Tr=Tn.current.getBoundingClientRect(),sr=Tr.left,_r=Tr.top,Gr=cn%180!==0,br=ft(Gr?Mr:_e,Gr?_e:Mr,sr,_r);br&&fn((0,Ce.Z)({},br),"dragRebound")}};return(0,De.useEffect)(function(){var ri;return Vn&&Ht&&(ri=(0,rt.Z)(window,"touchmove",function(_e){return _e.preventDefault()},{passive:!1})),function(){var _e;(_e=ri)===null||_e===void 0||_e.remove()}},[Vn,Ht]),{isTouching:ei,onTouchStart:Kr,onTouchMove:cr,onTouchEnd:Dr}}var Rt=["fallback","src","imgRef"],tn=["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"],zn=function(Ht){var Vn=Ht.fallback,Xt=Ht.src,nn=Ht.imgRef,fn=(0,Te.Z)(Ht,Rt),Gn=bn({src:Xt,fallback:Vn}),cn=(0,Ie.Z)(Gn,2),Et=cn[0],Jn=cn[1];return De.createElement("img",(0,oe.Z)({ref:function(Wt){nn.current=Wt,Et(Wt)}},fn,Jn))},Yn=function(Ht){var Vn=Ht.prefixCls,Xt=Ht.src,nn=Ht.alt,fn=Ht.imageInfo,Gn=Ht.fallback,cn=Ht.movable,Et=cn===void 0?!0:cn,Jn=Ht.onClose,ir=Ht.visible,Wt=Ht.icons,wr=Wt===void 0?{}:Wt,ei=Ht.rootClassName,Fr=Ht.closeIcon,Dn=Ht.getContainer,ii=Ht.current,Kr=ii===void 0?0:ii,cr=Ht.count,Dr=cr===void 0?1:cr,ri=Ht.countRender,_e=Ht.scaleStep,Mr=_e===void 0?.5:_e,Tr=Ht.minScale,sr=Tr===void 0?1:Tr,_r=Ht.maxScale,Gr=_r===void 0?50:_r,br=Ht.transitionName,Ci=br===void 0?"zoom":br,Rn=Ht.maskTransitionName,Pn=Rn===void 0?"fade":Rn,Sn=Ht.imageRender,$n=Ht.imgCommonProps,li=Ht.toolbarRender,Yr=Ht.onTransform,ci=Ht.onChange,_n=(0,Te.Z)(Ht,tn),dr=(0,De.useRef)(),oi=(0,De.useContext)(ot),bi=oi&&Dr>1,Pr=oi&&Dr>=1,Lt=(0,De.useState)(!0),ln=(0,Ie.Z)(Lt,2),Nr=ln[0],Er=ln[1],Yt=Zt(dr,sr,Gr,Yr),Nn=Yt.transform,Xr=Yt.resetTransform,Ln=Yt.updateTransform,Ve=Yt.dispatchZoomChange,Rr=dn(dr,Et,ir,Mr,Nn,Ln,Ve),kr=Rr.isMoving,jn=Rr.onMouseDown,hi=Rr.onWheel,jr=Gt(dr,Et,ir,sr,Nn,Ln,Ve),ar=jr.isTouching,Qr=jr.onTouchStart,un=jr.onTouchMove,Ti=jr.onTouchEnd,eo=Nn.rotate,mn=Nn.scale,wi=lt()((0,ke.Z)({},"".concat(Vn,"-moving"),kr));(0,De.useEffect)(function(){Nr||Er(!0)},[Nr]);var Di=function(){Xr("close")},gi=function(){Ve(ct+Mr,"zoomIn")},ki=function(){Ve(ct/(ct+Mr),"zoomOut")},zi=function(){Ln({rotate:eo+90},"rotateRight")},ro=function(){Ln({rotate:eo-90},"rotateLeft")},Gi=function(){Ln({flipX:!Nn.flipX},"flipX")},Fi=function(){Ln({flipY:!Nn.flipY},"flipY")},io=function(){Xr("reset")},qn=function(fo){var co=Kr+fo;!Number.isInteger(co)||co<0||co>Dr-1||(Er(!1),Xr(fo<0?"prev":"next"),ci==null||ci(co,Kr))},Ui=function(fo){!ir||!bi||(fo.keyCode===$e.Z.LEFT?qn(-1):fo.keyCode===$e.Z.RIGHT&&qn(1))},lr=function(fo){ir&&(mn!==1?Ln({x:0,y:0,scale:1},"doubleClick"):Ve(ct+Mr,"doubleClick",fo.clientX,fo.clientY))};(0,De.useEffect)(function(){var Oi=(0,rt.Z)(window,"keydown",Ui,!1);return function(){Oi.remove()}},[ir,bi,Kr]);var vi=De.createElement(zn,(0,oe.Z)({},$n,{width:Ht.width,height:Ht.height,imgRef:dr,className:"".concat(Vn,"-img"),alt:nn,style:{transform:"translate3d(".concat(Nn.x,"px, ").concat(Nn.y,"px, 0) scale3d(").concat(Nn.flipX?"-":"").concat(mn,", ").concat(Nn.flipY?"-":"").concat(mn,", 1) rotate(").concat(eo,"deg)"),transitionDuration:(!Nr||ar)&&"0s"},fallback:Gn,src:Xt,onWheel:hi,onMouseDown:jn,onDoubleClick:lr,onTouchStart:Qr,onTouchMove:un,onTouchEnd:Ti,onTouchCancel:Ti})),Vi=(0,Ce.Z)({url:Xt,alt:nn},fn);return De.createElement(De.Fragment,null,De.createElement(Ye.Z,(0,oe.Z)({transitionName:Ci,maskTransitionName:Pn,closable:!1,keyboard:!0,prefixCls:Vn,onClose:Jn,visible:ir,classNames:{wrapper:wi},rootClassName:ei,getContainer:Dn},_n,{afterClose:Di}),De.createElement("div",{className:"".concat(Vn,"-img-wrapper")},Sn?Sn(vi,(0,Ce.Z)({transform:Nn,image:Vi},oi?{current:Kr}:{})):vi)),De.createElement(xt,{visible:ir,transform:Nn,maskTransitionName:Pn,closeIcon:Fr,getContainer:Dn,prefixCls:Vn,rootClassName:ei,icons:wr,countRender:ri,showSwitch:bi,showProgress:Pr,current:Kr,count:Dr,scale:mn,minScale:sr,maxScale:Gr,toolbarRender:li,onActive:qn,onZoomIn:gi,onZoomOut:ki,onRotateRight:zi,onRotateLeft:ro,onFlipX:Gi,onFlipY:Fi,onClose:Jn,onReset:io,zIndex:_n.zIndex!==void 0?_n.zIndex+1:void 0,image:Vi}))},nt=Yn,Be=ae(15142),Re=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Ze(Tn){var Ht=De.useState({}),Vn=(0,Ie.Z)(Ht,2),Xt=Vn[0],nn=Vn[1],fn=De.useCallback(function(cn,Et){return nn(function(Jn){return(0,Ce.Z)((0,Ce.Z)({},Jn),{},(0,ke.Z)({},cn,Et))}),function(){nn(function(Jn){var ir=(0,Ce.Z)({},Jn);return delete ir[cn],ir})}},[]),Gn=De.useMemo(function(){return Tn?Tn.map(function(cn){if(typeof cn=="string")return{data:{src:cn}};var Et={};return Object.keys(cn).forEach(function(Jn){["src"].concat((0,Be.Z)(Re)).includes(Jn)&&(Et[Jn]=cn[Jn])}),{data:Et}}):Object.keys(Xt).reduce(function(cn,Et){var Jn=Xt[Et],ir=Jn.canPreview,Wt=Jn.data;return ir&&cn.push({data:Wt,id:Et}),cn},[])},[Tn,Xt]);return[Gn,fn,!!Tn]}var st=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Fe=["src"],St=function(Ht){var Vn,Xt=Ht.previewPrefixCls,nn=Xt===void 0?"rc-image-preview":Xt,fn=Ht.children,Gn=Ht.icons,cn=Gn===void 0?{}:Gn,Et=Ht.items,Jn=Ht.preview,ir=Ht.fallback,Wt=(0,je.Z)(Jn)==="object"?Jn:{},wr=Wt.visible,ei=Wt.onVisibleChange,Fr=Wt.getContainer,Dn=Wt.current,ii=Wt.movable,Kr=Wt.minScale,cr=Wt.maxScale,Dr=Wt.countRender,ri=Wt.closeIcon,_e=Wt.onChange,Mr=Wt.onTransform,Tr=Wt.toolbarRender,sr=Wt.imageRender,_r=(0,Te.Z)(Wt,st),Gr=Ze(Et),br=(0,Ie.Z)(Gr,3),Ci=br[0],Rn=br[1],Pn=br[2],Sn=(0,Ae.Z)(0,{value:Dn}),$n=(0,Ie.Z)(Sn,2),li=$n[0],Yr=$n[1],ci=(0,De.useState)(!1),_n=(0,Ie.Z)(ci,2),dr=_n[0],oi=_n[1],bi=((Vn=Ci[li])===null||Vn===void 0?void 0:Vn.data)||{},Pr=bi.src,Lt=(0,Te.Z)(bi,Fe),ln=(0,Ae.Z)(!!wr,{value:wr,onChange:function(ar,Qr){ei==null||ei(ar,Qr,li)}}),Nr=(0,Ie.Z)(ln,2),Er=Nr[0],Yt=Nr[1],Nn=(0,De.useState)(null),Xr=(0,Ie.Z)(Nn,2),Ln=Xr[0],Ve=Xr[1],Rr=De.useCallback(function(jr,ar,Qr,un){var Ti=Pn?Ci.findIndex(function(eo){return eo.data.src===ar}):Ci.findIndex(function(eo){return eo.id===jr});Yr(Ti<0?0:Ti),Yt(!0),Ve({x:Qr,y:un}),oi(!0)},[Ci,Pn]);De.useEffect(function(){Er?dr||Yr(0):oi(!1)},[Er]);var kr=function(ar,Qr){Yr(ar),_e==null||_e(ar,Qr)},jn=function(){Yt(!1),Ve(null)},hi=De.useMemo(function(){return{register:Rn,onPreview:Rr}},[Rn,Rr]);return De.createElement(ot.Provider,{value:hi},fn,De.createElement(nt,(0,oe.Z)({"aria-hidden":!Er,movable:ii,visible:Er,prefixCls:nn,closeIcon:ri,onClose:jn,mousePosition:Ln,imgCommonProps:Lt,src:Pr,fallback:ir,icons:cn,minScale:Kr,maxScale:cr,getContainer:Fr,current:li,count:Ci.length,countRender:Dr,onTransform:Mr,toolbarRender:Tr,imageRender:sr,onChange:kr},_r)))},hn=St,On=0;function or(Tn,Ht){var Vn=De.useState(function(){return On+=1,String(On)}),Xt=(0,Ie.Z)(Vn,1),nn=Xt[0],fn=De.useContext(ot),Gn={data:Ht,canPreview:Tn};return De.useEffect(function(){if(fn)return fn.register(nn,Gn)},[]),De.useEffect(function(){fn&&fn.register(nn,Gn)},[Tn,Ht]),nn}var jt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Ut=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Qt=function(Ht){var Vn=Ht.src,Xt=Ht.alt,nn=Ht.onPreviewClose,fn=Ht.prefixCls,Gn=fn===void 0?"rc-image":fn,cn=Ht.previewPrefixCls,Et=cn===void 0?"".concat(Gn,"-preview"):cn,Jn=Ht.placeholder,ir=Ht.fallback,Wt=Ht.width,wr=Ht.height,ei=Ht.style,Fr=Ht.preview,Dn=Fr===void 0?!0:Fr,ii=Ht.className,Kr=Ht.onClick,cr=Ht.onError,Dr=Ht.wrapperClassName,ri=Ht.wrapperStyle,_e=Ht.rootClassName,Mr=(0,Te.Z)(Ht,jt),Tr=Jn&&Jn!==!0,sr=(0,je.Z)(Dn)==="object"?Dn:{},_r=sr.src,Gr=sr.visible,br=Gr===void 0?void 0:Gr,Ci=sr.onVisibleChange,Rn=Ci===void 0?nn:Ci,Pn=sr.getContainer,Sn=Pn===void 0?void 0:Pn,$n=sr.mask,li=sr.maskClassName,Yr=sr.movable,ci=sr.icons,_n=sr.scaleStep,dr=sr.minScale,oi=sr.maxScale,bi=sr.imageRender,Pr=sr.toolbarRender,Lt=(0,Te.Z)(sr,Ut),ln=_r!=null?_r:Vn,Nr=(0,Ae.Z)(!!br,{value:br,onChange:Rn}),Er=(0,Ie.Z)(Nr,2),Yt=Er[0],Nn=Er[1],Xr=bn({src:Vn,isCustomPlaceholder:Tr,fallback:ir}),Ln=(0,Ie.Z)(Xr,3),Ve=Ln[0],Rr=Ln[1],kr=Ln[2],jn=(0,De.useState)(null),hi=(0,Ie.Z)(jn,2),jr=hi[0],ar=hi[1],Qr=(0,De.useContext)(ot),un=!!Dn,Ti=function(){Nn(!1),ar(null)},eo=lt()(Gn,Dr,_e,(0,ke.Z)({},"".concat(Gn,"-error"),kr==="error")),mn=(0,De.useMemo)(function(){var ki={};return Re.forEach(function(zi){Ht[zi]!==void 0&&(ki[zi]=Ht[zi])}),ki},Re.map(function(ki){return Ht[ki]})),wi=(0,De.useMemo)(function(){return(0,Ce.Z)((0,Ce.Z)({},mn),{},{src:ln})},[ln,mn]),Di=or(un,wi),gi=function(zi){var ro=be(zi.target),Gi=ro.left,Fi=ro.top;Qr?Qr.onPreview(Di,ln,Gi,Fi):(ar({x:Gi,y:Fi}),Nn(!0)),Kr==null||Kr(zi)};return De.createElement(De.Fragment,null,De.createElement("div",(0,oe.Z)({},Mr,{className:eo,onClick:un?gi:Kr,style:(0,Ce.Z)({width:Wt,height:wr},ri)}),De.createElement("img",(0,oe.Z)({},mn,{className:lt()("".concat(Gn,"-img"),(0,ke.Z)({},"".concat(Gn,"-img-placeholder"),Jn===!0),ii),style:(0,Ce.Z)({height:wr},ei),ref:Ve},Rr,{width:Wt,height:wr,onError:cr})),kr==="loading"&&De.createElement("div",{"aria-hidden":"true",className:"".concat(Gn,"-placeholder")},Jn),$n&&un&&De.createElement("div",{className:lt()("".concat(Gn,"-mask"),li),style:{display:(ei==null?void 0:ei.display)==="none"?"none":void 0}},$n)),!Qr&&un&&De.createElement(nt,(0,oe.Z)({"aria-hidden":!Yt,visible:Yt,prefixCls:Et,onClose:Ti,mousePosition:jr,src:ln,alt:Xt,imageInfo:{width:Wt,height:wr},fallback:ir,getContainer:Sn,icons:ci,movable:Yr,scaleStep:_n,minScale:dr,maxScale:oi,rootClassName:_e,imageRender:bi,imgCommonProps:mn,toolbarRender:Pr},Lt)))};Qt.PreviewGroup=hn;var En=Qt,Mn=En},23425:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ye}});var oe=ae(52873),Ce=ae(67711),ke=ae(26420),Ie=ae(98506),je=ae(16886),Te=ae(92310),Ge=ae.n(Te),lt=ae(18929),Qe=ae(10228),Ue=ae(26112),mt=ae(48736),Je=ae(59301),It=ae(17119),Oe=[10,20,50,100],te=function($e){var at=$e.pageSizeOptions,ht=at===void 0?Oe:at,ot=$e.locale,vt=$e.changeSize,xt=$e.pageSize,Tt=$e.goButton,_t=$e.quickGo,Jt=$e.rootPrefixCls,Zt=$e.disabled,vn=$e.buildOptionText,bt=$e.showSizeChanger,ft=$e.sizeChangerRender,ct=Je.useState(""),qt=(0,je.Z)(ct,2),dn=qt[0],kt=qt[1],bn=function(){return!dn||Number.isNaN(dn)?void 0:Number(dn)},gn=typeof vn=="function"?vn:function(Re){return"".concat(Re," ").concat(ot.items_per_page)},Zn=function(Ze){kt(Ze.target.value)},Gt=function(Ze){Tt||dn===""||(kt(""),!(Ze.relatedTarget&&(Ze.relatedTarget.className.indexOf("".concat(Jt,"-item-link"))>=0||Ze.relatedTarget.className.indexOf("".concat(Jt,"-item"))>=0))&&(_t==null||_t(bn())))},Rt=function(Ze){dn!==""&&(Ze.keyCode===Qe.Z.ENTER||Ze.type==="click")&&(kt(""),_t==null||_t(bn()))},tn=function(){return ht.some(function(Ze){return Ze.toString()===xt.toString()})?ht:ht.concat([xt]).sort(function(Ze,st){var Fe=Number.isNaN(Number(Ze))?0:Number(Ze),St=Number.isNaN(Number(st))?0:Number(st);return Fe-St})},zn="".concat(Jt,"-options");if(!bt&&!_t)return null;var Yn=null,nt=null,Be=null;return bt&&ft&&(Yn=ft({disabled:Zt,size:xt,onSizeChange:function(Ze){vt==null||vt(Number(Ze))},"aria-label":ot.page_size,className:"".concat(zn,"-size-changer"),options:tn().map(function(Re){return{label:gn(Re),value:Re}})})),_t&&(Tt&&(Be=typeof Tt=="boolean"?Je.createElement("button",{type:"button",onClick:Rt,onKeyUp:Rt,disabled:Zt,className:"".concat(zn,"-quick-jumper-button")},ot.jump_to_confirm):Je.createElement("span",{onClick:Rt,onKeyUp:Rt},Tt)),nt=Je.createElement("div",{className:"".concat(zn,"-quick-jumper")},ot.jump_to,Je.createElement("input",{disabled:Zt,type:"text",value:dn,onChange:Zn,onKeyUp:Rt,onBlur:Gt,"aria-label":ot.page}),ot.page,Be)),Je.createElement("li",{className:zn},Yn,nt)},ee=te,he=function($e){var at=$e.rootPrefixCls,ht=$e.page,ot=$e.active,vt=$e.className,xt=$e.showTitle,Tt=$e.onClick,_t=$e.onKeyPress,Jt=$e.itemRender,Zt="".concat(at,"-item"),vn=Ge()(Zt,"".concat(Zt,"-").concat(ht),(0,oe.Z)((0,oe.Z)({},"".concat(Zt,"-active"),ot),"".concat(Zt,"-disabled"),!ht),vt),bt=function(){Tt(ht)},ft=function(dn){_t(dn,Tt,ht)},ct=Jt(ht,"page",Je.createElement("a",{rel:"nofollow"},ht));return ct?Je.createElement("li",{title:xt?String(ht):null,className:vn,onClick:bt,onKeyDown:ft,tabIndex:0},ct):null},ue=he,fe=function($e,at,ht){return ht};function me(){}function be(rt){var $e=Number(rt);return typeof $e=="number"&&!Number.isNaN($e)&&isFinite($e)&&Math.floor($e)===$e}function Ae(rt,$e,at){var ht=typeof rt=="undefined"?$e:rt;return Math.floor((at-1)/ht)+1}var De=function($e){var at=$e.prefixCls,ht=at===void 0?"rc-pagination":at,ot=$e.selectPrefixCls,vt=ot===void 0?"rc-select":ot,xt=$e.className,Tt=$e.current,_t=$e.defaultCurrent,Jt=_t===void 0?1:_t,Zt=$e.total,vn=Zt===void 0?0:Zt,bt=$e.pageSize,ft=$e.defaultPageSize,ct=ft===void 0?10:ft,qt=$e.onChange,dn=qt===void 0?me:qt,kt=$e.hideOnSinglePage,bn=$e.align,gn=$e.showPrevNextJumpers,Zn=gn===void 0?!0:gn,Gt=$e.showQuickJumper,Rt=$e.showLessItems,tn=$e.showTitle,zn=tn===void 0?!0:tn,Yn=$e.onShowSizeChange,nt=Yn===void 0?me:Yn,Be=$e.locale,Re=Be===void 0?It.Z:Be,Ze=$e.style,st=$e.totalBoundaryShowSizeChanger,Fe=st===void 0?50:st,St=$e.disabled,hn=$e.simple,On=$e.showTotal,or=$e.showSizeChanger,jt=or===void 0?vn>Fe:or,Ut=$e.sizeChangerRender,Qt=$e.pageSizeOptions,En=$e.itemRender,Mn=En===void 0?fe:En,Tn=$e.jumpPrevIcon,Ht=$e.jumpNextIcon,Vn=$e.prevIcon,Xt=$e.nextIcon,nn=Je.useRef(null),fn=(0,lt.Z)(10,{value:bt,defaultValue:ct}),Gn=(0,je.Z)(fn,2),cn=Gn[0],Et=Gn[1],Jn=(0,lt.Z)(1,{value:Tt,defaultValue:Jt,postState:function(Vi){return Math.max(1,Math.min(Vi,Ae(void 0,cn,vn)))}}),ir=(0,je.Z)(Jn,2),Wt=ir[0],wr=ir[1],ei=Je.useState(Wt),Fr=(0,je.Z)(ei,2),Dn=Fr[0],ii=Fr[1];(0,Je.useEffect)(function(){ii(Wt)},[Wt]);var Kr=dn!==me,cr="current"in $e,Dr=Math.max(1,Wt-(Rt?3:5)),ri=Math.min(Ae(void 0,cn,vn),Wt+(Rt?3:5));function _e(vi,Vi){var Oi=vi||Je.createElement("button",{type:"button","aria-label":Vi,className:"".concat(ht,"-item-link")});return typeof vi=="function"&&(Oi=Je.createElement(vi,(0,Ie.Z)({},$e))),Oi}function Mr(vi){var Vi=vi.target.value,Oi=Ae(void 0,cn,vn),fo;return Vi===""?fo=Vi:Number.isNaN(Number(Vi))?fo=Dn:Vi>=Oi?fo=Oi:fo=Number(Vi),fo}function Tr(vi){return be(vi)&&vi!==Wt&&be(vn)&&vn>0}var sr=vn>cn?Gt:!1;function _r(vi){(vi.keyCode===Qe.Z.UP||vi.keyCode===Qe.Z.DOWN)&&vi.preventDefault()}function Gr(vi){var Vi=Mr(vi);switch(Vi!==Dn&&ii(Vi),vi.keyCode){case Qe.Z.ENTER:Rn(Vi);break;case Qe.Z.UP:Rn(Vi-1);break;case Qe.Z.DOWN:Rn(Vi+1);break;default:break}}function br(vi){Rn(Mr(vi))}function Ci(vi){var Vi=Ae(vi,cn,vn),Oi=Wt>Vi&&Vi!==0?Vi:Wt;Et(vi),ii(Oi),nt==null||nt(Wt,vi),wr(Oi),dn==null||dn(Oi,vi)}function Rn(vi){if(Tr(vi)&&!St){var Vi=Ae(void 0,cn,vn),Oi=vi;return vi>Vi?Oi=Vi:vi<1&&(Oi=1),Oi!==Dn&&ii(Oi),wr(Oi),dn==null||dn(Oi,cn),Oi}return Wt}var Pn=Wt>1,Sn=Wt<Ae(void 0,cn,vn);function $n(){Pn&&Rn(Wt-1)}function li(){Sn&&Rn(Wt+1)}function Yr(){Rn(Dr)}function ci(){Rn(ri)}function _n(vi,Vi){if(vi.key==="Enter"||vi.charCode===Qe.Z.ENTER||vi.keyCode===Qe.Z.ENTER){for(var Oi=arguments.length,fo=new Array(Oi>2?Oi-2:0),co=2;co<Oi;co++)fo[co-2]=arguments[co];Vi.apply(void 0,fo)}}function dr(vi){_n(vi,$n)}function oi(vi){_n(vi,li)}function bi(vi){_n(vi,Yr)}function Pr(vi){_n(vi,ci)}function Lt(vi){var Vi=Mn(vi,"prev",_e(Vn,"prev page"));return Je.isValidElement(Vi)?Je.cloneElement(Vi,{disabled:!Pn}):Vi}function ln(vi){var Vi=Mn(vi,"next",_e(Xt,"next page"));return Je.isValidElement(Vi)?Je.cloneElement(Vi,{disabled:!Sn}):Vi}function Nr(vi){(vi.type==="click"||vi.keyCode===Qe.Z.ENTER)&&Rn(Dn)}var Er=null,Yt=(0,Ue.Z)($e,{aria:!0,data:!0}),Nn=On&&Je.createElement("li",{className:"".concat(ht,"-total-text")},On(vn,[vn===0?0:(Wt-1)*cn+1,Wt*cn>vn?vn:Wt*cn])),Xr=null,Ln=Ae(void 0,cn,vn);if(kt&&vn<=cn)return null;var Ve=[],Rr={rootPrefixCls:ht,onClick:Rn,onKeyPress:_n,showTitle:zn,itemRender:Mn,page:-1},kr=Wt-1>0?Wt-1:0,jn=Wt+1<Ln?Wt+1:Ln,hi=Gt&&Gt.goButton,jr=(0,ke.Z)(hn)==="object"?hn.readOnly:!hn,ar=hi,Qr=null;hn&&(hi&&(typeof hi=="boolean"?ar=Je.createElement("button",{type:"button",onClick:Nr,onKeyUp:Nr},Re.jump_to_confirm):ar=Je.createElement("span",{onClick:Nr,onKeyUp:Nr},hi),ar=Je.createElement("li",{title:zn?"".concat(Re.jump_to).concat(Wt,"/").concat(Ln):null,className:"".concat(ht,"-simple-pager")},ar)),Qr=Je.createElement("li",{title:zn?"".concat(Wt,"/").concat(Ln):null,className:"".concat(ht,"-simple-pager")},jr?Dn:Je.createElement("input",{type:"text","aria-label":Re.jump_to,value:Dn,disabled:St,onKeyDown:_r,onKeyUp:Gr,onChange:Gr,onBlur:br,size:3}),Je.createElement("span",{className:"".concat(ht,"-slash")},"/"),Ln));var un=Rt?1:2;if(Ln<=3+un*2){Ln||Ve.push(Je.createElement(ue,(0,Ce.Z)({},Rr,{key:"noPager",page:1,className:"".concat(ht,"-item-disabled")})));for(var Ti=1;Ti<=Ln;Ti+=1)Ve.push(Je.createElement(ue,(0,Ce.Z)({},Rr,{key:Ti,page:Ti,active:Wt===Ti})))}else{var eo=Rt?Re.prev_3:Re.prev_5,mn=Rt?Re.next_3:Re.next_5,wi=Mn(Dr,"jump-prev",_e(Tn,"prev page")),Di=Mn(ri,"jump-next",_e(Ht,"next page"));Zn&&(Er=wi?Je.createElement("li",{title:zn?eo:null,key:"prev",onClick:Yr,tabIndex:0,onKeyDown:bi,className:Ge()("".concat(ht,"-jump-prev"),(0,oe.Z)({},"".concat(ht,"-jump-prev-custom-icon"),!!Tn))},wi):null,Xr=Di?Je.createElement("li",{title:zn?mn:null,key:"next",onClick:ci,tabIndex:0,onKeyDown:Pr,className:Ge()("".concat(ht,"-jump-next"),(0,oe.Z)({},"".concat(ht,"-jump-next-custom-icon"),!!Ht))},Di):null);var gi=Math.max(1,Wt-un),ki=Math.min(Wt+un,Ln);Wt-1<=un&&(ki=1+un*2),Ln-Wt<=un&&(gi=Ln-un*2);for(var zi=gi;zi<=ki;zi+=1)Ve.push(Je.createElement(ue,(0,Ce.Z)({},Rr,{key:zi,page:zi,active:Wt===zi})));if(Wt-1>=un*2&&Wt!==3&&(Ve[0]=Je.cloneElement(Ve[0],{className:Ge()("".concat(ht,"-item-after-jump-prev"),Ve[0].props.className)}),Ve.unshift(Er)),Ln-Wt>=un*2&&Wt!==Ln-2){var ro=Ve[Ve.length-1];Ve[Ve.length-1]=Je.cloneElement(ro,{className:Ge()("".concat(ht,"-item-before-jump-next"),ro.props.className)}),Ve.push(Xr)}gi!==1&&Ve.unshift(Je.createElement(ue,(0,Ce.Z)({},Rr,{key:1,page:1}))),ki!==Ln&&Ve.push(Je.createElement(ue,(0,Ce.Z)({},Rr,{key:Ln,page:Ln})))}var Gi=Lt(kr);if(Gi){var Fi=!Pn||!Ln;Gi=Je.createElement("li",{title:zn?Re.prev_page:null,onClick:$n,tabIndex:Fi?null:0,onKeyDown:dr,className:Ge()("".concat(ht,"-prev"),(0,oe.Z)({},"".concat(ht,"-disabled"),Fi)),"aria-disabled":Fi},Gi)}var io=ln(jn);if(io){var qn,Ui;hn?(qn=!Sn,Ui=Pn?0:null):(qn=!Sn||!Ln,Ui=qn?null:0),io=Je.createElement("li",{title:zn?Re.next_page:null,onClick:li,tabIndex:Ui,onKeyDown:oi,className:Ge()("".concat(ht,"-next"),(0,oe.Z)({},"".concat(ht,"-disabled"),qn)),"aria-disabled":qn},io)}var lr=Ge()(ht,xt,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(ht,"-start"),bn==="start"),"".concat(ht,"-center"),bn==="center"),"".concat(ht,"-end"),bn==="end"),"".concat(ht,"-simple"),hn),"".concat(ht,"-disabled"),St));return Je.createElement("ul",(0,Ce.Z)({className:lr,style:Ze,ref:nn},Yt),Nn,Gi,hn?Qr:Ve,io,Je.createElement(ee,{locale:Re,rootPrefixCls:ht,disabled:St,selectPrefixCls:vt,changeSize:Ci,pageSize:cn,pageSizeOptions:Qt,quickGo:sr?Rn:null,goButton:ar,showSizeChanger:jt,sizeChangerRender:Ut}))},Ye=De},25930:function(He,Ee,ae){"use strict";ae.d(Ee,{Cd:function(){return ht}});var oe=ae(67711),Ce=ae(98506),ke=ae(33346),Ie=ae(59301),je=ae(92310),Te=ae.n(je),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},lt=function(){var xt=(0,Ie.useRef)([]),Tt=(0,Ie.useRef)(null);return(0,Ie.useEffect)(function(){var _t=Date.now(),Jt=!1;xt.current.forEach(function(Zt){if(Zt){Jt=!0;var vn=Zt.style;vn.transitionDuration=".3s, .3s, .3s, .06s",Tt.current&&_t-Tt.current<100&&(vn.transitionDuration="0s, 0s")}}),Jt&&(Tt.current=Date.now())}),xt.current},Qe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ue=function(xt){var Tt=(0,Ce.Z)((0,Ce.Z)({},Ge),xt),_t=Tt.className,Jt=Tt.percent,Zt=Tt.prefixCls,vn=Tt.strokeColor,bt=Tt.strokeLinecap,ft=Tt.strokeWidth,ct=Tt.style,qt=Tt.trailColor,dn=Tt.trailWidth,kt=Tt.transition,bn=(0,ke.Z)(Tt,Qe);delete bn.gapPosition;var gn=Array.isArray(Jt)?Jt:[Jt],Zn=Array.isArray(vn)?vn:[vn],Gt=lt(),Rt=ft/2,tn=100-ft/2,zn="M ".concat(bt==="round"?Rt:0,",").concat(Rt,`
L `).concat(bt==="round"?tn:100,",").concat(Rt),Yn="0 0 100 ".concat(ft),nt=0;return Ie.createElement("svg",(0,oe.Z)({className:Te()("".concat(Zt,"-line"),_t),viewBox:Yn,preserveAspectRatio:"none",style:ct},bn),Ie.createElement("path",{className:"".concat(Zt,"-line-trail"),d:zn,strokeLinecap:bt,stroke:qt,strokeWidth:dn||ft,fillOpacity:"0"}),gn.map(function(Be,Re){var Ze=1;switch(bt){case"round":Ze=1-ft/100;break;case"square":Ze=1-ft/2/100;break;default:Ze=1;break}var st={strokeDasharray:"".concat(Be*Ze,"px, 100px"),strokeDashoffset:"-".concat(nt,"px"),transition:kt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Fe=Zn[Re]||Zn[Zn.length-1];return nt+=Be,Ie.createElement("path",{key:Re,className:"".concat(Zt,"-line-path"),d:zn,strokeLinecap:bt,stroke:Fe,strokeWidth:ft,fillOpacity:"0",ref:function(hn){Gt[Re]=hn},style:st})}))},mt=Ue,Je=ae(26420),It=ae(16886),Oe=ae(47273),te=0,ee=(0,Oe.Z)();function he(){var vt;return ee?(vt=te,te+=1):vt="TEST_OR_SSR",vt}var ue=function(vt){var xt=Ie.useState(),Tt=(0,It.Z)(xt,2),_t=Tt[0],Jt=Tt[1];return Ie.useEffect(function(){Jt("rc_progress_".concat(he()))},[]),vt||_t},fe=function(xt){var Tt=xt.bg,_t=xt.children;return Ie.createElement("div",{style:{width:"100%",height:"100%",background:Tt}},_t)};function me(vt,xt){return Object.keys(vt).map(function(Tt){var _t=parseFloat(Tt),Jt="".concat(Math.floor(_t*xt),"%");return"".concat(vt[Tt]," ").concat(Jt)})}var be=Ie.forwardRef(function(vt,xt){var Tt=vt.prefixCls,_t=vt.color,Jt=vt.gradientId,Zt=vt.radius,vn=vt.style,bt=vt.ptg,ft=vt.strokeLinecap,ct=vt.strokeWidth,qt=vt.size,dn=vt.gapDegree,kt=_t&&(0,Je.Z)(_t)==="object",bn=kt?"#FFF":void 0,gn=qt/2,Zn=Ie.createElement("circle",{className:"".concat(Tt,"-circle-path"),r:Zt,cx:gn,cy:gn,stroke:bn,strokeLinecap:ft,strokeWidth:ct,opacity:bt===0?0:1,style:vn,ref:xt});if(!kt)return Zn;var Gt="".concat(Jt,"-conic"),Rt=dn?"".concat(180+dn/2,"deg"):"0deg",tn=me(_t,(360-dn)/360),zn=me(_t,1),Yn="conic-gradient(from ".concat(Rt,", ").concat(tn.join(", "),")"),nt="linear-gradient(to ".concat(dn?"bottom":"top",", ").concat(zn.join(", "),")");return Ie.createElement(Ie.Fragment,null,Ie.createElement("mask",{id:Gt},Zn),Ie.createElement("foreignObject",{x:0,y:0,width:qt,height:qt,mask:"url(#".concat(Gt,")")},Ie.createElement(fe,{bg:nt},Ie.createElement(fe,{bg:Yn}))))}),Ae=be,De=100,Ye=function(xt,Tt,_t,Jt,Zt,vn,bt,ft,ct,qt){var dn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,kt=_t/100*360*((360-vn)/360),bn=vn===0?0:{bottom:0,top:180,left:90,right:-90}[bt],gn=(100-Jt)/100*Tt;ct==="round"&&Jt!==100&&(gn+=qt/2,gn>=Tt&&(gn=Tt-.01));var Zn=De/2;return{stroke:typeof ft=="string"?ft:void 0,strokeDasharray:"".concat(Tt,"px ").concat(xt),strokeDashoffset:gn+dn,transform:"rotate(".concat(Zt+kt+bn,"deg)"),transformOrigin:"".concat(Zn,"px ").concat(Zn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $e(vt){var xt=vt!=null?vt:[];return Array.isArray(xt)?xt:[xt]}var at=function(xt){var Tt=(0,Ce.Z)((0,Ce.Z)({},Ge),xt),_t=Tt.id,Jt=Tt.prefixCls,Zt=Tt.steps,vn=Tt.strokeWidth,bt=Tt.trailWidth,ft=Tt.gapDegree,ct=ft===void 0?0:ft,qt=Tt.gapPosition,dn=Tt.trailColor,kt=Tt.strokeLinecap,bn=Tt.style,gn=Tt.className,Zn=Tt.strokeColor,Gt=Tt.percent,Rt=(0,ke.Z)(Tt,rt),tn=De/2,zn=ue(_t),Yn="".concat(zn,"-gradient"),nt=tn-vn/2,Be=Math.PI*2*nt,Re=ct>0?90+ct/2:-90,Ze=Be*((360-ct)/360),st=(0,Je.Z)(Zt)==="object"?Zt:{count:Zt,gap:2},Fe=st.count,St=st.gap,hn=$e(Gt),On=$e(Zn),or=On.find(function(Ht){return Ht&&(0,Je.Z)(Ht)==="object"}),jt=or&&(0,Je.Z)(or)==="object",Ut=jt?"butt":kt,Qt=Ye(Be,Ze,0,100,Re,ct,qt,dn,Ut,vn),En=lt(),Mn=function(){var Vn=0;return hn.map(function(Xt,nn){var fn=On[nn]||On[On.length-1],Gn=Ye(Be,Ze,Vn,Xt,Re,ct,qt,fn,Ut,vn);return Vn+=Xt,Ie.createElement(Ae,{key:nn,color:fn,ptg:Xt,radius:nt,prefixCls:Jt,gradientId:Yn,style:Gn,strokeLinecap:Ut,strokeWidth:vn,gapDegree:ct,ref:function(Et){En[nn]=Et},size:De})}).reverse()},Tn=function(){var Vn=Math.round(Fe*(hn[0]/100)),Xt=100/Fe,nn=0;return new Array(Fe).fill(null).map(function(fn,Gn){var cn=Gn<=Vn-1?On[0]:dn,Et=cn&&(0,Je.Z)(cn)==="object"?"url(#".concat(Yn,")"):void 0,Jn=Ye(Be,Ze,nn,Xt,Re,ct,qt,cn,"butt",vn,St);return nn+=(Ze-Jn.strokeDashoffset+St)*100/Ze,Ie.createElement("circle",{key:Gn,className:"".concat(Jt,"-circle-path"),r:nt,cx:tn,cy:tn,stroke:Et,strokeWidth:vn,opacity:1,style:Jn,ref:function(Wt){En[Gn]=Wt}})})};return Ie.createElement("svg",(0,oe.Z)({className:Te()("".concat(Jt,"-circle"),gn),viewBox:"0 0 ".concat(De," ").concat(De),style:bn,id:_t,role:"presentation"},Rt),!Fe&&Ie.createElement("circle",{className:"".concat(Jt,"-circle-trail"),r:nt,cx:tn,cy:tn,stroke:dn,strokeLinecap:Ut,strokeWidth:bt||vn,style:Qt}),Fe?Tn():Mn())},ht=at,ot={Line:mt,Circle:ht}},738:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(67711),Ce=ae(52873),ke=ae(16886),Ie=ae(33346),je=ae(92310),Te=ae.n(je),Ge=ae(18929),lt=ae(10228),Qe=ae(26112),Ue=ae(59301);function mt(be,Ae){var De=be.disabled,Ye=be.prefixCls,rt=be.character,$e=be.characterRender,at=be.index,ht=be.count,ot=be.value,vt=be.allowHalf,xt=be.focused,Tt=be.onHover,_t=be.onClick,Jt=function(kt){Tt(kt,at)},Zt=function(kt){_t(kt,at)},vn=function(kt){kt.keyCode===lt.Z.ENTER&&_t(kt,at)},bt=at+1,ft=new Set([Ye]);ot===0&&at===0&&xt?ft.add("".concat(Ye,"-focused")):vt&&ot+.5>=bt&&ot<bt?(ft.add("".concat(Ye,"-half")),ft.add("".concat(Ye,"-active")),xt&&ft.add("".concat(Ye,"-focused"))):(bt<=ot?ft.add("".concat(Ye,"-full")):ft.add("".concat(Ye,"-zero")),bt===ot&&xt&&ft.add("".concat(Ye,"-focused")));var ct=typeof rt=="function"?rt(be):rt,qt=Ue.createElement("li",{className:Te()(Array.from(ft)),ref:Ae},Ue.createElement("div",{onClick:De?null:Zt,onKeyDown:De?null:vn,onMouseMove:De?null:Jt,role:"radio","aria-checked":ot>at?"true":"false","aria-posinset":at+1,"aria-setsize":ht,tabIndex:De?-1:0},Ue.createElement("div",{className:"".concat(Ye,"-first")},ct),Ue.createElement("div",{className:"".concat(Ye,"-second")},ct)));return $e&&(qt=$e(qt,be)),qt}var Je=Ue.forwardRef(mt);function It(){var be=Ue.useRef({});function Ae(Ye){return be.current[Ye]}function De(Ye){return function(rt){be.current[Ye]=rt}}return[Ae,De]}function Oe(be){var Ae=be.pageXOffset,De="scrollLeft";if(typeof Ae!="number"){var Ye=be.document;Ae=Ye.documentElement[De],typeof Ae!="number"&&(Ae=Ye.body[De])}return Ae}function te(be){var Ae,De,Ye=be.ownerDocument,rt=Ye.body,$e=Ye&&Ye.documentElement,at=be.getBoundingClientRect();return Ae=at.left,De=at.top,Ae-=$e.clientLeft||rt.clientLeft||0,De-=$e.clientTop||rt.clientTop||0,{left:Ae,top:De}}function ee(be){var Ae=te(be),De=be.ownerDocument,Ye=De.defaultView||De.parentWindow;return Ae.left+=Oe(Ye),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,Ye=De===void 0?"rc-rate":De,rt=be.className,$e=be.defaultValue,at=be.value,ht=be.count,ot=ht===void 0?5:ht,vt=be.allowHalf,xt=vt===void 0?!1:vt,Tt=be.allowClear,_t=Tt===void 0?!0:Tt,Jt=be.keyboard,Zt=Jt===void 0?!0:Jt,vn=be.character,bt=vn===void 0?"\u2605":vn,ft=be.characterRender,ct=be.disabled,qt=be.direction,dn=qt===void 0?"ltr":qt,kt=be.tabIndex,bn=kt===void 0?0:kt,gn=be.autoFocus,Zn=be.onHoverChange,Gt=be.onChange,Rt=be.onFocus,tn=be.onBlur,zn=be.onKeyDown,Yn=be.onMouseLeave,nt=(0,Ie.Z)(be,he),Be=It(),Re=(0,ke.Z)(Be,2),Ze=Re[0],st=Re[1],Fe=Ue.useRef(null),St=function(){if(!ct){var Dr;(Dr=Fe.current)===null||Dr===void 0||Dr.focus()}};Ue.useImperativeHandle(Ae,function(){return{focus:St,blur:function(){if(!ct){var Dr;(Dr=Fe.current)===null||Dr===void 0||Dr.blur()}}}});var hn=(0,Ge.Z)($e||0,{value:at}),On=(0,ke.Z)(hn,2),or=On[0],jt=On[1],Ut=(0,Ge.Z)(null),Qt=(0,ke.Z)(Ut,2),En=Qt[0],Mn=Qt[1],Tn=function(Dr,ri){var _e=dn==="rtl",Mr=Dr+1;if(xt){var Tr=Ze(Dr),sr=ee(Tr),_r=Tr.clientWidth;(_e&&ri-sr>_r/2||!_e&&ri-sr<_r/2)&&(Mr-=.5)}return Mr},Ht=function(Dr){jt(Dr),Gt==null||Gt(Dr)},Vn=Ue.useState(!1),Xt=(0,ke.Z)(Vn,2),nn=Xt[0],fn=Xt[1],Gn=function(){fn(!0),Rt==null||Rt()},cn=function(){fn(!1),tn==null||tn()},Et=Ue.useState(null),Jn=(0,ke.Z)(Et,2),ir=Jn[0],Wt=Jn[1],wr=function(Dr,ri){var _e=Tn(ri,Dr.pageX);_e!==En&&(Wt(_e),Mn(null)),Zn==null||Zn(_e)},ei=function(Dr){ct||(Wt(null),Mn(null),Zn==null||Zn(void 0)),Dr&&(Yn==null||Yn(Dr))},Fr=function(Dr,ri){var _e=Tn(ri,Dr.pageX),Mr=!1;_t&&(Mr=_e===or),ei(),Ht(Mr?0:_e),Mn(Mr?_e:null)},Dn=function(Dr){var ri=Dr.keyCode,_e=dn==="rtl",Mr=xt?.5:1;Zt&&(ri===lt.Z.RIGHT&&or<ot&&!_e?(Ht(or+Mr),Dr.preventDefault()):ri===lt.Z.LEFT&&or>0&&!_e||ri===lt.Z.RIGHT&&or>0&&_e?(Ht(or-Mr),Dr.preventDefault()):ri===lt.Z.LEFT&&or<ot&&_e&&(Ht(or+Mr),Dr.preventDefault())),zn==null||zn(Dr)};Ue.useEffect(function(){gn&&!ct&&St()},[]);var ii=new Array(ot).fill(0).map(function(cr,Dr){return Ue.createElement(Je,{ref:st(Dr),index:Dr,count:ot,disabled:ct,prefixCls:"".concat(Ye,"-star"),allowHalf:xt,value:ir===null?or:ir,onClick:Fr,onHover:wr,key:cr||Dr,character:bt,characterRender:ft,focused:nn})}),Kr=Te()(Ye,rt,(0,Ce.Z)((0,Ce.Z)({},"".concat(Ye,"-disabled"),ct),"".concat(Ye,"-rtl"),dn==="rtl"));return Ue.createElement("ul",(0,oe.Z)({className:Kr,onMouseLeave:ei,tabIndex:ct?-1:bn,onFocus:ct?null:Gn,onBlur:ct?null:cn,onKeyDown:ct?null:Dn,ref:Fe},(0,Qe.Z)(nt,{aria:!0,data:!0,attr:!0})),ii)}var fe=Ue.forwardRef(ue),me=fe},6551:function(He,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return Ge}});var oe=ae(16886),Ce=ae(59301),ke=ae(47273),Ie=0,je=(0,ke.Z)();function Te(){var lt;return je?(lt=Ie,Ie+=1):lt="TEST_OR_SSR",lt}function Ge(lt){var Qe=Ce.useState(),Ue=(0,oe.Z)(Qe,2),mt=Ue[0],Je=Ue[1];return Ce.useEffect(function(){Je("rc_select_".concat(Te()))},[]),lt||mt}},37463:function(He,Ee,ae){"use strict";ae.d(Ee,{Ac:function(){return fn},Xo:function(){return cn},Wx:function(){return Jn},ZP:function(){return Pr},lk:function(){return me}});var oe=ae(67711),Ce=ae(15142),ke=ae(52873),Ie=ae(98506),je=ae(16886),Te=ae(33346),Ge=ae(26420),lt=ae(18929),Qe=ae(48736),Ue=ae(59301),mt=ae(92310),Je=ae.n(mt),It=ae(34280),Oe=ae(49658),te=ae(8654),ee=function(ln){var Nr=ln.className,Er=ln.customizeIcon,Yt=ln.customizeIconProps,Nn=ln.children,Xr=ln.onMouseDown,Ln=ln.onClick,Ve=typeof Er=="function"?Er(Yt):Er;return Ue.createElement("span",{className:Nr,onMouseDown:function(kr){kr.preventDefault(),Xr==null||Xr(kr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ln,"aria-hidden":!0},Ve!==void 0?Ve:Ue.createElement("span",{className:Je()(Nr.split(/\s+/).map(function(Rr){return"".concat(Rr,"-icon")}))},Nn))},he=ee,ue=function(ln,Nr,Er,Yt,Nn){var Xr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ln=arguments.length>6?arguments[6]:void 0,Ve=arguments.length>7?arguments[7]:void 0,Rr=Ue.useMemo(function(){if((0,Ge.Z)(Yt)==="object")return Yt.clearIcon;if(Nn)return Nn},[Yt,Nn]),kr=Ue.useMemo(function(){return!!(!Xr&&Yt&&(Er.length||Ln)&&!(Ve==="combobox"&&Ln===""))},[Yt,Xr,Er.length,Ln,Ve]);return{allowClear:kr,clearIcon:Ue.createElement(he,{className:"".concat(ln,"-clear"),onMouseDown:Nr,customizeIcon:Rr},"\xD7")}},fe=Ue.createContext(null);function me(){return Ue.useContext(fe)}function be(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ln=Ue.useState(!1),Nr=(0,je.Z)(ln,2),Er=Nr[0],Yt=Nr[1],Nn=Ue.useRef(null),Xr=function(){window.clearTimeout(Nn.current)};Ue.useEffect(function(){return Xr},[]);var Ln=function(Rr,kr){Xr(),Nn.current=window.setTimeout(function(){Yt(Rr),kr&&kr()},Lt)};return[Er,Ln,Xr]}function Ae(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ln=Ue.useRef(null),Nr=Ue.useRef(null);Ue.useEffect(function(){return function(){window.clearTimeout(Nr.current)}},[]);function Er(Yt){(Yt||ln.current===null)&&(ln.current=Yt),window.clearTimeout(Nr.current),Nr.current=window.setTimeout(function(){ln.current=null},Lt)}return[function(){return ln.current},Er]}function De(Lt,ln,Nr,Er){var Yt=Ue.useRef(null);Yt.current={open:ln,triggerOpen:Nr,customizedTrigger:Er},Ue.useEffect(function(){function Nn(Xr){var Ln;if(!((Ln=Yt.current)!==null&&Ln!==void 0&&Ln.customizedTrigger)){var Ve=Xr.target;Ve.shadowRoot&&Xr.composed&&(Ve=Xr.composedPath()[0]||Ve),Yt.current.open&&Lt().filter(function(Rr){return Rr}).every(function(Rr){return!Rr.contains(Ve)&&Rr!==Ve})&&Yt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Nn),function(){return window.removeEventListener("mousedown",Nn)}},[])}var Ye=ae(10228);function rt(Lt){return Lt&&![Ye.Z.ESC,Ye.Z.SHIFT,Ye.Z.BACKSPACE,Ye.Z.TAB,Ye.Z.WIN_KEY,Ye.Z.ALT,Ye.Z.META,Ye.Z.WIN_KEY_RIGHT,Ye.Z.CTRL,Ye.Z.SEMICOLON,Ye.Z.EQUALS,Ye.Z.CAPS_LOCK,Ye.Z.CONTEXT_MENU,Ye.Z.F1,Ye.Z.F2,Ye.Z.F3,Ye.Z.F4,Ye.Z.F5,Ye.Z.F6,Ye.Z.F7,Ye.Z.F8,Ye.Z.F9,Ye.Z.F10,Ye.Z.F11,Ye.Z.F12].includes(Lt)}var $e=ae(26112),at=ae(11780);function ht(Lt,ln,Nr){var Er=(0,Ie.Z)((0,Ie.Z)({},Lt),Nr?ln:{});return Object.keys(ln).forEach(function(Yt){var Nn=ln[Yt];typeof Nn=="function"&&(Er[Yt]=function(){for(var Xr,Ln=arguments.length,Ve=new Array(Ln),Rr=0;Rr<Ln;Rr++)Ve[Rr]=arguments[Rr];return Nn.apply(void 0,Ve),(Xr=Lt[Yt])===null||Xr===void 0?void 0:Xr.call.apply(Xr,[Lt].concat(Ve))})}),Er}var ot=ht,vt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],xt=function(ln,Nr){var Er=ln.prefixCls,Yt=ln.id,Nn=ln.inputElement,Xr=ln.autoFocus,Ln=ln.autoComplete,Ve=ln.editable,Rr=ln.activeDescendantId,kr=ln.value,jn=ln.open,hi=ln.attrs,jr=(0,Te.Z)(ln,vt),ar=Nn||Ue.createElement("input",null),Qr=ar,un=Qr.ref,Ti=Qr.props;return(0,Qe.Kp)(!("maxLength"in ar.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ar=Ue.cloneElement(ar,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},ot(jr,Ti,!0)),{},{id:Yt,ref:(0,te.sQ)(Nr,un),autoComplete:Ln||"off",autoFocus:Xr,className:Je()("".concat(Er,"-selection-search-input"),Ti==null?void 0:Ti.className),role:"combobox","aria-expanded":jn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Yt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Yt,"_list"),"aria-activedescendant":jn?Rr:void 0},hi),{},{value:Ve?kr:"",readOnly:!Ve,unselectable:Ve?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},Ti.style),{},{opacity:Ve?null:0})})),ar},Tt=Ue.forwardRef(xt),_t=Tt;function Jt(Lt){return Array.isArray(Lt)?Lt:Lt!==void 0?[Lt]:[]}var Zt=typeof window!="undefined"&&window.document&&window.document.documentElement,vn=Zt;function bt(Lt){return Lt!=null}function ft(Lt){return!Lt&&Lt!==0}function ct(Lt){return["string","number"].includes((0,Ge.Z)(Lt))}function qt(Lt){var ln=void 0;return Lt&&(ct(Lt.title)?ln=Lt.title.toString():ct(Lt.label)&&(ln=Lt.label.toString())),ln}function dn(Lt,ln){vn?Ue.useLayoutEffect(Lt,ln):Ue.useEffect(Lt,ln)}function kt(Lt){var ln;return(ln=Lt.key)!==null&&ln!==void 0?ln:Lt.value}var bn=function(ln){ln.preventDefault(),ln.stopPropagation()},gn=function(ln){var Nr=ln.id,Er=ln.prefixCls,Yt=ln.values,Nn=ln.open,Xr=ln.searchValue,Ln=ln.autoClearSearchValue,Ve=ln.inputRef,Rr=ln.placeholder,kr=ln.disabled,jn=ln.mode,hi=ln.showSearch,jr=ln.autoFocus,ar=ln.autoComplete,Qr=ln.activeDescendantId,un=ln.tabIndex,Ti=ln.removeIcon,eo=ln.maxTagCount,mn=ln.maxTagTextLength,wi=ln.maxTagPlaceholder,Di=wi===void 0?function(yn){return"+ ".concat(yn.length," ...")}:wi,gi=ln.tagRender,ki=ln.onToggleOpen,zi=ln.onRemove,ro=ln.onInputChange,Gi=ln.onInputPaste,Fi=ln.onInputKeyDown,io=ln.onInputMouseDown,qn=ln.onInputCompositionStart,Ui=ln.onInputCompositionEnd,lr=ln.onInputBlur,vi=Ue.useRef(null),Vi=(0,Ue.useState)(0),Oi=(0,je.Z)(Vi,2),fo=Oi[0],co=Oi[1],ji=(0,Ue.useState)(!1),zo=(0,je.Z)(ji,2),Fn=zo[0],mr=zo[1],wn="".concat(Er,"-selection"),it=Nn||jn==="multiple"&&Ln===!1||jn==="tags"?Xr:"",Or=jn==="tags"||jn==="multiple"&&Ln===!1||hi&&(Nn||Fn);dn(function(){co(vi.current.scrollWidth)},[it]);var Wr=function(xn,Hn,pn,tr,Qn){return Ue.createElement("span",{title:qt(xn),className:Je()("".concat(wn,"-item"),(0,ke.Z)({},"".concat(wn,"-item-disabled"),pn))},Ue.createElement("span",{className:"".concat(wn,"-item-content")},Hn),tr&&Ue.createElement(he,{className:"".concat(wn,"-item-remove"),onMouseDown:bn,onClick:Qn,customizeIcon:Ti},"\xD7"))},pi=function(xn,Hn,pn,tr,Qn,an){var hr=function(Ai){bn(Ai),ki(!Nn)};return Ue.createElement("span",{onMouseDown:hr},gi({label:Hn,value:xn,disabled:pn,closable:tr,onClose:Qn,isMaxTag:!!an}))},di=function(xn){var Hn=xn.disabled,pn=xn.label,tr=xn.value,Qn=!kr&&!Hn,an=pn;if(typeof mn=="number"&&(typeof pn=="string"||typeof pn=="number")){var hr=String(an);hr.length>mn&&(an="".concat(hr.slice(0,mn),"..."))}var Vr=function(si){si&&si.stopPropagation(),zi(xn)};return typeof gi=="function"?pi(tr,an,Hn,Qn,Vr):Wr(xn,an,Hn,Qn,Vr)},ai=function(xn){if(!Yt.length)return null;var Hn=typeof Di=="function"?Di(xn):Di;return typeof gi=="function"?pi(void 0,Hn,!1,!1,void 0,!0):Wr({title:Hn},Hn,!1)},gr=Ue.createElement("div",{className:"".concat(wn,"-search"),style:{width:fo},onFocus:function(){mr(!0)},onBlur:function(){mr(!1)}},Ue.createElement(_t,{ref:Ve,open:Nn,prefixCls:Er,id:Nr,inputElement:null,disabled:kr,autoFocus:jr,autoComplete:ar,editable:Or,activeDescendantId:Qr,value:it,onKeyDown:Fi,onMouseDown:io,onChange:ro,onPaste:Gi,onCompositionStart:qn,onCompositionEnd:Ui,onBlur:lr,tabIndex:un,attrs:(0,$e.Z)(ln,!0)}),Ue.createElement("span",{ref:vi,className:"".concat(wn,"-search-mirror"),"aria-hidden":!0},it,"\xA0")),pt=Ue.createElement(at.Z,{prefixCls:"".concat(wn,"-overflow"),data:Yt,renderItem:di,renderRest:ai,suffix:gr,itemKey:kt,maxCount:eo});return Ue.createElement("span",{className:"".concat(wn,"-wrap")},pt,!Yt.length&&!it&&Ue.createElement("span",{className:"".concat(wn,"-placeholder")},Rr))},Zn=gn,Gt=function(ln){var Nr=ln.inputElement,Er=ln.prefixCls,Yt=ln.id,Nn=ln.inputRef,Xr=ln.disabled,Ln=ln.autoFocus,Ve=ln.autoComplete,Rr=ln.activeDescendantId,kr=ln.mode,jn=ln.open,hi=ln.values,jr=ln.placeholder,ar=ln.tabIndex,Qr=ln.showSearch,un=ln.searchValue,Ti=ln.activeValue,eo=ln.maxLength,mn=ln.onInputKeyDown,wi=ln.onInputMouseDown,Di=ln.onInputChange,gi=ln.onInputPaste,ki=ln.onInputCompositionStart,zi=ln.onInputCompositionEnd,ro=ln.onInputBlur,Gi=ln.title,Fi=Ue.useState(!1),io=(0,je.Z)(Fi,2),qn=io[0],Ui=io[1],lr=kr==="combobox",vi=lr||Qr,Vi=hi[0],Oi=un||"";lr&&Ti&&!qn&&(Oi=Ti),Ue.useEffect(function(){lr&&Ui(!1)},[lr,Ti]);var fo=kr!=="combobox"&&!jn&&!Qr?!1:!!Oi,co=Gi===void 0?qt(Vi):Gi,ji=Ue.useMemo(function(){return Vi?null:Ue.createElement("span",{className:"".concat(Er,"-selection-placeholder"),style:fo?{visibility:"hidden"}:void 0},jr)},[Vi,fo,jr,Er]);return Ue.createElement("span",{className:"".concat(Er,"-selection-wrap")},Ue.createElement("span",{className:"".concat(Er,"-selection-search")},Ue.createElement(_t,{ref:Nn,prefixCls:Er,id:Yt,open:jn,inputElement:Nr,disabled:Xr,autoFocus:Ln,autoComplete:Ve,editable:vi,activeDescendantId:Rr,value:Oi,onKeyDown:mn,onMouseDown:wi,onChange:function(Fn){Ui(!0),Di(Fn)},onPaste:gi,onCompositionStart:ki,onCompositionEnd:zi,onBlur:ro,tabIndex:ar,attrs:(0,$e.Z)(ln,!0),maxLength:lr?eo:void 0})),!lr&&Vi?Ue.createElement("span",{className:"".concat(Er,"-selection-item"),title:co,style:fo?{visibility:"hidden"}:void 0},Vi.label):null,ji)},Rt=Gt,tn=function(ln,Nr){var Er=(0,Ue.useRef)(null),Yt=(0,Ue.useRef)(!1),Nn=ln.prefixCls,Xr=ln.open,Ln=ln.mode,Ve=ln.showSearch,Rr=ln.tokenWithEnter,kr=ln.disabled,jn=ln.prefix,hi=ln.autoClearSearchValue,jr=ln.onSearch,ar=ln.onSearchSubmit,Qr=ln.onToggleOpen,un=ln.onInputKeyDown,Ti=ln.onInputBlur,eo=ln.domRef;Ue.useImperativeHandle(Nr,function(){return{focus:function(co){Er.current.focus(co)},blur:function(){Er.current.blur()}}});var mn=Ae(0),wi=(0,je.Z)(mn,2),Di=wi[0],gi=wi[1],ki=function(co){var ji=co.which,zo=Er.current instanceof HTMLTextAreaElement;!zo&&Xr&&(ji===Ye.Z.UP||ji===Ye.Z.DOWN)&&co.preventDefault(),un&&un(co),ji===Ye.Z.ENTER&&Ln==="tags"&&!Yt.current&&!Xr&&(ar==null||ar(co.target.value)),!(zo&&!Xr&&~[Ye.Z.UP,Ye.Z.DOWN,Ye.Z.LEFT,Ye.Z.RIGHT].indexOf(ji))&&rt(ji)&&Qr(!0)},zi=function(){gi(!0)},ro=(0,Ue.useRef)(null),Gi=function(co){jr(co,!0,Yt.current)!==!1&&Qr(!0)},Fi=function(){Yt.current=!0},io=function(co){Yt.current=!1,Ln!=="combobox"&&Gi(co.target.value)},qn=function(co){var ji=co.target.value;if(Rr&&ro.current&&/[\r\n]/.test(ro.current)){var zo=ro.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ji=ji.replace(zo,ro.current)}ro.current=null,Gi(ji)},Ui=function(co){var ji=co.clipboardData,zo=ji==null?void 0:ji.getData("text");ro.current=zo||""},lr=function(co){var ji=co.target;if(ji!==Er.current){var zo=document.body.style.msTouchAction!==void 0;zo?setTimeout(function(){Er.current.focus()}):Er.current.focus()}},vi=function(co){var ji=Di();co.target!==Er.current&&!ji&&!(Ln==="combobox"&&kr)&&co.preventDefault(),(Ln!=="combobox"&&(!Ve||!ji)||!Xr)&&(Xr&&hi!==!1&&jr("",!0,!1),Qr())},Vi={inputRef:Er,onInputKeyDown:ki,onInputMouseDown:zi,onInputChange:qn,onInputPaste:Ui,onInputCompositionStart:Fi,onInputCompositionEnd:io,onInputBlur:Ti},Oi=Ln==="multiple"||Ln==="tags"?Ue.createElement(Zn,(0,oe.Z)({},ln,Vi)):Ue.createElement(Rt,(0,oe.Z)({},ln,Vi));return Ue.createElement("div",{ref:eo,className:"".concat(Nn,"-selector"),onClick:lr,onMouseDown:vi},jn&&Ue.createElement("div",{className:"".concat(Nn,"-prefix")},jn),Oi)},zn=Ue.forwardRef(tn),Yn=zn,nt=ae(65030),Be=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Re=function(ln){var Nr=ln===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Nr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Nr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Nr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Nr,adjustY:1},htmlRegion:"scroll"}}},Ze=function(ln,Nr){var Er=ln.prefixCls,Yt=ln.disabled,Nn=ln.visible,Xr=ln.children,Ln=ln.popupElement,Ve=ln.animation,Rr=ln.transitionName,kr=ln.dropdownStyle,jn=ln.dropdownClassName,hi=ln.direction,jr=hi===void 0?"ltr":hi,ar=ln.placement,Qr=ln.builtinPlacements,un=ln.dropdownMatchSelectWidth,Ti=ln.dropdownRender,eo=ln.dropdownAlign,mn=ln.getPopupContainer,wi=ln.empty,Di=ln.getTriggerDOMNode,gi=ln.onPopupVisibleChange,ki=ln.onPopupMouseEnter,zi=(0,Te.Z)(ln,Be),ro="".concat(Er,"-dropdown"),Gi=Ln;Ti&&(Gi=Ti(Ln));var Fi=Ue.useMemo(function(){return Qr||Re(un)},[Qr,un]),io=Ve?"".concat(ro,"-").concat(Ve):Rr,qn=typeof un=="number",Ui=Ue.useMemo(function(){return qn?null:un===!1?"minWidth":"width"},[un,qn]),lr=kr;qn&&(lr=(0,Ie.Z)((0,Ie.Z)({},lr),{},{width:un}));var vi=Ue.useRef(null);return Ue.useImperativeHandle(Nr,function(){return{getPopupElement:function(){var Oi;return(Oi=vi.current)===null||Oi===void 0?void 0:Oi.popupElement}}}),Ue.createElement(nt.Z,(0,oe.Z)({},zi,{showAction:gi?["click"]:[],hideAction:gi?["click"]:[],popupPlacement:ar||(jr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fi,prefixCls:ro,popupTransitionName:io,popup:Ue.createElement("div",{onMouseEnter:ki},Gi),ref:vi,stretch:Ui,popupAlign:eo,popupVisible:Nn,getPopupContainer:mn,popupClassName:Je()(jn,(0,ke.Z)({},"".concat(ro,"-empty"),wi)),popupStyle:lr,getTriggerDOMNode:Di,onPopupVisibleChange:gi}),Xr)},st=Ue.forwardRef(Ze),Fe=st,St=ae(57879);function hn(Lt,ln){var Nr=Lt.key,Er;return"value"in Lt&&(Er=Lt.value),Nr!=null?Nr:Er!==void 0?Er:"rc-index-key-".concat(ln)}function On(Lt){return typeof Lt!="undefined"&&!Number.isNaN(Lt)}function or(Lt,ln){var Nr=Lt||{},Er=Nr.label,Yt=Nr.value,Nn=Nr.options,Xr=Nr.groupLabel,Ln=Er||(ln?"children":"label");return{label:Ln,value:Yt||"value",options:Nn||"options",groupLabel:Xr||Ln}}function jt(Lt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nr=ln.fieldNames,Er=ln.childrenAsData,Yt=[],Nn=or(Nr,!1),Xr=Nn.label,Ln=Nn.value,Ve=Nn.options,Rr=Nn.groupLabel;function kr(jn,hi){Array.isArray(jn)&&jn.forEach(function(jr){if(hi||!(Ve in jr)){var ar=jr[Ln];Yt.push({key:hn(jr,Yt.length),groupOption:hi,data:jr,label:jr[Xr],value:ar})}else{var Qr=jr[Rr];Qr===void 0&&Er&&(Qr=jr.label),Yt.push({key:hn(jr,Yt.length),group:!0,data:jr,label:Qr}),kr(jr[Ve],!0)}})}return kr(Lt,!1),Yt}function Ut(Lt){var ln=(0,Ie.Z)({},Lt);return"props"in ln||Object.defineProperty(ln,"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`."),ln}}),ln}var Qt=function(ln,Nr,Er){if(!Nr||!Nr.length)return null;var Yt=!1,Nn=function Ln(Ve,Rr){var kr=(0,St.Z)(Rr),jn=kr[0],hi=kr.slice(1);if(!jn)return[Ve];var jr=Ve.split(jn);return Yt=Yt||jr.length>1,jr.reduce(function(ar,Qr){return[].concat((0,Ce.Z)(ar),(0,Ce.Z)(Ln(Qr,hi)))},[]).filter(Boolean)},Xr=Nn(ln,Nr);return Yt?typeof Er!="undefined"?Xr.slice(0,Er):Xr:null},En=Ue.createContext(null),Mn=En;function Tn(Lt){var ln=Lt.visible,Nr=Lt.values;if(!ln)return null;var Er=50;return Ue.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Nr.slice(0,Er).map(function(Yt){var Nn=Yt.label,Xr=Yt.value;return["number","string"].includes((0,Ge.Z)(Nn))?Nn:Xr}).join(", ")),Nr.length>Er?", ...":null)}var Ht=["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"],Vn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Xt=function(ln){return ln==="tags"||ln==="multiple"},nn=Ue.forwardRef(function(Lt,ln){var Nr,Er=Lt.id,Yt=Lt.prefixCls,Nn=Lt.className,Xr=Lt.showSearch,Ln=Lt.tagRender,Ve=Lt.direction,Rr=Lt.omitDomProps,kr=Lt.displayValues,jn=Lt.onDisplayValuesChange,hi=Lt.emptyOptions,jr=Lt.notFoundContent,ar=jr===void 0?"Not Found":jr,Qr=Lt.onClear,un=Lt.mode,Ti=Lt.disabled,eo=Lt.loading,mn=Lt.getInputElement,wi=Lt.getRawInputElement,Di=Lt.open,gi=Lt.defaultOpen,ki=Lt.onDropdownVisibleChange,zi=Lt.activeValue,ro=Lt.onActiveValueChange,Gi=Lt.activeDescendantId,Fi=Lt.searchValue,io=Lt.autoClearSearchValue,qn=Lt.onSearch,Ui=Lt.onSearchSplit,lr=Lt.tokenSeparators,vi=Lt.allowClear,Vi=Lt.prefix,Oi=Lt.suffixIcon,fo=Lt.clearIcon,co=Lt.OptionList,ji=Lt.animation,zo=Lt.transitionName,Fn=Lt.dropdownStyle,mr=Lt.dropdownClassName,wn=Lt.dropdownMatchSelectWidth,it=Lt.dropdownRender,Or=Lt.dropdownAlign,Wr=Lt.placement,pi=Lt.builtinPlacements,di=Lt.getPopupContainer,ai=Lt.showAction,gr=ai===void 0?[]:ai,pt=Lt.onFocus,yn=Lt.onBlur,xn=Lt.onKeyUp,Hn=Lt.onKeyDown,pn=Lt.onMouseDown,tr=(0,Te.Z)(Lt,Ht),Qn=Xt(un),an=(Xr!==void 0?Xr:Qn)||un==="combobox",hr=(0,Ie.Z)({},tr);Vn.forEach(function(ma){delete hr[ma]}),Rr==null||Rr.forEach(function(ma){delete hr[ma]});var Vr=Ue.useState(!1),Ai=(0,je.Z)(Vr,2),si=Ai[0],Si=Ai[1];Ue.useEffect(function(){Si((0,Oe.Z)())},[]);var Ii=Ue.useRef(null),Bi=Ue.useRef(null),ao=Ue.useRef(null),wo=Ue.useRef(null),Ho=Ue.useRef(null),An=Ue.useRef(!1),ko=be(),po=(0,je.Z)(ko,3),Zi=po[0],Mi=po[1],Oo=po[2];Ue.useImperativeHandle(ln,function(){var ma,Vo;return{focus:(ma=wo.current)===null||ma===void 0?void 0:ma.focus,blur:(Vo=wo.current)===null||Vo===void 0?void 0:Vo.blur,scrollTo:function(Ri){var ps;return(ps=Ho.current)===null||ps===void 0?void 0:ps.scrollTo(Ri)},nativeElement:Ii.current||Bi.current}});var Wo=Ue.useMemo(function(){var ma;if(un!=="combobox")return Fi;var Vo=(ma=kr[0])===null||ma===void 0?void 0:ma.value;return typeof Vo=="string"||typeof Vo=="number"?String(Vo):""},[Fi,un,kr]),Wn=un==="combobox"&&typeof mn=="function"&&mn()||null,vo=typeof wi=="function"&&wi(),ia=(0,te.x1)(Bi,vo==null||(Nr=vo.props)===null||Nr===void 0?void 0:Nr.ref),za=Ue.useState(!1),hs=(0,je.Z)(za,2),il=hs[0],Ls=hs[1];(0,It.Z)(function(){Ls(!0)},[]);var to=(0,lt.Z)(!1,{defaultValue:gi,value:Di}),Ra=(0,je.Z)(to,2),Ma=Ra[0],ts=Ra[1],Oa=il?Ma:!1,_a=!ar&&hi;(Ti||_a&&Oa&&un==="combobox")&&(Oa=!1);var fi=_a?!1:Oa,Yi=Ue.useCallback(function(ma){var Vo=ma!==void 0?ma:!Oa;Ti||(ts(Vo),Oa!==Vo&&(ki==null||ki(Vo)))},[Ti,Oa,ts,ki]),ho=Ue.useMemo(function(){return(lr||[]).some(function(ma){return[`
`,`\r
`].includes(ma)})},[lr]),Io=Ue.useContext(Mn)||{},Do=Io.maxCount,sa=Io.rawValues,Xi=function(Vo,cs,Ri){if(!(Qn&&On(Do)&&(sa==null?void 0:sa.size)>=Do)){var ps=!0,en=Vo;ro==null||ro(null);var Ir=Qt(Vo,lr,On(Do)?Do-sa.size:void 0),Tl=Ri?null:Ir;return un!=="combobox"&&Tl&&(en="",Ui==null||Ui(Tl),Yi(!1),ps=!1),qn&&Wo!==en&&qn(en,{source:cs?"typing":"effect"}),ps}},Ss=function(Vo){!Vo||!Vo.trim()||qn(Vo,{source:"submit"})};Ue.useEffect(function(){!Oa&&!Qn&&un!=="combobox"&&Xi("",!1,!1)},[Oa]),Ue.useEffect(function(){Ma&&Ti&&ts(!1),Ti&&!An.current&&Mi(!1)},[Ti]);var pa=Ae(),Ga=(0,je.Z)(pa,2),Fo=Ga[0],ga=Ga[1],Hs=Ue.useRef(!1),da=function(Vo){var cs=Fo(),Ri=Vo.key,ps=Ri==="Enter";if(ps&&(un!=="combobox"&&Vo.preventDefault(),Oa||Yi(!0)),ga(!!Wo),Ri==="Backspace"&&!cs&&Qn&&!Wo&&kr.length){for(var en=(0,Ce.Z)(kr),Ir=null,Tl=en.length-1;Tl>=0;Tl-=1){var Su=en[Tl];if(!Su.disabled){en.splice(Tl,1),Ir=Su;break}}Ir&&jn(en,{type:"remove",values:[Ir]})}for(var ja=arguments.length,rs=new Array(ja>1?ja-1:0),Al=1;Al<ja;Al++)rs[Al-1]=arguments[Al];if(Oa&&(!ps||!Hs.current)){var Fl;ps&&(Hs.current=!0),(Fl=Ho.current)===null||Fl===void 0||Fl.onKeyDown.apply(Fl,[Vo].concat(rs))}Hn==null||Hn.apply(void 0,[Vo].concat(rs))},Rs=function(Vo){for(var cs=arguments.length,Ri=new Array(cs>1?cs-1:0),ps=1;ps<cs;ps++)Ri[ps-1]=arguments[ps];if(Oa){var en;(en=Ho.current)===null||en===void 0||en.onKeyUp.apply(en,[Vo].concat(Ri))}Vo.key==="Enter"&&(Hs.current=!1),xn==null||xn.apply(void 0,[Vo].concat(Ri))},ol=function(Vo){var cs=kr.filter(function(Ri){return Ri!==Vo});jn(cs,{type:"remove",values:[Vo]})},Xs=function(){Hs.current=!1},$a=Ue.useRef(!1),Kl=function(){Mi(!0),Ti||(pt&&!$a.current&&pt.apply(void 0,arguments),gr.includes("focus")&&Yi(!0)),$a.current=!0},nc=function(){An.current=!0,Mi(!1,function(){$a.current=!1,An.current=!1,Yi(!1)}),!Ti&&(Wo&&(un==="tags"?qn(Wo,{source:"submit"}):un==="multiple"&&qn("",{source:"blur"})),yn&&yn.apply(void 0,arguments))},es=[];Ue.useEffect(function(){return function(){es.forEach(function(ma){return clearTimeout(ma)}),es.splice(0,es.length)}},[]);var Pl=function(Vo){var cs,Ri=Vo.target,ps=(cs=ao.current)===null||cs===void 0?void 0:cs.getPopupElement();if(ps&&ps.contains(Ri)){var en=setTimeout(function(){var ja=es.indexOf(en);if(ja!==-1&&es.splice(ja,1),Oo(),!si&&!ps.contains(document.activeElement)){var rs;(rs=wo.current)===null||rs===void 0||rs.focus()}});es.push(en)}for(var Ir=arguments.length,Tl=new Array(Ir>1?Ir-1:0),Su=1;Su<Ir;Su++)Tl[Su-1]=arguments[Su];pn==null||pn.apply(void 0,[Vo].concat(Tl))},ll=Ue.useState({}),ul=(0,je.Z)(ll,2),rc=ul[1];function yc(){rc({})}var ns;vo&&(ns=function(Vo){Yi(Vo)}),De(function(){var ma;return[Ii.current,(ma=ao.current)===null||ma===void 0?void 0:ma.getPopupElement()]},fi,Yi,!!vo);var ic=Ue.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},Lt),{},{notFoundContent:ar,open:Oa,triggerOpen:fi,id:Er,showSearch:an,multiple:Qn,toggleOpen:Yi})},[Lt,ar,fi,Oa,Er,an,Qn,Yi]),oc=!!Oi||eo,Mu;oc&&(Mu=Ue.createElement(he,{className:Je()("".concat(Yt,"-arrow"),(0,ke.Z)({},"".concat(Yt,"-arrow-loading"),eo)),customizeIcon:Oi,customizeIconProps:{loading:eo,searchValue:Wo,open:Oa,focused:Zi,showSearch:an}}));var Ou=function(){var Vo;Qr==null||Qr(),(Vo=wo.current)===null||Vo===void 0||Vo.focus(),jn([],{type:"clear",values:kr}),Xi("",!1,!1)},Ms=ue(Yt,Ou,kr,vi,fo,Ti,Wo,un),Qs=Ms.allowClear,fs=Ms.clearIcon,ks=Ue.createElement(co,{ref:Ho}),yu=Je()(Yt,Nn,(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(Yt,"-focused"),Zi),"".concat(Yt,"-multiple"),Qn),"".concat(Yt,"-single"),!Qn),"".concat(Yt,"-allow-clear"),vi),"".concat(Yt,"-show-arrow"),oc),"".concat(Yt,"-disabled"),Ti),"".concat(Yt,"-loading"),eo),"".concat(Yt,"-open"),Oa),"".concat(Yt,"-customize-input"),Wn),"".concat(Yt,"-show-search"),an)),zs=Ue.createElement(Fe,{ref:ao,disabled:Ti,prefixCls:Yt,visible:fi,popupElement:ks,animation:ji,transitionName:zo,dropdownStyle:Fn,dropdownClassName:mr,direction:Ve,dropdownMatchSelectWidth:wn,dropdownRender:it,dropdownAlign:Or,placement:Wr,builtinPlacements:pi,getPopupContainer:di,empty:hi,getTriggerDOMNode:function(Vo){return Bi.current||Vo},onPopupVisibleChange:ns,onPopupMouseEnter:yc},vo?Ue.cloneElement(vo,{ref:ia}):Ue.createElement(Yn,(0,oe.Z)({},Lt,{domRef:Bi,prefixCls:Yt,inputElement:Wn,ref:wo,id:Er,prefix:Vi,showSearch:an,autoClearSearchValue:io,mode:un,activeDescendantId:Gi,tagRender:Ln,values:kr,open:Oa,onToggleOpen:Yi,activeValue:zi,searchValue:Wo,onSearch:Xi,onSearchSubmit:Ss,onRemove:ol,tokenWithEnter:ho,onInputBlur:Xs}))),wa;return vo?wa=zs:wa=Ue.createElement("div",(0,oe.Z)({className:yu},hr,{ref:Ii,onMouseDown:Pl,onKeyDown:da,onKeyUp:Rs,onFocus:Kl,onBlur:nc}),Ue.createElement(Tn,{visible:Zi&&!Oa,values:kr}),zs,Mu,Qs&&fs),Ue.createElement(fe.Provider,{value:ic},wa)}),fn=nn,Gn=function(){return null};Gn.isSelectOptGroup=!0;var cn=Gn,Et=function(){return null};Et.isSelectOption=!0;var Jn=Et,ir=ae(80547),Wt=ae(2738),wr=ae(6790);function ei(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Fr=["disabled","title","children","style","className"];function Dn(Lt){return typeof Lt=="string"||typeof Lt=="number"}var ii=function(ln,Nr){var Er=me(),Yt=Er.prefixCls,Nn=Er.id,Xr=Er.open,Ln=Er.multiple,Ve=Er.mode,Rr=Er.searchValue,kr=Er.toggleOpen,jn=Er.notFoundContent,hi=Er.onPopupScroll,jr=Ue.useContext(Mn),ar=jr.maxCount,Qr=jr.flattenOptions,un=jr.onActiveValue,Ti=jr.defaultActiveFirstOption,eo=jr.onSelect,mn=jr.menuItemSelectedIcon,wi=jr.rawValues,Di=jr.fieldNames,gi=jr.virtual,ki=jr.direction,zi=jr.listHeight,ro=jr.listItemHeight,Gi=jr.optionRender,Fi="".concat(Yt,"-item"),io=(0,ir.Z)(function(){return Qr},[Xr,Qr],function(ai,gr){return gr[0]&&ai[1]!==gr[1]}),qn=Ue.useRef(null),Ui=Ue.useMemo(function(){return Ln&&On(ar)&&(wi==null?void 0:wi.size)>=ar},[Ln,ar,wi==null?void 0:wi.size]),lr=function(gr){gr.preventDefault()},vi=function(gr){var pt;(pt=qn.current)===null||pt===void 0||pt.scrollTo(typeof gr=="number"?{index:gr}:gr)},Vi=Ue.useCallback(function(ai){return Ve==="combobox"?!1:wi.has(ai)},[Ve,(0,Ce.Z)(wi).toString(),wi.size]),Oi=function(gr){for(var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,yn=io.length,xn=0;xn<yn;xn+=1){var Hn=(gr+xn*pt+yn)%yn,pn=io[Hn]||{},tr=pn.group,Qn=pn.data;if(!tr&&!(Qn!=null&&Qn.disabled)&&(Vi(Qn.value)||!Ui))return Hn}return-1},fo=Ue.useState(function(){return Oi(0)}),co=(0,je.Z)(fo,2),ji=co[0],zo=co[1],Fn=function(gr){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;zo(gr);var yn={source:pt?"keyboard":"mouse"},xn=io[gr];if(!xn){un(null,-1,yn);return}un(xn.value,gr,yn)};(0,Ue.useEffect)(function(){Fn(Ti!==!1?Oi(0):-1)},[io.length,Rr]);var mr=Ue.useCallback(function(ai){return Ve==="combobox"?String(ai).toLowerCase()===Rr.toLowerCase():wi.has(ai)},[Ve,Rr,(0,Ce.Z)(wi).toString(),wi.size]);(0,Ue.useEffect)(function(){var ai=setTimeout(function(){if(!Ln&&Xr&&wi.size===1){var pt=Array.from(wi)[0],yn=io.findIndex(function(xn){var Hn=xn.data;return Rr?String(Hn.value).startsWith(Rr):Hn.value===pt});yn!==-1&&(Fn(yn),vi(yn))}});if(Xr){var gr;(gr=qn.current)===null||gr===void 0||gr.scrollTo(void 0)}return function(){return clearTimeout(ai)}},[Xr,Rr]);var wn=function(gr){gr!==void 0&&eo(gr,{selected:!wi.has(gr)}),Ln||kr(!1)};if(Ue.useImperativeHandle(Nr,function(){return{onKeyDown:function(gr){var pt=gr.which,yn=gr.ctrlKey;switch(pt){case Ye.Z.N:case Ye.Z.P:case Ye.Z.UP:case Ye.Z.DOWN:{var xn=0;if(pt===Ye.Z.UP?xn=-1:pt===Ye.Z.DOWN?xn=1:ei()&&yn&&(pt===Ye.Z.N?xn=1:pt===Ye.Z.P&&(xn=-1)),xn!==0){var Hn=Oi(ji+xn,xn);vi(Hn),Fn(Hn,!0)}break}case Ye.Z.TAB:case Ye.Z.ENTER:{var pn,tr=io[ji];tr&&!(tr!=null&&(pn=tr.data)!==null&&pn!==void 0&&pn.disabled)&&!Ui?wn(tr.value):wn(void 0),Xr&&gr.preventDefault();break}case Ye.Z.ESC:kr(!1),Xr&&gr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gr){vi(gr)}}}),io.length===0)return Ue.createElement("div",{role:"listbox",id:"".concat(Nn,"_list"),className:"".concat(Fi,"-empty"),onMouseDown:lr},jn);var it=Object.keys(Di).map(function(ai){return Di[ai]}),Or=function(gr){return gr.label};function Wr(ai,gr){var pt=ai.group;return{role:pt?"presentation":"option",id:"".concat(Nn,"_list_").concat(gr)}}var pi=function(gr){var pt=io[gr];if(!pt)return null;var yn=pt.data||{},xn=yn.value,Hn=pt.group,pn=(0,$e.Z)(yn,!0),tr=Or(pt);return pt?Ue.createElement("div",(0,oe.Z)({"aria-label":typeof tr=="string"&&!Hn?tr:null},pn,{key:gr},Wr(pt,gr),{"aria-selected":mr(xn)}),xn):null},di={role:"listbox",id:"".concat(Nn,"_list")};return Ue.createElement(Ue.Fragment,null,gi&&Ue.createElement("div",(0,oe.Z)({},di,{style:{height:0,width:0,overflow:"hidden"}}),pi(ji-1),pi(ji),pi(ji+1)),Ue.createElement(wr.Z,{itemKey:"key",ref:qn,data:io,height:zi,itemHeight:ro,fullHeight:!1,onMouseDown:lr,onScroll:hi,virtual:gi,direction:ki,innerProps:gi?null:di},function(ai,gr){var pt=ai.group,yn=ai.groupOption,xn=ai.data,Hn=ai.label,pn=ai.value,tr=xn.key;if(pt){var Qn,an=(Qn=xn.title)!==null&&Qn!==void 0?Qn:Dn(Hn)?Hn.toString():void 0;return Ue.createElement("div",{className:Je()(Fi,"".concat(Fi,"-group"),xn.className),title:an},Hn!==void 0?Hn:tr)}var hr=xn.disabled,Vr=xn.title,Ai=xn.children,si=xn.style,Si=xn.className,Ii=(0,Te.Z)(xn,Fr),Bi=(0,Wt.Z)(Ii,it),ao=Vi(pn),wo=hr||!ao&&Ui,Ho="".concat(Fi,"-option"),An=Je()(Fi,Ho,Si,(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(Ho,"-grouped"),yn),"".concat(Ho,"-active"),ji===gr&&!wo),"".concat(Ho,"-disabled"),wo),"".concat(Ho,"-selected"),ao)),ko=Or(ai),po=!mn||typeof mn=="function"||ao,Zi=typeof ko=="number"?ko:ko||pn,Mi=Dn(Zi)?Zi.toString():void 0;return Vr!==void 0&&(Mi=Vr),Ue.createElement("div",(0,oe.Z)({},(0,$e.Z)(Bi),gi?{}:Wr(ai,gr),{"aria-selected":mr(pn),className:An,title:Mi,onMouseMove:function(){ji===gr||wo||Fn(gr)},onClick:function(){wo||wn(pn)},style:si}),Ue.createElement("div",{className:"".concat(Ho,"-content")},typeof Gi=="function"?Gi(ai,{index:gr}):Zi),Ue.isValidElement(mn)||ao,po&&Ue.createElement(he,{className:"".concat(Fi,"-option-state"),customizeIcon:mn,customizeIconProps:{value:pn,disabled:wo,isSelected:ao}},ao?"\u2713":null))}))},Kr=Ue.forwardRef(ii),cr=Kr,Dr=function(Lt,ln){var Nr=Ue.useRef({values:new Map,options:new Map}),Er=Ue.useMemo(function(){var Nn=Nr.current,Xr=Nn.values,Ln=Nn.options,Ve=Lt.map(function(jn){if(jn.label===void 0){var hi;return(0,Ie.Z)((0,Ie.Z)({},jn),{},{label:(hi=Xr.get(jn.value))===null||hi===void 0?void 0:hi.label})}return jn}),Rr=new Map,kr=new Map;return Ve.forEach(function(jn){Rr.set(jn.value,jn),kr.set(jn.value,ln.get(jn.value)||Ln.get(jn.value))}),Nr.current.values=Rr,Nr.current.options=kr,Ve},[Lt,ln]),Yt=Ue.useCallback(function(Nn){return ln.get(Nn)||Nr.current.options.get(Nn)},[ln]);return[Er,Yt]};function ri(Lt,ln){return Jt(Lt).join("").toUpperCase().includes(ln)}var _e=function(Lt,ln,Nr,Er,Yt){return Ue.useMemo(function(){if(!Nr||Er===!1)return Lt;var Nn=ln.options,Xr=ln.label,Ln=ln.value,Ve=[],Rr=typeof Er=="function",kr=Nr.toUpperCase(),jn=Rr?Er:function(jr,ar){return Yt?ri(ar[Yt],kr):ar[Nn]?ri(ar[Xr!=="children"?Xr:"label"],kr):ri(ar[Ln],kr)},hi=Rr?function(jr){return Ut(jr)}:function(jr){return jr};return Lt.forEach(function(jr){if(jr[Nn]){var ar=jn(Nr,hi(jr));if(ar)Ve.push(jr);else{var Qr=jr[Nn].filter(function(un){return jn(Nr,hi(un))});Qr.length&&Ve.push((0,Ie.Z)((0,Ie.Z)({},jr),{},(0,ke.Z)({},Nn,Qr)))}return}jn(Nr,hi(jr))&&Ve.push(jr)}),Ve},[Lt,Er,Yt,Nr,ln])},Mr=ae(6551),Tr=ae(11592),sr=["children","value"],_r=["children"];function Gr(Lt){var ln=Lt,Nr=ln.key,Er=ln.props,Yt=Er.children,Nn=Er.value,Xr=(0,Te.Z)(Er,sr);return(0,Ie.Z)({key:Nr,value:Nn!==void 0?Nn:Nr,children:Yt},Xr)}function br(Lt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Tr.Z)(Lt).map(function(Nr,Er){if(!Ue.isValidElement(Nr)||!Nr.type)return null;var Yt=Nr,Nn=Yt.type.isSelectOptGroup,Xr=Yt.key,Ln=Yt.props,Ve=Ln.children,Rr=(0,Te.Z)(Ln,_r);return ln||!Nn?Gr(Nr):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(Xr===null?Er:Xr,"__"),label:Xr},Rr),{},{options:br(Ve)})}).filter(function(Nr){return Nr})}var Ci=function(ln,Nr,Er,Yt,Nn){return Ue.useMemo(function(){var Xr=ln,Ln=!ln;Ln&&(Xr=br(Nr));var Ve=new Map,Rr=new Map,kr=function(jr,ar,Qr){Qr&&typeof Qr=="string"&&jr.set(ar[Qr],ar)},jn=function hi(jr){for(var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qr=0;Qr<jr.length;Qr+=1){var un=jr[Qr];!un[Er.options]||ar?(Ve.set(un[Er.value],un),kr(Rr,un,Er.label),kr(Rr,un,Yt),kr(Rr,un,Nn)):hi(un[Er.options],!0)}};return jn(Xr),{options:Xr,valueOptions:Ve,labelOptions:Rr}},[ln,Nr,Er,Yt,Nn])},Rn=Ci;function Pn(Lt){var ln=Ue.useRef();ln.current=Lt;var Nr=Ue.useCallback(function(){return ln.current.apply(ln,arguments)},[]);return Nr}function Sn(Lt){var ln=Lt.mode,Nr=Lt.options,Er=Lt.children,Yt=Lt.backfill,Nn=Lt.allowClear,Xr=Lt.placeholder,Ln=Lt.getInputElement,Ve=Lt.showSearch,Rr=Lt.onSearch,kr=Lt.defaultOpen,jn=Lt.autoFocus,hi=Lt.labelInValue,jr=Lt.value,ar=Lt.inputValue,Qr=Lt.optionLabelProp,un=isMultiple(ln),Ti=Ve!==void 0?Ve:un||ln==="combobox",eo=Nr||convertChildrenToData(Er);if(warning(ln!=="tags"||eo.every(function(gi){return!gi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ln==="tags"||ln==="combobox"){var mn=eo.some(function(gi){return gi.options?gi.options.some(function(ki){return typeof("value"in ki?ki.value:ki.key)=="number"}):typeof("value"in gi?gi.value:gi.key)=="number"});warning(!mn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ln!=="combobox"||!Qr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ln==="combobox"||!Yt,"`backfill` only works with `combobox` mode."),warning(ln==="combobox"||!Ln,"`getInputElement` only work with `combobox` mode."),noteOnce(ln!=="combobox"||!Ln||!Nn||!Xr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Rr&&!Ti&&ln!=="combobox"&&ln!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!kr||jn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),jr!=null){var wi=toArray(jr);warning(!hi||wi.every(function(gi){return _typeof(gi)==="object"&&("key"in gi||"value"in gi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!un||Array.isArray(jr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Er){var Di=null;toNodeArray(Er).some(function(gi){if(!React.isValidElement(gi)||!gi.type)return!1;var ki=gi,zi=ki.type;if(zi.isSelectOption)return!1;if(zi.isSelectOptGroup){var ro=toNodeArray(gi.props.children).every(function(Gi){return!React.isValidElement(Gi)||!gi.type||Gi.type.isSelectOption?!0:(Di=Gi.type,!1)});return!ro}return Di=zi,!0}),Di&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Di.displayName||Di.name||Di,"`.")),warning(ar===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function $n(Lt,ln){if(Lt){var Nr=function Er(Yt){for(var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xr=0;Xr<Yt.length;Xr++){var Ln=Yt[Xr];if(Ln[ln==null?void 0:ln.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Nn&&Array.isArray(Ln[ln==null?void 0:ln.options])&&Er(Ln[ln==null?void 0:ln.options],!0))break}};Nr(Lt)}}var li=null,Yr=["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"],ci=["inputValue"];function _n(Lt){return!Lt||(0,Ge.Z)(Lt)!=="object"}var dr=Ue.forwardRef(function(Lt,ln){var Nr=Lt.id,Er=Lt.mode,Yt=Lt.prefixCls,Nn=Yt===void 0?"rc-select":Yt,Xr=Lt.backfill,Ln=Lt.fieldNames,Ve=Lt.inputValue,Rr=Lt.searchValue,kr=Lt.onSearch,jn=Lt.autoClearSearchValue,hi=jn===void 0?!0:jn,jr=Lt.onSelect,ar=Lt.onDeselect,Qr=Lt.dropdownMatchSelectWidth,un=Qr===void 0?!0:Qr,Ti=Lt.filterOption,eo=Lt.filterSort,mn=Lt.optionFilterProp,wi=Lt.optionLabelProp,Di=Lt.options,gi=Lt.optionRender,ki=Lt.children,zi=Lt.defaultActiveFirstOption,ro=Lt.menuItemSelectedIcon,Gi=Lt.virtual,Fi=Lt.direction,io=Lt.listHeight,qn=io===void 0?200:io,Ui=Lt.listItemHeight,lr=Ui===void 0?20:Ui,vi=Lt.labelRender,Vi=Lt.value,Oi=Lt.defaultValue,fo=Lt.labelInValue,co=Lt.onChange,ji=Lt.maxCount,zo=(0,Te.Z)(Lt,Yr),Fn=(0,Mr.ZP)(Nr),mr=Xt(Er),wn=!!(!Di&&ki),it=Ue.useMemo(function(){return Ti===void 0&&Er==="combobox"?!1:Ti},[Ti,Er]),Or=Ue.useMemo(function(){return or(Ln,wn)},[JSON.stringify(Ln),wn]),Wr=(0,lt.Z)("",{value:Rr!==void 0?Rr:Ve,postState:function(ho){return ho||""}}),pi=(0,je.Z)(Wr,2),di=pi[0],ai=pi[1],gr=Rn(Di,ki,Or,mn,wi),pt=gr.valueOptions,yn=gr.labelOptions,xn=gr.options,Hn=Ue.useCallback(function(Yi){var ho=Jt(Yi);return ho.map(function(Io){var Do,sa,Xi,Ss,pa;if(_n(Io))Do=Io;else{var Ga;Xi=Io.key,sa=Io.label,Do=(Ga=Io.value)!==null&&Ga!==void 0?Ga:Xi}var Fo=pt.get(Do);if(Fo){var ga;if(sa===void 0&&(sa=Fo==null?void 0:Fo[wi||Or.label]),Xi===void 0&&(Xi=(ga=Fo==null?void 0:Fo.key)!==null&&ga!==void 0?ga:Do),Ss=Fo==null?void 0:Fo.disabled,pa=Fo==null?void 0:Fo.title,0)var Hs}return{label:sa,value:Do,key:Xi,disabled:Ss,title:pa}})},[Or,wi,pt]),pn=(0,lt.Z)(Oi,{value:Vi}),tr=(0,je.Z)(pn,2),Qn=tr[0],an=tr[1],hr=Ue.useMemo(function(){var Yi,ho=mr&&Qn===null?[]:Qn,Io=Hn(ho);return Er==="combobox"&&ft((Yi=Io[0])===null||Yi===void 0?void 0:Yi.value)?[]:Io},[Qn,Hn,Er,mr]),Vr=Dr(hr,pt),Ai=(0,je.Z)(Vr,2),si=Ai[0],Si=Ai[1],Ii=Ue.useMemo(function(){if(!Er&&si.length===1){var Yi=si[0];if(Yi.value===null&&(Yi.label===null||Yi.label===void 0))return[]}return si.map(function(ho){var Io;return(0,Ie.Z)((0,Ie.Z)({},ho),{},{label:(Io=typeof vi=="function"?vi(ho):ho.label)!==null&&Io!==void 0?Io:ho.value})})},[Er,si,vi]),Bi=Ue.useMemo(function(){return new Set(si.map(function(Yi){return Yi.value}))},[si]);Ue.useEffect(function(){if(Er==="combobox"){var Yi,ho=(Yi=si[0])===null||Yi===void 0?void 0:Yi.value;ai(bt(ho)?String(ho):"")}},[si]);var ao=Pn(function(Yi,ho){var Io=ho!=null?ho:Yi;return(0,ke.Z)((0,ke.Z)({},Or.value,Yi),Or.label,Io)}),wo=Ue.useMemo(function(){if(Er!=="tags")return xn;var Yi=(0,Ce.Z)(xn),ho=function(Do){return pt.has(Do)};return(0,Ce.Z)(si).sort(function(Io,Do){return Io.value<Do.value?-1:1}).forEach(function(Io){var Do=Io.value;ho(Do)||Yi.push(ao(Do,Io.label))}),Yi},[ao,xn,pt,si,Er]),Ho=_e(wo,Or,di,it,mn),An=Ue.useMemo(function(){return Er!=="tags"||!di||Ho.some(function(Yi){return Yi[mn||"value"]===di})||Ho.some(function(Yi){return Yi[Or.value]===di})?Ho:[ao(di)].concat((0,Ce.Z)(Ho))},[ao,mn,Er,Ho,di,Or]),ko=function Yi(ho){var Io=(0,Ce.Z)(ho).sort(function(Do,sa){return eo(Do,sa,{searchValue:di})});return Io.map(function(Do){return Array.isArray(Do.options)?(0,Ie.Z)((0,Ie.Z)({},Do),{},{options:Do.options.length>0?Yi(Do.options):Do.options}):Do})},po=Ue.useMemo(function(){return eo?ko(An):An},[An,eo,di]),Zi=Ue.useMemo(function(){return jt(po,{fieldNames:Or,childrenAsData:wn})},[po,Or,wn]),Mi=function(ho){var Io=Hn(ho);if(an(Io),co&&(Io.length!==si.length||Io.some(function(Xi,Ss){var pa;return((pa=si[Ss])===null||pa===void 0?void 0:pa.value)!==(Xi==null?void 0:Xi.value)}))){var Do=fo?Io:Io.map(function(Xi){return Xi.value}),sa=Io.map(function(Xi){return Ut(Si(Xi.value))});co(mr?Do:Do[0],mr?sa:sa[0])}},Oo=Ue.useState(null),Wo=(0,je.Z)(Oo,2),Wn=Wo[0],vo=Wo[1],ia=Ue.useState(0),za=(0,je.Z)(ia,2),hs=za[0],il=za[1],Ls=zi!==void 0?zi:Er!=="combobox",to=Ue.useCallback(function(Yi,ho){var Io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Do=Io.source,sa=Do===void 0?"keyboard":Do;il(ho),Xr&&Er==="combobox"&&Yi!==null&&sa==="keyboard"&&vo(String(Yi))},[Xr,Er]),Ra=function(ho,Io,Do){var sa=function(){var ol,Xs=Si(ho);return[fo?{label:Xs==null?void 0:Xs[Or.label],value:ho,key:(ol=Xs==null?void 0:Xs.key)!==null&&ol!==void 0?ol:ho}:ho,Ut(Xs)]};if(Io&&jr){var Xi=sa(),Ss=(0,je.Z)(Xi,2),pa=Ss[0],Ga=Ss[1];jr(pa,Ga)}else if(!Io&&ar&&Do!=="clear"){var Fo=sa(),ga=(0,je.Z)(Fo,2),Hs=ga[0],da=ga[1];ar(Hs,da)}},Ma=Pn(function(Yi,ho){var Io,Do=mr?ho.selected:!0;Do?Io=mr?[].concat((0,Ce.Z)(si),[Yi]):[Yi]:Io=si.filter(function(sa){return sa.value!==Yi}),Mi(Io),Ra(Yi,Do),Er==="combobox"?vo(""):(!Xt||hi)&&(ai(""),vo(""))}),ts=function(ho,Io){Mi(ho);var Do=Io.type,sa=Io.values;(Do==="remove"||Do==="clear")&&sa.forEach(function(Xi){Ra(Xi.value,!1,Do)})},Oa=function(ho,Io){if(ai(ho),vo(null),Io.source==="submit"){var Do=(ho||"").trim();if(Do){var sa=Array.from(new Set([].concat((0,Ce.Z)(Bi),[Do])));Mi(sa),Ra(Do,!0),ai("")}return}Io.source!=="blur"&&(Er==="combobox"&&Mi(ho),kr==null||kr(ho))},_a=function(ho){var Io=ho;Er!=="tags"&&(Io=ho.map(function(sa){var Xi=yn.get(sa);return Xi==null?void 0:Xi.value}).filter(function(sa){return sa!==void 0}));var Do=Array.from(new Set([].concat((0,Ce.Z)(Bi),(0,Ce.Z)(Io))));Mi(Do),Do.forEach(function(sa){Ra(sa,!0)})},fi=Ue.useMemo(function(){var Yi=Gi!==!1&&un!==!1;return(0,Ie.Z)((0,Ie.Z)({},gr),{},{flattenOptions:Zi,onActiveValue:to,defaultActiveFirstOption:Ls,onSelect:Ma,menuItemSelectedIcon:ro,rawValues:Bi,fieldNames:Or,virtual:Yi,direction:Fi,listHeight:qn,listItemHeight:lr,childrenAsData:wn,maxCount:ji,optionRender:gi})},[ji,gr,Zi,to,Ls,Ma,ro,Bi,Or,Gi,un,Fi,qn,lr,wn,gi]);return Ue.createElement(Mn.Provider,{value:fi},Ue.createElement(fn,(0,oe.Z)({},zo,{id:Fn,prefixCls:Nn,ref:ln,omitDomProps:ci,mode:Er,displayValues:Ii,onDisplayValuesChange:ts,direction:Fi,searchValue:di,onSearch:Oa,autoClearSearchValue:hi,onSearchSplit:_a,dropdownMatchSelectWidth:un,OptionList:cr,emptyOptions:!Zi.length,activeValue:Wn,activeDescendantId:"".concat(Fn,"_list_").concat(hs)})))}),oi=dr;oi.Option=Jn,oi.OptGroup=cn;var bi=oi,Pr=bi},63158:function(He,Ee,ae){"use strict";var oe=ae(67711),Ce=ae(52873),ke=ae(16886),Ie=ae(33346),je=ae(59301),Te=ae(92310),Ge=ae.n(Te),lt=ae(18929),Qe=ae(10228),Ue=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],mt=je.forwardRef(function(Je,It){var Oe,te=Je.prefixCls,ee=te===void 0?"rc-switch":te,he=Je.className,ue=Je.checked,fe=Je.defaultChecked,me=Je.disabled,be=Je.loadingIcon,Ae=Je.checkedChildren,De=Je.unCheckedChildren,Ye=Je.onClick,rt=Je.onChange,$e=Je.onKeyDown,at=(0,Ie.Z)(Je,Ue),ht=(0,lt.Z)(!1,{value:ue,defaultValue:fe}),ot=(0,ke.Z)(ht,2),vt=ot[0],xt=ot[1];function Tt(vn,bt){var ft=vt;return me||(ft=vn,xt(ft),rt==null||rt(ft,bt)),ft}function _t(vn){vn.which===Qe.Z.LEFT?Tt(!1,vn):vn.which===Qe.Z.RIGHT&&Tt(!0,vn),$e==null||$e(vn)}function Jt(vn){var bt=Tt(!vt,vn);Ye==null||Ye(bt,vn)}var Zt=Ge()(ee,he,(Oe={},(0,Ce.Z)(Oe,"".concat(ee,"-checked"),vt),(0,Ce.Z)(Oe,"".concat(ee,"-disabled"),me),Oe));return je.createElement("button",(0,oe.Z)({},at,{type:"button",role:"switch","aria-checked":vt,disabled:me,className:Zt,ref:It,onKeyDown:_t,onClick:Jt}),be,je.createElement("span",{className:"".concat(ee,"-inner")},je.createElement("span",{className:"".concat(ee,"-inner-checked")},Ae),je.createElement("span",{className:"".concat(ee,"-inner-unchecked")},De)))});mt.displayName="Switch",Ee.Z=mt},86351:function(He,Ee,ae){"use strict";ae.d(Ee,{R:function(){return Ce},w:function(){return oe}});var oe={},Ce="rc-table-internal-hook"},97347:function(He,Ee,ae){"use strict";ae.d(Ee,{L:function(){return ee},Z:function(){return be}});var oe=ae(16886),Ce=ae(52873),ke=ae(15142),Ie=ae(26420),je=ae(98506),Te=ae(33346),Ge=ae(11592),lt=ae(48736),Qe=ae(59301),Ue=ae(86351),mt=ae(54451);function Je(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 It(Ae,De,Ye){return Qe.useMemo(function(){if(De&&De>0){var rt=0,$e=0;Ae.forEach(function(Jt){var Zt=Je(De,Jt.width);Zt?rt+=Zt:$e+=1});var at=Math.max(De,Ye),ht=Math.max(at-rt,$e),ot=$e,vt=ht/$e,xt=0,Tt=Ae.map(function(Jt){var Zt=(0,je.Z)({},Jt),vn=Je(De,Zt.width);if(vn)Zt.width=vn;else{var bt=Math.floor(vt);Zt.width=ot===1?ht:bt,ht-=bt,ot-=1}return xt+=Zt.width,Zt});if(xt<at){var _t=at/xt;ht=at,Tt.forEach(function(Jt,Zt){var vn=Math.floor(Jt.width*_t);Jt.width=Zt===Tt.length-1?ht:vn,ht-=vn})}return[Tt,Math.max(xt,at)]}return[Ae,De]},[Ae,De,Ye])}var Oe=["children"],te=["fixed"];function ee(Ae){return(0,Ge.Z)(Ae).filter(function(De){return Qe.isValidElement(De)}).map(function(De){var Ye=De.key,rt=De.props,$e=rt.children,at=(0,Te.Z)(rt,Oe),ht=(0,je.Z)({key:Ye},at);return $e&&(ht.children=ee($e)),ht})}function he(Ae){return Ae.filter(function(De){return De&&(0,Ie.Z)(De)==="object"&&!De.hidden}).map(function(De){var Ye=De.children;return Ye&&Ye.length>0?(0,je.Z)((0,je.Z)({},De),{},{children:he(Ye)}):De})}function ue(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.filter(function(Ye){return Ye&&(0,Ie.Z)(Ye)==="object"}).reduce(function(Ye,rt,$e){var at=rt.fixed,ht=at===!0?"left":at,ot="".concat(De,"-").concat($e),vt=rt.children;return vt&&vt.length>0?[].concat((0,ke.Z)(Ye),(0,ke.Z)(ue(vt,ot).map(function(xt){return(0,je.Z)({fixed:ht},xt)}))):[].concat((0,ke.Z)(Ye),[(0,je.Z)((0,je.Z)({key:ot},rt),{},{fixed:ht})])},[])}function fe(Ae){return Ae.map(function(De){var Ye=De.fixed,rt=(0,Te.Z)(De,te),$e=Ye;return Ye==="left"?$e="right":Ye==="right"&&($e="left"),(0,je.Z)({fixed:$e},rt)})}function me(Ae,De){var Ye=Ae.prefixCls,rt=Ae.columns,$e=Ae.children,at=Ae.expandable,ht=Ae.expandedKeys,ot=Ae.columnTitle,vt=Ae.getRowKey,xt=Ae.onTriggerExpand,Tt=Ae.expandIcon,_t=Ae.rowExpandable,Jt=Ae.expandIconColumnIndex,Zt=Ae.direction,vn=Ae.expandRowByClick,bt=Ae.columnWidth,ft=Ae.fixed,ct=Ae.scrollWidth,qt=Ae.clientWidth,dn=Qe.useMemo(function(){var Yn=rt||ee($e)||[];return he(Yn.slice())},[rt,$e]),kt=Qe.useMemo(function(){if(at){var Yn=dn.slice();if(!Yn.includes(Ue.w)){var nt=Jt||0;nt>=0&&(nt||ft==="left"||!ft)&&Yn.splice(nt,0,Ue.w),ft==="right"&&Yn.splice(dn.length,0,Ue.w)}var Be=Yn.indexOf(Ue.w);Yn=Yn.filter(function(Fe,St){return Fe!==Ue.w||St===Be});var Re=dn[Be],Ze;ft?Ze=ft:Ze=Re?Re.fixed:null;var st=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},mt.v,{className:"".concat(Ye,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ot),"fixed",Ze),"className","".concat(Ye,"-row-expand-icon-cell")),"width",bt),"render",function(St,hn,On){var or=vt(hn,On),jt=ht.has(or),Ut=_t?_t(hn):!0,Qt=Tt({prefixCls:Ye,expanded:jt,expandable:Ut,record:hn,onExpand:xt});return vn?Qe.createElement("span",{onClick:function(Mn){return Mn.stopPropagation()}},Qt):Qt});return Yn.map(function(Fe){return Fe===Ue.w?st:Fe})}return dn.filter(function(Fe){return Fe!==Ue.w})},[at,dn,vt,ht,Tt,Zt]),bn=Qe.useMemo(function(){var Yn=kt;return De&&(Yn=De(Yn)),Yn.length||(Yn=[{render:function(){return null}}]),Yn},[De,kt,Zt]),gn=Qe.useMemo(function(){return Zt==="rtl"?fe(ue(bn)):ue(bn)},[bn,Zt,ct]),Zn=Qe.useMemo(function(){for(var Yn=-1,nt=gn.length-1;nt>=0;nt-=1){var Be=gn[nt].fixed;if(Be==="left"||Be===!0){Yn=nt;break}}if(Yn>=0)for(var Re=0;Re<=Yn;Re+=1){var Ze=gn[Re].fixed;if(Ze!=="left"&&Ze!==!0)return!0}var st=gn.findIndex(function(hn){var On=hn.fixed;return On==="right"});if(st>=0)for(var Fe=st;Fe<gn.length;Fe+=1){var St=gn[Fe].fixed;if(St!=="right")return!0}return!1},[gn]),Gt=It(gn,ct,qt),Rt=(0,oe.Z)(Gt,2),tn=Rt[0],zn=Rt[1];return[bn,tn,zn,Zn]}var be=me},4030:function(He,Ee,ae){"use strict";ae.d(Ee,{w2:function(){return oe.w},vP:function(){return Dn.v},RQ:function(){return oe.R},ER:function(){return or},Q$:function(){return Ti},TN:function(){return co}});var oe=ae(86351),Ce=ae(16886),ke=ae(6089),Ie=ae(34280),je=ae(13697),Te=ae(59301),Ge=ae(4676);function lt(Fn){var mr=Te.createContext(void 0),wn=function(Or){var Wr=Or.value,pi=Or.children,di=Te.useRef(Wr);di.current=Wr;var ai=Te.useState(function(){return{getValue:function(){return di.current},listeners:new Set}}),gr=(0,Ce.Z)(ai,1),pt=gr[0];return(0,Ie.Z)(function(){(0,Ge.unstable_batchedUpdates)(function(){pt.listeners.forEach(function(yn){yn(Wr)})})},[Wr]),Te.createElement(mr.Provider,{value:pt},pi)};return{Context:mr,Provider:wn,defaultValue:Fn}}function Qe(Fn,mr){var wn=(0,ke.Z)(typeof mr=="function"?mr:function(yn){if(mr===void 0)return yn;if(!Array.isArray(mr))return yn[mr];var xn={};return mr.forEach(function(Hn){xn[Hn]=yn[Hn]}),xn}),it=Te.useContext(Fn==null?void 0:Fn.Context),Or=it||{},Wr=Or.listeners,pi=Or.getValue,di=Te.useRef();di.current=wn(it?pi():Fn==null?void 0:Fn.defaultValue);var ai=Te.useState({}),gr=(0,Ce.Z)(ai,2),pt=gr[1];return(0,Ie.Z)(function(){if(!it)return;function yn(xn){var Hn=wn(xn);(0,je.Z)(di.current,Hn,!0)||pt({})}return Wr.add(yn),function(){Wr.delete(yn)}},[it]),di.current}var Ue=ae(67711),mt=ae(8654);function Je(){var Fn=Te.createContext(null);function mr(){return Te.useContext(Fn)}function wn(Or,Wr){var pi=(0,mt.Yr)(Or),di=function(gr,pt){var yn=pi?{ref:pt}:{},xn=Te.useRef(0),Hn=Te.useRef(gr),pn=mr();return pn!==null?Te.createElement(Or,(0,Ue.Z)({},gr,yn)):((!Wr||Wr(Hn.current,gr))&&(xn.current+=1),Hn.current=gr,Te.createElement(Fn.Provider,{value:xn.current},Te.createElement(Or,(0,Ue.Z)({},gr,yn))))};return pi?Te.forwardRef(di):di}function it(Or,Wr){var pi=(0,mt.Yr)(Or),di=function(gr,pt){var yn=pi?{ref:pt}:{};return mr(),Te.createElement(Or,(0,Ue.Z)({},gr,yn))};return pi?Te.memo(Te.forwardRef(di),Wr):Te.memo(di,Wr)}return{makeImmutable:wn,responseImmutable:it,useImmutableMark:mr}}var It=Je(),Oe=It.makeImmutable,te=It.responseImmutable,ee=It.useImmutableMark,he=Je(),ue=he.makeImmutable,fe=he.responseImmutable,me=he.useImmutableMark,be=lt(),Ae=be;function De(Fn,mr){var wn=React.useRef(0);wn.current+=1;var it=React.useRef(Fn),Or=[];Object.keys(Fn||{}).map(function(pi){var di;(Fn==null?void 0:Fn[pi])!==((di=it.current)===null||di===void 0?void 0:di[pi])&&Or.push(pi)}),it.current=Fn;var Wr=React.useRef([]);return Or.length&&(Wr.current=Or),React.useDebugValue(wn.current),React.useDebugValue(Wr.current.join(", ")),mr&&console.log("".concat(mr,":"),wn.current,Wr.current),wn.current}var Ye=null,rt=null,$e=ae(26420),at=ae(98506),ht=ae(52873),ot=ae(92310),vt=ae.n(ot),xt=ae(80547),Tt=ae(97938),_t=ae(48736),Jt=Te.createContext({renderWithProps:!1}),Zt=Jt,vn="RC_TABLE_KEY";function bt(Fn){return Fn==null?[]:Array.isArray(Fn)?Fn:[Fn]}function ft(Fn){var mr=[],wn={};return Fn.forEach(function(it){for(var Or=it||{},Wr=Or.key,pi=Or.dataIndex,di=Wr||bt(pi).join("-")||vn;wn[di];)di="".concat(di,"_next");wn[di]=!0,mr.push(di)}),mr}function ct(Fn){return Fn!=null}function qt(Fn){return typeof Fn=="number"&&!Number.isNaN(Fn)}function dn(Fn){return Fn&&(0,$e.Z)(Fn)==="object"&&!Array.isArray(Fn)&&!Te.isValidElement(Fn)}function kt(Fn,mr,wn,it,Or,Wr){var pi=Te.useContext(Zt),di=me(),ai=(0,xt.Z)(function(){if(ct(it))return[it];var gr=mr==null||mr===""?[]:Array.isArray(mr)?mr:[mr],pt=(0,Tt.Z)(Fn,gr),yn=pt,xn=void 0;if(Or){var Hn=Or(pt,Fn,wn);dn(Hn)?(yn=Hn.children,xn=Hn.props,pi.renderWithProps=!0):yn=Hn}return[yn,xn]},[di,Fn,it,mr,Or,wn],function(gr,pt){if(Wr){var yn=(0,Ce.Z)(gr,2),xn=yn[1],Hn=(0,Ce.Z)(pt,2),pn=Hn[1];return Wr(pn,xn)}return pi.renderWithProps?!0:!(0,je.Z)(gr,pt,!0)});return ai}function bn(Fn,mr,wn,it){var Or=Fn+mr-1;return Fn<=it&&Or>=wn}function gn(Fn,mr){return Qe(Ae,function(wn){var it=bn(Fn,mr||1,wn.hoverStartRow,wn.hoverEndRow);return[it,wn.onHover]})}var Zn=ae(70425),Gt=function(mr){var wn=mr.ellipsis,it=mr.rowType,Or=mr.children,Wr,pi=wn===!0?{showTitle:!0}:wn;return pi&&(pi.showTitle||it==="header")&&(typeof Or=="string"||typeof Or=="number"?Wr=Or.toString():Te.isValidElement(Or)&&typeof Or.props.children=="string"&&(Wr=Or.props.children)),Wr};function Rt(Fn){var mr,wn,it,Or,Wr,pi,di,ai,gr=Fn.component,pt=Fn.children,yn=Fn.ellipsis,xn=Fn.scope,Hn=Fn.prefixCls,pn=Fn.className,tr=Fn.align,Qn=Fn.record,an=Fn.render,hr=Fn.dataIndex,Vr=Fn.renderIndex,Ai=Fn.shouldCellUpdate,si=Fn.index,Si=Fn.rowType,Ii=Fn.colSpan,Bi=Fn.rowSpan,ao=Fn.fixLeft,wo=Fn.fixRight,Ho=Fn.firstFixLeft,An=Fn.lastFixLeft,ko=Fn.firstFixRight,po=Fn.lastFixRight,Zi=Fn.appendNode,Mi=Fn.additionalProps,Oo=Mi===void 0?{}:Mi,Wo=Fn.isSticky,Wn="".concat(Hn,"-cell"),vo=Qe(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ia=vo.supportSticky,za=vo.allColumnsFixedLeft,hs=vo.rowHoverable,il=kt(Qn,hr,Vr,pt,an,Ai),Ls=(0,Ce.Z)(il,2),to=Ls[0],Ra=Ls[1],Ma={},ts=typeof ao=="number"&&ia,Oa=typeof wo=="number"&&ia;ts&&(Ma.position="sticky",Ma.left=ao),Oa&&(Ma.position="sticky",Ma.right=wo);var _a=(mr=(wn=(it=Ra==null?void 0:Ra.colSpan)!==null&&it!==void 0?it:Oo.colSpan)!==null&&wn!==void 0?wn:Ii)!==null&&mr!==void 0?mr:1,fi=(Or=(Wr=(pi=Ra==null?void 0:Ra.rowSpan)!==null&&pi!==void 0?pi:Oo.rowSpan)!==null&&Wr!==void 0?Wr:Bi)!==null&&Or!==void 0?Or:1,Yi=gn(si,fi),ho=(0,Ce.Z)(Yi,2),Io=ho[0],Do=ho[1],sa=(0,Zn.zX)(function(Hs){var da;Qn&&Do(si,si+fi-1),Oo==null||(da=Oo.onMouseEnter)===null||da===void 0||da.call(Oo,Hs)}),Xi=(0,Zn.zX)(function(Hs){var da;Qn&&Do(-1,-1),Oo==null||(da=Oo.onMouseLeave)===null||da===void 0||da.call(Oo,Hs)});if(_a===0||fi===0)return null;var Ss=(di=Oo.title)!==null&&di!==void 0?di:Gt({rowType:Si,ellipsis:yn,children:to}),pa=vt()(Wn,pn,(ai={},(0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)(ai,"".concat(Wn,"-fix-left"),ts&&ia),"".concat(Wn,"-fix-left-first"),Ho&&ia),"".concat(Wn,"-fix-left-last"),An&&ia),"".concat(Wn,"-fix-left-all"),An&&za&&ia),"".concat(Wn,"-fix-right"),Oa&&ia),"".concat(Wn,"-fix-right-first"),ko&&ia),"".concat(Wn,"-fix-right-last"),po&&ia),"".concat(Wn,"-ellipsis"),yn),"".concat(Wn,"-with-append"),Zi),"".concat(Wn,"-fix-sticky"),(ts||Oa)&&Wo&&ia),(0,ht.Z)(ai,"".concat(Wn,"-row-hover"),!Ra&&Io)),Oo.className,Ra==null?void 0:Ra.className),Ga={};tr&&(Ga.textAlign=tr);var Fo=(0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},Ra==null?void 0:Ra.style),Ma),Ga),Oo.style),ga=to;return(0,$e.Z)(ga)==="object"&&!Array.isArray(ga)&&!Te.isValidElement(ga)&&(ga=null),yn&&(An||ko)&&(ga=Te.createElement("span",{className:"".concat(Wn,"-content")},ga)),Te.createElement(gr,(0,Ue.Z)({},Ra,Oo,{className:pa,style:Fo,title:Ss,scope:xn,onMouseEnter:hs?sa:void 0,onMouseLeave:hs?Xi:void 0,colSpan:_a!==1?_a:null,rowSpan:fi!==1?fi:null}),Zi,ga)}var tn=Te.memo(Rt);function zn(Fn,mr,wn,it,Or){var Wr=wn[Fn]||{},pi=wn[mr]||{},di,ai;Wr.fixed==="left"?di=it.left[Or==="rtl"?mr:Fn]:pi.fixed==="right"&&(ai=it.right[Or==="rtl"?Fn:mr]);var gr=!1,pt=!1,yn=!1,xn=!1,Hn=wn[mr+1],pn=wn[Fn-1],tr=Hn&&!Hn.fixed||pn&&!pn.fixed||wn.every(function(Ai){return Ai.fixed==="left"});if(Or==="rtl"){if(di!==void 0){var Qn=pn&&pn.fixed==="left";xn=!Qn&&tr}else if(ai!==void 0){var an=Hn&&Hn.fixed==="right";yn=!an&&tr}}else if(di!==void 0){var hr=Hn&&Hn.fixed==="left";gr=!hr&&tr}else if(ai!==void 0){var Vr=pn&&pn.fixed==="right";pt=!Vr&&tr}return{fixLeft:di,fixRight:ai,lastFixLeft:gr,firstFixRight:pt,lastFixRight:yn,firstFixLeft:xn,isSticky:it.isSticky}}var Yn=Te.createContext({}),nt=Yn;function Be(Fn){var mr=Fn.className,wn=Fn.index,it=Fn.children,Or=Fn.colSpan,Wr=Or===void 0?1:Or,pi=Fn.rowSpan,di=Fn.align,ai=Qe(Ae,["prefixCls","direction"]),gr=ai.prefixCls,pt=ai.direction,yn=Te.useContext(nt),xn=yn.scrollColumnIndex,Hn=yn.stickyOffsets,pn=yn.flattenColumns,tr=wn+Wr-1,Qn=tr+1===xn?Wr+1:Wr,an=zn(wn,wn+Qn-1,pn,Hn,pt);return Te.createElement(tn,(0,Ue.Z)({className:mr,index:wn,component:"td",prefixCls:gr,record:null,dataIndex:null,align:di,colSpan:Qn,rowSpan:pi,render:function(){return it}},an))}var Re=ae(33346),Ze=["children"];function st(Fn){var mr=Fn.children,wn=(0,Re.Z)(Fn,Ze);return Te.createElement("tr",wn,mr)}function Fe(Fn){var mr=Fn.children;return mr}Fe.Row=st,Fe.Cell=Be;var St=Fe;function hn(Fn){var mr=Fn.children,wn=Fn.stickyOffsets,it=Fn.flattenColumns,Or=Qe(Ae,"prefixCls"),Wr=it.length-1,pi=it[Wr],di=Te.useMemo(function(){return{stickyOffsets:wn,flattenColumns:it,scrollColumnIndex:pi!=null&&pi.scrollbar?Wr:null}},[pi,it,Wr,wn]);return Te.createElement(nt.Provider,{value:di},Te.createElement("tfoot",{className:"".concat(Or,"-summary")},mr))}var On=fe(hn),or=St,jt=ae(29301),Ut=ae(24514),Qt=ae(75152),En=ae(26112);function Mn(Fn,mr,wn,it,Or,Wr,pi){Fn.push({record:mr,indent:wn,index:pi});var di=Wr(mr),ai=Or==null?void 0:Or.has(di);if(mr&&Array.isArray(mr[it])&&ai)for(var gr=0;gr<mr[it].length;gr+=1)Mn(Fn,mr[it][gr],wn+1,it,Or,Wr,gr)}function Tn(Fn,mr,wn,it){var Or=Te.useMemo(function(){if(wn!=null&&wn.size){for(var Wr=[],pi=0;pi<(Fn==null?void 0:Fn.length);pi+=1){var di=Fn[pi];Mn(Wr,di,0,mr,wn,it,pi)}return Wr}return Fn==null?void 0:Fn.map(function(ai,gr){return{record:ai,indent:0,index:gr}})},[Fn,mr,wn,it]);return Or}function Ht(Fn,mr,wn,it){var Or=Qe(Ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Wr=Or.flattenColumns,pi=Or.expandableType,di=Or.expandedKeys,ai=Or.childrenColumnName,gr=Or.onTriggerExpand,pt=Or.rowExpandable,yn=Or.onRow,xn=Or.expandRowByClick,Hn=Or.rowClassName,pn=pi==="nest",tr=pi==="row"&&(!pt||pt(Fn)),Qn=tr||pn,an=di&&di.has(mr),hr=ai&&Fn&&Fn[ai],Vr=(0,Zn.zX)(gr),Ai=yn==null?void 0:yn(Fn,wn),si=Ai==null?void 0:Ai.onClick,Si=function(wo){xn&&Qn&&gr(Fn,wo);for(var Ho=arguments.length,An=new Array(Ho>1?Ho-1:0),ko=1;ko<Ho;ko++)An[ko-1]=arguments[ko];si==null||si.apply(void 0,[wo].concat(An))},Ii;typeof Hn=="string"?Ii=Hn:typeof Hn=="function"&&(Ii=Hn(Fn,wn,it));var Bi=ft(Wr);return(0,at.Z)((0,at.Z)({},Or),{},{columnsKey:Bi,nestExpandable:pn,expanded:an,hasNestChildren:hr,record:Fn,onTriggerExpand:Vr,rowSupportExpand:tr,expandable:Qn,rowProps:(0,at.Z)((0,at.Z)({},Ai),{},{className:vt()(Ii,Ai==null?void 0:Ai.className),onClick:Si})})}function Vn(Fn){var mr=Fn.prefixCls,wn=Fn.children,it=Fn.component,Or=Fn.cellComponent,Wr=Fn.className,pi=Fn.expanded,di=Fn.colSpan,ai=Fn.isEmpty,gr=Qe(Ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),pt=gr.scrollbarSize,yn=gr.fixHeader,xn=gr.fixColumn,Hn=gr.componentWidth,pn=gr.horizonScroll,tr=wn;return(ai?pn&&Hn:xn)&&(tr=Te.createElement("div",{style:{width:Hn-(yn&&!ai?pt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(mr,"-expanded-row-fixed")},tr)),Te.createElement(it,{className:Wr,style:{display:pi?null:"none"}},Te.createElement(tn,{component:Or,prefixCls:mr,colSpan:di},tr))}var Xt=Vn;function nn(Fn){var mr=Fn.prefixCls,wn=Fn.record,it=Fn.onExpand,Or=Fn.expanded,Wr=Fn.expandable,pi="".concat(mr,"-row-expand-icon");if(!Wr)return Te.createElement("span",{className:vt()(pi,"".concat(mr,"-row-spaced"))});var di=function(gr){it(wn,gr),gr.stopPropagation()};return Te.createElement("span",{className:vt()(pi,(0,ht.Z)((0,ht.Z)({},"".concat(mr,"-row-expanded"),Or),"".concat(mr,"-row-collapsed"),!Or)),onClick:di})}function fn(Fn,mr,wn){var it=[];function Or(Wr){(Wr||[]).forEach(function(pi,di){it.push(mr(pi,di)),Or(pi[wn])})}return Or(Fn),it}function Gn(Fn,mr,wn,it){return typeof Fn=="string"?Fn:typeof Fn=="function"?Fn(mr,wn,it):""}function cn(Fn,mr,wn,it,Or){var Wr=Fn.record,pi=Fn.prefixCls,di=Fn.columnsKey,ai=Fn.fixedInfoList,gr=Fn.expandIconColumnIndex,pt=Fn.nestExpandable,yn=Fn.indentSize,xn=Fn.expandIcon,Hn=Fn.expanded,pn=Fn.hasNestChildren,tr=Fn.onTriggerExpand,Qn=di[wn],an=ai[wn],hr;wn===(gr||0)&&pt&&(hr=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(yn*it,"px")},className:"".concat(pi,"-row-indent indent-level-").concat(it)}),xn({prefixCls:pi,expanded:Hn,expandable:pn,record:Wr,onExpand:tr})));var Vr;return mr.onCell&&(Vr=mr.onCell(Wr,Or)),{key:Qn,fixedInfo:an,appendCellNode:hr,additionalCellProps:Vr||{}}}function Et(Fn){var mr=Fn.className,wn=Fn.style,it=Fn.record,Or=Fn.index,Wr=Fn.renderIndex,pi=Fn.rowKey,di=Fn.indent,ai=di===void 0?0:di,gr=Fn.rowComponent,pt=Fn.cellComponent,yn=Fn.scopeCellComponent,xn=Ht(it,pi,Or,ai),Hn=xn.prefixCls,pn=xn.flattenColumns,tr=xn.expandedRowClassName,Qn=xn.expandedRowRender,an=xn.rowProps,hr=xn.expanded,Vr=xn.rowSupportExpand,Ai=Te.useRef(!1);Ai.current||(Ai.current=hr);var si=Gn(tr,it,Or,ai),Si=Te.createElement(gr,(0,Ue.Z)({},an,{"data-row-key":pi,className:vt()(mr,"".concat(Hn,"-row"),"".concat(Hn,"-row-level-").concat(ai),an==null?void 0:an.className,(0,ht.Z)({},si,ai>=1)),style:(0,at.Z)((0,at.Z)({},wn),an==null?void 0:an.style)}),pn.map(function(ao,wo){var Ho=ao.render,An=ao.dataIndex,ko=ao.className,po=cn(xn,ao,wo,ai,Or),Zi=po.key,Mi=po.fixedInfo,Oo=po.appendCellNode,Wo=po.additionalCellProps;return Te.createElement(tn,(0,Ue.Z)({className:ko,ellipsis:ao.ellipsis,align:ao.align,scope:ao.rowScope,component:ao.rowScope?yn:pt,prefixCls:Hn,key:Zi,record:it,index:Or,renderIndex:Wr,dataIndex:An,render:Ho,shouldCellUpdate:ao.shouldCellUpdate},Mi,{appendNode:Oo,additionalProps:Wo}))})),Ii;if(Vr&&(Ai.current||hr)){var Bi=Qn(it,Or,ai+1,hr);Ii=Te.createElement(Xt,{expanded:hr,className:vt()("".concat(Hn,"-expanded-row"),"".concat(Hn,"-expanded-row-level-").concat(ai+1),si),prefixCls:Hn,component:gr,cellComponent:pt,colSpan:pn.length,isEmpty:!1},Bi)}return Te.createElement(Te.Fragment,null,Si,Ii)}var Jn=fe(Et);function ir(Fn){var mr=Fn.columnKey,wn=Fn.onColumnResize,it=Te.useRef();return(0,Ie.Z)(function(){it.current&&wn(mr,it.current.offsetWidth)},[]),Te.createElement(jt.Z,{data:mr},Te.createElement("td",{ref:it,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Wt=ae(29194);function wr(Fn){var mr=Fn.prefixCls,wn=Fn.columnsKey,it=Fn.onColumnResize,Or=Te.useRef(null);return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(mr,"-measure-row"),style:{height:0,fontSize:0},ref:Or},Te.createElement(jt.Z.Collection,{onBatchResize:function(pi){(0,Wt.Z)(Or.current)&&pi.forEach(function(di){var ai=di.data,gr=di.size;it(ai,gr.offsetWidth)})}},wn.map(function(Wr){return Te.createElement(ir,{key:Wr,columnKey:Wr,onColumnResize:it})})))}function ei(Fn){var mr=Fn.data,wn=Fn.measureColumnWidth,it=Qe(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Or=it.prefixCls,Wr=it.getComponent,pi=it.onColumnResize,di=it.flattenColumns,ai=it.getRowKey,gr=it.expandedKeys,pt=it.childrenColumnName,yn=it.emptyNode,xn=Tn(mr,pt,gr,ai),Hn=Te.useRef({renderWithProps:!1}),pn=Wr(["body","wrapper"],"tbody"),tr=Wr(["body","row"],"tr"),Qn=Wr(["body","cell"],"td"),an=Wr(["body","cell"],"th"),hr;mr.length?hr=xn.map(function(Ai,si){var Si=Ai.record,Ii=Ai.indent,Bi=Ai.index,ao=ai(Si,si);return Te.createElement(Jn,{key:ao,rowKey:ao,record:Si,index:si,renderIndex:Bi,rowComponent:tr,cellComponent:Qn,scopeCellComponent:an,indent:Ii})}):hr=Te.createElement(Xt,{expanded:!0,className:"".concat(Or,"-placeholder"),prefixCls:Or,component:tr,cellComponent:Qn,colSpan:di.length,isEmpty:!0},yn);var Vr=ft(di);return Te.createElement(Zt.Provider,{value:Hn.current},Te.createElement(pn,{className:"".concat(Or,"-tbody")},wn&&Te.createElement(wr,{prefixCls:Or,columnsKey:Vr,onColumnResize:pi}),hr))}var Fr=fe(ei),Dn=ae(54451),ii=["columnType"];function Kr(Fn){for(var mr=Fn.colWidths,wn=Fn.columns,it=Fn.columCount,Or=Qe(Ae,["tableLayout"]),Wr=Or.tableLayout,pi=[],di=it||wn.length,ai=!1,gr=di-1;gr>=0;gr-=1){var pt=mr[gr],yn=wn&&wn[gr],xn=void 0,Hn=void 0;if(yn&&(xn=yn[Dn.v],Wr==="auto"&&(Hn=yn.minWidth)),pt||Hn||xn||ai){var pn=xn||{},tr=pn.columnType,Qn=(0,Re.Z)(pn,ii);pi.unshift(Te.createElement("col",(0,Ue.Z)({key:gr,style:{width:pt,minWidth:Hn}},Qn))),ai=!0}}return Te.createElement("colgroup",null,pi)}var cr=Kr,Dr=ae(15142),ri=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function _e(Fn,mr){return(0,Te.useMemo)(function(){for(var wn=[],it=0;it<mr;it+=1){var Or=Fn[it];if(Or!==void 0)wn[it]=Or;else return null}return wn},[Fn.join("_"),mr])}var Mr=Te.forwardRef(function(Fn,mr){var wn=Fn.className,it=Fn.noData,Or=Fn.columns,Wr=Fn.flattenColumns,pi=Fn.colWidths,di=Fn.columCount,ai=Fn.stickyOffsets,gr=Fn.direction,pt=Fn.fixHeader,yn=Fn.stickyTopOffset,xn=Fn.stickyBottomOffset,Hn=Fn.stickyClassName,pn=Fn.onScroll,tr=Fn.maxContentScroll,Qn=Fn.children,an=(0,Re.Z)(Fn,ri),hr=Qe(Ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),Vr=hr.prefixCls,Ai=hr.scrollbarSize,si=hr.isSticky,Si=hr.getComponent,Ii=Si(["header","table"],"table"),Bi=si&&!pt?0:Ai,ao=Te.useRef(null),wo=Te.useCallback(function(Wo){(0,mt.mH)(mr,Wo),(0,mt.mH)(ao,Wo)},[]);Te.useEffect(function(){var Wo;function Wn(vo){var ia=vo,za=ia.currentTarget,hs=ia.deltaX;hs&&(pn({currentTarget:za,scrollLeft:za.scrollLeft+hs}),vo.preventDefault())}return(Wo=ao.current)===null||Wo===void 0||Wo.addEventListener("wheel",Wn,{passive:!1}),function(){var vo;(vo=ao.current)===null||vo===void 0||vo.removeEventListener("wheel",Wn)}},[]);var Ho=Te.useMemo(function(){return Wr.every(function(Wo){return Wo.width})},[Wr]),An=Wr[Wr.length-1],ko={fixed:An?An.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Vr,"-cell-scrollbar")}}},po=(0,Te.useMemo)(function(){return Bi?[].concat((0,Dr.Z)(Or),[ko]):Or},[Bi,Or]),Zi=(0,Te.useMemo)(function(){return Bi?[].concat((0,Dr.Z)(Wr),[ko]):Wr},[Bi,Wr]),Mi=(0,Te.useMemo)(function(){var Wo=ai.right,Wn=ai.left;return(0,at.Z)((0,at.Z)({},ai),{},{left:gr==="rtl"?[].concat((0,Dr.Z)(Wn.map(function(vo){return vo+Bi})),[0]):Wn,right:gr==="rtl"?Wo:[].concat((0,Dr.Z)(Wo.map(function(vo){return vo+Bi})),[0]),isSticky:si})},[Bi,ai,si]),Oo=_e(pi,di);return Te.createElement("div",{style:(0,at.Z)({overflow:"hidden"},si?{top:yn,bottom:xn}:{}),ref:wo,className:vt()(wn,(0,ht.Z)({},Hn,!!Hn))},Te.createElement(Ii,{style:{tableLayout:"fixed",visibility:it||Oo?null:"hidden"}},(!it||!tr||Ho)&&Te.createElement(cr,{colWidths:Oo?[].concat((0,Dr.Z)(Oo),[Bi]):[],columCount:di+1,columns:Zi}),Qn((0,at.Z)((0,at.Z)({},an),{},{stickyOffsets:Mi,columns:po,flattenColumns:Zi}))))}),Tr=Te.memo(Mr),sr=function(mr){var wn=mr.cells,it=mr.stickyOffsets,Or=mr.flattenColumns,Wr=mr.rowComponent,pi=mr.cellComponent,di=mr.onHeaderRow,ai=mr.index,gr=Qe(Ae,["prefixCls","direction"]),pt=gr.prefixCls,yn=gr.direction,xn;di&&(xn=di(wn.map(function(pn){return pn.column}),ai));var Hn=ft(wn.map(function(pn){return pn.column}));return Te.createElement(Wr,xn,wn.map(function(pn,tr){var Qn=pn.column,an=zn(pn.colStart,pn.colEnd,Or,it,yn),hr;return Qn&&Qn.onHeaderCell&&(hr=pn.column.onHeaderCell(Qn)),Te.createElement(tn,(0,Ue.Z)({},pn,{scope:Qn.title?pn.colSpan>1?"colgroup":"col":null,ellipsis:Qn.ellipsis,align:Qn.align,component:pi,prefixCls:pt,key:Hn[tr]},an,{additionalProps:hr,rowType:"header"}))}))},_r=sr;function Gr(Fn){var mr=[];function wn(pi,di){var ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mr[ai]=mr[ai]||[];var gr=di,pt=pi.filter(Boolean).map(function(yn){var xn={key:yn.key,className:yn.className||"",children:yn.title,column:yn,colStart:gr},Hn=1,pn=yn.children;return pn&&pn.length>0&&(Hn=wn(pn,gr,ai+1).reduce(function(tr,Qn){return tr+Qn},0),xn.hasSubColumns=!0),"colSpan"in yn&&(Hn=yn.colSpan),"rowSpan"in yn&&(xn.rowSpan=yn.rowSpan),xn.colSpan=Hn,xn.colEnd=xn.colStart+Hn-1,mr[ai].push(xn),gr+=Hn,Hn});return pt}wn(Fn,0);for(var it=mr.length,Or=function(di){mr[di].forEach(function(ai){!("rowSpan"in ai)&&!ai.hasSubColumns&&(ai.rowSpan=it-di)})},Wr=0;Wr<it;Wr+=1)Or(Wr);return mr}var br=function(mr){var wn=mr.stickyOffsets,it=mr.columns,Or=mr.flattenColumns,Wr=mr.onHeaderRow,pi=Qe(Ae,["prefixCls","getComponent"]),di=pi.prefixCls,ai=pi.getComponent,gr=Te.useMemo(function(){return Gr(it)},[it]),pt=ai(["header","wrapper"],"thead"),yn=ai(["header","row"],"tr"),xn=ai(["header","cell"],"th");return Te.createElement(pt,{className:"".concat(di,"-thead")},gr.map(function(Hn,pn){var tr=Te.createElement(_r,{key:pn,flattenColumns:Or,cells:Hn,stickyOffsets:wn,rowComponent:yn,cellComponent:xn,onHeaderRow:Wr,index:pn});return tr}))},Ci=fe(br),Rn=ae(97347);function Pn(Fn,mr,wn){var it=(0,Dn.g)(Fn),Or=it.expandIcon,Wr=it.expandedRowKeys,pi=it.defaultExpandedRowKeys,di=it.defaultExpandAllRows,ai=it.expandedRowRender,gr=it.onExpand,pt=it.onExpandedRowsChange,yn=it.childrenColumnName,xn=Or||nn,Hn=yn||"children",pn=Te.useMemo(function(){return ai?"row":Fn.expandable&&Fn.internalHooks===oe.R&&Fn.expandable.__PARENT_RENDER_ICON__||mr.some(function(si){return si&&(0,$e.Z)(si)==="object"&&si[Hn]})?"nest":!1},[!!ai,mr]),tr=Te.useState(function(){return pi||(di?fn(mr,wn,Hn):[])}),Qn=(0,Ce.Z)(tr,2),an=Qn[0],hr=Qn[1],Vr=Te.useMemo(function(){return new Set(Wr||an||[])},[Wr,an]),Ai=Te.useCallback(function(si){var Si=wn(si,mr.indexOf(si)),Ii,Bi=Vr.has(Si);Bi?(Vr.delete(Si),Ii=(0,Dr.Z)(Vr)):Ii=[].concat((0,Dr.Z)(Vr),[Si]),hr(Ii),gr&&gr(!Bi,si),pt&&pt(Ii)},[wn,Vr,mr,gr,pt]);return[it,pn,Vr,xn,Hn,Ai]}function Sn(Fn,mr,wn){var it=Fn.map(function(Or,Wr){return zn(Wr,Wr,Fn,mr,wn)});return(0,xt.Z)(function(){return it},[it],function(Or,Wr){return!(0,je.Z)(Or,Wr)})}function $n(Fn){var mr=(0,Te.useRef)(Fn),wn=(0,Te.useState)({}),it=(0,Ce.Z)(wn,2),Or=it[1],Wr=(0,Te.useRef)(null),pi=(0,Te.useRef)([]);function di(ai){pi.current.push(ai);var gr=Promise.resolve();Wr.current=gr,gr.then(function(){if(Wr.current===gr){var pt=pi.current,yn=mr.current;pi.current=[],pt.forEach(function(xn){mr.current=xn(mr.current)}),Wr.current=null,yn!==mr.current&&Or({})}})}return(0,Te.useEffect)(function(){return function(){Wr.current=null}},[]),[mr.current,di]}function li(Fn){var mr=(0,Te.useRef)(Fn||null),wn=(0,Te.useRef)();function it(){window.clearTimeout(wn.current)}function Or(pi){mr.current=pi,it(),wn.current=window.setTimeout(function(){mr.current=null,wn.current=void 0},100)}function Wr(){return mr.current}return(0,Te.useEffect)(function(){return it},[]),[Or,Wr]}function Yr(){var Fn=Te.useState(-1),mr=(0,Ce.Z)(Fn,2),wn=mr[0],it=mr[1],Or=Te.useState(-1),Wr=(0,Ce.Z)(Or,2),pi=Wr[0],di=Wr[1],ai=Te.useCallback(function(gr,pt){it(gr),di(pt)},[]);return[wn,pi,ai]}var ci=ae(47273),_n=(0,ci.Z)()?window:null;function dr(Fn,mr){var wn=(0,$e.Z)(Fn)==="object"?Fn:{},it=wn.offsetHeader,Or=it===void 0?0:it,Wr=wn.offsetSummary,pi=Wr===void 0?0:Wr,di=wn.offsetScroll,ai=di===void 0?0:di,gr=wn.getContainer,pt=gr===void 0?function(){return _n}:gr,yn=pt()||_n,xn=!!Fn;return Te.useMemo(function(){return{isSticky:xn,stickyClassName:xn?"".concat(mr,"-sticky-holder"):"",offsetHeader:Or,offsetSummary:pi,offsetScroll:ai,container:yn}},[xn,ai,Or,pi,mr,yn])}function oi(Fn,mr,wn){var it=(0,Te.useMemo)(function(){var Or=mr.length,Wr=function(gr,pt,yn){for(var xn=[],Hn=0,pn=gr;pn!==pt;pn+=yn)xn.push(Hn),mr[pn].fixed&&(Hn+=Fn[pn]||0);return xn},pi=Wr(0,Or,1),di=Wr(Or-1,-1,-1).reverse();return wn==="rtl"?{left:di,right:pi}:{left:pi,right:di}},[Fn,mr,wn]);return it}var bi=oi;function Pr(Fn){var mr=Fn.className,wn=Fn.children;return Te.createElement("div",{className:mr},wn)}var Lt=Pr,ln=ae(8224),Nr=ae(16089),Er=ae(76846);function Yt(Fn){var mr=(0,Er.bn)(Fn),wn=mr.getBoundingClientRect(),it=document.documentElement;return{left:wn.left+(window.pageXOffset||it.scrollLeft)-(it.clientLeft||document.body.clientLeft||0),top:wn.top+(window.pageYOffset||it.scrollTop)-(it.clientTop||document.body.clientTop||0)}}var Nn=function(mr,wn){var it,Or,Wr=mr.scrollBodyRef,pi=mr.onScroll,di=mr.offsetScroll,ai=mr.container,gr=mr.direction,pt=Qe(Ae,"prefixCls"),yn=((it=Wr.current)===null||it===void 0?void 0:it.scrollWidth)||0,xn=((Or=Wr.current)===null||Or===void 0?void 0:Or.clientWidth)||0,Hn=yn&&xn*(xn/yn),pn=Te.useRef(),tr=$n({scrollLeft:0,isHiddenScrollBar:!0}),Qn=(0,Ce.Z)(tr,2),an=Qn[0],hr=Qn[1],Vr=Te.useRef({delta:0,x:0}),Ai=Te.useState(!1),si=(0,Ce.Z)(Ai,2),Si=si[0],Ii=si[1],Bi=Te.useRef(null);Te.useEffect(function(){return function(){Nr.Z.cancel(Bi.current)}},[]);var ao=function(){Ii(!1)},wo=function(Zi){Zi.persist(),Vr.current.delta=Zi.pageX-an.scrollLeft,Vr.current.x=0,Ii(!0),Zi.preventDefault()},Ho=function(Zi){var Mi,Oo=Zi||((Mi=window)===null||Mi===void 0?void 0:Mi.event),Wo=Oo.buttons;if(!Si||Wo===0){Si&&Ii(!1);return}var Wn=Vr.current.x+Zi.pageX-Vr.current.x-Vr.current.delta,vo=gr==="rtl";Wn=Math.max(vo?Hn-xn:0,Math.min(vo?0:xn-Hn,Wn));var ia=!vo||Math.abs(Wn)+Math.abs(Hn)<xn;ia&&(pi({scrollLeft:Wn/xn*(yn+2)}),Vr.current.x=Zi.pageX)},An=function(){Nr.Z.cancel(Bi.current),Bi.current=(0,Nr.Z)(function(){if(Wr.current){var Zi=Yt(Wr.current).top,Mi=Zi+Wr.current.offsetHeight,Oo=ai===window?document.documentElement.scrollTop+window.innerHeight:Yt(ai).top+ai.clientHeight;Mi-(0,Qt.Z)()<=Oo||Zi>=Oo-di?hr(function(Wo){return(0,at.Z)((0,at.Z)({},Wo),{},{isHiddenScrollBar:!0})}):hr(function(Wo){return(0,at.Z)((0,at.Z)({},Wo),{},{isHiddenScrollBar:!1})})}})},ko=function(Zi){hr(function(Mi){return(0,at.Z)((0,at.Z)({},Mi),{},{scrollLeft:Zi/yn*xn||0})})};return Te.useImperativeHandle(wn,function(){return{setScrollLeft:ko,checkScrollBarVisible:An}}),Te.useEffect(function(){var po=(0,ln.Z)(document.body,"mouseup",ao,!1),Zi=(0,ln.Z)(document.body,"mousemove",Ho,!1);return An(),function(){po.remove(),Zi.remove()}},[Hn,Si]),Te.useEffect(function(){if(Wr.current){for(var po=[],Zi=(0,Er.bn)(Wr.current);Zi;)po.push(Zi),Zi=Zi.parentElement;return po.forEach(function(Mi){return Mi.addEventListener("scroll",An,!1)}),window.addEventListener("resize",An,!1),window.addEventListener("scroll",An,!1),ai.addEventListener("scroll",An,!1),function(){po.forEach(function(Mi){return Mi.removeEventListener("scroll",An)}),window.removeEventListener("resize",An),window.removeEventListener("scroll",An),ai.removeEventListener("scroll",An)}}},[ai]),Te.useEffect(function(){an.isHiddenScrollBar||hr(function(po){var Zi=Wr.current;return Zi?(0,at.Z)((0,at.Z)({},po),{},{scrollLeft:Zi.scrollLeft/Zi.scrollWidth*Zi.clientWidth}):po})},[an.isHiddenScrollBar]),yn<=xn||!Hn||an.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,Qt.Z)(),width:xn,bottom:di},className:"".concat(pt,"-sticky-scroll")},Te.createElement("div",{onMouseDown:wo,ref:pn,className:vt()("".concat(pt,"-sticky-scroll-bar"),(0,ht.Z)({},"".concat(pt,"-sticky-scroll-bar-active"),Si)),style:{width:"".concat(Hn,"px"),transform:"translate3d(".concat(an.scrollLeft,"px, 0, 0)")}}))},Xr=Te.forwardRef(Nn);function Ln(Fn){return null}var Ve=Ln;function Rr(Fn){return null}var kr=Rr,jn="rc-table",hi=[],jr={};function ar(){return"No Data"}function Qr(Fn,mr){var wn=(0,at.Z)({rowKey:"key",prefixCls:jn,emptyText:ar},Fn),it=wn.prefixCls,Or=wn.className,Wr=wn.rowClassName,pi=wn.style,di=wn.data,ai=wn.rowKey,gr=wn.scroll,pt=wn.tableLayout,yn=wn.direction,xn=wn.title,Hn=wn.footer,pn=wn.summary,tr=wn.caption,Qn=wn.id,an=wn.showHeader,hr=wn.components,Vr=wn.emptyText,Ai=wn.onRow,si=wn.onHeaderRow,Si=wn.onScroll,Ii=wn.internalHooks,Bi=wn.transformColumns,ao=wn.internalRefs,wo=wn.tailor,Ho=wn.getContainerWidth,An=wn.sticky,ko=wn.rowHoverable,po=ko===void 0?!0:ko,Zi=di||hi,Mi=!!Zi.length,Oo=Ii===oe.R,Wo=Te.useCallback(function($o,ca){return(0,Tt.Z)(hr,$o)||ca},[hr]),Wn=Te.useMemo(function(){return typeof ai=="function"?ai:function($o){var ca=$o&&$o[ai];return ca}},[ai]),vo=Wo(["body"]),ia=Yr(),za=(0,Ce.Z)(ia,3),hs=za[0],il=za[1],Ls=za[2],to=Pn(wn,Zi,Wn),Ra=(0,Ce.Z)(to,6),Ma=Ra[0],ts=Ra[1],Oa=Ra[2],_a=Ra[3],fi=Ra[4],Yi=Ra[5],ho=gr==null?void 0:gr.x,Io=Te.useState(0),Do=(0,Ce.Z)(Io,2),sa=Do[0],Xi=Do[1],Ss=(0,Rn.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},wn),Ma),{},{expandable:!!Ma.expandedRowRender,columnTitle:Ma.columnTitle,expandedKeys:Oa,getRowKey:Wn,onTriggerExpand:Yi,expandIcon:_a,expandIconColumnIndex:Ma.expandIconColumnIndex,direction:yn,scrollWidth:Oo&&wo&&typeof ho=="number"?ho:null,clientWidth:sa}),Oo?Bi:null),pa=(0,Ce.Z)(Ss,4),Ga=pa[0],Fo=pa[1],ga=pa[2],Hs=pa[3],da=ga!=null?ga:ho,Rs=Te.useMemo(function(){return{columns:Ga,flattenColumns:Fo}},[Ga,Fo]),ol=Te.useRef(),Xs=Te.useRef(),$a=Te.useRef(),Kl=Te.useRef();Te.useImperativeHandle(mr,function(){return{nativeElement:ol.current,scrollTo:function(ca){var Va;if($a.current instanceof HTMLElement){var Is=ca.index,xs=ca.top,Ll=ca.key;if(qt(xs)){var Bl;(Bl=$a.current)===null||Bl===void 0||Bl.scrollTo({top:xs})}else{var _l,kl=Ll!=null?Ll:Wn(Zi[Is]);(_l=$a.current.querySelector('[data-row-key="'.concat(kl,'"]')))===null||_l===void 0||_l.scrollIntoView()}}else(Va=$a.current)!==null&&Va!==void 0&&Va.scrollTo&&$a.current.scrollTo(ca)}}});var nc=Te.useRef(),es=Te.useState(!1),Pl=(0,Ce.Z)(es,2),ll=Pl[0],ul=Pl[1],rc=Te.useState(!1),yc=(0,Ce.Z)(rc,2),ns=yc[0],ic=yc[1],oc=Te.useState(new Map),Mu=(0,Ce.Z)(oc,2),Ou=Mu[0],Ms=Mu[1],Qs=ft(Fo),fs=Qs.map(function($o){return Ou.get($o)}),ks=Te.useMemo(function(){return fs},[fs.join("_")]),yu=bi(ks,Fo,yn),zs=gr&&ct(gr.y),wa=gr&&ct(da)||!!Ma.fixed,ma=wa&&Fo.some(function($o){var ca=$o.fixed;return ca}),Vo=Te.useRef(),cs=dr(An,it),Ri=cs.isSticky,ps=cs.offsetHeader,en=cs.offsetSummary,Ir=cs.offsetScroll,Tl=cs.stickyClassName,Su=cs.container,ja=Te.useMemo(function(){return pn==null?void 0:pn(Zi)},[pn,Zi]),rs=(zs||Ri)&&Te.isValidElement(ja)&&ja.type===St&&ja.props.fixed,Al,Fl,ac;zs&&(Fl={overflowY:Mi?"scroll":"auto",maxHeight:gr.y}),wa&&(Al={overflowX:"auto"},zs||(Fl={overflowY:"hidden"}),ac={width:da===!0?"auto":da,minWidth:"100%"});var Wa=Te.useCallback(function($o,ca){Ms(function(Va){if(Va.get($o)!==ca){var Is=new Map(Va);return Is.set($o,ca),Is}return Va})},[]),Eo=li(null),bs=(0,Ce.Z)(Eo,2),Js=bs[0],ua=bs[1];function Zo($o,ca){ca&&(typeof ca=="function"?ca($o):ca.scrollLeft!==$o&&(ca.scrollLeft=$o,ca.scrollLeft!==$o&&setTimeout(function(){ca.scrollLeft=$o},0)))}var Ya=(0,ke.Z)(function($o){var ca=$o.currentTarget,Va=$o.scrollLeft,Is=yn==="rtl",xs=typeof Va=="number"?Va:ca.scrollLeft,Ll=ca||jr;if(!ua()||ua()===Ll){var Bl;Js(Ll),Zo(xs,Xs.current),Zo(xs,$a.current),Zo(xs,nc.current),Zo(xs,(Bl=Vo.current)===null||Bl===void 0?void 0:Bl.setScrollLeft)}var _l=ca||Xs.current;if(_l){var kl=Oo&&wo&&typeof da=="number"?da:_l.scrollWidth,hu=_l.clientWidth;if(kl===hu){ul(!1),ic(!1);return}Is?(ul(-xs<kl-hu),ic(-xs>0)):(ul(xs>0),ic(xs<kl-hu))}}),cl=(0,ke.Z)(function($o){Ya($o),Si==null||Si($o)}),Ia=function(){if(wa&&$a.current){var ca;Ya({currentTarget:(0,Er.bn)($a.current),scrollLeft:(ca=$a.current)===null||ca===void 0?void 0:ca.scrollLeft})}else ul(!1),ic(!1)},Sl=function(ca){var Va,Is=ca.width;(Va=Vo.current)===null||Va===void 0||Va.checkScrollBarVisible();var xs=ol.current?ol.current.offsetWidth:Is;Oo&&Ho&&ol.current&&(xs=Ho(ol.current,xs)||xs),xs!==sa&&(Ia(),Xi(xs))},Es=Te.useRef(!1);Te.useEffect(function(){Es.current&&Ia()},[wa,di,Ga.length]),Te.useEffect(function(){Es.current=!0},[]);var Fu=Te.useState(0),va=(0,Ce.Z)(Fu,2),Os=va[0],oa=va[1],Ta=Te.useState(!0),La=(0,Ce.Z)(Ta,2),Za=La[0],na=La[1];(0,Ie.Z)(function(){(!wo||!Oo)&&($a.current instanceof Element?oa((0,Qt.o)($a.current).width):oa((0,Qt.o)(Kl.current).width)),na((0,Ut.G)("position","sticky"))},[]),Te.useEffect(function(){Oo&&ao&&(ao.body.current=$a.current)});var sc=Te.useCallback(function($o){return Te.createElement(Te.Fragment,null,Te.createElement(Ci,$o),rs==="top"&&Te.createElement(On,$o,ja))},[rs,ja]),bo=Te.useCallback(function($o){return Te.createElement(On,$o,ja)},[ja]),Dc=Wo(["table"],"table"),aa=Te.useMemo(function(){return pt||(ma?da==="max-content"?"auto":"fixed":zs||Ri||Fo.some(function($o){var ca=$o.ellipsis;return ca})?"fixed":"auto")},[zs,ma,Fo,pt,Ri]),Sc,Bu={colWidths:ks,columCount:Fo.length,stickyOffsets:yu,onHeaderRow:si,fixHeader:zs,scroll:gr},bu=Te.useMemo(function(){return Mi?null:typeof Vr=="function"?Vr():Vr},[Mi,Vr]),Rc=Te.createElement(Fr,{data:Zi,measureColumnWidth:zs||wa||Ri}),Xc=Te.createElement(cr,{colWidths:Fo.map(function($o){var ca=$o.width;return ca}),columns:Fo}),Yl=tr!=null?Te.createElement("caption",{className:"".concat(it,"-caption")},tr):void 0,Xl=(0,En.Z)(wn,{data:!0}),la=(0,En.Z)(wn,{aria:!0});if(zs||Ri){var Gs;typeof vo=="function"?(Gs=vo(Zi,{scrollbarSize:Os,ref:$a,onScroll:Ya}),Bu.colWidths=Fo.map(function($o,ca){var Va=$o.width,Is=ca===Fo.length-1?Va-Os:Va;return typeof Is=="number"&&!Number.isNaN(Is)?Is:0})):Gs=Te.createElement("div",{style:(0,at.Z)((0,at.Z)({},Al),Fl),onScroll:cl,ref:$a,className:vt()("".concat(it,"-body"))},Te.createElement(Dc,(0,Ue.Z)({style:(0,at.Z)((0,at.Z)({},ac),{},{tableLayout:aa})},la),Yl,Xc,Rc,!rs&&ja&&Te.createElement(On,{stickyOffsets:yu,flattenColumns:Fo},ja)));var du=(0,at.Z)((0,at.Z)((0,at.Z)({noData:!Zi.length,maxContentScroll:wa&&da==="max-content"},Bu),Rs),{},{direction:yn,stickyClassName:Tl,onScroll:Ya});Sc=Te.createElement(Te.Fragment,null,an!==!1&&Te.createElement(Tr,(0,Ue.Z)({},du,{stickyTopOffset:ps,className:"".concat(it,"-header"),ref:Xs}),sc),Gs,rs&&rs!=="top"&&Te.createElement(Tr,(0,Ue.Z)({},du,{stickyBottomOffset:en,className:"".concat(it,"-summary"),ref:nc}),bo),Ri&&$a.current&&$a.current instanceof Element&&Te.createElement(Xr,{ref:Vo,offsetScroll:Ir,scrollBodyRef:$a,onScroll:Ya,container:Su,direction:yn}))}else Sc=Te.createElement("div",{style:(0,at.Z)((0,at.Z)({},Al),Fl),className:vt()("".concat(it,"-content")),onScroll:Ya,ref:$a},Te.createElement(Dc,(0,Ue.Z)({style:(0,at.Z)((0,at.Z)({},ac),{},{tableLayout:aa})},la),Yl,Xc,an!==!1&&Te.createElement(Ci,(0,Ue.Z)({},Bu,Rs)),Rc,ja&&Te.createElement(On,{stickyOffsets:yu,flattenColumns:Fo},ja)));var Nl=Te.createElement("div",(0,Ue.Z)({className:vt()(it,Or,(0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)({},"".concat(it,"-rtl"),yn==="rtl"),"".concat(it,"-ping-left"),ll),"".concat(it,"-ping-right"),ns),"".concat(it,"-layout-fixed"),pt==="fixed"),"".concat(it,"-fixed-header"),zs),"".concat(it,"-fixed-column"),ma),"".concat(it,"-fixed-column-gapped"),ma&&Hs),"".concat(it,"-scroll-horizontal"),wa),"".concat(it,"-has-fix-left"),Fo[0]&&Fo[0].fixed),"".concat(it,"-has-fix-right"),Fo[Fo.length-1]&&Fo[Fo.length-1].fixed==="right")),style:pi,id:Qn,ref:ol},Xl),xn&&Te.createElement(Lt,{className:"".concat(it,"-title")},xn(Zi)),Te.createElement("div",{ref:Kl,className:"".concat(it,"-container")},Sc),Hn&&Te.createElement(Lt,{className:"".concat(it,"-footer")},Hn(Zi)));wa&&(Nl=Te.createElement(jt.Z,{onResize:Sl},Nl));var dl=Sn(Fo,yu,yn),bl=Te.useMemo(function(){return{scrollX:da,prefixCls:it,getComponent:Wo,scrollbarSize:Os,direction:yn,fixedInfoList:dl,isSticky:Ri,supportSticky:Za,componentWidth:sa,fixHeader:zs,fixColumn:ma,horizonScroll:wa,tableLayout:aa,rowClassName:Wr,expandedRowClassName:Ma.expandedRowClassName,expandIcon:_a,expandableType:ts,expandRowByClick:Ma.expandRowByClick,expandedRowRender:Ma.expandedRowRender,onTriggerExpand:Yi,expandIconColumnIndex:Ma.expandIconColumnIndex,indentSize:Ma.indentSize,allColumnsFixedLeft:Fo.every(function($o){return $o.fixed==="left"}),emptyNode:bu,columns:Ga,flattenColumns:Fo,onColumnResize:Wa,hoverStartRow:hs,hoverEndRow:il,onHover:Ls,rowExpandable:Ma.rowExpandable,onRow:Ai,getRowKey:Wn,expandedKeys:Oa,childrenColumnName:fi,rowHoverable:po}},[da,it,Wo,Os,yn,dl,Ri,Za,sa,zs,ma,wa,aa,Wr,Ma.expandedRowClassName,_a,ts,Ma.expandRowByClick,Ma.expandedRowRender,Yi,Ma.expandIconColumnIndex,Ma.indentSize,bu,Ga,Fo,Wa,hs,il,Ls,Ma.rowExpandable,Ai,Wn,Oa,fi,po]);return Te.createElement(Ae.Provider,{value:bl},Nl)}var un=Te.forwardRef(Qr);function Ti(Fn){return ue(un,Fn)}var eo=Ti();eo.EXPAND_COLUMN=oe.w,eo.INTERNAL_HOOKS=oe.R,eo.Column=Ve,eo.ColumnGroup=kr,eo.Summary=or;var mn=eo,wi=ae(6790),Di=lt(null),gi=lt(null);function ki(Fn,mr,wn){var it=mr||1;return wn[Fn+it]-(wn[Fn]||0)}function zi(Fn){var mr=Fn.rowInfo,wn=Fn.column,it=Fn.colIndex,Or=Fn.indent,Wr=Fn.index,pi=Fn.component,di=Fn.renderIndex,ai=Fn.record,gr=Fn.style,pt=Fn.className,yn=Fn.inverse,xn=Fn.getHeight,Hn=wn.render,pn=wn.dataIndex,tr=wn.className,Qn=wn.width,an=Qe(gi,["columnsOffset"]),hr=an.columnsOffset,Vr=cn(mr,wn,it,Or,Wr),Ai=Vr.key,si=Vr.fixedInfo,Si=Vr.appendCellNode,Ii=Vr.additionalCellProps,Bi=Ii.style,ao=Ii.colSpan,wo=ao===void 0?1:ao,Ho=Ii.rowSpan,An=Ho===void 0?1:Ho,ko=it-1,po=ki(ko,wo,hr),Zi=wo>1?Qn-po:0,Mi=(0,at.Z)((0,at.Z)((0,at.Z)({},Bi),gr),{},{flex:"0 0 ".concat(po,"px"),width:"".concat(po,"px"),marginRight:Zi,pointerEvents:"auto"}),Oo=Te.useMemo(function(){return yn?An<=1:wo===0||An===0||An>1},[An,wo,yn]);Oo?Mi.visibility="hidden":yn&&(Mi.height=xn==null?void 0:xn(An));var Wo=Oo?function(){return null}:Hn,Wn={};return(An===0||wo===0)&&(Wn.rowSpan=1,Wn.colSpan=1),Te.createElement(tn,(0,Ue.Z)({className:vt()(tr,pt),ellipsis:wn.ellipsis,align:wn.align,scope:wn.rowScope,component:pi,prefixCls:mr.prefixCls,key:Ai,record:ai,index:Wr,renderIndex:di,dataIndex:pn,render:Wo,shouldCellUpdate:wn.shouldCellUpdate},si,{appendNode:Si,additionalProps:(0,at.Z)((0,at.Z)({},Ii),{},{style:Mi},Wn)}))}var ro=zi,Gi=["data","index","className","rowKey","style","extra","getHeight"],Fi=Te.forwardRef(function(Fn,mr){var wn=Fn.data,it=Fn.index,Or=Fn.className,Wr=Fn.rowKey,pi=Fn.style,di=Fn.extra,ai=Fn.getHeight,gr=(0,Re.Z)(Fn,Gi),pt=wn.record,yn=wn.indent,xn=wn.index,Hn=Qe(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),pn=Hn.scrollX,tr=Hn.flattenColumns,Qn=Hn.prefixCls,an=Hn.fixColumn,hr=Hn.componentWidth,Vr=Qe(Di,["getComponent"]),Ai=Vr.getComponent,si=Ht(pt,Wr,it,yn),Si=Ai(["body","row"],"div"),Ii=Ai(["body","cell"],"div"),Bi=si.rowSupportExpand,ao=si.expanded,wo=si.rowProps,Ho=si.expandedRowRender,An=si.expandedRowClassName,ko;if(Bi&&ao){var po=Ho(pt,it,yn+1,ao),Zi=Gn(An,pt,it,yn),Mi={};an&&(Mi={style:(0,ht.Z)({},"--virtual-width","".concat(hr,"px"))});var Oo="".concat(Qn,"-expanded-row-cell");ko=Te.createElement(Si,{className:vt()("".concat(Qn,"-expanded-row"),"".concat(Qn,"-expanded-row-level-").concat(yn+1),Zi)},Te.createElement(tn,{component:Ii,prefixCls:Qn,className:vt()(Oo,(0,ht.Z)({},"".concat(Oo,"-fixed"),an)),additionalProps:Mi},po))}var Wo=(0,at.Z)((0,at.Z)({},pi),{},{width:pn});di&&(Wo.position="absolute",Wo.pointerEvents="none");var Wn=Te.createElement(Si,(0,Ue.Z)({},wo,gr,{"data-row-key":Wr,ref:Bi?null:mr,className:vt()(Or,"".concat(Qn,"-row"),wo==null?void 0:wo.className,(0,ht.Z)({},"".concat(Qn,"-row-extra"),di)),style:(0,at.Z)((0,at.Z)({},Wo),wo==null?void 0:wo.style)}),tr.map(function(vo,ia){return Te.createElement(ro,{key:ia,component:Ii,rowInfo:si,column:vo,colIndex:ia,indent:yn,index:it,renderIndex:xn,record:pt,inverse:di,getHeight:ai})}));return Bi?Te.createElement("div",{ref:mr},Wn,ko):Wn}),io=fe(Fi),qn=io,Ui=Te.forwardRef(function(Fn,mr){var wn=Fn.data,it=Fn.onScroll,Or=Qe(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Wr=Or.flattenColumns,pi=Or.onColumnResize,di=Or.getRowKey,ai=Or.expandedKeys,gr=Or.prefixCls,pt=Or.childrenColumnName,yn=Or.scrollX,xn=Or.direction,Hn=Qe(Di),pn=Hn.sticky,tr=Hn.scrollY,Qn=Hn.listItemHeight,an=Hn.getComponent,hr=Hn.onScroll,Vr=Te.useRef(),Ai=Tn(wn,pt,ai,di),si=Te.useMemo(function(){var ko=0;return Wr.map(function(po){var Zi=po.width,Mi=po.key;return ko+=Zi,[Mi,Zi,ko]})},[Wr]),Si=Te.useMemo(function(){return si.map(function(ko){return ko[2]})},[si]);Te.useEffect(function(){si.forEach(function(ko){var po=(0,Ce.Z)(ko,2),Zi=po[0],Mi=po[1];pi(Zi,Mi)})},[si]),Te.useImperativeHandle(mr,function(){var ko,po={scrollTo:function(Mi){var Oo;(Oo=Vr.current)===null||Oo===void 0||Oo.scrollTo(Mi)},nativeElement:(ko=Vr.current)===null||ko===void 0?void 0:ko.nativeElement};return Object.defineProperty(po,"scrollLeft",{get:function(){var Mi;return((Mi=Vr.current)===null||Mi===void 0?void 0:Mi.getScrollInfo().x)||0},set:function(Mi){var Oo;(Oo=Vr.current)===null||Oo===void 0||Oo.scrollTo({left:Mi})}}),po});var Ii=function(po,Zi){var Mi,Oo=(Mi=Ai[Zi])===null||Mi===void 0?void 0:Mi.record,Wo=po.onCell;if(Wo){var Wn,vo=Wo(Oo,Zi);return(Wn=vo==null?void 0:vo.rowSpan)!==null&&Wn!==void 0?Wn:1}return 1},Bi=function(po){var Zi=po.start,Mi=po.end,Oo=po.getSize,Wo=po.offsetY;if(Mi<0)return null;for(var Wn=Wr.filter(function(_a){return Ii(_a,Zi)===0}),vo=Zi,ia=function(fi){if(Wn=Wn.filter(function(Yi){return Ii(Yi,fi)===0}),!Wn.length)return vo=fi,1},za=Zi;za>=0&&!ia(za);za-=1);for(var hs=Wr.filter(function(_a){return Ii(_a,Mi)!==1}),il=Mi,Ls=function(fi){if(hs=hs.filter(function(Yi){return Ii(Yi,fi)!==1}),!hs.length)return il=Math.max(fi-1,Mi),1},to=Mi;to<Ai.length&&!Ls(to);to+=1);for(var Ra=[],Ma=function(fi){var Yi=Ai[fi];if(!Yi)return 1;Wr.some(function(ho){return Ii(ho,fi)>1})&&Ra.push(fi)},ts=vo;ts<=il;ts+=1)Ma(ts);var Oa=Ra.map(function(_a){var fi=Ai[_a],Yi=di(fi.record,_a),ho=function(sa){var Xi=_a+sa-1,Ss=di(Ai[Xi].record,Xi),pa=Oo(Yi,Ss);return pa.bottom-pa.top},Io=Oo(Yi);return Te.createElement(qn,{key:_a,data:fi,rowKey:Yi,index:_a,style:{top:-Wo+Io.top},extra:!0,getHeight:ho})});return Oa},ao=Te.useMemo(function(){return{columnsOffset:Si}},[Si]),wo="".concat(gr,"-tbody"),Ho=an(["body","wrapper"]),An={};return pn&&(An.position="sticky",An.bottom=0,(0,$e.Z)(pn)==="object"&&pn.offsetScroll&&(An.bottom=pn.offsetScroll)),Te.createElement(gi.Provider,{value:ao},Te.createElement(wi.Z,{fullHeight:!1,ref:Vr,prefixCls:"".concat(wo,"-virtual"),styles:{horizontalScrollBar:An},className:wo,height:tr,itemHeight:Qn||24,data:Ai,itemKey:function(po){return di(po.record)},component:Ho,scrollWidth:yn,direction:xn,onVirtualScroll:function(po){var Zi,Mi=po.x;it({currentTarget:(Zi=Vr.current)===null||Zi===void 0?void 0:Zi.nativeElement,scrollLeft:Mi})},onScroll:hr,extraRender:Bi},function(ko,po,Zi){var Mi=di(ko.record,po);return Te.createElement(qn,{data:ko,rowKey:Mi,index:po,style:Zi.style})}))}),lr=fe(Ui),vi=lr,Vi=function(mr,wn){var it=wn.ref,Or=wn.onScroll;return Te.createElement(vi,{ref:it,data:mr,onScroll:Or})};function Oi(Fn,mr){var wn=Fn.data,it=Fn.columns,Or=Fn.scroll,Wr=Fn.sticky,pi=Fn.prefixCls,di=pi===void 0?jn:pi,ai=Fn.className,gr=Fn.listItemHeight,pt=Fn.components,yn=Fn.onScroll,xn=Or||{},Hn=xn.x,pn=xn.y;typeof Hn!="number"&&(Hn=1),typeof pn!="number"&&(pn=500);var tr=(0,Zn.zX)(function(hr,Vr){return(0,Tt.Z)(pt,hr)||Vr}),Qn=(0,Zn.zX)(yn),an=Te.useMemo(function(){return{sticky:Wr,scrollY:pn,listItemHeight:gr,getComponent:tr,onScroll:Qn}},[Wr,pn,gr,tr,Qn]);return Te.createElement(Di.Provider,{value:an},Te.createElement(mn,(0,Ue.Z)({},Fn,{className:vt()(ai,"".concat(di,"-virtual")),scroll:(0,at.Z)((0,at.Z)({},Or),{},{x:Hn}),components:(0,at.Z)((0,at.Z)({},pt),{},{body:wn!=null&&wn.length?Vi:void 0}),columns:it,internalHooks:oe.R,tailor:!0,ref:mr})))}var fo=Te.forwardRef(Oi);function co(Fn){return ue(fo,Fn)}var ji=co(),zo=null},54451:function(He,Ee,ae){"use strict";ae.d(Ee,{g:function(){return Te},v:function(){return je}});var oe=ae(98506),Ce=ae(33346),ke=ae(48736),Ie=["expandable"],je="RC_TABLE_INTERNAL_COL_DEFINE";function Te(Ge){var lt=Ge.expandable,Qe=(0,Ce.Z)(Ge,Ie),Ue;return"expandable"in Ge?Ue=(0,oe.Z)((0,oe.Z)({},Qe),lt):Ue=Qe,Ue.showExpandColumn===!1&&(Ue.expandIconColumnIndex=-1),Ue}},22711:function(He,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{ResizableTextArea:function(){return ot},default:function(){return _t}});var oe=ae(67711),Ce=ae(52873),ke=ae(98506),Ie=ae(15142),je=ae(16886),Te=ae(33346),Ge=ae(92310),lt=ae.n(Ge),Qe=ae(36901),Ue=ae(66003),mt=ae(30292),Je=ae(18929),It=ae(59301),Oe=ae(26420),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(Jt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=Jt.getAttribute("id")||Jt.getAttribute("data-reactid")||Jt.getAttribute("name");if(Zt&&me[vn])return me[vn];var bt=window.getComputedStyle(Jt),ft=bt.getPropertyValue("box-sizing")||bt.getPropertyValue("-moz-box-sizing")||bt.getPropertyValue("-webkit-box-sizing"),ct=parseFloat(bt.getPropertyValue("padding-bottom"))+parseFloat(bt.getPropertyValue("padding-top")),qt=parseFloat(bt.getPropertyValue("border-bottom-width"))+parseFloat(bt.getPropertyValue("border-top-width")),dn=fe.map(function(bn){return"".concat(bn,":").concat(bt.getPropertyValue(bn))}).join(";"),kt={sizingStyle:dn,paddingSize:ct,borderSize:qt,boxSizing:ft};return Zt&&vn&&(me[vn]=kt),kt}function De(Jt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,bt=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)),Jt.getAttribute("wrap")?be.setAttribute("wrap",Jt.getAttribute("wrap")):be.removeAttribute("wrap");var ft=Ae(Jt,Zt),ct=ft.paddingSize,qt=ft.borderSize,dn=ft.boxSizing,kt=ft.sizingStyle;be.setAttribute("style","".concat(kt,";").concat(ue)),be.value=Jt.value||Jt.placeholder||"";var bn=void 0,gn=void 0,Zn,Gt=be.scrollHeight;if(dn==="border-box"?Gt+=qt:dn==="content-box"&&(Gt-=ct),vn!==null||bt!==null){be.value=" ";var Rt=be.scrollHeight-ct;vn!==null&&(bn=Rt*vn,dn==="border-box"&&(bn=bn+ct+qt),Gt=Math.max(bn,Gt)),bt!==null&&(gn=Rt*bt,dn==="border-box"&&(gn=gn+ct+qt),Zn=Gt>gn?"":"hidden",Gt=Math.min(gn,Gt))}var tn={height:Gt,overflowY:Zn,resize:"none"};return bn&&(tn.minHeight=bn),gn&&(tn.maxHeight=gn),tn}var Ye=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],rt=0,$e=1,at=2,ht=It.forwardRef(function(Jt,Zt){var vn=Jt,bt=vn.prefixCls,ft=vn.defaultValue,ct=vn.value,qt=vn.autoSize,dn=vn.onResize,kt=vn.className,bn=vn.style,gn=vn.disabled,Zn=vn.onChange,Gt=vn.onInternalAutoSize,Rt=(0,Te.Z)(vn,Ye),tn=(0,Je.Z)(ft,{value:ct,postState:function(Jn){return Jn!=null?Jn:""}}),zn=(0,je.Z)(tn,2),Yn=zn[0],nt=zn[1],Be=function(Jn){nt(Jn.target.value),Zn==null||Zn(Jn)},Re=It.useRef();It.useImperativeHandle(Zt,function(){return{textArea:Re.current}});var Ze=It.useMemo(function(){return qt&&(0,Oe.Z)(qt)==="object"?[qt.minRows,qt.maxRows]:[]},[qt]),st=(0,je.Z)(Ze,2),Fe=st[0],St=st[1],hn=!!qt,On=function(){try{if(document.activeElement===Re.current){var Jn=Re.current,ir=Jn.selectionStart,Wt=Jn.selectionEnd,wr=Jn.scrollTop;Re.current.setSelectionRange(ir,Wt),Re.current.scrollTop=wr}}catch(ei){}},or=It.useState(at),jt=(0,je.Z)(or,2),Ut=jt[0],Qt=jt[1],En=It.useState(),Mn=(0,je.Z)(En,2),Tn=Mn[0],Ht=Mn[1],Vn=function(){Qt(rt)};(0,ee.Z)(function(){hn&&Vn()},[ct,Fe,St,hn]),(0,ee.Z)(function(){if(Ut===rt)Qt($e);else if(Ut===$e){var Et=De(Re.current,!1,Fe,St);Qt(at),Ht(Et)}else On()},[Ut]);var Xt=It.useRef(),nn=function(){he.Z.cancel(Xt.current)},fn=function(Jn){Ut===at&&(dn==null||dn(Jn),qt&&(nn(),Xt.current=(0,he.Z)(function(){Vn()})))};It.useEffect(function(){return nn},[]);var Gn=hn?Tn:null,cn=(0,ke.Z)((0,ke.Z)({},bn),Gn);return(Ut===rt||Ut===$e)&&(cn.overflowY="hidden",cn.overflowX="hidden"),It.createElement(te.Z,{onResize:fn,disabled:!(qt||dn)},It.createElement("textarea",(0,oe.Z)({},Rt,{ref:Re,style:cn,className:lt()(bt,kt,(0,Ce.Z)({},"".concat(bt,"-disabled"),gn)),disabled:gn,value:Yn,onChange:Be})))}),ot=ht,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"],xt=It.forwardRef(function(Jt,Zt){var vn,bt=Jt.defaultValue,ft=Jt.value,ct=Jt.onFocus,qt=Jt.onBlur,dn=Jt.onChange,kt=Jt.allowClear,bn=Jt.maxLength,gn=Jt.onCompositionStart,Zn=Jt.onCompositionEnd,Gt=Jt.suffix,Rt=Jt.prefixCls,tn=Rt===void 0?"rc-textarea":Rt,zn=Jt.showCount,Yn=Jt.count,nt=Jt.className,Be=Jt.style,Re=Jt.disabled,Ze=Jt.hidden,st=Jt.classNames,Fe=Jt.styles,St=Jt.onResize,hn=Jt.onClear,On=Jt.onPressEnter,or=Jt.readOnly,jt=Jt.autoSize,Ut=Jt.onKeyDown,Qt=(0,Te.Z)(Jt,vt),En=(0,Je.Z)(bt,{value:ft,defaultValue:bt}),Mn=(0,je.Z)(En,2),Tn=Mn[0],Ht=Mn[1],Vn=Tn==null?"":String(Tn),Xt=It.useState(!1),nn=(0,je.Z)(Xt,2),fn=nn[0],Gn=nn[1],cn=It.useRef(!1),Et=It.useState(null),Jn=(0,je.Z)(Et,2),ir=Jn[0],Wt=Jn[1],wr=(0,It.useRef)(null),ei=(0,It.useRef)(null),Fr=function(){var oi;return(oi=ei.current)===null||oi===void 0?void 0:oi.textArea},Dn=function(){Fr().focus()};(0,It.useImperativeHandle)(Zt,function(){var dr;return{resizableTextArea:ei.current,focus:Dn,blur:function(){Fr().blur()},nativeElement:((dr=wr.current)===null||dr===void 0?void 0:dr.nativeElement)||Fr()}}),(0,It.useEffect)(function(){Gn(function(dr){return!Re&&dr})},[Re]);var ii=It.useState(null),Kr=(0,je.Z)(ii,2),cr=Kr[0],Dr=Kr[1];It.useEffect(function(){if(cr){var dr;(dr=Fr()).setSelectionRange.apply(dr,(0,Ie.Z)(cr))}},[cr]);var ri=(0,Ue.Z)(Yn,zn),_e=(vn=ri.max)!==null&&vn!==void 0?vn:bn,Mr=Number(_e)>0,Tr=ri.strategy(Vn),sr=!!_e&&Tr>_e,_r=function(oi,bi){var Pr=bi;!cn.current&&ri.exceedFormatter&&ri.max&&ri.strategy(bi)>ri.max&&(Pr=ri.exceedFormatter(bi,{max:ri.max}),bi!==Pr&&Dr([Fr().selectionStart||0,Fr().selectionEnd||0])),Ht(Pr),(0,mt.rJ)(oi.currentTarget,oi,dn,Pr)},Gr=function(oi){cn.current=!0,gn==null||gn(oi)},br=function(oi){cn.current=!1,_r(oi,oi.currentTarget.value),Zn==null||Zn(oi)},Ci=function(oi){_r(oi,oi.target.value)},Rn=function(oi){oi.key==="Enter"&&On&&On(oi),Ut==null||Ut(oi)},Pn=function(oi){Gn(!0),ct==null||ct(oi)},Sn=function(oi){Gn(!1),qt==null||qt(oi)},$n=function(oi){Ht(""),Dn(),(0,mt.rJ)(Fr(),oi,dn)},li=Gt,Yr;ri.show&&(ri.showFormatter?Yr=ri.showFormatter({value:Vn,count:Tr,maxLength:_e}):Yr="".concat(Tr).concat(Mr?" / ".concat(_e):""),li=It.createElement(It.Fragment,null,li,It.createElement("span",{className:lt()("".concat(tn,"-data-count"),st==null?void 0:st.count),style:Fe==null?void 0:Fe.count},Yr)));var ci=function(oi){var bi;St==null||St(oi),(bi=Fr())!==null&&bi!==void 0&&bi.style.height&&Wt(!0)},_n=!jt&&!zn&&!kt;return It.createElement(Qe.BaseInput,{ref:wr,value:Vn,allowClear:kt,handleReset:$n,suffix:li,prefixCls:tn,classNames:(0,ke.Z)((0,ke.Z)({},st),{},{affixWrapper:lt()(st==null?void 0:st.affixWrapper,(0,Ce.Z)((0,Ce.Z)({},"".concat(tn,"-show-count"),zn),"".concat(tn,"-textarea-allow-clear"),kt))}),disabled:Re,focused:fn,className:lt()(nt,sr&&"".concat(tn,"-out-of-range")),style:(0,ke.Z)((0,ke.Z)({},Be),ir&&!_n?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Yr=="string"?Yr:void 0}},hidden:Ze,readOnly:or,onClear:hn},It.createElement(ot,(0,oe.Z)({},Qt,{autoSize:jt,maxLength:bn,onKeyDown:Rn,onChange:Ci,onFocus:Pn,onBlur:Sn,onCompositionStart:Gr,onCompositionEnd:br,className:lt()(st==null?void 0:st.textarea),style:(0,ke.Z)((0,ke.Z)({},Fe==null?void 0:Fe.textarea),{},{resize:Be==null?void 0:Be.resize}),disabled:Re,prefixCls:tn,onResize:ci,ref:ei,readOnly:or})))}),Tt=xt,_t=Tt},9940:function(He,Ee,ae){"use strict";ae.d(Ee,{Qw:function(){return zn},FJ:function(){return nt},hT:function(){return Yn},OF:function(){return be},ZP:function(){return or}});var oe=ae(67711),Ce=ae(15142),ke=ae(98506),Ie=ae(16886),je=ae(33346),Te=ae(26420),Ge=ae(37463),lt=ae(6551),Qe=ae(34643),Ue=ae(18929),mt=ae(48736),Je=ae(59301),It=function(jt){var Ut=Je.useRef({valueLabels:new Map});return Je.useMemo(function(){var Qt=Ut.current.valueLabels,En=new Map,Mn=jt.map(function(Tn){var Ht=Tn.value,Vn=Tn.label,Xt=Vn!=null?Vn:Qt.get(Ht);return En.set(Ht,Xt),(0,ke.Z)((0,ke.Z)({},Tn),{},{label:Xt})});return Ut.current.valueLabels=En,[Mn]},[jt])},Oe=function(Ut,Qt,En,Mn){return Je.useMemo(function(){var Tn=function(Et){return Et.map(function(Jn){var ir=Jn.value;return ir})},Ht=Tn(Ut),Vn=Tn(Qt),Xt=Ht.filter(function(cn){return!Mn[cn]}),nn=Ht,fn=Vn;if(En){var Gn=(0,Qe.S)(Ht,!0,Mn);nn=Gn.checkedKeys,fn=Gn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ce.Z)(Xt),(0,Ce.Z)(nn)))),fn]},[Ut,Qt,En,Mn])},te=Oe,ee=ae(34061),he=function(jt,Ut){return Je.useMemo(function(){var Qt=(0,ee.I8)(jt,{fieldNames:Ut,initWrapper:function(Mn){return(0,ke.Z)((0,ke.Z)({},Mn),{},{valueEntities:new Map})},processEntity:function(Mn,Tn){var Ht=Mn.node[Ut.value];if(0)var Vn;Tn.valueEntities.set(Ht,Mn)}});return Qt},[jt,Ut])},ue=ae(52873),fe=ae(11592),me=function(){return null},be=me,Ae=["children","value"];function De(jt){return(0,fe.Z)(jt).map(function(Ut){if(!Je.isValidElement(Ut)||!Ut.type)return null;var Qt=Ut,En=Qt.key,Mn=Qt.props,Tn=Mn.children,Ht=Mn.value,Vn=(0,je.Z)(Mn,Ae),Xt=(0,ke.Z)({key:En,value:Ht},Vn),nn=De(Tn);return nn.length&&(Xt.children=nn),Xt}).filter(function(Ut){return Ut})}function Ye(jt){if(!jt)return jt;var Ut=(0,ke.Z)({},jt);return"props"in Ut||Object.defineProperty(Ut,"props",{get:function(){return(0,mt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ut}}),Ut}function rt(jt,Ut,Qt,En,Mn,Tn){var Ht=null,Vn=null;function Xt(){function nn(fn){var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return fn.map(function(Et,Jn){var ir="".concat(Gn,"-").concat(Jn),Wt=Et[Tn.value],wr=Qt.includes(Wt),ei=nn(Et[Tn.children]||[],ir,wr),Fr=Je.createElement(be,Et,ei.map(function(ii){return ii.node}));if(Ut===Wt&&(Ht=Fr),wr){var Dn={pos:ir,node:Fr,children:ei};return cn||Vn.push(Dn),Dn}return null}).filter(function(Et){return Et})}Vn||(Vn=[],nn(En),Vn.sort(function(fn,Gn){var cn=fn.node.props.value,Et=Gn.node.props.value,Jn=Qt.indexOf(cn),ir=Qt.indexOf(Et);return Jn-ir}))}Object.defineProperty(jt,"triggerNode",{get:function(){return(0,mt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Xt(),Ht}}),Object.defineProperty(jt,"allCheckedNodes",{get:function(){return(0,mt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Xt(),Mn?Vn:Vn.map(function(fn){var Gn=fn.node;return Gn})}})}var $e=function(Ut,Qt,En){var Mn=En.fieldNames,Tn=En.treeNodeFilterProp,Ht=En.filterTreeNode,Vn=Mn.children;return Je.useMemo(function(){if(!Qt||Ht===!1)return Ut;var Xt=typeof Ht=="function"?Ht:function(fn,Gn){return String(Gn[Tn]).toUpperCase().includes(Qt.toUpperCase())},nn=function fn(Gn){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Gn.reduce(function(Et,Jn){var ir=Jn[Vn],Wt=cn||Xt(Qt,Ye(Jn)),wr=fn(ir||[],Wt);return(Wt||wr.length)&&Et.push((0,ke.Z)((0,ke.Z)({},Jn),{},(0,ue.Z)({isLeaf:void 0},Vn,wr))),Et},[])};return nn(Ut)},[Ut,Qt,Vn,Tn,Ht])},at=$e;function ht(jt){var Ut=Je.useRef();Ut.current=jt;var Qt=Je.useCallback(function(){return Ut.current.apply(Ut,arguments)},[]);return Qt}function ot(jt,Ut){var Qt=Ut.id,En=Ut.pId,Mn=Ut.rootPId,Tn=new Map,Ht=[];return jt.forEach(function(Vn){var Xt=Vn[Qt],nn=(0,ke.Z)((0,ke.Z)({},Vn),{},{key:Vn.key||Xt});Tn.set(Xt,nn)}),Tn.forEach(function(Vn){var Xt=Vn[En],nn=Tn.get(Xt);nn?(nn.children=nn.children||[],nn.children.push(Vn)):(Xt===Mn||Mn===null)&&Ht.push(Vn)}),Ht}function vt(jt,Ut,Qt){return Je.useMemo(function(){if(jt){if(Qt){var En=(0,ke.Z)({id:"id",pId:"pId",rootPId:null},(0,Te.Z)(Qt)==="object"?Qt:{});return ot(jt,En)}return jt}return De(Ut)},[Ut,Qt,jt])}var xt=Je.createContext(null),Tt=xt,_t=ae(69889),Jt=ae(71598),Zt=ae(10228),vn=ae(80547),bt=Je.createContext(null),ft=bt,ct=function(Ut){return Array.isArray(Ut)?Ut:Ut!==void 0?[Ut]:[]},qt=function(Ut){var Qt=Ut||{},En=Qt.label,Mn=Qt.value,Tn=Qt.children;return{_title:En?[En]:["title","label"],value:Mn||"value",key:Mn||"value",children:Tn||"children"}},dn=function(Ut){return!Ut||Ut.disabled||Ut.disableCheckbox||Ut.checkable===!1},kt=function(Ut,Qt){var En=[],Mn=function Tn(Ht){Ht.forEach(function(Vn){var Xt=Vn[Qt.children];Xt&&(En.push(Vn[Qt.value]),Tn(Xt))})};return Mn(Ut),En},bn=function(Ut){return Ut==null},gn=ae(70425),Zn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Gt=function(Ut,Qt){var En=(0,Ge.lk)(),Mn=En.prefixCls,Tn=En.multiple,Ht=En.searchValue,Vn=En.toggleOpen,Xt=En.open,nn=En.notFoundContent,fn=Je.useContext(ft),Gn=fn.virtual,cn=fn.listHeight,Et=fn.listItemHeight,Jn=fn.listItemScrollOffset,ir=fn.treeData,Wt=fn.fieldNames,wr=fn.onSelect,ei=fn.dropdownMatchSelectWidth,Fr=fn.treeExpandAction,Dn=fn.treeTitleRender,ii=fn.onPopupScroll,Kr=fn.leftMaxCount,cr=fn.leafCountOnly,Dr=fn.valueEntities,ri=Je.useContext(Tt),_e=ri.checkable,Mr=ri.checkedKeys,Tr=ri.halfCheckedKeys,sr=ri.treeExpandedKeys,_r=ri.treeDefaultExpandAll,Gr=ri.treeDefaultExpandedKeys,br=ri.onTreeExpand,Ci=ri.treeIcon,Rn=ri.showTreeIcon,Pn=ri.switcherIcon,Sn=ri.treeLine,$n=ri.treeNodeFilterProp,li=ri.loadData,Yr=ri.treeLoadedKeys,ci=ri.treeMotion,_n=ri.onTreeLoad,dr=ri.keyEntities,oi=Je.useRef(),bi=(0,vn.Z)(function(){return ir},[Xt,ir],function(qn,Ui){return Ui[0]&&qn[1]!==Ui[1]}),Pr=Je.useMemo(function(){return _e?{checked:Mr,halfChecked:Tr}:null},[_e,Mr,Tr]);Je.useEffect(function(){if(Xt&&!Tn&&Mr.length){var qn;(qn=oi.current)===null||qn===void 0||qn.scrollTo({key:Mr[0]})}},[Xt]);var Lt=function(Ui){Ui.preventDefault()},ln=function(Ui,lr){var vi=lr.node;_e&&dn(vi)||(wr(vi.key,{selected:!Mr.includes(vi.key)}),Tn||Vn(!1))},Nr=Je.useState(Gr),Er=(0,Ie.Z)(Nr,2),Yt=Er[0],Nn=Er[1],Xr=Je.useState(null),Ln=(0,Ie.Z)(Xr,2),Ve=Ln[0],Rr=Ln[1],kr=Je.useMemo(function(){return sr?(0,Ce.Z)(sr):Ht?Ve:Yt},[Yt,Ve,sr,Ht]),jn=function(Ui){Nn(Ui),Rr(Ui),br&&br(Ui)},hi=String(Ht).toLowerCase(),jr=function(Ui){return hi?String(Ui[$n]).toLowerCase().includes(hi):!1};Je.useEffect(function(){Ht&&Rr(kt(ir,Wt))},[Ht]);var ar=Je.useState(function(){return new Map}),Qr=(0,Ie.Z)(ar,2),un=Qr[0],Ti=Qr[1];Je.useEffect(function(){Kr&&Ti(new Map)},[Kr]);function eo(qn){var Ui=qn[Wt.value];if(!un.has(Ui)){var lr=Dr.get(Ui),vi=(lr.children||[]).length===0;if(vi)un.set(Ui,!1);else{var Vi=lr.children.filter(function(fo){return!fo.node.disabled&&!fo.node.disableCheckbox&&!Mr.includes(fo.node[Wt.value])}),Oi=Vi.length;un.set(Ui,Oi>Kr)}}return un.get(Ui)}var mn=(0,gn.zX)(function(qn){var Ui=qn[Wt.value];return Mr.includes(Ui)||Kr===null?!1:Kr<=0?!0:cr&&Kr?eo(qn):!1}),wi=function qn(Ui){var lr=(0,_t.Z)(Ui),vi;try{for(lr.s();!(vi=lr.n()).done;){var Vi=vi.value;if(!(Vi.disabled||Vi.selectable===!1)){if(Ht){if(jr(Vi))return Vi}else return Vi;if(Vi[Wt.children]){var Oi=qn(Vi[Wt.children]);if(Oi)return Oi}}}}catch(fo){lr.e(fo)}finally{lr.f()}return null},Di=Je.useState(null),gi=(0,Ie.Z)(Di,2),ki=gi[0],zi=gi[1],ro=dr[ki];Je.useEffect(function(){if(Xt){var qn=null,Ui=function(){var vi=wi(bi);return vi?vi[Wt.value]:null};!Tn&&Mr.length&&!Ht?qn=Mr[0]:qn=Ui(),zi(qn)}},[Xt,Ht]),Je.useImperativeHandle(Qt,function(){var qn;return{scrollTo:(qn=oi.current)===null||qn===void 0?void 0:qn.scrollTo,onKeyDown:function(lr){var vi,Vi=lr.which;switch(Vi){case Zt.Z.UP:case Zt.Z.DOWN:case Zt.Z.LEFT:case Zt.Z.RIGHT:(vi=oi.current)===null||vi===void 0||vi.onKeyDown(lr);break;case Zt.Z.ENTER:{if(ro){var Oi=mn(ro.node),fo=(ro==null?void 0:ro.node)||{},co=fo.selectable,ji=fo.value,zo=fo.disabled;co!==!1&&!zo&&!Oi&&ln(null,{node:{key:ki},selected:!Mr.includes(ji)})}break}case Zt.Z.ESC:Vn(!1)}},onKeyUp:function(){}}});var Gi=(0,vn.Z)(function(){return!Ht},[Ht,sr||Yt],function(qn,Ui){var lr=(0,Ie.Z)(qn,1),vi=lr[0],Vi=(0,Ie.Z)(Ui,2),Oi=Vi[0],fo=Vi[1];return vi!==Oi&&!!(Oi||fo)}),Fi=Gi?li:null;if(bi.length===0)return Je.createElement("div",{role:"listbox",className:"".concat(Mn,"-empty"),onMouseDown:Lt},nn);var io={fieldNames:Wt};return Yr&&(io.loadedKeys=Yr),kr&&(io.expandedKeys=kr),Je.createElement("div",{onMouseDown:Lt},ro&&Xt&&Je.createElement("span",{style:Zn,"aria-live":"assertive"},ro.node.value),Je.createElement(Jt.y6.Provider,{value:{nodeDisabled:mn}},Je.createElement(Jt.ZP,(0,oe.Z)({ref:oi,focusable:!1,prefixCls:"".concat(Mn,"-tree"),treeData:bi,height:cn,itemHeight:Et,itemScrollOffset:Jn,virtual:Gn!==!1&&ei!==!1,multiple:Tn,icon:Ci,showIcon:Rn,switcherIcon:Pn,showLine:Sn,loadData:Fi,motion:ci,activeKey:ki,checkable:_e,checkStrictly:!0,checkedKeys:Pr,selectedKeys:_e?[]:Mr,defaultExpandAll:_r,titleRender:Dn},io,{onActiveChange:zi,onSelect:ln,onCheck:ln,onExpand:jn,onLoad:_n,filterTreeNode:jr,expandAction:Fr,onScroll:ii}))))},Rt=Je.forwardRef(Gt),tn=Rt,zn="SHOW_ALL",Yn="SHOW_PARENT",nt="SHOW_CHILD";function Be(jt,Ut,Qt,En){var Mn=new Set(jt);return Ut===nt?jt.filter(function(Tn){var Ht=Qt[Tn];return!Ht||!Ht.children||!Ht.children.some(function(Vn){var Xt=Vn.node;return Mn.has(Xt[En.value])})||!Ht.children.every(function(Vn){var Xt=Vn.node;return dn(Xt)||Mn.has(Xt[En.value])})}):Ut===Yn?jt.filter(function(Tn){var Ht=Qt[Tn],Vn=Ht?Ht.parent:null;return!Vn||dn(Vn.node)||!Mn.has(Vn.key)}):jt}function Re(jt){var Ut=jt.searchPlaceholder,Qt=jt.treeCheckStrictly,En=jt.treeCheckable,Mn=jt.labelInValue,Tn=jt.value,Ht=jt.multiple,Vn=jt.showCheckedStrategy,Xt=jt.maxCount;warning(!Ut,"`searchPlaceholder` has been removed."),Qt&&Mn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Mn||Qt)&&warning(toArray(Tn).every(function(nn){return nn&&_typeof(nn)==="object"&&"value"in nn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Qt||Ht||En?warning(!Tn||Array.isArray(Tn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Tn),"`value` should not be array when `TreeSelect` is single mode."),Xt&&(Vn==="SHOW_ALL"&&!Qt||Vn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Ze=null,st=["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 Fe(jt){return!jt||(0,Te.Z)(jt)!=="object"}var St=Je.forwardRef(function(jt,Ut){var Qt=jt.id,En=jt.prefixCls,Mn=En===void 0?"rc-tree-select":En,Tn=jt.value,Ht=jt.defaultValue,Vn=jt.onChange,Xt=jt.onSelect,nn=jt.onDeselect,fn=jt.searchValue,Gn=jt.inputValue,cn=jt.onSearch,Et=jt.autoClearSearchValue,Jn=Et===void 0?!0:Et,ir=jt.filterTreeNode,Wt=jt.treeNodeFilterProp,wr=Wt===void 0?"value":Wt,ei=jt.showCheckedStrategy,Fr=jt.treeNodeLabelProp,Dn=jt.multiple,ii=jt.treeCheckable,Kr=jt.treeCheckStrictly,cr=jt.labelInValue,Dr=jt.maxCount,ri=jt.fieldNames,_e=jt.treeDataSimpleMode,Mr=jt.treeData,Tr=jt.children,sr=jt.loadData,_r=jt.treeLoadedKeys,Gr=jt.onTreeLoad,br=jt.treeDefaultExpandAll,Ci=jt.treeExpandedKeys,Rn=jt.treeDefaultExpandedKeys,Pn=jt.onTreeExpand,Sn=jt.treeExpandAction,$n=jt.virtual,li=jt.listHeight,Yr=li===void 0?200:li,ci=jt.listItemHeight,_n=ci===void 0?20:ci,dr=jt.listItemScrollOffset,oi=dr===void 0?0:dr,bi=jt.onDropdownVisibleChange,Pr=jt.dropdownMatchSelectWidth,Lt=Pr===void 0?!0:Pr,ln=jt.treeLine,Nr=jt.treeIcon,Er=jt.showTreeIcon,Yt=jt.switcherIcon,Nn=jt.treeMotion,Xr=jt.treeTitleRender,Ln=jt.onPopupScroll,Ve=(0,je.Z)(jt,st),Rr=(0,lt.ZP)(Qt),kr=ii&&!Kr,jn=ii||Kr,hi=Kr||cr,jr=jn||Dn,ar=(0,Ue.Z)(Ht,{value:Tn}),Qr=(0,Ie.Z)(ar,2),un=Qr[0],Ti=Qr[1],eo=Je.useMemo(function(){return ii?ei||nt:zn},[ei,ii]),mn=Je.useMemo(function(){return qt(ri)},[JSON.stringify(ri)]),wi=(0,Ue.Z)("",{value:fn!==void 0?fn:Gn,postState:function(an){return an||""}}),Di=(0,Ie.Z)(wi,2),gi=Di[0],ki=Di[1],zi=function(an){ki(an),cn==null||cn(an)},ro=vt(Mr,Tr,_e),Gi=he(ro,mn),Fi=Gi.keyEntities,io=Gi.valueEntities,qn=Je.useCallback(function(Qn){var an=[],hr=[];return Qn.forEach(function(Vr){io.has(Vr)?hr.push(Vr):an.push(Vr)}),{missingRawValues:an,existRawValues:hr}},[io]),Ui=at(ro,gi,{fieldNames:mn,treeNodeFilterProp:wr,filterTreeNode:ir}),lr=Je.useCallback(function(Qn){if(Qn){if(Fr)return Qn[Fr];for(var an=mn._title,hr=0;hr<an.length;hr+=1){var Vr=Qn[an[hr]];if(Vr!==void 0)return Vr}}},[mn,Fr]),vi=Je.useCallback(function(Qn){var an=ct(Qn);return an.map(function(hr){return Fe(hr)?{value:hr}:hr})},[]),Vi=Je.useCallback(function(Qn){var an=vi(Qn);return an.map(function(hr){var Vr=hr.label,Ai=hr.value,si=hr.halfChecked,Si,Ii=io.get(Ai);if(Ii){var Bi;Vr=Xr?Xr(Ii.node):(Bi=Vr)!==null&&Bi!==void 0?Bi:lr(Ii.node),Si=Ii.node.disabled}else if(Vr===void 0){var ao=vi(un).find(function(wo){return wo.value===Ai});Vr=ao.label}return{label:Vr,value:Ai,halfChecked:si,disabled:Si}})},[io,lr,vi,un]),Oi=Je.useMemo(function(){return vi(un===null?[]:un)},[vi,un]),fo=Je.useMemo(function(){var Qn=[],an=[];return Oi.forEach(function(hr){hr.halfChecked?an.push(hr):Qn.push(hr)}),[Qn,an]},[Oi]),co=(0,Ie.Z)(fo,2),ji=co[0],zo=co[1],Fn=Je.useMemo(function(){return ji.map(function(Qn){return Qn.value})},[ji]),mr=te(ji,zo,kr,Fi),wn=(0,Ie.Z)(mr,2),it=wn[0],Or=wn[1],Wr=Je.useMemo(function(){var Qn=Be(it,eo,Fi,mn),an=Qn.map(function(si){var Si,Ii;return(Si=(Ii=Fi[si])===null||Ii===void 0||(Ii=Ii.node)===null||Ii===void 0?void 0:Ii[mn.value])!==null&&Si!==void 0?Si:si}),hr=an.map(function(si){var Si=ji.find(function(Bi){return Bi.value===si}),Ii=cr?Si==null?void 0:Si.label:Xr==null?void 0:Xr(Si);return{value:si,label:Ii}}),Vr=Vi(hr),Ai=Vr[0];return!jr&&Ai&&bn(Ai.value)&&bn(Ai.label)?[]:Vr.map(function(si){var Si;return(0,ke.Z)((0,ke.Z)({},si),{},{label:(Si=si.label)!==null&&Si!==void 0?Si:si.value})})},[mn,jr,it,ji,Vi,eo,Fi]),pi=It(Wr),di=(0,Ie.Z)(pi,1),ai=di[0],gr=Je.useMemo(function(){return jr&&(eo==="SHOW_CHILD"||Kr||!ii)?Dr:null},[Dr,jr,Kr,eo,ii]),pt=ht(function(Qn,an,hr){var Vr=Be(Qn,eo,Fi,mn);if(!(gr&&Vr.length>gr)){var Ai=Vi(Qn);if(Ti(Ai),Jn&&ki(""),Vn){var si=Qn;kr&&(si=Vr.map(function(Zi){var Mi=io.get(Zi);return Mi?Mi.node[mn.value]:Zi}));var Si=an||{triggerValue:void 0,selected:void 0},Ii=Si.triggerValue,Bi=Si.selected,ao=si;if(Kr){var wo=zo.filter(function(Zi){return!si.includes(Zi.value)});ao=[].concat((0,Ce.Z)(ao),(0,Ce.Z)(wo))}var Ho=Vi(ao),An={preValue:ji,triggerValue:Ii},ko=!0;(Kr||hr==="selection"&&!Bi)&&(ko=!1),rt(An,Ii,Qn,ro,ko,mn),jn?An.checked=Bi:An.selected=Bi;var po=hi?Ho:Ho.map(function(Zi){return Zi.value});Vn(jr?po:po[0],hi?null:Ho.map(function(Zi){return Zi.label}),An)}}}),yn=Je.useCallback(function(Qn,an){var hr,Vr=an.selected,Ai=an.source,si=Fi[Qn],Si=si==null?void 0:si.node,Ii=(hr=Si==null?void 0:Si[mn.value])!==null&&hr!==void 0?hr:Qn;if(!jr)pt([Ii],{selected:!0,triggerValue:Ii},"option");else{var Bi=Vr?[].concat((0,Ce.Z)(Fn),[Ii]):it.filter(function(Mi){return Mi!==Ii});if(kr){var ao=qn(Bi),wo=ao.missingRawValues,Ho=ao.existRawValues,An=Ho.map(function(Mi){return io.get(Mi).key}),ko;if(Vr){var po=(0,Qe.S)(An,!0,Fi);ko=po.checkedKeys}else{var Zi=(0,Qe.S)(An,{checked:!1,halfCheckedKeys:Or},Fi);ko=Zi.checkedKeys}Bi=[].concat((0,Ce.Z)(wo),(0,Ce.Z)(ko.map(function(Mi){return Fi[Mi].node[mn.value]})))}pt(Bi,{selected:Vr,triggerValue:Ii},Ai||"option")}Vr||!jr?Xt==null||Xt(Ii,Ye(Si)):nn==null||nn(Ii,Ye(Si))},[qn,io,Fi,mn,jr,Fn,pt,kr,Xt,nn,it,Or,Dr]),xn=Je.useCallback(function(Qn){if(bi){var an={};Object.defineProperty(an,"documentClickClose",{get:function(){return(0,mt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),bi(Qn,an)}},[bi]),Hn=ht(function(Qn,an){var hr=Qn.map(function(Vr){return Vr.value});if(an.type==="clear"){pt(hr,{},"selection");return}an.values.length&&yn(an.values[0].value,{selected:!1,source:"selection"})}),pn=Je.useMemo(function(){return{virtual:$n,dropdownMatchSelectWidth:Lt,listHeight:Yr,listItemHeight:_n,listItemScrollOffset:oi,treeData:Ui,fieldNames:mn,onSelect:yn,treeExpandAction:Sn,treeTitleRender:Xr,onPopupScroll:Ln,leftMaxCount:Dr===void 0?null:Dr-ai.length,leafCountOnly:eo==="SHOW_CHILD"&&!Kr&&!!ii,valueEntities:io}},[$n,Lt,Yr,_n,oi,Ui,mn,yn,Sn,Xr,Ln,Dr,ai.length,eo,Kr,ii,io]),tr=Je.useMemo(function(){return{checkable:jn,loadData:sr,treeLoadedKeys:_r,onTreeLoad:Gr,checkedKeys:it,halfCheckedKeys:Or,treeDefaultExpandAll:br,treeExpandedKeys:Ci,treeDefaultExpandedKeys:Rn,onTreeExpand:Pn,treeIcon:Nr,treeMotion:Nn,showTreeIcon:Er,switcherIcon:Yt,treeLine:ln,treeNodeFilterProp:wr,keyEntities:Fi}},[jn,sr,_r,Gr,it,Or,br,Ci,Rn,Pn,Nr,Nn,Er,Yt,ln,wr,Fi]);return Je.createElement(ft.Provider,{value:pn},Je.createElement(Tt.Provider,{value:tr},Je.createElement(Ge.Ac,(0,oe.Z)({ref:Ut},Ve,{id:Rr,prefixCls:Mn,mode:jr?"multiple":void 0,displayValues:ai,onDisplayValuesChange:Hn,searchValue:gi,onSearch:zi,OptionList:tn,emptyOptions:!ro.length,onDropdownVisibleChange:xn,dropdownMatchSelectWidth:Lt}))))}),hn=St;hn.TreeNode=be,hn.SHOW_ALL=zn,hn.SHOW_PARENT=Yn,hn.SHOW_CHILD=nt;var On=hn,or=On},639:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(67711),Ce=ae(52873),ke=ae(98506),Ie=ae(16886),je=ae(33346),Te=ae(59301),Ge=ae(92310),lt=ae.n(Ge),Qe=ae(26112),Ue=ae(30699),mt=function(Ae){for(var De=Ae.prefixCls,Ye=Ae.level,rt=Ae.isStart,$e=Ae.isEnd,at="".concat(De,"-indent-unit"),ht=[],ot=0;ot<Ye;ot+=1)ht.push(Te.createElement("span",{key:ot,className:lt()(at,(0,Ce.Z)((0,Ce.Z)({},"".concat(at,"-start"),rt[ot]),"".concat(at,"-end"),$e[ot]))}));return Te.createElement("span",{"aria-hidden":"true",className:"".concat(De,"-indent")},ht)},Je=Te.memo(mt),It=ae(65065),Oe=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,Ye,rt,$e=Ae.eventKey,at=Ae.className,ht=Ae.style,ot=Ae.dragOver,vt=Ae.dragOverGapTop,xt=Ae.dragOverGapBottom,Tt=Ae.isLeaf,_t=Ae.isStart,Jt=Ae.isEnd,Zt=Ae.expanded,vn=Ae.selected,bt=Ae.checked,ft=Ae.halfChecked,ct=Ae.loading,qt=Ae.domRef,dn=Ae.active,kt=Ae.data,bn=Ae.onMouseMove,gn=Ae.selectable,Zn=(0,je.Z)(Ae,te),Gt=Te.useContext(Ue.k),Rt=Te.useContext(Ue.y),tn=Te.useRef(null),zn=Te.useState(!1),Yn=(0,Ie.Z)(zn,2),nt=Yn[0],Be=Yn[1],Re=!!(Gt.disabled||Ae.disabled||(De=Rt.nodeDisabled)!==null&&De!==void 0&&De.call(Rt,kt)),Ze=Te.useMemo(function(){return!Gt.checkable||Ae.checkable===!1?!1:Gt.checkable},[Gt.checkable,Ae.checkable]),st=function(Tr){Re||Gt.onNodeSelect(Tr,(0,Oe.F)(Ae))},Fe=function(Tr){Re||!Ze||Ae.disableCheckbox||Gt.onNodeCheck(Tr,(0,Oe.F)(Ae),!bt)},St=Te.useMemo(function(){return typeof gn=="boolean"?gn:Gt.selectable},[gn,Gt.selectable]),hn=function(Tr){Gt.onNodeClick(Tr,(0,Oe.F)(Ae)),St?st(Tr):Fe(Tr)},On=function(Tr){Gt.onNodeDoubleClick(Tr,(0,Oe.F)(Ae))},or=function(Tr){Gt.onNodeMouseEnter(Tr,(0,Oe.F)(Ae))},jt=function(Tr){Gt.onNodeMouseLeave(Tr,(0,Oe.F)(Ae))},Ut=function(Tr){Gt.onNodeContextMenu(Tr,(0,Oe.F)(Ae))},Qt=Te.useMemo(function(){return!!(Gt.draggable&&(!Gt.draggable.nodeDraggable||Gt.draggable.nodeDraggable(kt)))},[Gt.draggable,kt]),En=function(Tr){Tr.stopPropagation(),Be(!0),Gt.onNodeDragStart(Tr,Ae);try{Tr.dataTransfer.setData("text/plain","")}catch(sr){}},Mn=function(Tr){Tr.preventDefault(),Tr.stopPropagation(),Gt.onNodeDragEnter(Tr,Ae)},Tn=function(Tr){Tr.preventDefault(),Tr.stopPropagation(),Gt.onNodeDragOver(Tr,Ae)},Ht=function(Tr){Tr.stopPropagation(),Gt.onNodeDragLeave(Tr,Ae)},Vn=function(Tr){Tr.stopPropagation(),Be(!1),Gt.onNodeDragEnd(Tr,Ae)},Xt=function(Tr){Tr.preventDefault(),Tr.stopPropagation(),Be(!1),Gt.onNodeDrop(Tr,Ae)},nn=function(Tr){ct||Gt.onNodeExpand(Tr,(0,Oe.F)(Ae))},fn=Te.useMemo(function(){var Mr=(0,It.Z)(Gt.keyEntities,$e)||{},Tr=Mr.children;return!!(Tr||[]).length},[Gt.keyEntities,$e]),Gn=Te.useMemo(function(){return Tt===!1?!1:Tt||!Gt.loadData&&!fn||Gt.loadData&&Ae.loaded&&!fn},[Tt,Gt.loadData,fn,Ae.loaded]);Te.useEffect(function(){ct||typeof Gt.loadData=="function"&&Zt&&!Gn&&!Ae.loaded&&Gt.onNodeLoad((0,Oe.F)(Ae))},[ct,Gt.loadData,Gt.onNodeLoad,Zt,Gn,Ae]);var cn=Te.useMemo(function(){var Mr;return(Mr=Gt.draggable)!==null&&Mr!==void 0&&Mr.icon?Te.createElement("span",{className:"".concat(Gt.prefixCls,"-draggable-icon")},Gt.draggable.icon):null},[Gt.draggable]),Et=function(Tr){var sr=Ae.switcherIcon||Gt.switcherIcon;return typeof sr=="function"?sr((0,ke.Z)((0,ke.Z)({},Ae),{},{isLeaf:Tr})):sr},Jn=function(){if(Gn){var Tr=Et(!0);return Tr!==!1?Te.createElement("span",{className:lt()("".concat(Gt.prefixCls,"-switcher"),"".concat(Gt.prefixCls,"-switcher-noop"))},Tr):null}var sr=Et(!1);return sr!==!1?Te.createElement("span",{onClick:nn,className:lt()("".concat(Gt.prefixCls,"-switcher"),"".concat(Gt.prefixCls,"-switcher_").concat(Zt?ee:he))},sr):null},ir=Te.useMemo(function(){if(!Ze)return null;var Mr=typeof Ze!="boolean"?Ze:null;return Te.createElement("span",{className:lt()("".concat(Gt.prefixCls,"-checkbox"),(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(Gt.prefixCls,"-checkbox-checked"),bt),"".concat(Gt.prefixCls,"-checkbox-indeterminate"),!bt&&ft),"".concat(Gt.prefixCls,"-checkbox-disabled"),Re||Ae.disableCheckbox)),onClick:Fe,role:"checkbox","aria-checked":ft?"mixed":bt,"aria-disabled":Re||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},Mr)},[Ze,bt,ft,Re,Ae.disableCheckbox,Ae.title]),Wt=Te.useMemo(function(){return Gn?null:Zt?ee:he},[Gn,Zt]),wr=Te.useMemo(function(){return Te.createElement("span",{className:lt()("".concat(Gt.prefixCls,"-iconEle"),"".concat(Gt.prefixCls,"-icon__").concat(Wt||"docu"),(0,Ce.Z)({},"".concat(Gt.prefixCls,"-icon_loading"),ct))})},[Gt.prefixCls,Wt,ct]),ei=Te.useMemo(function(){var Mr=!!Gt.draggable,Tr=!Ae.disabled&&Mr&&Gt.dragOverNodeKey===$e;return Tr?Gt.dropIndicatorRender({dropPosition:Gt.dropPosition,dropLevelOffset:Gt.dropLevelOffset,indent:Gt.indent,prefixCls:Gt.prefixCls,direction:Gt.direction}):null},[Gt.dropPosition,Gt.dropLevelOffset,Gt.indent,Gt.prefixCls,Gt.direction,Gt.draggable,Gt.dragOverNodeKey,Gt.dropIndicatorRender]),Fr=Te.useMemo(function(){var Mr=Ae.title,Tr=Mr===void 0?ue:Mr,sr="".concat(Gt.prefixCls,"-node-content-wrapper"),_r;if(Gt.showIcon){var Gr=Ae.icon||Gt.icon;_r=Gr?Te.createElement("span",{className:lt()("".concat(Gt.prefixCls,"-iconEle"),"".concat(Gt.prefixCls,"-icon__customize"))},typeof Gr=="function"?Gr(Ae):Gr):wr}else Gt.loadData&&ct&&(_r=wr);var br;return typeof Tr=="function"?br=Tr(kt):Gt.titleRender?br=Gt.titleRender(kt):br=Tr,Te.createElement("span",{ref:tn,title:typeof Tr=="string"?Tr:"",className:lt()(sr,"".concat(sr,"-").concat(Wt||"normal"),(0,Ce.Z)({},"".concat(Gt.prefixCls,"-node-selected"),!Re&&(vn||nt))),onMouseEnter:or,onMouseLeave:jt,onContextMenu:Ut,onClick:hn,onDoubleClick:On},_r,Te.createElement("span",{className:"".concat(Gt.prefixCls,"-title")},br),ei)},[Gt.prefixCls,Gt.showIcon,Ae,Gt.icon,wr,Gt.titleRender,kt,Wt,or,jt,Ut,hn,On]),Dn=(0,Qe.Z)(Zn,{aria:!0,data:!0}),ii=(0,It.Z)(Gt.keyEntities,$e)||{},Kr=ii.level,cr=Jt[Jt.length-1],Dr=!Re&&Qt,ri=Gt.draggingNodeKey===$e,_e=gn!==void 0?{"aria-selected":!!gn}:void 0;return Te.createElement("div",(0,oe.Z)({ref:qt,role:"treeitem","aria-expanded":Tt?void 0:Zt,className:lt()(at,"".concat(Gt.prefixCls,"-treenode"),(rt={},(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)(rt,"".concat(Gt.prefixCls,"-treenode-disabled"),Re),"".concat(Gt.prefixCls,"-treenode-switcher-").concat(Zt?"open":"close"),!Tt),"".concat(Gt.prefixCls,"-treenode-checkbox-checked"),bt),"".concat(Gt.prefixCls,"-treenode-checkbox-indeterminate"),ft),"".concat(Gt.prefixCls,"-treenode-selected"),vn),"".concat(Gt.prefixCls,"-treenode-loading"),ct),"".concat(Gt.prefixCls,"-treenode-active"),dn),"".concat(Gt.prefixCls,"-treenode-leaf-last"),cr),"".concat(Gt.prefixCls,"-treenode-draggable"),Qt),"dragging",ri),(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)(rt,"drop-target",Gt.dropTargetKey===$e),"drop-container",Gt.dropContainerKey===$e),"drag-over",!Re&&ot),"drag-over-gap-top",!Re&&vt),"drag-over-gap-bottom",!Re&&xt),"filter-node",(Ye=Gt.filterTreeNode)===null||Ye===void 0?void 0:Ye.call(Gt,(0,Oe.F)(Ae))),"".concat(Gt.prefixCls,"-treenode-leaf"),Gn))),style:ht,draggable:Dr,onDragStart:Dr?En:void 0,onDragEnter:Qt?Mn:void 0,onDragOver:Qt?Tn:void 0,onDragLeave:Qt?Ht:void 0,onDrop:Qt?Xt:void 0,onDragEnd:Qt?Vn:void 0,onMouseMove:bn},_e,Dn),Te.createElement(Je,{prefixCls:Gt.prefixCls,level:Kr,isStart:_t,isEnd:Jt}),cn,Jn(),ir,Fr)};fe.isTreeNode=1;var me=fe},30699:function(He,Ee,ae){"use strict";ae.d(Ee,{k:function(){return Ce},y:function(){return ke}});var oe=ae(59301),Ce=oe.createContext(null),ke=oe.createContext({})},71598:function(He,Ee,ae){"use strict";ae.d(Ee,{OF:function(){return $e.Z},y6:function(){return he.y},ZP:function(){return Re}});var oe=ae(67711),Ce=ae(26420),ke=ae(98506),Ie=ae(15142),je=ae(42573),Te=ae(58698),Ge=ae(62437),lt=ae(74700),Qe=ae(45080),Ue=ae(52873),mt=ae(92310),Je=ae.n(mt),It=ae(10228),Oe=ae(26112),te=ae(48736),ee=ae(59301),he=ae(30699),ue=function(st){var Fe=st.dropPosition,St=st.dropLevelOffset,hn=st.indent,On={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Fe){case-1:On.top=0,On.left=-St*hn;break;case 1:On.bottom=0,On.left=-St*hn;break;case 0:On.bottom=0,On.left=hn;break}return ee.createElement("div",{style:On})},fe=ue;function me(Ze){if(Ze==null)throw new TypeError("Cannot destructure "+Ze)}var be=ae(16886),Ae=ae(33346),De=ae(34280),Ye=ae(6790),rt=ae(77900),$e=ae(639);function at(Ze,st){var Fe=ee.useState(!1),St=(0,be.Z)(Fe,2),hn=St[0],On=St[1];(0,De.Z)(function(){if(hn)return Ze(),function(){st()}},[hn]),(0,De.Z)(function(){return On(!0),function(){On(!1)}},[])}var ht=at,ot=ae(34061),vt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],xt=ee.forwardRef(function(Ze,st){var Fe=Ze.className,St=Ze.style,hn=Ze.motion,On=Ze.motionNodes,or=Ze.motionType,jt=Ze.onMotionStart,Ut=Ze.onMotionEnd,Qt=Ze.active,En=Ze.treeNodeRequiredProps,Mn=(0,Ae.Z)(Ze,vt),Tn=ee.useState(!0),Ht=(0,be.Z)(Tn,2),Vn=Ht[0],Xt=Ht[1],nn=ee.useContext(he.k),fn=nn.prefixCls,Gn=On&&or!=="hide";(0,De.Z)(function(){On&&Gn!==Vn&&Xt(Gn)},[On]);var cn=function(){On&&jt()},Et=ee.useRef(!1),Jn=function(){On&&!Et.current&&(Et.current=!0,Ut())};ht(cn,Jn);var ir=function(wr){Gn===wr&&Jn()};return On?ee.createElement(rt.default,(0,oe.Z)({ref:st,visible:Vn},hn,{motionAppear:or==="show",onVisibleChanged:ir}),function(Wt,wr){var ei=Wt.className,Fr=Wt.style;return ee.createElement("div",{ref:wr,className:Je()("".concat(fn,"-treenode-motion"),ei),style:Fr},On.map(function(Dn){var ii=Object.assign({},(me(Dn.data),Dn.data)),Kr=Dn.title,cr=Dn.key,Dr=Dn.isStart,ri=Dn.isEnd;delete ii.children;var _e=(0,ot.H8)(cr,En);return ee.createElement($e.Z,(0,oe.Z)({},ii,_e,{title:Kr,active:Qt,data:Dn.data,key:cr,isStart:Dr,isEnd:ri}))}))}):ee.createElement($e.Z,(0,oe.Z)({domRef:st,className:Fe,style:St},Mn,{active:Qt}))}),Tt=xt;function _t(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fe=Ze.length,St=st.length;if(Math.abs(Fe-St)!==1)return{add:!1,key:null};function hn(On,or){var jt=new Map;On.forEach(function(Qt){jt.set(Qt,!0)});var Ut=or.filter(function(Qt){return!jt.has(Qt)});return Ut.length===1?Ut[0]:null}return Fe<St?{add:!0,key:hn(Ze,st)}:{add:!1,key:hn(st,Ze)}}function Jt(Ze,st,Fe){var St=Ze.findIndex(function(jt){return jt.key===Fe}),hn=Ze[St+1],On=st.findIndex(function(jt){return jt.key===Fe});if(hn){var or=st.findIndex(function(jt){return jt.key===hn.key});return st.slice(On+1,or)}return st.slice(On+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"],vn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},bt=function(){},ft="RC_TREE_MOTION_".concat(Math.random()),ct={key:ft},qt={key:ft,level:0,index:0,pos:"0",node:ct,nodes:[ct]},dn={parent:null,children:[],pos:qt.pos,data:ct,title:null,key:ft,isStart:[],isEnd:[]};function kt(Ze,st,Fe,St){return st===!1||!Fe?Ze:Ze.slice(0,Math.ceil(Fe/St)+1)}function bn(Ze){var st=Ze.key,Fe=Ze.pos;return(0,ot.km)(st,Fe)}function gn(Ze){for(var st=String(Ze.data.key),Fe=Ze;Fe.parent;)Fe=Fe.parent,st="".concat(Fe.data.key," > ").concat(st);return st}var Zn=ee.forwardRef(function(Ze,st){var Fe=Ze.prefixCls,St=Ze.data,hn=Ze.selectable,On=Ze.checkable,or=Ze.expandedKeys,jt=Ze.selectedKeys,Ut=Ze.checkedKeys,Qt=Ze.loadedKeys,En=Ze.loadingKeys,Mn=Ze.halfCheckedKeys,Tn=Ze.keyEntities,Ht=Ze.disabled,Vn=Ze.dragging,Xt=Ze.dragOverNodeKey,nn=Ze.dropPosition,fn=Ze.motion,Gn=Ze.height,cn=Ze.itemHeight,Et=Ze.virtual,Jn=Ze.scrollWidth,ir=Ze.focusable,Wt=Ze.activeItem,wr=Ze.focused,ei=Ze.tabIndex,Fr=Ze.onKeyDown,Dn=Ze.onFocus,ii=Ze.onBlur,Kr=Ze.onActiveChange,cr=Ze.onListChangeStart,Dr=Ze.onListChangeEnd,ri=(0,Ae.Z)(Ze,Zt),_e=ee.useRef(null),Mr=ee.useRef(null);ee.useImperativeHandle(st,function(){return{scrollTo:function(Ln){_e.current.scrollTo(Ln)},getIndentWidth:function(){return Mr.current.offsetWidth}}});var Tr=ee.useState(or),sr=(0,be.Z)(Tr,2),_r=sr[0],Gr=sr[1],br=ee.useState(St),Ci=(0,be.Z)(br,2),Rn=Ci[0],Pn=Ci[1],Sn=ee.useState(St),$n=(0,be.Z)(Sn,2),li=$n[0],Yr=$n[1],ci=ee.useState([]),_n=(0,be.Z)(ci,2),dr=_n[0],oi=_n[1],bi=ee.useState(null),Pr=(0,be.Z)(bi,2),Lt=Pr[0],ln=Pr[1],Nr=ee.useRef(St);Nr.current=St;function Er(){var Xr=Nr.current;Pn(Xr),Yr(Xr),oi([]),ln(null),Dr()}(0,De.Z)(function(){Gr(or);var Xr=_t(_r,or);if(Xr.key!==null)if(Xr.add){var Ln=Rn.findIndex(function(jr){var ar=jr.key;return ar===Xr.key}),Ve=kt(Jt(Rn,St,Xr.key),Et,Gn,cn),Rr=Rn.slice();Rr.splice(Ln+1,0,dn),Yr(Rr),oi(Ve),ln("show")}else{var kr=St.findIndex(function(jr){var ar=jr.key;return ar===Xr.key}),jn=kt(Jt(St,Rn,Xr.key),Et,Gn,cn),hi=St.slice();hi.splice(kr+1,0,dn),Yr(hi),oi(jn),ln("hide")}else Rn!==St&&(Pn(St),Yr(St))},[or,St]),ee.useEffect(function(){Vn||Er()},[Vn]);var Yt=fn?li:St,Nn={expandedKeys:or,selectedKeys:jt,loadedKeys:Qt,loadingKeys:En,checkedKeys:Ut,halfCheckedKeys:Mn,dragOverNodeKey:Xt,dropPosition:nn,keyEntities:Tn};return ee.createElement(ee.Fragment,null,wr&&Wt&&ee.createElement("span",{style:vn,"aria-live":"assertive"},gn(Wt)),ee.createElement("div",null,ee.createElement("input",{style:vn,disabled:ir===!1||Ht,tabIndex:ir!==!1?ei:null,onKeyDown:Fr,onFocus:Dn,onBlur:ii,value:"",onChange:bt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Fe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Fe,"-indent")},ee.createElement("div",{ref:Mr,className:"".concat(Fe,"-indent-unit")}))),ee.createElement(Ye.Z,(0,oe.Z)({},ri,{data:Yt,itemKey:bn,height:Gn,fullHeight:!1,virtual:Et,itemHeight:cn,scrollWidth:Jn,prefixCls:"".concat(Fe,"-list"),ref:_e,role:"tree",onVisibleChange:function(Ln){Ln.every(function(Ve){return bn(Ve)!==ft})&&Er()}}),function(Xr){var Ln=Xr.pos,Ve=Object.assign({},(me(Xr.data),Xr.data)),Rr=Xr.title,kr=Xr.key,jn=Xr.isStart,hi=Xr.isEnd,jr=(0,ot.km)(kr,Ln);delete Ve.key,delete Ve.children;var ar=(0,ot.H8)(jr,Nn);return ee.createElement(Tt,(0,oe.Z)({},Ve,ar,{title:Rr,active:!!Wt&&kr===Wt.key,pos:Ln,data:Xr.data,isStart:jn,isEnd:hi,motion:fn,motionNodes:kr===ft?dr:null,motionType:Lt,onMotionStart:cr,onMotionEnd:Er,treeNodeRequiredProps:Nn,onMouseMove:function(){Kr(null)}}))}))}),Gt=Zn,Rt=ae(82661),tn=ae(34643),zn=ae(65065),Yn=10,nt=function(Ze){(0,lt.Z)(Fe,Ze);var st=(0,Qe.Z)(Fe);function Fe(){var St;(0,je.Z)(this,Fe);for(var hn=arguments.length,On=new Array(hn),or=0;or<hn;or++)On[or]=arguments[or];return St=st.call.apply(st,[this].concat(On)),(0,Ue.Z)((0,Ge.Z)(St),"destroyed",!1),(0,Ue.Z)((0,Ge.Z)(St),"delayedDragEnterLogic",void 0),(0,Ue.Z)((0,Ge.Z)(St),"loadingRetryTimes",{}),(0,Ue.Z)((0,Ge.Z)(St),"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,ot.w$)()}),(0,Ue.Z)((0,Ge.Z)(St),"dragStartMousePosition",null),(0,Ue.Z)((0,Ge.Z)(St),"dragNodeProps",null),(0,Ue.Z)((0,Ge.Z)(St),"currentMouseOverDroppableNodeKey",null),(0,Ue.Z)((0,Ge.Z)(St),"listRef",ee.createRef()),(0,Ue.Z)((0,Ge.Z)(St),"onNodeDragStart",function(jt,Ut){var Qt=St.state,En=Qt.expandedKeys,Mn=Qt.keyEntities,Tn=St.props.onDragStart,Ht=Ut.eventKey;St.dragNodeProps=Ut,St.dragStartMousePosition={x:jt.clientX,y:jt.clientY};var Vn=(0,Rt._5)(En,Ht);St.setState({draggingNodeKey:Ht,dragChildrenKeys:(0,Rt.wA)(Ht,Mn),indent:St.listRef.current.getIndentWidth()}),St.setExpandedKeys(Vn),window.addEventListener("dragend",St.onWindowDragEnd),Tn==null||Tn({event:jt,node:(0,ot.F)(Ut)})}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeDragEnter",function(jt,Ut){var Qt=St.state,En=Qt.expandedKeys,Mn=Qt.keyEntities,Tn=Qt.dragChildrenKeys,Ht=Qt.flattenNodes,Vn=Qt.indent,Xt=St.props,nn=Xt.onDragEnter,fn=Xt.onExpand,Gn=Xt.allowDrop,cn=Xt.direction,Et=Ut.pos,Jn=Ut.eventKey;if(St.currentMouseOverDroppableNodeKey!==Jn&&(St.currentMouseOverDroppableNodeKey=Jn),!St.dragNodeProps){St.resetDragState();return}var ir=(0,Rt.OM)(jt,St.dragNodeProps,Ut,Vn,St.dragStartMousePosition,Gn,Ht,Mn,En,cn),Wt=ir.dropPosition,wr=ir.dropLevelOffset,ei=ir.dropTargetKey,Fr=ir.dropContainerKey,Dn=ir.dropTargetPos,ii=ir.dropAllowed,Kr=ir.dragOverNodeKey;if(Tn.includes(ei)||!ii){St.resetDragState();return}if(St.delayedDragEnterLogic||(St.delayedDragEnterLogic={}),Object.keys(St.delayedDragEnterLogic).forEach(function(cr){clearTimeout(St.delayedDragEnterLogic[cr])}),St.dragNodeProps.eventKey!==Ut.eventKey&&(jt.persist(),St.delayedDragEnterLogic[Et]=window.setTimeout(function(){if(St.state.draggingNodeKey!==null){var cr=(0,Ie.Z)(En),Dr=(0,zn.Z)(Mn,Ut.eventKey);Dr&&(Dr.children||[]).length&&(cr=(0,Rt.L0)(En,Ut.eventKey)),St.props.hasOwnProperty("expandedKeys")||St.setExpandedKeys(cr),fn==null||fn(cr,{node:(0,ot.F)(Ut),expanded:!0,nativeEvent:jt.nativeEvent})}},800)),St.dragNodeProps.eventKey===ei&&wr===0){St.resetDragState();return}St.setState({dragOverNodeKey:Kr,dropPosition:Wt,dropLevelOffset:wr,dropTargetKey:ei,dropContainerKey:Fr,dropTargetPos:Dn,dropAllowed:ii}),nn==null||nn({event:jt,node:(0,ot.F)(Ut),expandedKeys:En})}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeDragOver",function(jt,Ut){var Qt=St.state,En=Qt.dragChildrenKeys,Mn=Qt.flattenNodes,Tn=Qt.keyEntities,Ht=Qt.expandedKeys,Vn=Qt.indent,Xt=St.props,nn=Xt.onDragOver,fn=Xt.allowDrop,Gn=Xt.direction;if(St.dragNodeProps){var cn=(0,Rt.OM)(jt,St.dragNodeProps,Ut,Vn,St.dragStartMousePosition,fn,Mn,Tn,Ht,Gn),Et=cn.dropPosition,Jn=cn.dropLevelOffset,ir=cn.dropTargetKey,Wt=cn.dropContainerKey,wr=cn.dropTargetPos,ei=cn.dropAllowed,Fr=cn.dragOverNodeKey;En.includes(ir)||!ei||(St.dragNodeProps.eventKey===ir&&Jn===0?St.state.dropPosition===null&&St.state.dropLevelOffset===null&&St.state.dropTargetKey===null&&St.state.dropContainerKey===null&&St.state.dropTargetPos===null&&St.state.dropAllowed===!1&&St.state.dragOverNodeKey===null||St.resetDragState():Et===St.state.dropPosition&&Jn===St.state.dropLevelOffset&&ir===St.state.dropTargetKey&&Wt===St.state.dropContainerKey&&wr===St.state.dropTargetPos&&ei===St.state.dropAllowed&&Fr===St.state.dragOverNodeKey||St.setState({dropPosition:Et,dropLevelOffset:Jn,dropTargetKey:ir,dropContainerKey:Wt,dropTargetPos:wr,dropAllowed:ei,dragOverNodeKey:Fr}),nn==null||nn({event:jt,node:(0,ot.F)(Ut)}))}}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeDragLeave",function(jt,Ut){St.currentMouseOverDroppableNodeKey===Ut.eventKey&&!jt.currentTarget.contains(jt.relatedTarget)&&(St.resetDragState(),St.currentMouseOverDroppableNodeKey=null);var Qt=St.props.onDragLeave;Qt==null||Qt({event:jt,node:(0,ot.F)(Ut)})}),(0,Ue.Z)((0,Ge.Z)(St),"onWindowDragEnd",function(jt){St.onNodeDragEnd(jt,null,!0),window.removeEventListener("dragend",St.onWindowDragEnd)}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeDragEnd",function(jt,Ut){var Qt=St.props.onDragEnd;St.setState({dragOverNodeKey:null}),St.cleanDragState(),Qt==null||Qt({event:jt,node:(0,ot.F)(Ut)}),St.dragNodeProps=null,window.removeEventListener("dragend",St.onWindowDragEnd)}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeDrop",function(jt,Ut){var Qt,En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Mn=St.state,Tn=Mn.dragChildrenKeys,Ht=Mn.dropPosition,Vn=Mn.dropTargetKey,Xt=Mn.dropTargetPos,nn=Mn.dropAllowed;if(nn){var fn=St.props.onDrop;if(St.setState({dragOverNodeKey:null}),St.cleanDragState(),Vn!==null){var Gn=(0,ke.Z)((0,ke.Z)({},(0,ot.H8)(Vn,St.getTreeNodeRequiredProps())),{},{active:((Qt=St.getActiveItem())===null||Qt===void 0?void 0:Qt.key)===Vn,data:(0,zn.Z)(St.state.keyEntities,Vn).node}),cn=Tn.includes(Vn);(0,te.ZP)(!cn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Et=(0,Rt.yx)(Xt),Jn={event:jt,node:(0,ot.F)(Gn),dragNode:St.dragNodeProps?(0,ot.F)(St.dragNodeProps):null,dragNodesKeys:[St.dragNodeProps.eventKey].concat(Tn),dropToGap:Ht!==0,dropPosition:Ht+Number(Et[Et.length-1])};En||fn==null||fn(Jn),St.dragNodeProps=null}}}),(0,Ue.Z)((0,Ge.Z)(St),"cleanDragState",function(){var jt=St.state.draggingNodeKey;jt!==null&&St.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),St.dragStartMousePosition=null,St.currentMouseOverDroppableNodeKey=null}),(0,Ue.Z)((0,Ge.Z)(St),"triggerExpandActionExpand",function(jt,Ut){var Qt=St.state,En=Qt.expandedKeys,Mn=Qt.flattenNodes,Tn=Ut.expanded,Ht=Ut.key,Vn=Ut.isLeaf;if(!(Vn||jt.shiftKey||jt.metaKey||jt.ctrlKey)){var Xt=Mn.filter(function(fn){return fn.key===Ht})[0],nn=(0,ot.F)((0,ke.Z)((0,ke.Z)({},(0,ot.H8)(Ht,St.getTreeNodeRequiredProps())),{},{data:Xt.data}));St.setExpandedKeys(Tn?(0,Rt._5)(En,Ht):(0,Rt.L0)(En,Ht)),St.onNodeExpand(jt,nn)}}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeClick",function(jt,Ut){var Qt=St.props,En=Qt.onClick,Mn=Qt.expandAction;Mn==="click"&&St.triggerExpandActionExpand(jt,Ut),En==null||En(jt,Ut)}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeDoubleClick",function(jt,Ut){var Qt=St.props,En=Qt.onDoubleClick,Mn=Qt.expandAction;Mn==="doubleClick"&&St.triggerExpandActionExpand(jt,Ut),En==null||En(jt,Ut)}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeSelect",function(jt,Ut){var Qt=St.state.selectedKeys,En=St.state,Mn=En.keyEntities,Tn=En.fieldNames,Ht=St.props,Vn=Ht.onSelect,Xt=Ht.multiple,nn=Ut.selected,fn=Ut[Tn.key],Gn=!nn;Gn?Xt?Qt=(0,Rt.L0)(Qt,fn):Qt=[fn]:Qt=(0,Rt._5)(Qt,fn);var cn=Qt.map(function(Et){var Jn=(0,zn.Z)(Mn,Et);return Jn?Jn.node:null}).filter(Boolean);St.setUncontrolledState({selectedKeys:Qt}),Vn==null||Vn(Qt,{event:"select",selected:Gn,node:Ut,selectedNodes:cn,nativeEvent:jt.nativeEvent})}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeCheck",function(jt,Ut,Qt){var En=St.state,Mn=En.keyEntities,Tn=En.checkedKeys,Ht=En.halfCheckedKeys,Vn=St.props,Xt=Vn.checkStrictly,nn=Vn.onCheck,fn=Ut.key,Gn,cn={event:"check",node:Ut,checked:Qt,nativeEvent:jt.nativeEvent};if(Xt){var Et=Qt?(0,Rt.L0)(Tn,fn):(0,Rt._5)(Tn,fn),Jn=(0,Rt._5)(Ht,fn);Gn={checked:Et,halfChecked:Jn},cn.checkedNodes=Et.map(function(Dn){return(0,zn.Z)(Mn,Dn)}).filter(Boolean).map(function(Dn){return Dn.node}),St.setUncontrolledState({checkedKeys:Et})}else{var ir=(0,tn.S)([].concat((0,Ie.Z)(Tn),[fn]),!0,Mn),Wt=ir.checkedKeys,wr=ir.halfCheckedKeys;if(!Qt){var ei=new Set(Wt);ei.delete(fn);var Fr=(0,tn.S)(Array.from(ei),{checked:!1,halfCheckedKeys:wr},Mn);Wt=Fr.checkedKeys,wr=Fr.halfCheckedKeys}Gn=Wt,cn.checkedNodes=[],cn.checkedNodesPositions=[],cn.halfCheckedKeys=wr,Wt.forEach(function(Dn){var ii=(0,zn.Z)(Mn,Dn);if(ii){var Kr=ii.node,cr=ii.pos;cn.checkedNodes.push(Kr),cn.checkedNodesPositions.push({node:Kr,pos:cr})}}),St.setUncontrolledState({checkedKeys:Wt},!1,{halfCheckedKeys:wr})}nn==null||nn(Gn,cn)}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeLoad",function(jt){var Ut,Qt=jt.key,En=St.state.keyEntities,Mn=(0,zn.Z)(En,Qt);if(!(Mn!=null&&(Ut=Mn.children)!==null&&Ut!==void 0&&Ut.length)){var Tn=new Promise(function(Ht,Vn){St.setState(function(Xt){var nn=Xt.loadedKeys,fn=nn===void 0?[]:nn,Gn=Xt.loadingKeys,cn=Gn===void 0?[]:Gn,Et=St.props,Jn=Et.loadData,ir=Et.onLoad;if(!Jn||fn.includes(Qt)||cn.includes(Qt))return null;var Wt=Jn(jt);return Wt.then(function(){var wr=St.state.loadedKeys,ei=(0,Rt.L0)(wr,Qt);ir==null||ir(ei,{event:"load",node:jt}),St.setUncontrolledState({loadedKeys:ei}),St.setState(function(Fr){return{loadingKeys:(0,Rt._5)(Fr.loadingKeys,Qt)}}),Ht()}).catch(function(wr){if(St.setState(function(Fr){return{loadingKeys:(0,Rt._5)(Fr.loadingKeys,Qt)}}),St.loadingRetryTimes[Qt]=(St.loadingRetryTimes[Qt]||0)+1,St.loadingRetryTimes[Qt]>=Yn){var ei=St.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),St.setUncontrolledState({loadedKeys:(0,Rt.L0)(ei,Qt)}),Ht()}Vn(wr)}),{loadingKeys:(0,Rt.L0)(cn,Qt)}})});return Tn.catch(function(){}),Tn}}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeMouseEnter",function(jt,Ut){var Qt=St.props.onMouseEnter;Qt==null||Qt({event:jt,node:Ut})}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeMouseLeave",function(jt,Ut){var Qt=St.props.onMouseLeave;Qt==null||Qt({event:jt,node:Ut})}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeContextMenu",function(jt,Ut){var Qt=St.props.onRightClick;Qt&&(jt.preventDefault(),Qt({event:jt,node:Ut}))}),(0,Ue.Z)((0,Ge.Z)(St),"onFocus",function(){var jt=St.props.onFocus;St.setState({focused:!0});for(var Ut=arguments.length,Qt=new Array(Ut),En=0;En<Ut;En++)Qt[En]=arguments[En];jt==null||jt.apply(void 0,Qt)}),(0,Ue.Z)((0,Ge.Z)(St),"onBlur",function(){var jt=St.props.onBlur;St.setState({focused:!1}),St.onActiveChange(null);for(var Ut=arguments.length,Qt=new Array(Ut),En=0;En<Ut;En++)Qt[En]=arguments[En];jt==null||jt.apply(void 0,Qt)}),(0,Ue.Z)((0,Ge.Z)(St),"getTreeNodeRequiredProps",function(){var jt=St.state,Ut=jt.expandedKeys,Qt=jt.selectedKeys,En=jt.loadedKeys,Mn=jt.loadingKeys,Tn=jt.checkedKeys,Ht=jt.halfCheckedKeys,Vn=jt.dragOverNodeKey,Xt=jt.dropPosition,nn=jt.keyEntities;return{expandedKeys:Ut||[],selectedKeys:Qt||[],loadedKeys:En||[],loadingKeys:Mn||[],checkedKeys:Tn||[],halfCheckedKeys:Ht||[],dragOverNodeKey:Vn,dropPosition:Xt,keyEntities:nn}}),(0,Ue.Z)((0,Ge.Z)(St),"setExpandedKeys",function(jt){var Ut=St.state,Qt=Ut.treeData,En=Ut.fieldNames,Mn=(0,ot.oH)(Qt,jt,En);St.setUncontrolledState({expandedKeys:jt,flattenNodes:Mn},!0)}),(0,Ue.Z)((0,Ge.Z)(St),"onNodeExpand",function(jt,Ut){var Qt=St.state.expandedKeys,En=St.state,Mn=En.listChanging,Tn=En.fieldNames,Ht=St.props,Vn=Ht.onExpand,Xt=Ht.loadData,nn=Ut.expanded,fn=Ut[Tn.key];if(!Mn){var Gn=Qt.includes(fn),cn=!nn;if((0,te.ZP)(nn&&Gn||!nn&&!Gn,"Expand state not sync with index check"),Qt=cn?(0,Rt.L0)(Qt,fn):(0,Rt._5)(Qt,fn),St.setExpandedKeys(Qt),Vn==null||Vn(Qt,{node:Ut,expanded:cn,nativeEvent:jt.nativeEvent}),cn&&Xt){var Et=St.onNodeLoad(Ut);Et&&Et.then(function(){var Jn=(0,ot.oH)(St.state.treeData,Qt,Tn);St.setUncontrolledState({flattenNodes:Jn})}).catch(function(){var Jn=St.state.expandedKeys,ir=(0,Rt._5)(Jn,fn);St.setExpandedKeys(ir)})}}}),(0,Ue.Z)((0,Ge.Z)(St),"onListChangeStart",function(){St.setUncontrolledState({listChanging:!0})}),(0,Ue.Z)((0,Ge.Z)(St),"onListChangeEnd",function(){setTimeout(function(){St.setUncontrolledState({listChanging:!1})})}),(0,Ue.Z)((0,Ge.Z)(St),"onActiveChange",function(jt){var Ut=St.state.activeKey,Qt=St.props,En=Qt.onActiveChange,Mn=Qt.itemScrollOffset,Tn=Mn===void 0?0:Mn;Ut!==jt&&(St.setState({activeKey:jt}),jt!==null&&St.scrollTo({key:jt,offset:Tn}),En==null||En(jt))}),(0,Ue.Z)((0,Ge.Z)(St),"getActiveItem",function(){var jt=St.state,Ut=jt.activeKey,Qt=jt.flattenNodes;return Ut===null?null:Qt.find(function(En){var Mn=En.key;return Mn===Ut})||null}),(0,Ue.Z)((0,Ge.Z)(St),"offsetActiveKey",function(jt){var Ut=St.state,Qt=Ut.flattenNodes,En=Ut.activeKey,Mn=Qt.findIndex(function(Vn){var Xt=Vn.key;return Xt===En});Mn===-1&&jt<0&&(Mn=Qt.length),Mn=(Mn+jt+Qt.length)%Qt.length;var Tn=Qt[Mn];if(Tn){var Ht=Tn.key;St.onActiveChange(Ht)}else St.onActiveChange(null)}),(0,Ue.Z)((0,Ge.Z)(St),"onKeyDown",function(jt){var Ut=St.state,Qt=Ut.activeKey,En=Ut.expandedKeys,Mn=Ut.checkedKeys,Tn=Ut.fieldNames,Ht=St.props,Vn=Ht.onKeyDown,Xt=Ht.checkable,nn=Ht.selectable;switch(jt.which){case It.Z.UP:{St.offsetActiveKey(-1),jt.preventDefault();break}case It.Z.DOWN:{St.offsetActiveKey(1),jt.preventDefault();break}}var fn=St.getActiveItem();if(fn&&fn.data){var Gn=St.getTreeNodeRequiredProps(),cn=fn.data.isLeaf===!1||!!(fn.data[Tn.children]||[]).length,Et=(0,ot.F)((0,ke.Z)((0,ke.Z)({},(0,ot.H8)(Qt,Gn)),{},{data:fn.data,active:!0}));switch(jt.which){case It.Z.LEFT:{cn&&En.includes(Qt)?St.onNodeExpand({},Et):fn.parent&&St.onActiveChange(fn.parent.key),jt.preventDefault();break}case It.Z.RIGHT:{cn&&!En.includes(Qt)?St.onNodeExpand({},Et):fn.children&&fn.children.length&&St.onActiveChange(fn.children[0].key),jt.preventDefault();break}case It.Z.ENTER:case It.Z.SPACE:{Xt&&!Et.disabled&&Et.checkable!==!1&&!Et.disableCheckbox?St.onNodeCheck({},Et,!Mn.includes(Qt)):!Xt&&nn&&!Et.disabled&&Et.selectable!==!1&&St.onNodeSelect({},Et);break}}}Vn==null||Vn(jt)}),(0,Ue.Z)((0,Ge.Z)(St),"setUncontrolledState",function(jt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!St.destroyed){var En=!1,Mn=!0,Tn={};Object.keys(jt).forEach(function(Ht){if(St.props.hasOwnProperty(Ht)){Mn=!1;return}En=!0,Tn[Ht]=jt[Ht]}),En&&(!Ut||Mn)&&St.setState((0,ke.Z)((0,ke.Z)({},Tn),Qt))}}),(0,Ue.Z)((0,Ge.Z)(St),"scrollTo",function(jt){St.listRef.current.scrollTo(jt)}),St}return(0,Te.Z)(Fe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var hn=this.props,On=hn.activeKey,or=hn.itemScrollOffset,jt=or===void 0?0:or;On!==void 0&&On!==this.state.activeKey&&(this.setState({activeKey:On}),On!==null&&this.scrollTo({key:On,offset:jt}))}},{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 hn=this.state,On=hn.focused,or=hn.flattenNodes,jt=hn.keyEntities,Ut=hn.draggingNodeKey,Qt=hn.activeKey,En=hn.dropLevelOffset,Mn=hn.dropContainerKey,Tn=hn.dropTargetKey,Ht=hn.dropPosition,Vn=hn.dragOverNodeKey,Xt=hn.indent,nn=this.props,fn=nn.prefixCls,Gn=nn.className,cn=nn.style,Et=nn.showLine,Jn=nn.focusable,ir=nn.tabIndex,Wt=ir===void 0?0:ir,wr=nn.selectable,ei=nn.showIcon,Fr=nn.icon,Dn=nn.switcherIcon,ii=nn.draggable,Kr=nn.checkable,cr=nn.checkStrictly,Dr=nn.disabled,ri=nn.motion,_e=nn.loadData,Mr=nn.filterTreeNode,Tr=nn.height,sr=nn.itemHeight,_r=nn.scrollWidth,Gr=nn.virtual,br=nn.titleRender,Ci=nn.dropIndicatorRender,Rn=nn.onContextMenu,Pn=nn.onScroll,Sn=nn.direction,$n=nn.rootClassName,li=nn.rootStyle,Yr=(0,Oe.Z)(this.props,{aria:!0,data:!0}),ci;ii&&((0,Ce.Z)(ii)==="object"?ci=ii:typeof ii=="function"?ci={nodeDraggable:ii}:ci={});var _n={prefixCls:fn,selectable:wr,showIcon:ei,icon:Fr,switcherIcon:Dn,draggable:ci,draggingNodeKey:Ut,checkable:Kr,checkStrictly:cr,disabled:Dr,keyEntities:jt,dropLevelOffset:En,dropContainerKey:Mn,dropTargetKey:Tn,dropPosition:Ht,dragOverNodeKey:Vn,indent:Xt,direction:Sn,dropIndicatorRender:Ci,loadData:_e,filterTreeNode:Mr,titleRender:br,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:_n},ee.createElement("div",{className:Je()(fn,Gn,$n,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(fn,"-show-line"),Et),"".concat(fn,"-focused"),On),"".concat(fn,"-active-focused"),Qt!==null)),style:li},ee.createElement(Gt,(0,oe.Z)({ref:this.listRef,prefixCls:fn,style:cn,data:or,disabled:Dr,selectable:wr,checkable:!!Kr,motion:ri,dragging:Ut!==null,height:Tr,itemHeight:sr,virtual:Gr,focusable:Jn,focused:On,tabIndex:Wt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Rn,onScroll:Pn,scrollWidth:_r},this.getTreeNodeRequiredProps(),Yr))))}}],[{key:"getDerivedStateFromProps",value:function(hn,On){var or=On.prevProps,jt={prevProps:hn};function Ut(Wt){return!or&&hn.hasOwnProperty(Wt)||or&&or[Wt]!==hn[Wt]}var Qt,En=On.fieldNames;if(Ut("fieldNames")&&(En=(0,ot.w$)(hn.fieldNames),jt.fieldNames=En),Ut("treeData")?Qt=hn.treeData:Ut("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Qt=(0,ot.zn)(hn.children)),Qt){jt.treeData=Qt;var Mn=(0,ot.I8)(Qt,{fieldNames:En});jt.keyEntities=(0,ke.Z)((0,Ue.Z)({},ft,qt),Mn.keyEntities)}var Tn=jt.keyEntities||On.keyEntities;if(Ut("expandedKeys")||or&&Ut("autoExpandParent"))jt.expandedKeys=hn.autoExpandParent||!or&&hn.defaultExpandParent?(0,Rt.r7)(hn.expandedKeys,Tn):hn.expandedKeys;else if(!or&&hn.defaultExpandAll){var Ht=(0,ke.Z)({},Tn);delete Ht[ft];var Vn=[];Object.keys(Ht).forEach(function(Wt){var wr=Ht[Wt];wr.children&&wr.children.length&&Vn.push(wr.key)}),jt.expandedKeys=Vn}else!or&&hn.defaultExpandedKeys&&(jt.expandedKeys=hn.autoExpandParent||hn.defaultExpandParent?(0,Rt.r7)(hn.defaultExpandedKeys,Tn):hn.defaultExpandedKeys);if(jt.expandedKeys||delete jt.expandedKeys,Qt||jt.expandedKeys){var Xt=(0,ot.oH)(Qt||On.treeData,jt.expandedKeys||On.expandedKeys,En);jt.flattenNodes=Xt}if(hn.selectable&&(Ut("selectedKeys")?jt.selectedKeys=(0,Rt.BT)(hn.selectedKeys,hn):!or&&hn.defaultSelectedKeys&&(jt.selectedKeys=(0,Rt.BT)(hn.defaultSelectedKeys,hn))),hn.checkable){var nn;if(Ut("checkedKeys")?nn=(0,Rt.E6)(hn.checkedKeys)||{}:!or&&hn.defaultCheckedKeys?nn=(0,Rt.E6)(hn.defaultCheckedKeys)||{}:Qt&&(nn=(0,Rt.E6)(hn.checkedKeys)||{checkedKeys:On.checkedKeys,halfCheckedKeys:On.halfCheckedKeys}),nn){var fn=nn,Gn=fn.checkedKeys,cn=Gn===void 0?[]:Gn,Et=fn.halfCheckedKeys,Jn=Et===void 0?[]:Et;if(!hn.checkStrictly){var ir=(0,tn.S)(cn,!0,Tn);cn=ir.checkedKeys,Jn=ir.halfCheckedKeys}jt.checkedKeys=cn,jt.halfCheckedKeys=Jn}}return Ut("loadedKeys")&&(jt.loadedKeys=hn.loadedKeys),jt}}]),Fe}(ee.Component);(0,Ue.Z)(nt,"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)(nt,"TreeNode",$e.Z);var Be=nt,Re=Be},82661:function(He,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 Je},yx:function(){return mt}});var oe=ae(15142),Ce=ae(26420),ke=ae(48736),Ie=ae(59301),je=ae(639),Te=ae(65065),Ge=ae(34061),lt=null;function Qe(be,Ae){if(!be)return[];var De=be.slice(),Ye=De.indexOf(Ae);return Ye>=0&&De.splice(Ye,1),De}function Ue(be,Ae){var De=(be||[]).slice();return De.indexOf(Ae)===-1&&De.push(Ae),De}function mt(be){return be.split("-")}function Je(be,Ae){var De=[],Ye=(0,Te.Z)(Ae,be);function rt(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];$e.forEach(function(at){var ht=at.key,ot=at.children;De.push(ht),rt(ot)})}return rt(Ye.children),De}function It(be){if(be.parent){var Ae=mt(be.pos);return Number(Ae[Ae.length-1])===be.parent.children.length-1}return!1}function Oe(be){var Ae=mt(be.pos);return Number(Ae[Ae.length-1])===0}function te(be,Ae,De,Ye,rt,$e,at,ht,ot,vt){var xt,Tt=be.clientX,_t=be.clientY,Jt=be.target.getBoundingClientRect(),Zt=Jt.top,vn=Jt.height,bt=(vt==="rtl"?-1:1)*(((rt==null?void 0:rt.x)||0)-Tt),ft=(bt-12)/Ye,ct=ot.filter(function(Re){var Ze;return(Ze=ht[Re])===null||Ze===void 0||(Ze=Ze.children)===null||Ze===void 0?void 0:Ze.length}),qt=(0,Te.Z)(ht,De.eventKey);if(_t<Zt+vn/2){var dn=at.findIndex(function(Re){return Re.key===qt.key}),kt=dn<=0?0:dn-1,bn=at[kt].key;qt=(0,Te.Z)(ht,bn)}var gn=qt.key,Zn=qt,Gt=qt.key,Rt=0,tn=0;if(!ct.includes(gn))for(var zn=0;zn<ft&&It(qt);zn+=1)qt=qt.parent,tn+=1;var Yn=Ae.data,nt=qt.node,Be=!0;return Oe(qt)&&qt.level===0&&_t<Zt+vn/2&&$e({dragNode:Yn,dropNode:nt,dropPosition:-1})&&qt.key===De.eventKey?Rt=-1:(Zn.children||[]).length&&ct.includes(Gt)?$e({dragNode:Yn,dropNode:nt,dropPosition:0})?Rt=0:Be=!1:tn===0?ft>-1.5?$e({dragNode:Yn,dropNode:nt,dropPosition:1})?Rt=1:Be=!1:$e({dragNode:Yn,dropNode:nt,dropPosition:0})?Rt=0:$e({dragNode:Yn,dropNode:nt,dropPosition:1})?Rt=1:Be=!1:$e({dragNode:Yn,dropNode:nt,dropPosition:1})?Rt=1:Be=!1,{dropPosition:Rt,dropLevelOffset:tn,dropTargetKey:qt.key,dropTargetPos:qt.pos,dragOverNodeKey:Gt,dropContainerKey:Rt===0?null:((xt=qt.parent)===null||xt===void 0?void 0:xt.key)||null,dropAllowed:Be}}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||{},Ye=De.processProps,rt=Ye===void 0?he:Ye,$e=Array.isArray(be)?be:[be];return $e.map(function(at){var ht=at.children,ot=_objectWithoutProperties(at,lt),vt=ue(ht,Ae);return React.createElement(TreeNode,_extends({key:ot.key},rt(ot)),vt)})}function fe(be){if(!be)return null;var Ae;if(Array.isArray(be))Ae={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Ce.Z)(be)==="object")Ae={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,ke.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function me(be,Ae){var De=new Set;function Ye(rt){if(!De.has(rt)){var $e=(0,Te.Z)(Ae,rt);if($e){De.add(rt);var at=$e.parent,ht=$e.node;ht.disabled||at&&Ye(at.key)}}}return(be||[]).forEach(function(rt){Ye(rt)}),(0,oe.Z)(De)}},34643:function(He,Ee,ae){"use strict";ae.d(Ee,{S:function(){return Ge}});var oe=ae(48736),Ce=ae(65065);function ke(lt,Qe){var Ue=new Set;return lt.forEach(function(mt){Qe.has(mt)||Ue.add(mt)}),Ue}function Ie(lt){var Qe=lt||{},Ue=Qe.disabled,mt=Qe.disableCheckbox,Je=Qe.checkable;return!!(Ue||mt)||Je===!1}function je(lt,Qe,Ue,mt){for(var Je=new Set(lt),It=new Set,Oe=0;Oe<=Ue;Oe+=1){var te=Qe.get(Oe)||new Set;te.forEach(function(fe){var me=fe.key,be=fe.node,Ae=fe.children,De=Ae===void 0?[]:Ae;Je.has(me)&&!mt(be)&&De.filter(function(Ye){return!mt(Ye.node)}).forEach(function(Ye){Je.add(Ye.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(!(mt(be)||!fe.parent||ee.has(fe.parent.key))){if(mt(fe.parent.node)){ee.add(me.key);return}var Ae=!0,De=!1;(me.children||[]).filter(function(Ye){return!mt(Ye.node)}).forEach(function(Ye){var rt=Ye.key,$e=Je.has(rt);Ae&&!$e&&(Ae=!1),!De&&($e||It.has(rt))&&(De=!0)}),Ae&&Je.add(me.key),De&&It.add(me.key),ee.add(me.key)}})}return{checkedKeys:Array.from(Je),halfCheckedKeys:Array.from(ke(It,Je))}}function Te(lt,Qe,Ue,mt,Je){for(var It=new Set(lt),Oe=new Set(Qe),te=0;te<=mt;te+=1){var ee=Ue.get(te)||new Set;ee.forEach(function(me){var be=me.key,Ae=me.node,De=me.children,Ye=De===void 0?[]:De;!It.has(be)&&!Oe.has(be)&&!Je(Ae)&&Ye.filter(function(rt){return!Je(rt.node)}).forEach(function(rt){It.delete(rt.key)})})}Oe=new Set;for(var he=new Set,ue=mt;ue>=0;ue-=1){var fe=Ue.get(ue)||new Set;fe.forEach(function(me){var be=me.parent,Ae=me.node;if(!(Je(Ae)||!me.parent||he.has(me.parent.key))){if(Je(me.parent.node)){he.add(be.key);return}var De=!0,Ye=!1;(be.children||[]).filter(function(rt){return!Je(rt.node)}).forEach(function(rt){var $e=rt.key,at=It.has($e);De&&!at&&(De=!1),!Ye&&(at||Oe.has($e))&&(Ye=!0)}),De||It.delete(be.key),Ye&&Oe.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(It),halfCheckedKeys:Array.from(ke(Oe,It))}}function Ge(lt,Qe,Ue,mt){var Je=[],It;mt?It=mt:It=Ie;var Oe=new Set(lt.filter(function(ue){var fe=!!(0,Ce.Z)(Ue,ue);return fe||Je.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)(!Je.length,"Tree missing follow keys: ".concat(Je.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var he;return Qe===!0?he=je(Oe,te,ee,It):he=Te(Oe,Qe.halfCheckedKeys,te,ee,It),he}},65065:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return oe}});function oe(Ce,ke){return Ce[ke]}},34061:function(He,Ee,ae){"use strict";ae.d(Ee,{F:function(){return me},H8:function(){return fe},I8:function(){return ue},km:function(){return Je},oH:function(){return ee},w$:function(){return It},zn:function(){return te}});var oe=ae(26420),Ce=ae(15142),ke=ae(98506),Ie=ae(33346),je=ae(11592),Te=ae(2738),Ge=ae(48736),lt=ae(65065),Qe=["children"];function Ue(be,Ae){return"".concat(be,"-").concat(Ae)}function mt(be){return be&&be.type&&be.type.isTreeNode}function Je(be,Ae){return be!=null?be:Ae}function It(be){var Ae=be||{},De=Ae.title,Ye=Ae._title,rt=Ae.key,$e=Ae.children,at=De||"title";return{title:at,_title:Ye||[at],key:rt||"key",children:$e||"children"}}function Oe(be,Ae){var De=new Map;function Ye(rt){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(rt||[]).forEach(function(at){var ht=at[Ae.key],ot=at[Ae.children];warning(ht!=null,"Tree node must have a certain key: [".concat($e).concat(ht,"]"));var vt=String(ht);warning(!De.has(vt)||ht===null||ht===void 0,"Same 'key' exist in the Tree: ".concat(vt)),De.set(vt,!0),Ye(ot,"".concat($e).concat(vt," > "))})}Ye(be)}function te(be){function Ae(De){var Ye=(0,je.Z)(De);return Ye.map(function(rt){if(!mt(rt))return(0,Ge.ZP)(!rt,"Tree/TreeNode can only accept TreeNode as children."),null;var $e=rt.key,at=rt.props,ht=at.children,ot=(0,Ie.Z)(at,Qe),vt=(0,ke.Z)({key:$e},ot),xt=Ae(ht);return xt.length&&(vt.children=xt),vt}).filter(function(rt){return rt})}return Ae(be)}function ee(be,Ae,De){var Ye=It(De),rt=Ye._title,$e=Ye.key,at=Ye.children,ht=new Set(Ae===!0?[]:Ae),ot=[];function vt(xt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return xt.map(function(_t,Jt){for(var Zt=Ue(Tt?Tt.pos:"0",Jt),vn=Je(_t[$e],Zt),bt,ft=0;ft<rt.length;ft+=1){var ct=rt[ft];if(_t[ct]!==void 0){bt=_t[ct];break}}var qt=Object.assign((0,Te.Z)(_t,[].concat((0,Ce.Z)(rt),[$e,at])),{title:bt,key:vn,parent:Tt,pos:Zt,children:null,data:_t,isStart:[].concat((0,Ce.Z)(Tt?Tt.isStart:[]),[Jt===0]),isEnd:[].concat((0,Ce.Z)(Tt?Tt.isEnd:[]),[Jt===xt.length-1])});return ot.push(qt),Ae===!0||ht.has(vn)?qt.children=vt(_t[at]||[],qt):qt.children=[],qt})}return vt(be),ot}function he(be,Ae,De){var Ye={};(0,oe.Z)(De)==="object"?Ye=De:Ye={externalGetKey:De},Ye=Ye||{};var rt=Ye,$e=rt.childrenPropName,at=rt.externalGetKey,ht=rt.fieldNames,ot=It(ht),vt=ot.key,xt=ot.children,Tt=$e||xt,_t;at?typeof at=="string"?_t=function(vn){return vn[at]}:typeof at=="function"&&(_t=function(vn){return at(vn)}):_t=function(vn,bt){return Je(vn[vt],bt)};function Jt(Zt,vn,bt,ft){var ct=Zt?Zt[Tt]:be,qt=Zt?Ue(bt.pos,vn):"0",dn=Zt?[].concat((0,Ce.Z)(ft),[Zt]):[];if(Zt){var kt=_t(Zt,qt),bn={node:Zt,index:vn,pos:qt,key:kt,parentPos:bt.node?bt.pos:null,level:bt.level+1,nodes:dn};Ae(bn)}ct&&ct.forEach(function(gn,Zn){Jt(gn,Zn,{node:Zt,pos:qt,level:bt?bt.level+1:-1},dn)})}Jt(null)}function ue(be){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=Ae.initWrapper,Ye=Ae.processEntity,rt=Ae.onProcessFinished,$e=Ae.externalGetKey,at=Ae.childrenPropName,ht=Ae.fieldNames,ot=arguments.length>2?arguments[2]:void 0,vt=$e||ot,xt={},Tt={},_t={posEntities:xt,keyEntities:Tt};return De&&(_t=De(_t)||_t),he(be,function(Jt){var Zt=Jt.node,vn=Jt.index,bt=Jt.pos,ft=Jt.key,ct=Jt.parentPos,qt=Jt.level,dn=Jt.nodes,kt={node:Zt,nodes:dn,index:vn,key:ft,pos:bt,level:qt},bn=Je(ft,bt);xt[bt]=kt,Tt[bn]=kt,kt.parent=xt[ct],kt.parent&&(kt.parent.children=kt.parent.children||[],kt.parent.children.push(kt)),Ye&&Ye(kt,_t)},{externalGetKey:vt,childrenPropName:at,fieldNames:ht}),rt&&rt(_t),_t}function fe(be,Ae){var De=Ae.expandedKeys,Ye=Ae.selectedKeys,rt=Ae.loadedKeys,$e=Ae.loadingKeys,at=Ae.checkedKeys,ht=Ae.halfCheckedKeys,ot=Ae.dragOverNodeKey,vt=Ae.dropPosition,xt=Ae.keyEntities,Tt=(0,lt.Z)(xt,be),_t={eventKey:be,expanded:De.indexOf(be)!==-1,selected:Ye.indexOf(be)!==-1,loaded:rt.indexOf(be)!==-1,loading:$e.indexOf(be)!==-1,checked:at.indexOf(be)!==-1,halfChecked:ht.indexOf(be)!==-1,pos:String(Tt?Tt.pos:""),dragOver:ot===be&&vt===0,dragOverGapTop:ot===be&&vt===-1,dragOverGapBottom:ot===be&&vt===1};return _t}function me(be){var Ae=be.data,De=be.expanded,Ye=be.selected,rt=be.checked,$e=be.loaded,at=be.loading,ht=be.halfChecked,ot=be.dragOver,vt=be.dragOverGapTop,xt=be.dragOverGapBottom,Tt=be.pos,_t=be.active,Jt=be.eventKey,Zt=(0,ke.Z)((0,ke.Z)({},Ae),{},{expanded:De,selected:Ye,checked:rt,loaded:$e,loading:at,halfChecked:ht,dragOver:ot,dragOverGapTop:vt,dragOverGapBottom:xt,pos:Tt,active:_t,key:Jt});return"props"in Zt||Object.defineProperty(Zt,"props",{get:function(){return(0,Ge.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(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Jt}});var oe=ae(67711),Ce=ae(42573),ke=ae(58698),Ie=ae(62437),je=ae(74700),Te=ae(45080),Ge=ae(52873),lt=ae(59301),Qe=ae(98506),Ue=ae(33346),mt=ae(26420),Je=ae(77910),It=ae(51343),Oe=ae(15142),te=ae(92310),ee=ae.n(te),he=ae(26112),ue=ae(48736),fe=function(Zt,vn){if(Zt&&vn){var bt=Array.isArray(vn)?vn:vn.split(","),ft=Zt.name||"",ct=Zt.type||"",qt=ct.replace(/\/.*$/,"");return bt.some(function(dn){var kt=dn.trim();if(/^\*(\/\*)?$/.test(dn))return!0;if(kt.charAt(0)==="."){var bn=ft.toLowerCase(),gn=kt.toLowerCase(),Zn=[gn];return(gn===".jpg"||gn===".jpeg")&&(Zn=[".jpg",".jpeg"]),Zn.some(function(Gt){return bn.endsWith(Gt)})}return/\/\*$/.test(kt)?qt===kt.replace(/\/.*$/,""):ct===kt?!0:/^\w+$/.test(kt)?((0,ue.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(kt,"'.Skip for check.")),!0):!1})}return!0};function me(Zt,vn){var bt="cannot ".concat(Zt.method," ").concat(Zt.action," ").concat(vn.status,"'"),ft=new Error(bt);return ft.status=vn.status,ft.method=Zt.method,ft.url=Zt.action,ft}function be(Zt){var vn=Zt.responseText||Zt.response;if(!vn)return vn;try{return JSON.parse(vn)}catch(bt){return vn}}function Ae(Zt){var vn=new XMLHttpRequest;Zt.onProgress&&vn.upload&&(vn.upload.onprogress=function(qt){qt.total>0&&(qt.percent=qt.loaded/qt.total*100),Zt.onProgress(qt)});var bt=new FormData;Zt.data&&Object.keys(Zt.data).forEach(function(ct){var qt=Zt.data[ct];if(Array.isArray(qt)){qt.forEach(function(dn){bt.append("".concat(ct,"[]"),dn)});return}bt.append(ct,qt)}),Zt.file instanceof Blob?bt.append(Zt.filename,Zt.file,Zt.file.name):bt.append(Zt.filename,Zt.file),vn.onerror=function(qt){Zt.onError(qt)},vn.onload=function(){return vn.status<200||vn.status>=300?Zt.onError(me(Zt,vn),be(vn)):Zt.onSuccess(be(vn),vn)},vn.open(Zt.method,Zt.action,!0),Zt.withCredentials&&"withCredentials"in vn&&(vn.withCredentials=!0);var ft=Zt.headers||{};return ft["X-Requested-With"]!==null&&vn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ft).forEach(function(ct){ft[ct]!==null&&vn.setRequestHeader(ct,ft[ct])}),vn.send(bt),{abort:function(){vn.abort()}}}var De=function(){var Zt=(0,It.Z)((0,Je.Z)().mark(function vn(bt,ft){var ct,qt,dn,kt,bn,gn,Zn,Gt;return(0,Je.Z)().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:gn=function(){return gn=(0,It.Z)((0,Je.Z)().mark(function Yn(nt){return(0,Je.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",new Promise(function(Ze){nt.file(function(st){ft(st)?(nt.fullPath&&!st.webkitRelativePath&&(Object.defineProperties(st,{webkitRelativePath:{writable:!0}}),st.webkitRelativePath=nt.fullPath.replace(/^\//,""),Object.defineProperties(st,{webkitRelativePath:{writable:!1}})),Ze(st)):Ze(null)})}));case 1:case"end":return Re.stop()}},Yn)})),gn.apply(this,arguments)},bn=function(Yn){return gn.apply(this,arguments)},kt=function(){return kt=(0,It.Z)((0,Je.Z)().mark(function Yn(nt){var Be,Re,Ze,st,Fe;return(0,Je.Z)().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:Be=nt.createReader(),Re=[];case 2:return hn.next=5,new Promise(function(On){Be.readEntries(On,function(){return On([])})});case 5:if(Ze=hn.sent,st=Ze.length,st){hn.next=9;break}return hn.abrupt("break",12);case 9:for(Fe=0;Fe<st;Fe++)Re.push(Ze[Fe]);hn.next=2;break;case 12:return hn.abrupt("return",Re);case 13:case"end":return hn.stop()}},Yn)})),kt.apply(this,arguments)},dn=function(Yn){return kt.apply(this,arguments)},ct=[],qt=[],bt.forEach(function(zn){return qt.push(zn.webkitGetAsEntry())}),Zn=function(){var zn=(0,It.Z)((0,Je.Z)().mark(function Yn(nt,Be){var Re,Ze;return(0,Je.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(nt){Fe.next=2;break}return Fe.abrupt("return");case 2:if(nt.path=Be||"",!nt.isFile){Fe.next=10;break}return Fe.next=6,bn(nt);case 6:Re=Fe.sent,Re&&ct.push(Re),Fe.next=15;break;case 10:if(!nt.isDirectory){Fe.next=15;break}return Fe.next=13,dn(nt);case 13:Ze=Fe.sent,qt.push.apply(qt,(0,Oe.Z)(Ze));case 15:case"end":return Fe.stop()}},Yn)}));return function(nt,Be){return zn.apply(this,arguments)}}(),Gt=0;case 9:if(!(Gt<qt.length)){tn.next=15;break}return tn.next=12,Zn(qt[Gt]);case 12:Gt++,tn.next=9;break;case 15:return tn.abrupt("return",ct);case 16:case"end":return tn.stop()}},vn)}));return function(bt,ft){return Zt.apply(this,arguments)}}(),Ye=De,rt=+new Date,$e=0;function at(){return"rc-upload-".concat(rt,"-").concat(++$e)}var ht=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ot=function(Zt){(0,je.Z)(bt,Zt);var vn=(0,Te.Z)(bt);function bt(){var ft;(0,Ce.Z)(this,bt);for(var ct=arguments.length,qt=new Array(ct),dn=0;dn<ct;dn++)qt[dn]=arguments[dn];return ft=vn.call.apply(vn,[this].concat(qt)),(0,Ge.Z)((0,Ie.Z)(ft),"state",{uid:at()}),(0,Ge.Z)((0,Ie.Z)(ft),"reqs",{}),(0,Ge.Z)((0,Ie.Z)(ft),"fileInput",void 0),(0,Ge.Z)((0,Ie.Z)(ft),"_isMounted",void 0),(0,Ge.Z)((0,Ie.Z)(ft),"onChange",function(kt){var bn=ft.props,gn=bn.accept,Zn=bn.directory,Gt=kt.target.files,Rt=(0,Oe.Z)(Gt).filter(function(tn){return!Zn||fe(tn,gn)});ft.uploadFiles(Rt),ft.reset()}),(0,Ge.Z)((0,Ie.Z)(ft),"onClick",function(kt){var bn=ft.fileInput;if(bn){var gn=kt.target,Zn=ft.props.onClick;if(gn&&gn.tagName==="BUTTON"){var Gt=bn.parentNode;Gt.focus(),gn.blur()}bn.click(),Zn&&Zn(kt)}}),(0,Ge.Z)((0,Ie.Z)(ft),"onKeyDown",function(kt){kt.key==="Enter"&&ft.onClick(kt)}),(0,Ge.Z)((0,Ie.Z)(ft),"onFileDrop",function(){var kt=(0,It.Z)((0,Je.Z)().mark(function bn(gn){var Zn,Gt,Rt;return(0,Je.Z)().wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(Zn=ft.props.multiple,gn.preventDefault(),gn.type!=="dragover"){zn.next=4;break}return zn.abrupt("return");case 4:if(!ft.props.directory){zn.next=11;break}return zn.next=7,Ye(Array.prototype.slice.call(gn.dataTransfer.items),function(Yn){return fe(Yn,ft.props.accept)});case 7:Gt=zn.sent,ft.uploadFiles(Gt),zn.next=14;break;case 11:Rt=(0,Oe.Z)(gn.dataTransfer.files).filter(function(Yn){return fe(Yn,ft.props.accept)}),Zn===!1&&(Rt=Rt.slice(0,1)),ft.uploadFiles(Rt);case 14:case"end":return zn.stop()}},bn)}));return function(bn){return kt.apply(this,arguments)}}()),(0,Ge.Z)((0,Ie.Z)(ft),"uploadFiles",function(kt){var bn=(0,Oe.Z)(kt),gn=bn.map(function(Zn){return Zn.uid=at(),ft.processFile(Zn,bn)});Promise.all(gn).then(function(Zn){var Gt=ft.props.onBatchStart;Gt==null||Gt(Zn.map(function(Rt){var tn=Rt.origin,zn=Rt.parsedFile;return{file:tn,parsedFile:zn}})),Zn.filter(function(Rt){return Rt.parsedFile!==null}).forEach(function(Rt){ft.post(Rt)})})}),(0,Ge.Z)((0,Ie.Z)(ft),"processFile",function(){var kt=(0,It.Z)((0,Je.Z)().mark(function bn(gn,Zn){var Gt,Rt,tn,zn,Yn,nt,Be,Re,Ze;return(0,Je.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Gt=ft.props.beforeUpload,Rt=gn,!Gt){Fe.next=14;break}return Fe.prev=3,Fe.next=6,Gt(gn,Zn);case 6:Rt=Fe.sent,Fe.next=12;break;case 9:Fe.prev=9,Fe.t0=Fe.catch(3),Rt=!1;case 12:if(Rt!==!1){Fe.next=14;break}return Fe.abrupt("return",{origin:gn,parsedFile:null,action:null,data:null});case 14:if(tn=ft.props.action,typeof tn!="function"){Fe.next=21;break}return Fe.next=18,tn(gn);case 18:zn=Fe.sent,Fe.next=22;break;case 21:zn=tn;case 22:if(Yn=ft.props.data,typeof Yn!="function"){Fe.next=29;break}return Fe.next=26,Yn(gn);case 26:nt=Fe.sent,Fe.next=30;break;case 29:nt=Yn;case 30:return Be=((0,mt.Z)(Rt)==="object"||typeof Rt=="string")&&Rt?Rt:gn,Be instanceof File?Re=Be:Re=new File([Be],gn.name,{type:gn.type}),Ze=Re,Ze.uid=gn.uid,Fe.abrupt("return",{origin:gn,data:nt,parsedFile:Ze,action:zn});case 35:case"end":return Fe.stop()}},bn,null,[[3,9]])}));return function(bn,gn){return kt.apply(this,arguments)}}()),(0,Ge.Z)((0,Ie.Z)(ft),"saveFileInput",function(kt){ft.fileInput=kt}),ft}return(0,ke.Z)(bt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ct){var qt=this,dn=ct.data,kt=ct.origin,bn=ct.action,gn=ct.parsedFile;if(this._isMounted){var Zn=this.props,Gt=Zn.onStart,Rt=Zn.customRequest,tn=Zn.name,zn=Zn.headers,Yn=Zn.withCredentials,nt=Zn.method,Be=kt.uid,Re=Rt||Ae,Ze={action:bn,filename:tn,data:dn,file:gn,headers:zn,withCredentials:Yn,method:nt||"post",onProgress:function(Fe){var St=qt.props.onProgress;St==null||St(Fe,gn)},onSuccess:function(Fe,St){var hn=qt.props.onSuccess;hn==null||hn(Fe,gn,St),delete qt.reqs[Be]},onError:function(Fe,St){var hn=qt.props.onError;hn==null||hn(Fe,St,gn),delete qt.reqs[Be]}};Gt(kt),this.reqs[Be]=Re(Ze)}}},{key:"reset",value:function(){this.setState({uid:at()})}},{key:"abort",value:function(ct){var qt=this.reqs;if(ct){var dn=ct.uid?ct.uid:ct;qt[dn]&&qt[dn].abort&&qt[dn].abort(),delete qt[dn]}else Object.keys(qt).forEach(function(kt){qt[kt]&&qt[kt].abort&&qt[kt].abort(),delete qt[kt]})}},{key:"render",value:function(){var ct=this.props,qt=ct.component,dn=ct.prefixCls,kt=ct.className,bn=ct.classNames,gn=bn===void 0?{}:bn,Zn=ct.disabled,Gt=ct.id,Rt=ct.name,tn=ct.style,zn=ct.styles,Yn=zn===void 0?{}:zn,nt=ct.multiple,Be=ct.accept,Re=ct.capture,Ze=ct.children,st=ct.directory,Fe=ct.openFileDialogOnClick,St=ct.onMouseEnter,hn=ct.onMouseLeave,On=ct.hasControlInside,or=(0,Ue.Z)(ct,ht),jt=ee()((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},dn,!0),"".concat(dn,"-disabled"),Zn),kt,kt)),Ut=st?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Qt=Zn?{}:{onClick:Fe?this.onClick:function(){},onKeyDown:Fe?this.onKeyDown:function(){},onMouseEnter:St,onMouseLeave:hn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:On?void 0:"0"};return lt.createElement(qt,(0,oe.Z)({},Qt,{className:jt,role:On?void 0:"button",style:tn}),lt.createElement("input",(0,oe.Z)({},(0,he.Z)(or,{aria:!0,data:!0}),{id:Gt,name:Rt,disabled:Zn,type:"file",ref:this.saveFileInput,onClick:function(Mn){return Mn.stopPropagation()},key:this.state.uid,style:(0,Qe.Z)({display:"none"},Yn.input),className:gn.input,accept:Be},Ut,{multiple:nt,onChange:this.onChange},Re!=null?{capture:Re}:{})),Ze)}}]),bt}(lt.Component),vt=ot;function xt(){}var Tt=function(Zt){(0,je.Z)(bt,Zt);var vn=(0,Te.Z)(bt);function bt(){var ft;(0,Ce.Z)(this,bt);for(var ct=arguments.length,qt=new Array(ct),dn=0;dn<ct;dn++)qt[dn]=arguments[dn];return ft=vn.call.apply(vn,[this].concat(qt)),(0,Ge.Z)((0,Ie.Z)(ft),"uploader",void 0),(0,Ge.Z)((0,Ie.Z)(ft),"saveUploader",function(kt){ft.uploader=kt}),ft}return(0,ke.Z)(bt,[{key:"abort",value:function(ct){this.uploader.abort(ct)}},{key:"render",value:function(){return lt.createElement(vt,(0,oe.Z)({},this.props,{ref:this.saveUploader}))}}]),bt}(lt.Component);(0,Ge.Z)(Tt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:xt,onError:xt,onSuccess:xt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var _t=Tt,Jt=_t},8224:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ce}});var oe=ae(4676);function Ce(ke,Ie,je,Te){var Ge=oe.unstable_batchedUpdates?function(Qe){oe.unstable_batchedUpdates(je,Qe)}:je;return ke!=null&&ke.addEventListener&&ke.addEventListener(Ie,Ge,Te),{remove:function(){ke!=null&&ke.removeEventListener&&ke.removeEventListener(Ie,Ge,Te)}}}},24514:function(He,Ee,ae){"use strict";ae.d(Ee,{G:function(){return Ie}});var oe=ae(47273),Ce=function(Te){if((0,oe.Z)()&&window.document.documentElement){var Ge=Array.isArray(Te)?Te:[Te],lt=window.document.documentElement;return Ge.some(function(Qe){return Qe in lt.style})}return!1},ke=function(Te,Ge){if(!Ce(Te))return!1;var lt=document.createElement("div"),Qe=lt.style[Te];return lt.style[Te]=Ge,lt.style[Te]!==Qe};function Ie(je,Te){return!Array.isArray(je)&&Te!==void 0?ke(je,Te):Ce(je)}},6790:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Yn}});var oe=ae(67711),Ce=ae(26420),ke=ae(98506),Ie=ae(52873),je=ae(16886),Te=ae(33346),Ge=ae(92310),lt=ae.n(Ge),Qe=ae(29301),Ue=ae(70425),mt=ae(34280),Je=ae(59301),It=ae(4676),Oe=Je.forwardRef(function(nt,Be){var Re=nt.height,Ze=nt.offsetY,st=nt.offsetX,Fe=nt.children,St=nt.prefixCls,hn=nt.onInnerResize,On=nt.innerProps,or=nt.rtl,jt=nt.extra,Ut={},Qt={display:"flex",flexDirection:"column"};return Ze!==void 0&&(Ut={height:Re,position:"relative",overflow:"hidden"},Qt=(0,ke.Z)((0,ke.Z)({},Qt),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(Ze,"px)")},or?"marginRight":"marginLeft",-st),"position","absolute"),"left",0),"right",0),"top",0))),Je.createElement("div",{style:Ut},Je.createElement(Qe.Z,{onResize:function(Mn){var Tn=Mn.offsetHeight;Tn&&hn&&hn()}},Je.createElement("div",(0,oe.Z)({style:Qt,className:lt()((0,Ie.Z)({},"".concat(St,"-holder-inner"),St)),ref:Be},On),Fe,jt)))});Oe.displayName="Filler";var te=Oe;function ee(nt){var Be=nt.children,Re=nt.setRef,Ze=Je.useCallback(function(st){Re(st)},[]);return Je.cloneElement(Be,{ref:Ze})}function he(nt,Be,Re,Ze,st,Fe,St,hn){var On=hn.getKey;return nt.slice(Be,Re+1).map(function(or,jt){var Ut=Be+jt,Qt=St(or,Ut,{style:{width:Ze},offsetX:st}),En=On(or);return Je.createElement(ee,{key:En,setRef:function(Tn){return Fe(or,Tn)}},Qt)})}function ue(nt,Be,Re,Ze){var st=Re-nt,Fe=Be-Re,St=Math.min(st,Fe)*2;if(Ze<=St){var hn=Math.floor(Ze/2);return Ze%2?Re+hn+1:Re-hn}return st>Fe?Re-(Ze-Fe):Re+(Ze-st)}function fe(nt,Be,Re){var Ze=nt.length,st=Be.length,Fe,St;if(Ze===0&&st===0)return null;Ze<st?(Fe=nt,St=Be):(Fe=Be,St=nt);var hn={__EMPTY_ITEM__:!0};function On(Mn){return Mn!==void 0?Re(Mn):hn}for(var or=null,jt=Math.abs(Ze-st)!==1,Ut=0;Ut<St.length;Ut+=1){var Qt=On(Fe[Ut]),En=On(St[Ut]);if(Qt!==En){or=Ut,jt=jt||Qt!==On(St[Ut+1]);break}}return or===null?null:{index:or,multiple:jt}}function me(nt,Be,Re){var Ze=Je.useState(nt),st=(0,je.Z)(Ze,2),Fe=st[0],St=st[1],hn=Je.useState(null),On=(0,je.Z)(hn,2),or=On[0],jt=On[1];return Je.useEffect(function(){var Ut=fe(Fe||[],nt||[],Be);(Ut==null?void 0:Ut.index)!==void 0&&(Re==null||Re(Ut.index),jt(nt[Ut.index])),St(nt)},[nt]),[or]}var be=ae(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,Ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),De=Ae,Ye=function(nt,Be,Re,Ze){var st=(0,Je.useRef)(!1),Fe=(0,Je.useRef)(null);function St(){clearTimeout(Fe.current),st.current=!0,Fe.current=setTimeout(function(){st.current=!1},50)}var hn=(0,Je.useRef)({top:nt,bottom:Be,left:Re,right:Ze});return hn.current.top=nt,hn.current.bottom=Be,hn.current.left=Re,hn.current.right=Ze,function(On,or){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ut=On?or<0&&hn.current.left||or>0&&hn.current.right:or<0&&hn.current.top||or>0&&hn.current.bottom;return jt&&Ut?(clearTimeout(Fe.current),st.current=!1):(!Ut||st.current)&&St(),!st.current&&Ut}};function rt(nt,Be,Re,Ze,st,Fe,St){var hn=(0,Je.useRef)(0),On=(0,Je.useRef)(null),or=(0,Je.useRef)(null),jt=(0,Je.useRef)(!1),Ut=Ye(Be,Re,Ze,st);function Qt(Xt,nn){if(be.Z.cancel(On.current),!Ut(!1,nn)){var fn=Xt;if(!fn._virtualHandled)fn._virtualHandled=!0;else return;hn.current+=nn,or.current=nn,De||fn.preventDefault(),On.current=(0,be.Z)(function(){var Gn=jt.current?10:1;St(hn.current*Gn,!1),hn.current=0})}}function En(Xt,nn){St(nn,!0),De||Xt.preventDefault()}var Mn=(0,Je.useRef)(null),Tn=(0,Je.useRef)(null);function Ht(Xt){if(nt){be.Z.cancel(Tn.current),Tn.current=(0,be.Z)(function(){Mn.current=null},2);var nn=Xt.deltaX,fn=Xt.deltaY,Gn=Xt.shiftKey,cn=nn,Et=fn;(Mn.current==="sx"||!Mn.current&&Gn&&fn&&!nn)&&(cn=fn,Et=0,Mn.current="sx");var Jn=Math.abs(cn),ir=Math.abs(Et);Mn.current===null&&(Mn.current=Fe&&Jn>ir?"x":"y"),Mn.current==="y"?Qt(Xt,Et):En(Xt,cn)}}function Vn(Xt){nt&&(jt.current=Xt.detail===or.current)}return[Ht,Vn]}function $e(nt,Be,Re,Ze){var st=Je.useMemo(function(){return[new Map,[]]},[nt,Re.id,Ze]),Fe=(0,je.Z)(st,2),St=Fe[0],hn=Fe[1],On=function(jt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jt,Qt=St.get(jt),En=St.get(Ut);if(Qt===void 0||En===void 0)for(var Mn=nt.length,Tn=hn.length;Tn<Mn;Tn+=1){var Ht,Vn=nt[Tn],Xt=Be(Vn);St.set(Xt,Tn);var nn=(Ht=Re.get(Xt))!==null&&Ht!==void 0?Ht:Ze;if(hn[Tn]=(hn[Tn-1]||0)+nn,Xt===jt&&(Qt=Tn),Xt===Ut&&(En=Tn),Qt!==void 0&&En!==void 0)break}return{top:hn[Qt-1]||0,bottom:hn[En]}};return On}var at=ae(42573),ht=ae(58698),ot=function(){function nt(){(0,at.Z)(this,nt),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ht.Z)(nt,[{key:"set",value:function(Re,Ze){this.diffRecords.set(Re,this.maps[Re]),this.maps[Re]=Ze,this.id+=1}},{key:"get",value:function(Re){return this.maps[Re]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),nt}(),vt=ot;function xt(nt){var Be=parseFloat(nt);return isNaN(Be)?0:Be}function Tt(nt,Be,Re){var Ze=Je.useState(0),st=(0,je.Z)(Ze,2),Fe=st[0],St=st[1],hn=(0,Je.useRef)(new Map),On=(0,Je.useRef)(new vt),or=(0,Je.useRef)(0);function jt(){or.current+=1}function Ut(){var En=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;jt();var Mn=function(){var Vn=!1;hn.current.forEach(function(Xt,nn){if(Xt&&Xt.offsetParent){var fn=Xt.offsetHeight,Gn=getComputedStyle(Xt),cn=Gn.marginTop,Et=Gn.marginBottom,Jn=xt(cn),ir=xt(Et),Wt=fn+Jn+ir;On.current.get(nn)!==Wt&&(On.current.set(nn,Wt),Vn=!0)}}),Vn&&St(function(Xt){return Xt+1})};if(En)Mn();else{or.current+=1;var Tn=or.current;Promise.resolve().then(function(){Tn===or.current&&Mn()})}}function Qt(En,Mn){var Tn=nt(En),Ht=hn.current.get(Tn);Mn?(hn.current.set(Tn,Mn),Ut()):hn.current.delete(Tn),!Ht!=!Mn&&(Mn?Be==null||Be(En):Re==null||Re(En))}return(0,Je.useEffect)(function(){return jt},[]),[Qt,Ut,On.current,Fe]}var _t=14/15;function Jt(nt,Be,Re){var Ze=(0,Je.useRef)(!1),st=(0,Je.useRef)(0),Fe=(0,Je.useRef)(0),St=(0,Je.useRef)(null),hn=(0,Je.useRef)(null),On,or=function(En){if(Ze.current){var Mn=Math.ceil(En.touches[0].pageX),Tn=Math.ceil(En.touches[0].pageY),Ht=st.current-Mn,Vn=Fe.current-Tn,Xt=Math.abs(Ht)>Math.abs(Vn);Xt?st.current=Mn:Fe.current=Tn;var nn=Re(Xt,Xt?Ht:Vn,!1,En);nn&&En.preventDefault(),clearInterval(hn.current),nn&&(hn.current=setInterval(function(){Xt?Ht*=_t:Vn*=_t;var fn=Math.floor(Xt?Ht:Vn);(!Re(Xt,fn,!0)||Math.abs(fn)<=.1)&&clearInterval(hn.current)},16))}},jt=function(){Ze.current=!1,On()},Ut=function(En){On(),En.touches.length===1&&!Ze.current&&(Ze.current=!0,st.current=Math.ceil(En.touches[0].pageX),Fe.current=Math.ceil(En.touches[0].pageY),St.current=En.target,St.current.addEventListener("touchmove",or,{passive:!1}),St.current.addEventListener("touchend",jt,{passive:!0}))};On=function(){St.current&&(St.current.removeEventListener("touchmove",or),St.current.removeEventListener("touchend",jt))},(0,mt.Z)(function(){return nt&&Be.current.addEventListener("touchstart",Ut,{passive:!0}),function(){var Qt;(Qt=Be.current)===null||Qt===void 0||Qt.removeEventListener("touchstart",Ut),On(),clearInterval(hn.current)}},[nt])}function Zt(nt){return Math.floor(Math.pow(nt,.5))}function vn(nt,Be){var Re="touches"in nt?nt.touches[0]:nt;return Re[Be?"pageX":"pageY"]-window[Be?"scrollX":"scrollY"]}function bt(nt,Be,Re){Je.useEffect(function(){var Ze=Be.current;if(nt&&Ze){var st=!1,Fe,St,hn=function(){be.Z.cancel(Fe)},On=function Qt(){hn(),Fe=(0,be.Z)(function(){Re(St),Qt()})},or=function(En){if(!(En.target.draggable||En.button!==0)){var Mn=En;Mn._virtualHandled||(Mn._virtualHandled=!0,st=!0)}},jt=function(){st=!1,hn()},Ut=function(En){if(st){var Mn=vn(En,!1),Tn=Ze.getBoundingClientRect(),Ht=Tn.top,Vn=Tn.bottom;if(Mn<=Ht){var Xt=Ht-Mn;St=-Zt(Xt),On()}else if(Mn>=Vn){var nn=Mn-Vn;St=Zt(nn),On()}else hn()}};return Ze.addEventListener("mousedown",or),Ze.ownerDocument.addEventListener("mouseup",jt),Ze.ownerDocument.addEventListener("mousemove",Ut),function(){Ze.removeEventListener("mousedown",or),Ze.ownerDocument.removeEventListener("mouseup",jt),Ze.ownerDocument.removeEventListener("mousemove",Ut),hn()}}},[nt])}var ft=10;function ct(nt,Be,Re,Ze,st,Fe,St,hn){var On=Je.useRef(),or=Je.useState(null),jt=(0,je.Z)(or,2),Ut=jt[0],Qt=jt[1];return(0,mt.Z)(function(){if(Ut&&Ut.times<ft){if(!nt.current){Qt(function(ri){return(0,ke.Z)({},ri)});return}Fe();var En=Ut.targetAlign,Mn=Ut.originAlign,Tn=Ut.index,Ht=Ut.offset,Vn=nt.current.clientHeight,Xt=!1,nn=En,fn=null;if(Vn){for(var Gn=En||Mn,cn=0,Et=0,Jn=0,ir=Math.min(Be.length-1,Tn),Wt=0;Wt<=ir;Wt+=1){var wr=st(Be[Wt]);Et=cn;var ei=Re.get(wr);Jn=Et+(ei===void 0?Ze:ei),cn=Jn}for(var Fr=Gn==="top"?Ht:Vn-Ht,Dn=ir;Dn>=0;Dn-=1){var ii=st(Be[Dn]),Kr=Re.get(ii);if(Kr===void 0){Xt=!0;break}if(Fr-=Kr,Fr<=0)break}switch(Gn){case"top":fn=Et-Ht;break;case"bottom":fn=Jn-Vn+Ht;break;default:{var cr=nt.current.scrollTop,Dr=cr+Vn;Et<cr?nn="top":Jn>Dr&&(nn="bottom")}}fn!==null&&St(fn),fn!==Ut.lastTop&&(Xt=!0)}Xt&&Qt((0,ke.Z)((0,ke.Z)({},Ut),{},{times:Ut.times+1,targetAlign:nn,lastTop:fn}))}},[Ut,nt.current]),function(En){if(En==null){hn();return}if(be.Z.cancel(On.current),typeof En=="number")St(En);else if(En&&(0,Ce.Z)(En)==="object"){var Mn,Tn=En.align;"index"in En?Mn=En.index:Mn=Be.findIndex(function(Xt){return st(Xt)===En.key});var Ht=En.offset,Vn=Ht===void 0?0:Ht;Qt({times:0,index:Mn,offset:Vn,originAlign:Tn})}}}var qt=Je.forwardRef(function(nt,Be){var Re=nt.prefixCls,Ze=nt.rtl,st=nt.scrollOffset,Fe=nt.scrollRange,St=nt.onStartMove,hn=nt.onStopMove,On=nt.onScroll,or=nt.horizontal,jt=nt.spinSize,Ut=nt.containerSize,Qt=nt.style,En=nt.thumbStyle,Mn=nt.showScrollBar,Tn=Je.useState(!1),Ht=(0,je.Z)(Tn,2),Vn=Ht[0],Xt=Ht[1],nn=Je.useState(null),fn=(0,je.Z)(nn,2),Gn=fn[0],cn=fn[1],Et=Je.useState(null),Jn=(0,je.Z)(Et,2),ir=Jn[0],Wt=Jn[1],wr=!Ze,ei=Je.useRef(),Fr=Je.useRef(),Dn=Je.useState(Mn),ii=(0,je.Z)(Dn,2),Kr=ii[0],cr=ii[1],Dr=Je.useRef(),ri=function(){Mn===!0||Mn===!1||(clearTimeout(Dr.current),cr(!0),Dr.current=setTimeout(function(){cr(!1)},3e3))},_e=Fe-Ut||0,Mr=Ut-jt||0,Tr=Je.useMemo(function(){if(st===0||_e===0)return 0;var $n=st/_e;return $n*Mr},[st,_e,Mr]),sr=function(li){li.stopPropagation(),li.preventDefault()},_r=Je.useRef({top:Tr,dragging:Vn,pageY:Gn,startTop:ir});_r.current={top:Tr,dragging:Vn,pageY:Gn,startTop:ir};var Gr=function(li){Xt(!0),cn(vn(li,or)),Wt(_r.current.top),St(),li.stopPropagation(),li.preventDefault()};Je.useEffect(function(){var $n=function(_n){_n.preventDefault()},li=ei.current,Yr=Fr.current;return li.addEventListener("touchstart",$n,{passive:!1}),Yr.addEventListener("touchstart",Gr,{passive:!1}),function(){li.removeEventListener("touchstart",$n),Yr.removeEventListener("touchstart",Gr)}},[]);var br=Je.useRef();br.current=_e;var Ci=Je.useRef();Ci.current=Mr,Je.useEffect(function(){if(Vn){var $n,li=function(_n){var dr=_r.current,oi=dr.dragging,bi=dr.pageY,Pr=dr.startTop;be.Z.cancel($n);var Lt=ei.current.getBoundingClientRect(),ln=Ut/(or?Lt.width:Lt.height);if(oi){var Nr=(vn(_n,or)-bi)*ln,Er=Pr;!wr&&or?Er-=Nr:Er+=Nr;var Yt=br.current,Nn=Ci.current,Xr=Nn?Er/Nn:0,Ln=Math.ceil(Xr*Yt);Ln=Math.max(Ln,0),Ln=Math.min(Ln,Yt),$n=(0,be.Z)(function(){On(Ln,or)})}},Yr=function(){Xt(!1),hn()};return window.addEventListener("mousemove",li,{passive:!0}),window.addEventListener("touchmove",li,{passive:!0}),window.addEventListener("mouseup",Yr,{passive:!0}),window.addEventListener("touchend",Yr,{passive:!0}),function(){window.removeEventListener("mousemove",li),window.removeEventListener("touchmove",li),window.removeEventListener("mouseup",Yr),window.removeEventListener("touchend",Yr),be.Z.cancel($n)}}},[Vn]),Je.useEffect(function(){return ri(),function(){clearTimeout(Dr.current)}},[st]),Je.useImperativeHandle(Be,function(){return{delayHidden:ri}});var Rn="".concat(Re,"-scrollbar"),Pn={position:"absolute",visibility:Kr?null:"hidden"},Sn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return or?(Object.assign(Pn,{height:8,left:0,right:0,bottom:0}),Object.assign(Sn,(0,Ie.Z)({height:"100%",width:jt},wr?"left":"right",Tr))):(Object.assign(Pn,(0,Ie.Z)({width:8,top:0,bottom:0},wr?"right":"left",0)),Object.assign(Sn,{width:"100%",height:jt,top:Tr})),Je.createElement("div",{ref:ei,className:lt()(Rn,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Rn,"-horizontal"),or),"".concat(Rn,"-vertical"),!or),"".concat(Rn,"-visible"),Kr)),style:(0,ke.Z)((0,ke.Z)({},Pn),Qt),onMouseDown:sr,onMouseMove:ri},Je.createElement("div",{ref:Fr,className:lt()("".concat(Rn,"-thumb"),(0,Ie.Z)({},"".concat(Rn,"-thumb-moving"),Vn)),style:(0,ke.Z)((0,ke.Z)({},Sn),En),onMouseDown:Gr}))}),dn=qt,kt=20;function bn(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Re=nt/Be*nt;return isNaN(Re)&&(Re=0),Re=Math.max(Re,kt),Math.floor(Re)}var gn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Zn=[],Gt={overflowY:"auto",overflowAnchor:"none"};function Rt(nt,Be){var Re=nt.prefixCls,Ze=Re===void 0?"rc-virtual-list":Re,st=nt.className,Fe=nt.height,St=nt.itemHeight,hn=nt.fullHeight,On=hn===void 0?!0:hn,or=nt.style,jt=nt.data,Ut=nt.children,Qt=nt.itemKey,En=nt.virtual,Mn=nt.direction,Tn=nt.scrollWidth,Ht=nt.component,Vn=Ht===void 0?"div":Ht,Xt=nt.onScroll,nn=nt.onVirtualScroll,fn=nt.onVisibleChange,Gn=nt.innerProps,cn=nt.extraRender,Et=nt.styles,Jn=nt.showScrollBar,ir=Jn===void 0?"optional":Jn,Wt=(0,Te.Z)(nt,gn),wr=Je.useCallback(function(gr){return typeof Qt=="function"?Qt(gr):gr==null?void 0:gr[Qt]},[Qt]),ei=Tt(wr,null,null),Fr=(0,je.Z)(ei,4),Dn=Fr[0],ii=Fr[1],Kr=Fr[2],cr=Fr[3],Dr=!!(En!==!1&&Fe&&St),ri=Je.useMemo(function(){return Object.values(Kr.maps).reduce(function(gr,pt){return gr+pt},0)},[Kr.id,Kr.maps]),_e=Dr&&jt&&(Math.max(St*jt.length,ri)>Fe||!!Tn),Mr=Mn==="rtl",Tr=lt()(Ze,(0,Ie.Z)({},"".concat(Ze,"-rtl"),Mr),st),sr=jt||Zn,_r=(0,Je.useRef)(),Gr=(0,Je.useRef)(),br=(0,Je.useRef)(),Ci=(0,Je.useState)(0),Rn=(0,je.Z)(Ci,2),Pn=Rn[0],Sn=Rn[1],$n=(0,Je.useState)(0),li=(0,je.Z)($n,2),Yr=li[0],ci=li[1],_n=(0,Je.useState)(!1),dr=(0,je.Z)(_n,2),oi=dr[0],bi=dr[1],Pr=function(){bi(!0)},Lt=function(){bi(!1)},ln={getKey:wr};function Nr(gr){Sn(function(pt){var yn;typeof gr=="function"?yn=gr(pt):yn=gr;var xn=zi(yn);return _r.current.scrollTop=xn,xn})}var Er=(0,Je.useRef)({start:0,end:sr.length}),Yt=(0,Je.useRef)(),Nn=me(sr,wr),Xr=(0,je.Z)(Nn,1),Ln=Xr[0];Yt.current=Ln;var Ve=Je.useMemo(function(){if(!Dr)return{scrollHeight:void 0,start:0,end:sr.length-1,offset:void 0};if(!_e){var gr;return{scrollHeight:((gr=Gr.current)===null||gr===void 0?void 0:gr.offsetHeight)||0,start:0,end:sr.length-1,offset:void 0}}for(var pt=0,yn,xn,Hn,pn=sr.length,tr=0;tr<pn;tr+=1){var Qn=sr[tr],an=wr(Qn),hr=Kr.get(an),Vr=pt+(hr===void 0?St:hr);Vr>=Pn&&yn===void 0&&(yn=tr,xn=pt),Vr>Pn+Fe&&Hn===void 0&&(Hn=tr),pt=Vr}return yn===void 0&&(yn=0,xn=0,Hn=Math.ceil(Fe/St)),Hn===void 0&&(Hn=sr.length-1),Hn=Math.min(Hn+1,sr.length-1),{scrollHeight:pt,start:yn,end:Hn,offset:xn}},[_e,Dr,Pn,sr,cr,Fe]),Rr=Ve.scrollHeight,kr=Ve.start,jn=Ve.end,hi=Ve.offset;Er.current.start=kr,Er.current.end=jn,Je.useLayoutEffect(function(){var gr=Kr.getRecord();if(gr.size===1){var pt=Array.from(gr.keys())[0],yn=gr.get(pt),xn=sr[kr];if(xn&&yn===void 0){var Hn=wr(xn);if(Hn===pt){var pn=Kr.get(pt),tr=pn-St;Nr(function(Qn){return Qn+tr})}}}Kr.resetRecord()},[Rr]);var jr=Je.useState({width:0,height:Fe}),ar=(0,je.Z)(jr,2),Qr=ar[0],un=ar[1],Ti=function(pt){un({width:pt.offsetWidth,height:pt.offsetHeight})},eo=(0,Je.useRef)(),mn=(0,Je.useRef)(),wi=Je.useMemo(function(){return bn(Qr.width,Tn)},[Qr.width,Tn]),Di=Je.useMemo(function(){return bn(Qr.height,Rr)},[Qr.height,Rr]),gi=Rr-Fe,ki=(0,Je.useRef)(gi);ki.current=gi;function zi(gr){var pt=gr;return Number.isNaN(ki.current)||(pt=Math.min(pt,ki.current)),pt=Math.max(pt,0),pt}var ro=Pn<=0,Gi=Pn>=gi,Fi=Yr<=0,io=Yr>=Tn,qn=Ye(ro,Gi,Fi,io),Ui=function(){return{x:Mr?-Yr:Yr,y:Pn}},lr=(0,Je.useRef)(Ui()),vi=(0,Ue.zX)(function(gr){if(nn){var pt=(0,ke.Z)((0,ke.Z)({},Ui()),gr);(lr.current.x!==pt.x||lr.current.y!==pt.y)&&(nn(pt),lr.current=pt)}});function Vi(gr,pt){var yn=gr;pt?((0,It.flushSync)(function(){ci(yn)}),vi()):Nr(yn)}function Oi(gr){var pt=gr.currentTarget.scrollTop;pt!==Pn&&Nr(pt),Xt==null||Xt(gr),vi()}var fo=function(pt){var yn=pt,xn=Tn?Tn-Qr.width:0;return yn=Math.max(yn,0),yn=Math.min(yn,xn),yn},co=(0,Ue.zX)(function(gr,pt){pt?((0,It.flushSync)(function(){ci(function(yn){var xn=yn+(Mr?-gr:gr);return fo(xn)})}),vi()):Nr(function(yn){var xn=yn+gr;return xn})}),ji=rt(Dr,ro,Gi,Fi,io,!!Tn,co),zo=(0,je.Z)(ji,2),Fn=zo[0],mr=zo[1];Jt(Dr,_r,function(gr,pt,yn,xn){var Hn=xn;return qn(gr,pt,yn)?!1:!Hn||!Hn._virtualHandled?(Hn&&(Hn._virtualHandled=!0),Fn({preventDefault:function(){},deltaX:gr?pt:0,deltaY:gr?0:pt}),!0):!1}),bt(_e,_r,function(gr){Nr(function(pt){return pt+gr})}),(0,mt.Z)(function(){function gr(yn){var xn=ro&&yn.detail<0,Hn=Gi&&yn.detail>0;Dr&&!xn&&!Hn&&yn.preventDefault()}var pt=_r.current;return pt.addEventListener("wheel",Fn,{passive:!1}),pt.addEventListener("DOMMouseScroll",mr,{passive:!0}),pt.addEventListener("MozMousePixelScroll",gr,{passive:!1}),function(){pt.removeEventListener("wheel",Fn),pt.removeEventListener("DOMMouseScroll",mr),pt.removeEventListener("MozMousePixelScroll",gr)}},[Dr,ro,Gi]),(0,mt.Z)(function(){if(Tn){var gr=fo(Yr);ci(gr),vi({x:gr})}},[Qr.width,Tn]);var wn=function(){var pt,yn;(pt=eo.current)===null||pt===void 0||pt.delayHidden(),(yn=mn.current)===null||yn===void 0||yn.delayHidden()},it=ct(_r,sr,Kr,St,wr,function(){return ii(!0)},Nr,wn);Je.useImperativeHandle(Be,function(){return{nativeElement:br.current,getScrollInfo:Ui,scrollTo:function(pt){function yn(xn){return xn&&(0,Ce.Z)(xn)==="object"&&("left"in xn||"top"in xn)}yn(pt)?(pt.left!==void 0&&ci(fo(pt.left)),it(pt.top)):it(pt)}}}),(0,mt.Z)(function(){if(fn){var gr=sr.slice(kr,jn+1);fn(gr,sr)}},[kr,jn,sr]);var Or=$e(sr,wr,Kr,St),Wr=cn==null?void 0:cn({start:kr,end:jn,virtual:_e,offsetX:Yr,offsetY:hi,rtl:Mr,getSize:Or}),pi=he(sr,kr,jn,Tn,Yr,Dn,Ut,ln),di=null;Fe&&(di=(0,ke.Z)((0,Ie.Z)({},On?"height":"maxHeight",Fe),Gt),Dr&&(di.overflowY="hidden",Tn&&(di.overflowX="hidden"),oi&&(di.pointerEvents="none")));var ai={};return Mr&&(ai.dir="rtl"),Je.createElement("div",(0,oe.Z)({ref:br,style:(0,ke.Z)((0,ke.Z)({},or),{},{position:"relative"}),className:Tr},ai,Wt),Je.createElement(Qe.Z,{onResize:Ti},Je.createElement(Vn,{className:"".concat(Ze,"-holder"),style:di,ref:_r,onScroll:Oi,onMouseEnter:wn},Je.createElement(te,{prefixCls:Ze,height:Rr,offsetX:Yr,offsetY:hi,scrollWidth:Tn,onInnerResize:ii,ref:Gr,innerProps:Gn,rtl:Mr,extra:Wr},pi))),_e&&Rr>Fe&&Je.createElement(dn,{ref:eo,prefixCls:Ze,scrollOffset:Pn,scrollRange:Rr,rtl:Mr,onScroll:Vi,onStartMove:Pr,onStopMove:Lt,spinSize:Di,containerSize:Qr.height,style:Et==null?void 0:Et.verticalScrollBar,thumbStyle:Et==null?void 0:Et.verticalScrollBarThumb,showScrollBar:ir}),_e&&Tn>Qr.width&&Je.createElement(dn,{ref:mn,prefixCls:Ze,scrollOffset:Yr,scrollRange:Tn,rtl:Mr,onScroll:Vi,onStartMove:Pr,onStopMove:Lt,spinSize:wi,containerSize:Qr.width,horizontal:!0,style:Et==null?void 0:Et.horizontalScrollBar,thumbStyle:Et==null?void 0:Et.horizontalScrollBarThumb,showScrollBar:ir}))}var tn=Je.forwardRef(Rt);tn.displayName="List";var zn=tn,Yn=zn},22061:function(He,Ee,ae){"use strict";ae.d(Ee,{Z5:function(){return Td},_l:function(){return Gu},bK:function(){return Ds}});var oe=ae(59301),Ce=ae(528),ke=ae(67711),Ie=ae(59781),je=oe.createContext(null),Te=null;function Ge(we){we()}var lt=Ge,Qe=function(Ne){return lt=Ne},Ue=function(){return lt};function mt(){var we=Ue(),Ne=null,We=null;return{clear:function(){Ne=null,We=null},notify:function(){we(function(){for(var At=Ne;At;)At.callback(),At=At.next})},get:function(){for(var At=[],Nt=Ne;Nt;)At.push(Nt),Nt=Nt.next;return At},subscribe:function(At){var Nt=!0,Ft=We={callback:At,next:null,prev:We};return Ft.prev?Ft.prev.next=Ft:Ne=Ft,function(){!Nt||Ne===null||(Nt=!1,Ft.next?Ft.next.prev=Ft.prev:We=Ft.prev,Ft.prev?Ft.prev.next=Ft.next:Ne=Ft.next)}}}}var Je={notify:function(){},get:function(){return[]}};function It(we,Ne){var We,ut=Je;function At(Un){return Bn(),ut.subscribe(Un)}function Nt(){ut.notify()}function Ft(){er.onStateChange&&er.onStateChange()}function Kt(){return!!We}function Bn(){We||(We=Ne?Ne.addNestedSub(Ft):we.subscribe(Ft),ut=mt())}function rr(){We&&(We(),We=void 0,ut.clear(),ut=Je)}var er={addNestedSub:At,notifyNestedSubs:Nt,handleChangeWrapper:Ft,isSubscribed:Kt,trySubscribe:Bn,tryUnsubscribe:rr,getListeners:function(){return ut}};return er}var Oe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect;function te(we){var Ne=we.store,We=we.context,ut=we.children,At=(0,oe.useMemo)(function(){var Kt=It(Ne);return{store:Ne,subscription:Kt}},[Ne]),Nt=(0,oe.useMemo)(function(){return Ne.getState()},[Ne]);Oe(function(){var Kt=At.subscription;return Kt.onStateChange=Kt.notifyNestedSubs,Kt.trySubscribe(),Nt!==Ne.getState()&&Kt.notifyNestedSubs(),function(){Kt.tryUnsubscribe(),Kt.onStateChange=null}},[At,Nt]);var Ft=We||je;return oe.createElement(Ft.Provider,{value:At},ut)}var ee=te,he=ae(12359),ue=ae(94266),fe=ae.n(ue),me=ae(53410),be=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ae=["reactReduxForwardedRef"],De=[],Ye=[null,null],rt=function(Ne){try{return JSON.stringify(Ne)}catch(We){return String(Ne)}};function $e(we,Ne){var We=we[1];return[Ne.payload,We+1]}function at(we,Ne,We){Oe(function(){return we.apply(void 0,Ne)},We)}function ht(we,Ne,We,ut,At,Nt,Ft){we.current=ut,Ne.current=At,We.current=!1,Nt.current&&(Nt.current=null,Ft())}function ot(we,Ne,We,ut,At,Nt,Ft,Kt,Bn,rr){if(we){var er=!1,Un=null,Xn=function(){if(!er){var Hi=Ne.getState(),Ki,qi;try{Ki=ut(Hi,At.current)}catch(So){qi=So,Un=So}qi||(Un=null),Ki===Nt.current?Ft.current||Bn():(Nt.current=Ki,Kt.current=Ki,Ft.current=!0,rr({type:"STORE_UPDATED",payload:{error:qi}}))}};We.onStateChange=Xn,We.trySubscribe(),Xn();var fr=function(){if(er=!0,We.tryUnsubscribe(),We.onStateChange=null,Un)throw Un};return fr}}var vt=function(){return[null,0]};function xt(we,Ne){Ne===void 0&&(Ne={});var We=Ne,ut=We.getDisplayName,At=ut===void 0?function(Go){return"ConnectAdvanced("+Go+")"}:ut,Nt=We.methodName,Ft=Nt===void 0?"connectAdvanced":Nt,Kt=We.renderCountProp,Bn=Kt===void 0?void 0:Kt,rr=We.shouldHandleStateChanges,er=rr===void 0?!0:rr,Un=We.storeKey,Xn=Un===void 0?"store":Un,fr=We.withRef,ti=fr===void 0?!1:fr,Hi=We.forwardRef,Ki=Hi===void 0?!1:Hi,qi=We.context,So=qi===void 0?je:qi,Co=(0,he.Z)(We,be);if(0)var Ro;var ra=So;return function(Ha){var ml=Ha.displayName||Ha.name||"Component",Ka=At(ml),Ws=(0,ke.Z)({},Co,{getDisplayName:At,methodName:Ft,renderCountProp:Bn,shouldHandleStateChanges:er,storeKey:Xn,displayName:Ka,wrappedComponentName:ml,WrappedComponent:Ha}),tu=Co.pure;function Au(Zs){return we(Zs.dispatch,Ws)}var dd=tu?oe.useMemo:function(Zs){return Zs()};function _c(Zs){var Nu=(0,oe.useMemo)(function(){var Ml=Zs.reactReduxForwardedRef,vl=(0,he.Z)(Zs,Ae);return[Zs.context,Ml,vl]},[Zs]),Hc=Nu[0],nu=Nu[1],wc=Nu[2],Eh=(0,oe.useMemo)(function(){return Hc&&Hc.Consumer&&(0,me.isContextConsumer)(oe.createElement(Hc.Consumer,null))?Hc:ra},[Hc,ra]),Cc=(0,oe.useContext)(Eh),_o=!!Zs.store&&!!Zs.store.getState&&!!Zs.store.dispatch,wp=!!Cc&&!!Cc.store,hd=_o?Zs.store:Cc.store,nf=(0,oe.useMemo)(function(){return Au(hd)},[hd]),$d=(0,oe.useMemo)(function(){if(!er)return Ye;var Ml=It(hd,_o?null:Cc.subscription),vl=Ml.notifyNestedSubs.bind(Ml);return[Ml,vl]},[hd,_o,Cc]),fd=$d[0],Pc=$d[1],Bf=(0,oe.useMemo)(function(){return _o?Cc:(0,ke.Z)({},Cc,{subscription:fd})},[_o,Cc,fd]),sg=(0,oe.useReducer)($e,De,vt),Vg=sg[0],_f=Vg[0],Um=sg[1];if(_f&&_f.error)throw _f.error;var xh=(0,oe.useRef)(),Cp=(0,oe.useRef)(wc),Uf=(0,oe.useRef)(),Pp=(0,oe.useRef)(!1),wh=dd(function(){return Uf.current&&wc===Cp.current?Uf.current:nf(hd.getState(),wc)},[hd,_f,wc]);at(ht,[Cp,xh,Pp,wc,wh,Uf,Pc]),at(ot,[er,hd,fd,nf,Cp,xh,Pp,Uf,Pc,Um],[hd,fd,nf]);var Tp=(0,oe.useMemo)(function(){return oe.createElement(Ha,(0,ke.Z)({},wh,{ref:nu}))},[nu,Ha,wh]),ha=(0,oe.useMemo)(function(){return er?oe.createElement(Eh.Provider,{value:Bf},Tp):Tp},[Eh,Tp,Bf]);return ha}var ju=tu?oe.memo(_c):_c;if(ju.WrappedComponent=Ha,ju.displayName=_c.displayName=Ka,Ki){var Uc=oe.forwardRef(function(Nu,Hc){return oe.createElement(ju,(0,ke.Z)({},Nu,{reactReduxForwardedRef:Hc}))});return Uc.displayName=Ka,Uc.WrappedComponent=Ha,fe()(Uc,Ha)}return fe()(ju,Ha)}}function Tt(we,Ne){return we===Ne?we!==0||Ne!==0||1/we===1/Ne:we!==we&&Ne!==Ne}function _t(we,Ne){if(Tt(we,Ne))return!0;if(typeof we!="object"||we===null||typeof Ne!="object"||Ne===null)return!1;var We=Object.keys(we),ut=Object.keys(Ne);if(We.length!==ut.length)return!1;for(var At=0;At<We.length;At++)if(!Object.prototype.hasOwnProperty.call(Ne,We[At])||!Tt(we[We[At]],Ne[We[At]]))return!1;return!0}function Jt(we,Ne){var We={},ut=function(Ft){var Kt=we[Ft];typeof Kt=="function"&&(We[Ft]=function(){return Ne(Kt.apply(void 0,arguments))})};for(var At in we)ut(At);return We}function Zt(we){return function(We,ut){var At=we(We,ut);function Nt(){return At}return Nt.dependsOnOwnProps=!1,Nt}}function vn(we){return we.dependsOnOwnProps!==null&&we.dependsOnOwnProps!==void 0?!!we.dependsOnOwnProps:we.length!==1}function bt(we,Ne){return function(ut,At){var Nt=At.displayName,Ft=function(Bn,rr){return Ft.dependsOnOwnProps?Ft.mapToProps(Bn,rr):Ft.mapToProps(Bn)};return Ft.dependsOnOwnProps=!0,Ft.mapToProps=function(Bn,rr){Ft.mapToProps=we,Ft.dependsOnOwnProps=vn(we);var er=Ft(Bn,rr);return typeof er=="function"&&(Ft.mapToProps=er,Ft.dependsOnOwnProps=vn(er),er=Ft(Bn,rr)),er},Ft}}function ft(we){return typeof we=="function"?bt(we,"mapDispatchToProps"):void 0}function ct(we){return we?void 0:Zt(function(Ne){return{dispatch:Ne}})}function qt(we){return we&&typeof we=="object"?Zt(function(Ne){return Jt(we,Ne)}):void 0}var dn=[ft,ct,qt];function kt(we){return typeof we=="function"?bt(we,"mapStateToProps"):void 0}function bn(we){return we?void 0:Zt(function(){return{}})}var gn=[kt,bn];function Zn(we,Ne,We){return(0,ke.Z)({},We,we,Ne)}function Gt(we){return function(We,ut){var At=ut.displayName,Nt=ut.pure,Ft=ut.areMergedPropsEqual,Kt=!1,Bn;return function(er,Un,Xn){var fr=we(er,Un,Xn);return Kt?(!Nt||!Ft(fr,Bn))&&(Bn=fr):(Kt=!0,Bn=fr),Bn}}}function Rt(we){return typeof we=="function"?Gt(we):void 0}function tn(we){return we?void 0:function(){return Zn}}var zn=[Rt,tn],Yn=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function nt(we,Ne,We,ut){return function(Nt,Ft){return We(we(Nt,Ft),Ne(ut,Ft),Ft)}}function Be(we,Ne,We,ut,At){var Nt=At.areStatesEqual,Ft=At.areOwnPropsEqual,Kt=At.areStatePropsEqual,Bn=!1,rr,er,Un,Xn,fr;function ti(Co,Ro){return rr=Co,er=Ro,Un=we(rr,er),Xn=Ne(ut,er),fr=We(Un,Xn,er),Bn=!0,fr}function Hi(){return Un=we(rr,er),Ne.dependsOnOwnProps&&(Xn=Ne(ut,er)),fr=We(Un,Xn,er),fr}function Ki(){return we.dependsOnOwnProps&&(Un=we(rr,er)),Ne.dependsOnOwnProps&&(Xn=Ne(ut,er)),fr=We(Un,Xn,er),fr}function qi(){var Co=we(rr,er),Ro=!Kt(Co,Un);return Un=Co,Ro&&(fr=We(Un,Xn,er)),fr}function So(Co,Ro){var ra=!Ft(Ro,er),Go=!Nt(Co,rr,Ro,er);return rr=Co,er=Ro,ra&&Go?Hi():ra?Ki():Go?qi():fr}return function(Ro,ra){return Bn?So(Ro,ra):ti(Ro,ra)}}function Re(we,Ne){var We=Ne.initMapStateToProps,ut=Ne.initMapDispatchToProps,At=Ne.initMergeProps,Nt=(0,he.Z)(Ne,Yn),Ft=We(we,Nt),Kt=ut(we,Nt),Bn=At(we,Nt),rr=Nt.pure?Be:nt;return rr(Ft,Kt,Bn,we,Nt)}var Ze=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function st(we,Ne,We){for(var ut=Ne.length-1;ut>=0;ut--){var At=Ne[ut](we);if(At)return At}return function(Nt,Ft){throw new Error("Invalid value of type "+typeof we+" for "+We+" argument when connecting component "+Ft.wrappedComponentName+".")}}function Fe(we,Ne){return we===Ne}function St(we){var Ne=we===void 0?{}:we,We=Ne.connectHOC,ut=We===void 0?xt:We,At=Ne.mapStateToPropsFactories,Nt=At===void 0?gn:At,Ft=Ne.mapDispatchToPropsFactories,Kt=Ft===void 0?dn:Ft,Bn=Ne.mergePropsFactories,rr=Bn===void 0?zn:Bn,er=Ne.selectorFactory,Un=er===void 0?Re:er;return function(fr,ti,Hi,Ki){Ki===void 0&&(Ki={});var qi=Ki,So=qi.pure,Co=So===void 0?!0:So,Ro=qi.areStatesEqual,ra=Ro===void 0?Fe:Ro,Go=qi.areOwnPropsEqual,Ha=Go===void 0?_t:Go,ml=qi.areStatePropsEqual,Ka=ml===void 0?_t:ml,Ws=qi.areMergedPropsEqual,tu=Ws===void 0?_t:Ws,Au=(0,he.Z)(qi,Ze),dd=st(fr,Nt,"mapStateToProps"),_c=st(ti,Kt,"mapDispatchToProps"),ju=st(Hi,rr,"mergeProps");return ut(Un,(0,ke.Z)({methodName:"connect",getDisplayName:function(Zs){return"Connect("+Zs+")"},shouldHandleStateChanges:!!fr,initMapStateToProps:dd,initMapDispatchToProps:_c,initMergeProps:ju,pure:Co,areStatesEqual:ra,areOwnPropsEqual:Ha,areStatePropsEqual:Ka,areMergedPropsEqual:tu},Au))}}var hn=St();function On(){var we=useContext(ReactReduxContext);return we}function or(we){we===void 0&&(we=ReactReduxContext);var Ne=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(){var ut=Ne(),At=ut.store;return At}}var jt=null;function Ut(we){we===void 0&&(we=ReactReduxContext);var Ne=we===ReactReduxContext?useDefaultStore:createStoreHook(we);return function(){var ut=Ne();return ut.dispatch}}var Qt=null,En=function(Ne,We){return Ne===We};function Mn(we,Ne,We,ut){var At=useReducer(function(ti){return ti+1},0),Nt=At[1],Ft=useMemo(function(){return createSubscription(We,ut)},[We,ut]),Kt=useRef(),Bn=useRef(),rr=useRef(),er=useRef(),Un=We.getState(),Xn;try{if(we!==Bn.current||Un!==rr.current||Kt.current){var fr=we(Un);er.current===void 0||!Ne(fr,er.current)?Xn=fr:Xn=er.current}else Xn=er.current}catch(ti){throw Kt.current&&(ti.message+=`
The error may be correlated with this previous error:
`+Kt.current.stack+`
`),ti}return useIsomorphicLayoutEffect(function(){Bn.current=we,rr.current=Un,er.current=Xn,Kt.current=void 0}),useIsomorphicLayoutEffect(function(){function ti(){try{var Hi=We.getState();if(Hi===rr.current)return;var Ki=Bn.current(Hi);if(Ne(Ki,er.current))return;er.current=Ki,rr.current=Hi}catch(qi){Kt.current=qi}Nt()}return Ft.onStateChange=ti,Ft.trySubscribe(),ti(),function(){return Ft.tryUnsubscribe()}},[We,Ft]),Xn}function Tn(we){we===void 0&&(we=ReactReduxContext);var Ne=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(ut,At){At===void 0&&(At=En);var Nt=Ne(),Ft=Nt.store,Kt=Nt.subscription,Bn=Mn(ut,At,Ft,Kt);return useDebugValue(Bn),Bn}}var Ht=null,Vn=ae(4676);Qe(Vn.unstable_batchedUpdates);function Xt(we,Ne){if(we.length!==Ne.length)return!1;for(var We=0;We<we.length;We++)if(we[We]!==Ne[We])return!1;return!0}function nn(we,Ne){var We=(0,oe.useState)(function(){return{inputs:Ne,result:we()}})[0],ut=(0,oe.useRef)(!0),At=(0,oe.useRef)(We),Nt=ut.current||!!(Ne&&At.current.inputs&&Xt(Ne,At.current.inputs)),Ft=Nt?At.current:{inputs:Ne,result:we()};return(0,oe.useEffect)(function(){ut.current=!1,At.current=Ft},[Ft]),Ft.result}function fn(we,Ne){return nn(function(){return we},Ne)}var Gn=nn,cn=fn,Et=!0,Jn="Invariant failed";function ir(we,Ne){if(!we){if(Et)throw new Error(Jn);var We=typeof Ne=="function"?Ne():Ne,ut=We?"".concat(Jn,": ").concat(We):Jn;throw new Error(ut)}}var Wt=function(Ne){var We=Ne.top,ut=Ne.right,At=Ne.bottom,Nt=Ne.left,Ft=ut-Nt,Kt=At-We,Bn={top:We,right:ut,bottom:At,left:Nt,width:Ft,height:Kt,x:Nt,y:We,center:{x:(ut+Nt)/2,y:(At+We)/2}};return Bn},wr=function(Ne,We){return{top:Ne.top-We.top,left:Ne.left-We.left,bottom:Ne.bottom+We.bottom,right:Ne.right+We.right}},ei=function(Ne,We){return{top:Ne.top+We.top,left:Ne.left+We.left,bottom:Ne.bottom-We.bottom,right:Ne.right-We.right}},Fr=function(Ne,We){return{top:Ne.top+We.y,left:Ne.left+We.x,bottom:Ne.bottom+We.y,right:Ne.right+We.x}},Dn={top:0,right:0,bottom:0,left:0},ii=function(Ne){var We=Ne.borderBox,ut=Ne.margin,At=ut===void 0?Dn:ut,Nt=Ne.border,Ft=Nt===void 0?Dn:Nt,Kt=Ne.padding,Bn=Kt===void 0?Dn:Kt,rr=Wt(wr(We,At)),er=Wt(ei(We,Ft)),Un=Wt(ei(er,Bn));return{marginBox:rr,borderBox:Wt(We),paddingBox:er,contentBox:Un,margin:At,border:Ft,padding:Bn}},Kr=function(Ne){var We=Ne.slice(0,-2),ut=Ne.slice(-2);if(ut!=="px")return 0;var At=Number(We);return isNaN(At)&&ir(!1),At},cr=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Dr=function(Ne,We){var ut=Ne.borderBox,At=Ne.border,Nt=Ne.margin,Ft=Ne.padding,Kt=Fr(ut,We);return ii({borderBox:Kt,border:At,margin:Nt,padding:Ft})},ri=function(Ne,We){return We===void 0&&(We=cr()),Dr(Ne,We)},_e=function(Ne,We){var ut={top:Kr(We.marginTop),right:Kr(We.marginRight),bottom:Kr(We.marginBottom),left:Kr(We.marginLeft)},At={top:Kr(We.paddingTop),right:Kr(We.paddingRight),bottom:Kr(We.paddingBottom),left:Kr(We.paddingLeft)},Nt={top:Kr(We.borderTopWidth),right:Kr(We.borderRightWidth),bottom:Kr(We.borderBottomWidth),left:Kr(We.borderLeftWidth)};return ii({borderBox:Ne,margin:ut,padding:At,border:Nt})},Mr=function(Ne){var We=Ne.getBoundingClientRect(),ut=window.getComputedStyle(Ne);return _e(We,ut)},Tr=Number.isNaN||function(Ne){return typeof Ne=="number"&&Ne!==Ne};function sr(we,Ne){return!!(we===Ne||Tr(we)&&Tr(Ne))}function _r(we,Ne){if(we.length!==Ne.length)return!1;for(var We=0;We<we.length;We++)if(!sr(we[We],Ne[We]))return!1;return!0}function Gr(we,Ne){Ne===void 0&&(Ne=_r);var We,ut=[],At,Nt=!1;function Ft(){for(var Kt=[],Bn=0;Bn<arguments.length;Bn++)Kt[Bn]=arguments[Bn];return Nt&&We===this&&Ne(Kt,ut)||(At=we.apply(this,Kt),Nt=!0,We=this,ut=Kt),At}return Ft}var br=Gr,Ci=function(Ne){var We=[],ut=null,At=function(){for(var Ft=arguments.length,Kt=new Array(Ft),Bn=0;Bn<Ft;Bn++)Kt[Bn]=arguments[Bn];We=Kt,!ut&&(ut=requestAnimationFrame(function(){ut=null,Ne.apply(void 0,We)}))};return At.cancel=function(){ut&&(cancelAnimationFrame(ut),ut=null)},At},Rn=Ci,Pn=!0,Sn=/[ \t]{2,}/g,$n=/^[ \t]*/gm,li=function(Ne){return Ne.replace(Sn," ").replace($n,"").trim()},Yr=function(Ne){return li(`
%creact-beautiful-dnd
%c`+li(Ne)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},ci=function(Ne){return[Yr(Ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},_n="__react-beautiful-dnd-disable-dev-warnings";function dr(we,Ne){var We;Pn||typeof window!="undefined"&&window[_n]||(We=console)[we].apply(We,ci(Ne))}var oi=dr.bind(null,"warn"),bi=dr.bind(null,"error");function Pr(){}function Lt(we,Ne){return(0,ke.Z)({},we,{},Ne)}function ln(we,Ne,We){var ut=Ne.map(function(At){var Nt=Lt(We,At.options);return we.addEventListener(At.eventName,At.fn,Nt),function(){we.removeEventListener(At.eventName,At.fn,Nt)}});return function(){ut.forEach(function(Nt){Nt()})}}var Nr=!0,Er="Invariant failed";function Yt(we){this.message=we}Yt.prototype.toString=function(){return this.message};function Nn(we,Ne){if(!we)throw Nr?new Yt(Er):new Yt(Er+": "+(Ne||""))}var Xr=function(we){(0,Ce.Z)(Ne,we);function Ne(){for(var ut,At=arguments.length,Nt=new Array(At),Ft=0;Ft<At;Ft++)Nt[Ft]=arguments[Ft];return ut=we.call.apply(we,[this].concat(Nt))||this,ut.callbacks=null,ut.unbind=Pr,ut.onWindowError=function(Kt){var Bn=ut.getCallbacks();Bn.isDragging()&&Bn.tryAbort();var rr=Kt.error;rr instanceof Yt&&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 We=Ne.prototype;return We.componentDidMount=function(){this.unbind=ln(window,[{eventName:"error",fn:this.onWindowError}])},We.componentWillUnmount=function(){this.unbind()},We.componentDidCatch=function(At){if(At instanceof Yt){this.setState({});return}throw At},We.render=function(){return this.props.children(this.setCallbacks)},Ne}(oe.Component),Ln=`
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
`,Ve=function(Ne){return Ne+1},Rr=function(Ne){return`
You have lifted an item in position `+Ve(Ne.source.index)+`
`},kr=function(Ne,We){var ut=Ne.droppableId===We.droppableId,At=Ve(Ne.index),Nt=Ve(We.index);return ut?`
You have moved the item from position `+At+`
to position `+Nt+`
`:`
You have moved the item from position `+At+`
in list `+Ne.droppableId+`
to list `+We.droppableId+`
in position `+Nt+`
`},jn=function(Ne,We,ut){var At=We.droppableId===ut.droppableId;return At?`
The item `+Ne+`
has been combined with `+ut.draggableId:`
The item `+Ne+`
in list `+We.droppableId+`
has been combined with `+ut.draggableId+`
in list `+ut.droppableId+`
`},hi=function(Ne){var We=Ne.destination;if(We)return kr(Ne.source,We);var ut=Ne.combine;return ut?jn(Ne.draggableId,Ne.source,ut):"You are over an area that cannot be dropped on"},jr=function(Ne){return`
The item has returned to its starting position
of `+Ve(Ne.index)+`
`},ar=function(Ne){if(Ne.reason==="CANCEL")return`
Movement cancelled.
`+jr(Ne.source)+`
`;var We=Ne.destination,ut=Ne.combine;return We?`
You have dropped the item.
`+kr(Ne.source,We)+`
`:ut?`
You have dropped the item.
`+jn(Ne.draggableId,Ne.source,ut)+`
`:`
The item has been dropped while not over a drop area.
`+jr(Ne.source)+`
`},Qr={dragHandleUsageInstructions:Ln,onDragStart:Rr,onDragUpdate:hi,onDragEnd:ar},un={x:0,y:0},Ti=function(Ne,We){return{x:Ne.x+We.x,y:Ne.y+We.y}},eo=function(Ne,We){return{x:Ne.x-We.x,y:Ne.y-We.y}},mn=function(Ne,We){return Ne.x===We.x&&Ne.y===We.y},wi=function(Ne){return{x:Ne.x!==0?-Ne.x:0,y:Ne.y!==0?-Ne.y:0}},Di=function(Ne,We,ut){var At;return ut===void 0&&(ut=0),At={},At[Ne]=We,At[Ne==="x"?"y":"x"]=ut,At},gi=function(Ne,We){return Math.sqrt(Math.pow(We.x-Ne.x,2)+Math.pow(We.y-Ne.y,2))},ki=function(Ne,We){return Math.min.apply(Math,We.map(function(ut){return gi(Ne,ut)}))},zi=function(Ne){return function(We){return{x:Ne(We.x),y:Ne(We.y)}}},ro=function(we,Ne){var We=Wt({top:Math.max(Ne.top,we.top),right:Math.min(Ne.right,we.right),bottom:Math.min(Ne.bottom,we.bottom),left:Math.max(Ne.left,we.left)});return We.width<=0||We.height<=0?null:We},Gi=function(Ne,We){return{top:Ne.top+We.y,left:Ne.left+We.x,bottom:Ne.bottom+We.y,right:Ne.right+We.x}},Fi=function(Ne){return[{x:Ne.left,y:Ne.top},{x:Ne.right,y:Ne.top},{x:Ne.left,y:Ne.bottom},{x:Ne.right,y:Ne.bottom}]},io={top:0,right:0,bottom:0,left:0},qn=function(Ne,We){return We?Gi(Ne,We.scroll.diff.displacement):Ne},Ui=function(Ne,We,ut){if(ut&&ut.increasedBy){var At;return(0,ke.Z)({},Ne,(At={},At[We.end]=Ne[We.end]+ut.increasedBy[We.line],At))}return Ne},lr=function(Ne,We){return We&&We.shouldClipSubject?ro(We.pageMarginBox,Ne):Wt(Ne)},vi=function(we){var Ne=we.page,We=we.withPlaceholder,ut=we.axis,At=we.frame,Nt=qn(Ne.marginBox,At),Ft=Ui(Nt,ut,We),Kt=lr(Ft,At);return{page:Ne,withPlaceholder:We,active:Kt}},Vi=function(we,Ne){we.frame||Nn(!1);var We=we.frame,ut=eo(Ne,We.scroll.initial),At=wi(ut),Nt=(0,ke.Z)({},We,{scroll:{initial:We.scroll.initial,current:Ne,diff:{value:ut,displacement:At},max:We.scroll.max}}),Ft=vi({page:we.subject.page,withPlaceholder:we.subject.withPlaceholder,axis:we.axis,frame:Nt}),Kt=(0,ke.Z)({},we,{frame:Nt,subject:Ft});return Kt};function Oi(we){return Number.isInteger?Number.isInteger(we):typeof we=="number"&&isFinite(we)&&Math.floor(we)===we}function fo(we){return Object.values?Object.values(we):Object.keys(we).map(function(Ne){return we[Ne]})}function co(we,Ne){if(we.findIndex)return we.findIndex(Ne);for(var We=0;We<we.length;We++)if(Ne(we[We]))return We;return-1}function ji(we,Ne){if(we.find)return we.find(Ne);var We=co(we,Ne);if(We!==-1)return we[We]}function zo(we){return Array.prototype.slice.call(we)}var Fn=br(function(we){return we.reduce(function(Ne,We){return Ne[We.descriptor.id]=We,Ne},{})}),mr=br(function(we){return we.reduce(function(Ne,We){return Ne[We.descriptor.id]=We,Ne},{})}),wn=br(function(we){return fo(we)}),it=br(function(we){return fo(we)}),Or=br(function(we,Ne){var We=it(Ne).filter(function(ut){return we===ut.descriptor.droppableId}).sort(function(ut,At){return ut.descriptor.index-At.descriptor.index});return We});function Wr(we){return we.at&&we.at.type==="REORDER"?we.at.destination:null}function pi(we){return we.at&&we.at.type==="COMBINE"?we.at.combine:null}var di=br(function(we,Ne){return Ne.filter(function(We){return We.descriptor.id!==we.descriptor.id})}),ai=function(we){var Ne=we.isMovingForward,We=we.draggable,ut=we.destination,At=we.insideDestination,Nt=we.previousImpact;if(!ut.isCombineEnabled)return null;var Ft=Wr(Nt);if(!Ft)return null;function Kt(Hi){var Ki={type:"COMBINE",combine:{draggableId:Hi,droppableId:ut.descriptor.id}};return(0,ke.Z)({},Nt,{at:Ki})}var Bn=Nt.displaced.all,rr=Bn.length?Bn[0]:null;if(Ne)return rr?Kt(rr):null;var er=di(We,At);if(!rr){if(!er.length)return null;var Un=er[er.length-1];return Kt(Un.descriptor.id)}var Xn=co(er,function(Hi){return Hi.descriptor.id===rr});Xn===-1&&Nn(!1);var fr=Xn-1;if(fr<0)return null;var ti=er[fr];return Kt(ti.descriptor.id)},gr=function(we,Ne){return we.descriptor.droppableId===Ne.descriptor.id},pt={point:un,value:0},yn={invisible:{},visible:{},all:[]},xn={displaced:yn,displacedBy:pt,at:null},Hn=function(we,Ne){return function(We){return we<=We&&We<=Ne}},pn=function(we){var Ne=Hn(we.top,we.bottom),We=Hn(we.left,we.right);return function(ut){var At=Ne(ut.top)&&Ne(ut.bottom)&&We(ut.left)&&We(ut.right);if(At)return!0;var Nt=Ne(ut.top)||Ne(ut.bottom),Ft=We(ut.left)||We(ut.right),Kt=Nt&&Ft;if(Kt)return!0;var Bn=ut.top<we.top&&ut.bottom>we.bottom,rr=ut.left<we.left&&ut.right>we.right,er=Bn&&rr;if(er)return!0;var Un=Bn&&Ft||rr&&Nt;return Un}},tr=function(we){var Ne=Hn(we.top,we.bottom),We=Hn(we.left,we.right);return function(ut){var At=Ne(ut.top)&&Ne(ut.bottom)&&We(ut.left)&&We(ut.right);return At}},Qn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},an={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},hr=function(we){return function(Ne){var We=Hn(Ne.top,Ne.bottom),ut=Hn(Ne.left,Ne.right);return function(At){return we===Qn?We(At.top)&&We(At.bottom):ut(At.left)&&ut(At.right)}}},Vr=function(Ne,We){var ut=We.frame?We.frame.scroll.diff.displacement:un;return Gi(Ne,ut)},Ai=function(Ne,We,ut){return We.subject.active?ut(We.subject.active)(Ne):!1},si=function(Ne,We,ut){return ut(We)(Ne)},Si=function(Ne){var We=Ne.target,ut=Ne.destination,At=Ne.viewport,Nt=Ne.withDroppableDisplacement,Ft=Ne.isVisibleThroughFrameFn,Kt=Nt?Vr(We,ut):We;return Ai(Kt,ut,Ft)&&si(Kt,At,Ft)},Ii=function(Ne){return Si((0,ke.Z)({},Ne,{isVisibleThroughFrameFn:pn}))},Bi=function(Ne){return Si((0,ke.Z)({},Ne,{isVisibleThroughFrameFn:tr}))},ao=function(Ne){return Si((0,ke.Z)({},Ne,{isVisibleThroughFrameFn:hr(Ne.destination.axis)}))},wo=function(Ne,We,ut){if(typeof ut=="boolean")return ut;if(!We)return!0;var At=We.invisible,Nt=We.visible;if(At[Ne])return!1;var Ft=Nt[Ne];return Ft?Ft.shouldAnimate:!0};function Ho(we,Ne){var We=we.page.marginBox,ut={top:Ne.point.y,right:0,bottom:0,left:Ne.point.x};return Wt(wr(We,ut))}function An(we){var Ne=we.afterDragging,We=we.destination,ut=we.displacedBy,At=we.viewport,Nt=we.forceShouldAnimate,Ft=we.last;return Ne.reduce(function(Bn,rr){var er=Ho(rr,ut),Un=rr.descriptor.id;Bn.all.push(Un);var Xn=Ii({target:er,destination:We,viewport:At,withDroppableDisplacement:!0});if(!Xn)return Bn.invisible[rr.descriptor.id]=!0,Bn;var fr=wo(Un,Ft,Nt),ti={draggableId:Un,shouldAnimate:fr};return Bn.visible[Un]=ti,Bn},{all:[],visible:{},invisible:{}})}function ko(we,Ne){if(!we.length)return 0;var We=we[we.length-1].descriptor.index;return Ne.inHomeList?We:We+1}function po(we){var Ne=we.insideDestination,We=we.inHomeList,ut=we.displacedBy,At=we.destination,Nt=ko(Ne,{inHomeList:We});return{displaced:yn,displacedBy:ut,at:{type:"REORDER",destination:{droppableId:At.descriptor.id,index:Nt}}}}function Zi(we){var Ne=we.draggable,We=we.insideDestination,ut=we.destination,At=we.viewport,Nt=we.displacedBy,Ft=we.last,Kt=we.index,Bn=we.forceShouldAnimate,rr=gr(Ne,ut);if(Kt==null)return po({insideDestination:We,inHomeList:rr,displacedBy:Nt,destination:ut});var er=ji(We,function(Hi){return Hi.descriptor.index===Kt});if(!er)return po({insideDestination:We,inHomeList:rr,displacedBy:Nt,destination:ut});var Un=di(Ne,We),Xn=We.indexOf(er),fr=Un.slice(Xn),ti=An({afterDragging:fr,destination:ut,displacedBy:Nt,last:Ft,viewport:At.frame,forceShouldAnimate:Bn});return{displaced:ti,displacedBy:Nt,at:{type:"REORDER",destination:{droppableId:ut.descriptor.id,index:Kt}}}}function Mi(we,Ne){return!!Ne.effected[we]}var Oo=function(we){var Ne=we.isMovingForward,We=we.destination,ut=we.draggables,At=we.combine,Nt=we.afterCritical;if(!We.isCombineEnabled)return null;var Ft=At.draggableId,Kt=ut[Ft],Bn=Kt.descriptor.index,rr=Mi(Ft,Nt);return rr?Ne?Bn:Bn-1:Ne?Bn+1:Bn},Wo=function(we){var Ne=we.isMovingForward,We=we.isInHomeList,ut=we.insideDestination,At=we.location;if(!ut.length)return null;var Nt=At.index,Ft=Ne?Nt+1:Nt-1,Kt=ut[0].descriptor.index,Bn=ut[ut.length-1].descriptor.index,rr=We?Bn:Bn+1;return Ft<Kt||Ft>rr?null:Ft},Wn=function(we){var Ne=we.isMovingForward,We=we.isInHomeList,ut=we.draggable,At=we.draggables,Nt=we.destination,Ft=we.insideDestination,Kt=we.previousImpact,Bn=we.viewport,rr=we.afterCritical,er=Kt.at;if(er||Nn(!1),er.type==="REORDER"){var Un=Wo({isMovingForward:Ne,isInHomeList:We,location:er.destination,insideDestination:Ft});return Un==null?null:Zi({draggable:ut,insideDestination:Ft,destination:Nt,viewport:Bn,last:Kt.displaced,displacedBy:Kt.displacedBy,index:Un})}var Xn=Oo({isMovingForward:Ne,destination:Nt,displaced:Kt.displaced,draggables:At,combine:er.combine,afterCritical:rr});return Xn==null?null:Zi({draggable:ut,insideDestination:Ft,destination:Nt,viewport:Bn,last:Kt.displaced,displacedBy:Kt.displacedBy,index:Xn})},vo=function(we){var Ne=we.displaced,We=we.afterCritical,ut=we.combineWith,At=we.displacedBy,Nt=!!(Ne.visible[ut]||Ne.invisible[ut]);return Mi(ut,We)?Nt?un:wi(At.point):Nt?At.point:un},ia=function(we){var Ne=we.afterCritical,We=we.impact,ut=we.draggables,At=pi(We);At||Nn(!1);var Nt=At.draggableId,Ft=ut[Nt].page.borderBox.center,Kt=vo({displaced:We.displaced,afterCritical:Ne,combineWith:Nt,displacedBy:We.displacedBy});return Ti(Ft,Kt)},za=function(Ne,We){return We.margin[Ne.start]+We.borderBox[Ne.size]/2},hs=function(Ne,We){return We.margin[Ne.end]+We.borderBox[Ne.size]/2},il=function(Ne,We,ut){return We[Ne.crossAxisStart]+ut.margin[Ne.crossAxisStart]+ut.borderBox[Ne.crossAxisSize]/2},Ls=function(Ne){var We=Ne.axis,ut=Ne.moveRelativeTo,At=Ne.isMoving;return Di(We.line,ut.marginBox[We.end]+za(We,At),il(We,ut.marginBox,At))},to=function(Ne){var We=Ne.axis,ut=Ne.moveRelativeTo,At=Ne.isMoving;return Di(We.line,ut.marginBox[We.start]-hs(We,At),il(We,ut.marginBox,At))},Ra=function(Ne){var We=Ne.axis,ut=Ne.moveInto,At=Ne.isMoving;return Di(We.line,ut.contentBox[We.start]+za(We,At),il(We,ut.contentBox,At))},Ma=function(we){var Ne=we.impact,We=we.draggable,ut=we.draggables,At=we.droppable,Nt=we.afterCritical,Ft=Or(At.descriptor.id,ut),Kt=We.page,Bn=At.axis;if(!Ft.length)return Ra({axis:Bn,moveInto:At.page,isMoving:Kt});var rr=Ne.displaced,er=Ne.displacedBy,Un=rr.all[0];if(Un){var Xn=ut[Un];if(Mi(Un,Nt))return to({axis:Bn,moveRelativeTo:Xn.page,isMoving:Kt});var fr=Dr(Xn.page,er.point);return to({axis:Bn,moveRelativeTo:fr,isMoving:Kt})}var ti=Ft[Ft.length-1];if(ti.descriptor.id===We.descriptor.id)return Kt.borderBox.center;if(Mi(ti.descriptor.id,Nt)){var Hi=Dr(ti.page,wi(Nt.displacedBy.point));return Ls({axis:Bn,moveRelativeTo:Hi,isMoving:Kt})}return Ls({axis:Bn,moveRelativeTo:ti.page,isMoving:Kt})},ts=function(we,Ne){var We=we.frame;return We?Ti(Ne,We.scroll.diff.displacement):Ne},Oa=function(Ne){var We=Ne.impact,ut=Ne.draggable,At=Ne.droppable,Nt=Ne.draggables,Ft=Ne.afterCritical,Kt=ut.page.borderBox.center,Bn=We.at;return!At||!Bn?Kt:Bn.type==="REORDER"?Ma({impact:We,draggable:ut,draggables:Nt,droppable:At,afterCritical:Ft}):ia({impact:We,draggables:Nt,afterCritical:Ft})},_a=function(we){var Ne=Oa(we),We=we.droppable,ut=We?ts(We,Ne):Ne;return ut},fi=function(we,Ne){var We=eo(Ne,we.scroll.initial),ut=wi(We),At=Wt({top:Ne.y,bottom:Ne.y+we.frame.height,left:Ne.x,right:Ne.x+we.frame.width}),Nt={frame:At,scroll:{initial:we.scroll.initial,max:we.scroll.max,current:Ne,diff:{value:We,displacement:ut}}};return Nt};function Yi(we,Ne){return we.map(function(We){return Ne[We]})}function ho(we,Ne){for(var We=0;We<Ne.length;We++){var ut=Ne[We].visible[we];if(ut)return ut}return null}var Io=function(we){var Ne=we.impact,We=we.viewport,ut=we.destination,At=we.draggables,Nt=we.maxScrollChange,Ft=fi(We,Ti(We.scroll.current,Nt)),Kt=ut.frame?Vi(ut,Ti(ut.frame.scroll.current,Nt)):ut,Bn=Ne.displaced,rr=An({afterDragging:Yi(Bn.all,At),destination:ut,displacedBy:Ne.displacedBy,viewport:Ft.frame,last:Bn,forceShouldAnimate:!1}),er=An({afterDragging:Yi(Bn.all,At),destination:Kt,displacedBy:Ne.displacedBy,viewport:We.frame,last:Bn,forceShouldAnimate:!1}),Un={},Xn={},fr=[Bn,rr,er];Bn.all.forEach(function(Hi){var Ki=ho(Hi,fr);if(Ki){Xn[Hi]=Ki;return}Un[Hi]=!0});var ti=(0,ke.Z)({},Ne,{displaced:{all:Bn.all,invisible:Un,visible:Xn}});return ti},Do=function(we,Ne){return Ti(we.scroll.diff.displacement,Ne)},sa=function(we){var Ne=we.pageBorderBoxCenter,We=we.draggable,ut=we.viewport,At=Do(ut,Ne),Nt=eo(At,We.page.borderBox.center);return Ti(We.client.borderBox.center,Nt)},Xi=function(we){var Ne=we.draggable,We=we.destination,ut=we.newPageBorderBoxCenter,At=we.viewport,Nt=we.withDroppableDisplacement,Ft=we.onlyOnMainAxis,Kt=Ft===void 0?!1:Ft,Bn=eo(ut,Ne.page.borderBox.center),rr=Gi(Ne.page.borderBox,Bn),er={target:rr,destination:We,withDroppableDisplacement:Nt,viewport:At};return Kt?ao(er):Bi(er)},Ss=function(we){var Ne=we.isMovingForward,We=we.draggable,ut=we.destination,At=we.draggables,Nt=we.previousImpact,Ft=we.viewport,Kt=we.previousPageBorderBoxCenter,Bn=we.previousClientSelection,rr=we.afterCritical;if(!ut.isEnabled)return null;var er=Or(ut.descriptor.id,At),Un=gr(We,ut),Xn=ai({isMovingForward:Ne,draggable:We,destination:ut,insideDestination:er,previousImpact:Nt})||Wn({isMovingForward:Ne,isInHomeList:Un,draggable:We,draggables:At,destination:ut,insideDestination:er,previousImpact:Nt,viewport:Ft,afterCritical:rr});if(!Xn)return null;var fr=_a({impact:Xn,draggable:We,droppable:ut,draggables:At,afterCritical:rr}),ti=Xi({draggable:We,destination:ut,newPageBorderBoxCenter:fr,viewport:Ft.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(ti){var Hi=sa({pageBorderBoxCenter:fr,draggable:We,viewport:Ft});return{clientSelection:Hi,impact:Xn,scrollJumpRequest:null}}var Ki=eo(fr,Kt),qi=Io({impact:Xn,viewport:Ft,destination:ut,draggables:At,maxScrollChange:Ki});return{clientSelection:Bn,impact:qi,scrollJumpRequest:Ki}},pa=function(Ne){var We=Ne.subject.active;return We||Nn(!1),We},Ga=function(we){var Ne=we.isMovingForward,We=we.pageBorderBoxCenter,ut=we.source,At=we.droppables,Nt=we.viewport,Ft=ut.subject.active;if(!Ft)return null;var Kt=ut.axis,Bn=Hn(Ft[Kt.start],Ft[Kt.end]),rr=wn(At).filter(function(Un){return Un!==ut}).filter(function(Un){return Un.isEnabled}).filter(function(Un){return!!Un.subject.active}).filter(function(Un){return pn(Nt.frame)(pa(Un))}).filter(function(Un){var Xn=pa(Un);return Ne?Ft[Kt.crossAxisEnd]<Xn[Kt.crossAxisEnd]:Xn[Kt.crossAxisStart]<Ft[Kt.crossAxisStart]}).filter(function(Un){var Xn=pa(Un),fr=Hn(Xn[Kt.start],Xn[Kt.end]);return Bn(Xn[Kt.start])||Bn(Xn[Kt.end])||fr(Ft[Kt.start])||fr(Ft[Kt.end])}).sort(function(Un,Xn){var fr=pa(Un)[Kt.crossAxisStart],ti=pa(Xn)[Kt.crossAxisStart];return Ne?fr-ti:ti-fr}).filter(function(Un,Xn,fr){return pa(Un)[Kt.crossAxisStart]===pa(fr[0])[Kt.crossAxisStart]});if(!rr.length)return null;if(rr.length===1)return rr[0];var er=rr.filter(function(Un){var Xn=Hn(pa(Un)[Kt.start],pa(Un)[Kt.end]);return Xn(We[Kt.line])});return er.length===1?er[0]:er.length>1?er.sort(function(Un,Xn){return pa(Un)[Kt.start]-pa(Xn)[Kt.start]})[0]:rr.sort(function(Un,Xn){var fr=ki(We,Fi(pa(Un))),ti=ki(We,Fi(pa(Xn)));return fr!==ti?fr-ti:pa(Un)[Kt.start]-pa(Xn)[Kt.start]})[0]},Fo=function(Ne,We){var ut=Ne.page.borderBox.center;return Mi(Ne.descriptor.id,We)?eo(ut,We.displacedBy.point):ut},ga=function(Ne,We){var ut=Ne.page.borderBox;return Mi(Ne.descriptor.id,We)?Gi(ut,wi(We.displacedBy.point)):ut},Hs=function(we){var Ne=we.pageBorderBoxCenter,We=we.viewport,ut=we.destination,At=we.insideDestination,Nt=we.afterCritical,Ft=At.filter(function(Kt){return Bi({target:ga(Kt,Nt),destination:ut,viewport:We.frame,withDroppableDisplacement:!0})}).sort(function(Kt,Bn){var rr=gi(Ne,ts(ut,Fo(Kt,Nt))),er=gi(Ne,ts(ut,Fo(Bn,Nt)));return rr<er?-1:er<rr?1:Kt.descriptor.index-Bn.descriptor.index});return Ft[0]||null},da=br(function(Ne,We){var ut=We[Ne.line];return{value:ut,point:Di(Ne.line,ut)}}),Rs=function(Ne,We,ut){var At=Ne.axis;if(Ne.descriptor.mode==="virtual")return Di(At.line,We[At.line]);var Nt=Ne.subject.page.contentBox[At.size],Ft=Or(Ne.descriptor.id,ut),Kt=Ft.reduce(function(er,Un){return er+Un.client.marginBox[At.size]},0),Bn=Kt+We[At.line],rr=Bn-Nt;return rr<=0?null:Di(At.line,rr)},ol=function(Ne,We){return(0,ke.Z)({},Ne,{scroll:(0,ke.Z)({},Ne.scroll,{max:We})})},Xs=function(Ne,We,ut){var At=Ne.frame;gr(We,Ne)&&Nn(!1),Ne.subject.withPlaceholder&&Nn(!1);var Nt=da(Ne.axis,We.displaceBy).point,Ft=Rs(Ne,Nt,ut),Kt={placeholderSize:Nt,increasedBy:Ft,oldFrameMaxScroll:Ne.frame?Ne.frame.scroll.max:null};if(!At){var Bn=vi({page:Ne.subject.page,withPlaceholder:Kt,axis:Ne.axis,frame:Ne.frame});return(0,ke.Z)({},Ne,{subject:Bn})}var rr=Ft?Ti(At.scroll.max,Ft):At.scroll.max,er=ol(At,rr),Un=vi({page:Ne.subject.page,withPlaceholder:Kt,axis:Ne.axis,frame:er});return(0,ke.Z)({},Ne,{subject:Un,frame:er})},$a=function(Ne){var We=Ne.subject.withPlaceholder;We||Nn(!1);var ut=Ne.frame;if(!ut){var At=vi({page:Ne.subject.page,axis:Ne.axis,frame:null,withPlaceholder:null});return(0,ke.Z)({},Ne,{subject:At})}var Nt=We.oldFrameMaxScroll;Nt||Nn(!1);var Ft=ol(ut,Nt),Kt=vi({page:Ne.subject.page,axis:Ne.axis,frame:Ft,withPlaceholder:null});return(0,ke.Z)({},Ne,{subject:Kt,frame:Ft})},Kl=function(we){var Ne=we.previousPageBorderBoxCenter,We=we.moveRelativeTo,ut=we.insideDestination,At=we.draggable,Nt=we.draggables,Ft=we.destination,Kt=we.viewport,Bn=we.afterCritical;if(!We){if(ut.length)return null;var rr={displaced:yn,displacedBy:pt,at:{type:"REORDER",destination:{droppableId:Ft.descriptor.id,index:0}}},er=_a({impact:rr,draggable:At,droppable:Ft,draggables:Nt,afterCritical:Bn}),Un=gr(At,Ft)?Ft:Xs(Ft,At,Nt),Xn=Xi({draggable:At,destination:Un,newPageBorderBoxCenter:er,viewport:Kt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Xn?rr:null}var fr=Ne[Ft.axis.line]<=We.page.borderBox.center[Ft.axis.line],ti=function(){var Ki=We.descriptor.index;return We.descriptor.id===At.descriptor.id||fr?Ki:Ki+1}(),Hi=da(Ft.axis,At.displaceBy);return Zi({draggable:At,insideDestination:ut,destination:Ft,viewport:Kt,displacedBy:Hi,last:yn,index:ti})},nc=function(we){var Ne=we.isMovingForward,We=we.previousPageBorderBoxCenter,ut=we.draggable,At=we.isOver,Nt=we.draggables,Ft=we.droppables,Kt=we.viewport,Bn=we.afterCritical,rr=Ga({isMovingForward:Ne,pageBorderBoxCenter:We,source:At,droppables:Ft,viewport:Kt});if(!rr)return null;var er=Or(rr.descriptor.id,Nt),Un=Hs({pageBorderBoxCenter:We,viewport:Kt,destination:rr,insideDestination:er,afterCritical:Bn}),Xn=Kl({previousPageBorderBoxCenter:We,destination:rr,draggable:ut,draggables:Nt,moveRelativeTo:Un,insideDestination:er,viewport:Kt,afterCritical:Bn});if(!Xn)return null;var fr=_a({impact:Xn,draggable:ut,droppable:rr,draggables:Nt,afterCritical:Bn}),ti=sa({pageBorderBoxCenter:fr,draggable:ut,viewport:Kt});return{clientSelection:ti,impact:Xn,scrollJumpRequest:null}},es=function(we){var Ne=we.at;return Ne?Ne.type==="REORDER"?Ne.destination.droppableId:Ne.combine.droppableId:null},Pl=function(Ne,We){var ut=es(Ne);return ut?We[ut]:null},ll=function(we){var Ne=we.state,We=we.type,ut=Pl(Ne.impact,Ne.dimensions.droppables),At=!!ut,Nt=Ne.dimensions.droppables[Ne.critical.droppable.id],Ft=ut||Nt,Kt=Ft.axis.direction,Bn=Kt==="vertical"&&(We==="MOVE_UP"||We==="MOVE_DOWN")||Kt==="horizontal"&&(We==="MOVE_LEFT"||We==="MOVE_RIGHT");if(Bn&&!At)return null;var rr=We==="MOVE_DOWN"||We==="MOVE_RIGHT",er=Ne.dimensions.draggables[Ne.critical.draggable.id],Un=Ne.current.page.borderBoxCenter,Xn=Ne.dimensions,fr=Xn.draggables,ti=Xn.droppables;return Bn?Ss({isMovingForward:rr,previousPageBorderBoxCenter:Un,draggable:er,destination:Ft,draggables:fr,viewport:Ne.viewport,previousClientSelection:Ne.current.client.selection,previousImpact:Ne.impact,afterCritical:Ne.afterCritical}):nc({isMovingForward:rr,previousPageBorderBoxCenter:Un,draggable:er,isOver:Ft,draggables:fr,droppables:ti,viewport:Ne.viewport,afterCritical:Ne.afterCritical})};function ul(we){return we.phase==="DRAGGING"||we.phase==="COLLECTING"}function rc(we){var Ne=Hn(we.top,we.bottom),We=Hn(we.left,we.right);return function(At){return Ne(At.y)&&We(At.x)}}function yc(we,Ne){return we.left<Ne.right&&we.right>Ne.left&&we.top<Ne.bottom&&we.bottom>Ne.top}function ns(we){var Ne=we.pageBorderBox,We=we.draggable,ut=we.candidates,At=We.page.borderBox.center,Nt=ut.map(function(Ft){var Kt=Ft.axis,Bn=Di(Ft.axis.line,Ne.center[Kt.line],Ft.page.borderBox.center[Kt.crossAxisLine]);return{id:Ft.descriptor.id,distance:gi(At,Bn)}}).sort(function(Ft,Kt){return Kt.distance-Ft.distance});return Nt[0]?Nt[0].id:null}function ic(we){var Ne=we.pageBorderBox,We=we.draggable,ut=we.droppables,At=wn(ut).filter(function(Nt){if(!Nt.isEnabled)return!1;var Ft=Nt.subject.active;if(!Ft||!yc(Ne,Ft))return!1;if(rc(Ft)(Ne.center))return!0;var Kt=Nt.axis,Bn=Ft.center[Kt.crossAxisLine],rr=Ne[Kt.crossAxisStart],er=Ne[Kt.crossAxisEnd],Un=Hn(Ft[Kt.crossAxisStart],Ft[Kt.crossAxisEnd]),Xn=Un(rr),fr=Un(er);return!Xn&&!fr?!0:Xn?rr<Bn:er>Bn});return At.length?At.length===1?At[0].descriptor.id:ns({pageBorderBox:Ne,draggable:We,candidates:At}):null}var oc=function(Ne,We){return Wt(Gi(Ne,We))},Mu=function(we,Ne){var We=we.frame;return We?oc(Ne,We.scroll.diff.value):Ne};function Ou(we){var Ne=we.displaced,We=we.id;return!!(Ne.visible[We]||Ne.invisible[We])}function Ms(we){var Ne=we.draggable,We=we.closest,ut=we.inHomeList;return We?ut&&We.descriptor.index>Ne.descriptor.index?We.descriptor.index-1:We.descriptor.index:null}var Qs=function(we){var Ne=we.pageBorderBoxWithDroppableScroll,We=we.draggable,ut=we.destination,At=we.insideDestination,Nt=we.last,Ft=we.viewport,Kt=we.afterCritical,Bn=ut.axis,rr=da(ut.axis,We.displaceBy),er=rr.value,Un=Ne[Bn.start],Xn=Ne[Bn.end],fr=di(We,At),ti=ji(fr,function(Ki){var qi=Ki.descriptor.id,So=Ki.page.borderBox.center[Bn.line],Co=Mi(qi,Kt),Ro=Ou({displaced:Nt,id:qi});return Co?Ro?Xn<=So:Un<So-er:Ro?Xn<=So+er:Un<So}),Hi=Ms({draggable:We,closest:ti,inHomeList:gr(We,ut)});return Zi({draggable:We,insideDestination:At,destination:ut,viewport:Ft,last:Nt,displacedBy:rr,index:Hi})},fs=4,ks=function(we){var Ne=we.draggable,We=we.pageBorderBoxWithDroppableScroll,ut=we.previousImpact,At=we.destination,Nt=we.insideDestination,Ft=we.afterCritical;if(!At.isCombineEnabled)return null;var Kt=At.axis,Bn=da(At.axis,Ne.displaceBy),rr=Bn.value,er=We[Kt.start],Un=We[Kt.end],Xn=di(Ne,Nt),fr=ji(Xn,function(Hi){var Ki=Hi.descriptor.id,qi=Hi.page.borderBox,So=qi[Kt.size],Co=So/fs,Ro=Mi(Ki,Ft),ra=Ou({displaced:ut.displaced,id:Ki});return Ro?ra?Un>qi[Kt.start]+Co&&Un<qi[Kt.end]-Co:er>qi[Kt.start]-rr+Co&&er<qi[Kt.end]-rr-Co:ra?Un>qi[Kt.start]+rr+Co&&Un<qi[Kt.end]+rr-Co:er>qi[Kt.start]+Co&&er<qi[Kt.end]-Co});if(!fr)return null;var ti={displacedBy:Bn,displaced:ut.displaced,at:{type:"COMBINE",combine:{draggableId:fr.descriptor.id,droppableId:At.descriptor.id}}};return ti},yu=function(we){var Ne=we.pageOffset,We=we.draggable,ut=we.draggables,At=we.droppables,Nt=we.previousImpact,Ft=we.viewport,Kt=we.afterCritical,Bn=oc(We.page.borderBox,Ne),rr=ic({pageBorderBox:Bn,draggable:We,droppables:At});if(!rr)return xn;var er=At[rr],Un=Or(er.descriptor.id,ut),Xn=Mu(er,Bn);return ks({pageBorderBoxWithDroppableScroll:Xn,draggable:We,previousImpact:Nt,destination:er,insideDestination:Un,afterCritical:Kt})||Qs({pageBorderBoxWithDroppableScroll:Xn,draggable:We,destination:er,insideDestination:Un,last:Nt.displaced,viewport:Ft,afterCritical:Kt})},zs=function(we,Ne){var We;return(0,ke.Z)({},we,(We={},We[Ne.descriptor.id]=Ne,We))},wa=function(Ne){var We=Ne.previousImpact,ut=Ne.impact,At=Ne.droppables,Nt=es(We),Ft=es(ut);if(!Nt||Nt===Ft)return At;var Kt=At[Nt];if(!Kt.subject.withPlaceholder)return At;var Bn=$a(Kt);return zs(At,Bn)},ma=function(we){var Ne=we.draggable,We=we.draggables,ut=we.droppables,At=we.previousImpact,Nt=we.impact,Ft=wa({previousImpact:At,impact:Nt,droppables:ut}),Kt=es(Nt);if(!Kt)return Ft;var Bn=ut[Kt];if(gr(Ne,Bn)||Bn.subject.withPlaceholder)return Ft;var rr=Xs(Bn,Ne,We);return zs(Ft,rr)},Vo=function(we){var Ne=we.state,We=we.clientSelection,ut=we.dimensions,At=we.viewport,Nt=we.impact,Ft=we.scrollJumpRequest,Kt=At||Ne.viewport,Bn=ut||Ne.dimensions,rr=We||Ne.current.client.selection,er=eo(rr,Ne.initial.client.selection),Un={offset:er,selection:rr,borderBoxCenter:Ti(Ne.initial.client.borderBoxCenter,er)},Xn={selection:Ti(Un.selection,Kt.scroll.current),borderBoxCenter:Ti(Un.borderBoxCenter,Kt.scroll.current),offset:Ti(Un.offset,Kt.scroll.diff.value)},fr={client:Un,page:Xn};if(Ne.phase==="COLLECTING")return(0,ke.Z)({phase:"COLLECTING"},Ne,{dimensions:Bn,viewport:Kt,current:fr});var ti=Bn.draggables[Ne.critical.draggable.id],Hi=Nt||yu({pageOffset:Xn.offset,draggable:ti,draggables:Bn.draggables,droppables:Bn.droppables,previousImpact:Ne.impact,viewport:Kt,afterCritical:Ne.afterCritical}),Ki=ma({draggable:ti,impact:Hi,previousImpact:Ne.impact,draggables:Bn.draggables,droppables:Bn.droppables}),qi=(0,ke.Z)({},Ne,{current:fr,dimensions:{draggables:Bn.draggables,droppables:Ki},impact:Hi,viewport:Kt,scrollJumpRequest:Ft||null,forceShouldAnimate:Ft?!1:null});return qi};function cs(we,Ne){return we.map(function(We){return Ne[We]})}var Ri=function(we){var Ne=we.impact,We=we.viewport,ut=we.draggables,At=we.destination,Nt=we.forceShouldAnimate,Ft=Ne.displaced,Kt=cs(Ft.all,ut),Bn=An({afterDragging:Kt,destination:At,displacedBy:Ne.displacedBy,viewport:We.frame,forceShouldAnimate:Nt,last:Ft});return(0,ke.Z)({},Ne,{displaced:Bn})},ps=function(we){var Ne=we.impact,We=we.draggable,ut=we.droppable,At=we.draggables,Nt=we.viewport,Ft=we.afterCritical,Kt=_a({impact:Ne,draggable:We,draggables:At,droppable:ut,afterCritical:Ft});return sa({pageBorderBoxCenter:Kt,draggable:We,viewport:Nt})},en=function(we){var Ne=we.state,We=we.dimensions,ut=we.viewport;Ne.movementMode!=="SNAP"&&Nn(!1);var At=Ne.impact,Nt=ut||Ne.viewport,Ft=We||Ne.dimensions,Kt=Ft.draggables,Bn=Ft.droppables,rr=Kt[Ne.critical.draggable.id],er=es(At);er||Nn(!1);var Un=Bn[er],Xn=Ri({impact:At,viewport:Nt,destination:Un,draggables:Kt}),fr=ps({impact:Xn,draggable:rr,droppable:Un,draggables:Kt,viewport:Nt,afterCritical:Ne.afterCritical});return Vo({impact:Xn,clientSelection:fr,state:Ne,dimensions:Ft,viewport:Nt})},Ir=function(we){return{index:we.index,droppableId:we.droppableId}},Tl=function(we){var Ne=we.draggable,We=we.home,ut=we.draggables,At=we.viewport,Nt=da(We.axis,Ne.displaceBy),Ft=Or(We.descriptor.id,ut),Kt=Ft.indexOf(Ne);Kt===-1&&Nn(!1);var Bn=Ft.slice(Kt+1),rr=Bn.reduce(function(fr,ti){return fr[ti.descriptor.id]=!0,fr},{}),er={inVirtualList:We.descriptor.mode==="virtual",displacedBy:Nt,effected:rr},Un=An({afterDragging:Bn,destination:We,displacedBy:Nt,last:null,viewport:At.frame,forceShouldAnimate:!1}),Xn={displaced:Un,displacedBy:Nt,at:{type:"REORDER",destination:Ir(Ne.descriptor)}};return{impact:Xn,afterCritical:er}},Su=function(we,Ne){return{draggables:we.draggables,droppables:zs(we.droppables,Ne)}},ja=function(Ne){},rs=function(Ne){},Al=function(we){var Ne=we.draggable,We=we.offset,ut=we.initialWindowScroll,At=Dr(Ne.client,We),Nt=ri(At,ut),Ft=(0,ke.Z)({},Ne,{placeholder:(0,ke.Z)({},Ne.placeholder,{client:At}),client:At,page:Nt});return Ft},Fl=function(we){var Ne=we.frame;return Ne||Nn(!1),Ne},ac=function(we){var Ne=we.additions,We=we.updatedDroppables,ut=we.viewport,At=ut.scroll.diff.value;return Ne.map(function(Nt){var Ft=Nt.descriptor.droppableId,Kt=We[Ft],Bn=Fl(Kt),rr=Bn.scroll.diff.value,er=Ti(At,rr),Un=Al({draggable:Nt,offset:er,initialWindowScroll:ut.scroll.initial});return Un})},Wa=function(we){var Ne=we.state,We=we.published;ja();var ut=We.modified.map(function(Co){var Ro=Ne.dimensions.droppables[Co.droppableId],ra=Vi(Ro,Co.scroll);return ra}),At=(0,ke.Z)({},Ne.dimensions.droppables,{},Fn(ut)),Nt=mr(ac({additions:We.additions,updatedDroppables:At,viewport:Ne.viewport})),Ft=(0,ke.Z)({},Ne.dimensions.draggables,{},Nt);We.removals.forEach(function(Co){delete Ft[Co]});var Kt={droppables:At,draggables:Ft},Bn=es(Ne.impact),rr=Bn?Kt.droppables[Bn]:null,er=Kt.draggables[Ne.critical.draggable.id],Un=Kt.droppables[Ne.critical.droppable.id],Xn=Tl({draggable:er,home:Un,draggables:Ft,viewport:Ne.viewport}),fr=Xn.impact,ti=Xn.afterCritical,Hi=rr&&rr.isCombineEnabled?Ne.impact:fr,Ki=yu({pageOffset:Ne.current.page.offset,draggable:Kt.draggables[Ne.critical.draggable.id],draggables:Kt.draggables,droppables:Kt.droppables,previousImpact:Hi,viewport:Ne.viewport,afterCritical:ti});rs();var qi=(0,ke.Z)({phase:"DRAGGING"},Ne,{phase:"DRAGGING",impact:Ki,onLiftImpact:fr,dimensions:Kt,afterCritical:ti,forceShouldAnimate:!1});if(Ne.phase==="COLLECTING")return qi;var So=(0,ke.Z)({phase:"DROP_PENDING"},qi,{phase:"DROP_PENDING",reason:Ne.reason,isWaiting:!1});return So},Eo=function(Ne){return Ne.movementMode==="SNAP"},bs=function(Ne,We,ut){var At=Su(Ne.dimensions,We);return!Eo(Ne)||ut?Vo({state:Ne,dimensions:At}):en({state:Ne,dimensions:At})};function Js(we){return we.isDragging&&we.movementMode==="SNAP"?(0,ke.Z)({phase:"DRAGGING"},we,{scrollJumpRequest:null}):we}var ua={phase:"IDLE",completed:null,shouldFlush:!1},Zo=function(we,Ne){if(we===void 0&&(we=ua),Ne.type==="FLUSH")return(0,ke.Z)({},ua,{shouldFlush:!0});if(Ne.type==="INITIAL_PUBLISH"){we.phase!=="IDLE"&&Nn(!1);var We=Ne.payload,ut=We.critical,At=We.clientSelection,Nt=We.viewport,Ft=We.dimensions,Kt=We.movementMode,Bn=Ft.draggables[ut.draggable.id],rr=Ft.droppables[ut.droppable.id],er={selection:At,borderBoxCenter:Bn.client.borderBox.center,offset:un},Un={client:er,page:{selection:Ti(er.selection,Nt.scroll.initial),borderBoxCenter:Ti(er.selection,Nt.scroll.initial),offset:Ti(er.selection,Nt.scroll.diff.value)}},Xn=wn(Ft.droppables).every(function(Bf){return!Bf.isFixedOnPage}),fr=Tl({draggable:Bn,home:rr,draggables:Ft.draggables,viewport:Nt}),ti=fr.impact,Hi=fr.afterCritical,Ki={phase:"DRAGGING",isDragging:!0,critical:ut,movementMode:Kt,dimensions:Ft,initial:Un,current:Un,isWindowScrollAllowed:Xn,impact:ti,afterCritical:Hi,onLiftImpact:ti,viewport:Nt,scrollJumpRequest:null,forceShouldAnimate:null};return Ki}if(Ne.type==="COLLECTION_STARTING"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Nn(!1);var qi=(0,ke.Z)({phase:"COLLECTING"},we,{phase:"COLLECTING"});return qi}if(Ne.type==="PUBLISH_WHILE_DRAGGING")return we.phase==="COLLECTING"||we.phase==="DROP_PENDING"||Nn(!1),Wa({state:we,published:Ne.payload});if(Ne.type==="MOVE"){if(we.phase==="DROP_PENDING")return we;ul(we)||Nn(!1);var So=Ne.payload.client;return mn(So,we.current.client.selection)?we:Vo({state:we,clientSelection:So,impact:Eo(we)?we.impact:null})}if(Ne.type==="UPDATE_DROPPABLE_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="COLLECTING")return Js(we);ul(we)||Nn(!1);var Co=Ne.payload,Ro=Co.id,ra=Co.newScroll,Go=we.dimensions.droppables[Ro];if(!Go)return we;var Ha=Vi(Go,ra);return bs(we,Ha,!1)}if(Ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(we.phase==="DROP_PENDING")return we;ul(we)||Nn(!1);var ml=Ne.payload,Ka=ml.id,Ws=ml.isEnabled,tu=we.dimensions.droppables[Ka];tu||Nn(!1),tu.isEnabled===Ws&&Nn(!1);var Au=(0,ke.Z)({},tu,{isEnabled:Ws});return bs(we,Au,!0)}if(Ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(we.phase==="DROP_PENDING")return we;ul(we)||Nn(!1);var dd=Ne.payload,_c=dd.id,ju=dd.isCombineEnabled,Uc=we.dimensions.droppables[_c];Uc||Nn(!1),Uc.isCombineEnabled===ju&&Nn(!1);var Zs=(0,ke.Z)({},Uc,{isCombineEnabled:ju});return bs(we,Zs,!0)}if(Ne.type==="MOVE_BY_WINDOW_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="DROP_ANIMATING")return we;ul(we)||Nn(!1),we.isWindowScrollAllowed||Nn(!1);var Nu=Ne.payload.newScroll;if(mn(we.viewport.scroll.current,Nu))return Js(we);var Hc=fi(we.viewport,Nu);return Eo(we)?en({state:we,viewport:Hc}):Vo({state:we,viewport:Hc})}if(Ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ul(we))return we;var nu=Ne.payload.maxScroll;if(mn(nu,we.viewport.scroll.max))return we;var wc=(0,ke.Z)({},we.viewport,{scroll:(0,ke.Z)({},we.viewport.scroll,{max:nu})});return(0,ke.Z)({phase:"DRAGGING"},we,{viewport:wc})}if(Ne.type==="MOVE_UP"||Ne.type==="MOVE_DOWN"||Ne.type==="MOVE_LEFT"||Ne.type==="MOVE_RIGHT"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Nn(!1);var Eh=ll({state:we,type:Ne.type});return Eh?Vo({state:we,impact:Eh.impact,clientSelection:Eh.clientSelection,scrollJumpRequest:Eh.scrollJumpRequest}):we}if(Ne.type==="DROP_PENDING"){var Cc=Ne.payload.reason;we.phase!=="COLLECTING"&&Nn(!1);var _o=(0,ke.Z)({phase:"DROP_PENDING"},we,{phase:"DROP_PENDING",isWaiting:!0,reason:Cc});return _o}if(Ne.type==="DROP_ANIMATE"){var wp=Ne.payload,hd=wp.completed,nf=wp.dropDuration,$d=wp.newHomeClientOffset;we.phase==="DRAGGING"||we.phase==="DROP_PENDING"||Nn(!1);var fd={phase:"DROP_ANIMATING",completed:hd,dropDuration:nf,newHomeClientOffset:$d,dimensions:we.dimensions};return fd}if(Ne.type==="DROP_COMPLETE"){var Pc=Ne.payload.completed;return{phase:"IDLE",completed:Pc,shouldFlush:!1}}return we},Ya=function(Ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:Ne}},cl=function(Ne){return{type:"LIFT",payload:Ne}},Ia=function(Ne){return{type:"INITIAL_PUBLISH",payload:Ne}},Sl=function(Ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:Ne}},Es=function(){return{type:"COLLECTION_STARTING",payload:null}},Fu=function(Ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Ne}},va=function(Ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Ne}},Os=function(Ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Ne}},oa=function(Ne){return{type:"MOVE",payload:Ne}},Ta=function(Ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Ne}},La=function(Ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Ne}},Za=function(){return{type:"MOVE_UP",payload:null}},na=function(){return{type:"MOVE_DOWN",payload:null}},sc=function(){return{type:"MOVE_RIGHT",payload:null}},bo=function(){return{type:"MOVE_LEFT",payload:null}},Dc=function(){return{type:"FLUSH",payload:null}},aa=function(Ne){return{type:"DROP_ANIMATE",payload:Ne}},Sc=function(Ne){return{type:"DROP_COMPLETE",payload:Ne}},Bu=function(Ne){return{type:"DROP",payload:Ne}},bu=function(Ne){return{type:"DROP_PENDING",payload:Ne}},Rc=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Xc(we){if(!(we.length<=1)){for(var Ne=we.map(function(Kt){return Kt.descriptor.index}),We={},ut=1;ut<Ne.length;ut++){var At=Ne[ut],Nt=Ne[ut-1];At!==Nt+1&&(We[At]=!0)}if(Object.keys(We).length)var Ft=Ne.map(function(Kt){var Bn=!!We[Kt];return Bn?"[\u{1F525}"+Kt+"]":""+Kt}).join(", ")}}function Yl(we,Ne){if(0)var We}var Xl=function(we){return function(Ne){var We=Ne.getState,ut=Ne.dispatch;return function(At){return function(Nt){if(Nt.type!=="LIFT"){At(Nt);return}var Ft=Nt.payload,Kt=Ft.id,Bn=Ft.clientSelection,rr=Ft.movementMode,er=We();er.phase==="DROP_ANIMATING"&&ut(Sc({completed:er.completed})),We().phase!=="IDLE"&&Nn(!1),ut(Dc()),ut(Ya({draggableId:Kt,movementMode:rr}));var Un={shouldPublishImmediately:rr==="SNAP"},Xn={draggableId:Kt,scrollOptions:Un},fr=we.startPublishing(Xn),ti=fr.critical,Hi=fr.dimensions,Ki=fr.viewport;Yl(ti,Hi),ut(Ia({critical:ti,dimensions:Hi,clientSelection:Bn,movementMode:rr,viewport:Ki}))}}}},la=function(we){return function(){return function(Ne){return function(We){We.type==="INITIAL_PUBLISH"&&we.dragging(),We.type==="DROP_ANIMATE"&&we.dropping(We.payload.completed.result.reason),(We.type==="FLUSH"||We.type==="DROP_COMPLETE")&&we.resting(),Ne(We)}}}},Gs={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},du={opacity:{drop:0,combining:.7},scale:{drop:.75}},Nl={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},dl=Nl.outOfTheWay+"s "+Gs.outOfTheWay,bl={fluid:"opacity "+dl,snap:"transform "+dl+", opacity "+dl,drop:function(Ne){var We=Ne+"s "+Gs.drop;return"transform "+We+", opacity "+We},outOfTheWay:"transform "+dl,placeholder:"height "+dl+", width "+dl+", margin "+dl},$o=function(Ne){return mn(Ne,un)?null:"translate("+Ne.x+"px, "+Ne.y+"px)"},ca={moveTo:$o,drop:function(Ne,We){var ut=$o(Ne);return ut?We?ut+" scale("+du.scale.drop+")":ut:null}},Va=Nl.minDropTime,Is=Nl.maxDropTime,xs=Is-Va,Ll=1500,Bl=.6,_l=function(we){var Ne=we.current,We=we.destination,ut=we.reason,At=gi(Ne,We);if(At<=0)return Va;if(At>=Ll)return Is;var Nt=At/Ll,Ft=Va+xs*Nt,Kt=ut==="CANCEL"?Ft*Bl:Ft;return Number(Kt.toFixed(2))},kl=function(we){var Ne=we.impact,We=we.draggable,ut=we.dimensions,At=we.viewport,Nt=we.afterCritical,Ft=ut.draggables,Kt=ut.droppables,Bn=es(Ne),rr=Bn?Kt[Bn]:null,er=Kt[We.descriptor.droppableId],Un=ps({impact:Ne,draggable:We,draggables:Ft,afterCritical:Nt,droppable:rr||er,viewport:At}),Xn=eo(Un,We.client.borderBox.center);return Xn},hu=function(we){var Ne=we.draggables,We=we.reason,ut=we.lastImpact,At=we.home,Nt=we.viewport,Ft=we.onLiftImpact;if(!ut.at||We!=="DROP"){var Kt=Ri({draggables:Ne,impact:Ft,destination:At,viewport:Nt,forceShouldAnimate:!0});return{impact:Kt,didDropInsideDroppable:!1}}if(ut.at.type==="REORDER")return{impact:ut,didDropInsideDroppable:!0};var Bn=(0,ke.Z)({},ut,{displaced:yn});return{impact:Bn,didDropInsideDroppable:!0}},bd=function(we){var Ne=we.getState,We=we.dispatch;return function(ut){return function(At){if(At.type!=="DROP"){ut(At);return}var Nt=Ne(),Ft=At.payload.reason;if(Nt.phase==="COLLECTING"){We(bu({reason:Ft}));return}if(Nt.phase!=="IDLE"){var Kt=Nt.phase==="DROP_PENDING"&&Nt.isWaiting;Kt&&Nn(!1),Nt.phase==="DRAGGING"||Nt.phase==="DROP_PENDING"||Nn(!1);var Bn=Nt.critical,rr=Nt.dimensions,er=rr.draggables[Nt.critical.draggable.id],Un=hu({reason:Ft,lastImpact:Nt.impact,afterCritical:Nt.afterCritical,onLiftImpact:Nt.onLiftImpact,home:Nt.dimensions.droppables[Nt.critical.droppable.id],viewport:Nt.viewport,draggables:Nt.dimensions.draggables}),Xn=Un.impact,fr=Un.didDropInsideDroppable,ti=fr?Wr(Xn):null,Hi=fr?pi(Xn):null,Ki={index:Bn.draggable.index,droppableId:Bn.droppable.id},qi={draggableId:er.descriptor.id,type:er.descriptor.type,source:Ki,reason:Ft,mode:Nt.movementMode,destination:ti,combine:Hi},So=kl({impact:Xn,draggable:er,dimensions:rr,viewport:Nt.viewport,afterCritical:Nt.afterCritical}),Co={critical:Nt.critical,afterCritical:Nt.afterCritical,result:qi,impact:Xn},Ro=!mn(Nt.current.client.offset,So)||!!qi.combine;if(!Ro){We(Sc({completed:Co}));return}var ra=_l({current:Nt.current.client.offset,destination:So,reason:Ft}),Go={newHomeClientOffset:So,dropDuration:ra,completed:Co};We(aa(Go))}}}},Hd=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ch(we){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(We){We.target!==window&&We.target!==window.document||we()}}}function dh(we){var Ne=we.onWindowScroll;function We(){Ne(Hd())}var ut=Rn(We),At=ch(ut),Nt=Pr;function Ft(){return Nt!==Pr}function Kt(){Ft()&&Nn(!1),Nt=ln(window,[At])}function Bn(){Ft()||Nn(!1),ut.cancel(),Nt(),Nt=Pr}return{start:Kt,stop:Bn,isActive:Ft}}var gs=function(Ne){return Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATE"||Ne.type==="FLUSH"},lc=function(we){var Ne=dh({onWindowScroll:function(ut){we.dispatch(Ta({newScroll:ut}))}});return function(We){return function(ut){!Ne.isActive()&&ut.type==="INITIAL_PUBLISH"&&Ne.start(),Ne.isActive()&&gs(ut)&&Ne.stop(),We(ut)}}},Na=function(we){var Ne=!1,We=!1,ut=setTimeout(function(){We=!0}),At=function(Ft){Ne||We||(Ne=!0,we(Ft),clearTimeout(ut))};return At.wasCalled=function(){return Ne},At},js=function(){var we=[],Ne=function(Nt){var Ft=co(we,function(rr){return rr.timerId===Nt});Ft===-1&&Nn(!1);var Kt=we.splice(Ft,1),Bn=Kt[0];Bn.callback()},We=function(Nt){var Ft=setTimeout(function(){return Ne(Ft)}),Kt={timerId:Ft,callback:Nt};we.push(Kt)},ut=function(){if(we.length){var Nt=[].concat(we);we.length=0,Nt.forEach(function(Ft){clearTimeout(Ft.timerId),Ft.callback()})}};return{add:We,flush:ut}},$s=function(Ne,We){return Ne==null&&We==null?!0:Ne==null||We==null?!1:Ne.droppableId===We.droppableId&&Ne.index===We.index},qs=function(Ne,We){return Ne==null&&We==null?!0:Ne==null||We==null?!1:Ne.draggableId===We.draggableId&&Ne.droppableId===We.droppableId},bc=function(Ne,We){if(Ne===We)return!0;var ut=Ne.draggable.id===We.draggable.id&&Ne.draggable.droppableId===We.draggable.droppableId&&Ne.draggable.type===We.draggable.type&&Ne.draggable.index===We.draggable.index,At=Ne.droppable.id===We.droppable.id&&Ne.droppable.type===We.droppable.type;return ut&&At},Fs=function(Ne,We){ja(),We(),rs()},Eu=function(Ne,We){return{draggableId:Ne.draggable.id,type:Ne.droppable.type,source:{droppableId:Ne.droppable.id,index:Ne.draggable.index},mode:We}},Qc=function(Ne,We,ut,At){if(!Ne){ut(At(We));return}var Nt=Na(ut),Ft={announce:Nt};Ne(We,Ft),Nt.wasCalled()||ut(At(We))},Ed=function(we,Ne){var We=js(),ut=null,At=function(Xn,fr){ut&&Nn(!1),Fs("onBeforeCapture",function(){var ti=we().onBeforeCapture;if(ti){var Hi={draggableId:Xn,mode:fr};ti(Hi)}})},Nt=function(Xn,fr){ut&&Nn(!1),Fs("onBeforeDragStart",function(){var ti=we().onBeforeDragStart;ti&&ti(Eu(Xn,fr))})},Ft=function(Xn,fr){ut&&Nn(!1);var ti=Eu(Xn,fr);ut={mode:fr,lastCritical:Xn,lastLocation:ti.source,lastCombine:null},We.add(function(){Fs("onDragStart",function(){return Qc(we().onDragStart,ti,Ne,Qr.onDragStart)})})},Kt=function(Xn,fr){var ti=Wr(fr),Hi=pi(fr);ut||Nn(!1);var Ki=!bc(Xn,ut.lastCritical);Ki&&(ut.lastCritical=Xn);var qi=!$s(ut.lastLocation,ti);qi&&(ut.lastLocation=ti);var So=!qs(ut.lastCombine,Hi);if(So&&(ut.lastCombine=Hi),!(!Ki&&!qi&&!So)){var Co=(0,ke.Z)({},Eu(Xn,ut.mode),{combine:Hi,destination:ti});We.add(function(){Fs("onDragUpdate",function(){return Qc(we().onDragUpdate,Co,Ne,Qr.onDragUpdate)})})}},Bn=function(){ut||Nn(!1),We.flush()},rr=function(Xn){ut||Nn(!1),ut=null,Fs("onDragEnd",function(){return Qc(we().onDragEnd,Xn,Ne,Qr.onDragEnd)})},er=function(){if(ut){var Xn=(0,ke.Z)({},Eu(ut.lastCritical,ut.mode),{combine:null,destination:null,reason:"CANCEL"});rr(Xn)}};return{beforeCapture:At,beforeStart:Nt,start:Ft,update:Kt,flush:Bn,drop:rr,abort:er}},Il=function(we,Ne){var We=Ed(we,Ne);return function(ut){return function(At){return function(Nt){if(Nt.type==="BEFORE_INITIAL_CAPTURE"){We.beforeCapture(Nt.payload.draggableId,Nt.payload.movementMode);return}if(Nt.type==="INITIAL_PUBLISH"){var Ft=Nt.payload.critical;We.beforeStart(Ft,Nt.payload.movementMode),At(Nt),We.start(Ft,Nt.payload.movementMode);return}if(Nt.type==="DROP_COMPLETE"){var Kt=Nt.payload.completed.result;We.flush(),At(Nt),We.drop(Kt);return}if(At(Nt),Nt.type==="FLUSH"){We.abort();return}var Bn=ut.getState();Bn.phase==="DRAGGING"&&We.update(Bn.critical,Bn.impact)}}}},Pe=function(we){return function(Ne){return function(We){if(We.type!=="DROP_ANIMATION_FINISHED"){Ne(We);return}var ut=we.getState();ut.phase!=="DROP_ANIMATING"&&Nn(!1),we.dispatch(Sc({completed:ut.completed}))}}},Xe=function(we){var Ne=null,We=null;function ut(){We&&(cancelAnimationFrame(We),We=null),Ne&&(Ne(),Ne=null)}return function(At){return function(Nt){if((Nt.type==="FLUSH"||Nt.type==="DROP_COMPLETE"||Nt.type==="DROP_ANIMATION_FINISHED")&&ut(),At(Nt),Nt.type==="DROP_ANIMATE"){var Ft={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Bn=we.getState();Bn.phase==="DROP_ANIMATING"&&we.dispatch(Rc())}};We=requestAnimationFrame(function(){We=null,Ne=ln(window,[Ft])})}}}},tt=function(we){return function(){return function(Ne){return function(We){(We.type==="DROP_COMPLETE"||We.type==="FLUSH"||We.type==="DROP_ANIMATE")&&we.stopPublishing(),Ne(We)}}}},gt=function(we){var Ne=!1;return function(){return function(We){return function(ut){if(ut.type==="INITIAL_PUBLISH"){Ne=!0,we.tryRecordFocus(ut.payload.critical.draggable.id),We(ut),we.tryRestoreFocusRecorded();return}if(We(ut),!!Ne){if(ut.type==="FLUSH"){Ne=!1,we.tryRestoreFocusRecorded();return}if(ut.type==="DROP_COMPLETE"){Ne=!1;var At=ut.payload.completed.result;At.combine&&we.tryShiftRecord(At.draggableId,At.combine.draggableId),we.tryRestoreFocusRecorded()}}}}}},Mt=function(Ne){return Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATE"||Ne.type==="FLUSH"},Bt=function(we){return function(Ne){return function(We){return function(ut){if(Mt(ut)){we.stop(),We(ut);return}if(ut.type==="INITIAL_PUBLISH"){We(ut);var At=Ne.getState();At.phase!=="DRAGGING"&&Nn(!1),we.start(At);return}We(ut),we.scroll(Ne.getState())}}}},sn=function(we){return function(Ne){return function(We){if(Ne(We),We.type==="PUBLISH_WHILE_DRAGGING"){var ut=we.getState();ut.phase==="DROP_PENDING"&&(ut.isWaiting||we.dispatch(Bu({reason:ut.reason})))}}}},Cn=Ie.qC,yr=function(we){var Ne=we.dimensionMarshal,We=we.focusMarshal,ut=we.styleMarshal,At=we.getResponders,Nt=we.announce,Ft=we.autoScroller;return(0,Ie.MT)(Zo,Cn((0,Ie.md)(la(ut),tt(Ne),Xl(Ne),bd,Pe,Xe,sn,Bt(Ft),lc,gt(We),Il(At,Nt))))},xr=function(){return{additions:{},removals:{},modified:{}}};function nr(we){var Ne=we.registry,We=we.callbacks,ut=xr(),At=null,Nt=function(){At||(We.collectionStarting(),At=requestAnimationFrame(function(){At=null,ja();var er=ut,Un=er.additions,Xn=er.removals,fr=er.modified,ti=Object.keys(Un).map(function(qi){return Ne.draggable.getById(qi).getDimension(un)}).sort(function(qi,So){return qi.descriptor.index-So.descriptor.index}),Hi=Object.keys(fr).map(function(qi){var So=Ne.droppable.getById(qi),Co=So.callbacks.getScrollWhileDragging();return{droppableId:qi,scroll:Co}}),Ki={additions:ti,removals:Object.keys(Xn),modified:Hi};ut=xr(),rs(),We.publish(Ki)}))},Ft=function(er){var Un=er.descriptor.id;ut.additions[Un]=er,ut.modified[er.descriptor.droppableId]=!0,ut.removals[Un]&&delete ut.removals[Un],Nt()},Kt=function(er){var Un=er.descriptor;ut.removals[Un.id]=!0,ut.modified[Un.droppableId]=!0,ut.additions[Un.id]&&delete ut.additions[Un.id],Nt()},Bn=function(){At&&(cancelAnimationFrame(At),At=null,ut=xr())};return{add:Ft,remove:Kt,stop:Bn}}var Zr=function(we){var Ne=we.scrollHeight,We=we.scrollWidth,ut=we.height,At=we.width,Nt=eo({x:We,y:Ne},{x:At,y:ut}),Ft={x:Math.max(0,Nt.x),y:Math.max(0,Nt.y)};return Ft},zr=function(){var we=document.documentElement;return we||Nn(!1),we},ur=function(){var we=zr(),Ne=Zr({scrollHeight:we.scrollHeight,scrollWidth:we.scrollWidth,width:we.clientWidth,height:we.clientHeight});return Ne},Po=function(){var we=Hd(),Ne=ur(),We=we.y,ut=we.x,At=zr(),Nt=At.clientWidth,Ft=At.clientHeight,Kt=ut+Nt,Bn=We+Ft,rr=Wt({top:We,left:ut,right:Kt,bottom:Bn}),er={frame:rr,scroll:{initial:we,current:we,max:Ne,diff:{value:un,displacement:un}}};return er},jo=function(we){var Ne=we.critical,We=we.scrollOptions,ut=we.registry;ja();var At=Po(),Nt=At.scroll.current,Ft=Ne.droppable,Kt=ut.droppable.getAllByType(Ft.type).map(function(Un){return Un.callbacks.getDimensionAndWatchScroll(Nt,We)}),Bn=ut.draggable.getAllByType(Ne.draggable.type).map(function(Un){return Un.getDimension(Nt)}),rr={draggables:mr(Bn),droppables:Fn(Kt)};rs();var er={dimensions:rr,critical:Ne,viewport:At};return er};function ea(we,Ne,We){if(We.descriptor.id===Ne.id||We.descriptor.type!==Ne.type)return!1;var ut=we.droppable.getById(We.descriptor.droppableId);return ut.descriptor.mode==="virtual"}var so=function(we,Ne){var We=null,ut=nr({callbacks:{publish:Ne.publishWhileDragging,collectionStarting:Ne.collectionStarting},registry:we}),At=function(fr,ti){we.droppable.exists(fr)||Nn(!1),We&&Ne.updateDroppableIsEnabled({id:fr,isEnabled:ti})},Nt=function(fr,ti){We&&(we.droppable.exists(fr)||Nn(!1),Ne.updateDroppableIsCombineEnabled({id:fr,isCombineEnabled:ti}))},Ft=function(fr,ti){We&&(we.droppable.exists(fr)||Nn(!1),Ne.updateDroppableScroll({id:fr,newScroll:ti}))},Kt=function(fr,ti){We&&we.droppable.getById(fr).callbacks.scroll(ti)},Bn=function(){if(We){ut.stop();var fr=We.critical.droppable;we.droppable.getAllByType(fr.type).forEach(function(ti){return ti.callbacks.dragStopped()}),We.unsubscribe(),We=null}},rr=function(fr){We||Nn(!1);var ti=We.critical.draggable;fr.type==="ADDITION"&&ea(we,ti,fr.value)&&ut.add(fr.value),fr.type==="REMOVAL"&&ea(we,ti,fr.value)&&ut.remove(fr.value)},er=function(fr){We&&Nn(!1);var ti=we.draggable.getById(fr.draggableId),Hi=we.droppable.getById(ti.descriptor.droppableId),Ki={draggable:ti.descriptor,droppable:Hi.descriptor},qi=we.subscribe(rr);return We={critical:Ki,unsubscribe:qi},jo({critical:Ki,registry:we,scrollOptions:fr.scrollOptions})},Un={updateDroppableIsEnabled:At,updateDroppableIsCombineEnabled:Nt,scrollDroppable:Kt,updateDroppableScroll:Ft,startPublishing:er,stopPublishing:Bn};return Un},To=function(we,Ne){return we.phase==="IDLE"?!0:we.phase!=="DROP_ANIMATING"||we.completed.result.draggableId===Ne?!1:we.completed.result.reason==="DROP"},Bo=function(we){window.scrollBy(we.x,we.y)},Xa=br(function(we){return wn(we).filter(function(Ne){return!(!Ne.isEnabled||!Ne.frame)})}),Qa=function(Ne,We){var ut=ji(Xa(We),function(At){return At.frame||Nn(!1),rc(At.frame.pageMarginBox)(Ne)});return ut},Wi=function(we){var Ne=we.center,We=we.destination,ut=we.droppables;if(We){var At=ut[We];return At.frame?At:null}var Nt=Qa(Ne,ut);return Nt},ka={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Ne){return Math.pow(Ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ws=function(we,Ne){var We=we[Ne.size]*ka.startFromPercentage,ut=we[Ne.size]*ka.maxScrollAtPercentage,At={startScrollingFrom:We,maxScrollValueAt:ut};return At},Ua=function(we){var Ne=we.startOfRange,We=we.endOfRange,ut=we.current,At=We-Ne;if(At===0)return 0;var Nt=ut-Ne,Ft=Nt/At;return Ft},xo=1,Dl=function(we,Ne){if(we>Ne.startScrollingFrom)return 0;if(we<=Ne.maxScrollValueAt)return ka.maxPixelScroll;if(we===Ne.startScrollingFrom)return xo;var We=Ua({startOfRange:Ne.maxScrollValueAt,endOfRange:Ne.startScrollingFrom,current:we}),ut=1-We,At=ka.maxPixelScroll*ka.ease(ut);return Math.ceil(At)},is=ka.durationDampening.accelerateAt,Ko=ka.durationDampening.stopDampeningAt,Yo=function(we,Ne){var We=Ne,ut=Ko,At=Date.now(),Nt=At-We;if(Nt>=Ko)return we;if(Nt<is)return xo;var Ft=Ua({startOfRange:is,endOfRange:ut,current:Nt}),Kt=we*ka.ease(Ft);return Math.ceil(Kt)},Ea=function(we){var Ne=we.distanceToEdge,We=we.thresholds,ut=we.dragStartTime,At=we.shouldUseTimeDampening,Nt=Dl(Ne,We);return Nt===0?0:At?Math.max(Yo(Nt,ut),xo):Nt},ds=function(we){var Ne=we.container,We=we.distanceToEdges,ut=we.dragStartTime,At=we.axis,Nt=we.shouldUseTimeDampening,Ft=ws(Ne,At),Kt=We[At.end]<We[At.start];return Kt?Ea({distanceToEdge:We[At.end],thresholds:Ft,dragStartTime:ut,shouldUseTimeDampening:Nt}):-1*Ea({distanceToEdge:We[At.start],thresholds:Ft,dragStartTime:ut,shouldUseTimeDampening:Nt})},al=function(we){var Ne=we.container,We=we.subject,ut=we.proposedScroll,At=We.height>Ne.height,Nt=We.width>Ne.width;return!Nt&&!At?ut:Nt&&At?null:{x:Nt?0:ut.x,y:At?0:ut.y}},El=zi(function(we){return we===0?0:we}),Ul=function(we){var Ne=we.dragStartTime,We=we.container,ut=we.subject,At=we.center,Nt=we.shouldUseTimeDampening,Ft={top:At.y-We.top,right:We.right-At.x,bottom:We.bottom-At.y,left:At.x-We.left},Kt=ds({container:We,distanceToEdges:Ft,dragStartTime:Ne,axis:Qn,shouldUseTimeDampening:Nt}),Bn=ds({container:We,distanceToEdges:Ft,dragStartTime:Ne,axis:an,shouldUseTimeDampening:Nt}),rr=El({x:Bn,y:Kt});if(mn(rr,un))return null;var er=al({container:We,subject:ut,proposedScroll:rr});return er?mn(er,un)?null:er:null},Lr=zi(function(we){return we===0?0:we>0?1:-1}),hl=function(){var we=function(We,ut){return We<0?We:We>ut?We-ut:0};return function(Ne){var We=Ne.current,ut=Ne.max,At=Ne.change,Nt=Ti(We,At),Ft={x:we(Nt.x,ut.x),y:we(Nt.y,ut.y)};return mn(Ft,un)?null:Ft}}(),Ql=function(Ne){var We=Ne.max,ut=Ne.current,At=Ne.change,Nt={x:Math.max(ut.x,We.x),y:Math.max(ut.y,We.y)},Ft=Lr(At),Kt=hl({max:Nt,current:ut,change:Ft});return!Kt||Ft.x!==0&&Kt.x===0||Ft.y!==0&&Kt.y===0},Br=function(Ne,We){return Ql({current:Ne.scroll.current,max:Ne.scroll.max,change:We})},xl=function(Ne,We){if(!Br(Ne,We))return null;var ut=Ne.scroll.max,At=Ne.scroll.current;return hl({current:At,max:ut,change:We})},Jl=function(Ne,We){var ut=Ne.frame;return ut?Ql({current:ut.scroll.current,max:ut.scroll.max,change:We}):!1},_u=function(Ne,We){var ut=Ne.frame;return!ut||!Jl(Ne,We)?null:hl({current:ut.scroll.current,max:ut.scroll.max,change:We})},el=function(we){var Ne=we.viewport,We=we.subject,ut=we.center,At=we.dragStartTime,Nt=we.shouldUseTimeDampening,Ft=Ul({dragStartTime:At,container:Ne.frame,subject:We,center:ut,shouldUseTimeDampening:Nt});return Ft&&Br(Ne,Ft)?Ft:null},ms=function(we){var Ne=we.droppable,We=we.subject,ut=we.center,At=we.dragStartTime,Nt=we.shouldUseTimeDampening,Ft=Ne.frame;if(!Ft)return null;var Kt=Ul({dragStartTime:At,container:Ft.pageMarginBox,subject:We,center:ut,shouldUseTimeDampening:Nt});return Kt&&Jl(Ne,Kt)?Kt:null},ql=function(we){var Ne=we.state,We=we.dragStartTime,ut=we.shouldUseTimeDampening,At=we.scrollWindow,Nt=we.scrollDroppable,Ft=Ne.current.page.borderBoxCenter,Kt=Ne.dimensions.draggables[Ne.critical.draggable.id],Bn=Kt.page.marginBox;if(Ne.isWindowScrollAllowed){var rr=Ne.viewport,er=el({dragStartTime:We,viewport:rr,subject:Bn,center:Ft,shouldUseTimeDampening:ut});if(er){At(er);return}}var Un=Wi({center:Ft,destination:es(Ne.impact),droppables:Ne.dimensions.droppables});if(Un){var Xn=ms({dragStartTime:We,droppable:Un,subject:Bn,center:Ft,shouldUseTimeDampening:ut});Xn&&Nt(Un.descriptor.id,Xn)}},fl=function(we){var Ne=we.scrollWindow,We=we.scrollDroppable,ut=Rn(Ne),At=Rn(We),Nt=null,Ft=function(er){Nt||Nn(!1);var Un=Nt,Xn=Un.shouldUseTimeDampening,fr=Un.dragStartTime;ql({state:er,scrollWindow:ut,scrollDroppable:At,dragStartTime:fr,shouldUseTimeDampening:Xn})},Kt=function(er){ja(),Nt&&Nn(!1);var Un=Date.now(),Xn=!1,fr=function(){Xn=!0};ql({state:er,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:fr,scrollDroppable:fr}),Nt={dragStartTime:Un,shouldUseTimeDampening:Xn},rs(),Xn&&Ft(er)},Bn=function(){Nt&&(ut.cancel(),At.cancel(),Nt=null)};return{start:Kt,stop:Bn,scroll:Ft}},Qu=function(we){var Ne=we.move,We=we.scrollDroppable,ut=we.scrollWindow,At=function(rr,er){var Un=Ti(rr.current.client.selection,er);Ne({client:Un})},Nt=function(rr,er){if(!Jl(rr,er))return er;var Un=_u(rr,er);if(!Un)return We(rr.descriptor.id,er),null;var Xn=eo(er,Un);We(rr.descriptor.id,Xn);var fr=eo(er,Xn);return fr},Ft=function(rr,er,Un){if(!rr||!Br(er,Un))return Un;var Xn=xl(er,Un);if(!Xn)return ut(Un),null;var fr=eo(Un,Xn);ut(fr);var ti=eo(Un,fr);return ti},Kt=function(rr){var er=rr.scrollJumpRequest;if(er){var Un=es(rr.impact);Un||Nn(!1);var Xn=Nt(rr.dimensions.droppables[Un],er);if(Xn){var fr=rr.viewport,ti=Ft(rr.isWindowScrollAllowed,fr,Xn);ti&&At(rr,ti)}}};return Kt},uc=function(we){var Ne=we.scrollDroppable,We=we.scrollWindow,ut=we.move,At=fl({scrollWindow:We,scrollDroppable:Ne}),Nt=Qu({move:ut,scrollWindow:We,scrollDroppable:Ne}),Ft=function(rr){if(rr.phase==="DRAGGING"){if(rr.movementMode==="FLUID"){At.scroll(rr);return}rr.scrollJumpRequest&&Nt(rr)}},Kt={scroll:Ft,start:At.start,stop:At.stop};return Kt},cc="data-rbd",wl=function(){var we=cc+"-drag-handle";return{base:we,draggableId:we+"-draggable-id",contextId:we+"-context-id"}}(),Ju=function(){var we=cc+"-draggable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),zd=function(){var we=cc+"-droppable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),ce={contextId:cc+"-scroll-container-context-id"},ge=function(Ne){return function(We){return"["+We+'="'+Ne+'"]'}},et=function(Ne,We){return Ne.map(function(ut){var At=ut.styles[We];return At?ut.selector+" { "+At+" }":""}).join(" ")},rn="pointer-events: none;",Sr=function(we){var Ne=ge(we),We=function(){var Kt=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Ne(wl.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Kt,dragging:rn,dropAnimating:Kt}}}(),ut=function(){var Kt=`
transition: `+bl.outOfTheWay+`;
`;return{selector:Ne(Ju.contextId),styles:{dragging:Kt,dropAnimating:Kt,userCancel:Kt}}}(),At={selector:Ne(zd.contextId),styles:{always:"overflow-anchor: none;"}},Nt={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;
`}},Ft=[ut,We,At,Nt];return{always:et(Ft,"always"),resting:et(Ft,"resting"),dragging:et(Ft,"dragging"),dropAnimating:et(Ft,"dropAnimating"),userCancel:et(Ft,"userCancel")}},$r=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect,Ni=function(){var Ne=document.querySelector("head");return Ne||Nn(!1),Ne},Lo=function(Ne){var We=document.createElement("style");return Ne&&We.setAttribute("nonce",Ne),We.type="text/css",We};function Xo(we,Ne){var We=Gn(function(){return Sr(we)},[we]),ut=(0,oe.useRef)(null),At=(0,oe.useRef)(null),Nt=cn(br(function(Un){var Xn=At.current;Xn||Nn(!1),Xn.textContent=Un}),[]),Ft=cn(function(Un){var Xn=ut.current;Xn||Nn(!1),Xn.textContent=Un},[]);$r(function(){!ut.current&&!At.current||Nn(!1);var Un=Lo(Ne),Xn=Lo(Ne);return ut.current=Un,At.current=Xn,Un.setAttribute(cc+"-always",we),Xn.setAttribute(cc+"-dynamic",we),Ni().appendChild(Un),Ni().appendChild(Xn),Ft(We.always),Nt(We.resting),function(){var fr=function(Hi){var Ki=Hi.current;Ki||Nn(!1),Ni().removeChild(Ki),Hi.current=null};fr(ut),fr(At)}},[Ne,Ft,Nt,We.always,We.resting,we]);var Kt=cn(function(){return Nt(We.dragging)},[Nt,We.dragging]),Bn=cn(function(Un){if(Un==="DROP"){Nt(We.dropAnimating);return}Nt(We.userCancel)},[Nt,We.dropAnimating,We.userCancel]),rr=cn(function(){At.current&&Nt(We.resting)},[Nt,We.resting]),er=Gn(function(){return{dragging:Kt,dropping:Bn,resting:rr}},[Kt,Bn,rr]);return er}var ni=function(we){return we&&we.ownerDocument?we.ownerDocument.defaultView:window};function Qi(we){return we instanceof ni(we).HTMLElement}function ta(we,Ne){var We="["+wl.contextId+'="'+we+'"]',ut=zo(document.querySelectorAll(We));if(!ut.length)return null;var At=ji(ut,function(Nt){return Nt.getAttribute(wl.draggableId)===Ne});return!At||!Qi(At)?null:At}function Aa(we){var Ne=(0,oe.useRef)({}),We=(0,oe.useRef)(null),ut=(0,oe.useRef)(null),At=(0,oe.useRef)(!1),Nt=cn(function(Xn,fr){var ti={id:Xn,focus:fr};return Ne.current[Xn]=ti,function(){var Ki=Ne.current,qi=Ki[Xn];qi!==ti&&delete Ki[Xn]}},[]),Ft=cn(function(Xn){var fr=ta(we,Xn);fr&&fr!==document.activeElement&&fr.focus()},[we]),Kt=cn(function(Xn,fr){We.current===Xn&&(We.current=fr)},[]),Bn=cn(function(){ut.current||At.current&&(ut.current=requestAnimationFrame(function(){ut.current=null;var Xn=We.current;Xn&&Ft(Xn)}))},[Ft]),rr=cn(function(Xn){We.current=null;var fr=document.activeElement;fr&&fr.getAttribute(wl.draggableId)===Xn&&(We.current=Xn)},[]);$r(function(){return At.current=!0,function(){At.current=!1;var Xn=ut.current;Xn&&cancelAnimationFrame(Xn)}},[]);var er=Gn(function(){return{register:Nt,tryRecordFocus:rr,tryRestoreFocusRecorded:Bn,tryShiftRecord:Kt}},[Nt,rr,Bn,Kt]);return er}function os(){var we={draggables:{},droppables:{}},Ne=[];function We(Un){return Ne.push(Un),function(){var fr=Ne.indexOf(Un);fr!==-1&&Ne.splice(fr,1)}}function ut(Un){Ne.length&&Ne.forEach(function(Xn){return Xn(Un)})}function At(Un){return we.draggables[Un]||null}function Nt(Un){var Xn=At(Un);return Xn||Nn(!1),Xn}var Ft={register:function(Xn){we.draggables[Xn.descriptor.id]=Xn,ut({type:"ADDITION",value:Xn})},update:function(Xn,fr){var ti=we.draggables[fr.descriptor.id];ti&&ti.uniqueId===Xn.uniqueId&&(delete we.draggables[fr.descriptor.id],we.draggables[Xn.descriptor.id]=Xn)},unregister:function(Xn){var fr=Xn.descriptor.id,ti=At(fr);ti&&Xn.uniqueId===ti.uniqueId&&(delete we.draggables[fr],ut({type:"REMOVAL",value:Xn}))},getById:Nt,findById:At,exists:function(Xn){return!!At(Xn)},getAllByType:function(Xn){return fo(we.draggables).filter(function(fr){return fr.descriptor.type===Xn})}};function Kt(Un){return we.droppables[Un]||null}function Bn(Un){var Xn=Kt(Un);return Xn||Nn(!1),Xn}var rr={register:function(Xn){we.droppables[Xn.descriptor.id]=Xn},unregister:function(Xn){var fr=Kt(Xn.descriptor.id);fr&&Xn.uniqueId===fr.uniqueId&&delete we.droppables[Xn.descriptor.id]},getById:Bn,findById:Kt,exists:function(Xn){return!!Kt(Xn)},getAllByType:function(Xn){return fo(we.droppables).filter(function(fr){return fr.descriptor.type===Xn})}};function er(){we.draggables={},we.droppables={},Ne.length=0}return{draggable:Ft,droppable:rr,subscribe:We,clean:er}}function Uu(){var we=Gn(os,[]);return(0,oe.useEffect)(function(){return function(){requestAnimationFrame(we.clean)}},[we]),we}var xu=oe.createContext(null),wu=function(){var we=document.body;return we||Nn(!1),we},dc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Hl=function(Ne){return"rbd-announcement-"+Ne};function Cu(we){var Ne=Gn(function(){return Hl(we)},[we]),We=(0,oe.useRef)(null);(0,oe.useEffect)(function(){var Nt=document.createElement("div");return We.current=Nt,Nt.id=Ne,Nt.setAttribute("aria-live","assertive"),Nt.setAttribute("aria-atomic","true"),(0,ke.Z)(Nt.style,dc),wu().appendChild(Nt),function(){setTimeout(function(){var Bn=wu();Bn.contains(Nt)&&Bn.removeChild(Nt),Nt===We.current&&(We.current=null)})}},[Ne]);var ut=cn(function(At){var Nt=We.current;if(Nt){Nt.textContent=At;return}},[]);return ut}var Mc=0,fu={separator:"::"};function hh(){Mc=0}function Cs(we,Ne){return Ne===void 0&&(Ne=fu),Gn(function(){return""+we+Ne.separator+Mc++},[Ne.separator,we])}function ud(we){var Ne=we.contextId,We=we.uniqueId;return"rbd-hidden-text-"+Ne+"-"+We}function Kp(we){var Ne=we.contextId,We=we.text,ut=Cs("hidden-text",{separator:"-"}),At=Gn(function(){return ud({contextId:Ne,uniqueId:ut})},[ut,Ne]);return(0,oe.useEffect)(function(){var Ft=document.createElement("div");return Ft.id=At,Ft.textContent=We,Ft.style.display="none",wu().appendChild(Ft),function(){var Bn=wu();Bn.contains(Ft)&&Bn.removeChild(Ft)}},[At,We]),At}var Gd=oe.createContext(null),Yp={react:"^16.8.5","react-dom":"^16.8.5"},kn=/(\d+)\.(\d+)\.(\d+)/,xd=function(Ne){var We=kn.exec(Ne);We==null&&Nn(!1);var ut=Number(We[1]),At=Number(We[2]),Nt=Number(We[3]);return{major:ut,minor:At,patch:Nt,raw:Ne}},Jc=function(Ne,We){return We.major>Ne.major?!0:We.major<Ne.major?!1:We.minor>Ne.minor?!0:We.minor<Ne.minor?!1:We.patch>=Ne.patch},Xp=function(we,Ne){var We=xd(we),ut=xd(Ne);Jc(We,ut)},Qp=`
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
`,Jp=function(we){var Ne=we.doctype;Ne&&(Ne.name.toLowerCase(),Ne.publicId)};function qp(we){}function Vh(we,Ne){}function zl(){Vh(function(){Xp(Yp.react,oe.version),Jp(document)},[])}function jd(we){var Ne=(0,oe.useRef)(we);return(0,oe.useEffect)(function(){Ne.current=we}),Ne}function tp(){var we=null;function Ne(){return!!we}function We(Ft){return Ft===we}function ut(Ft){we&&Nn(!1);var Kt={abandon:Ft};return we=Kt,Kt}function At(){we||Nn(!1),we=null}function Nt(){we&&(we.abandon(),At())}return{isClaimed:Ne,isActive:We,claim:ut,release:At,tryAbandon:Nt}}var $p=9,eg=13,Pf=27,np=32,rp=33,qu=34,fh=35,ip=36,qc=37,Wh=38,Tf=39,Zh=40,$l,op=($l={},$l[eg]=!0,$l[$p]=!0,$l),Af=function(we){op[we.keyCode]&&we.preventDefault()},Pu=function(){var we="visibilitychange";if(typeof document=="undefined")return we;var Ne=[we,"ms"+we,"webkit"+we,"moz"+we,"o"+we],We=ji(Ne,function(ut){return"on"+ut in document});return We||we}(),Vd=0,Nf=5;function tg(we,Ne){return Math.abs(Ne.x-we.x)>=Nf||Math.abs(Ne.y-we.y)>=Nf}var wd={type:"IDLE"};function Hu(we){var Ne=we.cancel,We=we.completed,ut=we.getPhase,At=we.setPhase;return[{eventName:"mousemove",fn:function(Ft){var Kt=Ft.button,Bn=Ft.clientX,rr=Ft.clientY;if(Kt===Vd){var er={x:Bn,y:rr},Un=ut();if(Un.type==="DRAGGING"){Ft.preventDefault(),Un.actions.move(er);return}Un.type!=="PENDING"&&Nn(!1);var Xn=Un.point;if(tg(Xn,er)){Ft.preventDefault();var fr=Un.actions.fluidLift(er);At({type:"DRAGGING",actions:fr})}}}},{eventName:"mouseup",fn:function(Ft){var Kt=ut();if(Kt.type!=="DRAGGING"){Ne();return}Ft.preventDefault(),Kt.actions.drop({shouldBlockNextClick:!0}),We()}},{eventName:"mousedown",fn:function(Ft){ut().type==="DRAGGING"&&Ft.preventDefault(),Ne()}},{eventName:"keydown",fn:function(Ft){var Kt=ut();if(Kt.type==="PENDING"){Ne();return}if(Ft.keyCode===Pf){Ft.preventDefault(),Ne();return}Af(Ft)}},{eventName:"resize",fn:Ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ut().type==="PENDING"&&Ne()}},{eventName:"webkitmouseforcedown",fn:function(Ft){var Kt=ut();if(Kt.type==="IDLE"&&Nn(!1),Kt.actions.shouldRespectForcePress()){Ne();return}Ft.preventDefault()}},{eventName:Pu,fn:Ne}]}function ap(we){var Ne=(0,oe.useRef)(wd),We=(0,oe.useRef)(Pr),ut=Gn(function(){return{eventName:"mousedown",fn:function(Un){if(!Un.defaultPrevented&&Un.button===Vd&&!(Un.ctrlKey||Un.metaKey||Un.shiftKey||Un.altKey)){var Xn=we.findClosestDraggableId(Un);if(Xn){var fr=we.tryGetLock(Xn,Ft,{sourceEvent:Un});if(fr){Un.preventDefault();var ti={x:Un.clientX,y:Un.clientY};We.current(),rr(fr,ti)}}}}}},[we]),At=Gn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Un){if(!Un.defaultPrevented){var Xn=we.findClosestDraggableId(Un);if(Xn){var fr=we.findOptionsForDraggable(Xn);fr&&(fr.shouldRespectForcePress||we.canGetLock(Xn)&&Un.preventDefault())}}}}},[we]),Nt=cn(function(){var Un={passive:!1,capture:!0};We.current=ln(window,[At,ut],Un)},[At,ut]),Ft=cn(function(){var er=Ne.current;er.type!=="IDLE"&&(Ne.current=wd,We.current(),Nt())},[Nt]),Kt=cn(function(){var er=Ne.current;Ft(),er.type==="DRAGGING"&&er.actions.cancel({shouldBlockNextClick:!0}),er.type==="PENDING"&&er.actions.abort()},[Ft]),Bn=cn(function(){var Un={capture:!0,passive:!1},Xn=Hu({cancel:Kt,completed:Ft,getPhase:function(){return Ne.current},setPhase:function(ti){Ne.current=ti}});We.current=ln(window,Xn,Un)},[Kt,Ft]),rr=cn(function(Un,Xn){Ne.current.type!=="IDLE"&&Nn(!1),Ne.current={type:"PENDING",point:Xn,actions:Un},Bn()},[Bn]);$r(function(){return Nt(),function(){We.current()}},[Nt])}var Ps;function Kh(){}var Lf=(Ps={},Ps[qu]=!0,Ps[rp]=!0,Ps[ip]=!0,Ps[fh]=!0,Ps);function Cd(we,Ne){function We(){Ne(),we.cancel()}function ut(){Ne(),we.drop()}return[{eventName:"keydown",fn:function(Nt){if(Nt.keyCode===Pf){Nt.preventDefault(),We();return}if(Nt.keyCode===np){Nt.preventDefault(),ut();return}if(Nt.keyCode===Zh){Nt.preventDefault(),we.moveDown();return}if(Nt.keyCode===Wh){Nt.preventDefault(),we.moveUp();return}if(Nt.keyCode===Tf){Nt.preventDefault(),we.moveRight();return}if(Nt.keyCode===qc){Nt.preventDefault(),we.moveLeft();return}if(Lf[Nt.keyCode]){Nt.preventDefault();return}Af(Nt)}},{eventName:"mousedown",fn:We},{eventName:"mouseup",fn:We},{eventName:"click",fn:We},{eventName:"touchstart",fn:We},{eventName:"resize",fn:We},{eventName:"wheel",fn:We,options:{passive:!0}},{eventName:Pu,fn:We}]}function ph(we){var Ne=(0,oe.useRef)(Kh),We=Gn(function(){return{eventName:"keydown",fn:function(Nt){if(Nt.defaultPrevented||Nt.keyCode!==np)return;var Ft=we.findClosestDraggableId(Nt);if(!Ft)return;var Kt=we.tryGetLock(Ft,er,{sourceEvent:Nt});if(!Kt)return;Nt.preventDefault();var Bn=!0,rr=Kt.snapLift();Ne.current();function er(){Bn||Nn(!1),Bn=!1,Ne.current(),ut()}Ne.current=ln(window,Cd(rr,er),{capture:!0,passive:!1})}}},[we]),ut=cn(function(){var Nt={passive:!1,capture:!0};Ne.current=ln(window,[We],Nt)},[We]);$r(function(){return ut(),function(){Ne.current()}},[ut])}var Pd={type:"IDLE"},sp=120,gh=.15;function lp(we){var Ne=we.cancel,We=we.getPhase;return[{eventName:"orientationchange",fn:Ne},{eventName:"resize",fn:Ne},{eventName:"contextmenu",fn:function(At){At.preventDefault()}},{eventName:"keydown",fn:function(At){if(We().type!=="DRAGGING"){Ne();return}At.keyCode===Pf&&At.preventDefault(),Ne()}},{eventName:Pu,fn:Ne}]}function $c(we){var Ne=we.cancel,We=we.completed,ut=we.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Nt){var Ft=ut();if(Ft.type!=="DRAGGING"){Ne();return}Ft.hasMoved=!0;var Kt=Nt.touches[0],Bn=Kt.clientX,rr=Kt.clientY,er={x:Bn,y:rr};Nt.preventDefault(),Ft.actions.move(er)}},{eventName:"touchend",fn:function(Nt){var Ft=ut();if(Ft.type!=="DRAGGING"){Ne();return}Nt.preventDefault(),Ft.actions.drop({shouldBlockNextClick:!0}),We()}},{eventName:"touchcancel",fn:function(Nt){if(ut().type!=="DRAGGING"){Ne();return}Nt.preventDefault(),Ne()}},{eventName:"touchforcechange",fn:function(Nt){var Ft=ut();Ft.type==="IDLE"&&Nn(!1);var Kt=Nt.touches[0];if(Kt){var Bn=Kt.force>=gh;if(Bn){var rr=Ft.actions.shouldRespectForcePress();if(Ft.type==="PENDING"){rr&&Ne();return}if(rr){if(Ft.hasMoved){Nt.preventDefault();return}Ne();return}Nt.preventDefault()}}}},{eventName:Pu,fn:Ne}]}function Wd(we){var Ne=(0,oe.useRef)(Pd),We=(0,oe.useRef)(Pr),ut=cn(function(){return Ne.current},[]),At=cn(function(fr){Ne.current=fr},[]),Nt=Gn(function(){return{eventName:"touchstart",fn:function(fr){if(!fr.defaultPrevented){var ti=we.findClosestDraggableId(fr);if(ti){var Hi=we.tryGetLock(ti,Kt,{sourceEvent:fr});if(Hi){var Ki=fr.touches[0],qi=Ki.clientX,So=Ki.clientY,Co={x:qi,y:So};We.current(),Un(Hi,Co)}}}}}},[we]),Ft=cn(function(){var fr={capture:!0,passive:!1};We.current=ln(window,[Nt],fr)},[Nt]),Kt=cn(function(){var Xn=Ne.current;Xn.type!=="IDLE"&&(Xn.type==="PENDING"&&clearTimeout(Xn.longPressTimerId),At(Pd),We.current(),Ft())},[Ft,At]),Bn=cn(function(){var Xn=Ne.current;Kt(),Xn.type==="DRAGGING"&&Xn.actions.cancel({shouldBlockNextClick:!0}),Xn.type==="PENDING"&&Xn.actions.abort()},[Kt]),rr=cn(function(){var fr={capture:!0,passive:!1},ti={cancel:Bn,completed:Kt,getPhase:ut},Hi=ln(window,$c(ti),fr),Ki=ln(window,lp(ti),fr);We.current=function(){Hi(),Ki()}},[Bn,ut,Kt]),er=cn(function(){var fr=ut();fr.type!=="PENDING"&&Nn(!1);var ti=fr.actions.fluidLift(fr.point);At({type:"DRAGGING",actions:ti,hasMoved:!1})},[ut,At]),Un=cn(function(fr,ti){ut().type!=="IDLE"&&Nn(!1);var Hi=setTimeout(er,sp);At({type:"PENDING",point:ti,actions:fr,longPressTimerId:Hi}),rr()},[rr,ut,At,er]);$r(function(){return Ft(),function(){We.current();var ti=ut();ti.type==="PENDING"&&(clearTimeout(ti.longPressTimerId),At(Pd))}},[ut,Ft,At]),$r(function(){var fr=ln(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return fr},[])}function kf(we){}var If={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Yh(we,Ne){if(Ne==null)return!1;var We=!!If[Ne.tagName.toLowerCase()];if(We)return!0;var ut=Ne.getAttribute("contenteditable");return ut==="true"||ut===""?!0:Ne===we?!1:Yh(we,Ne.parentElement)}function Zd(we,Ne){var We=Ne.target;return Qi(We)?Yh(we,We):!1}var up=function(we){return Wt(we.getBoundingClientRect()).center};function cp(we){return we instanceof ni(we).Element}var dp=function(){var we="matches";if(typeof document=="undefined")return we;var Ne=[we,"msMatchesSelector","webkitMatchesSelector"],We=ji(Ne,function(ut){return ut in Element.prototype});return We||we}();function Ec(we,Ne){return we==null?null:we[dp](Ne)?we:Ec(we.parentElement,Ne)}function ng(we,Ne){return we.closest?we.closest(Ne):Ec(we,Ne)}function hp(we){return"["+wl.contextId+'="'+we+'"]'}function mh(we,Ne){var We=Ne.target;if(!cp(We))return null;var ut=hp(we),At=ng(We,ut);return!At||!Qi(At)?null:At}function Kd(we,Ne){var We=mh(we,Ne);return We?We.getAttribute(wl.draggableId):null}function fp(we,Ne){var We="["+Ju.contextId+'="'+we+'"]',ut=zo(document.querySelectorAll(We)),At=ji(ut,function(Nt){return Nt.getAttribute(Ju.id)===Ne});return!At||!Qi(At)?null:At}function Oc(we){we.preventDefault()}function vh(we){var Ne=we.expected,We=we.phase,ut=we.isLockActive,At=we.shouldWarn;return!(!ut()||Ne!==We)}function Xh(we){var Ne=we.lockAPI,We=we.store,ut=we.registry,At=we.draggableId;if(Ne.isClaimed())return!1;var Nt=ut.draggable.findById(At);return!(!Nt||!Nt.options.isEnabled||!To(We.getState(),At))}function rg(we){var Ne=we.lockAPI,We=we.contextId,ut=we.store,At=we.registry,Nt=we.draggableId,Ft=we.forceSensorStop,Kt=we.sourceEvent,Bn=Xh({lockAPI:Ne,store:ut,registry:At,draggableId:Nt});if(!Bn)return null;var rr=At.draggable.getById(Nt),er=fp(We,rr.descriptor.id);if(!er||Kt&&!rr.options.canDragInteractiveElements&&Zd(er,Kt))return null;var Un=Ne.claim(Ft||Pr),Xn="PRE_DRAG";function fr(){return rr.options.shouldRespectForcePress}function ti(){return Ne.isActive(Un)}function Hi(Go,Ha){vh({expected:Go,phase:Xn,isLockActive:ti,shouldWarn:!0})&&ut.dispatch(Ha())}var Ki=Hi.bind(null,"DRAGGING");function qi(Go){function Ha(){Ne.release(),Xn="COMPLETED"}Xn!=="PRE_DRAG"&&(Ha(),Xn!=="PRE_DRAG"&&Nn(!1)),ut.dispatch(cl(Go.liftActionArgs)),Xn="DRAGGING";function ml(Ka,Ws){if(Ws===void 0&&(Ws={shouldBlockNextClick:!1}),Go.cleanup(),Ws.shouldBlockNextClick){var tu=ln(window,[{eventName:"click",fn:Oc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(tu)}Ha(),ut.dispatch(Bu({reason:Ka}))}return(0,ke.Z)({isActive:function(){return vh({expected:"DRAGGING",phase:Xn,isLockActive:ti,shouldWarn:!1})},shouldRespectForcePress:fr,drop:function(Ws){return ml("DROP",Ws)},cancel:function(Ws){return ml("CANCEL",Ws)}},Go.actions)}function So(Go){var Ha=Rn(function(Ka){Ki(function(){return oa({client:Ka})})}),ml=qi({liftActionArgs:{id:Nt,clientSelection:Go,movementMode:"FLUID"},cleanup:function(){return Ha.cancel()},actions:{move:Ha}});return(0,ke.Z)({},ml,{move:Ha})}function Co(){var Go={moveUp:function(){return Ki(Za)},moveRight:function(){return Ki(sc)},moveDown:function(){return Ki(na)},moveLeft:function(){return Ki(bo)}};return qi({liftActionArgs:{id:Nt,clientSelection:up(er),movementMode:"SNAP"},cleanup:Pr,actions:Go})}function Ro(){var Go=vh({expected:"PRE_DRAG",phase:Xn,isLockActive:ti,shouldWarn:!0});Go&&Ne.release()}var ra={isActive:function(){return vh({expected:"PRE_DRAG",phase:Xn,isLockActive:ti,shouldWarn:!1})},shouldRespectForcePress:fr,fluidLift:So,snapLift:Co,abort:Ro};return ra}var pp=[ap,ph,Wd];function gp(we){var Ne=we.contextId,We=we.store,ut=we.registry,At=we.customSensors,Nt=we.enableDefaultSensors,Ft=[].concat(Nt?pp:[],At||[]),Kt=(0,oe.useState)(function(){return tp()})[0],Bn=cn(function(So,Co){So.isDragging&&!Co.isDragging&&Kt.tryAbandon()},[Kt]);$r(function(){var So=We.getState(),Co=We.subscribe(function(){var Ro=We.getState();Bn(So,Ro),So=Ro});return Co},[Kt,We,Bn]),$r(function(){return Kt.tryAbandon},[Kt.tryAbandon]);var rr=cn(function(qi){return Xh({lockAPI:Kt,registry:ut,store:We,draggableId:qi})},[Kt,ut,We]),er=cn(function(qi,So,Co){return rg({lockAPI:Kt,registry:ut,contextId:Ne,store:We,draggableId:qi,forceSensorStop:So,sourceEvent:Co&&Co.sourceEvent?Co.sourceEvent:null})},[Ne,Kt,ut,We]),Un=cn(function(qi){return Kd(Ne,qi)},[Ne]),Xn=cn(function(qi){var So=ut.draggable.findById(qi);return So?So.options:null},[ut.draggable]),fr=cn(function(){Kt.isClaimed()&&(Kt.tryAbandon(),We.getState().phase!=="IDLE"&&We.dispatch(Dc()))},[Kt,We]),ti=cn(Kt.isClaimed,[Kt]),Hi=Gn(function(){return{canGetLock:rr,tryGetLock:er,findClosestDraggableId:Un,findOptionsForDraggable:Xn,tryReleaseLock:fr,isLockClaimed:ti}},[rr,er,Un,Xn,fr,ti]);kf(Ft);for(var Ki=0;Ki<Ft.length;Ki++)Ft[Ki](Hi)}var jg=function(Ne){return{onBeforeCapture:Ne.onBeforeCapture,onBeforeDragStart:Ne.onBeforeDragStart,onDragStart:Ne.onDragStart,onDragEnd:Ne.onDragEnd,onDragUpdate:Ne.onDragUpdate}};function yh(we){return we.current||Nn(!1),we.current}function Df(we){var Ne=we.contextId,We=we.setCallbacks,ut=we.sensors,At=we.nonce,Nt=we.dragHandleUsageInstructions,Ft=(0,oe.useRef)(null);zl();var Kt=jd(we),Bn=cn(function(){return jg(Kt.current)},[Kt]),rr=Cu(Ne),er=Kp({contextId:Ne,text:Nt}),Un=Xo(Ne,At),Xn=cn(function(Ka){yh(Ft).dispatch(Ka)},[]),fr=Gn(function(){return(0,Ie.DE)({publishWhileDragging:Sl,updateDroppableScroll:Fu,updateDroppableIsEnabled:va,updateDroppableIsCombineEnabled:Os,collectionStarting:Es},Xn)},[Xn]),ti=Uu(),Hi=Gn(function(){return so(ti,fr)},[ti,fr]),Ki=Gn(function(){return uc((0,ke.Z)({scrollWindow:Bo,scrollDroppable:Hi.scrollDroppable},(0,Ie.DE)({move:oa},Xn)))},[Hi.scrollDroppable,Xn]),qi=Aa(Ne),So=Gn(function(){return yr({announce:rr,autoScroller:Ki,dimensionMarshal:Hi,focusMarshal:qi,getResponders:Bn,styleMarshal:Un})},[rr,Ki,Hi,qi,Bn,Un]);Ft.current=So;var Co=cn(function(){var Ka=yh(Ft),Ws=Ka.getState();Ws.phase!=="IDLE"&&Ka.dispatch(Dc())},[]),Ro=cn(function(){var Ka=yh(Ft).getState();return Ka.isDragging||Ka.phase==="DROP_ANIMATING"},[]),ra=Gn(function(){return{isDragging:Ro,tryAbort:Co}},[Ro,Co]);We(ra);var Go=cn(function(Ka){return To(yh(Ft).getState(),Ka)},[]),Ha=cn(function(){return ul(yh(Ft).getState())},[]),ml=Gn(function(){return{marshal:Hi,focus:qi,contextId:Ne,canLift:Go,isMovementAllowed:Ha,dragHandleUsageInstructionsId:er,registry:ti}},[Ne,Hi,er,qi,Go,Ha,ti]);return gp({contextId:Ne,store:So,registry:ti,customSensors:ut,enableDefaultSensors:we.enableDefaultSensors!==!1}),(0,oe.useEffect)(function(){return Co},[Co]),oe.createElement(Gd.Provider,{value:ml},oe.createElement(ee,{context:xu,store:So},we.children))}var Qh=0;function Rf(){Qh=0}function ig(){return Gn(function(){return""+Qh++},[])}function mp(){Rf(),hh()}function Td(we){var Ne=ig(),We=we.dragHandleUsageInstructions||Qr.dragHandleUsageInstructions;return oe.createElement(Xr,null,function(ut){return oe.createElement(Df,{nonce:we.nonce,contextId:Ne,setCallbacks:ut,dragHandleUsageInstructions:We,enableDefaultSensors:we.enableDefaultSensors,sensors:we.sensors,onBeforeCapture:we.onBeforeCapture,onBeforeDragStart:we.onBeforeDragStart,onDragStart:we.onDragStart,onDragUpdate:we.onDragUpdate,onDragEnd:we.onDragEnd},we.children)})}var Jh=function(Ne){return function(We){return Ne===We}},qh=Jh("scroll"),og=Jh("auto"),Mf=Jh("visible"),vp=function(Ne,We){return We(Ne.overflowX)||We(Ne.overflowY)},Fa=function(Ne,We){return We(Ne.overflowX)&&We(Ne.overflowY)},Yd=function(Ne){var We=window.getComputedStyle(Ne),ut={overflowX:We.overflowX,overflowY:We.overflowY};return vp(ut,qh)||vp(ut,og)},Xd=function(){return!1;var Ne,We,ut,At},pl=function we(Ne){return Ne==null?null:Ne===document.body?Xd()?Ne:null:Ne===document.documentElement?null:Yd(Ne)?Ne:we(Ne.parentElement)},zu=function(we){if(we)var Ne=pl(we.parentElement)},cd=function(we){return{x:we.scrollLeft,y:we.scrollTop}},$h=function we(Ne){if(!Ne)return!1;var We=window.getComputedStyle(Ne);return We.position==="fixed"?!0:we(Ne.parentElement)},yp=function(we){var Ne=pl(we),We=$h(we);return{closestScrollable:Ne,isFixedOnPage:We}},Sp=function(we){var Ne=we.descriptor,We=we.isEnabled,ut=we.isCombineEnabled,At=we.isFixedOnPage,Nt=we.direction,Ft=we.client,Kt=we.page,Bn=we.closest,rr=function(){if(!Bn)return null;var fr=Bn.scrollSize,ti=Bn.client,Hi=Zr({scrollHeight:fr.scrollHeight,scrollWidth:fr.scrollWidth,height:ti.paddingBox.height,width:ti.paddingBox.width});return{pageMarginBox:Bn.page.marginBox,frameClient:ti,scrollSize:fr,shouldClipSubject:Bn.shouldClipSubject,scroll:{initial:Bn.scroll,current:Bn.scroll,max:Hi,diff:{value:un,displacement:un}}}}(),er=Nt==="vertical"?Qn:an,Un=vi({page:Kt,withPlaceholder:null,axis:er,frame:rr}),Xn={descriptor:Ne,isCombineEnabled:ut,isFixedOnPage:At,axis:er,isEnabled:We,client:Ft,page:Kt,frame:rr,subject:Un};return Xn},bp=function(Ne,We){var ut=Mr(Ne);if(!We||Ne!==We)return ut;var At=ut.paddingBox.top-We.scrollTop,Nt=ut.paddingBox.left-We.scrollLeft,Ft=At+We.scrollHeight,Kt=Nt+We.scrollWidth,Bn={top:At,right:Kt,bottom:Ft,left:Nt},rr=wr(Bn,ut.border),er=ii({borderBox:rr,margin:ut.margin,border:ut.border,padding:ut.padding});return er},Ep=function(we){var Ne=we.ref,We=we.descriptor,ut=we.env,At=we.windowScroll,Nt=we.direction,Ft=we.isDropDisabled,Kt=we.isCombineEnabled,Bn=we.shouldClipSubject,rr=ut.closestScrollable,er=bp(Ne,rr),Un=ri(er,At),Xn=function(){if(!rr)return null;var ti=Mr(rr),Hi={scrollHeight:rr.scrollHeight,scrollWidth:rr.scrollWidth};return{client:ti,page:ri(ti,At),scroll:cd(rr),scrollSize:Hi,shouldClipSubject:Bn}}(),fr=Sp({descriptor:We,isEnabled:!Ft,isCombineEnabled:Kt,isFixedOnPage:ut.isFixedOnPage,direction:Nt,client:er,page:Un,closest:Xn});return fr},xp={passive:!1},Ad={passive:!0},Sh=function(we){return we.shouldPublishImmediately?xp:Ad};function Fc(we){var Ne=(0,oe.useContext)(we);return Ne||Nn(!1),Ne}var Ja=function(Ne){return Ne&&Ne.env.closestScrollable||null};function Of(we){var Ne=(0,oe.useRef)(null),We=Fc(Gd),ut=Cs("droppable"),At=We.registry,Nt=We.marshal,Ft=jd(we),Kt=Gn(function(){return{id:we.droppableId,type:we.type,mode:we.mode}},[we.droppableId,we.mode,we.type]),Bn=(0,oe.useRef)(Kt),rr=Gn(function(){return br(function(Ro,ra){Ne.current||Nn(!1);var Go={x:Ro,y:ra};Nt.updateDroppableScroll(Kt.id,Go)})},[Kt.id,Nt]),er=cn(function(){var Ro=Ne.current;return!Ro||!Ro.env.closestScrollable?un:cd(Ro.env.closestScrollable)},[]),Un=cn(function(){var Ro=er();rr(Ro.x,Ro.y)},[er,rr]),Xn=Gn(function(){return Rn(Un)},[Un]),fr=cn(function(){var Ro=Ne.current,ra=Ja(Ro);Ro&&ra||Nn(!1);var Go=Ro.scrollOptions;if(Go.shouldPublishImmediately){Un();return}Xn()},[Xn,Un]),ti=cn(function(Ro,ra){Ne.current&&Nn(!1);var Go=Ft.current,Ha=Go.getDroppableRef();Ha||Nn(!1);var ml=yp(Ha),Ka={ref:Ha,descriptor:Kt,env:ml,scrollOptions:ra};Ne.current=Ka;var Ws=Ep({ref:Ha,descriptor:Kt,env:ml,windowScroll:Ro,direction:Go.direction,isDropDisabled:Go.isDropDisabled,isCombineEnabled:Go.isCombineEnabled,shouldClipSubject:!Go.ignoreContainerClipping}),tu=ml.closestScrollable;return tu&&(tu.setAttribute(ce.contextId,We.contextId),tu.addEventListener("scroll",fr,Sh(Ka.scrollOptions))),Ws},[We.contextId,Kt,fr,Ft]),Hi=cn(function(){var Ro=Ne.current,ra=Ja(Ro);return Ro&&ra||Nn(!1),cd(ra)},[]),Ki=cn(function(){var Ro=Ne.current;Ro||Nn(!1);var ra=Ja(Ro);Ne.current=null,ra&&(Xn.cancel(),ra.removeAttribute(ce.contextId),ra.removeEventListener("scroll",fr,Sh(Ro.scrollOptions)))},[fr,Xn]),qi=cn(function(Ro){var ra=Ne.current;ra||Nn(!1);var Go=Ja(ra);Go||Nn(!1),Go.scrollTop+=Ro.y,Go.scrollLeft+=Ro.x},[]),So=Gn(function(){return{getDimensionAndWatchScroll:ti,getScrollWhileDragging:Hi,dragStopped:Ki,scroll:qi}},[Ki,ti,Hi,qi]),Co=Gn(function(){return{uniqueId:ut,descriptor:Kt,callbacks:So}},[So,Kt,ut]);$r(function(){return Bn.current=Co.descriptor,At.droppable.register(Co),function(){Ne.current&&Ki(),At.droppable.unregister(Co)}},[So,Kt,Ki,Co,Nt,At.droppable]),$r(function(){Ne.current&&Nt.updateDroppableIsEnabled(Bn.current.id,!we.isDropDisabled)},[we.isDropDisabled,Nt]),$r(function(){Ne.current&&Nt.updateDroppableIsCombineEnabled(Bn.current.id,we.isCombineEnabled)},[we.isCombineEnabled,Nt])}function ef(){}var Qd={width:0,height:0,margin:io},bh=function(Ne){var We=Ne.isAnimatingOpenOnMount,ut=Ne.placeholder,At=Ne.animate;return We||At==="close"?Qd:{height:ut.client.borderBox.height,width:ut.client.borderBox.width,margin:ut.client.margin}},tf=function(Ne){var We=Ne.isAnimatingOpenOnMount,ut=Ne.placeholder,At=Ne.animate,Nt=bh({isAnimatingOpenOnMount:We,placeholder:ut,animate:At});return{display:ut.display,boxSizing:"border-box",width:Nt.width,height:Nt.height,marginTop:Nt.margin.top,marginRight:Nt.margin.right,marginBottom:Nt.margin.bottom,marginLeft:Nt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:At!=="none"?bl.placeholder:null}};function ag(we){var Ne=(0,oe.useRef)(null),We=cn(function(){Ne.current&&(clearTimeout(Ne.current),Ne.current=null)},[]),ut=we.animate,At=we.onTransitionEnd,Nt=we.onClose,Ft=we.contextId,Kt=(0,oe.useState)(we.animate==="open"),Bn=Kt[0],rr=Kt[1];(0,oe.useEffect)(function(){return Bn?ut!=="open"?(We(),rr(!1),ef):Ne.current?ef:(Ne.current=setTimeout(function(){Ne.current=null,rr(!1)}),We):ef},[ut,Bn,We]);var er=cn(function(Xn){Xn.propertyName==="height"&&(At(),ut==="close"&&Nt())},[ut,Nt,At]),Un=tf({isAnimatingOpenOnMount:Bn,animate:we.animate,placeholder:we.placeholder});return oe.createElement(we.placeholder.tagName,{style:Un,"data-rbd-placeholder-context-id":Ft,onTransitionEnd:er,ref:we.innerRef})}var gl=oe.memo(ag),Ff=oe.createContext(null);function Jd(we){we&&Qi(we)||Nn(!1)}function Bc(we){return typeof we=="boolean"}function qd(we,Ne){Ne.forEach(function(We){return We(we)})}var re=[function(Ne){var We=Ne.props;We.droppableId||Nn(!1),typeof We.droppableId!="string"&&Nn(!1)},function(Ne){var We=Ne.props;Bc(We.isDropDisabled)||Nn(!1),Bc(We.isCombineEnabled)||Nn(!1),Bc(We.ignoreContainerClipping)||Nn(!1)},function(Ne){var We=Ne.getDroppableRef;Jd(We())}],le=[function(Ne){var We=Ne.props,ut=Ne.getPlaceholderRef;if(We.placeholder)var At=ut()}],ye=[function(Ne){var We=Ne.props;We.renderClone||Nn(!1)},function(Ne){var We=Ne.getPlaceholderRef;We()&&Nn(!1)}];function ve(we){Vh(function(){qd(we,re),we.props.mode==="standard"&&qd(we,le),we.props.mode==="virtual"&&qd(we,ye)})}var xe=function(we){(0,Ce.Z)(Ne,we);function Ne(){for(var ut,At=arguments.length,Nt=new Array(At),Ft=0;Ft<At;Ft++)Nt[Ft]=arguments[Ft];return ut=we.call.apply(we,[this].concat(Nt))||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}Ne.getDerivedStateFromProps=function(At,Nt){return At.shouldAnimate?At.on?{isVisible:!0,data:At.on,animate:"open"}:Nt.isVisible?{isVisible:!0,data:Nt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!At.on,data:At.on,animate:"none"}};var We=Ne.prototype;return We.render=function(){if(!this.state.isVisible)return null;var At={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(At)},Ne}(oe.PureComponent),Ke={dragging:5e3,dropAnimating:4500},dt=function(Ne,We){return We?bl.drop(We.duration):Ne?bl.snap:bl.fluid},Pt=function(Ne,We){return Ne?We?du.opacity.drop:du.opacity.combining:null},wt=function(Ne){return Ne.forceShouldAnimate!=null?Ne.forceShouldAnimate:Ne.mode==="SNAP"};function Vt(we){var Ne=we.dimension,We=Ne.client,ut=we.offset,At=we.combineWith,Nt=we.dropping,Ft=!!At,Kt=wt(we),Bn=!!Nt,rr=Bn?ca.drop(ut,Ft):ca.moveTo(ut),er={position:"fixed",top:We.marginBox.top,left:We.marginBox.left,boxSizing:"border-box",width:We.borderBox.width,height:We.borderBox.height,transition:dt(Kt,Nt),transform:rr,opacity:Pt(Ft,Bn),zIndex:Bn?Ke.dropAnimating:Ke.dragging,pointerEvents:"none"};return er}function Kn(we){return{transform:ca.moveTo(we.offset),transition:we.shouldAnimateDisplacement?null:"none"}}function on(we){return we.type==="DRAGGING"?Vt(we):Kn(we)}function Cr(we,Ne,We){We===void 0&&(We=un);var ut=window.getComputedStyle(Ne),At=Ne.getBoundingClientRect(),Nt=_e(At,ut),Ft=ri(Nt,We),Kt={client:Nt,tagName:Ne.tagName.toLowerCase(),display:ut.display},Bn={x:Nt.marginBox.width,y:Nt.marginBox.height},rr={descriptor:we,placeholder:Kt,displaceBy:Bn,client:Nt,page:Ft};return rr}function vr(we){var Ne=Cs("draggable"),We=we.descriptor,ut=we.registry,At=we.getDraggableRef,Nt=we.canDragInteractiveElements,Ft=we.shouldRespectForcePress,Kt=we.isEnabled,Bn=Gn(function(){return{canDragInteractiveElements:Nt,shouldRespectForcePress:Ft,isEnabled:Kt}},[Nt,Kt,Ft]),rr=cn(function(fr){var ti=At();return ti||Nn(!1),Cr(We,ti,fr)},[We,At]),er=Gn(function(){return{uniqueId:Ne,descriptor:We,options:Bn,getDimension:rr}},[We,rr,Bn,Ne]),Un=(0,oe.useRef)(er),Xn=(0,oe.useRef)(!0);$r(function(){return ut.draggable.register(Un.current),function(){return ut.draggable.unregister(Un.current)}},[ut.draggable]),$r(function(){if(Xn.current){Xn.current=!1;return}var fr=Un.current;Un.current=er,ut.draggable.update(er,fr)},[er,ut.draggable])}function yi(we,Ne,We){Vh(function(){function ut(Nt){return"Draggable[id: "+Nt+"]: "}var At=we.draggableId;At||Nn(!1),typeof At!="string"&&Nn(!1),Oi(we.index)||Nn(!1),we.mapped.type!=="DRAGGING"&&(Jd(We()),we.isEnabled&&(ta(Ne,At)||Nn(!1)))})}function xi(we){}function Li(we){we.preventDefault()}function Ji(we){var Ne=(0,oe.useRef)(null),We=cn(function(Ka){Ne.current=Ka},[]),ut=cn(function(){return Ne.current},[]),At=Fc(Gd),Nt=At.contextId,Ft=At.dragHandleUsageInstructionsId,Kt=At.registry,Bn=Fc(Ff),rr=Bn.type,er=Bn.droppableId,Un=Gn(function(){return{id:we.draggableId,index:we.index,type:rr,droppableId:er}},[we.draggableId,we.index,rr,er]),Xn=we.children,fr=we.draggableId,ti=we.isEnabled,Hi=we.shouldRespectForcePress,Ki=we.canDragInteractiveElements,qi=we.isClone,So=we.mapped,Co=we.dropAnimationFinished;if(yi(we,Nt,ut),xi(qi),!qi){var Ro=Gn(function(){return{descriptor:Un,registry:Kt,getDraggableRef:ut,canDragInteractiveElements:Ki,shouldRespectForcePress:Hi,isEnabled:ti}},[Un,Kt,ut,Ki,Hi,ti]);vr(Ro)}var ra=Gn(function(){return ti?{tabIndex:0,role:"button","aria-describedby":Ft,"data-rbd-drag-handle-draggable-id":fr,"data-rbd-drag-handle-context-id":Nt,draggable:!1,onDragStart:Li}:null},[Nt,Ft,fr,ti]),Go=cn(function(Ka){So.type==="DRAGGING"&&So.dropping&&Ka.propertyName==="transform"&&Co()},[Co,So]),Ha=Gn(function(){var Ka=on(So),Ws=So.type==="DRAGGING"&&So.dropping?Go:null,tu={innerRef:We,draggableProps:{"data-rbd-draggable-context-id":Nt,"data-rbd-draggable-id":fr,style:Ka,onTransitionEnd:Ws},dragHandleProps:ra};return tu},[Nt,ra,fr,So,Go,We]),ml=Gn(function(){return{draggableId:Un.id,type:Un.type,source:{index:Un.index,droppableId:Un.droppableId}}},[Un.droppableId,Un.id,Un.index,Un.type]);return Xn(Ha,So.snapshot,ml)}var yo=function(we,Ne){return we===Ne},lo=function(we){var Ne=we.combine,We=we.destination;return We?We.droppableId:Ne?Ne.droppableId:null},Ao=function(Ne){return Ne.combine?Ne.combine.draggableId:null},Qo=function(Ne){return Ne.at&&Ne.at.type==="COMBINE"?Ne.at.combine.draggableId:null};function uo(){var we=br(function(At,Nt){return{x:At,y:Nt}}),Ne=br(function(At,Nt,Ft,Kt,Bn){return{isDragging:!0,isClone:Nt,isDropAnimating:!!Bn,dropAnimation:Bn,mode:At,draggingOver:Ft,combineWith:Kt,combineTargetFor:null}}),We=br(function(At,Nt,Ft,Kt,Bn,rr,er){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Bn,combineWith:rr,mode:Nt,offset:At,dimension:Ft,forceShouldAnimate:er,snapshot:Ne(Nt,Kt,Bn,rr,null)}}}),ut=function(Nt,Ft){if(Nt.isDragging){if(Nt.critical.draggable.id!==Ft.draggableId)return null;var Kt=Nt.current.client.offset,Bn=Nt.dimensions.draggables[Ft.draggableId],rr=es(Nt.impact),er=Qo(Nt.impact),Un=Nt.forceShouldAnimate;return We(we(Kt.x,Kt.y),Nt.movementMode,Bn,Ft.isClone,rr,er,Un)}if(Nt.phase==="DROP_ANIMATING"){var Xn=Nt.completed;if(Xn.result.draggableId!==Ft.draggableId)return null;var fr=Ft.isClone,ti=Nt.dimensions.draggables[Ft.draggableId],Hi=Xn.result,Ki=Hi.mode,qi=lo(Hi),So=Ao(Hi),Co=Nt.dropDuration,Ro={duration:Co,curve:Gs.drop,moveTo:Nt.newHomeClientOffset,opacity:So?du.opacity.drop:null,scale:So?du.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Nt.newHomeClientOffset,dimension:ti,dropping:Ro,draggingOver:qi,combineWith:So,mode:Ki,forceShouldAnimate:null,snapshot:Ne(Ki,fr,qi,So,Ro)}}}return null};return ut}function ya(we){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:we,combineWith:null}}var Ts={mapped:{type:"SECONDARY",offset:un,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ya(null)}};function Cl(){var we=br(function(Ft,Kt){return{x:Ft,y:Kt}}),Ne=br(ya),We=br(function(Ft,Kt,Bn){return Kt===void 0&&(Kt=null),{mapped:{type:"SECONDARY",offset:Ft,combineTargetFor:Kt,shouldAnimateDisplacement:Bn,snapshot:Ne(Kt)}}}),ut=function(Kt){return Kt?We(un,Kt,!0):null},At=function(Kt,Bn,rr,er){var Un=rr.displaced.visible[Kt],Xn=!!(er.inVirtualList&&er.effected[Kt]),fr=pi(rr),ti=fr&&fr.draggableId===Kt?Bn:null;if(!Un){if(!Xn)return ut(ti);if(rr.displaced.invisible[Kt])return null;var Hi=wi(er.displacedBy.point),Ki=we(Hi.x,Hi.y);return We(Ki,ti,!0)}if(Xn)return ut(ti);var qi=rr.displacedBy.point,So=we(qi.x,qi.y);return We(So,ti,Un.shouldAnimate)},Nt=function(Kt,Bn){if(Kt.isDragging)return Kt.critical.draggable.id===Bn.draggableId?null:At(Bn.draggableId,Kt.critical.draggable.id,Kt.impact,Kt.afterCritical);if(Kt.phase==="DROP_ANIMATING"){var rr=Kt.completed;return rr.result.draggableId===Bn.draggableId?null:At(Bn.draggableId,rr.result.draggableId,rr.impact,rr.afterCritical)}return null};return Nt}var Bs=function(){var Ne=uo(),We=Cl(),ut=function(Nt,Ft){return Ne(Nt,Ft)||We(Nt,Ft)||Ts};return ut},Tu={dropAnimationFinished:Rc},eu=hn(Bs,Tu,null,{context:xu,pure:!0,areStatePropsEqual:yo})(Ji);function sl(we){var Ne=Fc(Ff),We=Ne.isUsingCloneFor;return We===we.draggableId&&!we.isClone?null:oe.createElement(eu,we)}function Gu(we){var Ne=typeof we.isDragDisabled=="boolean"?!we.isDragDisabled:!0,We=!!we.disableInteractiveElementBlocking,ut=!!we.shouldRespectForcePress;return oe.createElement(sl,(0,ke.Z)({},we,{isClone:!1,isEnabled:Ne,canDragInteractiveElements:We,shouldRespectForcePress:ut}))}function Gl(we){var Ne=(0,oe.useContext)(Gd);Ne||Nn(!1);var We=Ne.contextId,ut=Ne.isMovementAllowed,At=(0,oe.useRef)(null),Nt=(0,oe.useRef)(null),Ft=we.children,Kt=we.droppableId,Bn=we.type,rr=we.mode,er=we.direction,Un=we.ignoreContainerClipping,Xn=we.isDropDisabled,fr=we.isCombineEnabled,ti=we.snapshot,Hi=we.useClone,Ki=we.updateViewportMaxScroll,qi=we.getContainerForClone,So=cn(function(){return At.current},[]),Co=cn(function(Au){At.current=Au},[]),Ro=cn(function(){return Nt.current},[]),ra=cn(function(Au){Nt.current=Au},[]);ve({props:we,getDroppableRef:So,getPlaceholderRef:Ro});var Go=cn(function(){ut()&&Ki({maxScroll:ur()})},[ut,Ki]);Of({droppableId:Kt,type:Bn,mode:rr,direction:er,isDropDisabled:Xn,isCombineEnabled:fr,ignoreContainerClipping:Un,getDroppableRef:So});var Ha=oe.createElement(xe,{on:we.placeholder,shouldAnimate:we.shouldAnimatePlaceholder},function(Au){var dd=Au.onClose,_c=Au.data,ju=Au.animate;return oe.createElement(gl,{placeholder:_c,onClose:dd,innerRef:ra,animate:ju,contextId:We,onTransitionEnd:Go})}),ml=Gn(function(){return{innerRef:Co,placeholder:Ha,droppableProps:{"data-rbd-droppable-id":Kt,"data-rbd-droppable-context-id":We}}},[We,Kt,Ha,Co]),Ka=Hi?Hi.dragging.draggableId:null,Ws=Gn(function(){return{droppableId:Kt,type:Bn,isUsingCloneFor:Ka}},[Kt,Ka,Bn]);function tu(){if(!Hi)return null;var Au=Hi.dragging,dd=Hi.render,_c=oe.createElement(sl,{draggableId:Au.draggableId,index:Au.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ju,Uc){return dd(ju,Uc,Au)});return Vn.createPortal(_c,qi())}return oe.createElement(Ff.Provider,{value:Ws},Ft(ml,ti),tu())}var tl=function(Ne,We){return Ne===We.droppable.type},Ba=function(Ne,We){return We.draggables[Ne.draggable.id]},Vs=function(){var Ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},We=(0,ke.Z)({},Ne,{shouldAnimatePlaceholder:!1}),ut=br(function(Ft){return{draggableId:Ft.id,type:Ft.type,source:{index:Ft.index,droppableId:Ft.droppableId}}}),At=br(function(Ft,Kt,Bn,rr,er,Un){var Xn=er.descriptor.id,fr=er.descriptor.droppableId===Ft;if(fr){var ti=Un?{render:Un,dragging:ut(er.descriptor)}:null,Hi={isDraggingOver:Bn,draggingOverWith:Bn?Xn:null,draggingFromThisWith:Xn,isUsingPlaceholder:!0};return{placeholder:er.placeholder,shouldAnimatePlaceholder:!1,snapshot:Hi,useClone:ti}}if(!Kt)return We;if(!rr)return Ne;var Ki={isDraggingOver:Bn,draggingOverWith:Xn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:er.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ki,useClone:null}}),Nt=function(Kt,Bn){var rr=Bn.droppableId,er=Bn.type,Un=!Bn.isDropDisabled,Xn=Bn.renderClone;if(Kt.isDragging){var fr=Kt.critical;if(!tl(er,fr))return We;var ti=Ba(fr,Kt.dimensions),Hi=es(Kt.impact)===rr;return At(rr,Un,Hi,Hi,ti,Xn)}if(Kt.phase==="DROP_ANIMATING"){var Ki=Kt.completed;if(!tl(er,Ki.critical))return We;var qi=Ba(Ki.critical,Kt.dimensions);return At(rr,Un,lo(Ki.result)===rr,es(Ki.impact)===rr,qi,Xn)}if(Kt.phase==="IDLE"&&Kt.completed&&!Kt.shouldFlush){var So=Kt.completed;if(!tl(er,So.critical))return We;var Co=es(So.impact)===rr,Ro=!!(So.impact.at&&So.impact.at.type==="COMBINE"),ra=So.critical.droppable.id===rr;return Co?Ro?Ne:We:ra?Ne:We}return We};return Nt},Rl={updateViewportMaxScroll:La};function jl(){return document.body||Nn(!1),document.body}var xc={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:jl},Ds=hn(Vs,Rl,null,{context:xu,pure:!0,areStatePropsEqual:yo})(Gl);Ds.defaultProps=xc},38486:function(He,Ee){"use strict";var ae;var oe=60103,Ce=60106,ke=60107,Ie=60108,je=60114,Te=60109,Ge=60110,lt=60112,Qe=60113,Ue=60120,mt=60115,Je=60116,It=60121,Oe=60122,te=60117,ee=60129,he=60131;if(typeof Symbol=="function"&&Symbol.for){var ue=Symbol.for;oe=ue("react.element"),Ce=ue("react.portal"),ke=ue("react.fragment"),Ie=ue("react.strict_mode"),je=ue("react.profiler"),Te=ue("react.provider"),Ge=ue("react.context"),lt=ue("react.forward_ref"),Qe=ue("react.suspense"),Ue=ue("react.suspense_list"),mt=ue("react.memo"),Je=ue("react.lazy"),It=ue("react.block"),Oe=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 xt=vt.$$typeof;switch(xt){case oe:switch(vt=vt.type,vt){case ke:case je:case Ie:case Qe:case Ue:return vt;default:switch(vt=vt&&vt.$$typeof,vt){case Ge:case lt:case Je:case mt:case Te:return vt;default:return xt}}case Ce:return xt}}}var me=Te,be=oe,Ae=lt,De=ke,Ye=Je,rt=mt,$e=Ce,at=je,ht=Ie,ot=Qe;ae=Ge,ae=me,ae=be,ae=Ae,ae=De,ae=Ye,ae=rt,ae=$e,ae=at,ae=ht,ae=ot,ae=function(){return!1},ae=function(){return!1},Ee.isContextConsumer=function(vt){return fe(vt)===Ge},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)===lt},ae=function(vt){return fe(vt)===ke},ae=function(vt){return fe(vt)===Je},ae=function(vt){return fe(vt)===mt},ae=function(vt){return fe(vt)===Ce},ae=function(vt){return fe(vt)===je},ae=function(vt){return fe(vt)===Ie},ae=function(vt){return fe(vt)===Qe},ae=function(vt){return typeof vt=="string"||typeof vt=="function"||vt===ke||vt===je||vt===ee||vt===Ie||vt===Qe||vt===Ue||vt===he||typeof vt=="object"&&vt!==null&&(vt.$$typeof===Je||vt.$$typeof===mt||vt.$$typeof===Te||vt.$$typeof===Ge||vt.$$typeof===lt||vt.$$typeof===te||vt.$$typeof===It||vt[0]===Oe)},ae=fe},53410:function(He,Ee,ae){"use strict";He.exports=ae(38486)},77596:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ft}});var oe=ae(33346),Ce=ae(15142),ke=ae(52873),Ie=ae(59301),je=ae(67711);function Te(ct,qt){var dn=Object.keys(ct);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(ct);qt&&(kt=kt.filter(function(bn){return Object.getOwnPropertyDescriptor(ct,bn).enumerable})),dn.push.apply(dn,kt)}return dn}function Ge(ct){for(var qt=1;qt<arguments.length;qt++){var dn=arguments[qt]!=null?arguments[qt]:{};qt%2?Te(Object(dn),!0).forEach(function(kt){(0,ke.Z)(ct,kt,dn[kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(dn)):Te(Object(dn)).forEach(function(kt){Object.defineProperty(ct,kt,Object.getOwnPropertyDescriptor(dn,kt))})}return ct}function lt(ct){var qt=ct.length;if(qt===0||qt===1)return ct;if(qt===2)return[ct[0],ct[1],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0])];if(qt===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(qt>=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 qt=ct.join(".");return Qe[qt]||(Qe[qt]=lt(ct)),Qe[qt]}function mt(ct){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dn=arguments.length>2?arguments[2]:void 0,kt=ct.filter(function(gn){return gn!=="token"}),bn=Ue(kt);return bn.reduce(function(gn,Zn){return Ge(Ge({},gn),dn[Zn])},qt)}function Je(ct){return ct.join(" ")}function It(ct,qt){var dn=0;return function(kt){return dn+=1,kt.map(function(bn,gn){return Oe({node:bn,stylesheet:ct,useInlineStyles:qt,key:"code-segment-".concat(dn,"-").concat(gn)})})}}function Oe(ct){var qt=ct.node,dn=ct.stylesheet,kt=ct.style,bn=kt===void 0?{}:kt,gn=ct.useInlineStyles,Zn=ct.key,Gt=qt.properties,Rt=qt.type,tn=qt.tagName,zn=qt.value;if(Rt==="text")return zn;if(tn){var Yn=It(dn,gn),nt;if(!gn)nt=Ge(Ge({},Gt),{},{className:Je(Gt.className)});else{var Be=Object.keys(dn).reduce(function(Fe,St){return St.split(".").forEach(function(hn){Fe.includes(hn)||Fe.push(hn)}),Fe},[]),Re=Gt.className&&Gt.className.includes("token")?["token"]:[],Ze=Gt.className&&Re.concat(Gt.className.filter(function(Fe){return!Be.includes(Fe)}));nt=Ge(Ge({},Gt),{},{className:Je(Ze)||void 0,style:mt(Gt.className,Object.assign({},Gt.style,bn),dn)})}var st=Yn(qt.children);return Ie.createElement(tn,(0,je.Z)({key:Zn},nt),st)}}var te=function(ct,qt){var dn=ct.listLanguages();return dn.indexOf(qt)!==-1},ee=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(ct,qt){var dn=Object.keys(ct);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(ct);qt&&(kt=kt.filter(function(bn){return Object.getOwnPropertyDescriptor(ct,bn).enumerable})),dn.push.apply(dn,kt)}return dn}function ue(ct){for(var qt=1;qt<arguments.length;qt++){var dn=arguments[qt]!=null?arguments[qt]:{};qt%2?he(Object(dn),!0).forEach(function(kt){(0,ke.Z)(ct,kt,dn[kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(dn)):he(Object(dn)).forEach(function(kt){Object.defineProperty(ct,kt,Object.getOwnPropertyDescriptor(dn,kt))})}return ct}var fe=/\n/g;function me(ct){return ct.match(fe)}function be(ct){var qt=ct.lines,dn=ct.startingLineNumber,kt=ct.style;return qt.map(function(bn,gn){var Zn=gn+dn;return Ie.createElement("span",{key:"line-".concat(gn),className:"react-syntax-highlighter-line-number",style:typeof kt=="function"?kt(Zn):kt},"".concat(Zn,`
`))})}function Ae(ct){var qt=ct.codeString,dn=ct.codeStyle,kt=ct.containerStyle,bn=kt===void 0?{float:"left",paddingRight:"10px"}:kt,gn=ct.numberStyle,Zn=gn===void 0?{}:gn,Gt=ct.startingLineNumber;return Ie.createElement("code",{style:Object.assign({},dn,bn)},be({lines:qt.replace(/\n$/,"").split(`
`),style:Zn,startingLineNumber:Gt}))}function De(ct){return"".concat(ct.toString().length,".25em")}function Ye(ct,qt){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ct),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:qt},children:[{type:"text",value:ct}]}}function rt(ct,qt,dn){var kt={display:"inline-block",minWidth:De(dn),paddingRight:"1em",textAlign:"right",userSelect:"none"},bn=typeof ct=="function"?ct(qt):ct,gn=ue(ue({},kt),bn);return gn}function $e(ct){var qt=ct.children,dn=ct.lineNumber,kt=ct.lineNumberStyle,bn=ct.largestLineNumber,gn=ct.showInlineLineNumbers,Zn=ct.lineProps,Gt=Zn===void 0?{}:Zn,Rt=ct.className,tn=Rt===void 0?[]:Rt,zn=ct.showLineNumbers,Yn=ct.wrapLongLines,nt=ct.wrapLines,Be=nt===void 0?!1:nt,Re=Be?ue({},typeof Gt=="function"?Gt(dn):Gt):{};if(Re.className=Re.className?[].concat((0,Ce.Z)(Re.className.trim().split(/\s+/)),(0,Ce.Z)(tn)):tn,dn&&gn){var Ze=rt(kt,dn,bn);qt.unshift(Ye(dn,Ze))}return Yn&zn&&(Re.style=ue({display:"flex"},Re.style)),{type:"element",tagName:"span",properties:Re,children:qt}}function at(ct){for(var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],kt=0;kt<ct.length;kt++){var bn=ct[kt];if(bn.type==="text")dn.push($e({children:[bn],className:(0,Ce.Z)(new Set(qt))}));else if(bn.children){var gn=qt.concat(bn.properties.className);at(bn.children,gn).forEach(function(Zn){return dn.push(Zn)})}}return dn}function ht(ct,qt,dn,kt,bn,gn,Zn,Gt,Rt){var tn,zn=at(ct.value),Yn=[],nt=-1,Be=0;function Re(or,jt){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return $e({children:or,lineNumber:jt,lineNumberStyle:Gt,largestLineNumber:Zn,showInlineLineNumbers:bn,lineProps:dn,className:Ut,showLineNumbers:kt,wrapLongLines:Rt,wrapLines:qt})}function Ze(or,jt){if(kt&&jt&&bn){var Ut=rt(Gt,jt,Zn);or.unshift(Ye(jt,Ut))}return or}function st(or,jt){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return qt||Ut.length>0?Re(or,jt,Ut):Ze(or,jt)}for(var Fe=function(){var jt=zn[Be],Ut=jt.children[0].value,Qt=me(Ut);if(Qt){var En=Ut.split(`
`);En.forEach(function(Mn,Tn){var Ht=kt&&Yn.length+gn,Vn={type:"text",value:"".concat(Mn,`
`)};if(Tn===0){var Xt=zn.slice(nt+1,Be).concat($e({children:[Vn],className:jt.properties.className})),nn=st(Xt,Ht);Yn.push(nn)}else if(Tn===En.length-1){var fn=zn[Be+1]&&zn[Be+1].children&&zn[Be+1].children[0],Gn={type:"text",value:"".concat(Mn)};if(fn){var cn=$e({children:[Gn],className:jt.properties.className});zn.splice(Be+1,0,cn)}else{var Et=[Gn],Jn=st(Et,Ht,jt.properties.className);Yn.push(Jn)}}else{var ir=[Vn],Wt=st(ir,Ht,jt.properties.className);Yn.push(Wt)}}),nt=Be}Be++};Be<zn.length;)Fe();if(nt!==zn.length-1){var St=zn.slice(nt+1,zn.length);if(St&&St.length){var hn=kt&&Yn.length+gn,On=st(St,hn);Yn.push(On)}}return qt?Yn:(tn=[]).concat.apply(tn,Yn)}function ot(ct){var qt=ct.rows,dn=ct.stylesheet,kt=ct.useInlineStyles;return qt.map(function(bn,gn){return Oe({node:bn,stylesheet:dn,useInlineStyles:kt,key:"code-segement".concat(gn)})})}function vt(ct){return ct&&typeof ct.highlightAuto!="undefined"}function xt(ct){var qt=ct.astGenerator,dn=ct.language,kt=ct.code,bn=ct.defaultCodeValue;if(vt(qt)){var gn=te(qt,dn);return dn==="text"?{value:bn,language:"text"}:gn?qt.highlight(dn,kt):qt.highlightAuto(kt)}try{return dn&&dn!=="text"?{value:qt.highlight(kt,dn)}:{value:bn}}catch(Zn){return{value:bn}}}function Tt(ct,qt){return function(kt){var bn=kt.language,gn=kt.children,Zn=kt.style,Gt=Zn===void 0?qt:Zn,Rt=kt.customStyle,tn=Rt===void 0?{}:Rt,zn=kt.codeTagProps,Yn=zn===void 0?{className:bn?"language-".concat(bn):void 0,style:ue(ue({},Gt['code[class*="language-"]']),Gt['code[class*="language-'.concat(bn,'"]')])}:zn,nt=kt.useInlineStyles,Be=nt===void 0?!0:nt,Re=kt.showLineNumbers,Ze=Re===void 0?!1:Re,st=kt.showInlineLineNumbers,Fe=st===void 0?!0:st,St=kt.startingLineNumber,hn=St===void 0?1:St,On=kt.lineNumberContainerStyle,or=kt.lineNumberStyle,jt=or===void 0?{}:or,Ut=kt.wrapLines,Qt=kt.wrapLongLines,En=Qt===void 0?!1:Qt,Mn=kt.lineProps,Tn=Mn===void 0?{}:Mn,Ht=kt.renderer,Vn=kt.PreTag,Xt=Vn===void 0?"pre":Vn,nn=kt.CodeTag,fn=nn===void 0?"code":nn,Gn=kt.code,cn=Gn===void 0?(Array.isArray(gn)?gn[0]:gn)||"":Gn,Et=kt.astGenerator,Jn=(0,oe.Z)(kt,ee);Et=Et||ct;var ir=Ze?Ie.createElement(Ae,{containerStyle:On,codeStyle:Yn.style||{},numberStyle:jt,startingLineNumber:hn,codeString:cn}):null,Wt=Gt.hljs||Gt['pre[class*="language-"]']||{backgroundColor:"#fff"},wr=vt(Et)?"hljs":"prismjs",ei=Be?Object.assign({},Jn,{style:Object.assign({},Wt,tn)}):Object.assign({},Jn,{className:Jn.className?"".concat(wr," ").concat(Jn.className):wr,style:Object.assign({},tn)});if(En?Yn.style=ue({whiteSpace:"pre-wrap"},Yn.style):Yn.style=ue({whiteSpace:"pre"},Yn.style),!Et)return Ie.createElement(Xt,ei,ir,Ie.createElement(fn,Yn,cn));(Ut===void 0&&Ht||En)&&(Ut=!0),Ht=Ht||ot;var Fr=[{type:"text",value:cn}],Dn=xt({astGenerator:Et,language:bn,code:cn,defaultCodeValue:Fr});Dn.language===null&&(Dn.value=Fr);var ii=Dn.value.length;ii===1&&Dn.value[0].type==="text"&&(ii=Dn.value[0].value.split(`
`).length);var Kr=ii+hn,cr=ht(Dn,Ut,Tn,Ze,Fe,hn,Kr,jt,En);return Ie.createElement(Xt,ei,Ie.createElement(fn,Yn,!Fe&&ir,Ht({rows:cr,stylesheet:Gt,useInlineStyles:Be})))}}var _t={'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"}},Jt=ae(11594),Zt=ae.n(Jt),vn=["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"],bt=Tt(Zt(),_t);bt.supportedLanguages=vn;var ft=bt},14179:function(He,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(He,Ee,ae){"use strict";ae(84126);var oe=ae(59301),Ce=60103;if(Ee.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var ke=Symbol.for;Ce=ke("react.element"),Ee.Fragment=ke("react.fragment")}var Ie=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,je=Object.prototype.hasOwnProperty,Te={key:!0,ref:!0,__self:!0,__source:!0};function Ge(lt,Qe,Ue){var mt,Je={},It=null,Oe=null;Ue!==void 0&&(It=""+Ue),Qe.key!==void 0&&(It=""+Qe.key),Qe.ref!==void 0&&(Oe=Qe.ref);for(mt in Qe)je.call(Qe,mt)&&!Te.hasOwnProperty(mt)&&(Je[mt]=Qe[mt]);if(lt&&lt.defaultProps)for(mt in Qe=lt.defaultProps,Qe)Je[mt]===void 0&&(Je[mt]=Qe[mt]);return{$$typeof:Ce,type:lt,key:It,ref:Oe,props:Je,_owner:Ie.current}}Ee.jsx=Ge,Ee.jsxs=Ge},37712:function(He,Ee,ae){"use strict";He.exports=ae(19524)},95489:function(He,Ee,ae){"use strict";var oe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ae.g=="object"?ae.g:{},Ce=Ae();oe.Prism={manual:!0,disableWorkerMessageHandler:!0};var ke=ae(43621),Ie=ae(12256),je=ae(68398),Te=ae(70614),Ge=ae(54212),lt=ae(9720),Qe=ae(88786);Ce();var Ue={}.hasOwnProperty;function mt(){}mt.prototype=je;var Je=new mt;He.exports=Je,Je.highlight=te,Je.register=It,Je.alias=Oe,Je.registered=ee,Je.listLanguages=he,It(Te),It(Ge),It(lt),It(Qe),Je.util.encode=me,Je.Token.stringify=ue;function It(De){if(typeof De!="function"||!De.displayName)throw new Error("Expected `function` for `grammar`, got `"+De+"`");Je.languages[De.displayName]===void 0&&De(Je)}function Oe(De,Ye){var rt=Je.languages,$e=De,at,ht,ot,vt;Ye&&($e={},$e[De]=Ye);for(at in $e)for(ht=$e[at],ht=typeof ht=="string"?[ht]:ht,ot=ht.length,vt=-1;++vt<ot;)rt[ht[vt]]=rt[at]}function te(De,Ye){var rt=je.highlight,$e;if(typeof De!="string")throw new Error("Expected `string` for `value`, got `"+De+"`");if(Je.util.type(Ye)==="Object")$e=Ye,Ye=null;else{if(typeof Ye!="string")throw new Error("Expected `string` for `name`, got `"+Ye+"`");if(Ue.call(Je.languages,Ye))$e=Je.languages[Ye];else throw new Error("Unknown language: `"+Ye+"` is not registered")}return rt.call(this,De,$e,Ye)}function ee(De){if(typeof De!="string")throw new Error("Expected `string` for `language`, got `"+De+"`");return Ue.call(Je.languages,De)}function he(){var De=Je.languages,Ye=[],rt;for(rt in De)Ue.call(De,rt)&&typeof De[rt]=="object"&&Ye.push(rt);return Ye}function ue(De,Ye,rt){var $e;return typeof De=="string"?{type:"text",value:De}:Je.util.type(De)==="Array"?fe(De,Ye):($e={type:De.type,content:Je.Token.stringify(De.content,Ye,rt),tag:"span",classes:["token",De.type],attributes:{},language:Ye,parent:rt},De.alias&&($e.classes=$e.classes.concat(De.alias)),Je.hooks.run("wrap",$e),ke($e.tag+"."+$e.classes.join("."),be($e.attributes),$e.content))}function fe(De,Ye){for(var rt=[],$e=De.length,at=-1,ht;++at<$e;)ht=De[at],ht!==""&&ht!==null&&ht!==void 0&&rt.push(ht);for(at=-1,$e=rt.length;++at<$e;)ht=rt[at],rt[at]=Je.Token.stringify(ht,Ye,rt);return rt}function me(De){return De}function be(De){var Ye;for(Ye in De)De[Ye]=Ie(De[Ye]);return De}function Ae(){var De="Prism"in oe,Ye=De?oe.Prism:void 0;return rt;function rt(){De?oe.Prism=Ye:delete oe.Prism,De=void 0,Ye=void 0}}},11594:function(He,Ee,ae){"use strict";var oe=ae(95489);He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="abnf",Ee.aliases=[];function Ee(ae){(function(oe){var Ce="(?: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-])"+Ce+"|<"+Ce+">)(?![\\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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(69435);He.exports=Ce,Ce.displayName="apex",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var je=/\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 je.source});function Ge(Qe){return RegExp(Qe.replace(/<CLASS-NAME>/g,function(){return Te}),"i")}var lt={keyword:je,punctuation:/[()\[\]{};,:.<>]/};Ie.languages.apex={comment:Ie.languages.clike.comment,string:Ie.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Ie.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ge(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:lt},{pattern:Ge(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:lt},{pattern:Ge(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:lt}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:je,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:/[()\[\]{};,.]/}}(ke)}},4248:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(87071);He.exports=Ce,Ce.displayName="arduino",Ce.aliases=["ino"];function Ce(ke){ke.register(oe),ke.languages.arduino=ke.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/}),ke.languages.ino=ke.languages.arduino}},22956:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="asciidoc",Ee.aliases=["adoc"];function Ee(ae){(function(oe){var Ce={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+$).+/}},ke=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:Ce,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:Ce.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:Ce,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function Ie(je){je=je.split(" ");for(var Te={},Ge=0,lt=je.length;Ge<lt;Ge++)Te[je[Ge]]=ke[je[Ge]];return Te}Ce.inside.interpreted.inside.rest=Ie("macro inline replacement entity"),ke["passthrough-block"].inside.rest=Ie("macro"),ke["literal-block"].inside.rest=Ie("callout"),ke.table.inside.rest=Ie("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),ke["other-block"].inside.rest=Ie("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),ke.title.inside.rest=Ie("macro inline replacement entity"),oe.hooks.add("wrap",function(je){je.type==="entity"&&(je.attributes.title=je.content.value.replace(/&amp;/,"&"))}),oe.languages.adoc=oe.languages.asciidoc})(ae)}},45652:function(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(87648);He.exports=Ce,Ce.displayName="aspnet",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.aspnet=ke.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:ke.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:ke.languages.csharp}}}),ke.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,ke.languages.insertBefore("inside","punctuation",{directive:ke.languages.aspnet.directive},ke.languages.aspnet.tag.inside["attr-value"]),ke.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),ke.languages.insertBefore("aspnet",ke.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:ke.languages.csharp||{}}})}},20803:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="avisynth",Ee.aliases=["avs"];function Ee(ae){(function(oe){function Ce(Qe,Ue){return Qe.replace(/<<(\d+)>>/g,function(mt,Je){return Ue[+Je]})}function ke(Qe,Ue,mt){return RegExp(Ce(Qe,Ue),mt||"")}var Ie=/bool|clip|float|int|string|val/.source,je=[/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("|"),Ge=[/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("|"),lt=[je,Te,Ge].join("|");oe.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:ke(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Ie],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:ke(/\b(?:<<0>>)\b/.source,[lt],"i"),alias:"function"},"type-cast":{pattern:ke(/\b(?:<<0>>)(?=\s*\()/.source,[Ie],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},oe.languages.avs=oe.languages.avisynth})(ae)}},79571:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="bash",Ee.aliases=["shell"];function Ee(ae){(function(oe){var Ce="\\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",ke={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Ie={bash:ke,environment:{pattern:RegExp("\\$"+Ce),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("(\\{)"+Ce),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;|&]|[<>]\\()"+Ce),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Ie},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:ke}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Ie},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Ie.entity}}],environment:{pattern:RegExp("\\$?"+Ce),alias:"constant"},variable:Ie.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},ke.inside=oe.languages.bash;for(var je=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Te=Ie.variable[1].inside,Ge=0;Ge<je.length;Ge++)Te[je[Ge]]=oe.languages.bash[je[Ge]];oe.languages.shell=oe.languages.bash})(ae)}},51422:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="batch",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/%%?[~:\w]+%?|!\S+!/,ke={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Ie=/"(?:[\\"]"|[^"])*"(?!")/,je=/(?:\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:Ie,parameter:ke,variable:Ce,number:je,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:Ie,parameter:ke,variable:Ce,number:je,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:Ie,parameter:ke,variable:[Ce,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:je,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Ie,parameter:ke,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Ce,number:je,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ae)}},2505:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(79440);He.exports=Ce,Ce.displayName="bison",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.bison=ke.languages.extend("c",{}),ke.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:ke.languages.c}},comment:ke.languages.c.comment,string:ke.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(87071);He.exports=Ce,Ce.displayName="chaiscript",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.chaiscript=ke.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:[ke.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),ke.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),ke.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:ke.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="coffeescript",Ee.aliases=["coffee"];function Ee(ae){(function(oe){var Ce=/#(?!\{).+/,ke={pattern:/#\{[^}]+\}/,alias:"variable"};oe.languages.coffeescript=oe.languages.extend("javascript",{comment:Ce,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:ke}}],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:Ce,interpolation:ke}}}),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:ke}}]}),oe.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete oe.languages.coffeescript["template-string"],oe.languages.coffee=oe.languages.coffeescript})(ae)}},35348:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="coq",Ee.aliases=[];function Ee(ae){(function(oe){for(var Ce=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,ke=0;ke<2;ke++)Ce=Ce.replace(/<self>/g,function(){return Ce});Ce=Ce.replace(/<self>/g,"[]"),oe.languages.coq={comment:RegExp(Ce),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Ce})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Ce),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(He,Ee,ae){"use strict";var oe=ae(79440);He.exports=Ce,Ce.displayName="cpp",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var je=/\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 je.source});Ie.languages.cpp=Ie.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return je.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:je,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),Ie.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Te})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Ie.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Ie.languages.cpp}}}}),Ie.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Ie.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Ie.languages.extend("cpp",{})}}),Ie.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Ie.languages.cpp["base-clause"])}(ke)}},13652:function(He,Ee,ae){"use strict";var oe=ae(75308);He.exports=Ce,Ce.displayName="crystal",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.crystal=Ie.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,Ie.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Ie.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:Ie.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Ie.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(ke)}},87648:function(He){"use strict";He.exports=Ee,Ee.displayName="csharp",Ee.aliases=["dotnet","cs"];function Ee(ae){(function(oe){function Ce(vn,bt){return vn.replace(/<<(\d+)>>/g,function(ft,ct){return"(?:"+bt[+ct]+")"})}function ke(vn,bt,ft){return RegExp(Ce(vn,bt),ft||"")}function Ie(vn,bt){for(var ft=0;ft<bt;ft++)vn=vn.replace(/<<self>>/g,function(){return"(?:"+vn+")"});return vn.replace(/<<self>>/g,"[^\\s\\S]")}var je={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(vn){return"\\b(?:"+vn.trim().replace(/ /g,"|")+")\\b"}var Ge=Te(je.typeDeclaration),lt=RegExp(Te(je.type+" "+je.typeDeclaration+" "+je.contextual+" "+je.other)),Qe=Te(je.typeDeclaration+" "+je.contextual+" "+je.other),Ue=Te(je.type+" "+je.typeDeclaration+" "+je.other),mt=Ie(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),Je=Ie(/\((?:[^()]|<<self>>)*\)/.source,2),It=/@?\b[A-Za-z_]\w*\b/.source,Oe=Ce(/<<0>>(?:\s*<<1>>)?/.source,[It,mt]),te=Ce(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Qe,Oe]),ee=/\[\s*(?:,\s*)*\]/.source,he=Ce(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ee]),ue=Ce(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[mt,Je,ee]),fe=Ce(/\(<<0>>+(?:,<<0>>+)+\)/.source,[ue]),me=Ce(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[fe,te,ee]),be={keyword:lt,punctuation:/[<>()?,.:[\]]/},Ae=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,De=/"(?:\\.|[^\\"\r\n])*"/.source,Ye=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;oe.languages.csharp=oe.languages.extend("clike",{string:[{pattern:ke(/(^|[^$\\])<<0>>/.source,[Ye]),lookbehind:!0,greedy:!0},{pattern:ke(/(^|[^@$\\])<<0>>/.source,[De]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:ke(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:be},{pattern:ke(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[It,me]),lookbehind:!0,inside:be},{pattern:ke(/(\busing\s+)<<0>>(?=\s*=)/.source,[It]),lookbehind:!0},{pattern:ke(/(\b<<0>>\s+)<<1>>/.source,[Ge,Oe]),lookbehind:!0,inside:be},{pattern:ke(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:be},{pattern:ke(/(\bwhere\s+)<<0>>/.source,[It]),lookbehind:!0},{pattern:ke(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:be},{pattern:ke(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[me,Ue,It]),inside:be}],keyword:lt,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:ke(/([(,]\s*)<<0>>(?=\s*:)/.source,[It]),lookbehind:!0,alias:"punctuation"}}),oe.languages.insertBefore("csharp","class-name",{namespace:{pattern:ke(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[It]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:ke(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[Je]),lookbehind:!0,alias:"class-name",inside:be},"return-type":{pattern:ke(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[me,te]),inside:be,alias:"class-name"},"constructor-invocation":{pattern:ke(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[me]),lookbehind:!0,inside:be,alias:"class-name"},"generic-method":{pattern:ke(/<<0>>\s*<<1>>(?=\s*\()/.source,[It,mt]),inside:{function:ke(/^<<0>>/.source,[It]),generic:{pattern:RegExp(mt),alias:"class-name",inside:be}}},"type-list":{pattern:ke(/\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,[Ge,Oe,It,me,lt.source,Je,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:ke(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Oe,Je]),lookbehind:!0,greedy:!0,inside:oe.languages.csharp},keyword:lt,"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 rt=De+"|"+Ae,$e=Ce(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[rt]),at=Ie(Ce(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$e]),2),ht=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ot=Ce(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,at]);oe.languages.insertBefore("csharp","class-name",{attribute:{pattern:ke(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ht,ot]),lookbehind:!0,greedy:!0,inside:{target:{pattern:ke(/^<<0>>(?=\s*:)/.source,[ht]),alias:"keyword"},"attribute-arguments":{pattern:ke(/\(<<0>>*\)/.source,[at]),inside:oe.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var vt=/:[^}\r\n]+/.source,xt=Ie(Ce(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$e]),2),Tt=Ce(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[xt,vt]),_t=Ie(Ce(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[rt]),2),Jt=Ce(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_t,vt]);function Zt(vn,bt){return{interpolation:{pattern:ke(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[vn]),lookbehind:!0,inside:{"format-string":{pattern:ke(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[bt,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:ke(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Tt]),lookbehind:!0,greedy:!0,inside:Zt(Tt,xt)},{pattern:ke(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Jt]),lookbehind:!0,greedy:!0,inside:Zt(Jt,_t)}],char:{pattern:RegExp(Ae),greedy:!0}}),oe.languages.dotnet=oe.languages.cs=oe.languages.csharp})(ae)}},10617:function(He,Ee,ae){"use strict";var oe=ae(87648);He.exports=Ce,Ce.displayName="cshtml",Ce.aliases=["razor"];function Ce(ke){ke.register(oe),function(Ie){var je=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Te=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ge(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,"(?:"+je+")")}var lt=Ge(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Qe=Ge(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Ue=Ge(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),mt=Ge(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),Je=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,It=/(?!\d)[^\s>\/=$<%]+/.source+Je+/\s*\/?>/.source,Oe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+Je+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+It+"|"+Ge(/<\1/.source+Je+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+It+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+It+")";Ie.languages.cshtml=Ie.languages.extend("markup",{});var te=Ie.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Oe),greedy:!0,inside:Ie.languages.cshtml}},{csharp:Ie.languages.extend("csharp",{})}),ee={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};Ie.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Ue,/(?:code|functions)\s*/.source+Ue,/(?:for|foreach|lock|switch|using|while)\s*/.source+lt+/\s*/.source+Ue,/do\s*/.source+Ue+/\s*while\s*/.source+lt+/(?:\s*;)?/.source,/try\s*/.source+Ue+/\s*catch\s*/.source+lt+/\s*/.source+Ue+/\s*finally\s*/.source+Ue,/if\s*/.source+lt+/\s*/.source+Ue+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+lt+")?"+/\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+"|"+lt+")(?:"+/[?!]?\.\w+\b/.source+"|"+lt+"|"+Qe+"|"+mt+lt+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ee}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Ie.languages.razor=Ie.languages.cshtml}(ke)}},5348:function(He){"use strict";He.exports=Ee,Ee.displayName="csp",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(ke){return RegExp(/([ \t])/.source+"(?:"+ke+")"+/(?=[\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:Ce(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Ce(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Ce(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Ce(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Ce(/[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:Ce(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Ce(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(ae)}},71053:function(He){"use strict";He.exports=Ee,Ee.displayName="cssExtras",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,ke;oe.languages.css.selector={pattern:oe.languages.css.selector.pattern,lookbehind:!0,inside:ke={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Ce.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":[Ce,{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=ke,oe.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Ie={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},je={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:Ie,number:je,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ie,number:je})})(ae)}},54212:function(He){"use strict";He.exports=Ee,Ee.displayName="css",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/(?:"(?:\\(?:\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\\((?:"+Ce.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ce.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Ce.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ce,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 ke=oe.languages.markup;ke&&(ke.tag.addInlined("style","css"),ke.tag.addAttribute("style","css"))})(ae)}},69820:function(He){"use strict";He.exports=Ee,Ee.displayName="csv",Ee.aliases=[];function Ee(ae){ae.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="dart",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=[/\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/],ke=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(ke+/[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":[Ie,{pattern:RegExp(ke+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Ce,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":Ie,keyword:Ce,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ae)}},22117:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="diff",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Ce={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Ce).forEach(function(ke){var Ie=Ce[ke],je=[];/^\w+$/.test(ke)||je.push(/\w+/.exec(ke)[0]),ke==="diff"&&je.push("bold"),oe.languages.diff[ke]={pattern:RegExp("^(?:["+Ie+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:je,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(ke)[0]}}}}),Object.defineProperty(oe.languages.diff,"PREFIXES",{value:Ce})})(ae)}},32126:function(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="django",Ce.aliases=["jinja2"];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var je=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Te=Ie.languages["markup-templating"];Ie.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"django",je)}),Ie.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"django")}),Ie.languages.jinja2=Ie.languages.django,Ie.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"jinja2",je)}),Ie.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"jinja2")})}(ke)}},26737:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="docker",Ee.aliases=["dockerfile"];function Ee(ae){(function(oe){var Ce=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,ke=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Ce}),Ie=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,je=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Ie}),Te={pattern:RegExp(Ie),greedy:!0},Ge={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function lt(Qe,Ue){return Qe=Qe.replace(/<OPT>/g,function(){return je}).replace(/<SP>/g,function(){return ke}),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:lt(/(^(?: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:lt(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:lt(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:lt(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ge,string:Te,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Ge},oe.languages.dockerfile=oe.languages.docker})(ae)}},51348:function(He){"use strict";He.exports=Ee,Ee.displayName="dot",Ee.aliases=["gv"];function Ee(ae){(function(oe){var Ce="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",ke={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:oe.languages.markup}};function Ie(je,Te){return RegExp(je.replace(/<ID>/g,function(){return Ce}),Te)}oe.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Ie(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:ke},"attr-value":{pattern:Ie(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:ke},"attr-name":{pattern:Ie(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:ke},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Ie(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:ke},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},oe.languages.gv=oe.languages.dot})(ae)}},60841:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="ejs",Ce.aliases=["eta"];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Ie.languages.javascript}},Ie.hooks.add("before-tokenize",function(je){var Te=/<%(?!%)[\s\S]+?%>/g;Ie.languages["markup-templating"].buildPlaceholders(je,"ejs",Te)}),Ie.hooks.add("after-tokenize",function(je){Ie.languages["markup-templating"].tokenizePlaceholders(je,"ejs")}),Ie.languages.eta=Ie.languages.ejs}(ke)}},83125:function(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(75308),Ce=ae(51478);He.exports=ke,ke.displayName="erb",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(je){je.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:je.languages.ruby}},je.hooks.add("before-tokenize",function(Te){var Ge=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;je.languages["markup-templating"].buildPlaceholders(Te,"erb",Ge)}),je.hooks.add("after-tokenize",function(Te){je.languages["markup-templating"].tokenizePlaceholders(Te,"erb")})}(Ie)}},86549:function(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(33978),Ce=ae(51478);He.exports=ke,ke.displayName="etlua",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(je){je.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:je.languages.lua}},je.hooks.add("before-tokenize",function(Te){var Ge=/<%[\s\S]+?%>/g;je.languages["markup-templating"].buildPlaceholders(Te,"etlua",Ge)}),je.hooks.add("after-tokenize",function(Te){je.languages["markup-templating"].tokenizePlaceholders(Te,"etlua")})}(Ie)}},59250:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="factor",Ee.aliases=[];function Ee(ae){(function(oe){var Ce={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},ke={number:/\\[^\s']|%\w/},Ie={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Ce},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ce},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ce}],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:ke.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:ke},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:ke}],"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:ke}},je=function(Qe){return(Qe+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Te=function(Qe){return new RegExp("(^|\\s)(?:"+Qe.map(je).join("|")+")(?=\\s|$)")},Ge={"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(Ge).forEach(function(Qe){Ie[Qe].pattern=Te(Ge[Qe])});var lt=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];Ie.combinators.pattern=Te(lt),oe.languages.factor=Ie})(ae)}},65245:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="ftl",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){for(var je=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Te=0;Te<2;Te++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var Ge={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return je})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return je})),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:/[,;.:()[\]{}]/};Ge.string[1].inside.interpolation.inside.rest=Ge,Ie.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}}},Ie.hooks.add("before-tokenize",function(lt){var Qe=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return je}),"gi");Ie.languages["markup-templating"].buildPlaceholders(lt,"ftl",Qe)}),Ie.hooks.add("after-tokenize",function(lt){Ie.languages["markup-templating"].tokenizePlaceholders(lt,"ftl")})}(ke)}},33534:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="gherkin",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/(?:\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("("+Ce+")(?:"+Ce+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Ce),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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(79440);He.exports=Ce,Ce.displayName="glsl",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.glsl=ke.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(Ce){if(Ce.language!=="graphql")return;var ke=Ce.tokens.filter(function(ee){return typeof ee!="string"&&ee.type!=="comment"&&ee.type!=="scalar"}),Ie=0;function je(ee){return ke[Ie+ee]}function Te(ee,he){he=he||0;for(var ue=0;ue<ee.length;ue++){var fe=je(ue+he);if(!fe||fe.type!==ee[ue])return!1}return!0}function Ge(ee,he){for(var ue=1,fe=Ie;fe<ke.length;fe++){var me=ke[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 lt(ee,he){var ue=ee.alias;ue?Array.isArray(ue)||(ee.alias=ue=[ue]):ee.alias=ue=[],ue.push(he)}for(;Ie<ke.length;){var Qe=ke[Ie++];if(Qe.type==="keyword"&&Qe.content==="mutation"){var Ue=[];if(Te(["definition-mutation","punctuation"])&&je(1).content==="("){Ie+=2;var mt=Ge(/^\($/,/^\)$/);if(mt===-1)continue;for(;Ie<mt;Ie++){var Je=je(0);Je.type==="variable"&&(lt(Je,"variable-input"),Ue.push(Je.content))}Ie=mt+1}if(Te(["punctuation","property-query"])&&je(0).content==="{"&&(Ie++,lt(je(0),"property-mutation"),Ue.length>0)){var It=Ge(/^\{$/,/^\}$/);if(It===-1)continue;for(var Oe=Ie;Oe<It;Oe++){var te=ke[Oe];te.type==="variable"&&Ue.indexOf(te.content)>=0&&lt(te,"variable-input")}}}}})}},63092:function(He){"use strict";He.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 Ce=oe.content.value[0];if(Ce!="'"){var ke=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Ce==="$"&&(ke=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),oe.content.value=oe.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),oe.content=ae.highlight(oe.content.value,{expression:{pattern:ke,lookbehind:!0,inside:ae.languages.groovy}}),oe.classes.push(Ce==="/"?"regex":"gstring")}}})}},21550:function(He,Ee,ae){"use strict";var oe=ae(75308);He.exports=Ce,Ce.displayName="haml",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:Ie.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Ie.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:Ie.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:Ie.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Ie.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Ie.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Ie.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var je="((?:^|\\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"],Ge={},lt=0,Qe=Te.length;lt<Qe;lt++){var Ue=Te[lt];Ue=typeof Ue=="string"?{filter:Ue,language:Ue}:Ue,Ie.languages[Ue.language]&&(Ge["filter-"+Ue.filter]={pattern:RegExp(je.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:Ie.languages[Ue.language]}}})}Ie.languages.insertBefore("haml","filter",Ge)}(ke)}},29710:function(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="handlebars",Ce.aliases=["hbs"];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},Ie.hooks.add("before-tokenize",function(je){var Te=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Ie.languages["markup-templating"].buildPlaceholders(je,"handlebars",Te)}),Ie.hooks.add("after-tokenize",function(je){Ie.languages["markup-templating"].tokenizePlaceholders(je,"handlebars")}),Ie.languages.hbs=Ie.languages.handlebars}(ke)}},2050:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(79440);He.exports=Ce,Ce.displayName="hlsl",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.hlsl=ke.languages.extend("c",{"class-name":[ke.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="http",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(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:Ce(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:oe.languages.csp},{pattern:Ce(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:oe.languages.hpkp},{pattern:Ce(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:oe.languages.hsts},{pattern:Ce(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var ke=oe.languages,Ie={"application/javascript":ke.javascript,"application/json":ke.json||ke.javascript,"application/xml":ke.xml,"text/xml":ke.xml,"text/html":ke.html,"text/css":ke.css,"text/plain":ke.plain},je={"application/json":!0,"application/xml":!0};function Te(Ue){var mt=Ue.replace(/^[a-z]+\//,""),Je="\\w+/(?:[\\w.-]+\\+)+"+mt+"(?![+\\w.-])";return"(?:"+Ue+"|"+Je+")"}var Ge;for(var lt in Ie)if(Ie[lt]){Ge=Ge||{};var Qe=je[lt]?Te(lt):lt;Ge[lt.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Qe+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Ie[lt]}}Ge&&oe.languages.insertBefore("http","header",Ge)})(ae)}},72252:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="icuMessageFormat",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(lt,Qe){return Qe<=0?/[]/.source:lt.replace(/<SELF>/g,function(){return Ce(lt,Qe-1)})}var ke=/'[{}:=,](?:[^']|'')*'(?!')/,Ie={pattern:/''/,greedy:!0,alias:"operator"},je={pattern:ke,greedy:!0,inside:{escape:Ie}},Te=Ce(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return ke.source}),8),Ge={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":Ge,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":Ge,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+Ce(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Ie,string:je},Ge.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(He,Ee,ae){"use strict";var oe=ae(2050);He.exports=Ce,Ce.displayName="idris",Ce.aliases=["idr"];function Ce(ke){ke.register(oe),ke.languages.idris=ke.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}),ke.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),ke.languages.idr=ke.languages.idris}},74494:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="java",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\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/,ke=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(ke+/[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":[Ie,{pattern:RegExp(ke+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Ce,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":Ie,keyword:Ce,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 Ce.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(ae)}},4005:function(He,Ee,ae){"use strict";var oe=ae(7093),Ce=ae(53510);He.exports=ke,ke.displayName="javadoc",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(je){var Te=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ge=/#\s*\w+(?:\s*\([^()]*\))?/.source,lt=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Ge});je.languages.javadoc=je.languages.extend("javadoclike",{}),je.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+lt+")"),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:je.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:je.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:je.languages.markup.tag,entity:je.languages.markup.entity,code:{pattern:/.+/,inside:je.languages.java,alias:"language-java"}}}}}],tag:je.languages.markup.tag,entity:je.languages.markup.entity}),je.languages.javadoclike.addSupport("java",je.languages.javadoc)}(Ie)}},53510:function(He){"use strict";He.exports=Ee,Ee.displayName="javadoclike",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=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 ke(je,Te){var Ge="doc-comment",lt=oe.languages[je];if(lt){var Qe=lt[Ge];if(!Qe){var Ue={};Ue[Ge]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},lt=oe.languages.insertBefore(je,"comment",Ue),Qe=lt[Ge]}if(Qe instanceof RegExp&&(Qe=lt[Ge]={pattern:Qe}),Array.isArray(Qe))for(var mt=0,Je=Qe.length;mt<Je;mt++)Qe[mt]instanceof RegExp&&(Qe[mt]={pattern:Qe[mt]}),Te(Qe[mt]);else Te(Qe)}}function Ie(je,Te){typeof je=="string"&&(je=[je]),je.forEach(function(Ge){ke(Ge,function(lt){lt.inside||(lt.inside={}),lt.inside.rest=Te})})}Object.defineProperty(Ce,"addSupport",{value:Ie}),Ce.addSupport(["java","javascript","php"],Ce)})(ae)}},88786:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="jq",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\\\((?:[^()]|\([^()]*\))*\)/.source,ke=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Ce})),Ie={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Ce),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},je=oe.languages.jq={comment:/#.*/,property:{pattern:RegExp(ke.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Ie},string:{pattern:ke,lookbehind:!0,greedy:!0,inside:Ie},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};Ie.interpolation.inside.content.inside=je})(ae)}},89246:function(He){"use strict";He.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 Ce(lt,Qe){return RegExp(lt.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Qe)}oe.languages.insertBefore("javascript","keyword",{imports:{pattern:Ce(/(\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:Ce(/(\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:Ce(/(\.\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 ke=["function","function-variable","method","method-variable","property-access"],Ie=0;Ie<ke.length;Ie++){var je=ke[Ie],Te=oe.languages.javascript[je];oe.util.type(Te)==="RegExp"&&(Te=oe.languages.javascript[je]={pattern:Te});var Ge=Te.inside||{};Te.inside=Ge,Ge["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ae)}},487:function(He){"use strict";He.exports=Ee,Ee.displayName="jsTemplates",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=oe.languages.javascript["template-string"],ke=Ce.pattern.source,Ie=Ce.inside.interpolation,je=Ie.inside["interpolation-punctuation"],Te=Ie.pattern.source;function Ge(Oe,te){if(oe.languages[Oe])return{pattern:RegExp("((?:"+te+")\\s*)"+ke),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Oe}}}}oe.languages.javascript["template-string"]=[Ge("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Ge("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Ge("svg",/\bsvg/.source),Ge("markdown",/\b(?:markdown|md)/.source),Ge("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Ge("sql",/\bsql/.source),Ce].filter(Boolean);function lt(Oe,te){return"___"+te.toUpperCase()+"_"+Oe+"___"}function Qe(Oe,te,ee){var he={code:Oe,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(Oe){var te={};te["interpolation-punctuation"]=je;var ee=oe.tokenize(Oe,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,Ie.alias,Oe)}function mt(Oe,te,ee){var he=oe.tokenize(Oe,{interpolation:{pattern:RegExp(Te),lookbehind:!0}}),ue=0,fe={},me=he.map(function(Ye){if(typeof Ye=="string")return Ye;for(var rt=Ye.content,$e;Oe.indexOf($e=lt(ue++,ee))!==-1;);return fe[$e]=rt,$e}).join(""),be=Qe(me,te,ee),Ae=Object.keys(fe);ue=0;function De(Ye){for(var rt=0;rt<Ye.length;rt++){if(ue>=Ae.length)return;var $e=Ye[rt];if(typeof $e=="string"||typeof $e.content=="string"){var at=Ae[ue],ht=typeof $e=="string"?$e:$e.content,ot=ht.indexOf(at);if(ot!==-1){++ue;var vt=ht.substring(0,ot),xt=Ue(fe[at]),Tt=ht.substring(ot+at.length),_t=[];if(vt&&_t.push(vt),_t.push(xt),Tt){var Jt=[Tt];De(Jt),_t.push.apply(_t,Jt)}typeof $e=="string"?(Ye.splice.apply(Ye,[rt,1].concat(_t)),rt+=_t.length-1):$e.content=_t}}else{var Zt=$e.content;Array.isArray(Zt)?De(Zt):De([Zt])}}}return De(be),new oe.Token(ee,be,"language-"+ee,Oe)}var Je={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};oe.hooks.add("after-tokenize",function(Oe){if(!(Oe.language in Je))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=It(be),De=be.alias,Ye=Array.isArray(De)?De[0]:De,rt=oe.languages[Ye];if(!rt)continue;me[1]=mt(Ae,rt,Ye)}}else te(me)}}}te(Oe.tokens)});function It(Oe){return typeof Oe=="string"?Oe:Array.isArray(Oe)?Oe.map(It).join(""):It(Oe.content)}})(ae)}},79539:function(He,Ee,ae){"use strict";var oe=ae(53510),Ce=ae(92784);He.exports=ke,ke.displayName="jsdoc",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(je){var Te=je.languages.javascript,Ge=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,lt="(@(?:arg|argument|param|property)\\s+(?:"+Ge+"\\s+)?)";je.languages.jsdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp(lt+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),je.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(lt+/\[(?:(?!\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 Ge})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ge),lookbehind:!0,inside:{string:Te.string,number:Te.number,boolean:Te.boolean,keyword:je.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"}}}}),je.languages.javadoclike.addSupport("javascript",je.languages.jsdoc)}(Ie)}},15628:function(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(15628);He.exports=Ce,Ce.displayName="json5",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var je=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Ie.languages.json5=Ie.languages.extend("json",{property:[{pattern:RegExp(je.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:je,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(ke)}},73222:function(He,Ee,ae){"use strict";var oe=ae(15628);He.exports=Ce,Ce.displayName="jsonp",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.jsonp=ke.languages.extend("json",{punctuation:/[{}[\]();,.]/}),ke.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="jsx",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=oe.util.clone(oe.languages.javascript),ke=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Ie=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,je=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Te(Qe,Ue){return Qe=Qe.replace(/<S>/g,function(){return ke}).replace(/<BRACES>/g,function(){return Ie}).replace(/<SPREAD>/g,function(){return je}),RegExp(Qe,Ue)}je=Te(je).source,oe.languages.jsx=oe.languages.extend("markup",Ce),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=Ce.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 Ge=function(Qe){return Qe?typeof Qe=="string"?Qe:typeof Qe.content=="string"?Qe.content:Qe.content.map(Ge).join(""):""},lt=function(Qe){for(var Ue=[],mt=0;mt<Qe.length;mt++){var Je=Qe[mt],It=!1;if(typeof Je!="string"&&(Je.type==="tag"&&Je.content[0]&&Je.content[0].type==="tag"?Je.content[0].content[0].content==="</"?Ue.length>0&&Ue[Ue.length-1].tagName===Ge(Je.content[0].content[1])&&Ue.pop():Je.content[Je.content.length-1].content==="/>"||Ue.push({tagName:Ge(Je.content[0].content[1]),openedBraces:0}):Ue.length>0&&Je.type==="punctuation"&&Je.content==="{"?Ue[Ue.length-1].openedBraces++:Ue.length>0&&Ue[Ue.length-1].openedBraces>0&&Je.type==="punctuation"&&Je.content==="}"?Ue[Ue.length-1].openedBraces--:It=!0),(It||typeof Je=="string")&&Ue.length>0&&Ue[Ue.length-1].openedBraces===0){var Oe=Ge(Je);mt<Qe.length-1&&(typeof Qe[mt+1]=="string"||Qe[mt+1].type==="plain-text")&&(Oe+=Ge(Qe[mt+1]),Qe.splice(mt+1,1)),mt>0&&(typeof Qe[mt-1]=="string"||Qe[mt-1].type==="plain-text")&&(Oe=Ge(Qe[mt-1])+Oe,Qe.splice(mt-1,1),mt--),Qe[mt]=new oe.Token("plain-text",Oe,null,Oe)}Je.content&&typeof Je.content!="string"&&lt(Je.content)}};oe.hooks.add("after-tokenize",function(Qe){Qe.language!=="jsx"&&Qe.language!=="tsx"||lt(Qe.tokens)})})(ae)}},40604:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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 Ce={"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:Ce},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Ce},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(He){"use strict";He.exports=Ee,Ee.displayName="kumir",Ee.aliases=["kum"];function Ee(ae){(function(oe){var Ce=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function ke(Ie,je){return RegExp(Ie.replace(/<nonId>/g,Ce),je)}oe.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:ke(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:ke(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:ke(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:ke(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:ke(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:ke(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:ke(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:ke(/(^|[<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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="latex",Ee.aliases=["tex","context"];function Ee(ae){(function(oe){var Ce=/\\(?:[^a-z()[\]]|[a-z*]+)/i,ke={"equation-command":{pattern:Ce,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:ke,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:ke,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:Ce,alias:"selector"},punctuation:/[[\]{}&]/},oe.languages.tex=oe.languages.latex,oe.languages.context=oe.languages.latex})(ae)}},22776:function(He,Ee,ae){"use strict";var oe=ae(51478),Ce=ae(53852);He.exports=ke,ke.displayName="latte",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(je){je.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:je.languages.php}};var Te=je.languages.extend("markup",{});je.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:je.languages.php}}}}}},Te.tag),je.hooks.add("before-tokenize",function(Ge){if(Ge.language==="latte"){var lt=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;je.languages["markup-templating"].buildPlaceholders(Ge,"latte",lt),Ge.grammar=Te}}),je.hooks.add("after-tokenize",function(Ge){je.languages["markup-templating"].tokenizePlaceholders(Ge,"latte")})}(Ie)}},89700:function(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(48780);He.exports=Ce,Ce.displayName="lilypond",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){for(var je=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Te=5,Ge=0;Ge<Te;Ge++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var lt=Ie.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return je}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:Ie.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};lt["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=lt,Ie.languages.ly=lt}(ke)}},39940:function(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="liquid",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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"}},ke.hooks.add("before-tokenize",function(Ie){var je=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Te=!1;ke.languages["markup-templating"].buildPlaceholders(Ie,"liquid",je,function(Ge){var lt=/^\{%-?\s*(\w+)/.exec(Ge);if(lt){var Qe=lt[1];if(Qe==="raw"&&!Te)return Te=!0,!0;if(Qe==="endraw")return Te=!1,!0}return!Te})}),ke.hooks.add("after-tokenize",function(Ie){ke.languages["markup-templating"].tokenizePlaceholders(Ie,"liquid")})}},34973:function(He){"use strict";He.exports=Ee,Ee.displayName="lisp",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(Oe){return RegExp(/(\()/.source+"(?:"+Oe+")"+/(?=[\s\)])/.source)}function ke(Oe){return RegExp(/([\s([])/.source+"(?:"+Oe+")"+/(?=[\s)])/.source)}var Ie=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,je="&"+Ie,Te="(\\()",Ge="(?=\\))",lt="(?=\\s)",Qe=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Ue={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Ie+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Ie),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Ie),alias:"property"},splice:{pattern:RegExp(",@?"+Ie),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Te+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+lt),lookbehind:!0},{pattern:RegExp(Te+"(?:append|by|collect|concat|do|finally|for|in|return)"+lt),lookbehind:!0}],declare:{pattern:Ce(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Ce(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:ke(/nil|t/.source),lookbehind:!0},number:{pattern:ke(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Te+"def(?:const|custom|group|var)\\s+"+Ie),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Ie)}},defun:{pattern:RegExp(Te+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Ie+/\s+\(/.source+Qe+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Ie),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Te+"lambda\\s+\\(\\s*(?:&?"+Ie+"(?:\\s+&?"+Ie+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Te+Ie),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},mt={"lisp-marker":RegExp(je),varform:{pattern:RegExp(/\(/.source+Ie+/\s+(?=\S)/.source+Qe+/\)/.source),inside:Ue},argument:{pattern:RegExp(/(^|[\s(])/.source+Ie),lookbehind:!0,alias:"variable"},rest:Ue},Je="\\S+(?:\\s+\\S+)*",It={pattern:RegExp(Te+Qe+Ge),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+Je),inside:mt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+Je),inside:mt},keys:{pattern:RegExp("&key\\s+"+Je+"(?:\\s+&allow-other-keys)?"),inside:mt},argument:{pattern:RegExp(Ie),alias:"variable"},punctuation:/[()]/}};Ue.lambda.inside.arguments=It,Ue.defun.inside.arguments=oe.util.clone(It),Ue.defun.inside.arguments.inside.sublist=It,oe.languages.lisp=Ue,oe.languages.elisp=Ue,oe.languages.emacs=Ue,oe.languages["emacs-lisp"]=Ue})(ae)}},98135:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="markdown",Ee.aliases=["md"];function Ee(ae){(function(oe){var Ce=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function ke(mt){return mt=mt.replace(/<inner>/g,function(){return Ce}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+mt+")")}var Ie=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,je=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Ie}),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("^"+je+Te+"(?:"+je+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+je+Te+")(?:"+je+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Ie),inside:oe.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+je+")"+Te+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+je+"$"),inside:{"table-header":{pattern:RegExp(Ie),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:ke(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:ke(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:ke(/(~~?)(?:(?!~)<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:ke(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(mt){["url","bold","italic","strike","code-snippet"].forEach(function(Je){mt!==Je&&(oe.languages.markdown[mt].inside.content.inside[Je]=oe.languages.markdown[Je])})}),oe.hooks.add("after-tokenize",function(mt){if(mt.language!=="markdown"&&mt.language!=="md")return;function Je(It){if(!(!It||typeof It=="string"))for(var Oe=0,te=It.length;Oe<te;Oe++){var ee=It[Oe];if(ee.type!=="code"){Je(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]}}}Je(mt.tokens)}),oe.hooks.add("wrap",function(mt){if(mt.type==="code-block"){for(var Je="",It=0,Oe=mt.classes.length;It<Oe;It++){var te=mt.classes[It],ee=/language-(.+)/.exec(te);if(ee){Je=ee[1];break}}var he=oe.languages[Je];if(he)mt.content=oe.highlight(Ue(mt.content.value),he,Je);else if(Je&&Je!=="none"&&oe.plugins.autoloader){var ue="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);mt.attributes.id=ue,oe.plugins.autoloader.loadLanguages(Je,function(){var fe=document.getElementById(ue);fe&&(fe.innerHTML=oe.highlight(fe.textContent,oe.languages[Je],Je))})}}});var Ge=RegExp(oe.languages.markup.tag.pattern.source,"gi"),lt={amp:"&",lt:"<",gt:">",quot:'"'},Qe=String.fromCodePoint||String.fromCharCode;function Ue(mt){var Je=mt.replace(Ge,"");return Je=Je.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(It,Oe){if(Oe=Oe.toLowerCase(),Oe[0]==="#"){var te;return Oe[1]==="x"?te=parseInt(Oe.slice(2),16):te=Number(Oe.slice(1)),Qe(te)}else{var ee=lt[Oe];return ee||It}}),Je}oe.languages.md=oe.languages.markdown})(ae)}},51478:function(He){"use strict";He.exports=Ee,Ee.displayName="markupTemplating",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(ke,Ie){return"___"+ke.toUpperCase()+Ie+"___"}Object.defineProperties(oe.languages["markup-templating"]={},{buildPlaceholders:{value:function(ke,Ie,je,Te){if(ke.language===Ie){var Ge=ke.tokenStack=[];ke.code=ke.code.replace(je,function(lt){if(typeof Te=="function"&&!Te(lt))return lt;for(var Qe=Ge.length,Ue;ke.code.indexOf(Ue=Ce(Ie,Qe))!==-1;)++Qe;return Ge[Qe]=lt,Ue}),ke.grammar=oe.languages.markup}}},tokenizePlaceholders:{value:function(ke,Ie){if(ke.language!==Ie||!ke.tokenStack)return;ke.grammar=oe.languages[Ie];var je=0,Te=Object.keys(ke.tokenStack);function Ge(lt){for(var Qe=0;Qe<lt.length&&!(je>=Te.length);Qe++){var Ue=lt[Qe];if(typeof Ue=="string"||Ue.content&&typeof Ue.content=="string"){var mt=Te[je],Je=ke.tokenStack[mt],It=typeof Ue=="string"?Ue:Ue.content,Oe=Ce(Ie,mt),te=It.indexOf(Oe);if(te>-1){++je;var ee=It.substring(0,te),he=new oe.Token(Ie,oe.tokenize(Je,ke.grammar),"language-"+Ie,Je),ue=It.substring(te+Oe.length),fe=[];ee&&fe.push.apply(fe,Ge([ee])),fe.push(he),ue&&fe.push.apply(fe,Ge([ue])),typeof Ue=="string"?lt.splice.apply(lt,[Qe,1].concat(fe)):Ue.content=fe}}else Ue.content&&Ge(Ue.content)}return lt}Ge(ke.tokens)}}})})(ae)}},70614:function(He){"use strict";He.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(Ce,ke){var Ie={};Ie["language-"+ke]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ae.languages[ke]},Ie.cdata=/^<!\[CDATA\[|\]\]>$/i;var je={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Ie}};je["language-"+ke]={pattern:/[\s\S]+/,inside:ae.languages[ke]};var Te={};Te[Ce]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Ce}),"i"),lookbehind:!0,greedy:!0,inside:je},ae.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(ae.languages.markup.tag,"addAttribute",{value:function(oe,Ce){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:[Ce,"language-"+Ce],inside:ae.languages[Ce]},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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="maxscript",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\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)+")[ ]*)(?!"+Ce.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Ce.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:Ce,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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="mongodb",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=["$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"],ke=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Ce=Ce.map(function(je){return je.replace("$","\\$")});var Ie="(?:"+Ce.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(`^(['"])?`+Ie+"(?:\\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(?:"+ke.join("|")+")\\b"),alias:"keyword"}})})(ae)}},65626:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="naniscript",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\{[^\r\n\[\]{}]*\}/,ke={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Ce,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:Ce,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:ke}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Ce,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:ke},"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 Ge=Te.tokens;Ge.forEach(function(lt){if(typeof lt!="string"&&lt.type==="generic-text"){var Qe=je(lt);Ie(Qe)||(lt.type="bad-line",lt.content=Qe)}})});function Ie(Te){for(var Ge="[]{}",lt=[],Qe=0;Qe<Te.length;Qe++){var Ue=Te[Qe],mt=Ge.indexOf(Ue);if(mt!==-1){if(mt%2===0)lt.push(mt+1);else if(lt.pop()!==mt)return!1}}return lt.length===0}function je(Te){return typeof Te=="string"?Te:Array.isArray(Te)?Te.map(je).join(""):je(Te.content)}})(ae)}},42846:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="nginx",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\$(?:\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:Ce}},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:Ce}},punctuation:/[{};]/}})(ae)}},66791:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(79440);He.exports=Ce,Ce.displayName="objectivec",Ce.aliases=["objc"];function Ce(ke){ke.register(oe),ke.languages.objectivec=ke.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 ke.languages.objectivec["class-name"],ke.languages.objc=ke.languages.objectivec}},66894:function(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(79440);He.exports=Ce,Ce.displayName="opencl",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.opencl=Ie.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),Ie.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var je={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};Ie.languages.insertBefore("c","keyword",je),Ie.languages.cpp&&(je["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},Ie.languages.insertBefore("cpp","keyword",je))}(ke)}},27734:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(Ce){return Ce.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(He){"use strict";He.exports=Ee,Ee.displayName="parser",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=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:/[\[\](){};]/});Ce=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:Ce.keyword,variable:Ce.variable,function:Ce.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Ce.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Ce.punctuation}}}),oe.languages.insertBefore("inside","punctuation",{expression:Ce.expression,keyword:Ce.keyword,variable:Ce.variable,function:Ce.function,escape:Ce.escape,"parser-punctuation":{pattern:Ce.punctuation,alias:"punctuation"}},Ce.tag.inside["attr-value"])})(ae)}},92949:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="pascaligo",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,ke=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Ce}),Ie=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 ke}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return ke}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return ke})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},je=["comment","keyword","builtin","operator","punctuation"].reduce(function(Te,Ge){return Te[Ge]=Ie[Ge],Te},{});Ie["class-name"].forEach(function(Te){Te.inside=je})})(ae)}},70696:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="perl",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/(?:\((?:[^()\\]|\\[\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,Ce].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,Ce].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,Ce+/\s*/.source+Ce].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(He,Ee,ae){"use strict";var oe=ae(53852);He.exports=Ce,Ce.displayName="phpExtras",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="php",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var je=/\/\*[\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*\()/],Ge=/\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,lt=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Qe=/[{}\[\](),:;]/;Ie.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:je,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:Ge,operator:lt,punctuation:Qe};var Ue={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Ie.languages.php},mt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation: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}}];Ie.languages.insertBefore("php","variable",{string:mt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:je,string:mt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,number:Ge,operator:lt,punctuation:Qe}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Ie.hooks.add("before-tokenize",function(Je){if(/<\?/.test(Je.code)){var It=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Ie.languages["markup-templating"].buildPlaceholders(Je,"php",It)}}),Ie.hooks.add("after-tokenize",function(Je){Ie.languages["markup-templating"].tokenizePlaceholders(Je,"php")})}(ke)}},97719:function(He,Ee,ae){"use strict";var oe=ae(53852),Ce=ae(53510);He.exports=ke,ke.displayName="phpdoc",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(je){var Te=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;je.languages.phpdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Te+"\\s+)?)\\$\\w+"),lookbehind:!0}}),je.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:/[|\\[\]()]/}}]}),je.languages.javadoclike.addSupport("php",je.languages.phpdoc)}(Ie)}},63839:function(He,Ee,ae){"use strict";var oe=ae(69435);He.exports=Ce,Ce.displayName="plsql",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.plsql=ke.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),ke.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="powershell",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=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:/[|{}[\];(),.]/};Ce.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Ce},boolean:Ce.boolean,variable:Ce.variable}})(ae)}},8938:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="promql",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],ke=["on","ignoring","group_right","group_left","by","without"],Ie=["offset"],je=Ce.concat(ke,Ie);oe.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+ke.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(?:"+je.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="protobuf",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\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:Ce}},builtin:Ce,"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(He){"use strict";He.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(He){"use strict";He.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 Ce=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,ke=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Ie={},je=0,Te=ke.length;je<Te;je++){var Ge=ke[je];Ge=typeof Ge=="string"?{filter:Ge,language:Ge}:Ge,oe.languages[Ge.language]&&(Ie["filter-"+Ge.filter]={pattern:RegExp(Ce.replace("<filter_name>",function(){return Ge.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Ge.language,"language-"+Ge.language],inside:oe.languages[Ge.language]}}})}oe.languages.insertBefore("pug","filter",Ie)})(ae)}},21294:function(He){"use strict";He.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 Ce=[{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=Ce,oe.languages.puppet.string.inside["double-quoted"].inside.interpolation=Ce})(ae)}},38709:function(He){"use strict";He.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 Ce=["c",{lang:"c++",alias:"cpp"},"fortran"],ke=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Ce.forEach(function(Ie){var je=Ie;if(typeof Ie!="string"&&(je=Ie.alias,Ie=Ie.lang),oe.languages[je]){var Te={};Te["inline-lang-"+je]={pattern:RegExp(ke.replace("<lang>",Ie.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:oe.util.clone(oe.languages.pure["inline-lang"].inside)},Te["inline-lang-"+je].inside.rest=oe.util.clone(oe.languages[je]),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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(2050);He.exports=Ce,Ce.displayName="purescript",Ce.aliases=["purs"];function Ce(ke){ke.register(oe),ke.languages.purescript=ke.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:[ke.languages.haskell.operator[0],ke.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]/]}),ke.languages.purs=ke.languages.purescript}},5221:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="qml",Ee.aliases=[];function Ee(ae){(function(oe){for(var Ce=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,ke=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Ie=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Ce}).replace(/<comment>/g,function(){return ke}),je=0;je<2;je++)Ie=Ie.replace(/<expr>/g,function(){return Ie});Ie=Ie.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 Ie}),"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 Ie}),"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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="qsharp",Ee.aliases=["qs"];function Ee(ae){(function(oe){function Ce(It,Oe){return It.replace(/<<(\d+)>>/g,function(te,ee){return"(?:"+Oe[+ee]+")"})}function ke(It,Oe,te){return RegExp(Ce(It,Oe),te||"")}function Ie(It,Oe){for(var te=0;te<Oe;te++)It=It.replace(/<<self>>/g,function(){return"(?:"+It+")"});return It.replace(/<<self>>/g,"[^\\s\\S]")}var je={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(It){return"\\b(?:"+It.trim().replace(/ /g,"|")+")\\b"}var Ge=RegExp(Te(je.type+" "+je.other)),lt=/\b[A-Za-z_]\w*\b/.source,Qe=Ce(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[lt]),Ue={keyword:Ge,punctuation:/[<>()?,.:[\]]/},mt=/"(?:\\.|[^\\"])*"/.source;oe.languages.qsharp=oe.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:ke(/(^|[^$\\])<<0>>/.source,[mt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:ke(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Qe]),lookbehind:!0,inside:Ue},{pattern:ke(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Qe]),lookbehind:!0,inside:Ue}],keyword:Ge,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 Je=Ie(Ce(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[mt]),2);oe.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:ke(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[Je]),greedy:!0,inside:{interpolation:{pattern:ke(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[Je]),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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(48780);He.exports=Ce,Ce.displayName="racket",Ce.aliases=["rkt"];function Ce(ke){ke.register(oe),ke.languages.racket=ke.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),ke.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),ke.languages.rkt=ke.languages.racket}},75266:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="regex",Ee.aliases=[];function Ee(ae){(function(oe){var Ce={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},ke=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Ie={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},je={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Te="(?:[^\\\\-]|"+ke.source+")",Ge=RegExp(Te+"-"+Te),lt={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:Ge,inside:{escape:ke,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Ce,"char-set":je,escape:ke}},"special-escape":Ce,"char-set":Ie,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":lt}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:ke,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":lt}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ae)}},97534:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="robotframework",Ee.aliases=[];function Ee(ae){(function(oe){var Ce={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},ke={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Ie(lt,Qe){var Ue={};Ue["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var mt in Qe)Ue[mt]=Qe[mt];return Ue.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Ue.variable=ke,Ue.comment=Ce,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return lt}),"im"),alias:"section",inside:Ue}}var je={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:ke}},Ge={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:ke}};oe.languages.robotframework={settings:Ie("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:Ie("Variables"),"test-cases":Ie("Test Cases",{"test-name":Te,documentation:je,property:Ge}),keywords:Ie("Keywords",{"keyword-name":Te,documentation:je,property:Ge}),tasks:Ie("Tasks",{"task-name":Te,documentation:je,property:Ge}),comment:Ce},oe.languages.robot=oe.languages.robotframework})(ae)}},75308:function(He){"use strict";He.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 Ce={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 ke="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Ie=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;oe.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+ke+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Ce,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Ce,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Ie),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Ie+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),oe.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+ke),greedy:!0,inside:{interpolation:Ce,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Ce,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:Ce,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+ke),greedy:!0,inside:{interpolation:Ce,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Ce,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(He){"use strict";He.exports=Ee,Ee.displayName="rust",Ee.aliases=[];function Ee(ae){(function(oe){for(var Ce=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,ke=0;ke<2;ke++)Ce=Ce.replace(/<self>/g,function(){return Ce});Ce=Ce.replace(/<self>/g,function(){return/[^\s\S]/.source}),oe.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Ce),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(He){"use strict";He.exports=Ee,Ee.displayName="sas",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,ke=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Ie={pattern:RegExp(Ce+"[bx]"),alias:"number"},je={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"},Ge={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},lt=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Qe={pattern:RegExp(Ce),greedy:!0},Ue=/[$%@.(){}\[\];,\\]/,mt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},Je={function:mt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":je,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:ke,"numeric-constant":Ie,punctuation:Ue,string:Qe},It={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Oe={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:lt,function:mt,"arg-value":Je["arg-value"],operator:Je.operator,argument:Je.arg,number:ke,"numeric-constant":Ie,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 Ce}),"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:ke,"numeric-constant":Ie,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:lt,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,alias:"language-groovy",inside:oe.languages.groovy},keyword:fe,"submit-statement":ee,"global-statements":te,number:ke,"numeric-constant":Ie,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:lt,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,alias:"language-lua",inside:oe.languages.lua},keyword:fe,"submit-statement":ee,"global-statements":te,number:ke,"numeric-constant":Ie,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:lt,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:Je}},"cas-actions":ue,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:Je},step:Ge,keyword:fe,function:mt,format:It,altformat:Oe,"global-statements":te,number:ke,"numeric-constant":Ie,punctuation:Ue,string:Qe}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,inside:Je},"macro-keyword":Te,"macro-variable":je,"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":je,"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:lt,number:ke,"numeric-constant":Ie}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:Je},"cas-actions":ue,comment:lt,function:mt,format:It,altformat:Oe,"numeric-constant":Ie,datetime:{pattern:RegExp(Ce+"(?:dt?|t)"),alias:"number"},string:Qe,step:Ge,keyword:fe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:ke,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Ue}})(ae)}},41299:function(He){"use strict";He.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 Ce=/\$[-\w]+|#\{\$[-\w]+\}/,ke=[/[+*\/%]|[=!]=|<=?|>=?|\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:Ce,operator:ke}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Ce,operator:ke,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(He,Ee,ae){"use strict";var oe=ae(7093);He.exports=Ce,Ce.displayName="scala",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.scala=ke.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*/}),ke.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:ke.languages.scala}}},string:/[\s\S]+/}}}),delete ke.languages.scala["class-name"],delete ke.languages.scala.function}},48780:function(He){"use strict";He.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(Ce({"<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 Ce(ke){for(var Ie in ke)ke[Ie]=ke[Ie].replace(/<[\w\s]+>/g,function(je){return"(?:"+ke[je].trim()+")"});return ke[Ie]}})(ae)}},79793:function(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(3058);He.exports=Ce,Ce.displayName="shellSession",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var je=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Ie.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return je}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:Ie.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Ie.languages["sh-session"]=Ie.languages.shellsession=Ie.languages["shell-session"]}(ke)}},65411:function(He){"use strict";He.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="smarty",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:Ie.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},Ie.languages.smarty["embedded-php"].inside.smarty.inside=Ie.languages.smarty,Ie.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Ie.languages.smarty;var je=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Te=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return je.source}),"g");Ie.hooks.add("before-tokenize",function(Ge){var lt="{literal}",Qe="{/literal}",Ue=!1;Ie.languages["markup-templating"].buildPlaceholders(Ge,"smarty",Te,function(mt){return mt===Qe&&(Ue=!1),Ue?!1:(mt===lt&&(Ue=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ge){Ie.languages["markup-templating"].tokenizePlaceholders(Ge,"smarty")})}(ke)}},66433:function(He){"use strict";He.exports=Ee,Ee.displayName="sml",Ee.aliases=["smlnj"];function Ee(ae){(function(oe){var Ce=/\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 Ce.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:Ce,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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="solutionFile",Ee.aliases=[];function Ee(ae){(function(oe){var Ce={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:Ce}},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:Ce}},guid:Ce,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},oe.languages.sln=oe.languages["solution-file"]})(ae)}},10202:function(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="soy",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var je=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Te=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Ie.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:je,greedy:!0},number:Te,punctuation:/[\[\].?]/}},string:{pattern:je,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:/[{}()\[\]|.,:]/},Ie.hooks.add("before-tokenize",function(Ge){var lt=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Qe="{literal}",Ue="{/literal}",mt=!1;Ie.languages["markup-templating"].buildPlaceholders(Ge,"soy",lt,function(Je){return Je===Ue&&(mt=!1),mt?!1:(Je===Qe&&(mt=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ge){Ie.languages["markup-templating"].tokenizePlaceholders(Ge,"soy")})}(ke)}},41186:function(He,Ee,ae){"use strict";var oe=ae(58710);He.exports=Ce,Ce.displayName="sparql",Ce.aliases=["rq"];function Ce(ke){ke.register(oe),ke.languages.sparql=ke.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),ke.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]}),ke.languages.rq=ke.languages.sparql}},68963:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="stan",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\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("("+Ce.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/,Ce],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(He){"use strict";He.exports=Ee,Ee.displayName="stylus",Ee.aliases=[];function Ee(ae){(function(oe){var Ce={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},ke={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Ie={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Ce,number:ke,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ce,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:ke,punctuation:/[{}()\[\];:,]/};Ie.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Ie}},Ie.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Ie}},oe.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Ie}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Ie}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Ie}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:Ie.interpolation}},rest:Ie}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:Ie.interpolation,comment:Ie.comment,punctuation:/[{},]/}},func:Ie.func,string:Ie.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Ie.interpolation,punctuation:/[{}()\[\];:.]/}})(ae)}},40241:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="systemd",Ee.aliases=[];function Ee(ae){(function(oe){var Ce={pattern:/^[;#].*/m,greedy:!0},ke=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;oe.languages.systemd={comment:Ce,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+"(?:"+ke+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+ke+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Ce,quoted:{pattern:RegExp(/(^|\s)/.source+ke),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(ae)}},16747:function(He,Ee,ae){"use strict";var oe=ae(73584),Ce=ae(87648);He.exports=ke,ke.displayName="t4Cs",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),Ie.languages.t4=Ie.languages["t4-cs"]=Ie.languages["t4-templating"].createT4("csharp")}},73584:function(He){"use strict";He.exports=Ee,Ee.displayName="t4Templating",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(Ie,je,Te){return{pattern:RegExp("<#"+Ie+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Ie+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:je,alias:Te}}}}function ke(Ie){var je=oe.languages[Ie],Te="language-"+Ie;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Ce("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Ce("=",je,Te),"class-feature":Ce("\\+",je,Te),standard:Ce("",je,Te)}}}}oe.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:ke})})(ae)}},79243:function(He,Ee,ae){"use strict";var oe=ae(73584),Ce=ae(55686);He.exports=ke,ke.displayName="t4Vb",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),Ie.languages["t4-vb"]=Ie.languages["t4-templating"].createT4("vbnet")}},31788:function(He,Ee,ae){"use strict";var oe=ae(14409);He.exports=Ce,Ce.displayName="tap",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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:ke.languages.yaml,alias:"language-yaml"}}}},60871:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="textile",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,ke=/\)|\((?![^|()\n]+\))/.source;function Ie(mt,Je){return RegExp(mt.replace(/<MOD>/g,function(){return"(?:"+Ce+")"}).replace(/<PAR>/g,function(){return"(?:"+ke+")"}),Je||"")}var je={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:Ie(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Ie(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:je},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Ie(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Ie(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/^[*#]+/}},table:{pattern:Ie(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Ie(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:je},punctuation:/\||^\./}},inline:{pattern:Ie(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Ie(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Ie(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Ie(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Ie(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Ie(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Ie(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Ie(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Ie(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Ie(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Ie(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Ie(/(^")<MOD>+/.source),lookbehind:!0,inside:je},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Ie(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Ie(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Ie(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:je},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:/[()]/}}}}}),Ge=Te.phrase.inside,lt={inline:Ge.inline,link:Ge.link,image:Ge.image,footnote:Ge.footnote,acronym:Ge.acronym,mark:Ge.mark};Te.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Qe=Ge.inline.inside;Qe.bold.inside=lt,Qe.italic.inside=lt,Qe.inserted.inside=lt,Qe.deleted.inside=lt,Qe.span.inside=lt;var Ue=Ge.table.inside;Ue.inline=lt.inline,Ue.link=lt.link,Ue.image=lt.image,Ue.footnote=lt.footnote,Ue.acronym=lt.acronym,Ue.mark=lt.mark})(ae)}},14693:function(He){"use strict";He.exports=Ee,Ee.displayName="toml",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function ke(Ie){return Ie.replace(/__/g,function(){return Ce})}oe.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(ke(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(ke(/(^[\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(He){"use strict";He.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 Ce=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;oe.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Ce+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Ce+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Ce),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(He,Ee,ae){"use strict";var oe=ae(24103),Ce=ae(92784);He.exports=ke,ke.displayName="tsx",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(je){var Te=je.util.clone(je.languages.typescript);je.languages.tsx=je.languages.extend("jsx",Te),delete je.languages.tsx.parameter,delete je.languages.tsx["literal-property"];var Ge=je.languages.tsx.tag;Ge.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ge.pattern.source+")",Ge.pattern.flags),Ge.lookbehind=!0}(Ie)}},69210:function(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="tt2",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){Ie.languages.tt2=Ie.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),Ie.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Ie.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Ie.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete Ie.languages.tt2.string,Ie.hooks.add("before-tokenize",function(je){var Te=/\[%[\s\S]+?%\]/g;Ie.languages["markup-templating"].buildPlaceholders(je,"tt2",Te)}),Ie.hooks.add("after-tokenize",function(je){Ie.languages["markup-templating"].tokenizePlaceholders(je,"tt2")})}(ke)}},58710:function(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(51478);He.exports=Ce,Ce.displayName="twig",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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:/[()\[\]{}:.,]/},ke.hooks.add("before-tokenize",function(Ie){if(Ie.language==="twig"){var je=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;ke.languages["markup-templating"].buildPlaceholders(Ie,"twig",je)}}),ke.hooks.add("after-tokenize",function(Ie){ke.languages["markup-templating"].tokenizePlaceholders(Ie,"twig")})}},92784:function(He){"use strict";He.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 Ce=oe.languages.extend("typescript",{});delete Ce["class-name"],oe.languages.typescript["class-name"].inside=Ce,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:Ce}}}}),oe.languages.ts=oe.languages.typescript})(ae)}},36489:function(He){"use strict";He.exports=Ee,Ee.displayName="typoscript",Ee.aliases=["tsconfig"];function Ee(ae){(function(oe){var Ce=/\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:Ce}},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:Ce,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Ce,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},oe.languages.tsconfig=oe.languages.typoscript})(ae)}},78380:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="v",Ee.aliases=[];function Ee(ae){(function(oe){var Ce={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":Ce}}}},"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/}),Ce.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(He){"use strict";He.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(He,Ee,ae){"use strict";var oe=ae(51422);He.exports=Ce,Ce.displayName="vbnet",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.vbnet=ke.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(He){"use strict";He.exports=Ee,Ee.displayName="velocity",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.velocity=oe.languages.extend("markup",{});var Ce={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:/[(){}[\]:,.]/};Ce.variable.inside={string:Ce.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Ce.number,boolean:Ce.boolean,punctuation:Ce.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:Ce}},variable:Ce.variable}),oe.languages.velocity.tag.inside["attr-value"].inside.rest=oe.languages.velocity})(ae)}},37116:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="webIdl",Ee.aliases=[];function Ee(ae){(function(oe){var Ce=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,ke="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Ce+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Ie={};oe.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Ce),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+ke),lookbehind:!0,inside:Ie},{pattern:RegExp("("+/\bcallback\s+/.source+Ce+/\s*=\s*/.source+")"+ke),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\btypedef\b\s*)/.source+ke),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Ce),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Ce),lookbehind:!0},RegExp(Ce+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Ce),lookbehind:!0},{pattern:RegExp(ke+"(?="+/\s*(?:\.{3}\s*)?/.source+Ce+/\s*[(),;=]/.source+")"),inside:Ie}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var je in oe.languages["web-idl"])je!=="class-name"&&(Ie[je]=oe.languages["web-idl"][je]);oe.languages.webidl=oe.languages["web-idl"]})(ae)}},8921:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="xmlDoc",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(Te,Ge){oe.languages[Te]&&oe.languages.insertBefore(Te,"comment",{"doc-comment":Ge})}var ke=oe.languages.markup.tag,Ie={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:ke}},je={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:ke}};Ce("csharp",Ie),Ce("fsharp",Ie),Ce("vbnet",je)})(ae)}},86095:function(He){"use strict";He.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(He){"use strict";He.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 Ce=function(Ie){return typeof Ie=="string"?Ie:typeof Ie.content=="string"?Ie.content:Ie.content.map(Ce).join("")},ke=function(Ie){for(var je=[],Te=0;Te<Ie.length;Te++){var Ge=Ie[Te],lt=!1;if(typeof Ge!="string"&&(Ge.type==="tag"&&Ge.content[0]&&Ge.content[0].type==="tag"?Ge.content[0].content[0].content==="</"?je.length>0&&je[je.length-1].tagName===Ce(Ge.content[0].content[1])&&je.pop():Ge.content[Ge.content.length-1].content==="/>"||je.push({tagName:Ce(Ge.content[0].content[1]),openedBraces:0}):je.length>0&&Ge.type==="punctuation"&&Ge.content==="{"&&(!Ie[Te+1]||Ie[Te+1].type!=="punctuation"||Ie[Te+1].content!=="{")&&(!Ie[Te-1]||Ie[Te-1].type!=="plain-text"||Ie[Te-1].content!=="{")?je[je.length-1].openedBraces++:je.length>0&&je[je.length-1].openedBraces>0&&Ge.type==="punctuation"&&Ge.content==="}"?je[je.length-1].openedBraces--:Ge.type!=="comment"&&(lt=!0)),(lt||typeof Ge=="string")&&je.length>0&&je[je.length-1].openedBraces===0){var Qe=Ce(Ge);Te<Ie.length-1&&(typeof Ie[Te+1]=="string"||Ie[Te+1].type==="plain-text")&&(Qe+=Ce(Ie[Te+1]),Ie.splice(Te+1,1)),Te>0&&(typeof Ie[Te-1]=="string"||Ie[Te-1].type==="plain-text")&&(Qe=Ce(Ie[Te-1])+Qe,Ie.splice(Te-1,1),Te--),/^\s+$/.test(Qe)?Ie[Te]=Qe:Ie[Te]=new oe.Token("plain-text",Qe,null,Qe)}Ge.content&&typeof Ge.content!="string"&&ke(Ge.content)}};oe.hooks.add("after-tokenize",function(Ie){Ie.language==="xquery"&&ke(Ie.tokens)})})(ae)}},14409:function(He){"use strict";He.exports=Ee,Ee.displayName="yaml",Ee.aliases=["yml"];function Ee(ae){(function(oe){var Ce=/[*&][^\s[\]{},]+/,ke=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Ie="(?:"+ke.source+"(?:[ ]+"+Ce.source+")?|"+Ce.source+"(?:[ ]+"+ke.source+")?)",je=/(?:[^\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 Ge(lt,Qe){Qe=(Qe||"").replace(/m/g,"")+"m";var Ue=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<value>>/g,function(){return lt});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 Ie})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<key>>/g,function(){return"(?:"+je+"|"+Te+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Ge(/\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:Ge(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Ge(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Ge(Te),lookbehind:!0,greedy:!0},number:{pattern:Ge(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:ke,important:Ce,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},oe.languages.yml=oe.languages.yaml})(ae)}},33460:function(He){"use strict";He.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(He){"use strict";He.exports=Ee,Ee.displayName="zig",Ee.aliases=[];function Ee(ae){(function(oe){function Ce(Qe){return function(){return Qe}}var ke=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,Ie="\\b(?!"+ke.source+")(?!\\d)\\w+\\b",je=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Te=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Ce(je)),Ge=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Ce(Ie)),lt="(?!\\s)(?:!?\\s*(?:"+Te+"\\s*)*"+Ge+")+";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,Ce(lt)).replace(/<ALIGN>/g,Ce(je))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Ce(lt)).replace(/<ALIGN>/g,Ce(je))),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:ke,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(He,Ee){"use strict";var ae;Ee.Q=Ie,ae=je;var oe="",Ce=" ",ke=/[ \t\n\r\f]+/g;function Ie(Te){var Ge=String(Te||oe).trim();return Ge===oe?[]:Ge.split(ke)}function je(Te){return Te.join(Ce).trim()}},6526:function(He,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(je){return je&&je.__esModule?je:{default:je}},Ce=oe(ae(78846)),ke=ae(11160);function Ie(je,Te){var Ge={};return!je||typeof je!="string"||(0,Ce.default)(je,function(lt,Qe){lt&&Qe&&(Ge[(0,ke.camelCase)(lt,Te)]=Qe)}),Ge}Ie.default=Ie,He.exports=Ie},11160:function(He,Ee){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.camelCase=void 0;var ae=/^--[a-zA-Z0-9_-]+$/,oe=/-([a-z])/g,Ce=/^[^-]+$/,ke=/^-(webkit|moz|ms|o|khtml)-/,Ie=/^-(ms)-/,je=function(Qe){return!Qe||Ce.test(Qe)||ae.test(Qe)},Te=function(Qe,Ue){return Ue.toUpperCase()},Ge=function(Qe,Ue){return"".concat(Ue,"-")},lt=function(Qe,Ue){return Ue===void 0&&(Ue={}),je(Qe)?Qe:(Qe=Qe.toLowerCase(),Ue.reactCompat?Qe=Qe.replace(Ie,Ge):Qe=Qe.replace(ke,Ge),Qe.replace(oe,Te))};Ee.camelCase=lt},78846:function(He,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=ke;var Ce=oe(ae(93193));function ke(Ie,je){var Te=null;if(!Ie||typeof Ie!="string")return Te;var Ge=(0,Ce.default)(Ie),lt=typeof je=="function";return Ge.forEach(function(Qe){if(Qe.type==="declaration"){var Ue=Qe.property,mt=Qe.value;lt?je(Ue,mt,Qe):mt&&(Te=Te||{},Te[Ue]=mt)}}),Te}},97270:function(He){He.exports=ae;var Ee=Object.prototype.hasOwnProperty;function ae(){for(var oe={},Ce=0;Ce<arguments.length;Ce++){var ke=arguments[Ce];for(var Ie in ke)Ee.call(ke,Ie)&&(oe[Ie]=ke[Ie])}return oe}},20441:function(He,Ee,ae){var oe={"./aac.svg":16772,"./amr.svg":537,"./avi.svg":86682,"./bmp.svg":86476,"./default.svg":58335,"./doc.svg":36092,"./docx.svg":11588,"./flv.svg":36117,"./gif.svg":96769,"./jpeg.svg":11595,"./jpg.svg":3081,"./m4a.svg":91339,"./md.svg":3914,"./mkv.svg":72378,"./mov.svg":21307,"./mp3.svg":83306,"./mp4.svg":96392,"./mpeg.svg":85021,"./ogg.svg":79253,"./opus.svg":92481,"./pdf.svg":14080,"./png.svg":92357,"./ppt.svg":48036,"./pptx.svg":56741,"./txt.svg":73810,"./wav.svg":93878,"./webm.svg":39795,"./wma.svg":46381,"./wmv.svg":65016,"./wps.svg":3624,"./xls.svg":88446,"./xlsx.svg":42623};function Ce(Ie){var je=ke(Ie);return ae(je)}function ke(Ie){if(!ae.o(oe,Ie)){var je=new Error("Cannot find module '"+Ie+"'");throw je.code="MODULE_NOT_FOUND",je}return oe[Ie]}Ce.keys=function(){return Object.keys(oe)},Ce.resolve=ke,He.exports=Ce,Ce.id=20441},16772:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/aac.b3e9a3ba.svg"},537:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/amr.ce411d51.svg"},86682:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/avi.d7b8adf7.svg"},86476:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/bmp.c62f88c4.svg"},58335:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/default.f48aef2c.svg"},36092:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/doc.e6c75d4c.svg"},11588:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/docx.150535e3.svg"},36117:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/flv.43967063.svg"},96769:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/gif.b2122741.svg"},11595:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/jpeg.fffee469.svg"},3081:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/jpg.2fb4a360.svg"},91339:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/m4a.7994dbc0.svg"},3914:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/md.1f56aa84.svg"},72378:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/mkv.f43ec502.svg"},21307:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/mov.1e1eebb7.svg"},83306:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/mp3.a7e45c91.svg"},96392:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/mp4.31a2d9d7.svg"},85021:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/mpeg.9a0dfa86.svg"},79253:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/ogg.0394dc54.svg"},92481:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/opus.faad335c.svg"},14080:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/pdf.5d12b224.svg"},92357:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/png.eacc8c1c.svg"},48036:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/ppt.d710530e.svg"},56741:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/pptx.d78add0d.svg"},73810:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/txt.53f7213d.svg"},93878:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/wav.a76e7dde.svg"},39795:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/webm.3a7e6ebc.svg"},46381:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/wma.a57b430b.svg"},65016:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/wmv.f22ee4a1.svg"},3624:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/wps.f48aef2c.svg"},88446:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/xls.0db636e2.svg"},42623:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/xlsx.5d09490a.svg"},32637:function(He,Ee,ae){"use strict";He.exports=ae.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(He){"use strict";He.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(He){"use strict";He.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(He){"use strict";He.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},36413:function(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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(He){"use strict";He.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="},69889:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ce}});var oe=ae(42913);function Ce(ke,Ie){var je=typeof Symbol!="undefined"&&ke[Symbol.iterator]||ke["@@iterator"];if(!je){if(Array.isArray(ke)||(je=(0,oe.Z)(ke))||Ie&&ke&&typeof ke.length=="number"){je&&(ke=je);var Te=0,Ge=function(){};return{s:Ge,n:function(){return Te>=ke.length?{done:!0}:{done:!1,value:ke[Te++]}},e:function(Je){throw Je},f:Ge}}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 lt,Qe=!0,Ue=!1;return{s:function(){je=je.call(ke)},n:function(){var Je=je.next();return Qe=Je.done,Je},e:function(Je){Ue=!0,lt=Je},f:function(){try{Qe||je.return==null||je.return()}finally{if(Ue)throw lt}}}}},528:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ce}});var oe=ae(90691);function Ce(ke,Ie){ke.prototype=Object.create(Ie.prototype),ke.prototype.constructor=ke,(0,oe.Z)(ke,Ie)}},90302:function(He,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return be}});const oe=-1,Ce=0,ke=1,Ie=2,je=3,Te=4,Ge=5,lt=6,Qe=7,Ue=8,mt=typeof self=="object"?self:globalThis,Je=(Ae,De)=>{const Ye=($e,at)=>(Ae.set(at,$e),$e),rt=$e=>{if(Ae.has($e))return Ae.get($e);const[at,ht]=De[$e];switch(at){case Ce:case oe:return Ye(ht,$e);case ke:{const ot=Ye([],$e);for(const vt of ht)ot.push(rt(vt));return ot}case Ie:{const ot=Ye({},$e);for(const[vt,xt]of ht)ot[rt(vt)]=rt(xt);return ot}case je:return Ye(new Date(ht),$e);case Te:{const{source:ot,flags:vt}=ht;return Ye(new RegExp(ot,vt),$e)}case Ge:{const ot=Ye(new Map,$e);for(const[vt,xt]of ht)ot.set(rt(vt),rt(xt));return ot}case lt:{const ot=Ye(new Set,$e);for(const vt of ht)ot.add(rt(vt));return ot}case Qe:{const{name:ot,message:vt}=ht;return Ye(new mt[ot](vt),$e)}case Ue:return Ye(BigInt(ht),$e);case"BigInt":return Ye(Object(BigInt(ht)),$e);case"ArrayBuffer":return Ye(new Uint8Array(ht).buffer,ht);case"DataView":{const{buffer:ot}=new Uint8Array(ht);return Ye(new DataView(ot),ht)}}return Ye(new mt[at](ht),$e)};return rt},It=Ae=>Je(new Map,Ae)(0),Oe="",{toString:te}={},{keys:ee}=Object,he=Ae=>{const De=typeof Ae;if(De!=="object"||!Ae)return[Ce,De];const Ye=te.call(Ae).slice(8,-1);switch(Ye){case"Array":return[ke,Oe];case"Object":return[Ie,Oe];case"Date":return[je,Oe];case"RegExp":return[Te,Oe];case"Map":return[Ge,Oe];case"Set":return[lt,Oe];case"DataView":return[ke,Ye]}return Ye.includes("Array")?[ke,Ye]:Ye.includes("Error")?[Qe,Ye]:[Ie,Ye]},ue=([Ae,De])=>Ae===Ce&&(De==="function"||De==="symbol"),fe=(Ae,De,Ye,rt)=>{const $e=(ht,ot)=>{const vt=rt.push(ht)-1;return Ye.set(ot,vt),vt},at=ht=>{if(Ye.has(ht))return Ye.get(ht);let[ot,vt]=he(ht);switch(ot){case Ce:{let Tt=ht;switch(vt){case"bigint":ot=Ue,Tt=ht.toString();break;case"function":case"symbol":if(Ae)throw new TypeError("unable to serialize "+vt);Tt=null;break;case"undefined":return $e([oe],ht)}return $e([ot,Tt],ht)}case ke:{if(vt){let Jt=ht;return vt==="DataView"?Jt=new Uint8Array(ht.buffer):vt==="ArrayBuffer"&&(Jt=new Uint8Array(ht)),$e([vt,[...Jt]],ht)}const Tt=[],_t=$e([ot,Tt],ht);for(const Jt of ht)Tt.push(at(Jt));return _t}case Ie:{if(vt)switch(vt){case"BigInt":return $e([vt,ht.toString()],ht);case"Boolean":case"Number":case"String":return $e([vt,ht.valueOf()],ht)}if(De&&"toJSON"in ht)return at(ht.toJSON());const Tt=[],_t=$e([ot,Tt],ht);for(const Jt of ee(ht))(Ae||!ue(he(ht[Jt])))&&Tt.push([at(Jt),at(ht[Jt])]);return _t}case je:return $e([ot,ht.toISOString()],ht);case Te:{const{source:Tt,flags:_t}=ht;return $e([ot,{source:Tt,flags:_t}],ht)}case Ge:{const Tt=[],_t=$e([ot,Tt],ht);for(const[Jt,Zt]of ht)(Ae||!(ue(he(Jt))||ue(he(Zt))))&&Tt.push([at(Jt),at(Zt)]);return _t}case lt:{const Tt=[],_t=$e([ot,Tt],ht);for(const Jt of ht)(Ae||!ue(he(Jt)))&&Tt.push(at(Jt));return _t}}const{message:xt}=ht;return $e([ot,{name:vt,message:xt}],ht)};return at},me=(Ae,{json:De,lossy:Ye}={})=>{const rt=[];return fe(!(De||Ye),!!De,new Map,rt)(Ae),rt};var be=typeof structuredClone=="function"?(Ae,De)=>De&&("json"in De||"lossy"in De)?It(me(Ae,De)):structuredClone(Ae):(Ae,De)=>It(me(Ae,De))},11630:function(He,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Ce},Q:function(){return oe}});function oe(ke){const Ie=[],je=String(ke||"");let Te=je.indexOf(","),Ge=0,lt=!1;for(;!lt;){Te===-1&&(Te=je.length,lt=!0);const Qe=je.slice(Ge,Te).trim();(Qe||!lt)&&Ie.push(Qe),Ge=Te+1,Te=je.indexOf(",",Ge)}return Ie}function Ce(ke,Ie){const je=Ie||{};return(ke[ke.length-1]===""?[...ke,""]:ke).join((je.padRight?" ":"")+","+(je.padLeft===!1?"":" ")).trim()}},87342:function(He,Ee,ae){"use strict";ae.d(Ee,{ok:function(){return ke},t1:function(){return Ie}});function oe(je){return je}function Ce(){}function ke(){}function Ie(){}},40797:function(He,Ee,ae){"use strict";ae.d(Ee,{N:function(){return It}});var oe=ae(81994),Ce=ae(43309);function ke(te,ee){return Ie(te,ee||{})||{type:"root",children:[]}}function Ie(te,ee){const he=je(te,ee);return he&&ee.afterTransform&&ee.afterTransform(te,he),he}function je(te,ee){switch(te.nodeType){case 1:return Ue(te,ee);case 3:return lt(te);case 8:return Qe(te);case 9:return Te(te,ee);case 10:return Ge();case 11:return Te(te,ee);default:return}}function Te(te,ee){return{type:"root",children:mt(te,ee)}}function Ge(){return{type:"doctype"}}function lt(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===Ce.t.svg?oe.s:oe.h,fe=he===Ce.t.html?te.tagName.toLowerCase():te.tagName,me=he===Ce.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,mt(me,ee))}function mt(te,ee){const he=te.childNodes,ue=[];let fe=-1;for(;++fe<he.length;){const me=Ie(he[fe],ee);me!==void 0&&ue.push(me)}return ue}const Je=new DOMParser;function It(te,ee){const he=ee!=null&&ee.fragment?Oe(te):Je.parseFromString(te,"text/html");return ke(he)}function Oe(te){const ee=document.createElement("template");return ee.innerHTML=te,ee.content}},91378:function(He,Ee,ae){"use strict";ae.d(Ee,{l:function(){return ue}});var oe=ae(10502);const Ce=function(ht,ot,vt){const xt=(0,oe.O)(vt);if(!ht||!ht.type||!ht.children)throw new Error("Expected parent node");if(typeof ot=="number"){if(ot<0||ot===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(ot=ht.children.indexOf(ot),ot<0)throw new Error("Expected child node or index");for(;++ot<ht.children.length;)if(xt(ht.children[ot],ot,ht))return ht.children[ot]},ke=function(ht,ot,vt,xt,Tt){const _t=Ie(ot);if(vt!=null&&(typeof vt!="number"||vt<0||vt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(xt!=null&&(!xt.type||!xt.children))throw new Error("Expected valid `parent`");if(vt==null!=(xt==null))throw new Error("Expected both `index` and `parent`");return Qe(ht)?_t.call(Tt,ht,vt,xt):!1},Ie=function(ht){if(ht==null)return lt;if(typeof ht=="string")return Te(ht);if(typeof ht=="object")return je(ht);if(typeof ht=="function")return Ge(ht);throw new Error("Expected function, string, or array as `test`")};function je(ht){const ot=[];let vt=-1;for(;++vt<ht.length;)ot[vt]=Ie(ht[vt]);return Ge(xt);function xt(...Tt){let _t=-1;for(;++_t<ot.length;)if(ot[_t].apply(this,Tt))return!0;return!1}}function Te(ht){return Ge(ot);function ot(vt){return vt.tagName===ht}}function Ge(ht){return ot;function ot(vt,xt,Tt){return!!(Qe(vt)&&ht.call(this,vt,typeof xt=="number"?xt:void 0,Tt||void 0))}}function lt(ht){return!!(ht&&typeof ht=="object"&&"type"in ht&&ht.type==="element"&&"tagName"in ht&&typeof ht.tagName=="string")}function Qe(ht){return ht!==null&&typeof ht=="object"&&"type"in ht&&"tagName"in ht}const Ue=/\n/g,mt=/[\t ]+/g,Je=Ie("br"),It=Ie($e),Oe=Ie("p"),te=Ie("tr"),ee=Ie(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",rt,at]),he=Ie(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function ue(ht,ot){const vt=ot||{},xt="children"in ht?ht.children:[],Tt=he(ht),_t=Ye(ht,{whitespace:vt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Jt=[];(ht.type==="text"||ht.type==="comment")&&Jt.push(...be(ht,{whitespace:_t,breakBefore:!0,breakAfter:!0}));let Zt=-1;for(;++Zt<xt.length;)Jt.push(...fe(xt[Zt],ht,{whitespace:_t,breakBefore:Zt?void 0:Tt,breakAfter:Zt<xt.length-1?Je(xt[Zt+1]):Tt}));const vn=[];let bt;for(Zt=-1;++Zt<Jt.length;){const ft=Jt[Zt];typeof ft=="number"?bt!==void 0&&ft>bt&&(bt=ft):ft&&(bt!==void 0&&bt>-1&&vn.push(`
`.repeat(bt)||" "),bt=-1,vn.push(ft))}return vn.join("")}function fe(ht,ot,vt){return ht.type==="element"?me(ht,ot,vt):ht.type==="text"?vt.whitespace==="normal"?be(ht,vt):Ae(ht):[]}function me(ht,ot,vt){const xt=Ye(ht,vt),Tt=ht.children||[];let _t=-1,Jt=[];if(ee(ht))return Jt;let Zt,vn;for(Je(ht)||te(ht)&&Ce(ot,ht,te)?vn=`
`:Oe(ht)?(Zt=2,vn=2):he(ht)&&(Zt=1,vn=1);++_t<Tt.length;)Jt=Jt.concat(fe(Tt[_t],ht,{whitespace:xt,breakBefore:_t?void 0:Zt,breakAfter:_t<Tt.length-1?Je(Tt[_t+1]):vn}));return It(ht)&&Ce(ot,ht,It)&&Jt.push(" "),Zt&&Jt.unshift(Zt),vn&&Jt.push(vn),Jt}function be(ht,ot){const vt=String(ht.value),xt=[],Tt=[];let _t=0;for(;_t<=vt.length;){Ue.lastIndex=_t;const vn=Ue.exec(vt),bt=vn&&"index"in vn?vn.index:vt.length;xt.push(De(vt.slice(_t,bt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),_t===0?ot.breakBefore:!0,bt===vt.length?ot.breakAfter:!0)),_t=bt+1}let Jt=-1,Zt;for(;++Jt<xt.length;)xt[Jt].charCodeAt(xt[Jt].length-1)===8203||Jt<xt.length-1&&xt[Jt+1].charCodeAt(0)===8203?(Tt.push(xt[Jt]),Zt=void 0):xt[Jt]?(typeof Zt=="number"&&Tt.push(Zt),Tt.push(xt[Jt]),Zt=0):(Jt===0||Jt===xt.length-1)&&Tt.push(0);return Tt}function Ae(ht){return[String(ht.value)]}function De(ht,ot,vt){const xt=[];let Tt=0,_t;for(;Tt<ht.length;){mt.lastIndex=Tt;const Jt=mt.exec(ht);_t=Jt?Jt.index:ht.length,!Tt&&!_t&&Jt&&!ot&&xt.push(""),Tt!==_t&&xt.push(ht.slice(Tt,_t)),Tt=Jt?_t+Jt[0].length:_t}return Tt!==_t&&!vt&&xt.push(""),xt.join(" ")}function Ye(ht,ot){if(ht.type==="element"){const vt=ht.properties||{};switch(ht.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":ot.whitespace;case"textarea":return"pre-wrap";default:}}return ot.whitespace}function rt(ht){return!!(ht.properties||{}).hidden}function $e(ht){return ht.tagName==="td"||ht.tagName==="th"}function at(ht){return ht.tagName==="dialog"&&!(ht.properties||{}).open}},81994:function(He,Ee,ae){"use strict";ae.d(Ee,{h:function(){return ee},s:function(){return he}});var oe=ae(14470),Ce=ae(11630);const ke=/[#.]/g;function Ie(ue,fe){const me=ue||"",be={};let Ae=0,De,Ye;for(;Ae<me.length;){ke.lastIndex=Ae;const rt=ke.exec(me),$e=me.slice(Ae,rt?rt.index:me.length);$e&&(De?De==="#"?be.id=$e:Array.isArray(be.className)?be.className.push($e):be.className=[$e]:Ye=$e,Ae+=$e.length),rt&&(De=rt[0],Ae++)}return{type:"element",tagName:Ye||fe||"div",properties:be,children:[]}}var je=ae(86825),Te=ae(13830),Ge=ae(71523);function lt(ue,fe,me){const be=me?Oe(me):void 0;function Ae(De,Ye,...rt){let $e;if(De==null){$e={type:"root",children:[]};const at=Ye;rt.unshift(at)}else{$e=Ie(De,fe);const at=$e.tagName.toLowerCase(),ht=be?be.get(at):void 0;if($e.tagName=ht||at,Qe(Ye))rt.unshift(Ye);else for(const[ot,vt]of Object.entries(Ye))Ue(ue,$e.properties,ot,vt)}for(const at of rt)mt($e.children,at);return $e.type==="element"&&$e.tagName==="template"&&($e.content={type:"root",children:$e.children},$e.children=[]),$e}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 Ye of De)if(typeof Ye!="number"&&typeof Ye!="string")return!0}}return!!("children"in ue&&Array.isArray(ue.children))}function Ue(ue,fe,me,be){const Ae=(0,je.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,Ge.Q)(be):Ae.commaSeparated?De=(0,Ce.Q)(be):Ae.commaOrSpaceSeparated?De=(0,Ge.Q)((0,Ce.Q)(be).join(" ")):De=Je(Ae,Ae.property,be):Array.isArray(be)?De=[...be]:De=Ae.property==="style"?It(be):String(be);if(Array.isArray(De)){const Ye=[];for(const rt of De)Ye.push(Je(Ae,Ae.property,rt));De=Ye}Ae.property==="className"&&Array.isArray(fe.className)&&(De=fe.className.concat(De)),fe[Ae.property]=De}}function mt(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)mt(ue,me);else if(typeof fe=="object"&&"type"in fe)fe.type==="root"?mt(ue,fe.children):ue.push(fe);else throw new Error("Expected node, nodes, or string, got `"+fe+"`")}function Je(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 It(ue){const fe=[];for(const[me,be]of Object.entries(ue))fe.push([me,be].join(": "));return fe.join("; ")}function Oe(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=lt(oe.dy,"div"),he=lt(oe.YP,"g",te)},26735:function(He,Ee,ae){"use strict";ae.d(Ee,{f:function(){return Ce}});var oe=ae(80722);function Ce(ke,Ie,je,Te){const Ge=Te?Te-1:Number.POSITIVE_INFINITY;let lt=0;return Qe;function Qe(mt){return(0,oe.xz)(mt)?(ke.enter(je),Ue(mt)):Ie(mt)}function Ue(mt){return(0,oe.xz)(mt)&&lt++<Ge?(ke.consume(mt),Ue):(ke.exit(je),Ie(mt))}}},80722:function(He,Ee,ae){"use strict";ae.d(Ee,{AF:function(){return Te},Av:function(){return Ie},B8:function(){return Je},Ch:function(){return lt},H$:function(){return Ce},Xh:function(){return mt},jv:function(){return oe},n9:function(){return ke},pY:function(){return je},sR:function(){return Ge},xz:function(){return Ue},z3:function(){return Qe}});const oe=It(/[A-Za-z]/),Ce=It(/[\dA-Za-z]/),ke=It(/[#-'*+\--9=?A-Z^-~]/);function Ie(Oe){return Oe!==null&&(Oe<32||Oe===127)}const je=It(/\d/),Te=It(/[\dA-Fa-f]/),Ge=It(/[!-/:-@[-`{-~]/);function lt(Oe){return Oe!==null&&Oe<-2}function Qe(Oe){return Oe!==null&&(Oe<0||Oe===32)}function Ue(Oe){return Oe===-2||Oe===-1||Oe===32}const mt=It(new RegExp("\\p{P}|\\p{S}","u")),Je=It(/\s/);function It(Oe){return te;function te(ee){return ee!==null&&ee>-1&&Oe.test(String.fromCharCode(ee))}}},14470:function(He,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 Ce(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 ke=ae(13830),Ie=ae(53538);function je(he){const ue={},fe={};for(const[me,be]of Object.entries(he.properties)){const Ae=new Ie.I(me,he.transform(he.attributes||{},me),be,he.space);he.mustUseProperty&&he.mustUseProperty.includes(me)&&(Ae.mustUseProperty=!0),ue[me]=Ae,fe[(0,ke.F)(me)]=me,fe[(0,ke.F)(Ae.attribute)]=me}return new oe(ue,fe,he.space)}var Te=ae(71337);const Ge=je({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 lt(he,ue){return ue in he?he[ue]:ue}function Qe(he,ue){return lt(he,ue.toLowerCase())}const Ue=je({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.overloadedBoolean,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}),mt=je({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:lt}),Je=je({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()}}),It=je({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Qe}),Oe=je({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,ue){return"xml:"+ue.slice(3).toLowerCase()}}),te=Ce([Ge,Ue,Je,It,Oe],"html"),ee=Ce([Ge,mt,Je,It,Oe],"svg")},86825:function(He,Ee,ae){"use strict";ae.d(Ee,{s:function(){return Ge}});var oe=ae(53538),Ce=ae(25629),ke=ae(13830);const Ie=/[A-Z]/g,je=/-[a-z]/g,Te=/^data[-\w.:]+$/i;function Ge(Ue,mt){const Je=(0,ke.F)(mt);let It=mt,Oe=Ce.k;if(Je in Ue.normal)return Ue.property[Ue.normal[Je]];if(Je.length>4&&Je.slice(0,4)==="data"&&Te.test(mt)){if(mt.charAt(4)==="-"){const te=mt.slice(5).replace(je,Qe);It="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=mt.slice(4);if(!je.test(te)){let ee=te.replace(Ie,lt);ee.charAt(0)!=="-"&&(ee="-"+ee),mt="data"+ee}}Oe=oe.I}return new Oe(It,mt)}function lt(Ue){return"-"+Ue.toLowerCase()}function Qe(Ue){return Ue.charAt(1).toUpperCase()}},13830:function(He,Ee,ae){"use strict";ae.d(Ee,{F:function(){return oe}});function oe(Ce){return Ce.toLowerCase()}},53538:function(He,Ee,ae){"use strict";ae.d(Ee,{I:function(){return Ie}});var oe=ae(25629),Ce=ae(71337);const ke=Object.keys(Ce);class Ie extends oe.k{constructor(Ge,lt,Qe,Ue){let mt=-1;if(super(Ge,lt),je(this,"space",Ue),typeof Qe=="number")for(;++mt<ke.length;){const Je=ke[mt];je(this,ke[mt],(Qe&Ce[Je])===Ce[Je])}}}Ie.prototype.defined=!0;function je(Te,Ge,lt){lt&&(Te[Ge]=lt)}},25629:function(He,Ee,ae){"use strict";ae.d(Ee,{k:function(){return oe}});class oe{constructor(ke,Ie){this.attribute=Ie,this.property=ke}}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},71337:function(He,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{boolean:function(){return Ce},booleanish:function(){return ke},commaOrSpaceSeparated:function(){return lt},commaSeparated:function(){return Ge},number:function(){return je},overloadedBoolean:function(){return Ie},spaceSeparated:function(){return Te}});let oe=0;const Ce=Qe(),ke=Qe(),Ie=Qe(),je=Qe(),Te=Qe(),Ge=Qe(),lt=Qe();function Qe(){return aS(2,++oe)}},72460:function(He,Ee,ae){"use strict";ae.d(Ee,{UG:function(){return qs}});var oe={};ae.r(oe),ae.d(oe,{attentionMarkers:function(){return Ma},contentInitial:function(){return za},disable:function(){return ts},document:function(){return ia},flow:function(){return il},flowInitial:function(){return hs},insideSpan:function(){return Ra},string:function(){return Ls},text:function(){return to}});var Ce=ae(87342),ke=ae(11630);const Ie=/[$_\p{ID_Start}]/u,je=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Te=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ge=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qe={};function Ue(Pe){return Pe?Ie.test(String.fromCodePoint(Pe)):!1}function mt(Pe,Xe){const gt=(Xe||Qe).jsx?Te:je;return Pe?gt.test(String.fromCodePoint(Pe)):!1}function Je(Pe,Xe){return((Xe||Qe).jsx?lt:Ge).test(Pe)}const It=/[ \t\n\f\r]/g;function Oe(Pe){return typeof Pe=="object"?Pe.type==="text"?te(Pe.value):!1:te(Pe)}function te(Pe){return Pe.replace(It,"")===""}var ee=ae(14470),he=ae(86825);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(6526),be=ae(17970);function Ae(Pe){return!Pe||typeof Pe!="object"?"":"position"in Pe||"type"in Pe?Ye(Pe.position):"start"in Pe||"end"in Pe?Ye(Pe):"line"in Pe||"column"in Pe?De(Pe):""}function De(Pe){return rt(Pe&&Pe.line)+":"+rt(Pe&&Pe.column)}function Ye(Pe){return De(Pe&&Pe.start)+"-"+De(Pe&&Pe.end)}function rt(Pe){return Pe&&typeof Pe=="number"?Pe:1}class $e extends Error{constructor(Xe,tt,gt){super(),typeof tt=="string"&&(gt=tt,tt=void 0);let Mt="",Bt={},sn=!1;if(tt&&("line"in tt&&"column"in tt?Bt={place:tt}:"start"in tt&&"end"in tt?Bt={place:tt}:"type"in tt?Bt={ancestors:[tt],place:tt.position}:Bt=xa({},tt)),typeof Xe=="string"?Mt=Xe:!Bt.cause&&Xe&&(sn=!0,Mt=Xe.message,Bt.cause=Xe),!Bt.ruleId&&!Bt.source&&typeof gt=="string"){const yr=gt.indexOf(":");yr===-1?Bt.ruleId=gt:(Bt.source=gt.slice(0,yr),Bt.ruleId=gt.slice(yr+1))}if(!Bt.place&&Bt.ancestors&&Bt.ancestors){const yr=Bt.ancestors[Bt.ancestors.length-1];yr&&(Bt.place=yr.position)}const Cn=Bt.place&&"start"in Bt.place?Bt.place.start:Bt.place;this.ancestors=Bt.ancestors||void 0,this.cause=Bt.cause||void 0,this.column=Cn?Cn.column:void 0,this.fatal=void 0,this.file,this.message=Mt,this.line=Cn?Cn.line:void 0,this.name=Ae(Bt.place)||"1:1",this.place=Bt.place||void 0,this.reason=this.message,this.ruleId=Bt.ruleId||void 0,this.source=Bt.source||void 0,this.stack=sn&&Bt.cause&&typeof Bt.cause.stack=="string"?Bt.cause.stack:"",this.actual,this.expected,this.note,this.url}}$e.prototype.file="",$e.prototype.name="",$e.prototype.reason="",$e.prototype.message="",$e.prototype.stack="",$e.prototype.column=void 0,$e.prototype.line=void 0,$e.prototype.ancestors=void 0,$e.prototype.cause=void 0,$e.prototype.fatal=void 0,$e.prototype.place=void 0,$e.prototype.ruleId=void 0,$e.prototype.source=void 0;const at={}.hasOwnProperty,ht=new Map,ot=/[A-Z]/g,vt=new Set(["table","tbody","thead","tfoot","tr"]),xt=new Set(["td","th"]),Tt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _t(Pe,Xe){if(!Xe||Xe.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const tt=Xe.filePath||void 0;let gt;if(Xe.development){if(typeof Xe.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");gt=gn(tt,Xe.jsxDEV)}else{if(typeof Xe.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Xe.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");gt=bn(tt,Xe.jsx,Xe.jsxs)}const Mt={Fragment:Xe.Fragment,ancestors:[],components:Xe.components||{},create:gt,elementAttributeNameCase:Xe.elementAttributeNameCase||"react",evaluater:Xe.createEvaluater?Xe.createEvaluater():void 0,filePath:tt,ignoreInvalidStyle:Xe.ignoreInvalidStyle||!1,passKeys:Xe.passKeys!==!1,passNode:Xe.passNode||!1,schema:Xe.space==="svg"?ee.YP:ee.dy,stylePropertyNameCase:Xe.stylePropertyNameCase||"dom",tableCellAlignToStyle:Xe.tableCellAlignToStyle!==!1},Bt=Jt(Mt,Pe,void 0);return Bt&&typeof Bt!="string"?Bt:Mt.create(Pe,Mt.Fragment,{children:Bt||void 0},void 0)}function Jt(Pe,Xe,tt){if(Xe.type==="element")return Zt(Pe,Xe,tt);if(Xe.type==="mdxFlowExpression"||Xe.type==="mdxTextExpression")return vn(Pe,Xe);if(Xe.type==="mdxJsxFlowElement"||Xe.type==="mdxJsxTextElement")return ft(Pe,Xe,tt);if(Xe.type==="mdxjsEsm")return bt(Pe,Xe);if(Xe.type==="root")return ct(Pe,Xe,tt);if(Xe.type==="text")return qt(Pe,Xe)}function Zt(Pe,Xe,tt){const gt=Pe.schema;let Mt=gt;Xe.tagName.toLowerCase()==="svg"&&gt.space==="html"&&(Mt=ee.YP,Pe.schema=Mt),Pe.ancestors.push(Xe);const Bt=Yn(Pe,Xe.tagName,!1),sn=Zn(Pe,Xe);let Cn=Rt(Pe,Xe);return vt.has(Xe.tagName)&&(Cn=Cn.filter(function(yr){return typeof yr=="string"?!Oe(yr):!0})),dn(Pe,sn,Bt,Xe),kt(sn,Cn),Pe.ancestors.pop(),Pe.schema=gt,Pe.create(Xe,Bt,sn,tt)}function vn(Pe,Xe){if(Xe.data&&Xe.data.estree&&Pe.evaluater){const gt=Xe.data.estree.body[0];return(0,Ce.ok)(gt.type==="ExpressionStatement"),Pe.evaluater.evaluateExpression(gt.expression)}nt(Pe,Xe.position)}function bt(Pe,Xe){if(Xe.data&&Xe.data.estree&&Pe.evaluater)return Pe.evaluater.evaluateProgram(Xe.data.estree);nt(Pe,Xe.position)}function ft(Pe,Xe,tt){const gt=Pe.schema;let Mt=gt;Xe.name==="svg"&&gt.space==="html"&&(Mt=ee.YP,Pe.schema=Mt),Pe.ancestors.push(Xe);const Bt=Xe.name===null?Pe.Fragment:Yn(Pe,Xe.name,!0),sn=Gt(Pe,Xe),Cn=Rt(Pe,Xe);return dn(Pe,sn,Bt,Xe),kt(sn,Cn),Pe.ancestors.pop(),Pe.schema=gt,Pe.create(Xe,Bt,sn,tt)}function ct(Pe,Xe,tt){const gt={};return kt(gt,Rt(Pe,Xe)),Pe.create(Xe,Pe.Fragment,gt,tt)}function qt(Pe,Xe){return Xe.value}function dn(Pe,Xe,tt,gt){typeof tt!="string"&&tt!==Pe.Fragment&&Pe.passNode&&(Xe.node=gt)}function kt(Pe,Xe){if(Xe.length>0){const tt=Xe.length>1?Xe:Xe[0];tt&&(Pe.children=tt)}}function bn(Pe,Xe,tt){return gt;function gt(Mt,Bt,sn,Cn){const xr=Array.isArray(sn.children)?tt:Xe;return Cn?xr(Bt,sn,Cn):xr(Bt,sn)}}function gn(Pe,Xe){return tt;function tt(gt,Mt,Bt,sn){const Cn=Array.isArray(Bt.children),yr=(0,be.Pk)(gt);return Xe(Mt,Bt,sn,Cn,{columnNumber:yr?yr.column-1:void 0,fileName:Pe,lineNumber:yr?yr.line:void 0},void 0)}}function Zn(Pe,Xe){const tt={};let gt,Mt;for(Mt in Xe.properties)if(Mt!=="children"&&at.call(Xe.properties,Mt)){const Bt=tn(Pe,Mt,Xe.properties[Mt]);if(Bt){const[sn,Cn]=Bt;Pe.tableCellAlignToStyle&&sn==="align"&&typeof Cn=="string"&&xt.has(Xe.tagName)?gt=Cn:tt[sn]=Cn}}if(gt){const Bt=tt.style||(tt.style={});Bt[Pe.stylePropertyNameCase==="css"?"text-align":"textAlign"]=gt}return tt}function Gt(Pe,Xe){const tt={};for(const gt of Xe.attributes)if(gt.type==="mdxJsxExpressionAttribute")if(gt.data&&gt.data.estree&&Pe.evaluater){const Bt=gt.data.estree.body[0];(0,Ce.ok)(Bt.type==="ExpressionStatement");const sn=Bt.expression;(0,Ce.ok)(sn.type==="ObjectExpression");const Cn=sn.properties[0];(0,Ce.ok)(Cn.type==="SpreadElement"),Object.assign(tt,Pe.evaluater.evaluateExpression(Cn.argument))}else nt(Pe,Xe.position);else{const Mt=gt.name;let Bt;if(gt.value&&typeof gt.value=="object")if(gt.value.data&&gt.value.data.estree&&Pe.evaluater){const Cn=gt.value.data.estree.body[0];(0,Ce.ok)(Cn.type==="ExpressionStatement"),Bt=Pe.evaluater.evaluateExpression(Cn.expression)}else nt(Pe,Xe.position);else Bt=gt.value===null?!0:gt.value;tt[Mt]=Bt}return tt}function Rt(Pe,Xe){const tt=[];let gt=-1;const Mt=Pe.passKeys?new Map:ht;for(;++gt<Xe.children.length;){const Bt=Xe.children[gt];let sn;if(Pe.passKeys){const yr=Bt.type==="element"?Bt.tagName:Bt.type==="mdxJsxFlowElement"||Bt.type==="mdxJsxTextElement"?Bt.name:void 0;if(yr){const xr=Mt.get(yr)||0;sn=yr+"-"+xr,Mt.set(yr,xr+1)}}const Cn=Jt(Pe,Bt,sn);Cn!==void 0&&tt.push(Cn)}return tt}function tn(Pe,Xe,tt){const gt=(0,he.s)(Pe.schema,Xe);if(!(tt==null||typeof tt=="number"&&Number.isNaN(tt))){if(Array.isArray(tt)&&(tt=gt.commaSeparated?(0,ke.P)(tt):(0,fe.P)(tt)),gt.property==="style"){let Mt=typeof tt=="object"?tt:zn(Pe,String(tt));return Pe.stylePropertyNameCase==="css"&&(Mt=Be(Mt)),["style",Mt]}return[Pe.elementAttributeNameCase==="react"&&gt.space?ue[gt.property]||gt.property:gt.attribute,tt]}}function zn(Pe,Xe){try{return me(Xe,{reactCompat:!0})}catch(tt){if(Pe.ignoreInvalidStyle)return{};const gt=tt,Mt=new $e("Cannot parse `style` attribute",{ancestors:Pe.ancestors,cause:gt,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Mt.file=Pe.filePath||void 0,Mt.url=Tt+"#cannot-parse-style-attribute",Mt}}function Yn(Pe,Xe,tt){let gt;if(!tt)gt={type:"Literal",value:Xe};else if(Xe.includes(".")){const Mt=Xe.split(".");let Bt=-1,sn;for(;++Bt<Mt.length;){const Cn=Je(Mt[Bt])?{type:"Identifier",name:Mt[Bt]}:{type:"Literal",value:Mt[Bt]};sn=sn?{type:"MemberExpression",object:sn,property:Cn,computed:!!(Bt&&Cn.type==="Literal"),optional:!1}:Cn}(0,Ce.ok)(sn,"always a result"),gt=sn}else gt=Je(Xe)&&!/^[a-z]/.test(Xe)?{type:"Identifier",name:Xe}:{type:"Literal",value:Xe};if(gt.type==="Literal"){const Mt=gt.value;return at.call(Pe.components,Mt)?Pe.components[Mt]:Mt}if(Pe.evaluater)return Pe.evaluater.evaluateExpression(gt);nt(Pe)}function nt(Pe,Xe){const tt=new $e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:Pe.ancestors,place:Xe,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw tt.file=Pe.filePath||void 0,tt.url=Tt+"#cannot-handle-mdx-estrees-without-createevaluater",tt}function Be(Pe){const Xe={};let tt;for(tt in Pe)at.call(Pe,tt)&&(Xe[Re(tt)]=Pe[tt]);return Xe}function Re(Pe){let Xe=Pe.replace(ot,Ze);return Xe.slice(0,3)==="ms-"&&(Xe="-"+Xe),Xe}function Ze(Pe){return"-"+Pe.toLowerCase()}const st={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 Fe=ae(37712),St=ae(59301);const hn={};function On(Pe,Xe){const tt=Xe||hn,gt=typeof tt.includeImageAlt=="boolean"?tt.includeImageAlt:!0,Mt=typeof tt.includeHtml=="boolean"?tt.includeHtml:!0;return or(Pe,gt,Mt)}function or(Pe,Xe,tt){if(Ut(Pe)){if("value"in Pe)return Pe.type==="html"&&!tt?"":Pe.value;if(Xe&&"alt"in Pe&&Pe.alt)return Pe.alt;if("children"in Pe)return jt(Pe.children,Xe,tt)}return Array.isArray(Pe)?jt(Pe,Xe,tt):""}function jt(Pe,Xe,tt){const gt=[];let Mt=-1;for(;++Mt<Pe.length;)gt[Mt]=or(Pe[Mt],Xe,tt);return gt.join("")}function Ut(Pe){return!!(Pe&&typeof Pe=="object")}function Qt(Pe,Xe,tt,gt){const Mt=Pe.length;let Bt=0,sn;if(Xe<0?Xe=-Xe>Mt?0:Mt+Xe:Xe=Xe>Mt?Mt:Xe,tt=tt>0?tt:0,gt.length<1e4)sn=Array.from(gt),sn.unshift(Xe,tt),Pe.splice(...sn);else for(tt&&Pe.splice(Xe,tt);Bt<gt.length;)sn=gt.slice(Bt,Bt+1e4),sn.unshift(Xe,0),Pe.splice(...sn),Bt+=1e4,Xe+=1e4}function En(Pe,Xe){return Pe.length>0?(Qt(Pe,Pe.length,0,Xe),Pe):Xe}class Mn{constructor(Xe){this.left=Xe?[...Xe]:[],this.right=[]}get(Xe){if(Xe<0||Xe>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Xe+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Xe<this.left.length?this.left[Xe]:this.right[this.right.length-Xe+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Xe,tt){const gt=tt==null?Number.POSITIVE_INFINITY:tt;return gt<this.left.length?this.left.slice(Xe,gt):Xe>this.left.length?this.right.slice(this.right.length-gt+this.left.length,this.right.length-Xe+this.left.length).reverse():this.left.slice(Xe).concat(this.right.slice(this.right.length-gt+this.left.length).reverse())}splice(Xe,tt,gt){const Mt=tt||0;this.setCursor(Math.trunc(Xe));const Bt=this.right.splice(this.right.length-Mt,Number.POSITIVE_INFINITY);return gt&&Tn(this.left,gt),Bt.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Xe){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Xe)}pushMany(Xe){this.setCursor(Number.POSITIVE_INFINITY),Tn(this.left,Xe)}unshift(Xe){this.setCursor(0),this.right.push(Xe)}unshiftMany(Xe){this.setCursor(0),Tn(this.right,Xe.reverse())}setCursor(Xe){if(!(Xe===this.left.length||Xe>this.left.length&&this.right.length===0||Xe<0&&this.left.length===0))if(Xe<this.left.length){const tt=this.left.splice(Xe,Number.POSITIVE_INFINITY);Tn(this.right,tt.reverse())}else{const tt=this.right.splice(this.left.length+this.right.length-Xe,Number.POSITIVE_INFINITY);Tn(this.left,tt.reverse())}}}function Tn(Pe,Xe){let tt=0;if(Xe.length<1e4)Pe.push(...Xe);else for(;tt<Xe.length;)Pe.push(...Xe.slice(tt,tt+1e4)),tt+=1e4}function Ht(Pe){const Xe={};let tt=-1,gt,Mt,Bt,sn,Cn,yr,xr;const nr=new Mn(Pe);for(;++tt<nr.length;){for(;tt in Xe;)tt=Xe[tt];if(gt=nr.get(tt),tt&&gt[1].type==="chunkFlow"&&nr.get(tt-1)[1].type==="listItemPrefix"&&(yr=gt[1]._tokenizer.events,Bt=0,Bt<yr.length&&yr[Bt][1].type==="lineEndingBlank"&&(Bt+=2),Bt<yr.length&&yr[Bt][1].type==="content"))for(;++Bt<yr.length&&yr[Bt][1].type!=="content";)yr[Bt][1].type==="chunkText"&&(yr[Bt][1]._isInFirstContentOfListItem=!0,Bt++);if(gt[0]==="enter")gt[1].contentType&&(Object.assign(Xe,Vn(nr,tt)),tt=Xe[tt],xr=!0);else if(gt[1]._container){for(Bt=tt,Mt=void 0;Bt--;)if(sn=nr.get(Bt),sn[1].type==="lineEnding"||sn[1].type==="lineEndingBlank")sn[0]==="enter"&&(Mt&&(nr.get(Mt)[1].type="lineEndingBlank"),sn[1].type="lineEnding",Mt=Bt);else if(!(sn[1].type==="linePrefix"||sn[1].type==="listItemIndent"))break;Mt&&(gt[1].end=xa({},nr.get(Mt)[1].start),Cn=nr.slice(Mt,tt),Cn.unshift(gt),nr.splice(Mt,tt-Mt+1,Cn))}}return Qt(Pe,0,Number.POSITIVE_INFINITY,nr.slice(0)),!xr}function Vn(Pe,Xe){const tt=Pe.get(Xe)[1],gt=Pe.get(Xe)[2];let Mt=Xe-1;const Bt=[];let sn=tt._tokenizer;sn||(sn=gt.parser[tt.contentType](tt.start),tt._contentTypeTextTrailing&&(sn._contentTypeTextTrailing=!0));const Cn=sn.events,yr=[],xr={};let nr,Zr,zr=-1,ur=tt,Po=0,jo=0;const ea=[jo];for(;ur;){for(;Pe.get(++Mt)[1]!==ur;);Bt.push(Mt),ur._tokenizer||(nr=gt.sliceStream(ur),ur.next||nr.push(null),Zr&&sn.defineSkip(ur.start),ur._isInFirstContentOfListItem&&(sn._gfmTasklistFirstContentOfListItem=!0),sn.write(nr),ur._isInFirstContentOfListItem&&(sn._gfmTasklistFirstContentOfListItem=void 0)),Zr=ur,ur=ur.next}for(ur=tt;++zr<Cn.length;)Cn[zr][0]==="exit"&&Cn[zr-1][0]==="enter"&&Cn[zr][1].type===Cn[zr-1][1].type&&Cn[zr][1].start.line!==Cn[zr][1].end.line&&(jo=zr+1,ea.push(jo),ur._tokenizer=void 0,ur.previous=void 0,ur=ur.next);for(sn.events=[],ur?(ur._tokenizer=void 0,ur.previous=void 0):ea.pop(),zr=ea.length;zr--;){const so=Cn.slice(ea[zr],ea[zr+1]),To=Bt.pop();yr.push([To,To+so.length-1]),Pe.splice(To,2,so)}for(yr.reverse(),zr=-1;++zr<yr.length;)xr[Po+yr[zr][0]]=Po+yr[zr][1],Po+=yr[zr][1]-yr[zr][0]-1;return xr}function Xt(Pe){for(;!Ht(Pe););return Pe}const nn={}.hasOwnProperty;function fn(Pe){const Xe={};let tt=-1;for(;++tt<Pe.length;)Gn(Xe,Pe[tt]);return Xe}function Gn(Pe,Xe){let tt;for(tt in Xe){const Mt=(nn.call(Pe,tt)?Pe[tt]:void 0)||(Pe[tt]={}),Bt=Xe[tt];let sn;if(Bt)for(sn in Bt){nn.call(Mt,sn)||(Mt[sn]=[]);const Cn=Bt[sn];cn(Mt[sn],Array.isArray(Cn)?Cn:Cn?[Cn]:[])}}}function cn(Pe,Xe){let tt=-1;const gt=[];for(;++tt<Xe.length;)(Xe[tt].add==="after"?Pe:gt).push(Xe[tt]);Qt(Pe,0,0,gt)}function Et(Pe){const Xe={};let tt=-1;for(;++tt<Pe.length;)Jn(Xe,Pe[tt]);return Xe}function Jn(Pe,Xe){let tt;for(tt in Xe){const Mt=(nn.call(Pe,tt)?Pe[tt]:void 0)||(Pe[tt]={}),Bt=Xe[tt];let sn;if(Bt)for(sn in Bt)Mt[sn]=Bt[sn]}}var ir=ae(26735),Wt=ae(80722);const wr={tokenize:ei};function ei(Pe){const Xe=Pe.attempt(this.parser.constructs.contentInitial,gt,Mt);let tt;return Xe;function gt(Cn){if(Cn===null){Pe.consume(Cn);return}return Pe.enter("lineEnding"),Pe.consume(Cn),Pe.exit("lineEnding"),(0,ir.f)(Pe,Xe,"linePrefix")}function Mt(Cn){return Pe.enter("paragraph"),Bt(Cn)}function Bt(Cn){const yr=Pe.enter("chunkText",{contentType:"text",previous:tt});return tt&&(tt.next=yr),tt=yr,sn(Cn)}function sn(Cn){if(Cn===null){Pe.exit("chunkText"),Pe.exit("paragraph"),Pe.consume(Cn);return}return(0,Wt.Ch)(Cn)?(Pe.consume(Cn),Pe.exit("chunkText"),Bt):(Pe.consume(Cn),sn)}}const Fr={tokenize:ii},Dn={tokenize:Kr};function ii(Pe){const Xe=this,tt=[];let gt=0,Mt,Bt,sn;return Cn;function Cn(Bo){if(gt<tt.length){const Xa=tt[gt];return Xe.containerState=Xa[1],Pe.attempt(Xa[0].continuation,yr,xr)(Bo)}return xr(Bo)}function yr(Bo){if(gt++,Xe.containerState._closeFlow){Xe.containerState._closeFlow=void 0,Mt&&To();const Xa=Xe.events.length;let Qa=Xa,Wi;for(;Qa--;)if(Xe.events[Qa][0]==="exit"&&Xe.events[Qa][1].type==="chunkFlow"){Wi=Xe.events[Qa][1].end;break}so(gt);let ka=Xa;for(;ka<Xe.events.length;)Xe.events[ka][1].end=xa({},Wi),ka++;return Qt(Xe.events,Qa+1,0,Xe.events.slice(Xa)),Xe.events.length=ka,xr(Bo)}return Cn(Bo)}function xr(Bo){if(gt===tt.length){if(!Mt)return zr(Bo);if(Mt.currentConstruct&&Mt.currentConstruct.concrete)return Po(Bo);Xe.interrupt=!!(Mt.currentConstruct&&!Mt._gfmTableDynamicInterruptHack)}return Xe.containerState={},Pe.check(Dn,nr,Zr)(Bo)}function nr(Bo){return Mt&&To(),so(gt),zr(Bo)}function Zr(Bo){return Xe.parser.lazy[Xe.now().line]=gt!==tt.length,sn=Xe.now().offset,Po(Bo)}function zr(Bo){return Xe.containerState={},Pe.attempt(Dn,ur,Po)(Bo)}function ur(Bo){return gt++,tt.push([Xe.currentConstruct,Xe.containerState]),zr(Bo)}function Po(Bo){if(Bo===null){Mt&&To(),so(0),Pe.consume(Bo);return}return Mt=Mt||Xe.parser.flow(Xe.now()),Pe.enter("chunkFlow",{_tokenizer:Mt,contentType:"flow",previous:Bt}),jo(Bo)}function jo(Bo){if(Bo===null){ea(Pe.exit("chunkFlow"),!0),so(0),Pe.consume(Bo);return}return(0,Wt.Ch)(Bo)?(Pe.consume(Bo),ea(Pe.exit("chunkFlow")),gt=0,Xe.interrupt=void 0,Cn):(Pe.consume(Bo),jo)}function ea(Bo,Xa){const Qa=Xe.sliceStream(Bo);if(Xa&&Qa.push(null),Bo.previous=Bt,Bt&&(Bt.next=Bo),Bt=Bo,Mt.defineSkip(Bo.start),Mt.write(Qa),Xe.parser.lazy[Bo.start.line]){let Wi=Mt.events.length;for(;Wi--;)if(Mt.events[Wi][1].start.offset<sn&&(!Mt.events[Wi][1].end||Mt.events[Wi][1].end.offset>sn))return;const ka=Xe.events.length;let ws=ka,Ua,xo;for(;ws--;)if(Xe.events[ws][0]==="exit"&&Xe.events[ws][1].type==="chunkFlow"){if(Ua){xo=Xe.events[ws][1].end;break}Ua=!0}for(so(gt),Wi=ka;Wi<Xe.events.length;)Xe.events[Wi][1].end=xa({},xo),Wi++;Qt(Xe.events,ws+1,0,Xe.events.slice(ka)),Xe.events.length=Wi}}function so(Bo){let Xa=tt.length;for(;Xa-- >Bo;){const Qa=tt[Xa];Xe.containerState=Qa[1],Qa[0].exit.call(Xe,Pe)}tt.length=Bo}function To(){Mt.write([null]),Bt=void 0,Mt=void 0,Xe.containerState._closeFlow=void 0}}function Kr(Pe,Xe,tt){return(0,ir.f)(Pe,Pe.attempt(this.parser.constructs.document,Xe,tt),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const cr={partial:!0,tokenize:Dr};function Dr(Pe,Xe,tt){return gt;function gt(Bt){return(0,Wt.xz)(Bt)?(0,ir.f)(Pe,Mt,"linePrefix")(Bt):Mt(Bt)}function Mt(Bt){return Bt===null||(0,Wt.Ch)(Bt)?Xe(Bt):tt(Bt)}}const ri={resolve:Mr,tokenize:Tr},_e={partial:!0,tokenize:sr};function Mr(Pe){return Ht(Pe),Pe}function Tr(Pe,Xe){let tt;return gt;function gt(Cn){return Pe.enter("content"),tt=Pe.enter("chunkContent",{contentType:"content"}),Mt(Cn)}function Mt(Cn){return Cn===null?Bt(Cn):(0,Wt.Ch)(Cn)?Pe.check(_e,sn,Bt)(Cn):(Pe.consume(Cn),Mt)}function Bt(Cn){return Pe.exit("chunkContent"),Pe.exit("content"),Xe(Cn)}function sn(Cn){return Pe.consume(Cn),Pe.exit("chunkContent"),tt.next=Pe.enter("chunkContent",{contentType:"content",previous:tt}),tt=tt.next,Mt}}function sr(Pe,Xe,tt){const gt=this;return Mt;function Mt(sn){return Pe.exit("chunkContent"),Pe.enter("lineEnding"),Pe.consume(sn),Pe.exit("lineEnding"),(0,ir.f)(Pe,Bt,"linePrefix")}function Bt(sn){if(sn===null||(0,Wt.Ch)(sn))return tt(sn);const Cn=gt.events[gt.events.length-1];return!gt.parser.constructs.disable.null.includes("codeIndented")&&Cn&&Cn[1].type==="linePrefix"&&Cn[2].sliceSerialize(Cn[1],!0).length>=4?Xe(sn):Pe.interrupt(gt.parser.constructs.flow,tt,Xe)(sn)}}const _r={tokenize:Gr};function Gr(Pe){const Xe=this,tt=Pe.attempt(cr,gt,Pe.attempt(this.parser.constructs.flowInitial,Mt,(0,ir.f)(Pe,Pe.attempt(this.parser.constructs.flow,Mt,Pe.attempt(ri,Mt)),"linePrefix")));return tt;function gt(Bt){if(Bt===null){Pe.consume(Bt);return}return Pe.enter("lineEndingBlank"),Pe.consume(Bt),Pe.exit("lineEndingBlank"),Xe.currentConstruct=void 0,tt}function Mt(Bt){if(Bt===null){Pe.consume(Bt);return}return Pe.enter("lineEnding"),Pe.consume(Bt),Pe.exit("lineEnding"),Xe.currentConstruct=void 0,tt}}const br={resolveAll:Sn()},Ci=Pn("string"),Rn=Pn("text");function Pn(Pe){return{resolveAll:Sn(Pe==="text"?$n:void 0),tokenize:Xe};function Xe(tt){const gt=this,Mt=this.parser.constructs[Pe],Bt=tt.attempt(Mt,sn,Cn);return sn;function sn(nr){return xr(nr)?Bt(nr):Cn(nr)}function Cn(nr){if(nr===null){tt.consume(nr);return}return tt.enter("data"),tt.consume(nr),yr}function yr(nr){return xr(nr)?(tt.exit("data"),Bt(nr)):(tt.consume(nr),yr)}function xr(nr){if(nr===null)return!0;const Zr=Mt[nr];let zr=-1;if(Zr)for(;++zr<Zr.length;){const ur=Zr[zr];if(!ur.previous||ur.previous.call(gt,gt.previous))return!0}return!1}}}function Sn(Pe){return Xe;function Xe(tt,gt){let Mt=-1,Bt;for(;++Mt<=tt.length;)Bt===void 0?tt[Mt]&&tt[Mt][1].type==="data"&&(Bt=Mt,Mt++):(!tt[Mt]||tt[Mt][1].type!=="data")&&(Mt!==Bt+2&&(tt[Bt][1].end=tt[Mt-1][1].end,tt.splice(Bt+2,Mt-Bt-2),Mt=Bt+2),Bt=void 0);return Pe?Pe(tt,gt):tt}}function $n(Pe,Xe){let tt=0;for(;++tt<=Pe.length;)if((tt===Pe.length||Pe[tt][1].type==="lineEnding")&&Pe[tt-1][1].type==="data"){const gt=Pe[tt-1][1],Mt=Xe.sliceStream(gt);let Bt=Mt.length,sn=-1,Cn=0,yr;for(;Bt--;){const xr=Mt[Bt];if(typeof xr=="string"){for(sn=xr.length;xr.charCodeAt(sn-1)===32;)Cn++,sn--;if(sn)break;sn=-1}else if(xr===-2)yr=!0,Cn++;else if(xr!==-1){Bt++;break}}if(Xe._contentTypeTextTrailing&&tt===Pe.length&&(Cn=0),Cn){const xr={type:tt===Pe.length||yr||Cn<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Bt?sn:gt.start._bufferIndex+sn,_index:gt.start._index+Bt,line:gt.end.line,column:gt.end.column-Cn,offset:gt.end.offset-Cn},end:xa({},gt.end)};gt.end=xa({},xr.start),gt.start.offset===gt.end.offset?Object.assign(gt,xr):(Pe.splice(tt,0,["enter",xr,Xe],["exit",xr,Xe]),tt+=2)}tt++}return Pe}const li={name:"thematicBreak",tokenize:Yr};function Yr(Pe,Xe,tt){let gt=0,Mt;return Bt;function Bt(xr){return Pe.enter("thematicBreak"),sn(xr)}function sn(xr){return Mt=xr,Cn(xr)}function Cn(xr){return xr===Mt?(Pe.enter("thematicBreakSequence"),yr(xr)):gt>=3&&(xr===null||(0,Wt.Ch)(xr))?(Pe.exit("thematicBreak"),Xe(xr)):tt(xr)}function yr(xr){return xr===Mt?(Pe.consume(xr),gt++,yr):(Pe.exit("thematicBreakSequence"),(0,Wt.xz)(xr)?(0,ir.f)(Pe,Cn,"whitespace")(xr):Cn(xr))}}const ci={continuation:{tokenize:bi},exit:Lt,name:"list",tokenize:oi},_n={partial:!0,tokenize:ln},dr={partial:!0,tokenize:Pr};function oi(Pe,Xe,tt){const gt=this,Mt=gt.events[gt.events.length-1];let Bt=Mt&&Mt[1].type==="linePrefix"?Mt[2].sliceSerialize(Mt[1],!0).length:0,sn=0;return Cn;function Cn(ur){const Po=gt.containerState.type||(ur===42||ur===43||ur===45?"listUnordered":"listOrdered");if(Po==="listUnordered"?!gt.containerState.marker||ur===gt.containerState.marker:(0,Wt.pY)(ur)){if(gt.containerState.type||(gt.containerState.type=Po,Pe.enter(Po,{_container:!0})),Po==="listUnordered")return Pe.enter("listItemPrefix"),ur===42||ur===45?Pe.check(li,tt,xr)(ur):xr(ur);if(!gt.interrupt||ur===49)return Pe.enter("listItemPrefix"),Pe.enter("listItemValue"),yr(ur)}return tt(ur)}function yr(ur){return(0,Wt.pY)(ur)&&++sn<10?(Pe.consume(ur),yr):(!gt.interrupt||sn<2)&&(gt.containerState.marker?ur===gt.containerState.marker:ur===41||ur===46)?(Pe.exit("listItemValue"),xr(ur)):tt(ur)}function xr(ur){return Pe.enter("listItemMarker"),Pe.consume(ur),Pe.exit("listItemMarker"),gt.containerState.marker=gt.containerState.marker||ur,Pe.check(cr,gt.interrupt?tt:nr,Pe.attempt(_n,zr,Zr))}function nr(ur){return gt.containerState.initialBlankLine=!0,Bt++,zr(ur)}function Zr(ur){return(0,Wt.xz)(ur)?(Pe.enter("listItemPrefixWhitespace"),Pe.consume(ur),Pe.exit("listItemPrefixWhitespace"),zr):tt(ur)}function zr(ur){return gt.containerState.size=Bt+gt.sliceSerialize(Pe.exit("listItemPrefix"),!0).length,Xe(ur)}}function bi(Pe,Xe,tt){const gt=this;return gt.containerState._closeFlow=void 0,Pe.check(cr,Mt,Bt);function Mt(Cn){return gt.containerState.furtherBlankLines=gt.containerState.furtherBlankLines||gt.containerState.initialBlankLine,(0,ir.f)(Pe,Xe,"listItemIndent",gt.containerState.size+1)(Cn)}function Bt(Cn){return gt.containerState.furtherBlankLines||!(0,Wt.xz)(Cn)?(gt.containerState.furtherBlankLines=void 0,gt.containerState.initialBlankLine=void 0,sn(Cn)):(gt.containerState.furtherBlankLines=void 0,gt.containerState.initialBlankLine=void 0,Pe.attempt(dr,Xe,sn)(Cn))}function sn(Cn){return gt.containerState._closeFlow=!0,gt.interrupt=void 0,(0,ir.f)(Pe,Pe.attempt(ci,Xe,tt),"linePrefix",gt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Cn)}}function Pr(Pe,Xe,tt){const gt=this;return(0,ir.f)(Pe,Mt,"listItemIndent",gt.containerState.size+1);function Mt(Bt){const sn=gt.events[gt.events.length-1];return sn&&sn[1].type==="listItemIndent"&&sn[2].sliceSerialize(sn[1],!0).length===gt.containerState.size?Xe(Bt):tt(Bt)}}function Lt(Pe){Pe.exit(this.containerState.type)}function ln(Pe,Xe,tt){const gt=this;return(0,ir.f)(Pe,Mt,"listItemPrefixWhitespace",gt.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Mt(Bt){const sn=gt.events[gt.events.length-1];return!(0,Wt.xz)(Bt)&&sn&&sn[1].type==="listItemPrefixWhitespace"?Xe(Bt):tt(Bt)}}const Nr={continuation:{tokenize:Yt},exit:Nn,name:"blockQuote",tokenize:Er};function Er(Pe,Xe,tt){const gt=this;return Mt;function Mt(sn){if(sn===62){const Cn=gt.containerState;return Cn.open||(Pe.enter("blockQuote",{_container:!0}),Cn.open=!0),Pe.enter("blockQuotePrefix"),Pe.enter("blockQuoteMarker"),Pe.consume(sn),Pe.exit("blockQuoteMarker"),Bt}return tt(sn)}function Bt(sn){return(0,Wt.xz)(sn)?(Pe.enter("blockQuotePrefixWhitespace"),Pe.consume(sn),Pe.exit("blockQuotePrefixWhitespace"),Pe.exit("blockQuotePrefix"),Xe):(Pe.exit("blockQuotePrefix"),Xe(sn))}}function Yt(Pe,Xe,tt){const gt=this;return Mt;function Mt(sn){return(0,Wt.xz)(sn)?(0,ir.f)(Pe,Bt,"linePrefix",gt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(sn):Bt(sn)}function Bt(sn){return Pe.attempt(Nr,Xe,tt)(sn)}}function Nn(Pe){Pe.exit("blockQuote")}function Xr(Pe,Xe,tt,gt,Mt,Bt,sn,Cn,yr){const xr=yr||Number.POSITIVE_INFINITY;let nr=0;return Zr;function Zr(so){return so===60?(Pe.enter(gt),Pe.enter(Mt),Pe.enter(Bt),Pe.consume(so),Pe.exit(Bt),zr):so===null||so===32||so===41||(0,Wt.Av)(so)?tt(so):(Pe.enter(gt),Pe.enter(sn),Pe.enter(Cn),Pe.enter("chunkString",{contentType:"string"}),jo(so))}function zr(so){return so===62?(Pe.enter(Bt),Pe.consume(so),Pe.exit(Bt),Pe.exit(Mt),Pe.exit(gt),Xe):(Pe.enter(Cn),Pe.enter("chunkString",{contentType:"string"}),ur(so))}function ur(so){return so===62?(Pe.exit("chunkString"),Pe.exit(Cn),zr(so)):so===null||so===60||(0,Wt.Ch)(so)?tt(so):(Pe.consume(so),so===92?Po:ur)}function Po(so){return so===60||so===62||so===92?(Pe.consume(so),ur):ur(so)}function jo(so){return!nr&&(so===null||so===41||(0,Wt.z3)(so))?(Pe.exit("chunkString"),Pe.exit(Cn),Pe.exit(sn),Pe.exit(gt),Xe(so)):nr<xr&&so===40?(Pe.consume(so),nr++,jo):so===41?(Pe.consume(so),nr--,jo):so===null||so===32||so===40||(0,Wt.Av)(so)?tt(so):(Pe.consume(so),so===92?ea:jo)}function ea(so){return so===40||so===41||so===92?(Pe.consume(so),jo):jo(so)}}function Ln(Pe,Xe,tt,gt,Mt,Bt){const sn=this;let Cn=0,yr;return xr;function xr(ur){return Pe.enter(gt),Pe.enter(Mt),Pe.consume(ur),Pe.exit(Mt),Pe.enter(Bt),nr}function nr(ur){return Cn>999||ur===null||ur===91||ur===93&&!yr||ur===94&&!Cn&&"_hiddenFootnoteSupport"in sn.parser.constructs?tt(ur):ur===93?(Pe.exit(Bt),Pe.enter(Mt),Pe.consume(ur),Pe.exit(Mt),Pe.exit(gt),Xe):(0,Wt.Ch)(ur)?(Pe.enter("lineEnding"),Pe.consume(ur),Pe.exit("lineEnding"),nr):(Pe.enter("chunkString",{contentType:"string"}),Zr(ur))}function Zr(ur){return ur===null||ur===91||ur===93||(0,Wt.Ch)(ur)||Cn++>999?(Pe.exit("chunkString"),nr(ur)):(Pe.consume(ur),yr||(yr=!(0,Wt.xz)(ur)),ur===92?zr:Zr)}function zr(ur){return ur===91||ur===92||ur===93?(Pe.consume(ur),Cn++,Zr):Zr(ur)}}function Ve(Pe,Xe,tt,gt,Mt,Bt){let sn;return Cn;function Cn(zr){return zr===34||zr===39||zr===40?(Pe.enter(gt),Pe.enter(Mt),Pe.consume(zr),Pe.exit(Mt),sn=zr===40?41:zr,yr):tt(zr)}function yr(zr){return zr===sn?(Pe.enter(Mt),Pe.consume(zr),Pe.exit(Mt),Pe.exit(gt),Xe):(Pe.enter(Bt),xr(zr))}function xr(zr){return zr===sn?(Pe.exit(Bt),yr(sn)):zr===null?tt(zr):(0,Wt.Ch)(zr)?(Pe.enter("lineEnding"),Pe.consume(zr),Pe.exit("lineEnding"),(0,ir.f)(Pe,xr,"linePrefix")):(Pe.enter("chunkString",{contentType:"string"}),nr(zr))}function nr(zr){return zr===sn||zr===null||(0,Wt.Ch)(zr)?(Pe.exit("chunkString"),xr(zr)):(Pe.consume(zr),zr===92?Zr:nr)}function Zr(zr){return zr===sn||zr===92?(Pe.consume(zr),nr):nr(zr)}}function Rr(Pe,Xe){let tt;return gt;function gt(Mt){return(0,Wt.Ch)(Mt)?(Pe.enter("lineEnding"),Pe.consume(Mt),Pe.exit("lineEnding"),tt=!0,gt):(0,Wt.xz)(Mt)?(0,ir.f)(Pe,gt,tt?"linePrefix":"lineSuffix")(Mt):Xe(Mt)}}function kr(Pe){return Pe.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jn={name:"definition",tokenize:jr},hi={partial:!0,tokenize:ar};function jr(Pe,Xe,tt){const gt=this;let Mt;return Bt;function Bt(ur){return Pe.enter("definition"),sn(ur)}function sn(ur){return Ln.call(gt,Pe,Cn,tt,"definitionLabel","definitionLabelMarker","definitionLabelString")(ur)}function Cn(ur){return Mt=kr(gt.sliceSerialize(gt.events[gt.events.length-1][1]).slice(1,-1)),ur===58?(Pe.enter("definitionMarker"),Pe.consume(ur),Pe.exit("definitionMarker"),yr):tt(ur)}function yr(ur){return(0,Wt.z3)(ur)?Rr(Pe,xr)(ur):xr(ur)}function xr(ur){return Xr(Pe,nr,tt,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(ur)}function nr(ur){return Pe.attempt(hi,Zr,Zr)(ur)}function Zr(ur){return(0,Wt.xz)(ur)?(0,ir.f)(Pe,zr,"whitespace")(ur):zr(ur)}function zr(ur){return ur===null||(0,Wt.Ch)(ur)?(Pe.exit("definition"),gt.parser.defined.push(Mt),Xe(ur)):tt(ur)}}function ar(Pe,Xe,tt){return gt;function gt(Cn){return(0,Wt.z3)(Cn)?Rr(Pe,Mt)(Cn):tt(Cn)}function Mt(Cn){return Ve(Pe,Bt,tt,"definitionTitle","definitionTitleMarker","definitionTitleString")(Cn)}function Bt(Cn){return(0,Wt.xz)(Cn)?(0,ir.f)(Pe,sn,"whitespace")(Cn):sn(Cn)}function sn(Cn){return Cn===null||(0,Wt.Ch)(Cn)?Xe(Cn):tt(Cn)}}const Qr={name:"codeIndented",tokenize:Ti},un={partial:!0,tokenize:eo};function Ti(Pe,Xe,tt){const gt=this;return Mt;function Mt(xr){return Pe.enter("codeIndented"),(0,ir.f)(Pe,Bt,"linePrefix",5)(xr)}function Bt(xr){const nr=gt.events[gt.events.length-1];return nr&&nr[1].type==="linePrefix"&&nr[2].sliceSerialize(nr[1],!0).length>=4?sn(xr):tt(xr)}function sn(xr){return xr===null?yr(xr):(0,Wt.Ch)(xr)?Pe.attempt(un,sn,yr)(xr):(Pe.enter("codeFlowValue"),Cn(xr))}function Cn(xr){return xr===null||(0,Wt.Ch)(xr)?(Pe.exit("codeFlowValue"),sn(xr)):(Pe.consume(xr),Cn)}function yr(xr){return Pe.exit("codeIndented"),Xe(xr)}}function eo(Pe,Xe,tt){const gt=this;return Mt;function Mt(sn){return gt.parser.lazy[gt.now().line]?tt(sn):(0,Wt.Ch)(sn)?(Pe.enter("lineEnding"),Pe.consume(sn),Pe.exit("lineEnding"),Mt):(0,ir.f)(Pe,Bt,"linePrefix",5)(sn)}function Bt(sn){const Cn=gt.events[gt.events.length-1];return Cn&&Cn[1].type==="linePrefix"&&Cn[2].sliceSerialize(Cn[1],!0).length>=4?Xe(sn):(0,Wt.Ch)(sn)?Mt(sn):tt(sn)}}const mn={name:"headingAtx",resolve:wi,tokenize:Di};function wi(Pe,Xe){let tt=Pe.length-2,gt=3,Mt,Bt;return Pe[gt][1].type==="whitespace"&&(gt+=2),tt-2>gt&&Pe[tt][1].type==="whitespace"&&(tt-=2),Pe[tt][1].type==="atxHeadingSequence"&&(gt===tt-1||tt-4>gt&&Pe[tt-2][1].type==="whitespace")&&(tt-=gt+1===tt?2:4),tt>gt&&(Mt={type:"atxHeadingText",start:Pe[gt][1].start,end:Pe[tt][1].end},Bt={type:"chunkText",start:Pe[gt][1].start,end:Pe[tt][1].end,contentType:"text"},Qt(Pe,gt,tt-gt+1,[["enter",Mt,Xe],["enter",Bt,Xe],["exit",Bt,Xe],["exit",Mt,Xe]])),Pe}function Di(Pe,Xe,tt){let gt=0;return Mt;function Mt(nr){return Pe.enter("atxHeading"),Bt(nr)}function Bt(nr){return Pe.enter("atxHeadingSequence"),sn(nr)}function sn(nr){return nr===35&&gt++<6?(Pe.consume(nr),sn):nr===null||(0,Wt.z3)(nr)?(Pe.exit("atxHeadingSequence"),Cn(nr)):tt(nr)}function Cn(nr){return nr===35?(Pe.enter("atxHeadingSequence"),yr(nr)):nr===null||(0,Wt.Ch)(nr)?(Pe.exit("atxHeading"),Xe(nr)):(0,Wt.xz)(nr)?(0,ir.f)(Pe,Cn,"whitespace")(nr):(Pe.enter("atxHeadingText"),xr(nr))}function yr(nr){return nr===35?(Pe.consume(nr),yr):(Pe.exit("atxHeadingSequence"),Cn(nr))}function xr(nr){return nr===null||nr===35||(0,Wt.z3)(nr)?(Pe.exit("atxHeadingText"),Cn(nr)):(Pe.consume(nr),xr)}}const gi={name:"setextUnderline",resolveTo:ki,tokenize:zi};function ki(Pe,Xe){let tt=Pe.length,gt,Mt,Bt;for(;tt--;)if(Pe[tt][0]==="enter"){if(Pe[tt][1].type==="content"){gt=tt;break}Pe[tt][1].type==="paragraph"&&(Mt=tt)}else Pe[tt][1].type==="content"&&Pe.splice(tt,1),!Bt&&Pe[tt][1].type==="definition"&&(Bt=tt);const sn={type:"setextHeading",start:xa({},Pe[gt][1].start),end:xa({},Pe[Pe.length-1][1].end)};return Pe[Mt][1].type="setextHeadingText",Bt?(Pe.splice(Mt,0,["enter",sn,Xe]),Pe.splice(Bt+1,0,["exit",Pe[gt][1],Xe]),Pe[gt][1].end=xa({},Pe[Bt][1].end)):Pe[gt][1]=sn,Pe.push(["exit",sn,Xe]),Pe}function zi(Pe,Xe,tt){const gt=this;let Mt;return Bt;function Bt(xr){let nr=gt.events.length,Zr;for(;nr--;)if(gt.events[nr][1].type!=="lineEnding"&&gt.events[nr][1].type!=="linePrefix"&&gt.events[nr][1].type!=="content"){Zr=gt.events[nr][1].type==="paragraph";break}return!gt.parser.lazy[gt.now().line]&&(gt.interrupt||Zr)?(Pe.enter("setextHeadingLine"),Mt=xr,sn(xr)):tt(xr)}function sn(xr){return Pe.enter("setextHeadingLineSequence"),Cn(xr)}function Cn(xr){return xr===Mt?(Pe.consume(xr),Cn):(Pe.exit("setextHeadingLineSequence"),(0,Wt.xz)(xr)?(0,ir.f)(Pe,yr,"lineSuffix")(xr):yr(xr))}function yr(xr){return xr===null||(0,Wt.Ch)(xr)?(Pe.exit("setextHeadingLine"),Xe(xr)):tt(xr)}}const ro=["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"],Gi=["pre","script","style","textarea"],Fi={concrete:!0,name:"htmlFlow",resolveTo:Ui,tokenize:lr},io={partial:!0,tokenize:Vi},qn={partial:!0,tokenize:vi};function Ui(Pe){let Xe=Pe.length;for(;Xe--&&!(Pe[Xe][0]==="enter"&&Pe[Xe][1].type==="htmlFlow"););return Xe>1&&Pe[Xe-2][1].type==="linePrefix"&&(Pe[Xe][1].start=Pe[Xe-2][1].start,Pe[Xe+1][1].start=Pe[Xe-2][1].start,Pe.splice(Xe-2,2)),Pe}function lr(Pe,Xe,tt){const gt=this;let Mt,Bt,sn,Cn,yr;return xr;function xr(Br){return nr(Br)}function nr(Br){return Pe.enter("htmlFlow"),Pe.enter("htmlFlowData"),Pe.consume(Br),Zr}function Zr(Br){return Br===33?(Pe.consume(Br),zr):Br===47?(Pe.consume(Br),Bt=!0,jo):Br===63?(Pe.consume(Br),Mt=3,gt.interrupt?Xe:Lr):(0,Wt.jv)(Br)?(Pe.consume(Br),sn=String.fromCharCode(Br),ea):tt(Br)}function zr(Br){return Br===45?(Pe.consume(Br),Mt=2,ur):Br===91?(Pe.consume(Br),Mt=5,Cn=0,Po):(0,Wt.jv)(Br)?(Pe.consume(Br),Mt=4,gt.interrupt?Xe:Lr):tt(Br)}function ur(Br){return Br===45?(Pe.consume(Br),gt.interrupt?Xe:Lr):tt(Br)}function Po(Br){const xl="CDATA[";return Br===xl.charCodeAt(Cn++)?(Pe.consume(Br),Cn===xl.length?gt.interrupt?Xe:is:Po):tt(Br)}function jo(Br){return(0,Wt.jv)(Br)?(Pe.consume(Br),sn=String.fromCharCode(Br),ea):tt(Br)}function ea(Br){if(Br===null||Br===47||Br===62||(0,Wt.z3)(Br)){const xl=Br===47,Jl=sn.toLowerCase();return!xl&&!Bt&&Gi.includes(Jl)?(Mt=1,gt.interrupt?Xe(Br):is(Br)):ro.includes(sn.toLowerCase())?(Mt=6,xl?(Pe.consume(Br),so):gt.interrupt?Xe(Br):is(Br)):(Mt=7,gt.interrupt&&!gt.parser.lazy[gt.now().line]?tt(Br):Bt?To(Br):Bo(Br))}return Br===45||(0,Wt.H$)(Br)?(Pe.consume(Br),sn+=String.fromCharCode(Br),ea):tt(Br)}function so(Br){return Br===62?(Pe.consume(Br),gt.interrupt?Xe:is):tt(Br)}function To(Br){return(0,Wt.xz)(Br)?(Pe.consume(Br),To):xo(Br)}function Bo(Br){return Br===47?(Pe.consume(Br),xo):Br===58||Br===95||(0,Wt.jv)(Br)?(Pe.consume(Br),Xa):(0,Wt.xz)(Br)?(Pe.consume(Br),Bo):xo(Br)}function Xa(Br){return Br===45||Br===46||Br===58||Br===95||(0,Wt.H$)(Br)?(Pe.consume(Br),Xa):Qa(Br)}function Qa(Br){return Br===61?(Pe.consume(Br),Wi):(0,Wt.xz)(Br)?(Pe.consume(Br),Qa):Bo(Br)}function Wi(Br){return Br===null||Br===60||Br===61||Br===62||Br===96?tt(Br):Br===34||Br===39?(Pe.consume(Br),yr=Br,ka):(0,Wt.xz)(Br)?(Pe.consume(Br),Wi):ws(Br)}function ka(Br){return Br===yr?(Pe.consume(Br),yr=null,Ua):Br===null||(0,Wt.Ch)(Br)?tt(Br):(Pe.consume(Br),ka)}function ws(Br){return Br===null||Br===34||Br===39||Br===47||Br===60||Br===61||Br===62||Br===96||(0,Wt.z3)(Br)?Qa(Br):(Pe.consume(Br),ws)}function Ua(Br){return Br===47||Br===62||(0,Wt.xz)(Br)?Bo(Br):tt(Br)}function xo(Br){return Br===62?(Pe.consume(Br),Dl):tt(Br)}function Dl(Br){return Br===null||(0,Wt.Ch)(Br)?is(Br):(0,Wt.xz)(Br)?(Pe.consume(Br),Dl):tt(Br)}function is(Br){return Br===45&&Mt===2?(Pe.consume(Br),ds):Br===60&&Mt===1?(Pe.consume(Br),al):Br===62&&Mt===4?(Pe.consume(Br),hl):Br===63&&Mt===3?(Pe.consume(Br),Lr):Br===93&&Mt===5?(Pe.consume(Br),Ul):(0,Wt.Ch)(Br)&&(Mt===6||Mt===7)?(Pe.exit("htmlFlowData"),Pe.check(io,Ql,Ko)(Br)):Br===null||(0,Wt.Ch)(Br)?(Pe.exit("htmlFlowData"),Ko(Br)):(Pe.consume(Br),is)}function Ko(Br){return Pe.check(qn,Yo,Ql)(Br)}function Yo(Br){return Pe.enter("lineEnding"),Pe.consume(Br),Pe.exit("lineEnding"),Ea}function Ea(Br){return Br===null||(0,Wt.Ch)(Br)?Ko(Br):(Pe.enter("htmlFlowData"),is(Br))}function ds(Br){return Br===45?(Pe.consume(Br),Lr):is(Br)}function al(Br){return Br===47?(Pe.consume(Br),sn="",El):is(Br)}function El(Br){if(Br===62){const xl=sn.toLowerCase();return Gi.includes(xl)?(Pe.consume(Br),hl):is(Br)}return(0,Wt.jv)(Br)&&sn.length<8?(Pe.consume(Br),sn+=String.fromCharCode(Br),El):is(Br)}function Ul(Br){return Br===93?(Pe.consume(Br),Lr):is(Br)}function Lr(Br){return Br===62?(Pe.consume(Br),hl):Br===45&&Mt===2?(Pe.consume(Br),Lr):is(Br)}function hl(Br){return Br===null||(0,Wt.Ch)(Br)?(Pe.exit("htmlFlowData"),Ql(Br)):(Pe.consume(Br),hl)}function Ql(Br){return Pe.exit("htmlFlow"),Xe(Br)}}function vi(Pe,Xe,tt){const gt=this;return Mt;function Mt(sn){return(0,Wt.Ch)(sn)?(Pe.enter("lineEnding"),Pe.consume(sn),Pe.exit("lineEnding"),Bt):tt(sn)}function Bt(sn){return gt.parser.lazy[gt.now().line]?tt(sn):Xe(sn)}}function Vi(Pe,Xe,tt){return gt;function gt(Mt){return Pe.enter("lineEnding"),Pe.consume(Mt),Pe.exit("lineEnding"),Pe.attempt(cr,Xe,tt)}}const Oi={partial:!0,tokenize:ji},fo={concrete:!0,name:"codeFenced",tokenize:co};function co(Pe,Xe,tt){const gt=this,Mt={partial:!0,tokenize:Qa};let Bt=0,sn=0,Cn;return yr;function yr(Wi){return xr(Wi)}function xr(Wi){const ka=gt.events[gt.events.length-1];return Bt=ka&&ka[1].type==="linePrefix"?ka[2].sliceSerialize(ka[1],!0).length:0,Cn=Wi,Pe.enter("codeFenced"),Pe.enter("codeFencedFence"),Pe.enter("codeFencedFenceSequence"),nr(Wi)}function nr(Wi){return Wi===Cn?(sn++,Pe.consume(Wi),nr):sn<3?tt(Wi):(Pe.exit("codeFencedFenceSequence"),(0,Wt.xz)(Wi)?(0,ir.f)(Pe,Zr,"whitespace")(Wi):Zr(Wi))}function Zr(Wi){return Wi===null||(0,Wt.Ch)(Wi)?(Pe.exit("codeFencedFence"),gt.interrupt?Xe(Wi):Pe.check(Oi,jo,Xa)(Wi)):(Pe.enter("codeFencedFenceInfo"),Pe.enter("chunkString",{contentType:"string"}),zr(Wi))}function zr(Wi){return Wi===null||(0,Wt.Ch)(Wi)?(Pe.exit("chunkString"),Pe.exit("codeFencedFenceInfo"),Zr(Wi)):(0,Wt.xz)(Wi)?(Pe.exit("chunkString"),Pe.exit("codeFencedFenceInfo"),(0,ir.f)(Pe,ur,"whitespace")(Wi)):Wi===96&&Wi===Cn?tt(Wi):(Pe.consume(Wi),zr)}function ur(Wi){return Wi===null||(0,Wt.Ch)(Wi)?Zr(Wi):(Pe.enter("codeFencedFenceMeta"),Pe.enter("chunkString",{contentType:"string"}),Po(Wi))}function Po(Wi){return Wi===null||(0,Wt.Ch)(Wi)?(Pe.exit("chunkString"),Pe.exit("codeFencedFenceMeta"),Zr(Wi)):Wi===96&&Wi===Cn?tt(Wi):(Pe.consume(Wi),Po)}function jo(Wi){return Pe.attempt(Mt,Xa,ea)(Wi)}function ea(Wi){return Pe.enter("lineEnding"),Pe.consume(Wi),Pe.exit("lineEnding"),so}function so(Wi){return Bt>0&&(0,Wt.xz)(Wi)?(0,ir.f)(Pe,To,"linePrefix",Bt+1)(Wi):To(Wi)}function To(Wi){return Wi===null||(0,Wt.Ch)(Wi)?Pe.check(Oi,jo,Xa)(Wi):(Pe.enter("codeFlowValue"),Bo(Wi))}function Bo(Wi){return Wi===null||(0,Wt.Ch)(Wi)?(Pe.exit("codeFlowValue"),To(Wi)):(Pe.consume(Wi),Bo)}function Xa(Wi){return Pe.exit("codeFenced"),Xe(Wi)}function Qa(Wi,ka,ws){let Ua=0;return xo;function xo(Ea){return Wi.enter("lineEnding"),Wi.consume(Ea),Wi.exit("lineEnding"),Dl}function Dl(Ea){return Wi.enter("codeFencedFence"),(0,Wt.xz)(Ea)?(0,ir.f)(Wi,is,"linePrefix",gt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ea):is(Ea)}function is(Ea){return Ea===Cn?(Wi.enter("codeFencedFenceSequence"),Ko(Ea)):ws(Ea)}function Ko(Ea){return Ea===Cn?(Ua++,Wi.consume(Ea),Ko):Ua>=sn?(Wi.exit("codeFencedFenceSequence"),(0,Wt.xz)(Ea)?(0,ir.f)(Wi,Yo,"whitespace")(Ea):Yo(Ea)):ws(Ea)}function Yo(Ea){return Ea===null||(0,Wt.Ch)(Ea)?(Wi.exit("codeFencedFence"),ka(Ea)):ws(Ea)}}}function ji(Pe,Xe,tt){const gt=this;return Mt;function Mt(sn){return sn===null?tt(sn):(Pe.enter("lineEnding"),Pe.consume(sn),Pe.exit("lineEnding"),Bt)}function Bt(sn){return gt.parser.lazy[gt.now().line]?tt(sn):Xe(sn)}}const zo=document.createElement("i");function Fn(Pe){const Xe="&"+Pe+";";zo.innerHTML=Xe;const tt=zo.textContent;return tt.charCodeAt(tt.length-1)===59&&Pe!=="semi"||tt===Xe?!1:tt}const mr={name:"characterReference",tokenize:wn};function wn(Pe,Xe,tt){const gt=this;let Mt=0,Bt,sn;return Cn;function Cn(Zr){return Pe.enter("characterReference"),Pe.enter("characterReferenceMarker"),Pe.consume(Zr),Pe.exit("characterReferenceMarker"),yr}function yr(Zr){return Zr===35?(Pe.enter("characterReferenceMarkerNumeric"),Pe.consume(Zr),Pe.exit("characterReferenceMarkerNumeric"),xr):(Pe.enter("characterReferenceValue"),Bt=31,sn=Wt.H$,nr(Zr))}function xr(Zr){return Zr===88||Zr===120?(Pe.enter("characterReferenceMarkerHexadecimal"),Pe.consume(Zr),Pe.exit("characterReferenceMarkerHexadecimal"),Pe.enter("characterReferenceValue"),Bt=6,sn=Wt.AF,nr):(Pe.enter("characterReferenceValue"),Bt=7,sn=Wt.pY,nr(Zr))}function nr(Zr){if(Zr===59&&Mt){const zr=Pe.exit("characterReferenceValue");return sn===Wt.H$&&!Fn(gt.sliceSerialize(zr))?tt(Zr):(Pe.enter("characterReferenceMarker"),Pe.consume(Zr),Pe.exit("characterReferenceMarker"),Pe.exit("characterReference"),Xe)}return sn(Zr)&&Mt++<Bt?(Pe.consume(Zr),nr):tt(Zr)}}const it={name:"characterEscape",tokenize:Or};function Or(Pe,Xe,tt){return gt;function gt(Bt){return Pe.enter("characterEscape"),Pe.enter("escapeMarker"),Pe.consume(Bt),Pe.exit("escapeMarker"),Mt}function Mt(Bt){return(0,Wt.sR)(Bt)?(Pe.enter("characterEscapeValue"),Pe.consume(Bt),Pe.exit("characterEscapeValue"),Pe.exit("characterEscape"),Xe):tt(Bt)}}const Wr={name:"lineEnding",tokenize:pi};function pi(Pe,Xe){return tt;function tt(gt){return Pe.enter("lineEnding"),Pe.consume(gt),Pe.exit("lineEnding"),(0,ir.f)(Pe,Xe,"linePrefix")}}function di(Pe,Xe,tt){const gt=[];let Mt=-1;for(;++Mt<Pe.length;){const Bt=Pe[Mt].resolveAll;Bt&&!gt.includes(Bt)&&(Xe=Bt(Xe,tt),gt.push(Bt))}return Xe}const ai={name:"labelEnd",resolveAll:xn,resolveTo:Hn,tokenize:pn},gr={tokenize:tr},pt={tokenize:Qn},yn={tokenize:an};function xn(Pe){let Xe=-1;const tt=[];for(;++Xe<Pe.length;){const gt=Pe[Xe][1];if(tt.push(Pe[Xe]),gt.type==="labelImage"||gt.type==="labelLink"||gt.type==="labelEnd"){const Mt=gt.type==="labelImage"?4:2;gt.type="data",Xe+=Mt}}return Pe.length!==tt.length&&Qt(Pe,0,Pe.length,tt),Pe}function Hn(Pe,Xe){let tt=Pe.length,gt=0,Mt,Bt,sn,Cn;for(;tt--;)if(Mt=Pe[tt][1],Bt){if(Mt.type==="link"||Mt.type==="labelLink"&&Mt._inactive)break;Pe[tt][0]==="enter"&&Mt.type==="labelLink"&&(Mt._inactive=!0)}else if(sn){if(Pe[tt][0]==="enter"&&(Mt.type==="labelImage"||Mt.type==="labelLink")&&!Mt._balanced&&(Bt=tt,Mt.type!=="labelLink")){gt=2;break}}else Mt.type==="labelEnd"&&(sn=tt);const yr={type:Pe[Bt][1].type==="labelLink"?"link":"image",start:xa({},Pe[Bt][1].start),end:xa({},Pe[Pe.length-1][1].end)},xr={type:"label",start:xa({},Pe[Bt][1].start),end:xa({},Pe[sn][1].end)},nr={type:"labelText",start:xa({},Pe[Bt+gt+2][1].end),end:xa({},Pe[sn-2][1].start)};return Cn=[["enter",yr,Xe],["enter",xr,Xe]],Cn=En(Cn,Pe.slice(Bt+1,Bt+gt+3)),Cn=En(Cn,[["enter",nr,Xe]]),Cn=En(Cn,di(Xe.parser.constructs.insideSpan.null,Pe.slice(Bt+gt+4,sn-3),Xe)),Cn=En(Cn,[["exit",nr,Xe],Pe[sn-2],Pe[sn-1],["exit",xr,Xe]]),Cn=En(Cn,Pe.slice(sn+1)),Cn=En(Cn,[["exit",yr,Xe]]),Qt(Pe,Bt,Pe.length,Cn),Pe}function pn(Pe,Xe,tt){const gt=this;let Mt=gt.events.length,Bt,sn;for(;Mt--;)if((gt.events[Mt][1].type==="labelImage"||gt.events[Mt][1].type==="labelLink")&&!gt.events[Mt][1]._balanced){Bt=gt.events[Mt][1];break}return Cn;function Cn(zr){return Bt?Bt._inactive?Zr(zr):(sn=gt.parser.defined.includes(kr(gt.sliceSerialize({start:Bt.end,end:gt.now()}))),Pe.enter("labelEnd"),Pe.enter("labelMarker"),Pe.consume(zr),Pe.exit("labelMarker"),Pe.exit("labelEnd"),yr):tt(zr)}function yr(zr){return zr===40?Pe.attempt(gr,nr,sn?nr:Zr)(zr):zr===91?Pe.attempt(pt,nr,sn?xr:Zr)(zr):sn?nr(zr):Zr(zr)}function xr(zr){return Pe.attempt(yn,nr,Zr)(zr)}function nr(zr){return Xe(zr)}function Zr(zr){return Bt._balanced=!0,tt(zr)}}function tr(Pe,Xe,tt){return gt;function gt(Zr){return Pe.enter("resource"),Pe.enter("resourceMarker"),Pe.consume(Zr),Pe.exit("resourceMarker"),Mt}function Mt(Zr){return(0,Wt.z3)(Zr)?Rr(Pe,Bt)(Zr):Bt(Zr)}function Bt(Zr){return Zr===41?nr(Zr):Xr(Pe,sn,Cn,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Zr)}function sn(Zr){return(0,Wt.z3)(Zr)?Rr(Pe,yr)(Zr):nr(Zr)}function Cn(Zr){return tt(Zr)}function yr(Zr){return Zr===34||Zr===39||Zr===40?Ve(Pe,xr,tt,"resourceTitle","resourceTitleMarker","resourceTitleString")(Zr):nr(Zr)}function xr(Zr){return(0,Wt.z3)(Zr)?Rr(Pe,nr)(Zr):nr(Zr)}function nr(Zr){return Zr===41?(Pe.enter("resourceMarker"),Pe.consume(Zr),Pe.exit("resourceMarker"),Pe.exit("resource"),Xe):tt(Zr)}}function Qn(Pe,Xe,tt){const gt=this;return Mt;function Mt(Cn){return Ln.call(gt,Pe,Bt,sn,"reference","referenceMarker","referenceString")(Cn)}function Bt(Cn){return gt.parser.defined.includes(kr(gt.sliceSerialize(gt.events[gt.events.length-1][1]).slice(1,-1)))?Xe(Cn):tt(Cn)}function sn(Cn){return tt(Cn)}}function an(Pe,Xe,tt){return gt;function gt(Bt){return Pe.enter("reference"),Pe.enter("referenceMarker"),Pe.consume(Bt),Pe.exit("referenceMarker"),Mt}function Mt(Bt){return Bt===93?(Pe.enter("referenceMarker"),Pe.consume(Bt),Pe.exit("referenceMarker"),Pe.exit("reference"),Xe):tt(Bt)}}const hr={name:"labelStartImage",resolveAll:ai.resolveAll,tokenize:Vr};function Vr(Pe,Xe,tt){const gt=this;return Mt;function Mt(Cn){return Pe.enter("labelImage"),Pe.enter("labelImageMarker"),Pe.consume(Cn),Pe.exit("labelImageMarker"),Bt}function Bt(Cn){return Cn===91?(Pe.enter("labelMarker"),Pe.consume(Cn),Pe.exit("labelMarker"),Pe.exit("labelImage"),sn):tt(Cn)}function sn(Cn){return Cn===94&&"_hiddenFootnoteSupport"in gt.parser.constructs?tt(Cn):Xe(Cn)}}function Ai(Pe){if(Pe===null||(0,Wt.z3)(Pe)||(0,Wt.B8)(Pe))return 1;if((0,Wt.Xh)(Pe))return 2}const si={name:"attention",resolveAll:Si,tokenize:Ii};function Si(Pe,Xe){let tt=-1,gt,Mt,Bt,sn,Cn,yr,xr,nr;for(;++tt<Pe.length;)if(Pe[tt][0]==="enter"&&Pe[tt][1].type==="attentionSequence"&&Pe[tt][1]._close){for(gt=tt;gt--;)if(Pe[gt][0]==="exit"&&Pe[gt][1].type==="attentionSequence"&&Pe[gt][1]._open&&Xe.sliceSerialize(Pe[gt][1]).charCodeAt(0)===Xe.sliceSerialize(Pe[tt][1]).charCodeAt(0)){if((Pe[gt][1]._close||Pe[tt][1]._open)&&(Pe[tt][1].end.offset-Pe[tt][1].start.offset)%3&&!((Pe[gt][1].end.offset-Pe[gt][1].start.offset+Pe[tt][1].end.offset-Pe[tt][1].start.offset)%3))continue;yr=Pe[gt][1].end.offset-Pe[gt][1].start.offset>1&&Pe[tt][1].end.offset-Pe[tt][1].start.offset>1?2:1;const Zr=xa({},Pe[gt][1].end),zr=xa({},Pe[tt][1].start);Bi(Zr,-yr),Bi(zr,yr),sn={type:yr>1?"strongSequence":"emphasisSequence",start:Zr,end:xa({},Pe[gt][1].end)},Cn={type:yr>1?"strongSequence":"emphasisSequence",start:xa({},Pe[tt][1].start),end:zr},Bt={type:yr>1?"strongText":"emphasisText",start:xa({},Pe[gt][1].end),end:xa({},Pe[tt][1].start)},Mt={type:yr>1?"strong":"emphasis",start:xa({},sn.start),end:xa({},Cn.end)},Pe[gt][1].end=xa({},sn.start),Pe[tt][1].start=xa({},Cn.end),xr=[],Pe[gt][1].end.offset-Pe[gt][1].start.offset&&(xr=En(xr,[["enter",Pe[gt][1],Xe],["exit",Pe[gt][1],Xe]])),xr=En(xr,[["enter",Mt,Xe],["enter",sn,Xe],["exit",sn,Xe],["enter",Bt,Xe]]),xr=En(xr,di(Xe.parser.constructs.insideSpan.null,Pe.slice(gt+1,tt),Xe)),xr=En(xr,[["exit",Bt,Xe],["enter",Cn,Xe],["exit",Cn,Xe],["exit",Mt,Xe]]),Pe[tt][1].end.offset-Pe[tt][1].start.offset?(nr=2,xr=En(xr,[["enter",Pe[tt][1],Xe],["exit",Pe[tt][1],Xe]])):nr=0,Qt(Pe,gt-1,tt-gt+3,xr),tt=gt+xr.length-nr-2;break}}for(tt=-1;++tt<Pe.length;)Pe[tt][1].type==="attentionSequence"&&(Pe[tt][1].type="data");return Pe}function Ii(Pe,Xe){const tt=this.parser.constructs.attentionMarkers.null,gt=this.previous,Mt=Ai(gt);let Bt;return sn;function sn(yr){return Bt=yr,Pe.enter("attentionSequence"),Cn(yr)}function Cn(yr){if(yr===Bt)return Pe.consume(yr),Cn;const xr=Pe.exit("attentionSequence"),nr=Ai(yr),Zr=!nr||nr===2&&Mt||tt.includes(yr),zr=!Mt||Mt===2&&nr||tt.includes(gt);return xr._open=!!(Bt===42?Zr:Zr&&(Mt||!zr)),xr._close=!!(Bt===42?zr:zr&&(nr||!Zr)),Xe(yr)}}function Bi(Pe,Xe){Pe.column+=Xe,Pe.offset+=Xe,Pe._bufferIndex+=Xe}const ao={name:"autolink",tokenize:wo};function wo(Pe,Xe,tt){let gt=0;return Mt;function Mt(ur){return Pe.enter("autolink"),Pe.enter("autolinkMarker"),Pe.consume(ur),Pe.exit("autolinkMarker"),Pe.enter("autolinkProtocol"),Bt}function Bt(ur){return(0,Wt.jv)(ur)?(Pe.consume(ur),sn):ur===64?tt(ur):xr(ur)}function sn(ur){return ur===43||ur===45||ur===46||(0,Wt.H$)(ur)?(gt=1,Cn(ur)):xr(ur)}function Cn(ur){return ur===58?(Pe.consume(ur),gt=0,yr):(ur===43||ur===45||ur===46||(0,Wt.H$)(ur))&&gt++<32?(Pe.consume(ur),Cn):(gt=0,xr(ur))}function yr(ur){return ur===62?(Pe.exit("autolinkProtocol"),Pe.enter("autolinkMarker"),Pe.consume(ur),Pe.exit("autolinkMarker"),Pe.exit("autolink"),Xe):ur===null||ur===32||ur===60||(0,Wt.Av)(ur)?tt(ur):(Pe.consume(ur),yr)}function xr(ur){return ur===64?(Pe.consume(ur),nr):(0,Wt.n9)(ur)?(Pe.consume(ur),xr):tt(ur)}function nr(ur){return(0,Wt.H$)(ur)?Zr(ur):tt(ur)}function Zr(ur){return ur===46?(Pe.consume(ur),gt=0,nr):ur===62?(Pe.exit("autolinkProtocol").type="autolinkEmail",Pe.enter("autolinkMarker"),Pe.consume(ur),Pe.exit("autolinkMarker"),Pe.exit("autolink"),Xe):zr(ur)}function zr(ur){if((ur===45||(0,Wt.H$)(ur))&&gt++<63){const Po=ur===45?zr:Zr;return Pe.consume(ur),Po}return tt(ur)}}const Ho={name:"htmlText",tokenize:An};function An(Pe,Xe,tt){const gt=this;let Mt,Bt,sn;return Cn;function Cn(Lr){return Pe.enter("htmlText"),Pe.enter("htmlTextData"),Pe.consume(Lr),yr}function yr(Lr){return Lr===33?(Pe.consume(Lr),xr):Lr===47?(Pe.consume(Lr),Qa):Lr===63?(Pe.consume(Lr),Bo):(0,Wt.jv)(Lr)?(Pe.consume(Lr),ws):tt(Lr)}function xr(Lr){return Lr===45?(Pe.consume(Lr),nr):Lr===91?(Pe.consume(Lr),Bt=0,Po):(0,Wt.jv)(Lr)?(Pe.consume(Lr),To):tt(Lr)}function nr(Lr){return Lr===45?(Pe.consume(Lr),ur):tt(Lr)}function Zr(Lr){return Lr===null?tt(Lr):Lr===45?(Pe.consume(Lr),zr):(0,Wt.Ch)(Lr)?(sn=Zr,al(Lr)):(Pe.consume(Lr),Zr)}function zr(Lr){return Lr===45?(Pe.consume(Lr),ur):Zr(Lr)}function ur(Lr){return Lr===62?ds(Lr):Lr===45?zr(Lr):Zr(Lr)}function Po(Lr){const hl="CDATA[";return Lr===hl.charCodeAt(Bt++)?(Pe.consume(Lr),Bt===hl.length?jo:Po):tt(Lr)}function jo(Lr){return Lr===null?tt(Lr):Lr===93?(Pe.consume(Lr),ea):(0,Wt.Ch)(Lr)?(sn=jo,al(Lr)):(Pe.consume(Lr),jo)}function ea(Lr){return Lr===93?(Pe.consume(Lr),so):jo(Lr)}function so(Lr){return Lr===62?ds(Lr):Lr===93?(Pe.consume(Lr),so):jo(Lr)}function To(Lr){return Lr===null||Lr===62?ds(Lr):(0,Wt.Ch)(Lr)?(sn=To,al(Lr)):(Pe.consume(Lr),To)}function Bo(Lr){return Lr===null?tt(Lr):Lr===63?(Pe.consume(Lr),Xa):(0,Wt.Ch)(Lr)?(sn=Bo,al(Lr)):(Pe.consume(Lr),Bo)}function Xa(Lr){return Lr===62?ds(Lr):Bo(Lr)}function Qa(Lr){return(0,Wt.jv)(Lr)?(Pe.consume(Lr),Wi):tt(Lr)}function Wi(Lr){return Lr===45||(0,Wt.H$)(Lr)?(Pe.consume(Lr),Wi):ka(Lr)}function ka(Lr){return(0,Wt.Ch)(Lr)?(sn=ka,al(Lr)):(0,Wt.xz)(Lr)?(Pe.consume(Lr),ka):ds(Lr)}function ws(Lr){return Lr===45||(0,Wt.H$)(Lr)?(Pe.consume(Lr),ws):Lr===47||Lr===62||(0,Wt.z3)(Lr)?Ua(Lr):tt(Lr)}function Ua(Lr){return Lr===47?(Pe.consume(Lr),ds):Lr===58||Lr===95||(0,Wt.jv)(Lr)?(Pe.consume(Lr),xo):(0,Wt.Ch)(Lr)?(sn=Ua,al(Lr)):(0,Wt.xz)(Lr)?(Pe.consume(Lr),Ua):ds(Lr)}function xo(Lr){return Lr===45||Lr===46||Lr===58||Lr===95||(0,Wt.H$)(Lr)?(Pe.consume(Lr),xo):Dl(Lr)}function Dl(Lr){return Lr===61?(Pe.consume(Lr),is):(0,Wt.Ch)(Lr)?(sn=Dl,al(Lr)):(0,Wt.xz)(Lr)?(Pe.consume(Lr),Dl):Ua(Lr)}function is(Lr){return Lr===null||Lr===60||Lr===61||Lr===62||Lr===96?tt(Lr):Lr===34||Lr===39?(Pe.consume(Lr),Mt=Lr,Ko):(0,Wt.Ch)(Lr)?(sn=is,al(Lr)):(0,Wt.xz)(Lr)?(Pe.consume(Lr),is):(Pe.consume(Lr),Yo)}function Ko(Lr){return Lr===Mt?(Pe.consume(Lr),Mt=void 0,Ea):Lr===null?tt(Lr):(0,Wt.Ch)(Lr)?(sn=Ko,al(Lr)):(Pe.consume(Lr),Ko)}function Yo(Lr){return Lr===null||Lr===34||Lr===39||Lr===60||Lr===61||Lr===96?tt(Lr):Lr===47||Lr===62||(0,Wt.z3)(Lr)?Ua(Lr):(Pe.consume(Lr),Yo)}function Ea(Lr){return Lr===47||Lr===62||(0,Wt.z3)(Lr)?Ua(Lr):tt(Lr)}function ds(Lr){return Lr===62?(Pe.consume(Lr),Pe.exit("htmlTextData"),Pe.exit("htmlText"),Xe):tt(Lr)}function al(Lr){return Pe.exit("htmlTextData"),Pe.enter("lineEnding"),Pe.consume(Lr),Pe.exit("lineEnding"),El}function El(Lr){return(0,Wt.xz)(Lr)?(0,ir.f)(Pe,Ul,"linePrefix",gt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Lr):Ul(Lr)}function Ul(Lr){return Pe.enter("htmlTextData"),sn(Lr)}}const ko={name:"labelStartLink",resolveAll:ai.resolveAll,tokenize:po};function po(Pe,Xe,tt){const gt=this;return Mt;function Mt(sn){return Pe.enter("labelLink"),Pe.enter("labelMarker"),Pe.consume(sn),Pe.exit("labelMarker"),Pe.exit("labelLink"),Bt}function Bt(sn){return sn===94&&"_hiddenFootnoteSupport"in gt.parser.constructs?tt(sn):Xe(sn)}}const Zi={name:"hardBreakEscape",tokenize:Mi};function Mi(Pe,Xe,tt){return gt;function gt(Bt){return Pe.enter("hardBreakEscape"),Pe.consume(Bt),Mt}function Mt(Bt){return(0,Wt.Ch)(Bt)?(Pe.exit("hardBreakEscape"),Xe(Bt)):tt(Bt)}}const Oo={name:"codeText",previous:Wn,resolve:Wo,tokenize:vo};function Wo(Pe){let Xe=Pe.length-4,tt=3,gt,Mt;if((Pe[tt][1].type==="lineEnding"||Pe[tt][1].type==="space")&&(Pe[Xe][1].type==="lineEnding"||Pe[Xe][1].type==="space")){for(gt=tt;++gt<Xe;)if(Pe[gt][1].type==="codeTextData"){Pe[tt][1].type="codeTextPadding",Pe[Xe][1].type="codeTextPadding",tt+=2,Xe-=2;break}}for(gt=tt-1,Xe++;++gt<=Xe;)Mt===void 0?gt!==Xe&&Pe[gt][1].type!=="lineEnding"&&(Mt=gt):(gt===Xe||Pe[gt][1].type==="lineEnding")&&(Pe[Mt][1].type="codeTextData",gt!==Mt+2&&(Pe[Mt][1].end=Pe[gt-1][1].end,Pe.splice(Mt+2,gt-Mt-2),Xe-=gt-Mt-2,gt=Mt+2),Mt=void 0);return Pe}function Wn(Pe){return Pe!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vo(Pe,Xe,tt){const gt=this;let Mt=0,Bt,sn;return Cn;function Cn(zr){return Pe.enter("codeText"),Pe.enter("codeTextSequence"),yr(zr)}function yr(zr){return zr===96?(Pe.consume(zr),Mt++,yr):(Pe.exit("codeTextSequence"),xr(zr))}function xr(zr){return zr===null?tt(zr):zr===32?(Pe.enter("space"),Pe.consume(zr),Pe.exit("space"),xr):zr===96?(sn=Pe.enter("codeTextSequence"),Bt=0,Zr(zr)):(0,Wt.Ch)(zr)?(Pe.enter("lineEnding"),Pe.consume(zr),Pe.exit("lineEnding"),xr):(Pe.enter("codeTextData"),nr(zr))}function nr(zr){return zr===null||zr===32||zr===96||(0,Wt.Ch)(zr)?(Pe.exit("codeTextData"),xr(zr)):(Pe.consume(zr),nr)}function Zr(zr){return zr===96?(Pe.consume(zr),Bt++,Zr):Bt===Mt?(Pe.exit("codeTextSequence"),Pe.exit("codeText"),Xe(zr)):(sn.type="codeTextData",nr(zr))}}const ia={42:ci,43:ci,45:ci,48:ci,49:ci,50:ci,51:ci,52:ci,53:ci,54:ci,55:ci,56:ci,57:ci,62:Nr},za={91:jn},hs={[-2]:Qr,[-1]:Qr,32:Qr},il={35:mn,42:li,45:[gi,li],60:Fi,61:gi,95:li,96:fo,126:fo},Ls={38:mr,92:it},to={[-5]:Wr,[-4]:Wr,[-3]:Wr,33:hr,38:mr,42:si,60:[ao,Ho],91:ko,92:[Zi,it],93:ai,95:si,96:Oo},Ra={null:[si,br]},Ma={null:[42,95]},ts={null:[]};function Oa(Pe,Xe,tt){let gt={_bufferIndex:-1,_index:0,line:tt&&tt.line||1,column:tt&&tt.column||1,offset:tt&&tt.offset||0};const Mt={},Bt=[];let sn=[],Cn=[],yr=!0;const xr={attempt:Ua(ka),check:Ua(ws),consume:Xa,enter:Qa,exit:Wi,interrupt:Ua(ws,{interrupt:!0})},nr={code:null,containerState:{},defineSkip:so,events:[],now:ea,parser:Pe,previous:null,sliceSerialize:Po,sliceStream:jo,write:ur};let Zr=Xe.tokenize.call(nr,xr),zr;return Xe.resolveAll&&Bt.push(Xe),nr;function ur(Ko){return sn=En(sn,Ko),To(),sn[sn.length-1]!==null?[]:(xo(Xe,0),nr.events=di(Bt,nr.events,nr),nr.events)}function Po(Ko,Yo){return fi(jo(Ko),Yo)}function jo(Ko){return _a(sn,Ko)}function ea(){const{_bufferIndex:Ko,_index:Yo,line:Ea,column:ds,offset:al}=gt;return{_bufferIndex:Ko,_index:Yo,line:Ea,column:ds,offset:al}}function so(Ko){Mt[Ko.line]=Ko.column,is()}function To(){let Ko;for(;gt._index<sn.length;){const Yo=sn[gt._index];if(typeof Yo=="string")for(Ko=gt._index,gt._bufferIndex<0&&(gt._bufferIndex=0);gt._index===Ko&&gt._bufferIndex<Yo.length;)Bo(Yo.charCodeAt(gt._bufferIndex));else Bo(Yo)}}function Bo(Ko){yr=void 0,zr=Ko,Zr=Zr(Ko)}function Xa(Ko){(0,Wt.Ch)(Ko)?(gt.line++,gt.column=1,gt.offset+=Ko===-3?2:1,is()):Ko!==-1&&(gt.column++,gt.offset++),gt._bufferIndex<0?gt._index++:(gt._bufferIndex++,gt._bufferIndex===sn[gt._index].length&&(gt._bufferIndex=-1,gt._index++)),nr.previous=Ko,yr=!0}function Qa(Ko,Yo){const Ea=Yo||{};return Ea.type=Ko,Ea.start=ea(),nr.events.push(["enter",Ea,nr]),Cn.push(Ea),Ea}function Wi(Ko){const Yo=Cn.pop();return Yo.end=ea(),nr.events.push(["exit",Yo,nr]),Yo}function ka(Ko,Yo){xo(Ko,Yo.from)}function ws(Ko,Yo){Yo.restore()}function Ua(Ko,Yo){return Ea;function Ea(ds,al,El){let Ul,Lr,hl,Ql;return Array.isArray(ds)?xl(ds):"tokenize"in ds?xl([ds]):Br(ds);function Br(ms){return ql;function ql(fl){const Qu=fl!==null&&ms[fl],uc=fl!==null&&ms.null,cc=[...Array.isArray(Qu)?Qu:Qu?[Qu]:[],...Array.isArray(uc)?uc:uc?[uc]:[]];return xl(cc)(fl)}}function xl(ms){return Ul=ms,Lr=0,ms.length===0?El:Jl(ms[Lr])}function Jl(ms){return ql;function ql(fl){return Ql=Dl(),hl=ms,ms.partial||(nr.currentConstruct=ms),ms.name&&nr.parser.constructs.disable.null.includes(ms.name)?el(fl):ms.tokenize.call(Yo?Object.assign(Object.create(nr),Yo):nr,xr,_u,el)(fl)}}function _u(ms){return yr=!0,Ko(hl,Ql),al}function el(ms){return yr=!0,Ql.restore(),++Lr<Ul.length?Jl(Ul[Lr]):El}}}function xo(Ko,Yo){Ko.resolveAll&&!Bt.includes(Ko)&&Bt.push(Ko),Ko.resolve&&Qt(nr.events,Yo,nr.events.length-Yo,Ko.resolve(nr.events.slice(Yo),nr)),Ko.resolveTo&&(nr.events=Ko.resolveTo(nr.events,nr))}function Dl(){const Ko=ea(),Yo=nr.previous,Ea=nr.currentConstruct,ds=nr.events.length,al=Array.from(Cn);return{from:ds,restore:El};function El(){gt=Ko,nr.previous=Yo,nr.currentConstruct=Ea,nr.events.length=ds,Cn=al,is()}}function is(){gt.line in Mt&&gt.column<2&&(gt.column=Mt[gt.line],gt.offset+=Mt[gt.line]-1)}}function _a(Pe,Xe){const tt=Xe.start._index,gt=Xe.start._bufferIndex,Mt=Xe.end._index,Bt=Xe.end._bufferIndex;let sn;if(tt===Mt)sn=[Pe[tt].slice(gt,Bt)];else{if(sn=Pe.slice(tt,Mt),gt>-1){const Cn=sn[0];typeof Cn=="string"?sn[0]=Cn.slice(gt):sn.shift()}Bt>0&&sn.push(Pe[Mt].slice(0,Bt))}return sn}function fi(Pe,Xe){let tt=-1;const gt=[];let Mt;for(;++tt<Pe.length;){const Bt=Pe[tt];let sn;if(typeof Bt=="string")sn=Bt;else switch(Bt){case-5:{sn="\r";break}case-4:{sn=`
`;break}case-3:{sn=`\r
`;break}case-2:{sn=Xe?" ":" ";break}case-1:{if(!Xe&&Mt)continue;sn=" ";break}default:sn=String.fromCharCode(Bt)}Mt=Bt===-2,gt.push(sn)}return gt.join("")}function Yi(Pe){const gt={constructs:fn([oe,...(Pe||{}).extensions||[]]),content:Mt(wr),defined:[],document:Mt(Fr),flow:Mt(_r),lazy:{},string:Mt(Ci),text:Mt(Rn)};return gt;function Mt(Bt){return sn;function sn(Cn){return Oa(gt,Bt,Cn)}}}const ho=/[\0\t\n\r]/g;function Io(){let Pe=1,Xe="",tt=!0,gt;return Mt;function Mt(Bt,sn,Cn){const yr=[];let xr,nr,Zr,zr,ur;for(Bt=Xe+(typeof Bt=="string"?Bt.toString():new TextDecoder(sn||void 0).decode(Bt)),Zr=0,Xe="",tt&&(Bt.charCodeAt(0)===65279&&Zr++,tt=void 0);Zr<Bt.length;){if(ho.lastIndex=Zr,xr=ho.exec(Bt),zr=xr&&xr.index!==void 0?xr.index:Bt.length,ur=Bt.charCodeAt(zr),!xr){Xe=Bt.slice(Zr);break}if(ur===10&&Zr===zr&&gt)yr.push(-3),gt=void 0;else switch(gt&&(yr.push(-5),gt=void 0),Zr<zr&&(yr.push(Bt.slice(Zr,zr)),Pe+=zr-Zr),ur){case 0:{yr.push(65533),Pe++;break}case 9:{for(nr=Math.ceil(Pe/4)*4,yr.push(-2);Pe++<nr;)yr.push(-1);break}case 10:{yr.push(-4),Pe=1;break}default:gt=!0,Pe=1}Zr=zr+1}return Cn&&(gt&&yr.push(-5),Xe&&yr.push(Xe),yr.push(null)),yr}}function Do(Pe,Xe){const tt=Number.parseInt(Pe,Xe);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 sa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xi(Pe){return Pe.replace(sa,Ss)}function Ss(Pe,Xe,tt){if(Xe)return Xe;if(tt.charCodeAt(0)===35){const Mt=tt.charCodeAt(1),Bt=Mt===120||Mt===88;return Do(tt.slice(Bt?2:1),Bt?16:10)}return Fn(tt)||Pe}const pa={}.hasOwnProperty;function Ga(Pe,Xe,tt){return typeof Xe!="string"&&(tt=Xe,Xe=void 0),Fo(tt)(Xt(Yi(tt).document().write(Io()(Pe,Xe,!0))))}function Fo(Pe){const Xe={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Bt(et),autolinkProtocol:Ua,autolinkEmail:Ua,atxHeading:Bt(Ju),blockQuote:Bt(fl),characterEscape:Ua,characterReference:Ua,codeFenced:Bt(Qu),codeFencedFenceInfo:sn,codeFencedFenceMeta:sn,codeIndented:Bt(Qu,sn),codeText:Bt(uc,sn),codeTextData:Ua,data:Ua,codeFlowValue:Ua,definition:Bt(cc),definitionDestinationString:sn,definitionLabelString:sn,definitionTitleString:sn,emphasis:Bt(wl),hardBreakEscape:Bt(zd),hardBreakTrailing:Bt(zd),htmlFlow:Bt(ce,sn),htmlFlowData:Ua,htmlText:Bt(ce,sn),htmlTextData:Ua,image:Bt(ge),label:sn,link:Bt(et),listItem:Bt(Sr),listItemValue:zr,listOrdered:Bt(rn,Zr),listUnordered:Bt(rn),paragraph:Bt($r),reference:Br,referenceString:sn,resourceDestinationString:sn,resourceTitleString:sn,setextHeading:Bt(Ju),strong:Bt(Ni),thematicBreak:Bt(Xo)},exit:{atxHeading:yr(),atxHeadingSequence:Qa,autolink:yr(),autolinkEmail:ql,autolinkProtocol:ms,blockQuote:yr(),characterEscapeValue:xo,characterReferenceMarkerHexadecimal:Jl,characterReferenceMarkerNumeric:Jl,characterReferenceValue:_u,characterReference:el,codeFenced:yr(ea),codeFencedFence:jo,codeFencedFenceInfo:ur,codeFencedFenceMeta:Po,codeFlowValue:xo,codeIndented:yr(so),codeText:yr(Ea),codeTextData:xo,data:xo,definition:yr(),definitionDestinationString:Xa,definitionLabelString:To,definitionTitleString:Bo,emphasis:yr(),hardBreakEscape:yr(is),hardBreakTrailing:yr(is),htmlFlow:yr(Ko),htmlFlowData:xo,htmlText:yr(Yo),htmlTextData:xo,image:yr(al),label:Ul,labelText:El,lineEnding:Dl,link:yr(ds),listItem:yr(),listOrdered:yr(),listUnordered:yr(),paragraph:yr(),referenceString:xl,resourceDestinationString:Lr,resourceTitleString:hl,resource:Ql,setextHeading:yr(ws),setextHeadingLineSequence:ka,setextHeadingText:Wi,strong:yr(),thematicBreak:yr()}};Hs(Xe,(Pe||{}).mdastExtensions||[]);const tt={};return gt;function gt(ni){let Qi={type:"root",children:[]};const ta={stack:[Qi],tokenStack:[],config:Xe,enter:Cn,exit:xr,buffer:sn,resume:nr,data:tt},Aa=[];let os=-1;for(;++os<ni.length;)if(ni[os][1].type==="listOrdered"||ni[os][1].type==="listUnordered")if(ni[os][0]==="enter")Aa.push(os);else{const Uu=Aa.pop();os=Mt(ni,Uu,os)}for(os=-1;++os<ni.length;){const Uu=Xe[ni[os][0]];pa.call(Uu,ni[os][1].type)&&Uu[ni[os][1].type].call(Object.assign({sliceSerialize:ni[os][2].sliceSerialize},ta),ni[os][1])}if(ta.tokenStack.length>0){const Uu=ta.tokenStack[ta.tokenStack.length-1];(Uu[1]||Rs).call(ta,void 0,Uu[0])}for(Qi.position={start:ga(ni.length>0?ni[0][1].start:{line:1,column:1,offset:0}),end:ga(ni.length>0?ni[ni.length-2][1].end:{line:1,column:1,offset:0})},os=-1;++os<Xe.transforms.length;)Qi=Xe.transforms[os](Qi)||Qi;return Qi}function Mt(ni,Qi,ta){let Aa=Qi-1,os=-1,Uu=!1,xu,wu,dc,Hl;for(;++Aa<=ta;){const Cu=ni[Aa];switch(Cu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Cu[0]==="enter"?os++:os--,Hl=void 0;break}case"lineEndingBlank":{Cu[0]==="enter"&&(xu&&!Hl&&!os&&!dc&&(dc=Aa),Hl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Hl=void 0}if(!os&&Cu[0]==="enter"&&Cu[1].type==="listItemPrefix"||os===-1&&Cu[0]==="exit"&&(Cu[1].type==="listUnordered"||Cu[1].type==="listOrdered")){if(xu){let Mc=Aa;for(wu=void 0;Mc--;){const fu=ni[Mc];if(fu[1].type==="lineEnding"||fu[1].type==="lineEndingBlank"){if(fu[0]==="exit")continue;wu&&(ni[wu][1].type="lineEndingBlank",Uu=!0),fu[1].type="lineEnding",wu=Mc}else if(!(fu[1].type==="linePrefix"||fu[1].type==="blockQuotePrefix"||fu[1].type==="blockQuotePrefixWhitespace"||fu[1].type==="blockQuoteMarker"||fu[1].type==="listItemIndent"))break}dc&&(!wu||dc<wu)&&(xu._spread=!0),xu.end=Object.assign({},wu?ni[wu][1].start:Cu[1].end),ni.splice(wu||Aa,0,["exit",xu,Cu[2]]),Aa++,ta++}if(Cu[1].type==="listItemPrefix"){const Mc={type:"listItem",_spread:!1,start:Object.assign({},Cu[1].start),end:void 0};xu=Mc,ni.splice(Aa,0,["enter",Mc,Cu[2]]),Aa++,ta++,dc=void 0,Hl=!0}}}return ni[Qi][1]._spread=Uu,ta}function Bt(ni,Qi){return ta;function ta(Aa){Cn.call(this,ni(Aa),Aa),Qi&&Qi.call(this,Aa)}}function sn(){this.stack.push({type:"fragment",children:[]})}function Cn(ni,Qi,ta){this.stack[this.stack.length-1].children.push(ni),this.stack.push(ni),this.tokenStack.push([Qi,ta||void 0]),ni.position={start:ga(Qi.start),end:void 0}}function yr(ni){return Qi;function Qi(ta){ni&&ni.call(this,ta),xr.call(this,ta)}}function xr(ni,Qi){const ta=this.stack.pop(),Aa=this.tokenStack.pop();if(Aa)Aa[0].type!==ni.type&&(Qi?Qi.call(this,ni,Aa[0]):(Aa[1]||Rs).call(this,ni,Aa[0]));else throw new Error("Cannot close `"+ni.type+"` ("+Ae({start:ni.start,end:ni.end})+"): it\u2019s not open");ta.position.end=ga(ni.end)}function nr(){return On(this.stack.pop())}function Zr(){this.data.expectingFirstListItemValue=!0}function zr(ni){if(this.data.expectingFirstListItemValue){const Qi=this.stack[this.stack.length-2];Qi.start=Number.parseInt(this.sliceSerialize(ni),10),this.data.expectingFirstListItemValue=void 0}}function ur(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.lang=ni}function Po(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.meta=ni}function jo(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ea(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=ni.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function so(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=ni.replace(/(\r?\n|\r)$/g,"")}function To(ni){const Qi=this.resume(),ta=this.stack[this.stack.length-1];ta.label=Qi,ta.identifier=kr(this.sliceSerialize(ni)).toLowerCase()}function Bo(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.title=ni}function Xa(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.url=ni}function Qa(ni){const Qi=this.stack[this.stack.length-1];if(!Qi.depth){const ta=this.sliceSerialize(ni).length;Qi.depth=ta}}function Wi(){this.data.setextHeadingSlurpLineEnding=!0}function ka(ni){const Qi=this.stack[this.stack.length-1];Qi.depth=this.sliceSerialize(ni).codePointAt(0)===61?1:2}function ws(){this.data.setextHeadingSlurpLineEnding=void 0}function Ua(ni){const ta=this.stack[this.stack.length-1].children;let Aa=ta[ta.length-1];(!Aa||Aa.type!=="text")&&(Aa=Lo(),Aa.position={start:ga(ni.start),end:void 0},ta.push(Aa)),this.stack.push(Aa)}function xo(ni){const Qi=this.stack.pop();Qi.value+=this.sliceSerialize(ni),Qi.position.end=ga(ni.end)}function Dl(ni){const Qi=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ta=Qi.children[Qi.children.length-1];ta.position.end=ga(ni.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Xe.canContainEols.includes(Qi.type)&&(Ua.call(this,ni),xo.call(this,ni))}function is(){this.data.atHardBreak=!0}function Ko(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=ni}function Yo(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=ni}function Ea(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=ni}function ds(){const ni=this.stack[this.stack.length-1];if(this.data.inReference){const Qi=this.data.referenceType||"shortcut";ni.type+="Reference",ni.referenceType=Qi,delete ni.url,delete ni.title}else delete ni.identifier,delete ni.label;this.data.referenceType=void 0}function al(){const ni=this.stack[this.stack.length-1];if(this.data.inReference){const Qi=this.data.referenceType||"shortcut";ni.type+="Reference",ni.referenceType=Qi,delete ni.url,delete ni.title}else delete ni.identifier,delete ni.label;this.data.referenceType=void 0}function El(ni){const Qi=this.sliceSerialize(ni),ta=this.stack[this.stack.length-2];ta.label=Xi(Qi),ta.identifier=kr(Qi).toLowerCase()}function Ul(){const ni=this.stack[this.stack.length-1],Qi=this.resume(),ta=this.stack[this.stack.length-1];if(this.data.inReference=!0,ta.type==="link"){const Aa=ni.children;ta.children=Aa}else ta.alt=Qi}function Lr(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.url=ni}function hl(){const ni=this.resume(),Qi=this.stack[this.stack.length-1];Qi.title=ni}function Ql(){this.data.inReference=void 0}function Br(){this.data.referenceType="collapsed"}function xl(ni){const Qi=this.resume(),ta=this.stack[this.stack.length-1];ta.label=Qi,ta.identifier=kr(this.sliceSerialize(ni)).toLowerCase(),this.data.referenceType="full"}function Jl(ni){this.data.characterReferenceType=ni.type}function _u(ni){const Qi=this.sliceSerialize(ni),ta=this.data.characterReferenceType;let Aa;ta?(Aa=Do(Qi,ta==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Aa=Fn(Qi);const os=this.stack[this.stack.length-1];os.value+=Aa}function el(ni){const Qi=this.stack.pop();Qi.position.end=ga(ni.end)}function ms(ni){xo.call(this,ni);const Qi=this.stack[this.stack.length-1];Qi.url=this.sliceSerialize(ni)}function ql(ni){xo.call(this,ni);const Qi=this.stack[this.stack.length-1];Qi.url="mailto:"+this.sliceSerialize(ni)}function fl(){return{type:"blockquote",children:[]}}function Qu(){return{type:"code",lang:null,meta:null,value:""}}function uc(){return{type:"inlineCode",value:""}}function cc(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wl(){return{type:"emphasis",children:[]}}function Ju(){return{type:"heading",depth:0,children:[]}}function zd(){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 rn(ni){return{type:"list",ordered:ni.type==="listOrdered",start:null,spread:ni._spread,children:[]}}function Sr(ni){return{type:"listItem",spread:ni._spread,checked:null,children:[]}}function $r(){return{type:"paragraph",children:[]}}function Ni(){return{type:"strong",children:[]}}function Lo(){return{type:"text",value:""}}function Xo(){return{type:"thematicBreak"}}}function ga(Pe){return{line:Pe.line,column:Pe.column,offset:Pe.offset}}function Hs(Pe,Xe){let tt=-1;for(;++tt<Xe.length;){const gt=Xe[tt];Array.isArray(gt)?Hs(Pe,gt):da(Pe,gt)}}function da(Pe,Xe){let tt;for(tt in Xe)if(pa.call(Xe,tt))switch(tt){case"canContainEols":{const gt=Xe[tt];gt&&Pe[tt].push(...gt);break}case"transforms":{const gt=Xe[tt];gt&&Pe[tt].push(...gt);break}case"enter":case"exit":{const gt=Xe[tt];gt&&Object.assign(Pe[tt],gt);break}}}function Rs(Pe,Xe){throw Pe?new Error("Cannot close `"+Pe.type+"` ("+Ae({start:Pe.start,end:Pe.end})+"): a different token (`"+Xe.type+"`, "+Ae({start:Xe.start,end:Xe.end})+") is open"):new Error("Cannot close document, a token (`"+Xe.type+"`, "+Ae({start:Xe.start,end:Xe.end})+") is still open")}function ol(Pe){const Xe=this;Xe.parser=tt;function tt(gt){return Ga(gt,Zp(xa(xa({},Xe.data("settings")),Pe),{extensions:Xe.data("micromarkExtensions")||[],mdastExtensions:Xe.data("fromMarkdownExtensions")||[]}))}}var Xs=ae(90302);function $a(Pe,Xe){const tt=encode(Kl(Pe||""));if(!Xe)return tt;const gt=tt.indexOf(":"),Mt=tt.indexOf("?"),Bt=tt.indexOf("#"),sn=tt.indexOf("/");return gt<0||sn>-1&&gt>sn||Mt>-1&&gt>Mt||Bt>-1&&gt>Bt||Xe.test(tt.slice(0,gt))?tt:""}function Kl(Pe){const Xe=[];let tt=-1,gt=0,Mt=0;for(;++tt<Pe.length;){const Bt=Pe.charCodeAt(tt);let sn="";if(Bt===37&&(0,Wt.H$)(Pe.charCodeAt(tt+1))&&(0,Wt.H$)(Pe.charCodeAt(tt+2)))Mt=2;else if(Bt<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Bt))||(sn=String.fromCharCode(Bt));else if(Bt>55295&&Bt<57344){const Cn=Pe.charCodeAt(tt+1);Bt<56320&&Cn>56319&&Cn<57344?(sn=String.fromCharCode(Bt,Cn),Mt=1):sn="\uFFFD"}else sn=String.fromCharCode(Bt);sn&&(Xe.push(Pe.slice(gt,tt),encodeURIComponent(sn)),gt=tt+Mt+1,sn=""),Mt&&(tt+=Mt,Mt=0)}return Xe.join("")+Pe.slice(gt)}function nc(Pe,Xe){const tt=[{type:"text",value:"\u21A9"}];return Xe>1&&tt.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Xe)}]}),tt}function es(Pe,Xe){return"Back to reference "+(Pe+1)+(Xe>1?"-"+Xe:"")}function Pl(Pe){const Xe=typeof Pe.options.clobberPrefix=="string"?Pe.options.clobberPrefix:"user-content-",tt=Pe.options.footnoteBackContent||nc,gt=Pe.options.footnoteBackLabel||es,Mt=Pe.options.footnoteLabel||"Footnotes",Bt=Pe.options.footnoteLabelTagName||"h2",sn=Pe.options.footnoteLabelProperties||{className:["sr-only"]},Cn=[];let yr=-1;for(;++yr<Pe.footnoteOrder.length;){const xr=Pe.footnoteById.get(Pe.footnoteOrder[yr]);if(!xr)continue;const nr=Pe.all(xr),Zr=String(xr.identifier).toUpperCase(),zr=Kl(Zr.toLowerCase());let ur=0;const Po=[],jo=Pe.footnoteCounts.get(Zr);for(;jo!==void 0&&++ur<=jo;){Po.length>0&&Po.push({type:"text",value:" "});let To=typeof tt=="string"?tt:tt(yr,ur);typeof To=="string"&&(To={type:"text",value:To}),Po.push({type:"element",tagName:"a",properties:{href:"#"+Xe+"fnref-"+zr+(ur>1?"-"+ur:""),dataFootnoteBackref:"",ariaLabel:typeof gt=="string"?gt:gt(yr,ur),className:["data-footnote-backref"]},children:Array.isArray(To)?To:[To]})}const ea=nr[nr.length-1];if(ea&&ea.type==="element"&&ea.tagName==="p"){const To=ea.children[ea.children.length-1];To&&To.type==="text"?To.value+=" ":ea.children.push({type:"text",value:" "}),ea.children.push(...Po)}else nr.push(...Po);const so={type:"element",tagName:"li",properties:{id:Xe+"fn-"+zr},children:Pe.wrap(nr,!0)};Pe.patch(xr,so),Cn.push(so)}if(Cn.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Bt,properties:Zp(xa({},(0,Xs.ZP)(sn)),{id:"footnote-label"}),children:[{type:"text",value:Mt}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:Pe.wrap(Cn,!0)},{type:"text",value:`
`}]}}var ll=ae(10528);function ul(Pe,Xe){const tt={type:"element",tagName:"blockquote",properties:{},children:Pe.wrap(Pe.all(Xe),!0)};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function rc(Pe,Xe){const tt={type:"element",tagName:"br",properties:{},children:[]};return Pe.patch(Xe,tt),[Pe.applyData(Xe,tt),{type:"text",value:`
`}]}function yc(Pe,Xe){const tt=Xe.value?Xe.value+`
`:"",gt={};Xe.lang&&(gt.className=["language-"+Xe.lang]);let Mt={type:"element",tagName:"code",properties:gt,children:[{type:"text",value:tt}]};return Xe.meta&&(Mt.data={meta:Xe.meta}),Pe.patch(Xe,Mt),Mt=Pe.applyData(Xe,Mt),Mt={type:"element",tagName:"pre",properties:{},children:[Mt]},Pe.patch(Xe,Mt),Mt}function ns(Pe,Xe){const tt={type:"element",tagName:"del",properties:{},children:Pe.all(Xe)};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function ic(Pe,Xe){const tt={type:"element",tagName:"em",properties:{},children:Pe.all(Xe)};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function oc(Pe,Xe){const tt=typeof Pe.options.clobberPrefix=="string"?Pe.options.clobberPrefix:"user-content-",gt=String(Xe.identifier).toUpperCase(),Mt=Kl(gt.toLowerCase()),Bt=Pe.footnoteOrder.indexOf(gt);let sn,Cn=Pe.footnoteCounts.get(gt);Cn===void 0?(Cn=0,Pe.footnoteOrder.push(gt),sn=Pe.footnoteOrder.length):sn=Bt+1,Cn+=1,Pe.footnoteCounts.set(gt,Cn);const yr={type:"element",tagName:"a",properties:{href:"#"+tt+"fn-"+Mt,id:tt+"fnref-"+Mt+(Cn>1?"-"+Cn:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(sn)}]};Pe.patch(Xe,yr);const xr={type:"element",tagName:"sup",properties:{},children:[yr]};return Pe.patch(Xe,xr),Pe.applyData(Xe,xr)}function Mu(Pe,Xe){const tt={type:"element",tagName:"h"+Xe.depth,properties:{},children:Pe.all(Xe)};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function Ou(Pe,Xe){if(Pe.options.allowDangerousHtml){const tt={type:"raw",value:Xe.value};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}}function Ms(Pe,Xe){const tt=Xe.referenceType;let gt="]";if(tt==="collapsed"?gt+="[]":tt==="full"&&(gt+="["+(Xe.label||Xe.identifier)+"]"),Xe.type==="imageReference")return[{type:"text",value:"!["+Xe.alt+gt}];const Mt=Pe.all(Xe),Bt=Mt[0];Bt&&Bt.type==="text"?Bt.value="["+Bt.value:Mt.unshift({type:"text",value:"["});const sn=Mt[Mt.length-1];return sn&&sn.type==="text"?sn.value+=gt:Mt.push({type:"text",value:gt}),Mt}function Qs(Pe,Xe){const tt=String(Xe.identifier).toUpperCase(),gt=Pe.definitionById.get(tt);if(!gt)return Ms(Pe,Xe);const Mt={src:Kl(gt.url||""),alt:Xe.alt};gt.title!==null&&gt.title!==void 0&&(Mt.title=gt.title);const Bt={type:"element",tagName:"img",properties:Mt,children:[]};return Pe.patch(Xe,Bt),Pe.applyData(Xe,Bt)}function fs(Pe,Xe){const tt={src:Kl(Xe.url)};Xe.alt!==null&&Xe.alt!==void 0&&(tt.alt=Xe.alt),Xe.title!==null&&Xe.title!==void 0&&(tt.title=Xe.title);const gt={type:"element",tagName:"img",properties:tt,children:[]};return Pe.patch(Xe,gt),Pe.applyData(Xe,gt)}function ks(Pe,Xe){const tt={type:"text",value:Xe.value.replace(/\r?\n|\r/g," ")};Pe.patch(Xe,tt);const gt={type:"element",tagName:"code",properties:{},children:[tt]};return Pe.patch(Xe,gt),Pe.applyData(Xe,gt)}function yu(Pe,Xe){const tt=String(Xe.identifier).toUpperCase(),gt=Pe.definitionById.get(tt);if(!gt)return Ms(Pe,Xe);const Mt={href:Kl(gt.url||"")};gt.title!==null&&gt.title!==void 0&&(Mt.title=gt.title);const Bt={type:"element",tagName:"a",properties:Mt,children:Pe.all(Xe)};return Pe.patch(Xe,Bt),Pe.applyData(Xe,Bt)}function zs(Pe,Xe){const tt={href:Kl(Xe.url)};Xe.title!==null&&Xe.title!==void 0&&(tt.title=Xe.title);const gt={type:"element",tagName:"a",properties:tt,children:Pe.all(Xe)};return Pe.patch(Xe,gt),Pe.applyData(Xe,gt)}function wa(Pe,Xe,tt){const gt=Pe.all(Xe),Mt=tt?ma(tt):Vo(Xe),Bt={},sn=[];if(typeof Xe.checked=="boolean"){const nr=gt[0];let Zr;nr&&nr.type==="element"&&nr.tagName==="p"?Zr=nr:(Zr={type:"element",tagName:"p",properties:{},children:[]},gt.unshift(Zr)),Zr.children.length>0&&Zr.children.unshift({type:"text",value:" "}),Zr.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Xe.checked,disabled:!0},children:[]}),Bt.className=["task-list-item"]}let Cn=-1;for(;++Cn<gt.length;){const nr=gt[Cn];(Mt||Cn!==0||nr.type!=="element"||nr.tagName!=="p")&&sn.push({type:"text",value:`
`}),nr.type==="element"&&nr.tagName==="p"&&!Mt?sn.push(...nr.children):sn.push(nr)}const yr=gt[gt.length-1];yr&&(Mt||yr.type!=="element"||yr.tagName!=="p")&&sn.push({type:"text",value:`
`});const xr={type:"element",tagName:"li",properties:Bt,children:sn};return Pe.patch(Xe,xr),Pe.applyData(Xe,xr)}function ma(Pe){let Xe=!1;if(Pe.type==="list"){Xe=Pe.spread||!1;const tt=Pe.children;let gt=-1;for(;!Xe&&++gt<tt.length;)Xe=Vo(tt[gt])}return Xe}function Vo(Pe){const Xe=Pe.spread;return Xe==null?Pe.children.length>1:Xe}function cs(Pe,Xe){const tt={},gt=Pe.all(Xe);let Mt=-1;for(typeof Xe.start=="number"&&Xe.start!==1&&(tt.start=Xe.start);++Mt<gt.length;){const sn=gt[Mt];if(sn.type==="element"&&sn.tagName==="li"&&sn.properties&&Array.isArray(sn.properties.className)&&sn.properties.className.includes("task-list-item")){tt.className=["contains-task-list"];break}}const Bt={type:"element",tagName:Xe.ordered?"ol":"ul",properties:tt,children:Pe.wrap(gt,!0)};return Pe.patch(Xe,Bt),Pe.applyData(Xe,Bt)}function Ri(Pe,Xe){const tt={type:"element",tagName:"p",properties:{},children:Pe.all(Xe)};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function ps(Pe,Xe){const tt={type:"root",children:Pe.wrap(Pe.all(Xe))};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function en(Pe,Xe){const tt={type:"element",tagName:"strong",properties:{},children:Pe.all(Xe)};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function Ir(Pe,Xe){const tt=Pe.all(Xe),gt=tt.shift(),Mt=[];if(gt){const sn={type:"element",tagName:"thead",properties:{},children:Pe.wrap([gt],!0)};Pe.patch(Xe.children[0],sn),Mt.push(sn)}if(tt.length>0){const sn={type:"element",tagName:"tbody",properties:{},children:Pe.wrap(tt,!0)},Cn=(0,be.Pk)(Xe.children[1]),yr=(0,be.rb)(Xe.children[Xe.children.length-1]);Cn&&yr&&(sn.position={start:Cn,end:yr}),Mt.push(sn)}const Bt={type:"element",tagName:"table",properties:{},children:Pe.wrap(Mt,!0)};return Pe.patch(Xe,Bt),Pe.applyData(Xe,Bt)}function Tl(Pe,Xe,tt){const gt=tt?tt.children:void 0,Bt=(gt?gt.indexOf(Xe):1)===0?"th":"td",sn=tt&&tt.type==="table"?tt.align:void 0,Cn=sn?sn.length:Xe.children.length;let yr=-1;const xr=[];for(;++yr<Cn;){const Zr=Xe.children[yr],zr={},ur=sn?sn[yr]:void 0;ur&&(zr.align=ur);let Po={type:"element",tagName:Bt,properties:zr,children:[]};Zr&&(Po.children=Pe.all(Zr),Pe.patch(Zr,Po),Po=Pe.applyData(Zr,Po)),xr.push(Po)}const nr={type:"element",tagName:"tr",properties:{},children:Pe.wrap(xr,!0)};return Pe.patch(Xe,nr),Pe.applyData(Xe,nr)}function Su(Pe,Xe){const tt={type:"element",tagName:"td",properties:{},children:Pe.all(Xe)};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}const ja=9,rs=32;function Al(Pe){const Xe=String(Pe),tt=/\r?\n|\r/g;let gt=tt.exec(Xe),Mt=0;const Bt=[];for(;gt;)Bt.push(Fl(Xe.slice(Mt,gt.index),Mt>0,!0),gt[0]),Mt=gt.index+gt[0].length,gt=tt.exec(Xe);return Bt.push(Fl(Xe.slice(Mt),Mt>0,!1)),Bt.join("")}function Fl(Pe,Xe,tt){let gt=0,Mt=Pe.length;if(Xe){let Bt=Pe.codePointAt(gt);for(;Bt===ja||Bt===rs;)gt++,Bt=Pe.codePointAt(gt)}if(tt){let Bt=Pe.codePointAt(Mt-1);for(;Bt===ja||Bt===rs;)Mt--,Bt=Pe.codePointAt(Mt-1)}return Mt>gt?Pe.slice(gt,Mt):""}function ac(Pe,Xe){const tt={type:"text",value:Al(String(Xe.value))};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}function Wa(Pe,Xe){const tt={type:"element",tagName:"hr",properties:{},children:[]};return Pe.patch(Xe,tt),Pe.applyData(Xe,tt)}const Eo={blockquote:ul,break:rc,code:yc,delete:ns,emphasis:ic,footnoteReference:oc,heading:Mu,html:Ou,imageReference:Qs,image:fs,inlineCode:ks,linkReference:yu,link:zs,listItem:wa,list:cs,paragraph:Ri,root:ps,strong:en,table:Ir,tableCell:Su,tableRow:Tl,text:ac,thematicBreak:Wa,toml:bs,yaml:bs,definition:bs,footnoteDefinition:bs};function bs(){}const Js={}.hasOwnProperty,ua={};function Zo(Pe,Xe){const tt=Xe||ua,gt=new Map,Mt=new Map,Bt=new Map,sn=xa(xa({},Eo),tt.handlers),Cn={all:xr,applyData:cl,definitionById:gt,footnoteById:Mt,footnoteCounts:Bt,footnoteOrder:[],handlers:sn,one:yr,options:tt,patch:Ya,wrap:Sl};return(0,ll.Vn)(Pe,function(nr){if(nr.type==="definition"||nr.type==="footnoteDefinition"){const Zr=nr.type==="definition"?gt:Mt,zr=String(nr.identifier).toUpperCase();Zr.has(zr)||Zr.set(zr,nr)}}),Cn;function yr(nr,Zr){const zr=nr.type,ur=Cn.handlers[zr];if(Js.call(Cn.handlers,zr)&&ur)return ur(Cn,nr,Zr);if(Cn.options.passThrough&&Cn.options.passThrough.includes(zr)){if("children"in nr){const jo=nr,{children:ea}=jo,so=iE(jo,["children"]),To=(0,Xs.ZP)(so);return To.children=Cn.all(nr),To}return(0,Xs.ZP)(nr)}return(Cn.options.unknownHandler||Ia)(Cn,nr,Zr)}function xr(nr){const Zr=[];if("children"in nr){const zr=nr.children;let ur=-1;for(;++ur<zr.length;){const Po=Cn.one(zr[ur],nr);if(Po){if(ur&&zr[ur-1].type==="break"&&(!Array.isArray(Po)&&Po.type==="text"&&(Po.value=Es(Po.value)),!Array.isArray(Po)&&Po.type==="element")){const jo=Po.children[0];jo&&jo.type==="text"&&(jo.value=Es(jo.value))}Array.isArray(Po)?Zr.push(...Po):Zr.push(Po)}}}return Zr}}function Ya(Pe,Xe){Pe.position&&(Xe.position=(0,be.FK)(Pe))}function cl(Pe,Xe){let tt=Xe;if(Pe&&Pe.data){const gt=Pe.data.hName,Mt=Pe.data.hChildren,Bt=Pe.data.hProperties;if(typeof gt=="string")if(tt.type==="element")tt.tagName=gt;else{const sn="children"in tt?tt.children:[tt];tt={type:"element",tagName:gt,properties:{},children:sn}}tt.type==="element"&&Bt&&Object.assign(tt.properties,(0,Xs.ZP)(Bt)),"children"in tt&&tt.children&&Mt!==null&&Mt!==void 0&&(tt.children=Mt)}return tt}function Ia(Pe,Xe){const tt=Xe.data||{},gt="value"in Xe&&!(Js.call(tt,"hProperties")||Js.call(tt,"hChildren"))?{type:"text",value:Xe.value}:{type:"element",tagName:"div",properties:{},children:Pe.all(Xe)};return Pe.patch(Xe,gt),Pe.applyData(Xe,gt)}function Sl(Pe,Xe){const tt=[];let gt=-1;for(Xe&&tt.push({type:"text",value:`
`});++gt<Pe.length;)gt&&tt.push({type:"text",value:`
`}),tt.push(Pe[gt]);return Xe&&Pe.length>0&&tt.push({type:"text",value:`
`}),tt}function Es(Pe){let Xe=0,tt=Pe.charCodeAt(Xe);for(;tt===9||tt===32;)Xe++,tt=Pe.charCodeAt(Xe);return Pe.slice(Xe)}function Fu(Pe,Xe){const tt=Zo(Pe,Xe),gt=tt.one(Pe,void 0),Mt=Pl(tt),Bt=Array.isArray(gt)?{type:"root",children:gt}:gt||{type:"root",children:[]};return Mt&&((0,Ce.ok)("children"in Bt),Bt.children.push({type:"text",value:`
`},Mt)),Bt}function va(Pe,Xe){return Pe&&"run"in Pe?function(tt,gt){return sS(this,null,function*(){const Mt=Fu(tt,xa({file:gt},Xe));yield Pe.run(Mt,gt)})}:function(tt,gt){return Fu(tt,xa({file:gt},Pe||Xe))}}function Os(Pe){if(Pe)throw Pe}var oa=ae(58847);function Ta(Pe){if(typeof Pe!="object"||Pe===null)return!1;const Xe=Object.getPrototypeOf(Pe);return(Xe===null||Xe===Object.prototype||Object.getPrototypeOf(Xe)===null)&&!(Symbol.toStringTag in Pe)&&!(Symbol.iterator in Pe)}function La(){const Pe=[],Xe={run:tt,use:gt};return Xe;function tt(...Mt){let Bt=-1;const sn=Mt.pop();if(typeof sn!="function")throw new TypeError("Expected function as last argument, not "+sn);Cn(null,...Mt);function Cn(yr,...xr){const nr=Pe[++Bt];let Zr=-1;if(yr){sn(yr);return}for(;++Zr<Mt.length;)(xr[Zr]===null||xr[Zr]===void 0)&&(xr[Zr]=Mt[Zr]);Mt=xr,nr?Za(nr,Cn)(...xr):sn(null,...xr)}}function gt(Mt){if(typeof Mt!="function")throw new TypeError("Expected `middelware` to be a function, not "+Mt);return Pe.push(Mt),Xe}}function Za(Pe,Xe){let tt;return gt;function gt(...sn){const Cn=Pe.length>sn.length;let yr;Cn&&sn.push(Mt);try{yr=Pe.apply(this,sn)}catch(xr){const nr=xr;if(Cn&&tt)throw nr;return Mt(nr)}Cn||(yr&&yr.then&&typeof yr.then=="function"?yr.then(Bt,Mt):yr instanceof Error?Mt(yr):Bt(yr))}function Mt(sn,...Cn){tt||(tt=!0,Xe(sn,...Cn))}function Bt(sn){Mt(null,sn)}}const na={basename:sc,dirname:bo,extname:Dc,join:aa,sep:"/"};function sc(Pe,Xe){if(Xe!==void 0&&typeof Xe!="string")throw new TypeError('"ext" argument must be a string');bu(Pe);let tt=0,gt=-1,Mt=Pe.length,Bt;if(Xe===void 0||Xe.length===0||Xe.length>Pe.length){for(;Mt--;)if(Pe.codePointAt(Mt)===47){if(Bt){tt=Mt+1;break}}else gt<0&&(Bt=!0,gt=Mt+1);return gt<0?"":Pe.slice(tt,gt)}if(Xe===Pe)return"";let sn=-1,Cn=Xe.length-1;for(;Mt--;)if(Pe.codePointAt(Mt)===47){if(Bt){tt=Mt+1;break}}else sn<0&&(Bt=!0,sn=Mt+1),Cn>-1&&(Pe.codePointAt(Mt)===Xe.codePointAt(Cn--)?Cn<0&&(gt=Mt):(Cn=-1,gt=sn));return tt===gt?gt=sn:gt<0&&(gt=Pe.length),Pe.slice(tt,gt)}function bo(Pe){if(bu(Pe),Pe.length===0)return".";let Xe=-1,tt=Pe.length,gt;for(;--tt;)if(Pe.codePointAt(tt)===47){if(gt){Xe=tt;break}}else gt||(gt=!0);return Xe<0?Pe.codePointAt(0)===47?"/":".":Xe===1&&Pe.codePointAt(0)===47?"//":Pe.slice(0,Xe)}function Dc(Pe){bu(Pe);let Xe=Pe.length,tt=-1,gt=0,Mt=-1,Bt=0,sn;for(;Xe--;){const Cn=Pe.codePointAt(Xe);if(Cn===47){if(sn){gt=Xe+1;break}continue}tt<0&&(sn=!0,tt=Xe+1),Cn===46?Mt<0?Mt=Xe:Bt!==1&&(Bt=1):Mt>-1&&(Bt=-1)}return Mt<0||tt<0||Bt===0||Bt===1&&Mt===tt-1&&Mt===gt+1?"":Pe.slice(Mt,tt)}function aa(...Pe){let Xe=-1,tt;for(;++Xe<Pe.length;)bu(Pe[Xe]),Pe[Xe]&&(tt=tt===void 0?Pe[Xe]:tt+"/"+Pe[Xe]);return tt===void 0?".":Sc(tt)}function Sc(Pe){bu(Pe);const Xe=Pe.codePointAt(0)===47;let tt=Bu(Pe,!Xe);return tt.length===0&&!Xe&&(tt="."),tt.length>0&&Pe.codePointAt(Pe.length-1)===47&&(tt+="/"),Xe?"/"+tt:tt}function Bu(Pe,Xe){let tt="",gt=0,Mt=-1,Bt=0,sn=-1,Cn,yr;for(;++sn<=Pe.length;){if(sn<Pe.length)Cn=Pe.codePointAt(sn);else{if(Cn===47)break;Cn=47}if(Cn===47){if(!(Mt===sn-1||Bt===1))if(Mt!==sn-1&&Bt===2){if(tt.length<2||gt!==2||tt.codePointAt(tt.length-1)!==46||tt.codePointAt(tt.length-2)!==46){if(tt.length>2){if(yr=tt.lastIndexOf("/"),yr!==tt.length-1){yr<0?(tt="",gt=0):(tt=tt.slice(0,yr),gt=tt.length-1-tt.lastIndexOf("/")),Mt=sn,Bt=0;continue}}else if(tt.length>0){tt="",gt=0,Mt=sn,Bt=0;continue}}Xe&&(tt=tt.length>0?tt+"/..":"..",gt=2)}else tt.length>0?tt+="/"+Pe.slice(Mt+1,sn):tt=Pe.slice(Mt+1,sn),gt=sn-Mt-1;Mt=sn,Bt=0}else Cn===46&&Bt>-1?Bt++:Bt=-1}return tt}function bu(Pe){if(typeof Pe!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Pe))}const Rc={cwd:Xc};function Xc(){return"/"}function Yl(Pe){return!!(Pe!==null&&typeof Pe=="object"&&"href"in Pe&&Pe.href&&"protocol"in Pe&&Pe.protocol&&Pe.auth===void 0)}function Xl(Pe){if(typeof Pe=="string")Pe=new URL(Pe);else if(!Yl(Pe)){const Xe=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Pe+"`");throw Xe.code="ERR_INVALID_ARG_TYPE",Xe}if(Pe.protocol!=="file:"){const Xe=new TypeError("The URL must be of scheme file");throw Xe.code="ERR_INVALID_URL_SCHEME",Xe}return la(Pe)}function la(Pe){if(Pe.hostname!==""){const gt=new TypeError('File URL host must be "localhost" or empty on darwin');throw gt.code="ERR_INVALID_FILE_URL_HOST",gt}const Xe=Pe.pathname;let tt=-1;for(;++tt<Xe.length;)if(Xe.codePointAt(tt)===37&&Xe.codePointAt(tt+1)===50){const gt=Xe.codePointAt(tt+2);if(gt===70||gt===102){const Mt=new TypeError("File URL path must not include encoded / characters");throw Mt.code="ERR_INVALID_FILE_URL_PATH",Mt}}return decodeURIComponent(Xe)}const Gs=["history","path","basename","stem","extname","dirname"];class du{constructor(Xe){let tt;Xe?Yl(Xe)?tt={path:Xe}:typeof Xe=="string"||$o(Xe)?tt={value:Xe}:tt=Xe:tt={},this.cwd="cwd"in tt?"":Rc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let gt=-1;for(;++gt<Gs.length;){const Bt=Gs[gt];Bt in tt&&tt[Bt]!==void 0&&tt[Bt]!==null&&(this[Bt]=Bt==="history"?[...tt[Bt]]:tt[Bt])}let Mt;for(Mt in tt)Gs.includes(Mt)||(this[Mt]=tt[Mt])}get basename(){return typeof this.path=="string"?na.basename(this.path):void 0}set basename(Xe){dl(Xe,"basename"),Nl(Xe,"basename"),this.path=na.join(this.dirname||"",Xe)}get dirname(){return typeof this.path=="string"?na.dirname(this.path):void 0}set dirname(Xe){bl(this.basename,"dirname"),this.path=na.join(Xe||"",this.basename)}get extname(){return typeof this.path=="string"?na.extname(this.path):void 0}set extname(Xe){if(Nl(Xe,"extname"),bl(this.dirname,"extname"),Xe){if(Xe.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Xe.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=na.join(this.dirname,this.stem+(Xe||""))}get path(){return this.history[this.history.length-1]}set path(Xe){Yl(Xe)&&(Xe=Xl(Xe)),dl(Xe,"path"),this.path!==Xe&&this.history.push(Xe)}get stem(){return typeof this.path=="string"?na.basename(this.path,this.extname):void 0}set stem(Xe){dl(Xe,"stem"),Nl(Xe,"stem"),this.path=na.join(this.dirname||"",Xe+(this.extname||""))}fail(Xe,tt,gt){const Mt=this.message(Xe,tt,gt);throw Mt.fatal=!0,Mt}info(Xe,tt,gt){const Mt=this.message(Xe,tt,gt);return Mt.fatal=void 0,Mt}message(Xe,tt,gt){const Mt=new $e(Xe,tt,gt);return this.path&&(Mt.name=this.path+":"+Mt.name,Mt.file=this.path),Mt.fatal=!1,this.messages.push(Mt),Mt}toString(Xe){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Xe||void 0).decode(this.value)}}function Nl(Pe,Xe){if(Pe&&Pe.includes(na.sep))throw new Error("`"+Xe+"` cannot be a path: did not expect `"+na.sep+"`")}function dl(Pe,Xe){if(!Pe)throw new Error("`"+Xe+"` cannot be empty")}function bl(Pe,Xe){if(!Pe)throw new Error("Setting `"+Xe+"` requires `path` to be set too")}function $o(Pe){return!!(Pe&&typeof Pe=="object"&&"byteLength"in Pe&&"byteOffset"in Pe)}const ca=function(Pe){const gt=this.constructor.prototype,Mt=gt[Pe],Bt=function(){return Mt.apply(Bt,arguments)};return Object.setPrototypeOf(Bt,gt),Bt},Va={}.hasOwnProperty;class Is extends ca{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=La()}copy(){const Xe=new Is;let tt=-1;for(;++tt<this.attachers.length;){const gt=this.attachers[tt];Xe.use(...gt)}return Xe.data(oa(!0,{},this.namespace)),Xe}data(Xe,tt){return typeof Xe=="string"?arguments.length===2?(_l("data",this.frozen),this.namespace[Xe]=tt,this):Va.call(this.namespace,Xe)&&this.namespace[Xe]||void 0:Xe?(_l("data",this.frozen),this.namespace=Xe,this):this.namespace}freeze(){if(this.frozen)return this;const Xe=this;for(;++this.freezeIndex<this.attachers.length;){const[tt,...gt]=this.attachers[this.freezeIndex];if(gt[0]===!1)continue;gt[0]===!0&&(gt[0]=void 0);const Mt=tt.call(Xe,...gt);typeof Mt=="function"&&this.transformers.use(Mt)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Xe){this.freeze();const tt=bd(Xe),gt=this.parser||this.Parser;return Ll("parse",gt),gt(String(tt),tt)}process(Xe,tt){const gt=this;return this.freeze(),Ll("process",this.parser||this.Parser),Bl("process",this.compiler||this.Compiler),tt?Mt(void 0,tt):new Promise(Mt);function Mt(Bt,sn){const Cn=bd(Xe),yr=gt.parse(Cn);gt.run(yr,Cn,function(nr,Zr,zr){if(nr||!Zr||!zr)return xr(nr);const ur=Zr,Po=gt.stringify(ur,zr);ch(Po)?zr.value=Po:zr.result=Po,xr(nr,zr)});function xr(nr,Zr){nr||!Zr?sn(nr):Bt?Bt(Zr):((0,Ce.ok)(tt,"`done` is defined if `resolve` is not"),tt(void 0,Zr))}}}processSync(Xe){let tt=!1,gt;return this.freeze(),Ll("processSync",this.parser||this.Parser),Bl("processSync",this.compiler||this.Compiler),this.process(Xe,Mt),hu("processSync","process",tt),(0,Ce.ok)(gt,"we either bailed on an error or have a tree"),gt;function Mt(Bt,sn){tt=!0,Os(Bt),gt=sn}}run(Xe,tt,gt){kl(Xe),this.freeze();const Mt=this.transformers;return!gt&&typeof tt=="function"&&(gt=tt,tt=void 0),gt?Bt(void 0,gt):new Promise(Bt);function Bt(sn,Cn){(0,Ce.ok)(typeof tt!="function","`file` can\u2019t be a `done` anymore, we checked");const yr=bd(tt);Mt.run(Xe,yr,xr);function xr(nr,Zr,zr){const ur=Zr||Xe;nr?Cn(nr):sn?sn(ur):((0,Ce.ok)(gt,"`done` is defined if `resolve` is not"),gt(void 0,ur,zr))}}}runSync(Xe,tt){let gt=!1,Mt;return this.run(Xe,tt,Bt),hu("runSync","run",gt),(0,Ce.ok)(Mt,"we either bailed on an error or have a tree"),Mt;function Bt(sn,Cn){Os(sn),Mt=Cn,gt=!0}}stringify(Xe,tt){this.freeze();const gt=bd(tt),Mt=this.compiler||this.Compiler;return Bl("stringify",Mt),kl(Xe),Mt(Xe,gt)}use(Xe,...tt){const gt=this.attachers,Mt=this.namespace;if(_l("use",this.frozen),Xe!=null)if(typeof Xe=="function")yr(Xe,tt);else if(typeof Xe=="object")Array.isArray(Xe)?Cn(Xe):sn(Xe);else throw new TypeError("Expected usable value, not `"+Xe+"`");return this;function Bt(xr){if(typeof xr=="function")yr(xr,[]);else if(typeof xr=="object")if(Array.isArray(xr)){const[nr,...Zr]=xr;yr(nr,Zr)}else sn(xr);else throw new TypeError("Expected usable value, not `"+xr+"`")}function sn(xr){if(!("plugins"in xr)&&!("settings"in xr))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");Cn(xr.plugins),xr.settings&&(Mt.settings=oa(!0,Mt.settings,xr.settings))}function Cn(xr){let nr=-1;if(xr!=null)if(Array.isArray(xr))for(;++nr<xr.length;){const Zr=xr[nr];Bt(Zr)}else throw new TypeError("Expected a list of plugins, not `"+xr+"`")}function yr(xr,nr){let Zr=-1,zr=-1;for(;++Zr<gt.length;)if(gt[Zr][0]===xr){zr=Zr;break}if(zr===-1)gt.push([xr,...nr]);else if(nr.length>0){let[ur,...Po]=nr;const jo=gt[zr][1];Ta(jo)&&Ta(ur)&&(ur=oa(!0,jo,ur)),gt[zr]=[xr,ur,...Po]}}}}const xs=new Is().freeze();function Ll(Pe,Xe){if(typeof Xe!="function")throw new TypeError("Cannot `"+Pe+"` without `parser`")}function Bl(Pe,Xe){if(typeof Xe!="function")throw new TypeError("Cannot `"+Pe+"` without `compiler`")}function _l(Pe,Xe){if(Xe)throw new Error("Cannot call `"+Pe+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function kl(Pe){if(!Ta(Pe)||typeof Pe.type!="string")throw new TypeError("Expected node, got `"+Pe+"`")}function hu(Pe,Xe,tt){if(!tt)throw new Error("`"+Pe+"` finished async. Use `"+Xe+"` instead")}function bd(Pe){return Hd(Pe)?Pe:new du(Pe)}function Hd(Pe){return!!(Pe&&typeof Pe=="object"&&"message"in Pe&&"messages"in Pe)}function ch(Pe){return typeof Pe=="string"||dh(Pe)}function dh(Pe){return!!(Pe&&typeof Pe=="object"&&"byteLength"in Pe&&"byteOffset"in Pe)}const gs="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",lc=[],Na={allowDangerousHtml:!0},js=/^(https?|ircs?|mailto|xmpp)$/i,$s=[{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 qs(Pe){const Xe=Eu(Pe),tt=Qc(Pe);return Ed(Xe.runSync(Xe.parse(tt),tt),Pe)}function bc(Pe){return sS(this,null,function*(){const Xe=Eu(Pe),tt=Qc(Pe),gt=yield Xe.run(Xe.parse(tt),tt);return Ed(gt,Pe)})}function Fs(Pe){const Xe=Eu(Pe),[tt,gt]=useState(void 0),[Mt,Bt]=useState(void 0);if(useEffect(function(){const sn=Qc(Pe);Xe.run(Xe.parse(sn),sn,function(Cn,yr){gt(Cn),Bt(yr)})},[Pe.children,Pe.rehypePlugins,Pe.remarkPlugins,Pe.remarkRehypeOptions]),tt)throw tt;return Mt?Ed(Mt,Pe):createElement(Fragment)}function Eu(Pe){const Xe=Pe.rehypePlugins||lc,tt=Pe.remarkPlugins||lc,gt=Pe.remarkRehypeOptions?xa(xa({},Pe.remarkRehypeOptions),Na):Na;return xs().use(ol).use(tt).use(va,gt).use(Xe)}function Qc(Pe){const Xe=Pe.children||"",tt=new du;return typeof Xe=="string"?tt.value=Xe:(0,Ce.t1)("Unexpected value `"+Xe+"` for `children` prop, expected `string`"),tt}function Ed(Pe,Xe){const tt=Xe.allowedElements,gt=Xe.allowElement,Mt=Xe.components,Bt=Xe.disallowedElements,sn=Xe.skipHtml,Cn=Xe.unwrapDisallowed,yr=Xe.urlTransform||Il;for(const nr of $s)Object.hasOwn(Xe,nr.from)&&(0,Ce.t1)("Unexpected `"+nr.from+"` prop, "+(nr.to?"use `"+nr.to+"` instead":"remove it")+" (see <"+gs+"#"+nr.id+"> for more info)");return tt&&Bt&&(0,Ce.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Xe.className&&(Pe={type:"element",tagName:"div",properties:{className:Xe.className},children:Pe.type==="root"?Pe.children:[Pe]}),(0,ll.Vn)(Pe,xr),_t(Pe,{Fragment:Fe.Fragment,components:Mt,ignoreInvalidStyle:!0,jsx:Fe.jsx,jsxs:Fe.jsxs,passKeys:!0,passNode:!0});function xr(nr,Zr,zr){if(nr.type==="raw"&&zr&&typeof Zr=="number")return sn?zr.children.splice(Zr,1):zr.children[Zr]={type:"text",value:nr.value},Zr;if(nr.type==="element"){let ur;for(ur in st)if(Object.hasOwn(st,ur)&&Object.hasOwn(nr.properties,ur)){const Po=nr.properties[ur],jo=st[ur];(jo===null||jo.includes(nr.tagName))&&(nr.properties[ur]=yr(String(Po||""),ur,nr))}}if(nr.type==="element"){let ur=tt?!tt.includes(nr.tagName):Bt?Bt.includes(nr.tagName):!1;if(!ur&&gt&&typeof Zr=="number"&&(ur=!gt(nr,Zr,zr)),ur&&zr&&typeof Zr=="number")return Cn&&nr.children?zr.children.splice(Zr,1,...nr.children):zr.children.splice(Zr,1),Zr}}}function Il(Pe){const Xe=Pe.indexOf(":"),tt=Pe.indexOf("?"),gt=Pe.indexOf("#"),Mt=Pe.indexOf("/");return Xe===-1||Mt!==-1&&Xe>Mt||tt!==-1&&Xe>tt||gt!==-1&&Xe>gt||js.test(Pe.slice(0,Xe))?Pe:""}},3977:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return zd}});var oe={};ae.r(oe),ae.d(oe,{boolean:function(){return $e},booleanish:function(){return at},commaOrSpaceSeparated:function(){return Tt},commaSeparated:function(){return xt},number:function(){return ot},overloadedBoolean:function(){return ht},spaceSeparated:function(){return vt}});var Ce=ae(90302),ke=ae(87342),Ie=ae(81994),je=ae(14470),Te=ae(86825);function Ge(ce){const ge=String(ce),et=[];return{toOffset:Sr,toPoint:rn};function rn($r){if(typeof $r=="number"&&$r>-1&&$r<=ge.length){let Ni=0;for(;;){let Lo=et[Ni];if(Lo===void 0){const Xo=lt(ge,et[Ni-1]);Lo=Xo===-1?ge.length+1:Xo+1,et[Ni]=Lo}if(Lo>$r)return{line:Ni+1,column:$r-(Ni>0?et[Ni-1]:0)+1,offset:$r};Ni++}}}function Sr($r){if($r&&typeof $r.line=="number"&&typeof $r.column=="number"&&!Number.isNaN($r.line)&&!Number.isNaN($r.column)){for(;et.length<$r.line;){const Lo=et[et.length-1],Xo=lt(ge,Lo),ni=Xo===-1?ge.length+1:Xo+1;if(Lo===ni)break;et.push(ni)}const Ni=($r.line>1?et[$r.line-2]:0)+$r.column-1;if(Ni<et[$r.line-1])return Ni}}}function lt(ce,ge){const et=ce.indexOf("\r",ge),rn=ce.indexOf(`
`,ge);return rn===-1?et:et===-1||et+1===rn?rn:et<rn?et:rn}var Qe=ae(43309);const Ue={}.hasOwnProperty,mt=Object.prototype;function Je(ce,ge){const et=ge||{};return It({file:et.file||void 0,location:!1,schema:et.space==="svg"?je.YP:je.dy,verbose:et.verbose||!1},ce)}function It(ce,ge){let et;switch(ge.nodeName){case"#comment":{const rn=ge;return et={type:"comment",value:rn.data},ee(ce,rn,et),et}case"#document":case"#document-fragment":{const rn=ge,Sr="mode"in rn?rn.mode==="quirks"||rn.mode==="limited-quirks":!1;if(et={type:"root",children:Oe(ce,ge.childNodes),data:{quirksMode:Sr}},ce.file&&ce.location){const $r=String(ce.file),Ni=Ge($r),Lo=Ni.toPoint(0),Xo=Ni.toPoint($r.length);(0,ke.ok)(Lo,"expected `start`"),(0,ke.ok)(Xo,"expected `end`"),et.position={start:Lo,end:Xo}}return et}case"#documentType":{const rn=ge;return et={type:"doctype"},ee(ce,rn,et),et}case"#text":{const rn=ge;return et={type:"text",value:rn.value},ee(ce,rn,et),et}default:return et=te(ce,ge),et}}function Oe(ce,ge){let et=-1;const rn=[];for(;++et<ge.length;){const Sr=It(ce,ge[et]);rn.push(Sr)}return rn}function te(ce,ge){const et=ce.schema;ce.schema=ge.namespaceURI===Qe.t.svg?je.YP:je.dy;let rn=-1;const Sr={};for(;++rn<ge.attrs.length;){const Lo=ge.attrs[rn],Xo=(Lo.prefix?Lo.prefix+":":"")+Lo.name;Ue.call(mt,Xo)||(Sr[Xo]=Lo.value)}const Ni=(ce.schema.space==="svg"?Ie.s:Ie.h)(ge.tagName,Sr,Oe(ce,ge.childNodes));if(ee(ce,ge,Ni),Ni.tagName==="template"){const Lo=ge,Xo=Lo.sourceCodeLocation,ni=Xo&&Xo.startTag&&ue(Xo.startTag),Qi=Xo&&Xo.endTag&&ue(Xo.endTag),ta=It(ce,Lo.content);ni&&Qi&&ce.file&&(ta.position={start:ni.end,end:Qi.start}),Ni.content=ta}return ce.schema=et,Ni}function ee(ce,ge,et){if("sourceCodeLocation"in ge&&ge.sourceCodeLocation&&ce.file){const rn=he(ce,et,ge.sourceCodeLocation);rn&&(ce.location=!0,et.position=rn)}}function he(ce,ge,et){const rn=ue(et);if(ge.type==="element"){const Sr=ge.children[ge.children.length-1];if(rn&&!et.endTag&&Sr&&Sr.position&&Sr.position.end&&(rn.end=Object.assign({},Sr.position.end)),ce.verbose){const $r={};let Ni;if(et.attrs)for(Ni in et.attrs)Ue.call(et.attrs,Ni)&&($r[(0,Te.s)(ce.schema,Ni).property]=ue(et.attrs[Ni]));(0,ke.ok)(et.startTag,"a start tag should exist");const Lo=ue(et.startTag),Xo=et.endTag?ue(et.endTag):void 0,ni={opening:Lo};Xo&&(ni.closing=Xo),ni.properties=$r,ge.data={position:ni}}}return rn}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,rn){this.property=ge,this.normal=et,rn&&(this.space=rn)}}be.prototype.property={},be.prototype.normal={},be.prototype.space=null;function Ae(ce,ge){const et={},rn={};let Sr=-1;for(;++Sr<ce.length;)Object.assign(et,ce[Sr].property),Object.assign(rn,ce[Sr].normal);return new be(et,rn,ge)}function De(ce){return ce.toLowerCase()}class Ye{constructor(ge,et){this.property=ge,this.attribute=et}}Ye.prototype.space=null,Ye.prototype.boolean=!1,Ye.prototype.booleanish=!1,Ye.prototype.overloadedBoolean=!1,Ye.prototype.number=!1,Ye.prototype.commaSeparated=!1,Ye.prototype.spaceSeparated=!1,Ye.prototype.commaOrSpaceSeparated=!1,Ye.prototype.mustUseProperty=!1,Ye.prototype.defined=!1;let rt=0;const $e=_t(),at=_t(),ht=_t(),ot=_t(),vt=_t(),xt=_t(),Tt=_t();function _t(){return aS(2,++rt)}const Jt=Object.keys(oe);class Zt extends Ye{constructor(ge,et,rn,Sr){let $r=-1;if(super(ge,et),vn(this,"space",Sr),typeof rn=="number")for(;++$r<Jt.length;){const Ni=Jt[$r];vn(this,Jt[$r],(rn&oe[Ni])===oe[Ni])}}}Zt.prototype.defined=!0;function vn(ce,ge,et){et&&(ce[ge]=et)}const bt={}.hasOwnProperty;function ft(ce){const ge={},et={};let rn;for(rn in ce.properties)if(bt.call(ce.properties,rn)){const Sr=ce.properties[rn],$r=new Zt(rn,ce.transform(ce.attributes||{},rn),Sr,ce.space);ce.mustUseProperty&&ce.mustUseProperty.includes(rn)&&($r.mustUseProperty=!0),ge[rn]=$r,et[De(rn)]=rn,et[De($r.attribute)]=rn}return new be(ge,et,ce.space)}const ct=ft({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}}),qt=ft({space:"xml",transform(ce,ge){return"xml:"+ge.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dn(ce,ge){return ge in ce?ce[ge]:ge}function kt(ce,ge){return dn(ce,ge.toLowerCase())}const bn=ft({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:kt,properties:{xmlns:null,xmlnsXLink:null}}),gn=ft({transform(ce,ge){return ge==="role"?ge:"aria-"+ge.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:at,ariaAutoComplete:null,ariaBusy:at,ariaChecked:at,ariaColCount:ot,ariaColIndex:ot,ariaColSpan:ot,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:at,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:at,ariaFlowTo:vt,ariaGrabbed:at,ariaHasPopup:null,ariaHidden:at,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:ot,ariaLive:null,ariaModal:at,ariaMultiLine:at,ariaMultiSelectable:at,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:ot,ariaPressed:at,ariaReadOnly:at,ariaRelevant:null,ariaRequired:at,ariaRoleDescription:vt,ariaRowCount:ot,ariaRowIndex:ot,ariaRowSpan:ot,ariaSelected:at,ariaSetSize:ot,ariaSort:null,ariaValueMax:ot,ariaValueMin:ot,ariaValueNow:ot,ariaValueText:null,role:null}}),Zn=ft({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:kt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xt,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:vt,autoFocus:$e,autoPlay:$e,blocking:vt,capture:null,charSet:null,checked:$e,cite:null,className:vt,cols:ot,colSpan:null,content:null,contentEditable:at,controls:$e,controlsList:vt,coords:ot|xt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:ht,draggable:at,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:vt,height:ot,hidden:$e,high:ot,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:vt,itemRef:vt,itemScope:$e,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:ot,manifest:null,max:null,maxLength:ot,media:null,method:null,min:null,minLength:ot,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,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:$e,optimum:ot,pattern:null,ping:vt,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:vt,required:$e,reversed:$e,rows:ot,rowSpan:ot,sandbox:vt,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:ot,sizes:null,slot:null,span:ot,spellCheck:at,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ot,step:null,style:null,tabIndex:ot,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:at,width:ot,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:ot,borderColor:null,bottomMargin:ot,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:ot,leftMargin:ot,link:null,longDesc:null,lowSrc:null,marginHeight:ot,marginWidth:ot,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:ot,rules:null,scheme:null,scrolling:at,standby:null,summary:null,text:null,topMargin:ot,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ot,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:ot,security:null,unselectable:null}}),Gt=ft({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:dn,properties:{about:Tt,accentHeight:ot,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ot,amplitude:ot,arabicForm:null,ascent:ot,attributeName:null,attributeType:null,azimuth:ot,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ot,by:null,calcMode:null,capHeight:ot,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:ot,diffuseConstant:ot,direction:null,display:null,dur:null,divisor:ot,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ot,enableBackground:null,end:null,event:null,exponent:ot,externalResourcesRequired:null,fill:null,fillOpacity:ot,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:xt,g2:xt,glyphName:xt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ot,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ot,horizOriginX:ot,horizOriginY:ot,id:null,ideographic:ot,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ot,k:ot,k1:ot,k2:ot,k3:ot,k4:ot,kernelMatrix:Tt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ot,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:ot,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:ot,overlineThickness:ot,paintOrder:null,panose1:null,path:null,pathLength:ot,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ot,pointsAtY:ot,pointsAtZ:ot,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Tt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tt,rev:Tt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tt,requiredFeatures:Tt,requiredFonts:Tt,requiredFormats:Tt,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:ot,specularExponent:ot,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ot,strikethroughThickness:ot,string:null,stroke:null,strokeDashArray:Tt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ot,strokeOpacity:ot,strokeWidth:null,style:null,surfaceScale:ot,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Tt,tabIndex:ot,tableValues:null,target:null,targetX:ot,targetY:ot,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Tt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ot,underlineThickness:ot,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ot,values:null,vAlphabetic:ot,vMathematical:ot,vectorEffect:null,vHanging:ot,vIdeographic:ot,version:null,vertAdvY:ot,vertOriginX:ot,vertOriginY:ot,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ot,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Rt=Ae([qt,ct,bn,gn,Zn],"html"),tn=Ae([qt,ct,bn,gn,Gt],"svg"),zn=/^data[-\w.:]+$/i,Yn=/-[a-z]/g,nt=/[A-Z]/g;function Be(ce,ge){const et=De(ge);let rn=ge,Sr=Ye;if(et in ce.normal)return ce.property[ce.normal[et]];if(et.length>4&&et.slice(0,4)==="data"&&zn.test(ge)){if(ge.charAt(4)==="-"){const $r=ge.slice(5).replace(Yn,Ze);rn="data"+$r.charAt(0).toUpperCase()+$r.slice(1)}else{const $r=ge.slice(4);if(!Yn.test($r)){let Ni=$r.replace(nt,Re);Ni.charAt(0)!=="-"&&(Ni="-"+Ni),ge="data"+Ni}}Sr=Zt}return new Sr(rn,ge)}function Re(ce){return"-"+ce.toLowerCase()}function Ze(ce){return ce.charAt(1).toUpperCase()}var st=ae(71523);const Fe={}.hasOwnProperty;function St(ce,ge){const et=ge||{};function rn(Sr,...$r){let Ni=rn.invalid;const Lo=rn.handlers;if(Sr&&Fe.call(Sr,ce)){const Xo=String(Sr[ce]);Ni=Fe.call(Lo,Xo)?Lo[Xo]:rn.unknown}if(Ni)return Ni.call(this,Sr,...$r)}return rn.handlers=et.handlers||{},rn.invalid=et.invalid,rn.unknown=et.unknown,rn}const hn={},On={}.hasOwnProperty,or=St("type",{handlers:{root:Ut,element:Ht,text:Mn,comment:Tn,doctype:En}});function jt(ce,ge){const rn=(ge||hn).space;return or(ce,rn==="svg"?tn:Rt)}function Ut(ce,ge){const et={nodeName:"#document",mode:(ce.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return et.childNodes=Xt(ce.children,et,ge),nn(ce,et),et}function Qt(ce,ge){const et={nodeName:"#document-fragment",childNodes:[]};return et.childNodes=Xt(ce.children,et,ge),nn(ce,et),et}function En(ce){const ge={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return nn(ce,ge),ge}function Mn(ce){const ge={nodeName:"#text",value:ce.value,parentNode:null};return nn(ce,ge),ge}function Tn(ce){const ge={nodeName:"#comment",data:ce.value,parentNode:null};return nn(ce,ge),ge}function Ht(ce,ge){const et=ge;let rn=et;ce.type==="element"&&ce.tagName.toLowerCase()==="svg"&&et.space==="html"&&(rn=tn);const Sr=[];let $r;if(ce.properties){for($r in ce.properties)if($r!=="children"&&On.call(ce.properties,$r)){const Xo=Vn(rn,$r,ce.properties[$r]);Xo&&Sr.push(Xo)}}const Ni=rn.space;(0,ke.ok)(Ni);const Lo={nodeName:ce.tagName,tagName:ce.tagName,attrs:Sr,namespaceURI:Qe.t[Ni],childNodes:[],parentNode:null};return Lo.childNodes=Xt(ce.children,Lo,rn),nn(ce,Lo),ce.tagName==="template"&&ce.content&&(Lo.content=Qt(ce.content,rn)),Lo}function Vn(ce,ge,et){const rn=Be(ce,ge);if(et===!1||et===null||et===void 0||typeof et=="number"&&Number.isNaN(et)||!et&&rn.boolean)return;Array.isArray(et)&&(et=rn.commaSeparated?(0,me.P)(et):(0,st.P)(et));const Sr={name:rn.attribute,value:et===!0?"":String(et)};if(rn.space&&rn.space!=="html"&&rn.space!=="svg"){const $r=Sr.name.indexOf(":");$r<0?Sr.prefix="":(Sr.name=Sr.name.slice($r+1),Sr.prefix=rn.attribute.slice(0,$r)),Sr.namespace=Qe.t[rn.space]}return Sr}function Xt(ce,ge,et){let rn=-1;const Sr=[];if(ce)for(;++rn<ce.length;){const $r=or(ce[rn],et);$r.parentNode=ge,Sr.push($r)}return Sr}function nn(ce,ge){const et=ce.position;et&&et.start&&et.end&&((0,ke.ok)(typeof et.start.offset=="number"),(0,ke.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 fn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Gn=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]),cn="\uFFFD";var Et;(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"})(Et||(Et={}));const Jn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ir(ce){return ce>=55296&&ce<=57343}function Wt(ce){return ce>=56320&&ce<=57343}function wr(ce,ge){return(ce-55296)*1024+9216+ge}function ei(ce){return ce!==32&&ce!==10&&ce!==13&&ce!==9&&ce!==12&&ce>=1&&ce<=31||ce>=127&&ce<=159}function Fr(ce){return ce>=64976&&ce<=65007||Gn.has(ce)}var Dn;(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"})(Dn||(Dn={}));const ii=65536;class Kr{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=ii,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:rn,col:Sr,offset:$r}=this,Ni=Sr+et,Lo=$r+et;return{code:ge,startLine:rn,endLine:rn,startCol:Ni,endCol:Ni,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(Wt(et))return this.pos++,this._addGap(),wr(ge,et)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Et.EOF;return this._err(Dn.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 rn=0;rn<ge.length;rn++)if((this.html.charCodeAt(this.pos+rn)|32)!==ge.charCodeAt(rn))return!1;return!0}peek(ge){const et=this.pos+ge;if(et>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Et.EOF;const rn=this.html.charCodeAt(et);return rn===Et.CARRIAGE_RETURN?Et.LINE_FEED:rn}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,Et.EOF;let ge=this.html.charCodeAt(this.pos);return ge===Et.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Et.LINE_FEED):ge===Et.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,ir(ge)&&(ge=this._processSurrogate(ge)),this.handler.onParseError===null||ge>31&&ge<127||ge===Et.LINE_FEED||ge===Et.CARRIAGE_RETURN||ge>159&&ge<64976||this._checkForProblematicCharacters(ge),ge)}_checkForProblematicCharacters(ge){ei(ge)?this._err(Dn.controlCharacterInInputStream):Fr(ge)&&this._err(Dn.noncharacterInInputStream)}retreat(ge){for(this.pos-=ge;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var cr;(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"})(cr||(cr={}));function Dr(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}const ri=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(ce=>ce.charCodeAt(0))),_e=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ce=>ce.charCodeAt(0)));var Mr;const Tr=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]]),sr=(Mr=String.fromCodePoint)!==null&&Mr!==void 0?Mr: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 _r(ce){var ge;return ce>=55296&&ce<=57343||ce>1114111?65533:(ge=Tr.get(ce))!==null&&ge!==void 0?ge:ce}function Gr(ce){return sr(_r(ce))}var br;(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"})(br||(br={}));const Ci=32;var Rn;(function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"})(Rn||(Rn={}));function Pn(ce){return ce>=br.ZERO&&ce<=br.NINE}function Sn(ce){return ce>=br.UPPER_A&&ce<=br.UPPER_F||ce>=br.LOWER_A&&ce<=br.LOWER_F}function $n(ce){return ce>=br.UPPER_A&&ce<=br.UPPER_Z||ce>=br.LOWER_A&&ce<=br.LOWER_Z||Pn(ce)}function li(ce){return ce===br.EQUALS||$n(ce)}var Yr;(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"})(Yr||(Yr={}));var ci;(function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"})(ci||(ci={}));class _n{constructor(ge,et,rn){this.decodeTree=ge,this.emitCodePoint=et,this.errors=rn,this.state=Yr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ci.Strict}startEntity(ge){this.decodeMode=ge,this.state=Yr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(ge,et){switch(this.state){case Yr.EntityStart:return ge.charCodeAt(et)===br.NUM?(this.state=Yr.NumericStart,this.consumed+=1,this.stateNumericStart(ge,et+1)):(this.state=Yr.NamedEntity,this.stateNamedEntity(ge,et));case Yr.NumericStart:return this.stateNumericStart(ge,et);case Yr.NumericDecimal:return this.stateNumericDecimal(ge,et);case Yr.NumericHex:return this.stateNumericHex(ge,et);case Yr.NamedEntity:return this.stateNamedEntity(ge,et)}}stateNumericStart(ge,et){return et>=ge.length?-1:(ge.charCodeAt(et)|Ci)===br.LOWER_X?(this.state=Yr.NumericHex,this.consumed+=1,this.stateNumericHex(ge,et+1)):(this.state=Yr.NumericDecimal,this.stateNumericDecimal(ge,et))}addToNumericResult(ge,et,rn,Sr){if(et!==rn){const $r=rn-et;this.result=this.result*Math.pow(Sr,$r)+Number.parseInt(ge.substr(et,$r),Sr),this.consumed+=$r}}stateNumericHex(ge,et){const rn=et;for(;et<ge.length;){const Sr=ge.charCodeAt(et);if(Pn(Sr)||Sn(Sr))et+=1;else return this.addToNumericResult(ge,rn,et,16),this.emitNumericEntity(Sr,3)}return this.addToNumericResult(ge,rn,et,16),-1}stateNumericDecimal(ge,et){const rn=et;for(;et<ge.length;){const Sr=ge.charCodeAt(et);if(Pn(Sr))et+=1;else return this.addToNumericResult(ge,rn,et,10),this.emitNumericEntity(Sr,2)}return this.addToNumericResult(ge,rn,et,10),-1}emitNumericEntity(ge,et){var rn;if(this.consumed<=et)return(rn=this.errors)===null||rn===void 0||rn.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(ge===br.SEMI)this.consumed+=1;else if(this.decodeMode===ci.Strict)return 0;return this.emitCodePoint(_r(this.result),this.consumed),this.errors&&(ge!==br.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(ge,et){const{decodeTree:rn}=this;let Sr=rn[this.treeIndex],$r=(Sr&Rn.VALUE_LENGTH)>>14;for(;et<ge.length;et++,this.excess++){const Ni=ge.charCodeAt(et);if(this.treeIndex=oi(rn,Sr,this.treeIndex+Math.max(1,$r),Ni),this.treeIndex<0)return this.result===0||this.decodeMode===ci.Attribute&&($r===0||li(Ni))?0:this.emitNotTerminatedNamedEntity();if(Sr=rn[this.treeIndex],$r=(Sr&Rn.VALUE_LENGTH)>>14,$r!==0){if(Ni===br.SEMI)return this.emitNamedEntityData(this.treeIndex,$r,this.consumed+this.excess);this.decodeMode!==ci.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var ge;const{result:et,decodeTree:rn}=this,Sr=(rn[et]&Rn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(et,Sr,this.consumed),(ge=this.errors)===null||ge===void 0||ge.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(ge,et,rn){const{decodeTree:Sr}=this;return this.emitCodePoint(et===1?Sr[ge]&~Rn.VALUE_LENGTH:Sr[ge+1],rn),et===3&&this.emitCodePoint(Sr[ge+2],rn),rn}end(){var ge;switch(this.state){case Yr.NamedEntity:return this.result!==0&&(this.decodeMode!==ci.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yr.NumericDecimal:return this.emitNumericEntity(0,2);case Yr.NumericHex:return this.emitNumericEntity(0,3);case Yr.NumericStart:return(ge=this.errors)===null||ge===void 0||ge.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yr.EntityStart:return 0}}}function dr(ce){let ge="";const et=new _n(ce,rn=>ge+=fromCodePoint(rn));return function(Sr,$r){let Ni=0,Lo=0;for(;(Lo=Sr.indexOf("&",Lo))>=0;){ge+=Sr.slice(Ni,Lo),et.startEntity($r);const ni=et.write(Sr,Lo+1);if(ni<0){Ni=Lo+et.end();break}Ni=Lo+ni,Lo=ni===0?Ni+1:Ni}const Xo=ge+Sr.slice(Ni);return ge="",Xo}}function oi(ce,ge,et,rn){const Sr=(ge&Rn.BRANCH_LENGTH)>>7,$r=ge&Rn.JUMP_TABLE;if(Sr===0)return $r!==0&&rn===$r?et:-1;if($r){const Xo=rn-$r;return Xo<0||Xo>=Sr?-1:ce[et+Xo]-1}let Ni=et,Lo=Ni+Sr-1;for(;Ni<=Lo;){const Xo=Ni+Lo>>>1,ni=ce[Xo];if(ni<rn)Ni=Xo+1;else if(ni>rn)Lo=Xo-1;else return ce[Xo+Sr]}return-1}const bi=null,Pr=null;function Lt(ce,ge=ci.Legacy){return bi(ce,ge)}function ln(ce){return bi(ce,ci.Attribute)}function Nr(ce){return bi(ce,ci.Strict)}function Er(ce){return Pr(ce,ci.Strict)}var Yt;(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/"})(Yt||(Yt={}));var Nn;(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"})(Nn||(Nn={}));var Xr;(function(ce){ce.NO_QUIRKS="no-quirks",ce.QUIRKS="quirks",ce.LIMITED_QUIRKS="limited-quirks"})(Xr||(Xr={}));var Ln;(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"})(Ln||(Ln={}));var Ve;(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"})(Ve||(Ve={}));const Rr=new Map([[Ln.A,Ve.A],[Ln.ADDRESS,Ve.ADDRESS],[Ln.ANNOTATION_XML,Ve.ANNOTATION_XML],[Ln.APPLET,Ve.APPLET],[Ln.AREA,Ve.AREA],[Ln.ARTICLE,Ve.ARTICLE],[Ln.ASIDE,Ve.ASIDE],[Ln.B,Ve.B],[Ln.BASE,Ve.BASE],[Ln.BASEFONT,Ve.BASEFONT],[Ln.BGSOUND,Ve.BGSOUND],[Ln.BIG,Ve.BIG],[Ln.BLOCKQUOTE,Ve.BLOCKQUOTE],[Ln.BODY,Ve.BODY],[Ln.BR,Ve.BR],[Ln.BUTTON,Ve.BUTTON],[Ln.CAPTION,Ve.CAPTION],[Ln.CENTER,Ve.CENTER],[Ln.CODE,Ve.CODE],[Ln.COL,Ve.COL],[Ln.COLGROUP,Ve.COLGROUP],[Ln.DD,Ve.DD],[Ln.DESC,Ve.DESC],[Ln.DETAILS,Ve.DETAILS],[Ln.DIALOG,Ve.DIALOG],[Ln.DIR,Ve.DIR],[Ln.DIV,Ve.DIV],[Ln.DL,Ve.DL],[Ln.DT,Ve.DT],[Ln.EM,Ve.EM],[Ln.EMBED,Ve.EMBED],[Ln.FIELDSET,Ve.FIELDSET],[Ln.FIGCAPTION,Ve.FIGCAPTION],[Ln.FIGURE,Ve.FIGURE],[Ln.FONT,Ve.FONT],[Ln.FOOTER,Ve.FOOTER],[Ln.FOREIGN_OBJECT,Ve.FOREIGN_OBJECT],[Ln.FORM,Ve.FORM],[Ln.FRAME,Ve.FRAME],[Ln.FRAMESET,Ve.FRAMESET],[Ln.H1,Ve.H1],[Ln.H2,Ve.H2],[Ln.H3,Ve.H3],[Ln.H4,Ve.H4],[Ln.H5,Ve.H5],[Ln.H6,Ve.H6],[Ln.HEAD,Ve.HEAD],[Ln.HEADER,Ve.HEADER],[Ln.HGROUP,Ve.HGROUP],[Ln.HR,Ve.HR],[Ln.HTML,Ve.HTML],[Ln.I,Ve.I],[Ln.IMG,Ve.IMG],[Ln.IMAGE,Ve.IMAGE],[Ln.INPUT,Ve.INPUT],[Ln.IFRAME,Ve.IFRAME],[Ln.KEYGEN,Ve.KEYGEN],[Ln.LABEL,Ve.LABEL],[Ln.LI,Ve.LI],[Ln.LINK,Ve.LINK],[Ln.LISTING,Ve.LISTING],[Ln.MAIN,Ve.MAIN],[Ln.MALIGNMARK,Ve.MALIGNMARK],[Ln.MARQUEE,Ve.MARQUEE],[Ln.MATH,Ve.MATH],[Ln.MENU,Ve.MENU],[Ln.META,Ve.META],[Ln.MGLYPH,Ve.MGLYPH],[Ln.MI,Ve.MI],[Ln.MO,Ve.MO],[Ln.MN,Ve.MN],[Ln.MS,Ve.MS],[Ln.MTEXT,Ve.MTEXT],[Ln.NAV,Ve.NAV],[Ln.NOBR,Ve.NOBR],[Ln.NOFRAMES,Ve.NOFRAMES],[Ln.NOEMBED,Ve.NOEMBED],[Ln.NOSCRIPT,Ve.NOSCRIPT],[Ln.OBJECT,Ve.OBJECT],[Ln.OL,Ve.OL],[Ln.OPTGROUP,Ve.OPTGROUP],[Ln.OPTION,Ve.OPTION],[Ln.P,Ve.P],[Ln.PARAM,Ve.PARAM],[Ln.PLAINTEXT,Ve.PLAINTEXT],[Ln.PRE,Ve.PRE],[Ln.RB,Ve.RB],[Ln.RP,Ve.RP],[Ln.RT,Ve.RT],[Ln.RTC,Ve.RTC],[Ln.RUBY,Ve.RUBY],[Ln.S,Ve.S],[Ln.SCRIPT,Ve.SCRIPT],[Ln.SEARCH,Ve.SEARCH],[Ln.SECTION,Ve.SECTION],[Ln.SELECT,Ve.SELECT],[Ln.SOURCE,Ve.SOURCE],[Ln.SMALL,Ve.SMALL],[Ln.SPAN,Ve.SPAN],[Ln.STRIKE,Ve.STRIKE],[Ln.STRONG,Ve.STRONG],[Ln.STYLE,Ve.STYLE],[Ln.SUB,Ve.SUB],[Ln.SUMMARY,Ve.SUMMARY],[Ln.SUP,Ve.SUP],[Ln.TABLE,Ve.TABLE],[Ln.TBODY,Ve.TBODY],[Ln.TEMPLATE,Ve.TEMPLATE],[Ln.TEXTAREA,Ve.TEXTAREA],[Ln.TFOOT,Ve.TFOOT],[Ln.TD,Ve.TD],[Ln.TH,Ve.TH],[Ln.THEAD,Ve.THEAD],[Ln.TITLE,Ve.TITLE],[Ln.TR,Ve.TR],[Ln.TRACK,Ve.TRACK],[Ln.TT,Ve.TT],[Ln.U,Ve.U],[Ln.UL,Ve.UL],[Ln.SVG,Ve.SVG],[Ln.VAR,Ve.VAR],[Ln.WBR,Ve.WBR],[Ln.XMP,Ve.XMP]]);function kr(ce){var ge;return(ge=Rr.get(ce))!==null&&ge!==void 0?ge:Ve.UNKNOWN}const jn=Ve,hi={[Yt.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]),[Yt.MATHML]:new Set([jn.MI,jn.MO,jn.MN,jn.MS,jn.MTEXT,jn.ANNOTATION_XML]),[Yt.SVG]:new Set([jn.TITLE,jn.FOREIGN_OBJECT,jn.DESC]),[Yt.XLINK]:new Set,[Yt.XML]:new Set,[Yt.XMLNS]:new Set},jr=new Set([jn.H1,jn.H2,jn.H3,jn.H4,jn.H5,jn.H6]),ar=new Set([Ln.STYLE,Ln.SCRIPT,Ln.XMP,Ln.IFRAME,Ln.NOEMBED,Ln.NOFRAMES,Ln.PLAINTEXT]);function Qr(ce,ge){return ar.has(ce)||ge&&ce===Ln.NOSCRIPT}var un;(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"})(un||(un={}));const Ti={DATA:un.DATA,RCDATA:un.RCDATA,RAWTEXT:un.RAWTEXT,SCRIPT_DATA:un.SCRIPT_DATA,PLAINTEXT:un.PLAINTEXT,CDATA_SECTION:un.CDATA_SECTION};function eo(ce){return ce>=Et.DIGIT_0&&ce<=Et.DIGIT_9}function mn(ce){return ce>=Et.LATIN_CAPITAL_A&&ce<=Et.LATIN_CAPITAL_Z}function wi(ce){return ce>=Et.LATIN_SMALL_A&&ce<=Et.LATIN_SMALL_Z}function Di(ce){return wi(ce)||mn(ce)}function gi(ce){return Di(ce)||eo(ce)}function ki(ce){return ce+32}function zi(ce){return ce===Et.SPACE||ce===Et.LINE_FEED||ce===Et.TABULATION||ce===Et.FORM_FEED}function ro(ce){return zi(ce)||ce===Et.SOLIDUS||ce===Et.GREATER_THAN_SIGN}function Gi(ce){return ce===Et.NULL?Dn.nullCharacterReference:ce>1114111?Dn.characterReferenceOutsideUnicodeRange:ir(ce)?Dn.surrogateCharacterReference:Fr(ce)?Dn.noncharacterCharacterReference:ei(ce)||ce===Et.CARRIAGE_RETURN?Dn.controlCharacterReference:null}class Fi{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=un.DATA,this.returnState=un.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Kr(et),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _n(ri,(rn,Sr)=>{this.preprocessor.pos=this.entityStartPos+Sr-1,this._flushCodePointConsumedAsCharacterReference(rn)},et.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Dn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:rn=>{this._err(Dn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+rn)},validateNumericCharacterReference:rn=>{const Sr=Gi(rn);Sr&&this._err(Sr,1)}}:void 0)}_err(ge,et=0){var rn,Sr;(Sr=(rn=this.handler).onParseError)===null||Sr===void 0||Sr.call(rn,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,rn){this.active=!0,this.preprocessor.write(ge,et),this._runParsingLoop(),this.paused||rn==null||rn()}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:cr.START_TAG,tagName:"",tagID:Ve.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:cr.END_TAG,tagName:"",tagID:Ve.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(ge){this.currentToken={type:cr.COMMENT,data:"",location:this.getCurrentLocation(ge)}}_createDoctypeToken(ge){this.currentToken={type:cr.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 rn=this.currentToken;if(Dr(rn,this.currentAttr.name)===null){if(rn.attrs.push(this.currentAttr),rn.location&&this.currentLocation){const Sr=(ge=(et=rn.location).attrs)!==null&&ge!==void 0?ge:et.attrs=Object.create(null);Sr[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Dn.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(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=kr(ge.tagName),ge.type===cr.START_TAG?(this.lastStartTagName=ge.tagName,this.handler.onStartTag(ge)):(ge.attrs.length>0&&this._err(Dn.endTagWithAttributes),ge.selfClosing&&this._err(Dn.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 cr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case cr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case cr.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:cr.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=zi(ge)?cr.WHITESPACE_CHARACTER:ge===Et.NULL?cr.NULL_CHARACTER:cr.CHARACTER;this._appendCharToCurrentCharacterToken(et,String.fromCodePoint(ge))}_emitChars(ge){this._appendCharToCurrentCharacterToken(cr.CHARACTER,ge)}_startCharacterReference(){this.returnState=this.state,this.state=un.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ci.Attribute:ci.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===un.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===un.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===un.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(ge){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(ge):this._emitCodePoint(ge)}_callState(ge){switch(this.state){case un.DATA:{this._stateData(ge);break}case un.RCDATA:{this._stateRcdata(ge);break}case un.RAWTEXT:{this._stateRawtext(ge);break}case un.SCRIPT_DATA:{this._stateScriptData(ge);break}case un.PLAINTEXT:{this._statePlaintext(ge);break}case un.TAG_OPEN:{this._stateTagOpen(ge);break}case un.END_TAG_OPEN:{this._stateEndTagOpen(ge);break}case un.TAG_NAME:{this._stateTagName(ge);break}case un.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(ge);break}case un.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(ge);break}case un.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(ge);break}case un.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(ge);break}case un.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(ge);break}case un.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(ge);break}case un.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(ge);break}case un.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(ge);break}case un.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(ge);break}case un.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(ge);break}case un.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(ge);break}case un.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(ge);break}case un.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(ge);break}case un.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(ge);break}case un.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(ge);break}case un.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(ge);break}case un.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(ge);break}case un.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(ge);break}case un.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(ge);break}case un.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(ge);break}case un.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(ge);break}case un.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(ge);break}case un.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(ge);break}case un.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(ge);break}case un.ATTRIBUTE_NAME:{this._stateAttributeName(ge);break}case un.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(ge);break}case un.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(ge);break}case un.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(ge);break}case un.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(ge);break}case un.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(ge);break}case un.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(ge);break}case un.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(ge);break}case un.BOGUS_COMMENT:{this._stateBogusComment(ge);break}case un.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(ge);break}case un.COMMENT_START:{this._stateCommentStart(ge);break}case un.COMMENT_START_DASH:{this._stateCommentStartDash(ge);break}case un.COMMENT:{this._stateComment(ge);break}case un.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(ge);break}case un.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(ge);break}case un.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(ge);break}case un.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(ge);break}case un.COMMENT_END_DASH:{this._stateCommentEndDash(ge);break}case un.COMMENT_END:{this._stateCommentEnd(ge);break}case un.COMMENT_END_BANG:{this._stateCommentEndBang(ge);break}case un.DOCTYPE:{this._stateDoctype(ge);break}case un.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(ge);break}case un.DOCTYPE_NAME:{this._stateDoctypeName(ge);break}case un.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(ge);break}case un.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(ge);break}case un.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(ge);break}case un.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(ge);break}case un.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(ge);break}case un.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(ge);break}case un.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(ge);break}case un.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(ge);break}case un.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(ge);break}case un.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(ge);break}case un.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(ge);break}case un.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(ge);break}case un.BOGUS_DOCTYPE:{this._stateBogusDoctype(ge);break}case un.CDATA_SECTION:{this._stateCdataSection(ge);break}case un.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(ge);break}case un.CDATA_SECTION_END:{this._stateCdataSectionEnd(ge);break}case un.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case un.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(ge);break}default:throw new Error("Unknown state")}}_stateData(ge){switch(ge){case Et.LESS_THAN_SIGN:{this.state=un.TAG_OPEN;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitCodePoint(ge);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRcdata(ge){switch(ge){case Et.AMPERSAND:{this._startCharacterReference();break}case Et.LESS_THAN_SIGN:{this.state=un.RCDATA_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(cn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRawtext(ge){switch(ge){case Et.LESS_THAN_SIGN:{this.state=un.RAWTEXT_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(cn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptData(ge){switch(ge){case Et.LESS_THAN_SIGN:{this.state=un.SCRIPT_DATA_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(cn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_statePlaintext(ge){switch(ge){case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(cn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateTagOpen(ge){if(Di(ge))this._createStartTagToken(),this.state=un.TAG_NAME,this._stateTagName(ge);else switch(ge){case Et.EXCLAMATION_MARK:{this.state=un.MARKUP_DECLARATION_OPEN;break}case Et.SOLIDUS:{this.state=un.END_TAG_OPEN;break}case Et.QUESTION_MARK:{this._err(Dn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=un.BOGUS_COMMENT,this._stateBogusComment(ge);break}case Et.EOF:{this._err(Dn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Dn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=un.DATA,this._stateData(ge)}}_stateEndTagOpen(ge){if(Di(ge))this._createEndTagToken(),this.state=un.TAG_NAME,this._stateTagName(ge);else switch(ge){case Et.GREATER_THAN_SIGN:{this._err(Dn.missingEndTagName),this.state=un.DATA;break}case Et.EOF:{this._err(Dn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Dn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=un.BOGUS_COMMENT,this._stateBogusComment(ge)}}_stateTagName(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=un.BEFORE_ATTRIBUTE_NAME;break}case Et.SOLIDUS:{this.state=un.SELF_CLOSING_START_TAG;break}case Et.GREATER_THAN_SIGN:{this.state=un.DATA,this.emitCurrentTagToken();break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.tagName+=cn;break}case Et.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:et.tagName+=String.fromCodePoint(mn(ge)?ki(ge):ge)}}_stateRcdataLessThanSign(ge){ge===Et.SOLIDUS?this.state=un.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=un.RCDATA,this._stateRcdata(ge))}_stateRcdataEndTagOpen(ge){Di(ge)?(this.state=un.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(ge)):(this._emitChars("</"),this.state=un.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 Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=un.BEFORE_ATTRIBUTE_NAME,!1;case Et.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=un.SELF_CLOSING_START_TAG,!1;case Et.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=un.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=un.RCDATA,this._stateRcdata(ge))}_stateRawtextLessThanSign(ge){ge===Et.SOLIDUS?this.state=un.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=un.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagOpen(ge){Di(ge)?(this.state=un.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(ge)):(this._emitChars("</"),this.state=un.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=un.RAWTEXT,this._stateRawtext(ge))}_stateScriptDataLessThanSign(ge){switch(ge){case Et.SOLIDUS:{this.state=un.SCRIPT_DATA_END_TAG_OPEN;break}case Et.EXCLAMATION_MARK:{this.state=un.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=un.SCRIPT_DATA,this._stateScriptData(ge)}}_stateScriptDataEndTagOpen(ge){Di(ge)?(this.state=un.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(ge)):(this._emitChars("</"),this.state=un.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=un.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStart(ge){ge===Et.HYPHEN_MINUS?(this.state=un.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=un.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStartDash(ge){ge===Et.HYPHEN_MINUS?(this.state=un.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=un.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscaped(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=un.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=un.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(cn);break}case Et.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataEscapedDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=un.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=un.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=un.SCRIPT_DATA_ESCAPED,this._emitChars(cn);break}case Et.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=un.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedDashDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=un.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.GREATER_THAN_SIGN:{this.state=un.SCRIPT_DATA,this._emitChars(">");break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=un.SCRIPT_DATA_ESCAPED,this._emitChars(cn);break}case Et.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=un.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedLessThanSign(ge){ge===Et.SOLIDUS?this.state=un.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Di(ge)?(this._emitChars("<"),this.state=un.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(ge)):(this._emitChars("<"),this.state=un.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagOpen(ge){Di(ge)?(this.state=un.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(ge)):(this._emitChars("</"),this.state=un.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=un.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscapeStart(ge){if(this.preprocessor.startsWith(Jn.SCRIPT,!1)&&ro(this.preprocessor.peek(Jn.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<Jn.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=un.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscaped(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(cn);break}case Et.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(cn);break}case Et.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDashDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.GREATER_THAN_SIGN:{this.state=un.SCRIPT_DATA,this._emitChars(">");break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(cn);break}case Et.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedLessThanSign(ge){ge===Et.SOLIDUS?(this.state=un.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateScriptDataDoubleEscapeEnd(ge){if(this.preprocessor.startsWith(Jn.SCRIPT,!1)&&ro(this.preprocessor.peek(Jn.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<Jn.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=un.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=un.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateBeforeAttributeName(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.SOLIDUS:case Et.GREATER_THAN_SIGN:case Et.EOF:{this.state=un.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case Et.EQUALS_SIGN:{this._err(Dn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=un.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=un.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateAttributeName(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:case Et.SOLIDUS:case Et.GREATER_THAN_SIGN:case Et.EOF:{this._leaveAttrName(),this.state=un.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case Et.EQUALS_SIGN:{this._leaveAttrName(),this.state=un.BEFORE_ATTRIBUTE_VALUE;break}case Et.QUOTATION_MARK:case Et.APOSTROPHE:case Et.LESS_THAN_SIGN:{this._err(Dn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(ge);break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.name+=cn;break}default:this.currentAttr.name+=String.fromCodePoint(mn(ge)?ki(ge):ge)}}_stateAfterAttributeName(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.SOLIDUS:{this.state=un.SELF_CLOSING_START_TAG;break}case Et.EQUALS_SIGN:{this.state=un.BEFORE_ATTRIBUTE_VALUE;break}case Et.GREATER_THAN_SIGN:{this.state=un.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=un.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateBeforeAttributeValue(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{this.state=un.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this.state=un.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.missingAttributeValue),this.state=un.DATA,this.emitCurrentTagToken();break}default:this.state=un.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(ge)}}_stateAttributeValueDoubleQuoted(ge){switch(ge){case Et.QUOTATION_MARK:{this.state=un.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.value+=cn;break}case Et.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueSingleQuoted(ge){switch(ge){case Et.APOSTROPHE:{this.state=un.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.value+=cn;break}case Et.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueUnquoted(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this._leaveAttrValue(),this.state=un.BEFORE_ATTRIBUTE_NAME;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=un.DATA,this.emitCurrentTagToken();break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.value+=cn;break}case Et.QUOTATION_MARK:case Et.APOSTROPHE:case Et.LESS_THAN_SIGN:case Et.EQUALS_SIGN:case Et.GRAVE_ACCENT:{this._err(Dn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(ge);break}case Et.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAfterAttributeValueQuoted(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this._leaveAttrValue(),this.state=un.BEFORE_ATTRIBUTE_NAME;break}case Et.SOLIDUS:{this._leaveAttrValue(),this.state=un.SELF_CLOSING_START_TAG;break}case Et.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=un.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this._err(Dn.missingWhitespaceBetweenAttributes),this.state=un.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateSelfClosingStartTag(ge){switch(ge){case Et.GREATER_THAN_SIGN:{const et=this.currentToken;et.selfClosing=!0,this.state=un.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this._err(Dn.unexpectedSolidusInTag),this.state=un.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateBogusComment(ge){const et=this.currentToken;switch(ge){case Et.GREATER_THAN_SIGN:{this.state=un.DATA,this.emitCurrentComment(et);break}case Et.EOF:{this.emitCurrentComment(et),this._emitEOFToken();break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.data+=cn;break}default:et.data+=String.fromCodePoint(ge)}}_stateMarkupDeclarationOpen(ge){this._consumeSequenceIfMatch(Jn.DASH_DASH,!0)?(this._createCommentToken(Jn.DASH_DASH.length+1),this.state=un.COMMENT_START):this._consumeSequenceIfMatch(Jn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Jn.DOCTYPE.length+1),this.state=un.DOCTYPE):this._consumeSequenceIfMatch(Jn.CDATA_START,!0)?this.inForeignNode?this.state=un.CDATA_SECTION:(this._err(Dn.cdataInHtmlContent),this._createCommentToken(Jn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=un.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Dn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=un.BOGUS_COMMENT,this._stateBogusComment(ge))}_stateCommentStart(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=un.COMMENT_START_DASH;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.abruptClosingOfEmptyComment),this.state=un.DATA;const et=this.currentToken;this.emitCurrentComment(et);break}default:this.state=un.COMMENT,this._stateComment(ge)}}_stateCommentStartDash(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{this.state=un.COMMENT_END;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.abruptClosingOfEmptyComment),this.state=un.DATA,this.emitCurrentComment(et);break}case Et.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=un.COMMENT,this._stateComment(ge)}}_stateComment(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{this.state=un.COMMENT_END_DASH;break}case Et.LESS_THAN_SIGN:{et.data+="<",this.state=un.COMMENT_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.data+=cn;break}case Et.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+=String.fromCodePoint(ge)}}_stateCommentLessThanSign(ge){const et=this.currentToken;switch(ge){case Et.EXCLAMATION_MARK:{et.data+="!",this.state=un.COMMENT_LESS_THAN_SIGN_BANG;break}case Et.LESS_THAN_SIGN:{et.data+="<";break}default:this.state=un.COMMENT,this._stateComment(ge)}}_stateCommentLessThanSignBang(ge){ge===Et.HYPHEN_MINUS?this.state=un.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=un.COMMENT,this._stateComment(ge))}_stateCommentLessThanSignBangDash(ge){ge===Et.HYPHEN_MINUS?this.state=un.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=un.COMMENT_END_DASH,this._stateCommentEndDash(ge))}_stateCommentLessThanSignBangDashDash(ge){ge!==Et.GREATER_THAN_SIGN&&ge!==Et.EOF&&this._err(Dn.nestedComment),this.state=un.COMMENT_END,this._stateCommentEnd(ge)}_stateCommentEndDash(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{this.state=un.COMMENT_END;break}case Et.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=un.COMMENT,this._stateComment(ge)}}_stateCommentEnd(ge){const et=this.currentToken;switch(ge){case Et.GREATER_THAN_SIGN:{this.state=un.DATA,this.emitCurrentComment(et);break}case Et.EXCLAMATION_MARK:{this.state=un.COMMENT_END_BANG;break}case Et.HYPHEN_MINUS:{et.data+="-";break}case Et.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--",this.state=un.COMMENT,this._stateComment(ge)}}_stateCommentEndBang(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{et.data+="--!",this.state=un.COMMENT_END_DASH;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.incorrectlyClosedComment),this.state=un.DATA,this.emitCurrentComment(et);break}case Et.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--!",this.state=un.COMMENT,this._stateComment(ge)}}_stateDoctype(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=un.BEFORE_DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this.state=un.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge);break}case Et.EOF:{this._err(Dn.eofInDoctype),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.missingWhitespaceBeforeDoctypeName),this.state=un.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge)}}_stateBeforeDoctypeName(ge){if(mn(ge))this._createDoctypeToken(String.fromCharCode(ki(ge))),this.state=un.DOCTYPE_NAME;else switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.NULL:{this._err(Dn.unexpectedNullCharacter),this._createDoctypeToken(cn),this.state=un.DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypeName),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.EOF:{this._err(Dn.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=un.DOCTYPE_NAME}}_stateDoctypeName(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=un.AFTER_DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this.state=un.DATA,this.emitCurrentDoctype(et);break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.name+=cn;break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.name+=String.fromCodePoint(mn(ge)?ki(ge):ge)}}_stateAfterDoctypeName(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.state=un.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Jn.PUBLIC,!1)?this.state=un.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Jn.SYSTEM,!1)?this.state=un.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Dn.invalidCharacterSequenceAfterDoctypeName),et.forceQuirks=!0,this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge))}}_stateAfterDoctypePublicKeyword(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=un.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.QUOTATION_MARK:{this._err(Dn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=un.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(Dn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=un.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=un.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypePublicIdentifier(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{et.publicId="",this.state=un.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{et.publicId="",this.state=un.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=un.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypePublicIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case Et.QUOTATION_MARK:{this.state=un.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.publicId+=cn;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.EOF:{this._err(Dn.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 Et.APOSTROPHE:{this.state=un.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.publicId+=cn;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.EOF:{this._err(Dn.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 Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=un.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case Et.GREATER_THAN_SIGN:{this.state=un.DATA,this.emitCurrentDoctype(et);break}case Et.QUOTATION_MARK:{this._err(Dn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(Dn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBetweenDoctypePublicAndSystemIdentifiers(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.QUOTATION_MARK:{et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateAfterDoctypeSystemKeyword(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=un.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.QUOTATION_MARK:{this._err(Dn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(Dn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=un.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypeSystemIdentifier(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{et.systemId="",this.state=un.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=un.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypeSystemIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case Et.QUOTATION_MARK:{this.state=un.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.systemId+=cn;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.EOF:{this._err(Dn.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 Et.APOSTROPHE:{this.state=un.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter),et.systemId+=cn;break}case Et.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.EOF:{this._err(Dn.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 Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.EOF:{this._err(Dn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Dn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=un.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBogusDoctype(ge){const et=this.currentToken;switch(ge){case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=un.DATA;break}case Et.NULL:{this._err(Dn.unexpectedNullCharacter);break}case Et.EOF:{this.emitCurrentDoctype(et),this._emitEOFToken();break}default:}}_stateCdataSection(ge){switch(ge){case Et.RIGHT_SQUARE_BRACKET:{this.state=un.CDATA_SECTION_BRACKET;break}case Et.EOF:{this._err(Dn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateCdataSectionBracket(ge){ge===Et.RIGHT_SQUARE_BRACKET?this.state=un.CDATA_SECTION_END:(this._emitChars("]"),this.state=un.CDATA_SECTION,this._stateCdataSection(ge))}_stateCdataSectionEnd(ge){switch(ge){case Et.GREATER_THAN_SIGN:{this.state=un.DATA;break}case Et.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=un.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(Et.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&gi(this.preprocessor.peek(1))?un.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(ge){gi(ge)?this._flushCodePointConsumedAsCharacterReference(ge):(ge===Et.SEMICOLON&&this._err(Dn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(ge))}}const io=new Set([Ve.DD,Ve.DT,Ve.LI,Ve.OPTGROUP,Ve.OPTION,Ve.P,Ve.RB,Ve.RP,Ve.RT,Ve.RTC]),qn=new Set([...io,Ve.CAPTION,Ve.COLGROUP,Ve.TBODY,Ve.TD,Ve.TFOOT,Ve.TH,Ve.THEAD,Ve.TR]),Ui=new Set([Ve.APPLET,Ve.CAPTION,Ve.HTML,Ve.MARQUEE,Ve.OBJECT,Ve.TABLE,Ve.TD,Ve.TEMPLATE,Ve.TH]),lr=new Set([...Ui,Ve.OL,Ve.UL]),vi=new Set([...Ui,Ve.BUTTON]),Vi=new Set([Ve.ANNOTATION_XML,Ve.MI,Ve.MN,Ve.MO,Ve.MS,Ve.MTEXT]),Oi=new Set([Ve.DESC,Ve.FOREIGN_OBJECT,Ve.TITLE]),fo=new Set([Ve.TR,Ve.TEMPLATE,Ve.HTML]),co=new Set([Ve.TBODY,Ve.TFOOT,Ve.THEAD,Ve.TEMPLATE,Ve.HTML]),ji=new Set([Ve.TABLE,Ve.TEMPLATE,Ve.HTML]),zo=new Set([Ve.TD,Ve.TH]);class Fn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(ge,et,rn){this.treeAdapter=et,this.handler=rn,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Ve.UNKNOWN,this.current=ge}_indexOf(ge){return this.items.lastIndexOf(ge,this.stackTop)}_isInTemplate(){return this.currentTagId===Ve.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Yt.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 rn=this._indexOf(ge);this.items[rn]=et,rn===this.stackTop&&(this.current=et)}insertAfter(ge,et,rn){const Sr=this._indexOf(ge)+1;this.items.splice(Sr,0,et),this.tagIDs.splice(Sr,0,rn),this.stackTop++,Sr===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,Sr===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])!==Yt.HTML);this.shortenToLength(Math.max(et,0))}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(Math.max(et,0))}popUntilPopped(ge,et){const rn=this._indexOfTagNames(ge,et);this.shortenToLength(Math.max(rn,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(jr,Yt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(zo,Yt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(ge,et){for(let rn=this.stackTop;rn>=0;rn--)if(ge.has(this.tagIDs[rn])&&this.treeAdapter.getNamespaceURI(this.items[rn])===et)return rn;return-1}clearBackTo(ge,et){const rn=this._indexOfTagNames(ge,et);this.shortenToLength(rn+1)}clearBackToTableContext(){this.clearBackTo(ji,Yt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(co,Yt.HTML)}clearBackToTableRowContext(){this.clearBackTo(fo,Yt.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]===Ve.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]===Ve.HTML}hasInDynamicScope(ge,et){for(let rn=this.stackTop;rn>=0;rn--){const Sr=this.tagIDs[rn];switch(this.treeAdapter.getNamespaceURI(this.items[rn])){case Yt.HTML:{if(Sr===ge)return!0;if(et.has(Sr))return!1;break}case Yt.SVG:{if(Oi.has(Sr))return!1;break}case Yt.MATHML:{if(Vi.has(Sr))return!1;break}}}return!0}hasInScope(ge){return this.hasInDynamicScope(ge,Ui)}hasInListItemScope(ge){return this.hasInDynamicScope(ge,lr)}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 Yt.HTML:{if(jr.has(et))return!0;if(Ui.has(et))return!1;break}case Yt.SVG:{if(Oi.has(et))return!1;break}case Yt.MATHML:{if(Vi.has(et))return!1;break}}}return!0}hasInTableScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===Yt.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ve.TABLE:case Ve.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let ge=this.stackTop;ge>=0;ge--)if(this.treeAdapter.getNamespaceURI(this.items[ge])===Yt.HTML)switch(this.tagIDs[ge]){case Ve.TBODY:case Ve.THEAD:case Ve.TFOOT:return!0;case Ve.TABLE:case Ve.HTML:return!1}return!0}hasInSelectScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===Yt.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ve.OPTION:case Ve.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&io.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&qn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(ge){for(;this.currentTagId!==void 0&&this.currentTagId!==ge&&qn.has(this.currentTagId);)this.pop()}}const mr=3;var wn;(function(ce){ce[ce.Marker=0]="Marker",ce[ce.Element=1]="Element"})(wn||(wn={}));const it={type:wn.Marker};class Or{constructor(ge){this.treeAdapter=ge,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(ge,et){const rn=[],Sr=et.length,$r=this.treeAdapter.getTagName(ge),Ni=this.treeAdapter.getNamespaceURI(ge);for(let Lo=0;Lo<this.entries.length;Lo++){const Xo=this.entries[Lo];if(Xo.type===wn.Marker)break;const{element:ni}=Xo;if(this.treeAdapter.getTagName(ni)===$r&&this.treeAdapter.getNamespaceURI(ni)===Ni){const Qi=this.treeAdapter.getAttrList(ni);Qi.length===Sr&&rn.push({idx:Lo,attrs:Qi})}}return rn}_ensureNoahArkCondition(ge){if(this.entries.length<mr)return;const et=this.treeAdapter.getAttrList(ge),rn=this._getNoahArkConditionCandidates(ge,et);if(rn.length<mr)return;const Sr=new Map(et.map(Ni=>[Ni.name,Ni.value]));let $r=0;for(let Ni=0;Ni<rn.length;Ni++){const Lo=rn[Ni];Lo.attrs.every(Xo=>Sr.get(Xo.name)===Xo.value)&&($r+=1,$r>=mr&&this.entries.splice(Lo.idx,1))}}insertMarker(){this.entries.unshift(it)}pushElement(ge,et){this._ensureNoahArkCondition(ge),this.entries.unshift({type:wn.Element,element:ge,token:et})}insertElementAfterBookmark(ge,et){const rn=this.entries.indexOf(this.bookmark);this.entries.splice(rn,0,{type:wn.Element,element:ge,token:et})}removeEntry(ge){const et=this.entries.indexOf(ge);et!==-1&&this.entries.splice(et,1)}clearToLastMarker(){const ge=this.entries.indexOf(it);ge===-1?this.entries.length=0:this.entries.splice(0,ge+1)}getElementEntryInScopeWithTagName(ge){const et=this.entries.find(rn=>rn.type===wn.Marker||this.treeAdapter.getTagName(rn.element)===ge);return et&&et.type===wn.Element?et:null}getElementEntry(ge){return this.entries.find(et=>et.type===wn.Element&&et.element===ge)}}const Wr={createDocument(){return{nodeName:"#document",mode:Xr.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 rn=ce.childNodes.indexOf(et);ce.childNodes.splice(rn,0,ge),ge.parentNode=ce},setTemplateContent(ce,ge){ce.content=ge},getTemplateContent(ce){return ce.content},setDocumentType(ce,ge,et,rn){const Sr=ce.childNodes.find($r=>$r.nodeName==="#documentType");if(Sr)Sr.name=ge,Sr.publicId=et,Sr.systemId=rn;else{const $r={nodeName:"#documentType",name:ge,publicId:et,systemId:rn,parentNode:null};Wr.appendChild(ce,$r)}},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(Wr.isTextNode(et)){et.value+=ge;return}}Wr.appendChild(ce,Wr.createTextNode(ge))},insertTextBefore(ce,ge,et){const rn=ce.childNodes[ce.childNodes.indexOf(et)-1];rn&&Wr.isTextNode(rn)?rn.value+=ge:Wr.insertBefore(ce,Wr.createTextNode(ge),et)},adoptAttributes(ce,ge){const et=new Set(ce.attrs.map(rn=>rn.name));for(let rn=0;rn<ge.length;rn++)et.has(ge[rn].name)||ce.attrs.push(ge[rn])},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)}},pi="html",di="about:legacy-compat",ai="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",gr=["+//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//"],pt=[...gr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],yn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),xn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Hn=[...xn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function pn(ce,ge){return ge.some(et=>ce.startsWith(et))}function tr(ce){return ce.name===pi&&ce.publicId===null&&(ce.systemId===null||ce.systemId===di)}function Qn(ce){if(ce.name!==pi)return Xr.QUIRKS;const{systemId:ge}=ce;if(ge&&ge.toLowerCase()===ai)return Xr.QUIRKS;let{publicId:et}=ce;if(et!==null){if(et=et.toLowerCase(),yn.has(et))return Xr.QUIRKS;let rn=ge===null?pt:gr;if(pn(et,rn))return Xr.QUIRKS;if(rn=ge===null?xn:Hn,pn(et,rn))return Xr.LIMITED_QUIRKS}return Xr.NO_QUIRKS}const an={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},hr="definitionurl",Vr="definitionURL",Ai=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])),si=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Yt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Yt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Yt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Yt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Yt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Yt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Yt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Yt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Yt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Yt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Yt.XMLNS}]]),Si=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])),Ii=new Set([Ve.B,Ve.BIG,Ve.BLOCKQUOTE,Ve.BODY,Ve.BR,Ve.CENTER,Ve.CODE,Ve.DD,Ve.DIV,Ve.DL,Ve.DT,Ve.EM,Ve.EMBED,Ve.H1,Ve.H2,Ve.H3,Ve.H4,Ve.H5,Ve.H6,Ve.HEAD,Ve.HR,Ve.I,Ve.IMG,Ve.LI,Ve.LISTING,Ve.MENU,Ve.META,Ve.NOBR,Ve.OL,Ve.P,Ve.PRE,Ve.RUBY,Ve.S,Ve.SMALL,Ve.SPAN,Ve.STRONG,Ve.STRIKE,Ve.SUB,Ve.SUP,Ve.TABLE,Ve.TT,Ve.U,Ve.UL,Ve.VAR]);function Bi(ce){const ge=ce.tagID;return ge===Ve.FONT&&ce.attrs.some(({name:rn})=>rn===Nn.COLOR||rn===Nn.SIZE||rn===Nn.FACE)||Ii.has(ge)}function ao(ce){for(let ge=0;ge<ce.attrs.length;ge++)if(ce.attrs[ge].name===hr){ce.attrs[ge].name=Vr;break}}function wo(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=Ai.get(ce.attrs[ge].name);et!=null&&(ce.attrs[ge].name=et)}}function Ho(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=si.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=Si.get(ce.tagName);ge!=null&&(ce.tagName=ge,ce.tagID=kr(ce.tagName))}function ko(ce,ge){return ge===Yt.MATHML&&(ce===Ve.MI||ce===Ve.MO||ce===Ve.MN||ce===Ve.MS||ce===Ve.MTEXT)}function po(ce,ge,et){if(ge===Yt.MATHML&&ce===Ve.ANNOTATION_XML){for(let rn=0;rn<et.length;rn++)if(et[rn].name===Nn.ENCODING){const Sr=et[rn].value.toLowerCase();return Sr===an.TEXT_HTML||Sr===an.APPLICATION_XML}}return ge===Yt.SVG&&(ce===Ve.FOREIGN_OBJECT||ce===Ve.DESC||ce===Ve.TITLE)}function Zi(ce,ge,et,rn){return(!rn||rn===Yt.HTML)&&po(ce,ge,et)||(!rn||rn===Yt.MATHML)&&ko(ce,ge)}const Mi="hidden",Oo=8,Wo=3;var Wn;(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"})(Wn||(Wn={}));const vo={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ia=new Set([Ve.TABLE,Ve.TBODY,Ve.TFOOT,Ve.THEAD,Ve.TR]),za={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Wr,onParseError:null};class hs{constructor(ge,et,rn=null,Sr=null){this.fragmentContext=rn,this.scriptHandler=Sr,this.currentToken=null,this.stopped=!1,this.insertionMode=Wn.INITIAL,this.originalInsertionMode=Wn.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({},za),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 Fi(this.options,this),this.activeFormattingElements=new Or(this.treeAdapter),this.fragmentContextID=rn?kr(this.treeAdapter.getTagName(rn)):Ve.UNKNOWN,this._setContextModes(rn!=null?rn:this.document,this.fragmentContextID),this.openElements=new Fn(this.document,this.treeAdapter,this)}static parse(ge,et){const rn=new this(et);return rn.tokenizer.write(ge,!0),rn.document}static getFragmentParser(ge,et){const rn=xa(xa({},za),et);ge!=null||(ge=rn.treeAdapter.createElement(Ln.TEMPLATE,Yt.HTML,[]));const Sr=rn.treeAdapter.createElement("documentmock",Yt.HTML,[]),$r=new this(rn,Sr,ge);return $r.fragmentContextID===Ve.TEMPLATE&&$r.tmplInsertionModeStack.unshift(Wn.IN_TEMPLATE),$r._initTokenizerForFragmentParsing(),$r._insertFakeRootElement(),$r._resetInsertionMode(),$r._findFormInFragmentContext(),$r}getFragment(){const ge=this.treeAdapter.getFirstChild(this.document),et=this.treeAdapter.createDocumentFragment();return this._adoptNodes(ge,et),et}_err(ge,et,rn){var Sr;if(!this.onParseError)return;const $r=(Sr=ge.location)!==null&&Sr!==void 0?Sr:vo,Ni={code:et,startLine:$r.startLine,startCol:$r.startCol,startOffset:$r.startOffset,endLine:rn?$r.startLine:$r.endLine,endCol:rn?$r.startCol:$r.endCol,endOffset:rn?$r.startOffset:$r.endOffset};this.onParseError(Ni)}onItemPush(ge,et,rn){var Sr,$r;($r=(Sr=this.treeAdapter).onItemPush)===null||$r===void 0||$r.call(Sr,ge),rn&&this.openElements.stackTop>0&&this._setContextModes(ge,et)}onItemPop(ge,et){var rn,Sr;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(ge,this.currentToken),(Sr=(rn=this.treeAdapter).onItemPop)===null||Sr===void 0||Sr.call(rn,ge,this.openElements.current),et){let $r,Ni;this.openElements.stackTop===0&&this.fragmentContext?($r=this.fragmentContext,Ni=this.fragmentContextID):{current:$r,currentTagId:Ni}=this.openElements,this._setContextModes($r,Ni)}}_setContextModes(ge,et){const rn=ge===this.document||ge&&this.treeAdapter.getNamespaceURI(ge)===Yt.HTML;this.currentNotInHTML=!rn,this.tokenizer.inForeignNode=!rn&&ge!==void 0&&et!==void 0&&!this._isIntegrationPoint(et,ge)}_switchToTextParsing(ge,et){this._insertElement(ge,Yt.HTML),this.tokenizer.state=et,this.originalInsertionMode=this.insertionMode,this.insertionMode=Wn.TEXT}switchToPlaintextParsing(){this.insertionMode=Wn.TEXT,this.originalInsertionMode=Wn.IN_BODY,this.tokenizer.state=Ti.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)===Ln.FORM){this.formElement=ge;break}ge=this.treeAdapter.getParentNode(ge)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Yt.HTML))switch(this.fragmentContextID){case Ve.TITLE:case Ve.TEXTAREA:{this.tokenizer.state=Ti.RCDATA;break}case Ve.STYLE:case Ve.XMP:case Ve.IFRAME:case Ve.NOEMBED:case Ve.NOFRAMES:case Ve.NOSCRIPT:{this.tokenizer.state=Ti.RAWTEXT;break}case Ve.SCRIPT:{this.tokenizer.state=Ti.SCRIPT_DATA;break}case Ve.PLAINTEXT:{this.tokenizer.state=Ti.PLAINTEXT;break}default:}}_setDocumentType(ge){const et=ge.name||"",rn=ge.publicId||"",Sr=ge.systemId||"";if(this.treeAdapter.setDocumentType(this.document,et,rn,Sr),ge.location){const Ni=this.treeAdapter.getChildNodes(this.document).find(Lo=>this.treeAdapter.isDocumentTypeNode(Lo));Ni&&this.treeAdapter.setNodeSourceCodeLocation(Ni,ge.location)}}_attachElementToTree(ge,et){if(this.options.sourceCodeLocationInfo){const rn=et&&Zp(xa({},et),{startTag:et});this.treeAdapter.setNodeSourceCodeLocation(ge,rn)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(ge);else{const rn=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(rn!=null?rn:this.document,ge)}}_appendElement(ge,et){const rn=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(rn,ge.location)}_insertElement(ge,et){const rn=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(rn,ge.location),this.openElements.push(rn,ge.tagID)}_insertFakeElement(ge,et){const rn=this.treeAdapter.createElement(ge,Yt.HTML,[]);this._attachElementToTree(rn,null),this.openElements.push(rn,et)}_insertTemplate(ge){const et=this.treeAdapter.createElement(ge.tagName,Yt.HTML,ge.attrs),rn=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(et,rn),this._attachElementToTree(et,ge.location),this.openElements.push(et,ge.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(rn,null)}_insertFakeRootElement(){const ge=this.treeAdapter.createElement(Ln.HTML,Yt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ge,null),this.treeAdapter.appendChild(this.openElements.current,ge),this.openElements.push(ge,Ve.HTML)}_appendCommentNode(ge,et){const rn=this.treeAdapter.createCommentNode(ge.data);this.treeAdapter.appendChild(et,rn),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(rn,ge.location)}_insertCharacters(ge){let et,rn;if(this._shouldFosterParentOnInsertion()?({parent:et,beforeElement:rn}=this._findFosterParentingLocation(),rn?this.treeAdapter.insertTextBefore(et,ge.chars,rn):this.treeAdapter.insertText(et,ge.chars)):(et=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(et,ge.chars)),!ge.location)return;const Sr=this.treeAdapter.getChildNodes(et),$r=rn?Sr.lastIndexOf(rn):Sr.length,Ni=Sr[$r-1];if(this.treeAdapter.getNodeSourceCodeLocation(Ni)){const{endLine:Xo,endCol:ni,endOffset:Qi}=ge.location;this.treeAdapter.updateNodeSourceCodeLocation(Ni,{endLine:Xo,endCol:ni,endOffset:Qi})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ni,ge.location)}_adoptNodes(ge,et){for(let rn=this.treeAdapter.getFirstChild(ge);rn;rn=this.treeAdapter.getFirstChild(ge))this.treeAdapter.detachNode(rn),this.treeAdapter.appendChild(et,rn)}_setEndLocation(ge,et){if(this.treeAdapter.getNodeSourceCodeLocation(ge)&&et.location){const rn=et.location,Sr=this.treeAdapter.getTagName(ge),$r=et.type===cr.END_TAG&&Sr===et.tagName?{endTag:xa({},rn),endLine:rn.endLine,endCol:rn.endCol,endOffset:rn.endOffset}:{endLine:rn.startLine,endCol:rn.startCol,endOffset:rn.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(ge,$r)}}shouldProcessStartTagTokenInForeignContent(ge){if(!this.currentNotInHTML)return!1;let et,rn;return this.openElements.stackTop===0&&this.fragmentContext?(et=this.fragmentContext,rn=this.fragmentContextID):{current:et,currentTagId:rn}=this.openElements,ge.tagID===Ve.SVG&&this.treeAdapter.getTagName(et)===Ln.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(et)===Yt.MATHML?!1:this.tokenizer.inForeignNode||(ge.tagID===Ve.MGLYPH||ge.tagID===Ve.MALIGNMARK)&&rn!==void 0&&!this._isIntegrationPoint(rn,et,Yt.HTML)}_processToken(ge){switch(ge.type){case cr.CHARACTER:{this.onCharacter(ge);break}case cr.NULL_CHARACTER:{this.onNullCharacter(ge);break}case cr.COMMENT:{this.onComment(ge);break}case cr.DOCTYPE:{this.onDoctype(ge);break}case cr.START_TAG:{this._processStartTag(ge);break}case cr.END_TAG:{this.onEndTag(ge);break}case cr.EOF:{this.onEof(ge);break}case cr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(ge);break}}}_isIntegrationPoint(ge,et,rn){const Sr=this.treeAdapter.getNamespaceURI(et),$r=this.treeAdapter.getAttrList(et);return Zi(ge,Sr,$r,rn)}_reconstructActiveFormattingElements(){const ge=this.activeFormattingElements.entries.length;if(ge){const et=this.activeFormattingElements.entries.findIndex(Sr=>Sr.type===wn.Marker||this.openElements.contains(Sr.element)),rn=et===-1?ge-1:et-1;for(let Sr=rn;Sr>=0;Sr--){const $r=this.activeFormattingElements.entries[Sr];this._insertElement($r.token,this.treeAdapter.getNamespaceURI($r.element)),$r.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Wn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ve.P),this.openElements.popUntilTagNamePopped(Ve.P)}_resetInsertionMode(){for(let ge=this.openElements.stackTop;ge>=0;ge--)switch(ge===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[ge]){case Ve.TR:{this.insertionMode=Wn.IN_ROW;return}case Ve.TBODY:case Ve.THEAD:case Ve.TFOOT:{this.insertionMode=Wn.IN_TABLE_BODY;return}case Ve.CAPTION:{this.insertionMode=Wn.IN_CAPTION;return}case Ve.COLGROUP:{this.insertionMode=Wn.IN_COLUMN_GROUP;return}case Ve.TABLE:{this.insertionMode=Wn.IN_TABLE;return}case Ve.BODY:{this.insertionMode=Wn.IN_BODY;return}case Ve.FRAMESET:{this.insertionMode=Wn.IN_FRAMESET;return}case Ve.SELECT:{this._resetInsertionModeForSelect(ge);return}case Ve.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Ve.HTML:{this.insertionMode=this.headElement?Wn.AFTER_HEAD:Wn.BEFORE_HEAD;return}case Ve.TD:case Ve.TH:{if(ge>0){this.insertionMode=Wn.IN_CELL;return}break}case Ve.HEAD:{if(ge>0){this.insertionMode=Wn.IN_HEAD;return}break}}this.insertionMode=Wn.IN_BODY}_resetInsertionModeForSelect(ge){if(ge>0)for(let et=ge-1;et>0;et--){const rn=this.openElements.tagIDs[et];if(rn===Ve.TEMPLATE)break;if(rn===Ve.TABLE){this.insertionMode=Wn.IN_SELECT_IN_TABLE;return}}this.insertionMode=Wn.IN_SELECT}_isElementCausesFosterParenting(ge){return ia.has(ge)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&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 Ve.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(et)===Yt.HTML)return{parent:this.treeAdapter.getTemplateContent(et),beforeElement:null};break}case Ve.TABLE:{const rn=this.treeAdapter.getParentNode(et);return rn?{parent:rn,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 rn=this.treeAdapter.getNamespaceURI(ge);return hi[rn].has(et)}onCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gt(this,ge);return}switch(this.insertionMode){case Wn.INITIAL:{Do(this,ge);break}case Wn.BEFORE_HTML:{Ss(this,ge);break}case Wn.BEFORE_HEAD:{Fo(this,ge);break}case Wn.IN_HEAD:{Rs(this,ge);break}case Wn.IN_HEAD_NO_SCRIPT:{$a(this,ge);break}case Wn.AFTER_HEAD:{es(this,ge);break}case Wn.IN_BODY:case Wn.IN_CAPTION:case Wn.IN_CELL:case Wn.IN_TEMPLATE:{ul(this,ge);break}case Wn.TEXT:case Wn.IN_SELECT:case Wn.IN_SELECT_IN_TABLE:{this._insertCharacters(ge);break}case Wn.IN_TABLE:case Wn.IN_TABLE_BODY:case Wn.IN_ROW:{bo(this,ge);break}case Wn.IN_TABLE_TEXT:{Nl(this,ge);break}case Wn.IN_COLUMN_GROUP:{xs(this,ge);break}case Wn.AFTER_BODY:{bc(this,ge);break}case Wn.AFTER_AFTER_BODY:{Pe(this,ge);break}default:}}onNullCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tt(this,ge);return}switch(this.insertionMode){case Wn.INITIAL:{Do(this,ge);break}case Wn.BEFORE_HTML:{Ss(this,ge);break}case Wn.BEFORE_HEAD:{Fo(this,ge);break}case Wn.IN_HEAD:{Rs(this,ge);break}case Wn.IN_HEAD_NO_SCRIPT:{$a(this,ge);break}case Wn.AFTER_HEAD:{es(this,ge);break}case Wn.TEXT:{this._insertCharacters(ge);break}case Wn.IN_TABLE:case Wn.IN_TABLE_BODY:case Wn.IN_ROW:{bo(this,ge);break}case Wn.IN_COLUMN_GROUP:{xs(this,ge);break}case Wn.AFTER_BODY:{bc(this,ge);break}case Wn.AFTER_AFTER_BODY:{Pe(this,ge);break}default:}}onComment(ge){if(this.skipNextNewLine=!1,this.currentNotInHTML){_a(this,ge);return}switch(this.insertionMode){case Wn.INITIAL:case Wn.BEFORE_HTML:case Wn.BEFORE_HEAD:case Wn.IN_HEAD:case Wn.IN_HEAD_NO_SCRIPT:case Wn.AFTER_HEAD:case Wn.IN_BODY:case Wn.IN_TABLE:case Wn.IN_CAPTION:case Wn.IN_COLUMN_GROUP:case Wn.IN_TABLE_BODY:case Wn.IN_ROW:case Wn.IN_CELL:case Wn.IN_SELECT:case Wn.IN_SELECT_IN_TABLE:case Wn.IN_TEMPLATE:case Wn.IN_FRAMESET:case Wn.AFTER_FRAMESET:{_a(this,ge);break}case Wn.IN_TABLE_TEXT:{dl(this,ge);break}case Wn.AFTER_BODY:{fi(this,ge);break}case Wn.AFTER_AFTER_BODY:case Wn.AFTER_AFTER_FRAMESET:{Yi(this,ge);break}default:}}onDoctype(ge){switch(this.skipNextNewLine=!1,this.insertionMode){case Wn.INITIAL:{Io(this,ge);break}case Wn.BEFORE_HEAD:case Wn.IN_HEAD:case Wn.IN_HEAD_NO_SCRIPT:case Wn.AFTER_HEAD:{this._err(ge,Dn.misplacedDoctype);break}case Wn.IN_TABLE_TEXT:{dl(this,ge);break}default:}}onStartTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this._processStartTag(ge),ge.selfClosing&&!ge.ackSelfClosing&&this._err(ge,Dn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(ge){this.shouldProcessStartTagTokenInForeignContent(ge)?Bt(this,ge):this._startTagOutsideForeignContent(ge)}_startTagOutsideForeignContent(ge){switch(this.insertionMode){case Wn.INITIAL:{Do(this,ge);break}case Wn.BEFORE_HTML:{sa(this,ge);break}case Wn.BEFORE_HEAD:{pa(this,ge);break}case Wn.IN_HEAD:{ga(this,ge);break}case Wn.IN_HEAD_NO_SCRIPT:{ol(this,ge);break}case Wn.AFTER_HEAD:{Kl(this,ge);break}case Wn.IN_BODY:{ua(this,ge);break}case Wn.IN_TABLE:{Xl(this,ge);break}case Wn.IN_TABLE_TEXT:{dl(this,ge);break}case Wn.IN_CAPTION:{$o(this,ge);break}case Wn.IN_COLUMN_GROUP:{Va(this,ge);break}case Wn.IN_TABLE_BODY:{Ll(this,ge);break}case Wn.IN_ROW:{_l(this,ge);break}case Wn.IN_CELL:{hu(this,ge);break}case Wn.IN_SELECT:{Hd(this,ge);break}case Wn.IN_SELECT_IN_TABLE:{dh(this,ge);break}case Wn.IN_TEMPLATE:{lc(this,ge);break}case Wn.AFTER_BODY:{$s(this,ge);break}case Wn.IN_FRAMESET:{Fs(this,ge);break}case Wn.AFTER_FRAMESET:{Qc(this,ge);break}case Wn.AFTER_AFTER_BODY:{Il(this,ge);break}case Wn.AFTER_AFTER_FRAMESET:{Xe(this,ge);break}default:}}onEndTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this.currentNotInHTML?sn(this,ge):this._endTagOutsideForeignContent(ge)}_endTagOutsideForeignContent(ge){switch(this.insertionMode){case Wn.INITIAL:{Do(this,ge);break}case Wn.BEFORE_HTML:{Xi(this,ge);break}case Wn.BEFORE_HEAD:{Ga(this,ge);break}case Wn.IN_HEAD:{Hs(this,ge);break}case Wn.IN_HEAD_NO_SCRIPT:{Xs(this,ge);break}case Wn.AFTER_HEAD:{nc(this,ge);break}case Wn.IN_BODY:{La(this,ge);break}case Wn.TEXT:{na(this,ge);break}case Wn.IN_TABLE:{la(this,ge);break}case Wn.IN_TABLE_TEXT:{dl(this,ge);break}case Wn.IN_CAPTION:{ca(this,ge);break}case Wn.IN_COLUMN_GROUP:{Is(this,ge);break}case Wn.IN_TABLE_BODY:{Bl(this,ge);break}case Wn.IN_ROW:{kl(this,ge);break}case Wn.IN_CELL:{bd(this,ge);break}case Wn.IN_SELECT:{ch(this,ge);break}case Wn.IN_SELECT_IN_TABLE:{gs(this,ge);break}case Wn.IN_TEMPLATE:{Na(this,ge);break}case Wn.AFTER_BODY:{qs(this,ge);break}case Wn.IN_FRAMESET:{Eu(this,ge);break}case Wn.AFTER_FRAMESET:{Ed(this,ge);break}case Wn.AFTER_AFTER_BODY:{Pe(this,ge);break}default:}}onEof(ge){switch(this.insertionMode){case Wn.INITIAL:{Do(this,ge);break}case Wn.BEFORE_HTML:{Ss(this,ge);break}case Wn.BEFORE_HEAD:{Fo(this,ge);break}case Wn.IN_HEAD:{Rs(this,ge);break}case Wn.IN_HEAD_NO_SCRIPT:{$a(this,ge);break}case Wn.AFTER_HEAD:{es(this,ge);break}case Wn.IN_BODY:case Wn.IN_TABLE:case Wn.IN_CAPTION:case Wn.IN_COLUMN_GROUP:case Wn.IN_TABLE_BODY:case Wn.IN_ROW:case Wn.IN_CELL:case Wn.IN_SELECT:case Wn.IN_SELECT_IN_TABLE:{Za(this,ge);break}case Wn.TEXT:{sc(this,ge);break}case Wn.IN_TABLE_TEXT:{dl(this,ge);break}case Wn.IN_TEMPLATE:{js(this,ge);break}case Wn.AFTER_BODY:case Wn.IN_FRAMESET:case Wn.AFTER_FRAMESET:case Wn.AFTER_AFTER_BODY:case Wn.AFTER_AFTER_FRAMESET:{ho(this,ge);break}default:}}onWhitespaceCharacter(ge){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,ge.chars.charCodeAt(0)===Et.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 Wn.IN_HEAD:case Wn.IN_HEAD_NO_SCRIPT:case Wn.AFTER_HEAD:case Wn.TEXT:case Wn.IN_COLUMN_GROUP:case Wn.IN_SELECT:case Wn.IN_SELECT_IN_TABLE:case Wn.IN_FRAMESET:case Wn.AFTER_FRAMESET:{this._insertCharacters(ge);break}case Wn.IN_BODY:case Wn.IN_CAPTION:case Wn.IN_CELL:case Wn.IN_TEMPLATE:case Wn.AFTER_BODY:case Wn.AFTER_AFTER_BODY:case Wn.AFTER_AFTER_FRAMESET:{ll(this,ge);break}case Wn.IN_TABLE:case Wn.IN_TABLE_BODY:case Wn.IN_ROW:{bo(this,ge);break}case Wn.IN_TABLE_TEXT:{du(this,ge);break}default:}}}function il(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 Ls(ce,ge){let et=null,rn=ce.openElements.stackTop;for(;rn>=0;rn--){const Sr=ce.openElements.items[rn];if(Sr===ge.element)break;ce._isSpecialElement(Sr,ce.openElements.tagIDs[rn])&&(et=Sr)}return et||(ce.openElements.shortenToLength(Math.max(rn,0)),ce.activeFormattingElements.removeEntry(ge)),et}function to(ce,ge,et){let rn=ge,Sr=ce.openElements.getCommonAncestor(ge);for(let $r=0,Ni=Sr;Ni!==et;$r++,Ni=Sr){Sr=ce.openElements.getCommonAncestor(Ni);const Lo=ce.activeFormattingElements.getElementEntry(Ni),Xo=Lo&&$r>=Wo;!Lo||Xo?(Xo&&ce.activeFormattingElements.removeEntry(Lo),ce.openElements.remove(Ni)):(Ni=Ra(ce,Lo),rn===ge&&(ce.activeFormattingElements.bookmark=Lo),ce.treeAdapter.detachNode(rn),ce.treeAdapter.appendChild(Ni,rn),rn=Ni)}return rn}function Ra(ce,ge){const et=ce.treeAdapter.getNamespaceURI(ge.element),rn=ce.treeAdapter.createElement(ge.token.tagName,et,ge.token.attrs);return ce.openElements.replace(ge.element,rn),ge.element=rn,rn}function Ma(ce,ge,et){const rn=ce.treeAdapter.getTagName(ge),Sr=kr(rn);if(ce._isElementCausesFosterParenting(Sr))ce._fosterParentElement(et);else{const $r=ce.treeAdapter.getNamespaceURI(ge);Sr===Ve.TEMPLATE&&$r===Yt.HTML&&(ge=ce.treeAdapter.getTemplateContent(ge)),ce.treeAdapter.appendChild(ge,et)}}function ts(ce,ge,et){const rn=ce.treeAdapter.getNamespaceURI(et.element),{token:Sr}=et,$r=ce.treeAdapter.createElement(Sr.tagName,rn,Sr.attrs);ce._adoptNodes(ge,$r),ce.treeAdapter.appendChild(ge,$r),ce.activeFormattingElements.insertElementAfterBookmark($r,Sr),ce.activeFormattingElements.removeEntry(et),ce.openElements.remove(et.element),ce.openElements.insertAfter(ge,$r,Sr.tagID)}function Oa(ce,ge){for(let et=0;et<Oo;et++){const rn=il(ce,ge);if(!rn)break;const Sr=Ls(ce,rn);if(!Sr)break;ce.activeFormattingElements.bookmark=rn;const $r=to(ce,Sr,rn.element),Ni=ce.openElements.getCommonAncestor(rn.element);ce.treeAdapter.detachNode($r),Ni&&Ma(ce,Ni,$r),ts(ce,Sr,rn)}}function _a(ce,ge){ce._appendCommentNode(ge,ce.openElements.currentTmplContentOrNode)}function fi(ce,ge){ce._appendCommentNode(ge,ce.openElements.items[0])}function Yi(ce,ge){ce._appendCommentNode(ge,ce.document)}function ho(ce,ge){if(ce.stopped=!0,ge.location){const et=ce.fragmentContext?0:2;for(let rn=ce.openElements.stackTop;rn>=et;rn--)ce._setEndLocation(ce.openElements.items[rn],ge);if(!ce.fragmentContext&&ce.openElements.stackTop>=0){const rn=ce.openElements.items[0],Sr=ce.treeAdapter.getNodeSourceCodeLocation(rn);if(Sr&&!Sr.endTag&&(ce._setEndLocation(rn,ge),ce.openElements.stackTop>=1)){const $r=ce.openElements.items[1],Ni=ce.treeAdapter.getNodeSourceCodeLocation($r);Ni&&!Ni.endTag&&ce._setEndLocation($r,ge)}}}}function Io(ce,ge){ce._setDocumentType(ge);const et=ge.forceQuirks?Xr.QUIRKS:Qn(ge);tr(ge)||ce._err(ge,Dn.nonConformingDoctype),ce.treeAdapter.setDocumentMode(ce.document,et),ce.insertionMode=Wn.BEFORE_HTML}function Do(ce,ge){ce._err(ge,Dn.missingDoctype,!0),ce.treeAdapter.setDocumentMode(ce.document,Xr.QUIRKS),ce.insertionMode=Wn.BEFORE_HTML,ce._processToken(ge)}function sa(ce,ge){ge.tagID===Ve.HTML?(ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.BEFORE_HEAD):Ss(ce,ge)}function Xi(ce,ge){const et=ge.tagID;(et===Ve.HTML||et===Ve.HEAD||et===Ve.BODY||et===Ve.BR)&&Ss(ce,ge)}function Ss(ce,ge){ce._insertFakeRootElement(),ce.insertionMode=Wn.BEFORE_HEAD,ce._processToken(ge)}function pa(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.HEAD:{ce._insertElement(ge,Yt.HTML),ce.headElement=ce.openElements.current,ce.insertionMode=Wn.IN_HEAD;break}default:Fo(ce,ge)}}function Ga(ce,ge){const et=ge.tagID;et===Ve.HEAD||et===Ve.BODY||et===Ve.HTML||et===Ve.BR?Fo(ce,ge):ce._err(ge,Dn.endTagWithoutMatchingOpenElement)}function Fo(ce,ge){ce._insertFakeElement(Ln.HEAD,Ve.HEAD),ce.headElement=ce.openElements.current,ce.insertionMode=Wn.IN_HEAD,ce._processToken(ge)}function ga(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.BASE:case Ve.BASEFONT:case Ve.BGSOUND:case Ve.LINK:case Ve.META:{ce._appendElement(ge,Yt.HTML),ge.ackSelfClosing=!0;break}case Ve.TITLE:{ce._switchToTextParsing(ge,Ti.RCDATA);break}case Ve.NOSCRIPT:{ce.options.scriptingEnabled?ce._switchToTextParsing(ge,Ti.RAWTEXT):(ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_HEAD_NO_SCRIPT);break}case Ve.NOFRAMES:case Ve.STYLE:{ce._switchToTextParsing(ge,Ti.RAWTEXT);break}case Ve.SCRIPT:{ce._switchToTextParsing(ge,Ti.SCRIPT_DATA);break}case Ve.TEMPLATE:{ce._insertTemplate(ge),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1,ce.insertionMode=Wn.IN_TEMPLATE,ce.tmplInsertionModeStack.unshift(Wn.IN_TEMPLATE);break}case Ve.HEAD:{ce._err(ge,Dn.misplacedStartTagForHeadElement);break}default:Rs(ce,ge)}}function Hs(ce,ge){switch(ge.tagID){case Ve.HEAD:{ce.openElements.pop(),ce.insertionMode=Wn.AFTER_HEAD;break}case Ve.BODY:case Ve.BR:case Ve.HTML:{Rs(ce,ge);break}case Ve.TEMPLATE:{da(ce,ge);break}default:ce._err(ge,Dn.endTagWithoutMatchingOpenElement)}}function da(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.generateImpliedEndTagsThoroughly(),ce.openElements.currentTagId!==Ve.TEMPLATE&&ce._err(ge,Dn.closingOfElementWithOpenChildElements),ce.openElements.popUntilTagNamePopped(Ve.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode()):ce._err(ge,Dn.endTagWithoutMatchingOpenElement)}function Rs(ce,ge){ce.openElements.pop(),ce.insertionMode=Wn.AFTER_HEAD,ce._processToken(ge)}function ol(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.BASEFONT:case Ve.BGSOUND:case Ve.HEAD:case Ve.LINK:case Ve.META:case Ve.NOFRAMES:case Ve.STYLE:{ga(ce,ge);break}case Ve.NOSCRIPT:{ce._err(ge,Dn.nestedNoscriptInHead);break}default:$a(ce,ge)}}function Xs(ce,ge){switch(ge.tagID){case Ve.NOSCRIPT:{ce.openElements.pop(),ce.insertionMode=Wn.IN_HEAD;break}case Ve.BR:{$a(ce,ge);break}default:ce._err(ge,Dn.endTagWithoutMatchingOpenElement)}}function $a(ce,ge){const et=ge.type===cr.EOF?Dn.openElementsLeftAfterEof:Dn.disallowedContentInNoscriptInHead;ce._err(ge,et),ce.openElements.pop(),ce.insertionMode=Wn.IN_HEAD,ce._processToken(ge)}function Kl(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.BODY:{ce._insertElement(ge,Yt.HTML),ce.framesetOk=!1,ce.insertionMode=Wn.IN_BODY;break}case Ve.FRAMESET:{ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_FRAMESET;break}case Ve.BASE:case Ve.BASEFONT:case Ve.BGSOUND:case Ve.LINK:case Ve.META:case Ve.NOFRAMES:case Ve.SCRIPT:case Ve.STYLE:case Ve.TEMPLATE:case Ve.TITLE:{ce._err(ge,Dn.abandonedHeadElementChild),ce.openElements.push(ce.headElement,Ve.HEAD),ga(ce,ge),ce.openElements.remove(ce.headElement);break}case Ve.HEAD:{ce._err(ge,Dn.misplacedStartTagForHeadElement);break}default:es(ce,ge)}}function nc(ce,ge){switch(ge.tagID){case Ve.BODY:case Ve.HTML:case Ve.BR:{es(ce,ge);break}case Ve.TEMPLATE:{da(ce,ge);break}default:ce._err(ge,Dn.endTagWithoutMatchingOpenElement)}}function es(ce,ge){ce._insertFakeElement(Ln.BODY,Ve.BODY),ce.insertionMode=Wn.IN_BODY,Pl(ce,ge)}function Pl(ce,ge){switch(ge.type){case cr.CHARACTER:{ul(ce,ge);break}case cr.WHITESPACE_CHARACTER:{ll(ce,ge);break}case cr.COMMENT:{_a(ce,ge);break}case cr.START_TAG:{ua(ce,ge);break}case cr.END_TAG:{La(ce,ge);break}case cr.EOF:{Za(ce,ge);break}default:}}function ll(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge)}function ul(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge),ce.framesetOk=!1}function rc(ce,ge){ce.openElements.tmplCount===0&&ce.treeAdapter.adoptAttributes(ce.openElements.items[0],ge.attrs)}function yc(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce.openElements.tmplCount===0&&(ce.framesetOk=!1,ce.treeAdapter.adoptAttributes(et,ge.attrs))}function ns(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();ce.framesetOk&&et&&(ce.treeAdapter.detachNode(et),ce.openElements.popAllUpToHtmlElement(),ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_FRAMESET)}function ic(ce,ge){ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._insertElement(ge,Yt.HTML)}function oc(ce,ge){ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce.openElements.currentTagId!==void 0&&jr.has(ce.openElements.currentTagId)&&ce.openElements.pop(),ce._insertElement(ge,Yt.HTML)}function Mu(ce,ge){ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._insertElement(ge,Yt.HTML),ce.skipNextNewLine=!0,ce.framesetOk=!1}function Ou(ce,ge){const et=ce.openElements.tmplCount>0;(!ce.formElement||et)&&(ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._insertElement(ge,Yt.HTML),et||(ce.formElement=ce.openElements.current))}function Ms(ce,ge){ce.framesetOk=!1;const et=ge.tagID;for(let rn=ce.openElements.stackTop;rn>=0;rn--){const Sr=ce.openElements.tagIDs[rn];if(et===Ve.LI&&Sr===Ve.LI||(et===Ve.DD||et===Ve.DT)&&(Sr===Ve.DD||Sr===Ve.DT)){ce.openElements.generateImpliedEndTagsWithExclusion(Sr),ce.openElements.popUntilTagNamePopped(Sr);break}if(Sr!==Ve.ADDRESS&&Sr!==Ve.DIV&&Sr!==Ve.P&&ce._isSpecialElement(ce.openElements.items[rn],Sr))break}ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._insertElement(ge,Yt.HTML)}function Qs(ce,ge){ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._insertElement(ge,Yt.HTML),ce.tokenizer.state=Ti.PLAINTEXT}function fs(ce,ge){ce.openElements.hasInScope(Ve.BUTTON)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ve.BUTTON)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Yt.HTML),ce.framesetOk=!1}function ks(ce,ge){const et=ce.activeFormattingElements.getElementEntryInScopeWithTagName(Ln.A);et&&(Oa(ce,ge),ce.openElements.remove(et.element),ce.activeFormattingElements.removeEntry(et)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Yt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function yu(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Yt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function zs(ce,ge){ce._reconstructActiveFormattingElements(),ce.openElements.hasInScope(Ve.NOBR)&&(Oa(ce,ge),ce._reconstructActiveFormattingElements()),ce._insertElement(ge,Yt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function wa(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Yt.HTML),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1}function ma(ce,ge){ce.treeAdapter.getDocumentMode(ce.document)!==Xr.QUIRKS&&ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._insertElement(ge,Yt.HTML),ce.framesetOk=!1,ce.insertionMode=Wn.IN_TABLE}function Vo(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,Yt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function cs(ce){const ge=Dr(ce,Nn.TYPE);return ge!=null&&ge.toLowerCase()===Mi}function Ri(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,Yt.HTML),cs(ge)||(ce.framesetOk=!1),ge.ackSelfClosing=!0}function ps(ce,ge){ce._appendElement(ge,Yt.HTML),ge.ackSelfClosing=!0}function en(ce,ge){ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._appendElement(ge,Yt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function Ir(ce,ge){ge.tagName=Ln.IMG,ge.tagID=Ve.IMG,Vo(ce,ge)}function Tl(ce,ge){ce._insertElement(ge,Yt.HTML),ce.skipNextNewLine=!0,ce.tokenizer.state=Ti.RCDATA,ce.originalInsertionMode=ce.insertionMode,ce.framesetOk=!1,ce.insertionMode=Wn.TEXT}function Su(ce,ge){ce.openElements.hasInButtonScope(Ve.P)&&ce._closePElement(),ce._reconstructActiveFormattingElements(),ce.framesetOk=!1,ce._switchToTextParsing(ge,Ti.RAWTEXT)}function ja(ce,ge){ce.framesetOk=!1,ce._switchToTextParsing(ge,Ti.RAWTEXT)}function rs(ce,ge){ce._switchToTextParsing(ge,Ti.RAWTEXT)}function Al(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Yt.HTML),ce.framesetOk=!1,ce.insertionMode=ce.insertionMode===Wn.IN_TABLE||ce.insertionMode===Wn.IN_CAPTION||ce.insertionMode===Wn.IN_TABLE_BODY||ce.insertionMode===Wn.IN_ROW||ce.insertionMode===Wn.IN_CELL?Wn.IN_SELECT_IN_TABLE:Wn.IN_SELECT}function Fl(ce,ge){ce.openElements.currentTagId===Ve.OPTION&&ce.openElements.pop(),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Yt.HTML)}function ac(ce,ge){ce.openElements.hasInScope(Ve.RUBY)&&ce.openElements.generateImpliedEndTags(),ce._insertElement(ge,Yt.HTML)}function Wa(ce,ge){ce.openElements.hasInScope(Ve.RUBY)&&ce.openElements.generateImpliedEndTagsWithExclusion(Ve.RTC),ce._insertElement(ge,Yt.HTML)}function Eo(ce,ge){ce._reconstructActiveFormattingElements(),ao(ge),Ho(ge),ge.selfClosing?ce._appendElement(ge,Yt.MATHML):ce._insertElement(ge,Yt.MATHML),ge.ackSelfClosing=!0}function bs(ce,ge){ce._reconstructActiveFormattingElements(),wo(ge),Ho(ge),ge.selfClosing?ce._appendElement(ge,Yt.SVG):ce._insertElement(ge,Yt.SVG),ge.ackSelfClosing=!0}function Js(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Yt.HTML)}function ua(ce,ge){switch(ge.tagID){case Ve.I:case Ve.S:case Ve.B:case Ve.U:case Ve.EM:case Ve.TT:case Ve.BIG:case Ve.CODE:case Ve.FONT:case Ve.SMALL:case Ve.STRIKE:case Ve.STRONG:{yu(ce,ge);break}case Ve.A:{ks(ce,ge);break}case Ve.H1:case Ve.H2:case Ve.H3:case Ve.H4:case Ve.H5:case Ve.H6:{oc(ce,ge);break}case Ve.P:case Ve.DL:case Ve.OL:case Ve.UL:case Ve.DIV:case Ve.DIR:case Ve.NAV:case Ve.MAIN:case Ve.MENU:case Ve.ASIDE:case Ve.CENTER:case Ve.FIGURE:case Ve.FOOTER:case Ve.HEADER:case Ve.HGROUP:case Ve.DIALOG:case Ve.DETAILS:case Ve.ADDRESS:case Ve.ARTICLE:case Ve.SEARCH:case Ve.SECTION:case Ve.SUMMARY:case Ve.FIELDSET:case Ve.BLOCKQUOTE:case Ve.FIGCAPTION:{ic(ce,ge);break}case Ve.LI:case Ve.DD:case Ve.DT:{Ms(ce,ge);break}case Ve.BR:case Ve.IMG:case Ve.WBR:case Ve.AREA:case Ve.EMBED:case Ve.KEYGEN:{Vo(ce,ge);break}case Ve.HR:{en(ce,ge);break}case Ve.RB:case Ve.RTC:{ac(ce,ge);break}case Ve.RT:case Ve.RP:{Wa(ce,ge);break}case Ve.PRE:case Ve.LISTING:{Mu(ce,ge);break}case Ve.XMP:{Su(ce,ge);break}case Ve.SVG:{bs(ce,ge);break}case Ve.HTML:{rc(ce,ge);break}case Ve.BASE:case Ve.LINK:case Ve.META:case Ve.STYLE:case Ve.TITLE:case Ve.SCRIPT:case Ve.BGSOUND:case Ve.BASEFONT:case Ve.TEMPLATE:{ga(ce,ge);break}case Ve.BODY:{yc(ce,ge);break}case Ve.FORM:{Ou(ce,ge);break}case Ve.NOBR:{zs(ce,ge);break}case Ve.MATH:{Eo(ce,ge);break}case Ve.TABLE:{ma(ce,ge);break}case Ve.INPUT:{Ri(ce,ge);break}case Ve.PARAM:case Ve.TRACK:case Ve.SOURCE:{ps(ce,ge);break}case Ve.IMAGE:{Ir(ce,ge);break}case Ve.BUTTON:{fs(ce,ge);break}case Ve.APPLET:case Ve.OBJECT:case Ve.MARQUEE:{wa(ce,ge);break}case Ve.IFRAME:{ja(ce,ge);break}case Ve.SELECT:{Al(ce,ge);break}case Ve.OPTION:case Ve.OPTGROUP:{Fl(ce,ge);break}case Ve.NOEMBED:case Ve.NOFRAMES:{rs(ce,ge);break}case Ve.FRAMESET:{ns(ce,ge);break}case Ve.TEXTAREA:{Tl(ce,ge);break}case Ve.NOSCRIPT:{ce.options.scriptingEnabled?rs(ce,ge):Js(ce,ge);break}case Ve.PLAINTEXT:{Qs(ce,ge);break}case Ve.COL:case Ve.TH:case Ve.TD:case Ve.TR:case Ve.HEAD:case Ve.FRAME:case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:case Ve.CAPTION:case Ve.COLGROUP:break;default:Js(ce,ge)}}function Zo(ce,ge){if(ce.openElements.hasInScope(Ve.BODY)&&(ce.insertionMode=Wn.AFTER_BODY,ce.options.sourceCodeLocationInfo)){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce._setEndLocation(et,ge)}}function Ya(ce,ge){ce.openElements.hasInScope(Ve.BODY)&&(ce.insertionMode=Wn.AFTER_BODY,qs(ce,ge))}function cl(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(Ve.FORM)&&(ce.openElements.generateImpliedEndTags(),ge?ce.openElements.popUntilTagNamePopped(Ve.FORM):et&&ce.openElements.remove(et))}function Sl(ce){ce.openElements.hasInButtonScope(Ve.P)||ce._insertFakeElement(Ln.P,Ve.P),ce._closePElement()}function Es(ce){ce.openElements.hasInListItemScope(Ve.LI)&&(ce.openElements.generateImpliedEndTagsWithExclusion(Ve.LI),ce.openElements.popUntilTagNamePopped(Ve.LI))}function Fu(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTagsWithExclusion(et),ce.openElements.popUntilTagNamePopped(et))}function va(ce){ce.openElements.hasNumberedHeaderInScope()&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilNumberedHeaderPopped())}function Os(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker())}function oa(ce){ce._reconstructActiveFormattingElements(),ce._insertFakeElement(Ln.BR,Ve.BR),ce.openElements.pop(),ce.framesetOk=!1}function Ta(ce,ge){const et=ge.tagName,rn=ge.tagID;for(let Sr=ce.openElements.stackTop;Sr>0;Sr--){const $r=ce.openElements.items[Sr],Ni=ce.openElements.tagIDs[Sr];if(rn===Ni&&(rn!==Ve.UNKNOWN||ce.treeAdapter.getTagName($r)===et)){ce.openElements.generateImpliedEndTagsWithExclusion(rn),ce.openElements.stackTop>=Sr&&ce.openElements.shortenToLength(Sr);break}if(ce._isSpecialElement($r,Ni))break}}function La(ce,ge){switch(ge.tagID){case Ve.A:case Ve.B:case Ve.I:case Ve.S:case Ve.U:case Ve.EM:case Ve.TT:case Ve.BIG:case Ve.CODE:case Ve.FONT:case Ve.NOBR:case Ve.SMALL:case Ve.STRIKE:case Ve.STRONG:{Oa(ce,ge);break}case Ve.P:{Sl(ce);break}case Ve.DL:case Ve.UL:case Ve.OL:case Ve.DIR:case Ve.DIV:case Ve.NAV:case Ve.PRE:case Ve.MAIN:case Ve.MENU:case Ve.ASIDE:case Ve.BUTTON:case Ve.CENTER:case Ve.FIGURE:case Ve.FOOTER:case Ve.HEADER:case Ve.HGROUP:case Ve.DIALOG:case Ve.ADDRESS:case Ve.ARTICLE:case Ve.DETAILS:case Ve.SEARCH:case Ve.SECTION:case Ve.SUMMARY:case Ve.LISTING:case Ve.FIELDSET:case Ve.BLOCKQUOTE:case Ve.FIGCAPTION:{cl(ce,ge);break}case Ve.LI:{Es(ce);break}case Ve.DD:case Ve.DT:{Fu(ce,ge);break}case Ve.H1:case Ve.H2:case Ve.H3:case Ve.H4:case Ve.H5:case Ve.H6:{va(ce);break}case Ve.BR:{oa(ce);break}case Ve.BODY:{Zo(ce,ge);break}case Ve.HTML:{Ya(ce,ge);break}case Ve.FORM:{Ia(ce);break}case Ve.APPLET:case Ve.OBJECT:case Ve.MARQUEE:{Os(ce,ge);break}case Ve.TEMPLATE:{da(ce,ge);break}default:Ta(ce,ge)}}function Za(ce,ge){ce.tmplInsertionModeStack.length>0?js(ce,ge):ho(ce,ge)}function na(ce,ge){var et;ge.tagID===Ve.SCRIPT&&((et=ce.scriptHandler)===null||et===void 0||et.call(ce,ce.openElements.current)),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode}function sc(ce,ge){ce._err(ge,Dn.eofInElementThatCanContainOnlyText),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode,ce.onEof(ge)}function bo(ce,ge){if(ce.openElements.currentTagId!==void 0&&ia.has(ce.openElements.currentTagId))switch(ce.pendingCharacterTokens.length=0,ce.hasNonWhitespacePendingCharacterToken=!1,ce.originalInsertionMode=ce.insertionMode,ce.insertionMode=Wn.IN_TABLE_TEXT,ge.type){case cr.CHARACTER:{Nl(ce,ge);break}case cr.WHITESPACE_CHARACTER:{du(ce,ge);break}}else Gs(ce,ge)}function Dc(ce,ge){ce.openElements.clearBackToTableContext(),ce.activeFormattingElements.insertMarker(),ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_CAPTION}function aa(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_COLUMN_GROUP}function Sc(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(Ln.COLGROUP,Ve.COLGROUP),ce.insertionMode=Wn.IN_COLUMN_GROUP,Va(ce,ge)}function Bu(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_TABLE_BODY}function bu(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(Ln.TBODY,Ve.TBODY),ce.insertionMode=Wn.IN_TABLE_BODY,Ll(ce,ge)}function Rc(ce,ge){ce.openElements.hasInTableScope(Ve.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ve.TABLE),ce._resetInsertionMode(),ce._processStartTag(ge))}function Xc(ce,ge){cs(ge)?ce._appendElement(ge,Yt.HTML):Gs(ce,ge),ge.ackSelfClosing=!0}function Yl(ce,ge){!ce.formElement&&ce.openElements.tmplCount===0&&(ce._insertElement(ge,Yt.HTML),ce.formElement=ce.openElements.current,ce.openElements.pop())}function Xl(ce,ge){switch(ge.tagID){case Ve.TD:case Ve.TH:case Ve.TR:{bu(ce,ge);break}case Ve.STYLE:case Ve.SCRIPT:case Ve.TEMPLATE:{ga(ce,ge);break}case Ve.COL:{Sc(ce,ge);break}case Ve.FORM:{Yl(ce,ge);break}case Ve.TABLE:{Rc(ce,ge);break}case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:{Bu(ce,ge);break}case Ve.INPUT:{Xc(ce,ge);break}case Ve.CAPTION:{Dc(ce,ge);break}case Ve.COLGROUP:{aa(ce,ge);break}default:Gs(ce,ge)}}function la(ce,ge){switch(ge.tagID){case Ve.TABLE:{ce.openElements.hasInTableScope(Ve.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ve.TABLE),ce._resetInsertionMode());break}case Ve.TEMPLATE:{da(ce,ge);break}case Ve.BODY:case Ve.CAPTION:case Ve.COL:case Ve.COLGROUP:case Ve.HTML:case Ve.TBODY:case Ve.TD:case Ve.TFOOT:case Ve.TH:case Ve.THEAD:case Ve.TR:break;default:Gs(ce,ge)}}function Gs(ce,ge){const et=ce.fosterParentingEnabled;ce.fosterParentingEnabled=!0,Pl(ce,ge),ce.fosterParentingEnabled=et}function du(ce,ge){ce.pendingCharacterTokens.push(ge)}function Nl(ce,ge){ce.pendingCharacterTokens.push(ge),ce.hasNonWhitespacePendingCharacterToken=!0}function dl(ce,ge){let et=0;if(ce.hasNonWhitespacePendingCharacterToken)for(;et<ce.pendingCharacterTokens.length;et++)Gs(ce,ce.pendingCharacterTokens[et]);else for(;et<ce.pendingCharacterTokens.length;et++)ce._insertCharacters(ce.pendingCharacterTokens[et]);ce.insertionMode=ce.originalInsertionMode,ce._processToken(ge)}const bl=new Set([Ve.CAPTION,Ve.COL,Ve.COLGROUP,Ve.TBODY,Ve.TD,Ve.TFOOT,Ve.TH,Ve.THEAD,Ve.TR]);function $o(ce,ge){const et=ge.tagID;bl.has(et)?ce.openElements.hasInTableScope(Ve.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ve.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Wn.IN_TABLE,Xl(ce,ge)):ua(ce,ge)}function ca(ce,ge){const et=ge.tagID;switch(et){case Ve.CAPTION:case Ve.TABLE:{ce.openElements.hasInTableScope(Ve.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ve.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Wn.IN_TABLE,et===Ve.TABLE&&la(ce,ge));break}case Ve.BODY:case Ve.COL:case Ve.COLGROUP:case Ve.HTML:case Ve.TBODY:case Ve.TD:case Ve.TFOOT:case Ve.TH:case Ve.THEAD:case Ve.TR:break;default:La(ce,ge)}}function Va(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.COL:{ce._appendElement(ge,Yt.HTML),ge.ackSelfClosing=!0;break}case Ve.TEMPLATE:{ga(ce,ge);break}default:xs(ce,ge)}}function Is(ce,ge){switch(ge.tagID){case Ve.COLGROUP:{ce.openElements.currentTagId===Ve.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE);break}case Ve.TEMPLATE:{da(ce,ge);break}case Ve.COL:break;default:xs(ce,ge)}}function xs(ce,ge){ce.openElements.currentTagId===Ve.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE,ce._processToken(ge))}function Ll(ce,ge){switch(ge.tagID){case Ve.TR:{ce.openElements.clearBackToTableBodyContext(),ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_ROW;break}case Ve.TH:case Ve.TD:{ce.openElements.clearBackToTableBodyContext(),ce._insertFakeElement(Ln.TR,Ve.TR),ce.insertionMode=Wn.IN_ROW,_l(ce,ge);break}case Ve.CAPTION:case Ve.COL:case Ve.COLGROUP:case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE,Xl(ce,ge));break}default:Xl(ce,ge)}}function Bl(ce,ge){const et=ge.tagID;switch(ge.tagID){case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:{ce.openElements.hasInTableScope(et)&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE);break}case Ve.TABLE:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE,la(ce,ge));break}case Ve.BODY:case Ve.CAPTION:case Ve.COL:case Ve.COLGROUP:case Ve.HTML:case Ve.TD:case Ve.TH:case Ve.TR:break;default:la(ce,ge)}}function _l(ce,ge){switch(ge.tagID){case Ve.TH:case Ve.TD:{ce.openElements.clearBackToTableRowContext(),ce._insertElement(ge,Yt.HTML),ce.insertionMode=Wn.IN_CELL,ce.activeFormattingElements.insertMarker();break}case Ve.CAPTION:case Ve.COL:case Ve.COLGROUP:case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:case Ve.TR:{ce.openElements.hasInTableScope(Ve.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE_BODY,Ll(ce,ge));break}default:Xl(ce,ge)}}function kl(ce,ge){switch(ge.tagID){case Ve.TR:{ce.openElements.hasInTableScope(Ve.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE_BODY);break}case Ve.TABLE:{ce.openElements.hasInTableScope(Ve.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE_BODY,Bl(ce,ge));break}case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:{(ce.openElements.hasInTableScope(ge.tagID)||ce.openElements.hasInTableScope(Ve.TR))&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Wn.IN_TABLE_BODY,Bl(ce,ge));break}case Ve.BODY:case Ve.CAPTION:case Ve.COL:case Ve.COLGROUP:case Ve.HTML:case Ve.TD:case Ve.TH:break;default:la(ce,ge)}}function hu(ce,ge){const et=ge.tagID;bl.has(et)?(ce.openElements.hasInTableScope(Ve.TD)||ce.openElements.hasInTableScope(Ve.TH))&&(ce._closeTableCell(),_l(ce,ge)):ua(ce,ge)}function bd(ce,ge){const et=ge.tagID;switch(et){case Ve.TD:case Ve.TH:{ce.openElements.hasInTableScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Wn.IN_ROW);break}case Ve.TABLE:case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:case Ve.TR:{ce.openElements.hasInTableScope(et)&&(ce._closeTableCell(),kl(ce,ge));break}case Ve.BODY:case Ve.CAPTION:case Ve.COL:case Ve.COLGROUP:case Ve.HTML:break;default:La(ce,ge)}}function Hd(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.OPTION:{ce.openElements.currentTagId===Ve.OPTION&&ce.openElements.pop(),ce._insertElement(ge,Yt.HTML);break}case Ve.OPTGROUP:{ce.openElements.currentTagId===Ve.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ve.OPTGROUP&&ce.openElements.pop(),ce._insertElement(ge,Yt.HTML);break}case Ve.HR:{ce.openElements.currentTagId===Ve.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ve.OPTGROUP&&ce.openElements.pop(),ce._appendElement(ge,Yt.HTML),ge.ackSelfClosing=!0;break}case Ve.INPUT:case Ve.KEYGEN:case Ve.TEXTAREA:case Ve.SELECT:{ce.openElements.hasInSelectScope(Ve.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ve.SELECT),ce._resetInsertionMode(),ge.tagID!==Ve.SELECT&&ce._processStartTag(ge));break}case Ve.SCRIPT:case Ve.TEMPLATE:{ga(ce,ge);break}default:}}function ch(ce,ge){switch(ge.tagID){case Ve.OPTGROUP:{ce.openElements.stackTop>0&&ce.openElements.currentTagId===Ve.OPTION&&ce.openElements.tagIDs[ce.openElements.stackTop-1]===Ve.OPTGROUP&&ce.openElements.pop(),ce.openElements.currentTagId===Ve.OPTGROUP&&ce.openElements.pop();break}case Ve.OPTION:{ce.openElements.currentTagId===Ve.OPTION&&ce.openElements.pop();break}case Ve.SELECT:{ce.openElements.hasInSelectScope(Ve.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ve.SELECT),ce._resetInsertionMode());break}case Ve.TEMPLATE:{da(ce,ge);break}default:}}function dh(ce,ge){const et=ge.tagID;et===Ve.CAPTION||et===Ve.TABLE||et===Ve.TBODY||et===Ve.TFOOT||et===Ve.THEAD||et===Ve.TR||et===Ve.TD||et===Ve.TH?(ce.openElements.popUntilTagNamePopped(Ve.SELECT),ce._resetInsertionMode(),ce._processStartTag(ge)):Hd(ce,ge)}function gs(ce,ge){const et=ge.tagID;et===Ve.CAPTION||et===Ve.TABLE||et===Ve.TBODY||et===Ve.TFOOT||et===Ve.THEAD||et===Ve.TR||et===Ve.TD||et===Ve.TH?ce.openElements.hasInTableScope(et)&&(ce.openElements.popUntilTagNamePopped(Ve.SELECT),ce._resetInsertionMode(),ce.onEndTag(ge)):ch(ce,ge)}function lc(ce,ge){switch(ge.tagID){case Ve.BASE:case Ve.BASEFONT:case Ve.BGSOUND:case Ve.LINK:case Ve.META:case Ve.NOFRAMES:case Ve.SCRIPT:case Ve.STYLE:case Ve.TEMPLATE:case Ve.TITLE:{ga(ce,ge);break}case Ve.CAPTION:case Ve.COLGROUP:case Ve.TBODY:case Ve.TFOOT:case Ve.THEAD:{ce.tmplInsertionModeStack[0]=Wn.IN_TABLE,ce.insertionMode=Wn.IN_TABLE,Xl(ce,ge);break}case Ve.COL:{ce.tmplInsertionModeStack[0]=Wn.IN_COLUMN_GROUP,ce.insertionMode=Wn.IN_COLUMN_GROUP,Va(ce,ge);break}case Ve.TR:{ce.tmplInsertionModeStack[0]=Wn.IN_TABLE_BODY,ce.insertionMode=Wn.IN_TABLE_BODY,Ll(ce,ge);break}case Ve.TD:case Ve.TH:{ce.tmplInsertionModeStack[0]=Wn.IN_ROW,ce.insertionMode=Wn.IN_ROW,_l(ce,ge);break}default:ce.tmplInsertionModeStack[0]=Wn.IN_BODY,ce.insertionMode=Wn.IN_BODY,ua(ce,ge)}}function Na(ce,ge){ge.tagID===Ve.TEMPLATE&&da(ce,ge)}function js(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.popUntilTagNamePopped(Ve.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode(),ce.onEof(ge)):ho(ce,ge)}function $s(ce,ge){ge.tagID===Ve.HTML?ua(ce,ge):bc(ce,ge)}function qs(ce,ge){var et;if(ge.tagID===Ve.HTML){if(ce.fragmentContext||(ce.insertionMode=Wn.AFTER_AFTER_BODY),ce.options.sourceCodeLocationInfo&&ce.openElements.tagIDs[0]===Ve.HTML){ce._setEndLocation(ce.openElements.items[0],ge);const rn=ce.openElements.items[1];rn&&!(!((et=ce.treeAdapter.getNodeSourceCodeLocation(rn))===null||et===void 0)&&et.endTag)&&ce._setEndLocation(rn,ge)}}else bc(ce,ge)}function bc(ce,ge){ce.insertionMode=Wn.IN_BODY,Pl(ce,ge)}function Fs(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.FRAMESET:{ce._insertElement(ge,Yt.HTML);break}case Ve.FRAME:{ce._appendElement(ge,Yt.HTML),ge.ackSelfClosing=!0;break}case Ve.NOFRAMES:{ga(ce,ge);break}default:}}function Eu(ce,ge){ge.tagID===Ve.FRAMESET&&!ce.openElements.isRootHtmlElementCurrent()&&(ce.openElements.pop(),!ce.fragmentContext&&ce.openElements.currentTagId!==Ve.FRAMESET&&(ce.insertionMode=Wn.AFTER_FRAMESET))}function Qc(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.NOFRAMES:{ga(ce,ge);break}default:}}function Ed(ce,ge){ge.tagID===Ve.HTML&&(ce.insertionMode=Wn.AFTER_AFTER_FRAMESET)}function Il(ce,ge){ge.tagID===Ve.HTML?ua(ce,ge):Pe(ce,ge)}function Pe(ce,ge){ce.insertionMode=Wn.IN_BODY,Pl(ce,ge)}function Xe(ce,ge){switch(ge.tagID){case Ve.HTML:{ua(ce,ge);break}case Ve.NOFRAMES:{ga(ce,ge);break}default:}}function tt(ce,ge){ge.chars=cn,ce._insertCharacters(ge)}function gt(ce,ge){ce._insertCharacters(ge),ce.framesetOk=!1}function Mt(ce){for(;ce.treeAdapter.getNamespaceURI(ce.openElements.current)!==Yt.HTML&&ce.openElements.currentTagId!==void 0&&!ce._isIntegrationPoint(ce.openElements.currentTagId,ce.openElements.current);)ce.openElements.pop()}function Bt(ce,ge){if(Bi(ge))Mt(ce),ce._startTagOutsideForeignContent(ge);else{const et=ce._getAdjustedCurrentElement(),rn=ce.treeAdapter.getNamespaceURI(et);rn===Yt.MATHML?ao(ge):rn===Yt.SVG&&(An(ge),wo(ge)),Ho(ge),ge.selfClosing?ce._appendElement(ge,rn):ce._insertElement(ge,rn),ge.ackSelfClosing=!0}}function sn(ce,ge){if(ge.tagID===Ve.P||ge.tagID===Ve.BR){Mt(ce),ce._endTagOutsideForeignContent(ge);return}for(let et=ce.openElements.stackTop;et>0;et--){const rn=ce.openElements.items[et];if(ce.treeAdapter.getNamespaceURI(rn)===Yt.HTML){ce._endTagOutsideForeignContent(ge);break}const Sr=ce.treeAdapter.getTagName(rn);if(Sr.toLowerCase()===ge.tagName){ge.tagName=Sr,ce.openElements.shortenToLength(et);break}}}const Cn=/["$&'<>\u0080-\uFFFF]/g,yr=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),xr=String.prototype.codePointAt==null?(ce,ge)=>(ce.charCodeAt(ge)&64512)===55296?(ce.charCodeAt(ge)-55296)*1024+ce.charCodeAt(ge+1)-56320+65536:ce.charCodeAt(ge):(ce,ge)=>ce.codePointAt(ge);function nr(ce){let ge="",et=0,rn;for(;(rn=Cn.exec(ce))!==null;){const{index:Sr}=rn,$r=ce.charCodeAt(Sr),Ni=yr.get($r);Ni===void 0?(ge+=`${ce.substring(et,Sr)}&#x${xr(ce,Sr).toString(16)};`,et=Cn.lastIndex+=+(($r&64512)===55296)):(ge+=ce.substring(et,Sr)+Ni,et=Sr+1)}return ge+ce.substr(et)}const Zr=null;function zr(ce,ge){return function(rn){let Sr,$r=0,Ni="";for(;Sr=ce.exec(rn);)$r!==Sr.index&&(Ni+=rn.substring($r,Sr.index)),Ni+=ge.get(Sr[0].charCodeAt(0)),$r=Sr.index+1;return Ni+rn.substring($r)}}const ur=null,Po=zr(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),jo=zr(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),ea=new Set([Ln.AREA,Ln.BASE,Ln.BASEFONT,Ln.BGSOUND,Ln.BR,Ln.COL,Ln.EMBED,Ln.FRAME,Ln.HR,Ln.IMG,Ln.INPUT,Ln.KEYGEN,Ln.LINK,Ln.META,Ln.PARAM,Ln.SOURCE,Ln.TRACK,Ln.WBR]);function so(ce,ge){return ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML&&ea.has(ge.treeAdapter.getTagName(ce))}const To={treeAdapter:Wr,scriptingEnabled:!0};function Bo(ce,ge){const et=xa(xa({},To),ge);return so(ce,et)?"":Qa(ce,et)}function Xa(ce,ge){const et=xa(xa({},To),ge);return Wi(ce,et)}function Qa(ce,ge){let et="";const rn=ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getTagName(ce)===$.TEMPLATE&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML?ge.treeAdapter.getTemplateContent(ce):ce,Sr=ge.treeAdapter.getChildNodes(rn);if(Sr)for(const $r of Sr)et+=Wi($r,ge);return et}function Wi(ce,ge){return ge.treeAdapter.isElementNode(ce)?ka(ce,ge):ge.treeAdapter.isTextNode(ce)?Ua(ce,ge):ge.treeAdapter.isCommentNode(ce)?xo(ce,ge):ge.treeAdapter.isDocumentTypeNode(ce)?Dl(ce,ge):""}function ka(ce,ge){const et=ge.treeAdapter.getTagName(ce);return`<${et}${ws(ce,ge)}>${so(ce,ge)?"":`${Qa(ce,ge)}</${et}>`}`}function ws(ce,{treeAdapter:ge}){let et="";for(const rn of ge.getAttrList(ce)){if(et+=" ",rn.namespace)switch(rn.namespace){case NS.XML:{et+=`xml:${rn.name}`;break}case NS.XMLNS:{rn.name!=="xmlns"&&(et+="xmlns:"),et+=rn.name;break}case NS.XLINK:{et+=`xlink:${rn.name}`;break}default:et+=`${rn.prefix}:${rn.name}`}else et+=rn.name;et+=`="${escapeAttribute(rn.value)}"`}return et}function Ua(ce,ge){const{treeAdapter:et}=ge,rn=et.getTextNodeContent(ce),Sr=et.getParentNode(ce),$r=Sr&&et.isElementNode(Sr)&&et.getTagName(Sr);return $r&&et.getNamespaceURI(Sr)===NS.HTML&&hasUnescapedText($r,ge.scriptingEnabled)?rn:escapeText(rn)}function xo(ce,{treeAdapter:ge}){return`<!--${ge.getCommentNodeContent(ce)}-->`}function Dl(ce,{treeAdapter:ge}){return`<!DOCTYPE ${ge.getDocumentTypeNodeName(ce)}>`}function is(ce,ge){return Parser.parse(ce,ge)}function Ko(ce,ge,et){typeof ce=="string"&&(et=ge,ge=ce,ce=null);const rn=Parser.getFragmentParser(ce,et);return rn.tokenizer.write(ge,!0),rn.getFragment()}var Yo=ae(17970),Ea=ae(10528);const ds=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,al=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),El={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ul(ce,ge){const et=cc(ce),rn=St("type",{handlers:{root:hl,element:Ql,text:Br,comment:_u,doctype:xl,raw:el},unknown:ms}),Sr={parser:et?new hs(El):hs.getFragmentParser(void 0,El),handle(Lo){rn(Lo,Sr)},stitches:!1,options:ge||{}};rn(ce,Sr),ql(Sr,(0,Yo.Pk)());const $r=et?Sr.parser.document:Sr.parser.getFragment(),Ni=Je($r,{file:Sr.options.file});return Sr.stitches&&(0,Ea.Vn)(Ni,"comment",function(Lo,Xo,ni){const Qi=Lo;if(Qi.value.stitch&&ni&&Xo!==void 0){const ta=ni.children;return ta[Xo]=Qi.value.stitch,Xo}}),Ni.type==="root"&&Ni.children.length===1&&Ni.children[0].type===ce.type?Ni.children[0]:Ni}function Lr(ce,ge){let et=-1;if(ce)for(;++et<ce.length;)ge.handle(ce[et])}function hl(ce,ge){Lr(ce.children,ge)}function Ql(ce,ge){Qu(ce,ge),Lr(ce.children,ge),uc(ce,ge)}function Br(ce,ge){ge.parser.tokenizer.state>4&&(ge.parser.tokenizer.state=0);const et={type:cr.CHARACTER,chars:ce.value,location:wl(ce)};ql(ge,(0,Yo.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function xl(ce,ge){const et={type:cr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:wl(ce)};ql(ge,(0,Yo.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function Jl(ce,ge){ge.stitches=!0;const et=Ju(ce);if("children"in ce&&"children"in et){const rn=Ul({type:"root",children:ce.children},ge.options);et.children=rn.children}_u({type:"comment",value:{stitch:et}},ge)}function _u(ce,ge){const et=ce.value,rn={type:cr.COMMENT,data:et,location:wl(ce)};ql(ge,(0,Yo.Pk)(ce)),ge.parser.currentToken=rn,ge.parser._processToken(ge.parser.currentToken)}function el(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,fl(ge,(0,Yo.Pk)(ce)),ge.parser.tokenizer.write(ge.options.tagfilter?ce.value.replace(ds,"&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 ms(ce,ge){const et=ce;if(ge.options.passThrough&&ge.options.passThrough.includes(et.type))Jl(et,ge);else{let rn="";throw al.has(et.type)&&(rn=". 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"+rn)}}function ql(ce,ge){fl(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=Ti.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 fl(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===Ti.PLAINTEXT)return;ql(ge,(0,Yo.Pk)(ce));const rn=ge.parser.openElements.current;let Sr="namespaceURI"in rn?rn.namespaceURI:Qe.t.html;Sr===Qe.t.html&&et==="svg"&&(Sr=Qe.t.svg);const $r=jt(Zp(xa({},ce),{children:[]}),{space:Sr===Qe.t.svg?"svg":"html"}),Ni={type:cr.START_TAG,tagName:et,tagID:kr(et),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in $r?$r.attrs:[],location:wl(ce)};ge.parser.currentToken=Ni,ge.parser._processToken(ge.parser.currentToken),ge.parser.tokenizer.lastStartTagName=et}function uc(ce,ge){const et=ce.tagName.toLowerCase();if(!ge.parser.tokenizer.inForeignNode&&fn.includes(et)||ge.parser.tokenizer.state===Ti.PLAINTEXT)return;ql(ge,(0,Yo.rb)(ce));const rn={type:cr.END_TAG,tagName:et,tagID:kr(et),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:wl(ce)};ge.parser.currentToken=rn,ge.parser._processToken(ge.parser.currentToken),et===ge.parser.tokenizer.lastStartTagName&&(ge.parser.tokenizer.state===Ti.RCDATA||ge.parser.tokenizer.state===Ti.RAWTEXT||ge.parser.tokenizer.state===Ti.SCRIPT_DATA)&&(ge.parser.tokenizer.state=Ti.DATA)}function cc(ce){const ge=ce.type==="root"?ce.children[0]:ce;return!!(ge&&(ge.type==="doctype"||ge.type==="element"&&ge.tagName.toLowerCase()==="html"))}function wl(ce){const ge=(0,Yo.Pk)(ce)||{line:void 0,column:void 0,offset:void 0},et=(0,Yo.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 Ju(ce){return"children"in ce?(0,Ce.ZP)(Zp(xa({},ce),{children:[]})):(0,Ce.ZP)(ce)}function zd(ce){return function(ge,et){return Ul(ge,Zp(xa({},ce),{file:et}))}}},10787:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ue}});function oe(mt){if(typeof mt!="string")throw new TypeError("Expected a string");return mt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ce=ae(2348),ke=ae(10502);function Ie(mt,Je,It){const Oe=It||{},te=(0,ke.O)(Oe.ignore||[]),ee=je(Je);let he=-1;for(;++he<ee.length;)(0,Ce.S4)(mt,"text",ue);function ue(me,be){let Ae=-1,De;for(;++Ae<be.length;){const Ye=be[Ae],rt=De?De.children:void 0;if(te(Ye,rt?rt.indexOf(Ye):void 0,De))return;De=Ye}if(De)return fe(me,be)}function fe(me,be){const Ae=be[be.length-1],De=ee[he][0],Ye=ee[he][1];let rt=0;const at=Ae.children.indexOf(me);let ht=!1,ot=[];De.lastIndex=0;let vt=De.exec(me.value);for(;vt;){const xt=vt.index,Tt={index:vt.index,input:vt.input,stack:[...be,me]};let _t=Ye(...vt,Tt);if(typeof _t=="string"&&(_t=_t.length>0?{type:"text",value:_t}:void 0),_t===!1?De.lastIndex=xt+1:(rt!==xt&&ot.push({type:"text",value:me.value.slice(rt,xt)}),Array.isArray(_t)?ot.push(..._t):_t&&ot.push(_t),rt=xt+vt[0].length,ht=!0),!De.global)break;vt=De.exec(me.value)}return ht?(rt<me.value.length&&ot.push({type:"text",value:me.value.slice(rt)}),Ae.children.splice(at,1,...ot)):ot=[me],at+ot.length}}function je(mt){const Je=[];if(!Array.isArray(mt))throw new TypeError("Expected find and replace tuple or list of tuples");const It=!mt[0]||Array.isArray(mt[0])?mt:[mt];let Oe=-1;for(;++Oe<It.length;){const te=It[Oe];Je.push([Te(te[0]),Ge(te[1])])}return Je}function Te(mt){return typeof mt=="string"?new RegExp(oe(mt),"g"):mt}function Ge(mt){return typeof mt=="function"?mt:function(){return mt}}function lt(mt){Ie(mt,[/\r?\n|\r/g,Qe])}function Qe(){return{type:"break"}}function Ue(){return function(mt){lt(mt)}}},30084:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ee}});var oe=ae(87342);function Ce(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 ke(){return{enter:{mathFlow:he,mathFlowFenceMeta:ue,mathText:Ae},exit:{mathFlow:be,mathFlowFence:me,mathFlowFenceMeta:fe,mathFlowValue:Ye,mathText:De,mathTextData:Ye}};function he(rt){const $e={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[$e]}},rt)}function ue(){this.buffer()}function fe(){const rt=this.resume(),$e=this.stack[this.stack.length-1];(0,oe.ok)($e.type==="math"),$e.meta=rt}function me(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function be(rt){const $e=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),at=this.stack[this.stack.length-1];(0,oe.ok)(at.type==="math"),this.exit(rt),at.value=$e;const ht=at.data.hChildren[0];(0,oe.ok)(ht.type==="element"),(0,oe.ok)(ht.tagName==="code"),ht.children.push({type:"text",value:$e}),this.data.mathFlowInside=void 0}function Ae(rt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},rt),this.buffer()}function De(rt){const $e=this.resume(),at=this.stack[this.stack.length-1];(0,oe.ok)(at.type==="inlineMath"),this.exit(rt),at.value=$e,at.data.hChildren.push({type:"text",value:$e})}function Ye(rt){this.config.enter.data.call(this,rt),this.config.exit.data.call(this,rt)}}function Ie(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,Ye,rt){const $e=Ae.value||"",at=Ye.createTracker(rt),ht="$".repeat(Math.max(Ce($e,"$")+1,2)),ot=Ye.enter("mathFlow");let vt=at.move(ht);if(Ae.meta){const xt=Ye.enter("mathFlowMeta");vt+=at.move(Ye.safe(Ae.meta,xa({after:`
`,before:vt,encode:["$"]},at.current()))),xt()}return vt+=at.move(`
`),$e&&(vt+=at.move($e+`
`)),vt+=at.move(ht),ot(),vt}function me(Ae,De,Ye){let rt=Ae.value||"",$e=1;for(ue||$e++;new RegExp("(^|[^$])"+"\\$".repeat($e)+"([^$]|$)").test(rt);)$e++;const at="$".repeat($e);/[^ \r\n]/.test(rt)&&(/^[ \r\n]/.test(rt)&&/[ \r\n]$/.test(rt)||/^\$|\$$/.test(rt))&&(rt=" "+rt+" ");let ht=-1;for(;++ht<Ye.unsafe.length;){const ot=Ye.unsafe[ht];if(!ot.atBreak)continue;const vt=Ye.compilePattern(ot);let xt;for(;xt=vt.exec(rt);){let Tt=xt.index;rt.codePointAt(Tt)===10&&rt.codePointAt(Tt-1)===13&&Tt--,rt=rt.slice(0,Tt)+" "+rt.slice(xt.index+1)}}return at+rt+at}function be(){return"$"}}var je=ae(26735),Te=ae(80722);const Ge={tokenize:Qe,concrete:!0,name:"mathFlow"},lt={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 Ye;function Ye(Zt){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),rt(Zt)}function rt(Zt){return Zt===36?(he.consume(Zt),De++,rt):De<2?fe(Zt):(he.exit("mathFlowFenceSequence"),(0,je.f)(he,$e,"whitespace")(Zt))}function $e(Zt){return Zt===null||(0,Te.Ch)(Zt)?ht(Zt):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),at(Zt))}function at(Zt){return Zt===null||(0,Te.Ch)(Zt)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),ht(Zt)):Zt===36?fe(Zt):(he.consume(Zt),at)}function ht(Zt){return he.exit("mathFlowFence"),me.interrupt?ue(Zt):he.attempt(lt,ot,_t)(Zt)}function ot(Zt){return he.attempt({tokenize:Jt,partial:!0},_t,vt)(Zt)}function vt(Zt){return(Ae?(0,je.f)(he,xt,"linePrefix",Ae+1):xt)(Zt)}function xt(Zt){return Zt===null?_t(Zt):(0,Te.Ch)(Zt)?he.attempt(lt,ot,_t)(Zt):(he.enter("mathFlowValue"),Tt(Zt))}function Tt(Zt){return Zt===null||(0,Te.Ch)(Zt)?(he.exit("mathFlowValue"),xt(Zt)):(he.consume(Zt),Tt)}function _t(Zt){return he.exit("mathFlow"),ue(Zt)}function Jt(Zt,vn,bt){let ft=0;return(0,je.f)(Zt,ct,"linePrefix",me.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ct(kt){return Zt.enter("mathFlowFence"),Zt.enter("mathFlowFenceSequence"),qt(kt)}function qt(kt){return kt===36?(ft++,Zt.consume(kt),qt):ft<De?bt(kt):(Zt.exit("mathFlowFenceSequence"),(0,je.f)(Zt,dn,"whitespace")(kt))}function dn(kt){return kt===null||(0,Te.Ch)(kt)?(Zt.exit("mathFlowFence"),vn(kt)):bt(kt)}}}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 mt(he){let fe=(he||{}).singleDollarTextMath;return fe==null&&(fe=!0),{tokenize:me,resolve:Je,previous:It,name:"mathText"};function me(be,Ae,De){const Ye=this;let rt=0,$e,at;return ht;function ht(_t){return be.enter("mathText"),be.enter("mathTextSequence"),ot(_t)}function ot(_t){return _t===36?(be.consume(_t),rt++,ot):rt<2&&!fe?De(_t):(be.exit("mathTextSequence"),vt(_t))}function vt(_t){return _t===null?De(_t):_t===36?(at=be.enter("mathTextSequence"),$e=0,Tt(_t)):_t===32?(be.enter("space"),be.consume(_t),be.exit("space"),vt):(0,Te.Ch)(_t)?(be.enter("lineEnding"),be.consume(_t),be.exit("lineEnding"),vt):(be.enter("mathTextData"),xt(_t))}function xt(_t){return _t===null||_t===32||_t===36||(0,Te.Ch)(_t)?(be.exit("mathTextData"),vt(_t)):(be.consume(_t),xt)}function Tt(_t){return _t===36?(be.consume(_t),$e++,Tt):$e===rt?(be.exit("mathTextSequence"),be.exit("mathText"),Ae(_t)):(at.type="mathTextData",xt(_t))}}}function Je(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 It(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Oe(he){return{flow:{36:Ge},text:{36:mt(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(Oe(fe)),Ae.push(ke()),De.push(Ie(fe))}},16722:function(He,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return lt}});const oe=Qe=>typeof Qe=="object"&&Qe!=null&&Qe.nodeType===1,Ce=(Qe,Ue)=>(!Ue||Qe!=="hidden")&&Qe!=="visible"&&Qe!=="clip",ke=(Qe,Ue)=>{if(Qe.clientHeight<Qe.scrollHeight||Qe.clientWidth<Qe.scrollWidth){const mt=getComputedStyle(Qe,null);return Ce(mt.overflowY,Ue)||Ce(mt.overflowX,Ue)||(Je=>{const It=(Oe=>{if(!Oe.ownerDocument||!Oe.ownerDocument.defaultView)return null;try{return Oe.ownerDocument.defaultView.frameElement}catch(te){return null}})(Je);return!!It&&(It.clientHeight<Je.scrollHeight||It.clientWidth<Je.scrollWidth)})(Qe)}return!1},Ie=(Qe,Ue,mt,Je,It,Oe,te,ee)=>Oe<Qe&&te>Ue||Oe>Qe&&te<Ue?0:Oe<=Qe&&ee<=mt||te>=Ue&&ee>=mt?Oe-Qe-Je:te>Ue&&ee<mt||Oe<Qe&&ee>mt?te-Ue+It:0,je=Qe=>{const Ue=Qe.parentElement;return Ue==null?Qe.getRootNode().host||null:Ue},Te=(Qe,Ue)=>{var mt,Je,It,Oe;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:he,boundary:ue,skipOverflowHiddenElements:fe}=Ue,me=typeof ue=="function"?ue:dn=>dn!==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=je(De),De===be){Ae.push(De);break}De!=null&&De===document.body&&ke(De)&&!ke(document.documentElement)||De!=null&&ke(De,fe)&&Ae.push(De)}const Ye=(Je=(mt=window.visualViewport)==null?void 0:mt.width)!=null?Je:innerWidth,rt=(Oe=(It=window.visualViewport)==null?void 0:It.height)!=null?Oe:innerHeight,{scrollX:$e,scrollY:at}=window,{height:ht,width:ot,top:vt,right:xt,bottom:Tt,left:_t}=Qe.getBoundingClientRect(),{top:Jt,right:Zt,bottom:vn,left:bt}=(dn=>{const kt=window.getComputedStyle(dn);return{top:parseFloat(kt.scrollMarginTop)||0,right:parseFloat(kt.scrollMarginRight)||0,bottom:parseFloat(kt.scrollMarginBottom)||0,left:parseFloat(kt.scrollMarginLeft)||0}})(Qe);let ft=ee==="start"||ee==="nearest"?vt-Jt:ee==="end"?Tt+vn:vt+ht/2-Jt+vn,ct=he==="center"?_t+ot/2-bt+Zt:he==="end"?xt+Zt:_t-bt;const qt=[];for(let dn=0;dn<Ae.length;dn++){const kt=Ae[dn],{height:bn,width:gn,top:Zn,right:Gt,bottom:Rt,left:tn}=kt.getBoundingClientRect();if(te==="if-needed"&&vt>=0&&_t>=0&&Tt<=rt&&xt<=Ye&&(kt===be&&!ke(kt)||vt>=Zn&&Tt<=Rt&&_t>=tn&&xt<=Gt))return qt;const zn=getComputedStyle(kt),Yn=parseInt(zn.borderLeftWidth,10),nt=parseInt(zn.borderTopWidth,10),Be=parseInt(zn.borderRightWidth,10),Re=parseInt(zn.borderBottomWidth,10);let Ze=0,st=0;const Fe="offsetWidth"in kt?kt.offsetWidth-kt.clientWidth-Yn-Be:0,St="offsetHeight"in kt?kt.offsetHeight-kt.clientHeight-nt-Re:0,hn="offsetWidth"in kt?kt.offsetWidth===0?0:gn/kt.offsetWidth:0,On="offsetHeight"in kt?kt.offsetHeight===0?0:bn/kt.offsetHeight:0;if(be===kt)Ze=ee==="start"?ft:ee==="end"?ft-rt:ee==="nearest"?Ie(at,at+rt,rt,nt,Re,at+ft,at+ft+ht,ht):ft-rt/2,st=he==="start"?ct:he==="center"?ct-Ye/2:he==="end"?ct-Ye:Ie($e,$e+Ye,Ye,Yn,Be,$e+ct,$e+ct+ot,ot),Ze=Math.max(0,Ze+at),st=Math.max(0,st+$e);else{Ze=ee==="start"?ft-Zn-nt:ee==="end"?ft-Rt+Re+St:ee==="nearest"?Ie(Zn,Rt,bn,nt,Re+St,ft,ft+ht,ht):ft-(Zn+bn/2)+St/2,st=he==="start"?ct-tn-Yn:he==="center"?ct-(tn+gn/2)+Fe/2:he==="end"?ct-Gt+Be+Fe:Ie(tn,Gt,gn,Yn,Be+Fe,ct,ct+ot,ot);const{scrollLeft:or,scrollTop:jt}=kt;Ze=On===0?0:Math.max(0,Math.min(jt+Ze/On,kt.scrollHeight-bn/On+St)),st=hn===0?0:Math.max(0,Math.min(or+st/hn,kt.scrollWidth-gn/hn+Fe)),ft+=jt-Ze,ct+=or-st}qt.push({el:kt,top:Ze,left:st})}return qt},Ge=Qe=>Qe===!1?{block:"end",inline:"nearest"}:(Ue=>Ue===Object(Ue)&&Object.keys(Ue).length!==0)(Qe)?Qe:{block:"start",inline:"nearest"};function lt(Qe,Ue){if(!Qe.isConnected||!(It=>{let Oe=It;for(;Oe&&Oe.parentNode;){if(Oe.parentNode===document)return!0;Oe=Oe.parentNode instanceof ShadowRoot?Oe.parentNode.host:Oe.parentNode}return!1})(Qe))return;const mt=(It=>{const Oe=window.getComputedStyle(It);return{top:parseFloat(Oe.scrollMarginTop)||0,right:parseFloat(Oe.scrollMarginRight)||0,bottom:parseFloat(Oe.scrollMarginBottom)||0,left:parseFloat(Oe.scrollMarginLeft)||0}})(Qe);if((It=>typeof It=="object"&&typeof It.behavior=="function")(Ue))return Ue.behavior(Te(Qe,Ue));const Je=typeof Ue=="boolean"||Ue==null?void 0:Ue.behavior;for(const{el:It,top:Oe,left:te}of Te(Qe,Ge(Ue))){const ee=Oe-mt.top+mt.bottom,he=te-mt.left+mt.right;It.scroll({top:ee,left:he,behavior:Je})}}},71523:function(He,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Ce},Q:function(){return oe}});function oe(ke){const Ie=String(ke||"").trim();return Ie?Ie.split(/[ \t\n\r\f]+/g):[]}function Ce(ke){return ke.join(" ").trim()}},10502:function(He,Ee,ae){"use strict";ae.d(Ee,{O:function(){return Ce}});const oe=function(Qe,Ue,mt,Je,It){const Oe=Ce(Ue);if(mt!=null&&(typeof mt!="number"||mt<0||mt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(Je!=null&&(!oe(Je)||!Je.children))throw new Error("Expected parent node");if(Je==null!=(mt==null))throw new Error("Expected both parent and index");return lt(Qe)?Oe.call(It,Qe,mt,Je):!1},Ce=function(Qe){if(Qe==null)return Ge;if(typeof Qe=="function")return Te(Qe);if(typeof Qe=="object")return Array.isArray(Qe)?ke(Qe):Ie(Qe);if(typeof Qe=="string")return je(Qe);throw new Error("Expected function, string, or object as test")};function ke(Qe){const Ue=[];let mt=-1;for(;++mt<Qe.length;)Ue[mt]=Ce(Qe[mt]);return Te(Je);function Je(...It){let Oe=-1;for(;++Oe<Ue.length;)if(Ue[Oe].apply(this,It))return!0;return!1}}function Ie(Qe){const Ue=Qe;return Te(mt);function mt(Je){const It=Je;let Oe;for(Oe in Qe)if(It[Oe]!==Ue[Oe])return!1;return!0}}function je(Qe){return Te(Ue);function Ue(mt){return mt&&mt.type===Qe}}function Te(Qe){return Ue;function Ue(mt,Je,It){return!!(lt(mt)&&Qe.call(this,mt,typeof Je=="number"?Je:void 0,It||void 0))}}function Ge(){return!0}function lt(Qe){return Qe!==null&&typeof Qe=="object"&&"type"in Qe}},17970:function(He,Ee,ae){"use strict";ae.d(Ee,{FK:function(){return Ie},Pk:function(){return Ce},rb:function(){return oe}});const oe=ke("end"),Ce=ke("start");function ke(je){return Te;function Te(Ge){const lt=Ge&&Ge.position&&Ge.position[je]||{};if(typeof lt.line=="number"&&lt.line>0&&typeof lt.column=="number"&&lt.column>0)return{line:lt.line,column:lt.column,offset:typeof lt.offset=="number"&&lt.offset>-1?lt.offset:void 0}}}function Ie(je){const Te=Ce(je),Ge=oe(je);if(Te&&Ge)return{start:Te,end:Ge}}},2348:function(He,Ee,ae){"use strict";ae.d(Ee,{AM:function(){return Te},S4:function(){return Ge}});var oe=ae(10502);function Ce(Qe){return Qe}const ke=[],Ie=!0,je=!1,Te="skip";function Ge(Qe,Ue,mt,Je){let It;typeof Ue=="function"&&typeof mt!="function"?(Je=mt,mt=Ue):It=Ue;const Oe=(0,oe.O)(It),te=Je?-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=ke,De,Ye,rt;if((!Ue||Oe(he,ue,fe[fe.length-1]||void 0))&&(Ae=lt(mt(he,fe)),Ae[0]===je))return Ae;if("children"in he&&he.children){const $e=he;if($e.children&&Ae[0]!==Te)for(Ye=(Je?$e.children.length:-1)+te,rt=fe.concat($e);Ye>-1&&Ye<$e.children.length;){const at=$e.children[Ye];if(De=ee(at,Ye,rt)(),De[0]===je)return De;Ye=typeof De[1]=="number"?De[1]:Ye+te}}return Ae}}}function lt(Qe){return Array.isArray(Qe)?Qe:typeof Qe=="number"?[Ie,Qe]:Qe==null?ke:[Qe]}},10528:function(He,Ee,ae){"use strict";ae.d(Ee,{Vn:function(){return Ce}});var oe=ae(2348);function Ce(ke,Ie,je,Te){let Ge,lt,Qe;typeof Ie=="function"&&typeof je!="function"?(lt=void 0,Qe=Ie,Ge=je):(lt=Ie,Qe=je,Ge=Te),(0,oe.S4)(ke,lt,Ue,Ge);function Ue(mt,Je){const It=Je[Je.length-1],Oe=It?It.children.indexOf(mt):void 0;return Qe(mt,Oe,It)}}},43309:function(He,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(He){"use strict";He.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(He){"use strict";He.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"}')}}]);
}());